This repository has no description
0

Configure Feed

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

feat(messages): add missing shotgun event types

+16 -14
+16 -14
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" 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" 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" 21 + EventShotgunOpensSoon Event = "shotgun_opens_soon" 22 + EventShotgunClosesSoon Event = "shotgun_closes_soon" 21 23 ) 22 24 23 25 type Message struct { ··· 26 28 // When to push the notification 27 29 SendAt time.Time `json:"send_at"` 28 30 // Type of event that triggered the notification 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"` 31 + 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,enum=shotgun_opens_soon,enum=shotgun_closes_soon"` 30 32 // Churros ID of the ressource (the ticket, the post, the comment, etc) 31 33 // Used to determine to whom the notification should be sent 32 34 // For godchild_request, this is not a user id, but a godparent request id.