This repository has no description
1export interface Message {
2 /**
3 * URL to go to when the action button is clicked
4 */
5 action: string;
6 /**
7 * Additional action buttons
8 */
9 actions?: Action[];
10 /**
11 * Notification body
12 */
13 body: string;
14 /**
15 * Type of event that triggered the notification
16 * next-line-generate event-enum-jsonschema-values
17 */
18 event: Event;
19 /**
20 * Unique ID for the notification scheduling request.
21 */
22 id: string;
23 /**
24 * URL to an image to display in the notification
25 */
26 image?: string;
27 /**
28 * Churros ID of the ressource (the ticket, the post, the comment, etc)
29 * Used to determine to whom the notification should be sent
30 * For godchild_request, this is not a user id, but a godparent request id.
31 */
32 object_id: string;
33 /**
34 * When to push the notification
35 */
36 send_at: Date;
37 /**
38 * Notification title
39 */
40 title: string;
41}
42
43export interface Action {
44 action: string;
45 label: string;
46}
47
48/**
49 * Type of event that triggered the notification
50 * next-line-generate event-enum-jsonschema-values
51 */
52export enum Event {
53 BookingPaid = "booking_paid",
54 ClearSchedule = "clear_schedule",
55 ClearScheduledJobs = "clear_scheduled_jobs",
56 ClearStoredSchedule = "clear_stored_schedule",
57 ContributionPaid = "contribution_paid",
58 Custom = "custom",
59 GodchildAccepted = "godchild_accepted",
60 GodchildRejected = "godchild_rejected",
61 GodchildRequest = "godchild_request",
62 LoginStuck = "login_stuck",
63 NewPost = "new_post",
64 PendingSignup = "pending_signup",
65 RestoreSchedule = "restore_schedule",
66 RestoreScheduleEager = "restore_schedule_eager",
67 SaveSchedule = "save_schedule",
68 ShotgunClosesSoon = "shotgun_closes_soon",
69 ShotgunOpensSoon = "shotgun_opens_soon",
70 ShowScheduledJobs = "show_scheduled_jobs",
71 Test = "test",
72}