This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat(messages): add missing event types

+14 -6
+14 -6
events.go
··· 5 5 type Event string 6 6 7 7 const ( 8 - EventNewTicket Event = "new_ticket" 9 - EventNewPost Event = "new_post" 10 - EventGodchildRequest Event = "godchild_request" 11 - EventNewComment Event = "new_comment" 12 - EventCommentReply Event = "comment_reply" 8 + EventNewTicket Event = "new_ticket" 9 + EventNewPost Event = "new_post" 10 + EventGodchildRequest Event = "godchild_request" 11 + EventNewComment Event = "new_comment" 12 + EventCommentReply Event = "comment_reply" 13 + EventCustom Event = "custom" 14 + EventTest Event = "test" 15 + EventGodchildAccepted Event = "godchild_accepted" 16 + EventGodchildRejected Event = "godchild_rejected" 17 + EventPendingSignup Event = "pending_signup" 18 + EventLoginStuck Event = "login_stuck" 19 + EventBookingPaid Event = "booking_paid" 20 + EventContributionPaid Event = "contribution_paid" 13 21 ) 14 22 15 23 type Message struct { ··· 18 26 // When to push the notification 19 27 SendAt time.Time `json:"send_at"` 20 28 // Type of event that triggered the notification 21 - Event Event `json:"event" jsonschema:"enum=new_ticket,enum=new_post,enum=godchild_request,enum=new_comment,enum=comment_reply"` 29 + Event Event `json:"event" jsonschema:"enum=new_ticket,enum=new_post,enum=godchild_request,enum=new_comment,enum=comment_reply,enum=custom,enum=test,enum=godchild_accepted,enum=godchild_rejected,enum=pending_signup,enum=login_stuck,enum=booking_paid,enum=contribution_paid"` 22 30 // Churros ID of the ressource (the ticket, the post, the comment, etc) 23 31 // Used to determine to whom the notification should be sent 24 32 // For godchild_request, this is not a user id, but a godparent request id.