···11-export interface Message {
22- /**
33- * URL to go to when the action button is clicked
44- */
55- action: string;
66- /**
77- * Additional action buttons
88- */
99- actions: Action[];
1010- /**
1111- * Notification body
1212- */
1313- body: string;
1414- /**
1515- * Type of event that triggered the notification
1616- */
1717- event: Event;
1818- /**
1919- * Unique ID for the notification scheduling request.
2020- */
2121- id: string;
2222- /**
2323- * URL to an image to display in the notification
2424- */
2525- image: string;
2626- /**
2727- * Churros ID of the ressource (the ticket, the post, the comment, etc)
2828- * Used to determine to whom the notification should be sent
2929- * For godchild_request, this is not a user id, but a godparent request id.
3030- */
3131- object_id: string;
3232- /**
3333- * When to push the notification
3434- */
3535- send_at: Date;
3636- /**
3737- * Notification title
3838- */
3939- title: string;
4040-}
4141-4242-export interface Action {
4343- action: string;
4444- label: string;
4545-}
4646-4747-/**
4848- * Type of event that triggered the notification
4949- */
5050-export enum Event {
5151- CommentReply = 'comment_reply',
5252- GodchildRequest = 'godchild_request',
5353- NewComment = 'new_comment',
5454- NewPost = 'new_post',
5555- NewTicket = 'new_ticket',
5656-}
+56
types.ts
···11+export interface Message {
22+ /**
33+ * URL to go to when the action button is clicked
44+ */
55+ action: string;
66+ /**
77+ * Additional action buttons
88+ */
99+ actions: Action[];
1010+ /**
1111+ * Notification body
1212+ */
1313+ body: string;
1414+ /**
1515+ * Type of event that triggered the notification
1616+ */
1717+ event: Event;
1818+ /**
1919+ * Unique ID for the notification scheduling request.
2020+ */
2121+ id: string;
2222+ /**
2323+ * URL to an image to display in the notification
2424+ */
2525+ image: string;
2626+ /**
2727+ * Churros ID of the ressource (the ticket, the post, the comment, etc)
2828+ * Used to determine to whom the notification should be sent
2929+ * For godchild_request, this is not a user id, but a godparent request id.
3030+ */
3131+ object_id: string;
3232+ /**
3333+ * When to push the notification
3434+ */
3535+ send_at: Date;
3636+ /**
3737+ * Notification title
3838+ */
3939+ title: string;
4040+}
4141+4242+export interface Action {
4343+ action: string;
4444+ label: string;
4545+}
4646+4747+/**
4848+ * Type of event that triggered the notification
4949+ */
5050+export enum Event {
5151+ CommentReply = "comment_reply",
5252+ GodchildRequest = "godchild_request",
5353+ NewComment = "new_comment",
5454+ NewPost = "new_post",
5555+ NewTicket = "new_ticket",
5656+}