@wix/auto_sdk_events_notifications 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/build/{internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +326 -430
  2. package/build/{cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +326 -430
  3. package/build/index.d.mts +39 -0
  4. package/build/index.d.ts +39 -0
  5. package/build/index.js +858 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +779 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +326 -430
  10. package/build/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → internal/events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +326 -430
  11. package/build/internal/index.d.mts +39 -0
  12. package/build/internal/index.d.ts +39 -0
  13. package/build/internal/index.js +858 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +779 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +267 -0
  18. package/build/internal/meta.d.ts +267 -0
  19. package/build/internal/meta.js +258 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +229 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +267 -0
  24. package/build/meta.d.ts +267 -0
  25. package/build/meta.js +258 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +229 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  40. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  41. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  42. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  43. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  44. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  45. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  46. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  47. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  48. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  49. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  50. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  51. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
  52. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -571
  53. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  54. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -732
  55. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  66. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  67. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  68. package/build/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  69. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  70. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  71. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  72. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  73. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  74. package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  75. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  76. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  77. package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
  78. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -567
  79. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  80. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -702
  81. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  92. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  93. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  94. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  95. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  96. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  97. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  98. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  99. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  100. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  101. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  102. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  103. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
  104. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -571
  105. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -732
  107. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  118. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  119. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  120. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  121. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  122. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  123. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  124. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  125. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  126. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  127. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  128. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  129. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
  130. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -567
  131. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  132. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -702
  133. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
@@ -0,0 +1,267 @@
1
+ import { a7 as TriggerNotificationRequest$1, ae as TriggerNotificationResponse$1, dg as ResolveNotificationConfigRequest$1, R as ResolveNotificationConfigResponse$1, dh as UpsertNotificationConfigRequest$1, a as UpsertNotificationConfigResponse$1 } from './events-notifications-v2-notification-config-notifications.universal-D-36kOt1.mjs';
2
+
3
+ interface NotificationConfig {
4
+ /**
5
+ * Event ID.
6
+ * @format GUID
7
+ * @immutable
8
+ */
9
+ id?: string | null;
10
+ /**
11
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.
12
+ * @immutable
13
+ */
14
+ revision?: string | null;
15
+ /**
16
+ * Represents the time this NotificationConfig was created.
17
+ * @readonly
18
+ */
19
+ createdDate?: Date | null;
20
+ /**
21
+ * Represents the time this NotificationConfig was last updated.
22
+ * @readonly
23
+ */
24
+ updatedDate?: Date | null;
25
+ /** Rsvp confirmation. */
26
+ rsvpConfirmation?: EmailNotificationConfig;
27
+ /** New spots available. */
28
+ newSpotsAvailable?: EmailNotificationConfig;
29
+ /** Event cancelation. */
30
+ eventCancelation?: EmailNotificationConfig;
31
+ /** Event reminder. */
32
+ upcomingEventReminder?: EmailNotificationConfig;
33
+ /** Order confirmation. */
34
+ orderConfirmation?: EmailNotificationConfig;
35
+ /** Ticket confirmation. */
36
+ ticketConfirmation?: EmailNotificationConfig;
37
+ /** Invoice. */
38
+ invoice?: EmailNotificationConfig;
39
+ /** Order confirmation with tickets link. */
40
+ orderConfirmationWithTicketsLink?: EmailNotificationConfig;
41
+ }
42
+ interface EmailNotificationConfig {
43
+ /**
44
+ * Predefined id of the notification type.
45
+ * @readonly
46
+ */
47
+ notificationType?: EmailNotificationTypeWithLiterals;
48
+ /** Email template values. */
49
+ template?: EmailTemplate;
50
+ /**
51
+ * Desired timing of the notification in hours respectfully to event start time.
52
+ * For example if value is 0 then notification is sent at the start of the event.
53
+ */
54
+ reminderTime?: EmailNotificationReminderTimeWithLiterals;
55
+ /** When true the notification will be sent when certain trigger occurs. */
56
+ sendingEnabled?: boolean | null;
57
+ }
58
+ declare enum EmailNotificationType {
59
+ /** Default value. This value is unused. */
60
+ UNKNOWN_NOTIFICATION_TYPE = "UNKNOWN_NOTIFICATION_TYPE",
61
+ /** Triggered when site user RSVP to the event. */
62
+ EMAIL_RSVP_CONFIRMATION = "EMAIL_RSVP_CONFIRMATION",
63
+ /** Triggered for waiting guests when additional RSVP spots appears in the fully booked event. */
64
+ EMAIL_NEW_SPOTS_AVAILABLE = "EMAIL_NEW_SPOTS_AVAILABLE",
65
+ /** Triggered when event is canceled. */
66
+ EMAIL_EVENT_CANCELATION = "EMAIL_EVENT_CANCELATION",
67
+ /** Triggered before the event start time. */
68
+ EMAIL_UPCOMING_EVENT_REMINDER = "EMAIL_UPCOMING_EVENT_REMINDER",
69
+ /** Triggered when site user creates Order. */
70
+ EMAIL_ORDER_CONFIRMATION = "EMAIL_ORDER_CONFIRMATION",
71
+ /** Triggered when resending ticket to ticket holder. */
72
+ EMAIL_TICKET_CONFIRMATION = "EMAIL_TICKET_CONFIRMATION",
73
+ /** Triggered when sending invoice. Currently only `enabled` flag update is supported. */
74
+ EMAIL_INVOICE = "EMAIL_INVOICE"
75
+ }
76
+ /** @enumType */
77
+ type EmailNotificationTypeWithLiterals = EmailNotificationType | 'UNKNOWN_NOTIFICATION_TYPE' | 'EMAIL_RSVP_CONFIRMATION' | 'EMAIL_NEW_SPOTS_AVAILABLE' | 'EMAIL_EVENT_CANCELATION' | 'EMAIL_UPCOMING_EVENT_REMINDER' | 'EMAIL_ORDER_CONFIRMATION' | 'EMAIL_TICKET_CONFIRMATION' | 'EMAIL_INVOICE';
78
+ interface EmailTemplate {
79
+ /**
80
+ * Email subject.
81
+ * @minLength 1
82
+ * @maxLength 100
83
+ */
84
+ subject?: string | null;
85
+ /**
86
+ * Plain text message body.
87
+ * @minLength 1
88
+ * @maxLength 1000
89
+ */
90
+ body?: string | null;
91
+ /** Description link visibility and display text */
92
+ descriptionLink?: Link;
93
+ /** Calendar link visibility and display text */
94
+ calendarLink?: Link;
95
+ /** Online conferencing link visibility and display text */
96
+ onlineConferencingLink?: Link;
97
+ /** When true the tickets are attached to the order confirmation email. */
98
+ includeTickets?: boolean | null;
99
+ }
100
+ interface Link {
101
+ /** When true the link is added to the email. */
102
+ display?: boolean | null;
103
+ /**
104
+ * Text of the link.
105
+ * @maxLength 60
106
+ */
107
+ linkText?: string | null;
108
+ }
109
+ declare enum EmailNotificationReminderTime {
110
+ /** Default value. This value is unused. */
111
+ UNKNOWN_REMINDER_TIME = "UNKNOWN_REMINDER_TIME",
112
+ /** Notification is sent instantly */
113
+ INSTANT = "INSTANT",
114
+ /** 24 hours prior */
115
+ BEFORE_1_DAY = "BEFORE_1_DAY",
116
+ /** 3 days prior */
117
+ BEFORE_3_DAYS = "BEFORE_3_DAYS",
118
+ /** 7 days prior */
119
+ BEFORE_1_WEEK = "BEFORE_1_WEEK",
120
+ /** 1 hour prior */
121
+ BEFORE_1_HOUR = "BEFORE_1_HOUR",
122
+ /** 30 minutes prior */
123
+ BEFORE_30_MINUTES = "BEFORE_30_MINUTES"
124
+ }
125
+ /** @enumType */
126
+ type EmailNotificationReminderTimeWithLiterals = EmailNotificationReminderTime | 'UNKNOWN_REMINDER_TIME' | 'INSTANT' | 'BEFORE_1_DAY' | 'BEFORE_3_DAYS' | 'BEFORE_1_WEEK' | 'BEFORE_1_HOUR' | 'BEFORE_30_MINUTES';
127
+ interface TriggerNotificationRequest extends TriggerNotificationRequestNotificationOneOf, TriggerNotificationRequestGuestsOneOf {
128
+ /** Email notification type */
129
+ emailNotificationType?: EmailNotificationTypeWithLiterals;
130
+ /** Push notification type */
131
+ pushNotificationType?: PushNotificationTypeWithLiterals;
132
+ /** Rsvp guest info */
133
+ rsvpGuest?: RsvpGuest;
134
+ /** Order guest info */
135
+ orderGuest?: OrderGuest;
136
+ /** Event guests info */
137
+ eventGuests?: EventGuests;
138
+ /** Ticket guests info */
139
+ ticketGuest?: TicketGuest;
140
+ }
141
+ /** @oneof */
142
+ interface TriggerNotificationRequestNotificationOneOf {
143
+ /** Email notification type */
144
+ emailNotificationType?: EmailNotificationTypeWithLiterals;
145
+ /** Push notification type */
146
+ pushNotificationType?: PushNotificationTypeWithLiterals;
147
+ }
148
+ /** @oneof */
149
+ interface TriggerNotificationRequestGuestsOneOf {
150
+ /** Rsvp guest info */
151
+ rsvpGuest?: RsvpGuest;
152
+ /** Order guest info */
153
+ orderGuest?: OrderGuest;
154
+ /** Event guests info */
155
+ eventGuests?: EventGuests;
156
+ /** Ticket guests info */
157
+ ticketGuest?: TicketGuest;
158
+ }
159
+ declare enum PushNotificationType {
160
+ /** This is default value. This value is unused. */
161
+ UNKNOWN_PUSH_TYPE = "UNKNOWN_PUSH_TYPE",
162
+ /** Triggered when event is updated. */
163
+ PUSH_EVENT_UPDATED = "PUSH_EVENT_UPDATED",
164
+ /** Triggered when event is canceled. */
165
+ PUSH_EVENT_CANCELATION = "PUSH_EVENT_CANCELATION",
166
+ /** Triggered before the event start time. */
167
+ PUSH_UPCOMING_EVENT_REMINDER = "PUSH_UPCOMING_EVENT_REMINDER",
168
+ /** Triggered when event is created. */
169
+ PUSH_EVENT_CREATED = "PUSH_EVENT_CREATED"
170
+ }
171
+ /** @enumType */
172
+ type PushNotificationTypeWithLiterals = PushNotificationType | 'UNKNOWN_PUSH_TYPE' | 'PUSH_EVENT_UPDATED' | 'PUSH_EVENT_CANCELATION' | 'PUSH_UPCOMING_EVENT_REMINDER' | 'PUSH_EVENT_CREATED';
173
+ /** Single guest associated to the RSVP */
174
+ interface RsvpGuest {
175
+ /**
176
+ * Event id
177
+ * @format GUID
178
+ */
179
+ eventId?: string;
180
+ /**
181
+ * Rsvp id
182
+ * @format GUID
183
+ */
184
+ rsvpId?: string;
185
+ }
186
+ /** Single guest associated to the Order */
187
+ interface OrderGuest {
188
+ /**
189
+ * Event id
190
+ * @format GUID
191
+ */
192
+ eventId?: string;
193
+ /**
194
+ * Order number
195
+ * @maxLength 36
196
+ */
197
+ orderNumber?: string;
198
+ }
199
+ /** All event guest from RSVPs and Orders */
200
+ interface EventGuests {
201
+ /**
202
+ * Event id
203
+ * @format GUID
204
+ */
205
+ eventId?: string;
206
+ }
207
+ /** Multiple guests associated to Tickets */
208
+ interface TicketGuest {
209
+ /**
210
+ * Event id
211
+ * @format GUID
212
+ */
213
+ eventId?: string;
214
+ /**
215
+ * Order number
216
+ * @maxLength 36
217
+ */
218
+ orderNumber?: string | null;
219
+ /**
220
+ * Ticket numbers must be from the same order only.
221
+ * @minSize 1
222
+ * @maxSize 100
223
+ * @maxLength 36
224
+ */
225
+ ticketNumber?: string[];
226
+ }
227
+ interface TriggerNotificationResponse {
228
+ }
229
+ interface ResolveNotificationConfigRequest {
230
+ /**
231
+ * Id of the NotificationConfig to retrieve
232
+ * @format GUID
233
+ */
234
+ notificationConfigId: string;
235
+ }
236
+ interface ResolveNotificationConfigResponse {
237
+ /** The retrieved NotificationConfig */
238
+ notificationConfig?: NotificationConfig;
239
+ }
240
+ interface UpsertNotificationConfigRequest {
241
+ /** NotificationConfig to be upserted */
242
+ notificationConfig: NotificationConfig;
243
+ }
244
+ interface UpsertNotificationConfigResponse {
245
+ /** The upserted NotificationConfig */
246
+ notificationConfig?: NotificationConfig;
247
+ }
248
+
249
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
250
+ getUrl: (context: any) => string;
251
+ httpMethod: K;
252
+ path: string;
253
+ pathParams: M;
254
+ __requestType: T;
255
+ __originalRequestType: S;
256
+ __responseType: Q;
257
+ __originalResponseType: R;
258
+ };
259
+ declare function triggerNotification(): __PublicMethodMetaInfo<'POST', {}, TriggerNotificationRequest$1, TriggerNotificationRequest, TriggerNotificationResponse$1, TriggerNotificationResponse>;
260
+ declare function resolveNotificationConfig(): __PublicMethodMetaInfo<'GET', {
261
+ notificationConfigId: string;
262
+ }, ResolveNotificationConfigRequest$1, ResolveNotificationConfigRequest, ResolveNotificationConfigResponse$1, ResolveNotificationConfigResponse>;
263
+ declare function upsertNotificationConfig(): __PublicMethodMetaInfo<'POST', {
264
+ notificationConfigId: string;
265
+ }, UpsertNotificationConfigRequest$1, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse$1, UpsertNotificationConfigResponse>;
266
+
267
+ export { type __PublicMethodMetaInfo, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };
@@ -0,0 +1,267 @@
1
+ import { a7 as TriggerNotificationRequest$1, ae as TriggerNotificationResponse$1, dg as ResolveNotificationConfigRequest$1, R as ResolveNotificationConfigResponse$1, dh as UpsertNotificationConfigRequest$1, a as UpsertNotificationConfigResponse$1 } from './events-notifications-v2-notification-config-notifications.universal-D-36kOt1.js';
2
+
3
+ interface NotificationConfig {
4
+ /**
5
+ * Event ID.
6
+ * @format GUID
7
+ * @immutable
8
+ */
9
+ id?: string | null;
10
+ /**
11
+ * Represents the current state of an item. Each time the item is modified, its `revision` changes. for an update operation to succeed, you MUST pass the latest revision.
12
+ * @immutable
13
+ */
14
+ revision?: string | null;
15
+ /**
16
+ * Represents the time this NotificationConfig was created.
17
+ * @readonly
18
+ */
19
+ createdDate?: Date | null;
20
+ /**
21
+ * Represents the time this NotificationConfig was last updated.
22
+ * @readonly
23
+ */
24
+ updatedDate?: Date | null;
25
+ /** Rsvp confirmation. */
26
+ rsvpConfirmation?: EmailNotificationConfig;
27
+ /** New spots available. */
28
+ newSpotsAvailable?: EmailNotificationConfig;
29
+ /** Event cancelation. */
30
+ eventCancelation?: EmailNotificationConfig;
31
+ /** Event reminder. */
32
+ upcomingEventReminder?: EmailNotificationConfig;
33
+ /** Order confirmation. */
34
+ orderConfirmation?: EmailNotificationConfig;
35
+ /** Ticket confirmation. */
36
+ ticketConfirmation?: EmailNotificationConfig;
37
+ /** Invoice. */
38
+ invoice?: EmailNotificationConfig;
39
+ /** Order confirmation with tickets link. */
40
+ orderConfirmationWithTicketsLink?: EmailNotificationConfig;
41
+ }
42
+ interface EmailNotificationConfig {
43
+ /**
44
+ * Predefined id of the notification type.
45
+ * @readonly
46
+ */
47
+ notificationType?: EmailNotificationTypeWithLiterals;
48
+ /** Email template values. */
49
+ template?: EmailTemplate;
50
+ /**
51
+ * Desired timing of the notification in hours respectfully to event start time.
52
+ * For example if value is 0 then notification is sent at the start of the event.
53
+ */
54
+ reminderTime?: EmailNotificationReminderTimeWithLiterals;
55
+ /** When true the notification will be sent when certain trigger occurs. */
56
+ sendingEnabled?: boolean | null;
57
+ }
58
+ declare enum EmailNotificationType {
59
+ /** Default value. This value is unused. */
60
+ UNKNOWN_NOTIFICATION_TYPE = "UNKNOWN_NOTIFICATION_TYPE",
61
+ /** Triggered when site user RSVP to the event. */
62
+ EMAIL_RSVP_CONFIRMATION = "EMAIL_RSVP_CONFIRMATION",
63
+ /** Triggered for waiting guests when additional RSVP spots appears in the fully booked event. */
64
+ EMAIL_NEW_SPOTS_AVAILABLE = "EMAIL_NEW_SPOTS_AVAILABLE",
65
+ /** Triggered when event is canceled. */
66
+ EMAIL_EVENT_CANCELATION = "EMAIL_EVENT_CANCELATION",
67
+ /** Triggered before the event start time. */
68
+ EMAIL_UPCOMING_EVENT_REMINDER = "EMAIL_UPCOMING_EVENT_REMINDER",
69
+ /** Triggered when site user creates Order. */
70
+ EMAIL_ORDER_CONFIRMATION = "EMAIL_ORDER_CONFIRMATION",
71
+ /** Triggered when resending ticket to ticket holder. */
72
+ EMAIL_TICKET_CONFIRMATION = "EMAIL_TICKET_CONFIRMATION",
73
+ /** Triggered when sending invoice. Currently only `enabled` flag update is supported. */
74
+ EMAIL_INVOICE = "EMAIL_INVOICE"
75
+ }
76
+ /** @enumType */
77
+ type EmailNotificationTypeWithLiterals = EmailNotificationType | 'UNKNOWN_NOTIFICATION_TYPE' | 'EMAIL_RSVP_CONFIRMATION' | 'EMAIL_NEW_SPOTS_AVAILABLE' | 'EMAIL_EVENT_CANCELATION' | 'EMAIL_UPCOMING_EVENT_REMINDER' | 'EMAIL_ORDER_CONFIRMATION' | 'EMAIL_TICKET_CONFIRMATION' | 'EMAIL_INVOICE';
78
+ interface EmailTemplate {
79
+ /**
80
+ * Email subject.
81
+ * @minLength 1
82
+ * @maxLength 100
83
+ */
84
+ subject?: string | null;
85
+ /**
86
+ * Plain text message body.
87
+ * @minLength 1
88
+ * @maxLength 1000
89
+ */
90
+ body?: string | null;
91
+ /** Description link visibility and display text */
92
+ descriptionLink?: Link;
93
+ /** Calendar link visibility and display text */
94
+ calendarLink?: Link;
95
+ /** Online conferencing link visibility and display text */
96
+ onlineConferencingLink?: Link;
97
+ /** When true the tickets are attached to the order confirmation email. */
98
+ includeTickets?: boolean | null;
99
+ }
100
+ interface Link {
101
+ /** When true the link is added to the email. */
102
+ display?: boolean | null;
103
+ /**
104
+ * Text of the link.
105
+ * @maxLength 60
106
+ */
107
+ linkText?: string | null;
108
+ }
109
+ declare enum EmailNotificationReminderTime {
110
+ /** Default value. This value is unused. */
111
+ UNKNOWN_REMINDER_TIME = "UNKNOWN_REMINDER_TIME",
112
+ /** Notification is sent instantly */
113
+ INSTANT = "INSTANT",
114
+ /** 24 hours prior */
115
+ BEFORE_1_DAY = "BEFORE_1_DAY",
116
+ /** 3 days prior */
117
+ BEFORE_3_DAYS = "BEFORE_3_DAYS",
118
+ /** 7 days prior */
119
+ BEFORE_1_WEEK = "BEFORE_1_WEEK",
120
+ /** 1 hour prior */
121
+ BEFORE_1_HOUR = "BEFORE_1_HOUR",
122
+ /** 30 minutes prior */
123
+ BEFORE_30_MINUTES = "BEFORE_30_MINUTES"
124
+ }
125
+ /** @enumType */
126
+ type EmailNotificationReminderTimeWithLiterals = EmailNotificationReminderTime | 'UNKNOWN_REMINDER_TIME' | 'INSTANT' | 'BEFORE_1_DAY' | 'BEFORE_3_DAYS' | 'BEFORE_1_WEEK' | 'BEFORE_1_HOUR' | 'BEFORE_30_MINUTES';
127
+ interface TriggerNotificationRequest extends TriggerNotificationRequestNotificationOneOf, TriggerNotificationRequestGuestsOneOf {
128
+ /** Email notification type */
129
+ emailNotificationType?: EmailNotificationTypeWithLiterals;
130
+ /** Push notification type */
131
+ pushNotificationType?: PushNotificationTypeWithLiterals;
132
+ /** Rsvp guest info */
133
+ rsvpGuest?: RsvpGuest;
134
+ /** Order guest info */
135
+ orderGuest?: OrderGuest;
136
+ /** Event guests info */
137
+ eventGuests?: EventGuests;
138
+ /** Ticket guests info */
139
+ ticketGuest?: TicketGuest;
140
+ }
141
+ /** @oneof */
142
+ interface TriggerNotificationRequestNotificationOneOf {
143
+ /** Email notification type */
144
+ emailNotificationType?: EmailNotificationTypeWithLiterals;
145
+ /** Push notification type */
146
+ pushNotificationType?: PushNotificationTypeWithLiterals;
147
+ }
148
+ /** @oneof */
149
+ interface TriggerNotificationRequestGuestsOneOf {
150
+ /** Rsvp guest info */
151
+ rsvpGuest?: RsvpGuest;
152
+ /** Order guest info */
153
+ orderGuest?: OrderGuest;
154
+ /** Event guests info */
155
+ eventGuests?: EventGuests;
156
+ /** Ticket guests info */
157
+ ticketGuest?: TicketGuest;
158
+ }
159
+ declare enum PushNotificationType {
160
+ /** This is default value. This value is unused. */
161
+ UNKNOWN_PUSH_TYPE = "UNKNOWN_PUSH_TYPE",
162
+ /** Triggered when event is updated. */
163
+ PUSH_EVENT_UPDATED = "PUSH_EVENT_UPDATED",
164
+ /** Triggered when event is canceled. */
165
+ PUSH_EVENT_CANCELATION = "PUSH_EVENT_CANCELATION",
166
+ /** Triggered before the event start time. */
167
+ PUSH_UPCOMING_EVENT_REMINDER = "PUSH_UPCOMING_EVENT_REMINDER",
168
+ /** Triggered when event is created. */
169
+ PUSH_EVENT_CREATED = "PUSH_EVENT_CREATED"
170
+ }
171
+ /** @enumType */
172
+ type PushNotificationTypeWithLiterals = PushNotificationType | 'UNKNOWN_PUSH_TYPE' | 'PUSH_EVENT_UPDATED' | 'PUSH_EVENT_CANCELATION' | 'PUSH_UPCOMING_EVENT_REMINDER' | 'PUSH_EVENT_CREATED';
173
+ /** Single guest associated to the RSVP */
174
+ interface RsvpGuest {
175
+ /**
176
+ * Event id
177
+ * @format GUID
178
+ */
179
+ eventId?: string;
180
+ /**
181
+ * Rsvp id
182
+ * @format GUID
183
+ */
184
+ rsvpId?: string;
185
+ }
186
+ /** Single guest associated to the Order */
187
+ interface OrderGuest {
188
+ /**
189
+ * Event id
190
+ * @format GUID
191
+ */
192
+ eventId?: string;
193
+ /**
194
+ * Order number
195
+ * @maxLength 36
196
+ */
197
+ orderNumber?: string;
198
+ }
199
+ /** All event guest from RSVPs and Orders */
200
+ interface EventGuests {
201
+ /**
202
+ * Event id
203
+ * @format GUID
204
+ */
205
+ eventId?: string;
206
+ }
207
+ /** Multiple guests associated to Tickets */
208
+ interface TicketGuest {
209
+ /**
210
+ * Event id
211
+ * @format GUID
212
+ */
213
+ eventId?: string;
214
+ /**
215
+ * Order number
216
+ * @maxLength 36
217
+ */
218
+ orderNumber?: string | null;
219
+ /**
220
+ * Ticket numbers must be from the same order only.
221
+ * @minSize 1
222
+ * @maxSize 100
223
+ * @maxLength 36
224
+ */
225
+ ticketNumber?: string[];
226
+ }
227
+ interface TriggerNotificationResponse {
228
+ }
229
+ interface ResolveNotificationConfigRequest {
230
+ /**
231
+ * Id of the NotificationConfig to retrieve
232
+ * @format GUID
233
+ */
234
+ notificationConfigId: string;
235
+ }
236
+ interface ResolveNotificationConfigResponse {
237
+ /** The retrieved NotificationConfig */
238
+ notificationConfig?: NotificationConfig;
239
+ }
240
+ interface UpsertNotificationConfigRequest {
241
+ /** NotificationConfig to be upserted */
242
+ notificationConfig: NotificationConfig;
243
+ }
244
+ interface UpsertNotificationConfigResponse {
245
+ /** The upserted NotificationConfig */
246
+ notificationConfig?: NotificationConfig;
247
+ }
248
+
249
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
250
+ getUrl: (context: any) => string;
251
+ httpMethod: K;
252
+ path: string;
253
+ pathParams: M;
254
+ __requestType: T;
255
+ __originalRequestType: S;
256
+ __responseType: Q;
257
+ __originalResponseType: R;
258
+ };
259
+ declare function triggerNotification(): __PublicMethodMetaInfo<'POST', {}, TriggerNotificationRequest$1, TriggerNotificationRequest, TriggerNotificationResponse$1, TriggerNotificationResponse>;
260
+ declare function resolveNotificationConfig(): __PublicMethodMetaInfo<'GET', {
261
+ notificationConfigId: string;
262
+ }, ResolveNotificationConfigRequest$1, ResolveNotificationConfigRequest, ResolveNotificationConfigResponse$1, ResolveNotificationConfigResponse>;
263
+ declare function upsertNotificationConfig(): __PublicMethodMetaInfo<'POST', {
264
+ notificationConfigId: string;
265
+ }, UpsertNotificationConfigRequest$1, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse$1, UpsertNotificationConfigResponse>;
266
+
267
+ export { type __PublicMethodMetaInfo, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };