@wix/auto_sdk_events_notifications 1.0.74 → 1.0.76
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.
- package/build/cjs/index.d.ts +9 -9
- package/build/cjs/index.js +98 -98
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +973 -973
- package/build/cjs/index.typings.js +90 -90
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +935 -935
- package/build/cjs/meta.js +76 -76
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +975 -0
- package/build/cjs/schemas.js +1256 -0
- package/build/cjs/schemas.js.map +1 -0
- package/build/es/index.d.mts +9 -9
- package/build/es/index.mjs +98 -98
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +973 -973
- package/build/es/index.typings.mjs +90 -90
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +935 -935
- package/build/es/meta.mjs +76 -76
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +975 -0
- package/build/es/schemas.mjs +1214 -0
- package/build/es/schemas.mjs.map +1 -0
- package/build/internal/cjs/index.d.ts +9 -9
- package/build/internal/cjs/index.js +98 -98
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +973 -973
- package/build/internal/cjs/index.typings.js +90 -90
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +935 -935
- package/build/internal/cjs/meta.js +76 -76
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +975 -0
- package/build/internal/cjs/schemas.js +1256 -0
- package/build/internal/cjs/schemas.js.map +1 -0
- package/build/internal/es/index.d.mts +9 -9
- package/build/internal/es/index.mjs +98 -98
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +973 -973
- package/build/internal/es/index.typings.mjs +90 -90
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +935 -935
- package/build/internal/es/meta.mjs +76 -76
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +975 -0
- package/build/internal/es/schemas.mjs +1214 -0
- package/build/internal/es/schemas.mjs.map +1 -0
- package/package.json +12 -5
- package/schemas/package.json +3 -0
|
@@ -0,0 +1,1256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// schemas.ts
|
|
31
|
+
var schemas_exports = {};
|
|
32
|
+
__export(schemas_exports, {
|
|
33
|
+
ResolveNotificationConfigRequest: () => ResolveNotificationConfigRequest,
|
|
34
|
+
ResolveNotificationConfigResponse: () => ResolveNotificationConfigResponse,
|
|
35
|
+
TriggerNotificationRequest: () => TriggerNotificationRequest,
|
|
36
|
+
TriggerNotificationResponse: () => TriggerNotificationResponse,
|
|
37
|
+
UpsertNotificationConfigRequest: () => UpsertNotificationConfigRequest,
|
|
38
|
+
UpsertNotificationConfigResponse: () => UpsertNotificationConfigResponse
|
|
39
|
+
});
|
|
40
|
+
module.exports = __toCommonJS(schemas_exports);
|
|
41
|
+
|
|
42
|
+
// src/events-notifications-v2-notification-config-notifications.schemas.ts
|
|
43
|
+
var z = __toESM(require("zod"));
|
|
44
|
+
var ResolveNotificationConfigRequest = z.object({
|
|
45
|
+
notificationConfigId: z.string().describe("Id of the NotificationConfig to retrieve").regex(
|
|
46
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
47
|
+
"Must be a valid GUID"
|
|
48
|
+
)
|
|
49
|
+
});
|
|
50
|
+
var ResolveNotificationConfigResponse = z.object({
|
|
51
|
+
notificationConfig: z.object({
|
|
52
|
+
_id: z.string().describe("Event ID.").regex(
|
|
53
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
54
|
+
"Must be a valid GUID"
|
|
55
|
+
).optional().nullable(),
|
|
56
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
57
|
+
"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."
|
|
58
|
+
).optional().nullable(),
|
|
59
|
+
_createdDate: z.date().describe("Represents the time this NotificationConfig was created.").optional().nullable(),
|
|
60
|
+
_updatedDate: z.date().describe(
|
|
61
|
+
"Represents the time this NotificationConfig was last updated."
|
|
62
|
+
).optional().nullable(),
|
|
63
|
+
rsvpConfirmation: z.object({
|
|
64
|
+
notificationType: z.enum([
|
|
65
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
66
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
67
|
+
"EMAIL_EVENT_CANCELATION",
|
|
68
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
69
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
70
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
71
|
+
"EMAIL_INVOICE"
|
|
72
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
73
|
+
template: z.object({
|
|
74
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
75
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
76
|
+
descriptionLink: z.object({
|
|
77
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
78
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
79
|
+
}).describe("Description link visibility and display text").optional(),
|
|
80
|
+
calendarLink: z.object({
|
|
81
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
82
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
83
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
84
|
+
onlineConferencingLink: z.object({
|
|
85
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
86
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
87
|
+
}).describe(
|
|
88
|
+
"Online conferencing link visibility and display text"
|
|
89
|
+
).optional(),
|
|
90
|
+
includeTickets: z.boolean().describe(
|
|
91
|
+
"When true the tickets are attached to the order confirmation email."
|
|
92
|
+
).optional().nullable()
|
|
93
|
+
}).describe("Email template values.").optional(),
|
|
94
|
+
reminderTime: z.enum([
|
|
95
|
+
"INSTANT",
|
|
96
|
+
"BEFORE_1_DAY",
|
|
97
|
+
"BEFORE_3_DAYS",
|
|
98
|
+
"BEFORE_1_WEEK",
|
|
99
|
+
"BEFORE_1_HOUR",
|
|
100
|
+
"BEFORE_30_MINUTES"
|
|
101
|
+
]).describe(
|
|
102
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
103
|
+
).optional(),
|
|
104
|
+
sendingEnabled: z.boolean().describe(
|
|
105
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
106
|
+
).optional().nullable()
|
|
107
|
+
}).describe("Rsvp confirmation.").optional(),
|
|
108
|
+
newSpotsAvailable: z.object({
|
|
109
|
+
notificationType: z.enum([
|
|
110
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
111
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
112
|
+
"EMAIL_EVENT_CANCELATION",
|
|
113
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
114
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
115
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
116
|
+
"EMAIL_INVOICE"
|
|
117
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
118
|
+
template: z.object({
|
|
119
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
120
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
121
|
+
descriptionLink: z.object({
|
|
122
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
123
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
124
|
+
}).describe("Description link visibility and display text").optional(),
|
|
125
|
+
calendarLink: z.object({
|
|
126
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
127
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
128
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
129
|
+
onlineConferencingLink: z.object({
|
|
130
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
131
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
132
|
+
}).describe(
|
|
133
|
+
"Online conferencing link visibility and display text"
|
|
134
|
+
).optional(),
|
|
135
|
+
includeTickets: z.boolean().describe(
|
|
136
|
+
"When true the tickets are attached to the order confirmation email."
|
|
137
|
+
).optional().nullable()
|
|
138
|
+
}).describe("Email template values.").optional(),
|
|
139
|
+
reminderTime: z.enum([
|
|
140
|
+
"INSTANT",
|
|
141
|
+
"BEFORE_1_DAY",
|
|
142
|
+
"BEFORE_3_DAYS",
|
|
143
|
+
"BEFORE_1_WEEK",
|
|
144
|
+
"BEFORE_1_HOUR",
|
|
145
|
+
"BEFORE_30_MINUTES"
|
|
146
|
+
]).describe(
|
|
147
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
148
|
+
).optional(),
|
|
149
|
+
sendingEnabled: z.boolean().describe(
|
|
150
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
151
|
+
).optional().nullable()
|
|
152
|
+
}).describe("New spots available.").optional(),
|
|
153
|
+
eventCancelation: z.object({
|
|
154
|
+
notificationType: z.enum([
|
|
155
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
156
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
157
|
+
"EMAIL_EVENT_CANCELATION",
|
|
158
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
159
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
160
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
161
|
+
"EMAIL_INVOICE"
|
|
162
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
163
|
+
template: z.object({
|
|
164
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
165
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
166
|
+
descriptionLink: z.object({
|
|
167
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
168
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
169
|
+
}).describe("Description link visibility and display text").optional(),
|
|
170
|
+
calendarLink: z.object({
|
|
171
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
172
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
173
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
174
|
+
onlineConferencingLink: z.object({
|
|
175
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
176
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
177
|
+
}).describe(
|
|
178
|
+
"Online conferencing link visibility and display text"
|
|
179
|
+
).optional(),
|
|
180
|
+
includeTickets: z.boolean().describe(
|
|
181
|
+
"When true the tickets are attached to the order confirmation email."
|
|
182
|
+
).optional().nullable()
|
|
183
|
+
}).describe("Email template values.").optional(),
|
|
184
|
+
reminderTime: z.enum([
|
|
185
|
+
"INSTANT",
|
|
186
|
+
"BEFORE_1_DAY",
|
|
187
|
+
"BEFORE_3_DAYS",
|
|
188
|
+
"BEFORE_1_WEEK",
|
|
189
|
+
"BEFORE_1_HOUR",
|
|
190
|
+
"BEFORE_30_MINUTES"
|
|
191
|
+
]).describe(
|
|
192
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
193
|
+
).optional(),
|
|
194
|
+
sendingEnabled: z.boolean().describe(
|
|
195
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
196
|
+
).optional().nullable()
|
|
197
|
+
}).describe("Event cancelation.").optional(),
|
|
198
|
+
upcomingEventReminder: z.object({
|
|
199
|
+
notificationType: z.enum([
|
|
200
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
201
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
202
|
+
"EMAIL_EVENT_CANCELATION",
|
|
203
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
204
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
205
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
206
|
+
"EMAIL_INVOICE"
|
|
207
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
208
|
+
template: z.object({
|
|
209
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
210
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
211
|
+
descriptionLink: z.object({
|
|
212
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
213
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
214
|
+
}).describe("Description link visibility and display text").optional(),
|
|
215
|
+
calendarLink: z.object({
|
|
216
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
217
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
218
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
219
|
+
onlineConferencingLink: z.object({
|
|
220
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
221
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
222
|
+
}).describe(
|
|
223
|
+
"Online conferencing link visibility and display text"
|
|
224
|
+
).optional(),
|
|
225
|
+
includeTickets: z.boolean().describe(
|
|
226
|
+
"When true the tickets are attached to the order confirmation email."
|
|
227
|
+
).optional().nullable()
|
|
228
|
+
}).describe("Email template values.").optional(),
|
|
229
|
+
reminderTime: z.enum([
|
|
230
|
+
"INSTANT",
|
|
231
|
+
"BEFORE_1_DAY",
|
|
232
|
+
"BEFORE_3_DAYS",
|
|
233
|
+
"BEFORE_1_WEEK",
|
|
234
|
+
"BEFORE_1_HOUR",
|
|
235
|
+
"BEFORE_30_MINUTES"
|
|
236
|
+
]).describe(
|
|
237
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
238
|
+
).optional(),
|
|
239
|
+
sendingEnabled: z.boolean().describe(
|
|
240
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
241
|
+
).optional().nullable()
|
|
242
|
+
}).describe("Event reminder.").optional(),
|
|
243
|
+
orderConfirmation: z.object({
|
|
244
|
+
notificationType: z.enum([
|
|
245
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
246
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
247
|
+
"EMAIL_EVENT_CANCELATION",
|
|
248
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
249
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
250
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
251
|
+
"EMAIL_INVOICE"
|
|
252
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
253
|
+
template: z.object({
|
|
254
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
255
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
256
|
+
descriptionLink: z.object({
|
|
257
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
258
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
259
|
+
}).describe("Description link visibility and display text").optional(),
|
|
260
|
+
calendarLink: z.object({
|
|
261
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
262
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
263
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
264
|
+
onlineConferencingLink: z.object({
|
|
265
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
266
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
267
|
+
}).describe(
|
|
268
|
+
"Online conferencing link visibility and display text"
|
|
269
|
+
).optional(),
|
|
270
|
+
includeTickets: z.boolean().describe(
|
|
271
|
+
"When true the tickets are attached to the order confirmation email."
|
|
272
|
+
).optional().nullable()
|
|
273
|
+
}).describe("Email template values.").optional(),
|
|
274
|
+
reminderTime: z.enum([
|
|
275
|
+
"INSTANT",
|
|
276
|
+
"BEFORE_1_DAY",
|
|
277
|
+
"BEFORE_3_DAYS",
|
|
278
|
+
"BEFORE_1_WEEK",
|
|
279
|
+
"BEFORE_1_HOUR",
|
|
280
|
+
"BEFORE_30_MINUTES"
|
|
281
|
+
]).describe(
|
|
282
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
283
|
+
).optional(),
|
|
284
|
+
sendingEnabled: z.boolean().describe(
|
|
285
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
286
|
+
).optional().nullable()
|
|
287
|
+
}).describe("Order confirmation.").optional(),
|
|
288
|
+
ticketConfirmation: z.object({
|
|
289
|
+
notificationType: z.enum([
|
|
290
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
291
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
292
|
+
"EMAIL_EVENT_CANCELATION",
|
|
293
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
294
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
295
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
296
|
+
"EMAIL_INVOICE"
|
|
297
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
298
|
+
template: z.object({
|
|
299
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
300
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
301
|
+
descriptionLink: z.object({
|
|
302
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
303
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
304
|
+
}).describe("Description link visibility and display text").optional(),
|
|
305
|
+
calendarLink: z.object({
|
|
306
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
307
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
308
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
309
|
+
onlineConferencingLink: z.object({
|
|
310
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
311
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
312
|
+
}).describe(
|
|
313
|
+
"Online conferencing link visibility and display text"
|
|
314
|
+
).optional(),
|
|
315
|
+
includeTickets: z.boolean().describe(
|
|
316
|
+
"When true the tickets are attached to the order confirmation email."
|
|
317
|
+
).optional().nullable()
|
|
318
|
+
}).describe("Email template values.").optional(),
|
|
319
|
+
reminderTime: z.enum([
|
|
320
|
+
"INSTANT",
|
|
321
|
+
"BEFORE_1_DAY",
|
|
322
|
+
"BEFORE_3_DAYS",
|
|
323
|
+
"BEFORE_1_WEEK",
|
|
324
|
+
"BEFORE_1_HOUR",
|
|
325
|
+
"BEFORE_30_MINUTES"
|
|
326
|
+
]).describe(
|
|
327
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
328
|
+
).optional(),
|
|
329
|
+
sendingEnabled: z.boolean().describe(
|
|
330
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
331
|
+
).optional().nullable()
|
|
332
|
+
}).describe("Ticket confirmation.").optional(),
|
|
333
|
+
invoice: z.object({
|
|
334
|
+
notificationType: z.enum([
|
|
335
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
336
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
337
|
+
"EMAIL_EVENT_CANCELATION",
|
|
338
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
339
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
340
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
341
|
+
"EMAIL_INVOICE"
|
|
342
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
343
|
+
template: z.object({
|
|
344
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
345
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
346
|
+
descriptionLink: z.object({
|
|
347
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
348
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
349
|
+
}).describe("Description link visibility and display text").optional(),
|
|
350
|
+
calendarLink: z.object({
|
|
351
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
352
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
353
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
354
|
+
onlineConferencingLink: z.object({
|
|
355
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
356
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
357
|
+
}).describe(
|
|
358
|
+
"Online conferencing link visibility and display text"
|
|
359
|
+
).optional(),
|
|
360
|
+
includeTickets: z.boolean().describe(
|
|
361
|
+
"When true the tickets are attached to the order confirmation email."
|
|
362
|
+
).optional().nullable()
|
|
363
|
+
}).describe("Email template values.").optional(),
|
|
364
|
+
reminderTime: z.enum([
|
|
365
|
+
"INSTANT",
|
|
366
|
+
"BEFORE_1_DAY",
|
|
367
|
+
"BEFORE_3_DAYS",
|
|
368
|
+
"BEFORE_1_WEEK",
|
|
369
|
+
"BEFORE_1_HOUR",
|
|
370
|
+
"BEFORE_30_MINUTES"
|
|
371
|
+
]).describe(
|
|
372
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
373
|
+
).optional(),
|
|
374
|
+
sendingEnabled: z.boolean().describe(
|
|
375
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
376
|
+
).optional().nullable()
|
|
377
|
+
}).describe("Invoice.").optional(),
|
|
378
|
+
orderConfirmationWithTicketsLink: z.object({
|
|
379
|
+
notificationType: z.enum([
|
|
380
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
381
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
382
|
+
"EMAIL_EVENT_CANCELATION",
|
|
383
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
384
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
385
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
386
|
+
"EMAIL_INVOICE"
|
|
387
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
388
|
+
template: z.object({
|
|
389
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
390
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
391
|
+
descriptionLink: z.object({
|
|
392
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
393
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
394
|
+
}).describe("Description link visibility and display text").optional(),
|
|
395
|
+
calendarLink: z.object({
|
|
396
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
397
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
398
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
399
|
+
onlineConferencingLink: z.object({
|
|
400
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
401
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
402
|
+
}).describe(
|
|
403
|
+
"Online conferencing link visibility and display text"
|
|
404
|
+
).optional(),
|
|
405
|
+
includeTickets: z.boolean().describe(
|
|
406
|
+
"When true the tickets are attached to the order confirmation email."
|
|
407
|
+
).optional().nullable()
|
|
408
|
+
}).describe("Email template values.").optional(),
|
|
409
|
+
reminderTime: z.enum([
|
|
410
|
+
"INSTANT",
|
|
411
|
+
"BEFORE_1_DAY",
|
|
412
|
+
"BEFORE_3_DAYS",
|
|
413
|
+
"BEFORE_1_WEEK",
|
|
414
|
+
"BEFORE_1_HOUR",
|
|
415
|
+
"BEFORE_30_MINUTES"
|
|
416
|
+
]).describe(
|
|
417
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
418
|
+
).optional(),
|
|
419
|
+
sendingEnabled: z.boolean().describe(
|
|
420
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
421
|
+
).optional().nullable()
|
|
422
|
+
}).describe("Order confirmation with tickets link.").optional()
|
|
423
|
+
}).describe("The retrieved NotificationConfig").optional()
|
|
424
|
+
});
|
|
425
|
+
var UpsertNotificationConfigRequest = z.object({
|
|
426
|
+
_id: z.string().describe("Event ID.").regex(
|
|
427
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
428
|
+
"Must be a valid GUID"
|
|
429
|
+
),
|
|
430
|
+
notificationConfig: z.object({
|
|
431
|
+
_id: z.string().describe("Event ID.").regex(
|
|
432
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
433
|
+
"Must be a valid GUID"
|
|
434
|
+
).optional().nullable(),
|
|
435
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
436
|
+
"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."
|
|
437
|
+
).optional().nullable(),
|
|
438
|
+
_createdDate: z.date().describe("Represents the time this NotificationConfig was created.").optional().nullable(),
|
|
439
|
+
_updatedDate: z.date().describe(
|
|
440
|
+
"Represents the time this NotificationConfig was last updated."
|
|
441
|
+
).optional().nullable(),
|
|
442
|
+
rsvpConfirmation: z.object({
|
|
443
|
+
notificationType: z.enum([
|
|
444
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
445
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
446
|
+
"EMAIL_EVENT_CANCELATION",
|
|
447
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
448
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
449
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
450
|
+
"EMAIL_INVOICE"
|
|
451
|
+
]).optional(),
|
|
452
|
+
template: z.object({
|
|
453
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
454
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
455
|
+
descriptionLink: z.object({
|
|
456
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
457
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
458
|
+
}).describe("Description link visibility and display text").optional(),
|
|
459
|
+
calendarLink: z.object({
|
|
460
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
461
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
462
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
463
|
+
onlineConferencingLink: z.object({
|
|
464
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
465
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
466
|
+
}).describe(
|
|
467
|
+
"Online conferencing link visibility and display text"
|
|
468
|
+
).optional(),
|
|
469
|
+
includeTickets: z.boolean().describe(
|
|
470
|
+
"When true the tickets are attached to the order confirmation email."
|
|
471
|
+
).optional().nullable()
|
|
472
|
+
}).describe("Email template values.").optional(),
|
|
473
|
+
reminderTime: z.enum([
|
|
474
|
+
"INSTANT",
|
|
475
|
+
"BEFORE_1_DAY",
|
|
476
|
+
"BEFORE_3_DAYS",
|
|
477
|
+
"BEFORE_1_WEEK",
|
|
478
|
+
"BEFORE_1_HOUR",
|
|
479
|
+
"BEFORE_30_MINUTES"
|
|
480
|
+
]).optional(),
|
|
481
|
+
sendingEnabled: z.boolean().describe(
|
|
482
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
483
|
+
).optional().nullable()
|
|
484
|
+
}).describe("Rsvp confirmation.").optional(),
|
|
485
|
+
newSpotsAvailable: z.object({
|
|
486
|
+
notificationType: z.enum([
|
|
487
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
488
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
489
|
+
"EMAIL_EVENT_CANCELATION",
|
|
490
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
491
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
492
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
493
|
+
"EMAIL_INVOICE"
|
|
494
|
+
]).optional(),
|
|
495
|
+
template: z.object({
|
|
496
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
497
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
498
|
+
descriptionLink: z.object({
|
|
499
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
500
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
501
|
+
}).describe("Description link visibility and display text").optional(),
|
|
502
|
+
calendarLink: z.object({
|
|
503
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
504
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
505
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
506
|
+
onlineConferencingLink: z.object({
|
|
507
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
508
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
509
|
+
}).describe(
|
|
510
|
+
"Online conferencing link visibility and display text"
|
|
511
|
+
).optional(),
|
|
512
|
+
includeTickets: z.boolean().describe(
|
|
513
|
+
"When true the tickets are attached to the order confirmation email."
|
|
514
|
+
).optional().nullable()
|
|
515
|
+
}).describe("Email template values.").optional(),
|
|
516
|
+
reminderTime: z.enum([
|
|
517
|
+
"INSTANT",
|
|
518
|
+
"BEFORE_1_DAY",
|
|
519
|
+
"BEFORE_3_DAYS",
|
|
520
|
+
"BEFORE_1_WEEK",
|
|
521
|
+
"BEFORE_1_HOUR",
|
|
522
|
+
"BEFORE_30_MINUTES"
|
|
523
|
+
]).optional(),
|
|
524
|
+
sendingEnabled: z.boolean().describe(
|
|
525
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
526
|
+
).optional().nullable()
|
|
527
|
+
}).describe("New spots available.").optional(),
|
|
528
|
+
eventCancelation: z.object({
|
|
529
|
+
notificationType: z.enum([
|
|
530
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
531
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
532
|
+
"EMAIL_EVENT_CANCELATION",
|
|
533
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
534
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
535
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
536
|
+
"EMAIL_INVOICE"
|
|
537
|
+
]).optional(),
|
|
538
|
+
template: z.object({
|
|
539
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
540
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
541
|
+
descriptionLink: z.object({
|
|
542
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
543
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
544
|
+
}).describe("Description link visibility and display text").optional(),
|
|
545
|
+
calendarLink: z.object({
|
|
546
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
547
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
548
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
549
|
+
onlineConferencingLink: z.object({
|
|
550
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
551
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
552
|
+
}).describe(
|
|
553
|
+
"Online conferencing link visibility and display text"
|
|
554
|
+
).optional(),
|
|
555
|
+
includeTickets: z.boolean().describe(
|
|
556
|
+
"When true the tickets are attached to the order confirmation email."
|
|
557
|
+
).optional().nullable()
|
|
558
|
+
}).describe("Email template values.").optional(),
|
|
559
|
+
reminderTime: z.enum([
|
|
560
|
+
"INSTANT",
|
|
561
|
+
"BEFORE_1_DAY",
|
|
562
|
+
"BEFORE_3_DAYS",
|
|
563
|
+
"BEFORE_1_WEEK",
|
|
564
|
+
"BEFORE_1_HOUR",
|
|
565
|
+
"BEFORE_30_MINUTES"
|
|
566
|
+
]).optional(),
|
|
567
|
+
sendingEnabled: z.boolean().describe(
|
|
568
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
569
|
+
).optional().nullable()
|
|
570
|
+
}).describe("Event cancelation.").optional(),
|
|
571
|
+
upcomingEventReminder: z.object({
|
|
572
|
+
notificationType: z.enum([
|
|
573
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
574
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
575
|
+
"EMAIL_EVENT_CANCELATION",
|
|
576
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
577
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
578
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
579
|
+
"EMAIL_INVOICE"
|
|
580
|
+
]).optional(),
|
|
581
|
+
template: z.object({
|
|
582
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
583
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
584
|
+
descriptionLink: z.object({
|
|
585
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
586
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
587
|
+
}).describe("Description link visibility and display text").optional(),
|
|
588
|
+
calendarLink: z.object({
|
|
589
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
590
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
591
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
592
|
+
onlineConferencingLink: z.object({
|
|
593
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
594
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
595
|
+
}).describe(
|
|
596
|
+
"Online conferencing link visibility and display text"
|
|
597
|
+
).optional(),
|
|
598
|
+
includeTickets: z.boolean().describe(
|
|
599
|
+
"When true the tickets are attached to the order confirmation email."
|
|
600
|
+
).optional().nullable()
|
|
601
|
+
}).describe("Email template values.").optional(),
|
|
602
|
+
reminderTime: z.enum([
|
|
603
|
+
"INSTANT",
|
|
604
|
+
"BEFORE_1_DAY",
|
|
605
|
+
"BEFORE_3_DAYS",
|
|
606
|
+
"BEFORE_1_WEEK",
|
|
607
|
+
"BEFORE_1_HOUR",
|
|
608
|
+
"BEFORE_30_MINUTES"
|
|
609
|
+
]).optional(),
|
|
610
|
+
sendingEnabled: z.boolean().describe(
|
|
611
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
612
|
+
).optional().nullable()
|
|
613
|
+
}).describe("Event reminder.").optional(),
|
|
614
|
+
orderConfirmation: z.object({
|
|
615
|
+
notificationType: z.enum([
|
|
616
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
617
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
618
|
+
"EMAIL_EVENT_CANCELATION",
|
|
619
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
620
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
621
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
622
|
+
"EMAIL_INVOICE"
|
|
623
|
+
]).optional(),
|
|
624
|
+
template: z.object({
|
|
625
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
626
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
627
|
+
descriptionLink: z.object({
|
|
628
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
629
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
630
|
+
}).describe("Description link visibility and display text").optional(),
|
|
631
|
+
calendarLink: z.object({
|
|
632
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
633
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
634
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
635
|
+
onlineConferencingLink: z.object({
|
|
636
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
637
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
638
|
+
}).describe(
|
|
639
|
+
"Online conferencing link visibility and display text"
|
|
640
|
+
).optional(),
|
|
641
|
+
includeTickets: z.boolean().describe(
|
|
642
|
+
"When true the tickets are attached to the order confirmation email."
|
|
643
|
+
).optional().nullable()
|
|
644
|
+
}).describe("Email template values.").optional(),
|
|
645
|
+
reminderTime: z.enum([
|
|
646
|
+
"INSTANT",
|
|
647
|
+
"BEFORE_1_DAY",
|
|
648
|
+
"BEFORE_3_DAYS",
|
|
649
|
+
"BEFORE_1_WEEK",
|
|
650
|
+
"BEFORE_1_HOUR",
|
|
651
|
+
"BEFORE_30_MINUTES"
|
|
652
|
+
]).optional(),
|
|
653
|
+
sendingEnabled: z.boolean().describe(
|
|
654
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
655
|
+
).optional().nullable()
|
|
656
|
+
}).describe("Order confirmation.").optional(),
|
|
657
|
+
ticketConfirmation: z.object({
|
|
658
|
+
notificationType: z.enum([
|
|
659
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
660
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
661
|
+
"EMAIL_EVENT_CANCELATION",
|
|
662
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
663
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
664
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
665
|
+
"EMAIL_INVOICE"
|
|
666
|
+
]).optional(),
|
|
667
|
+
template: z.object({
|
|
668
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
669
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
670
|
+
descriptionLink: z.object({
|
|
671
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
672
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
673
|
+
}).describe("Description link visibility and display text").optional(),
|
|
674
|
+
calendarLink: z.object({
|
|
675
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
676
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
677
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
678
|
+
onlineConferencingLink: z.object({
|
|
679
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
680
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
681
|
+
}).describe(
|
|
682
|
+
"Online conferencing link visibility and display text"
|
|
683
|
+
).optional(),
|
|
684
|
+
includeTickets: z.boolean().describe(
|
|
685
|
+
"When true the tickets are attached to the order confirmation email."
|
|
686
|
+
).optional().nullable()
|
|
687
|
+
}).describe("Email template values.").optional(),
|
|
688
|
+
reminderTime: z.enum([
|
|
689
|
+
"INSTANT",
|
|
690
|
+
"BEFORE_1_DAY",
|
|
691
|
+
"BEFORE_3_DAYS",
|
|
692
|
+
"BEFORE_1_WEEK",
|
|
693
|
+
"BEFORE_1_HOUR",
|
|
694
|
+
"BEFORE_30_MINUTES"
|
|
695
|
+
]).optional(),
|
|
696
|
+
sendingEnabled: z.boolean().describe(
|
|
697
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
698
|
+
).optional().nullable()
|
|
699
|
+
}).describe("Ticket confirmation.").optional(),
|
|
700
|
+
invoice: z.object({
|
|
701
|
+
notificationType: z.enum([
|
|
702
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
703
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
704
|
+
"EMAIL_EVENT_CANCELATION",
|
|
705
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
706
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
707
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
708
|
+
"EMAIL_INVOICE"
|
|
709
|
+
]).optional(),
|
|
710
|
+
template: z.object({
|
|
711
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
712
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
713
|
+
descriptionLink: z.object({
|
|
714
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
715
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
716
|
+
}).describe("Description link visibility and display text").optional(),
|
|
717
|
+
calendarLink: z.object({
|
|
718
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
719
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
720
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
721
|
+
onlineConferencingLink: z.object({
|
|
722
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
723
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
724
|
+
}).describe(
|
|
725
|
+
"Online conferencing link visibility and display text"
|
|
726
|
+
).optional(),
|
|
727
|
+
includeTickets: z.boolean().describe(
|
|
728
|
+
"When true the tickets are attached to the order confirmation email."
|
|
729
|
+
).optional().nullable()
|
|
730
|
+
}).describe("Email template values.").optional(),
|
|
731
|
+
reminderTime: z.enum([
|
|
732
|
+
"INSTANT",
|
|
733
|
+
"BEFORE_1_DAY",
|
|
734
|
+
"BEFORE_3_DAYS",
|
|
735
|
+
"BEFORE_1_WEEK",
|
|
736
|
+
"BEFORE_1_HOUR",
|
|
737
|
+
"BEFORE_30_MINUTES"
|
|
738
|
+
]).optional(),
|
|
739
|
+
sendingEnabled: z.boolean().describe(
|
|
740
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
741
|
+
).optional().nullable()
|
|
742
|
+
}).describe("Invoice.").optional(),
|
|
743
|
+
orderConfirmationWithTicketsLink: z.object({
|
|
744
|
+
notificationType: z.enum([
|
|
745
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
746
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
747
|
+
"EMAIL_EVENT_CANCELATION",
|
|
748
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
749
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
750
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
751
|
+
"EMAIL_INVOICE"
|
|
752
|
+
]).optional(),
|
|
753
|
+
template: z.object({
|
|
754
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
755
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
756
|
+
descriptionLink: z.object({
|
|
757
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
758
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
759
|
+
}).describe("Description link visibility and display text").optional(),
|
|
760
|
+
calendarLink: z.object({
|
|
761
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
762
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
763
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
764
|
+
onlineConferencingLink: z.object({
|
|
765
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
766
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
767
|
+
}).describe(
|
|
768
|
+
"Online conferencing link visibility and display text"
|
|
769
|
+
).optional(),
|
|
770
|
+
includeTickets: z.boolean().describe(
|
|
771
|
+
"When true the tickets are attached to the order confirmation email."
|
|
772
|
+
).optional().nullable()
|
|
773
|
+
}).describe("Email template values.").optional(),
|
|
774
|
+
reminderTime: z.enum([
|
|
775
|
+
"INSTANT",
|
|
776
|
+
"BEFORE_1_DAY",
|
|
777
|
+
"BEFORE_3_DAYS",
|
|
778
|
+
"BEFORE_1_WEEK",
|
|
779
|
+
"BEFORE_1_HOUR",
|
|
780
|
+
"BEFORE_30_MINUTES"
|
|
781
|
+
]).optional(),
|
|
782
|
+
sendingEnabled: z.boolean().describe(
|
|
783
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
784
|
+
).optional().nullable()
|
|
785
|
+
}).describe("Order confirmation with tickets link.").optional()
|
|
786
|
+
}).describe("NotificationConfig to be upserted")
|
|
787
|
+
});
|
|
788
|
+
var UpsertNotificationConfigResponse = z.object({
|
|
789
|
+
notificationConfig: z.object({
|
|
790
|
+
_id: z.string().describe("Event ID.").regex(
|
|
791
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
792
|
+
"Must be a valid GUID"
|
|
793
|
+
).optional().nullable(),
|
|
794
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
795
|
+
"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."
|
|
796
|
+
).optional().nullable(),
|
|
797
|
+
_createdDate: z.date().describe("Represents the time this NotificationConfig was created.").optional().nullable(),
|
|
798
|
+
_updatedDate: z.date().describe(
|
|
799
|
+
"Represents the time this NotificationConfig was last updated."
|
|
800
|
+
).optional().nullable(),
|
|
801
|
+
rsvpConfirmation: z.object({
|
|
802
|
+
notificationType: z.enum([
|
|
803
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
804
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
805
|
+
"EMAIL_EVENT_CANCELATION",
|
|
806
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
807
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
808
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
809
|
+
"EMAIL_INVOICE"
|
|
810
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
811
|
+
template: z.object({
|
|
812
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
813
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
814
|
+
descriptionLink: z.object({
|
|
815
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
816
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
817
|
+
}).describe("Description link visibility and display text").optional(),
|
|
818
|
+
calendarLink: z.object({
|
|
819
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
820
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
821
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
822
|
+
onlineConferencingLink: z.object({
|
|
823
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
824
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
825
|
+
}).describe(
|
|
826
|
+
"Online conferencing link visibility and display text"
|
|
827
|
+
).optional(),
|
|
828
|
+
includeTickets: z.boolean().describe(
|
|
829
|
+
"When true the tickets are attached to the order confirmation email."
|
|
830
|
+
).optional().nullable()
|
|
831
|
+
}).describe("Email template values.").optional(),
|
|
832
|
+
reminderTime: z.enum([
|
|
833
|
+
"INSTANT",
|
|
834
|
+
"BEFORE_1_DAY",
|
|
835
|
+
"BEFORE_3_DAYS",
|
|
836
|
+
"BEFORE_1_WEEK",
|
|
837
|
+
"BEFORE_1_HOUR",
|
|
838
|
+
"BEFORE_30_MINUTES"
|
|
839
|
+
]).describe(
|
|
840
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
841
|
+
).optional(),
|
|
842
|
+
sendingEnabled: z.boolean().describe(
|
|
843
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
844
|
+
).optional().nullable()
|
|
845
|
+
}).describe("Rsvp confirmation.").optional(),
|
|
846
|
+
newSpotsAvailable: z.object({
|
|
847
|
+
notificationType: z.enum([
|
|
848
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
849
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
850
|
+
"EMAIL_EVENT_CANCELATION",
|
|
851
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
852
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
853
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
854
|
+
"EMAIL_INVOICE"
|
|
855
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
856
|
+
template: z.object({
|
|
857
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
858
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
859
|
+
descriptionLink: z.object({
|
|
860
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
861
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
862
|
+
}).describe("Description link visibility and display text").optional(),
|
|
863
|
+
calendarLink: z.object({
|
|
864
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
865
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
866
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
867
|
+
onlineConferencingLink: z.object({
|
|
868
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
869
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
870
|
+
}).describe(
|
|
871
|
+
"Online conferencing link visibility and display text"
|
|
872
|
+
).optional(),
|
|
873
|
+
includeTickets: z.boolean().describe(
|
|
874
|
+
"When true the tickets are attached to the order confirmation email."
|
|
875
|
+
).optional().nullable()
|
|
876
|
+
}).describe("Email template values.").optional(),
|
|
877
|
+
reminderTime: z.enum([
|
|
878
|
+
"INSTANT",
|
|
879
|
+
"BEFORE_1_DAY",
|
|
880
|
+
"BEFORE_3_DAYS",
|
|
881
|
+
"BEFORE_1_WEEK",
|
|
882
|
+
"BEFORE_1_HOUR",
|
|
883
|
+
"BEFORE_30_MINUTES"
|
|
884
|
+
]).describe(
|
|
885
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
886
|
+
).optional(),
|
|
887
|
+
sendingEnabled: z.boolean().describe(
|
|
888
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
889
|
+
).optional().nullable()
|
|
890
|
+
}).describe("New spots available.").optional(),
|
|
891
|
+
eventCancelation: z.object({
|
|
892
|
+
notificationType: z.enum([
|
|
893
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
894
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
895
|
+
"EMAIL_EVENT_CANCELATION",
|
|
896
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
897
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
898
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
899
|
+
"EMAIL_INVOICE"
|
|
900
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
901
|
+
template: z.object({
|
|
902
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
903
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
904
|
+
descriptionLink: z.object({
|
|
905
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
906
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
907
|
+
}).describe("Description link visibility and display text").optional(),
|
|
908
|
+
calendarLink: z.object({
|
|
909
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
910
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
911
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
912
|
+
onlineConferencingLink: z.object({
|
|
913
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
914
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
915
|
+
}).describe(
|
|
916
|
+
"Online conferencing link visibility and display text"
|
|
917
|
+
).optional(),
|
|
918
|
+
includeTickets: z.boolean().describe(
|
|
919
|
+
"When true the tickets are attached to the order confirmation email."
|
|
920
|
+
).optional().nullable()
|
|
921
|
+
}).describe("Email template values.").optional(),
|
|
922
|
+
reminderTime: z.enum([
|
|
923
|
+
"INSTANT",
|
|
924
|
+
"BEFORE_1_DAY",
|
|
925
|
+
"BEFORE_3_DAYS",
|
|
926
|
+
"BEFORE_1_WEEK",
|
|
927
|
+
"BEFORE_1_HOUR",
|
|
928
|
+
"BEFORE_30_MINUTES"
|
|
929
|
+
]).describe(
|
|
930
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
931
|
+
).optional(),
|
|
932
|
+
sendingEnabled: z.boolean().describe(
|
|
933
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
934
|
+
).optional().nullable()
|
|
935
|
+
}).describe("Event cancelation.").optional(),
|
|
936
|
+
upcomingEventReminder: z.object({
|
|
937
|
+
notificationType: z.enum([
|
|
938
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
939
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
940
|
+
"EMAIL_EVENT_CANCELATION",
|
|
941
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
942
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
943
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
944
|
+
"EMAIL_INVOICE"
|
|
945
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
946
|
+
template: z.object({
|
|
947
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
948
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
949
|
+
descriptionLink: z.object({
|
|
950
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
951
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
952
|
+
}).describe("Description link visibility and display text").optional(),
|
|
953
|
+
calendarLink: z.object({
|
|
954
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
955
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
956
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
957
|
+
onlineConferencingLink: z.object({
|
|
958
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
959
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
960
|
+
}).describe(
|
|
961
|
+
"Online conferencing link visibility and display text"
|
|
962
|
+
).optional(),
|
|
963
|
+
includeTickets: z.boolean().describe(
|
|
964
|
+
"When true the tickets are attached to the order confirmation email."
|
|
965
|
+
).optional().nullable()
|
|
966
|
+
}).describe("Email template values.").optional(),
|
|
967
|
+
reminderTime: z.enum([
|
|
968
|
+
"INSTANT",
|
|
969
|
+
"BEFORE_1_DAY",
|
|
970
|
+
"BEFORE_3_DAYS",
|
|
971
|
+
"BEFORE_1_WEEK",
|
|
972
|
+
"BEFORE_1_HOUR",
|
|
973
|
+
"BEFORE_30_MINUTES"
|
|
974
|
+
]).describe(
|
|
975
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
976
|
+
).optional(),
|
|
977
|
+
sendingEnabled: z.boolean().describe(
|
|
978
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
979
|
+
).optional().nullable()
|
|
980
|
+
}).describe("Event reminder.").optional(),
|
|
981
|
+
orderConfirmation: z.object({
|
|
982
|
+
notificationType: z.enum([
|
|
983
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
984
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
985
|
+
"EMAIL_EVENT_CANCELATION",
|
|
986
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
987
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
988
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
989
|
+
"EMAIL_INVOICE"
|
|
990
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
991
|
+
template: z.object({
|
|
992
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
993
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
994
|
+
descriptionLink: z.object({
|
|
995
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
996
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
997
|
+
}).describe("Description link visibility and display text").optional(),
|
|
998
|
+
calendarLink: z.object({
|
|
999
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1000
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1001
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
1002
|
+
onlineConferencingLink: z.object({
|
|
1003
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1004
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1005
|
+
}).describe(
|
|
1006
|
+
"Online conferencing link visibility and display text"
|
|
1007
|
+
).optional(),
|
|
1008
|
+
includeTickets: z.boolean().describe(
|
|
1009
|
+
"When true the tickets are attached to the order confirmation email."
|
|
1010
|
+
).optional().nullable()
|
|
1011
|
+
}).describe("Email template values.").optional(),
|
|
1012
|
+
reminderTime: z.enum([
|
|
1013
|
+
"INSTANT",
|
|
1014
|
+
"BEFORE_1_DAY",
|
|
1015
|
+
"BEFORE_3_DAYS",
|
|
1016
|
+
"BEFORE_1_WEEK",
|
|
1017
|
+
"BEFORE_1_HOUR",
|
|
1018
|
+
"BEFORE_30_MINUTES"
|
|
1019
|
+
]).describe(
|
|
1020
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
1021
|
+
).optional(),
|
|
1022
|
+
sendingEnabled: z.boolean().describe(
|
|
1023
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
1024
|
+
).optional().nullable()
|
|
1025
|
+
}).describe("Order confirmation.").optional(),
|
|
1026
|
+
ticketConfirmation: z.object({
|
|
1027
|
+
notificationType: z.enum([
|
|
1028
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
1029
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
1030
|
+
"EMAIL_EVENT_CANCELATION",
|
|
1031
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
1032
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
1033
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
1034
|
+
"EMAIL_INVOICE"
|
|
1035
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
1036
|
+
template: z.object({
|
|
1037
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
1038
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
1039
|
+
descriptionLink: z.object({
|
|
1040
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1041
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1042
|
+
}).describe("Description link visibility and display text").optional(),
|
|
1043
|
+
calendarLink: z.object({
|
|
1044
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1045
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1046
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
1047
|
+
onlineConferencingLink: z.object({
|
|
1048
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1049
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1050
|
+
}).describe(
|
|
1051
|
+
"Online conferencing link visibility and display text"
|
|
1052
|
+
).optional(),
|
|
1053
|
+
includeTickets: z.boolean().describe(
|
|
1054
|
+
"When true the tickets are attached to the order confirmation email."
|
|
1055
|
+
).optional().nullable()
|
|
1056
|
+
}).describe("Email template values.").optional(),
|
|
1057
|
+
reminderTime: z.enum([
|
|
1058
|
+
"INSTANT",
|
|
1059
|
+
"BEFORE_1_DAY",
|
|
1060
|
+
"BEFORE_3_DAYS",
|
|
1061
|
+
"BEFORE_1_WEEK",
|
|
1062
|
+
"BEFORE_1_HOUR",
|
|
1063
|
+
"BEFORE_30_MINUTES"
|
|
1064
|
+
]).describe(
|
|
1065
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
1066
|
+
).optional(),
|
|
1067
|
+
sendingEnabled: z.boolean().describe(
|
|
1068
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
1069
|
+
).optional().nullable()
|
|
1070
|
+
}).describe("Ticket confirmation.").optional(),
|
|
1071
|
+
invoice: z.object({
|
|
1072
|
+
notificationType: z.enum([
|
|
1073
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
1074
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
1075
|
+
"EMAIL_EVENT_CANCELATION",
|
|
1076
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
1077
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
1078
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
1079
|
+
"EMAIL_INVOICE"
|
|
1080
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
1081
|
+
template: z.object({
|
|
1082
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
1083
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
1084
|
+
descriptionLink: z.object({
|
|
1085
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1086
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1087
|
+
}).describe("Description link visibility and display text").optional(),
|
|
1088
|
+
calendarLink: z.object({
|
|
1089
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1090
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1091
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
1092
|
+
onlineConferencingLink: z.object({
|
|
1093
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1094
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1095
|
+
}).describe(
|
|
1096
|
+
"Online conferencing link visibility and display text"
|
|
1097
|
+
).optional(),
|
|
1098
|
+
includeTickets: z.boolean().describe(
|
|
1099
|
+
"When true the tickets are attached to the order confirmation email."
|
|
1100
|
+
).optional().nullable()
|
|
1101
|
+
}).describe("Email template values.").optional(),
|
|
1102
|
+
reminderTime: z.enum([
|
|
1103
|
+
"INSTANT",
|
|
1104
|
+
"BEFORE_1_DAY",
|
|
1105
|
+
"BEFORE_3_DAYS",
|
|
1106
|
+
"BEFORE_1_WEEK",
|
|
1107
|
+
"BEFORE_1_HOUR",
|
|
1108
|
+
"BEFORE_30_MINUTES"
|
|
1109
|
+
]).describe(
|
|
1110
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
1111
|
+
).optional(),
|
|
1112
|
+
sendingEnabled: z.boolean().describe(
|
|
1113
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
1114
|
+
).optional().nullable()
|
|
1115
|
+
}).describe("Invoice.").optional(),
|
|
1116
|
+
orderConfirmationWithTicketsLink: z.object({
|
|
1117
|
+
notificationType: z.enum([
|
|
1118
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
1119
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
1120
|
+
"EMAIL_EVENT_CANCELATION",
|
|
1121
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
1122
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
1123
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
1124
|
+
"EMAIL_INVOICE"
|
|
1125
|
+
]).describe("Predefined id of the notification type.").optional(),
|
|
1126
|
+
template: z.object({
|
|
1127
|
+
subject: z.string().describe("Email subject.").min(1).max(100).optional().nullable(),
|
|
1128
|
+
body: z.string().describe("Plain text message body.").min(1).max(1e3).optional().nullable(),
|
|
1129
|
+
descriptionLink: z.object({
|
|
1130
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1131
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1132
|
+
}).describe("Description link visibility and display text").optional(),
|
|
1133
|
+
calendarLink: z.object({
|
|
1134
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1135
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1136
|
+
}).describe("Calendar link visibility and display text").optional(),
|
|
1137
|
+
onlineConferencingLink: z.object({
|
|
1138
|
+
display: z.boolean().describe("When true the link is added to the email.").optional().nullable(),
|
|
1139
|
+
linkText: z.string().describe("Text of the link.").max(60).optional().nullable()
|
|
1140
|
+
}).describe(
|
|
1141
|
+
"Online conferencing link visibility and display text"
|
|
1142
|
+
).optional(),
|
|
1143
|
+
includeTickets: z.boolean().describe(
|
|
1144
|
+
"When true the tickets are attached to the order confirmation email."
|
|
1145
|
+
).optional().nullable()
|
|
1146
|
+
}).describe("Email template values.").optional(),
|
|
1147
|
+
reminderTime: z.enum([
|
|
1148
|
+
"INSTANT",
|
|
1149
|
+
"BEFORE_1_DAY",
|
|
1150
|
+
"BEFORE_3_DAYS",
|
|
1151
|
+
"BEFORE_1_WEEK",
|
|
1152
|
+
"BEFORE_1_HOUR",
|
|
1153
|
+
"BEFORE_30_MINUTES"
|
|
1154
|
+
]).describe(
|
|
1155
|
+
"Desired timing of the notification in hours respectfully to event start time.\nFor example if value is 0 then notification is sent at the start of the event."
|
|
1156
|
+
).optional(),
|
|
1157
|
+
sendingEnabled: z.boolean().describe(
|
|
1158
|
+
"When true the notification will be sent when certain trigger occurs."
|
|
1159
|
+
).optional().nullable()
|
|
1160
|
+
}).describe("Order confirmation with tickets link.").optional()
|
|
1161
|
+
}).describe("The upserted NotificationConfig").optional()
|
|
1162
|
+
});
|
|
1163
|
+
var TriggerNotificationRequest = z.object({
|
|
1164
|
+
options: z.intersection(
|
|
1165
|
+
z.object({}),
|
|
1166
|
+
z.intersection(
|
|
1167
|
+
z.xor([
|
|
1168
|
+
z.object({
|
|
1169
|
+
pushNotificationType: z.never().optional(),
|
|
1170
|
+
emailNotificationType: z.enum([
|
|
1171
|
+
"EMAIL_RSVP_CONFIRMATION",
|
|
1172
|
+
"EMAIL_NEW_SPOTS_AVAILABLE",
|
|
1173
|
+
"EMAIL_EVENT_CANCELATION",
|
|
1174
|
+
"EMAIL_UPCOMING_EVENT_REMINDER",
|
|
1175
|
+
"EMAIL_ORDER_CONFIRMATION",
|
|
1176
|
+
"EMAIL_TICKET_CONFIRMATION",
|
|
1177
|
+
"EMAIL_INVOICE"
|
|
1178
|
+
])
|
|
1179
|
+
}),
|
|
1180
|
+
z.object({
|
|
1181
|
+
emailNotificationType: z.never().optional(),
|
|
1182
|
+
pushNotificationType: z.enum([
|
|
1183
|
+
"PUSH_EVENT_UPDATED",
|
|
1184
|
+
"PUSH_EVENT_CANCELATION",
|
|
1185
|
+
"PUSH_UPCOMING_EVENT_REMINDER",
|
|
1186
|
+
"PUSH_EVENT_CREATED"
|
|
1187
|
+
])
|
|
1188
|
+
})
|
|
1189
|
+
]),
|
|
1190
|
+
z.xor([
|
|
1191
|
+
z.object({
|
|
1192
|
+
orderGuest: z.never().optional(),
|
|
1193
|
+
eventGuests: z.never().optional(),
|
|
1194
|
+
ticketGuest: z.never().optional(),
|
|
1195
|
+
rsvpGuest: z.object({
|
|
1196
|
+
eventId: z.string().describe("Event id").regex(
|
|
1197
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1198
|
+
"Must be a valid GUID"
|
|
1199
|
+
).optional(),
|
|
1200
|
+
rsvpId: z.string().describe("Rsvp id").regex(
|
|
1201
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1202
|
+
"Must be a valid GUID"
|
|
1203
|
+
).optional()
|
|
1204
|
+
}).describe("Rsvp guest info")
|
|
1205
|
+
}),
|
|
1206
|
+
z.object({
|
|
1207
|
+
rsvpGuest: z.never().optional(),
|
|
1208
|
+
eventGuests: z.never().optional(),
|
|
1209
|
+
ticketGuest: z.never().optional(),
|
|
1210
|
+
orderGuest: z.object({
|
|
1211
|
+
eventId: z.string().describe("Event id").regex(
|
|
1212
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1213
|
+
"Must be a valid GUID"
|
|
1214
|
+
).optional(),
|
|
1215
|
+
orderNumber: z.string().describe("Order number").max(36).optional()
|
|
1216
|
+
}).describe("Order guest info")
|
|
1217
|
+
}),
|
|
1218
|
+
z.object({
|
|
1219
|
+
rsvpGuest: z.never().optional(),
|
|
1220
|
+
orderGuest: z.never().optional(),
|
|
1221
|
+
ticketGuest: z.never().optional(),
|
|
1222
|
+
eventGuests: z.object({
|
|
1223
|
+
eventId: z.string().describe("Event id").regex(
|
|
1224
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1225
|
+
"Must be a valid GUID"
|
|
1226
|
+
).optional()
|
|
1227
|
+
}).describe("Event guests info")
|
|
1228
|
+
}),
|
|
1229
|
+
z.object({
|
|
1230
|
+
rsvpGuest: z.never().optional(),
|
|
1231
|
+
orderGuest: z.never().optional(),
|
|
1232
|
+
eventGuests: z.never().optional(),
|
|
1233
|
+
ticketGuest: z.object({
|
|
1234
|
+
eventId: z.string().describe("Event id").regex(
|
|
1235
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1236
|
+
"Must be a valid GUID"
|
|
1237
|
+
).optional(),
|
|
1238
|
+
orderNumber: z.string().describe("Order number").max(36).optional().nullable(),
|
|
1239
|
+
ticketNumber: z.array(z.string()).min(1).max(100).optional()
|
|
1240
|
+
}).describe("Ticket guests info")
|
|
1241
|
+
})
|
|
1242
|
+
])
|
|
1243
|
+
)
|
|
1244
|
+
)
|
|
1245
|
+
});
|
|
1246
|
+
var TriggerNotificationResponse = z.object({});
|
|
1247
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1248
|
+
0 && (module.exports = {
|
|
1249
|
+
ResolveNotificationConfigRequest,
|
|
1250
|
+
ResolveNotificationConfigResponse,
|
|
1251
|
+
TriggerNotificationRequest,
|
|
1252
|
+
TriggerNotificationResponse,
|
|
1253
|
+
UpsertNotificationConfigRequest,
|
|
1254
|
+
UpsertNotificationConfigResponse
|
|
1255
|
+
});
|
|
1256
|
+
//# sourceMappingURL=schemas.js.map
|