@wix/auto_sdk_events_notifications 1.0.12 → 1.0.14
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/{internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.mts} +277 -390
- package/build/{cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.ts} +277 -390
- package/build/index.d.mts +38 -0
- package/build/index.d.ts +38 -0
- package/build/index.js +857 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +778 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.mts} +277 -390
- package/build/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → internal/events-notifications-v2-notification-config-notifications.universal-DIjek3EA.d.ts} +277 -390
- package/build/internal/index.d.mts +38 -0
- package/build/internal/index.d.ts +38 -0
- package/build/internal/index.js +857 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +778 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +261 -0
- package/build/internal/meta.d.ts +261 -0
- package/build/internal/meta.js +258 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +229 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +261 -0
- package/build/meta.d.ts +261 -0
- package/build/meta.js +258 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +229 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +14 -13
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
- package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3588
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { a5 as TriggerNotificationRequest$1, ac as TriggerNotificationResponse$1, de as ResolveNotificationConfigRequest$1, R as ResolveNotificationConfigResponse$1, df as UpsertNotificationConfigRequest$1, a as UpsertNotificationConfigResponse$1 } from './events-notifications-v2-notification-config-notifications.universal-DIjek3EA.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?: EmailNotificationType;
|
|
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?: EmailNotificationReminderTime;
|
|
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
|
+
interface EmailTemplate {
|
|
77
|
+
/**
|
|
78
|
+
* Email subject.
|
|
79
|
+
* @minLength 1
|
|
80
|
+
* @maxLength 100
|
|
81
|
+
*/
|
|
82
|
+
subject?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Plain text message body.
|
|
85
|
+
* @minLength 1
|
|
86
|
+
* @maxLength 1000
|
|
87
|
+
*/
|
|
88
|
+
body?: string | null;
|
|
89
|
+
/** Description link visibility and display text */
|
|
90
|
+
descriptionLink?: Link;
|
|
91
|
+
/** Calendar link visibility and display text */
|
|
92
|
+
calendarLink?: Link;
|
|
93
|
+
/** Online conferencing link visibility and display text */
|
|
94
|
+
onlineConferencingLink?: Link;
|
|
95
|
+
/** When true the tickets are attached to the order confirmation email. */
|
|
96
|
+
includeTickets?: boolean | null;
|
|
97
|
+
}
|
|
98
|
+
interface Link {
|
|
99
|
+
/** When true the link is added to the email. */
|
|
100
|
+
display?: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* Text of the link.
|
|
103
|
+
* @maxLength 60
|
|
104
|
+
*/
|
|
105
|
+
linkText?: string | null;
|
|
106
|
+
}
|
|
107
|
+
declare enum EmailNotificationReminderTime {
|
|
108
|
+
/** Default value. This value is unused. */
|
|
109
|
+
UNKNOWN_REMINDER_TIME = "UNKNOWN_REMINDER_TIME",
|
|
110
|
+
/** Notification is sent instantly */
|
|
111
|
+
INSTANT = "INSTANT",
|
|
112
|
+
/** 24 hours prior */
|
|
113
|
+
BEFORE_1_DAY = "BEFORE_1_DAY",
|
|
114
|
+
/** 3 days prior */
|
|
115
|
+
BEFORE_3_DAYS = "BEFORE_3_DAYS",
|
|
116
|
+
/** 7 days prior */
|
|
117
|
+
BEFORE_1_WEEK = "BEFORE_1_WEEK",
|
|
118
|
+
/** 1 hour prior */
|
|
119
|
+
BEFORE_1_HOUR = "BEFORE_1_HOUR",
|
|
120
|
+
/** 30 minutes prior */
|
|
121
|
+
BEFORE_30_MINUTES = "BEFORE_30_MINUTES"
|
|
122
|
+
}
|
|
123
|
+
interface TriggerNotificationRequest extends TriggerNotificationRequestNotificationOneOf, TriggerNotificationRequestGuestsOneOf {
|
|
124
|
+
/** Email notification type */
|
|
125
|
+
emailNotificationType?: EmailNotificationType;
|
|
126
|
+
/** Push notification type */
|
|
127
|
+
pushNotificationType?: PushNotificationType;
|
|
128
|
+
/** Rsvp guest info */
|
|
129
|
+
rsvpGuest?: RsvpGuest;
|
|
130
|
+
/** Order guest info */
|
|
131
|
+
orderGuest?: OrderGuest;
|
|
132
|
+
/** Event guests info */
|
|
133
|
+
eventGuests?: EventGuests;
|
|
134
|
+
/** Ticket guests info */
|
|
135
|
+
ticketGuest?: TicketGuest;
|
|
136
|
+
}
|
|
137
|
+
/** @oneof */
|
|
138
|
+
interface TriggerNotificationRequestNotificationOneOf {
|
|
139
|
+
/** Email notification type */
|
|
140
|
+
emailNotificationType?: EmailNotificationType;
|
|
141
|
+
/** Push notification type */
|
|
142
|
+
pushNotificationType?: PushNotificationType;
|
|
143
|
+
}
|
|
144
|
+
/** @oneof */
|
|
145
|
+
interface TriggerNotificationRequestGuestsOneOf {
|
|
146
|
+
/** Rsvp guest info */
|
|
147
|
+
rsvpGuest?: RsvpGuest;
|
|
148
|
+
/** Order guest info */
|
|
149
|
+
orderGuest?: OrderGuest;
|
|
150
|
+
/** Event guests info */
|
|
151
|
+
eventGuests?: EventGuests;
|
|
152
|
+
/** Ticket guests info */
|
|
153
|
+
ticketGuest?: TicketGuest;
|
|
154
|
+
}
|
|
155
|
+
declare enum PushNotificationType {
|
|
156
|
+
/** This is default value. This value is unused. */
|
|
157
|
+
UNKNOWN_PUSH_TYPE = "UNKNOWN_PUSH_TYPE",
|
|
158
|
+
/** Triggered when event is updated. */
|
|
159
|
+
PUSH_EVENT_UPDATED = "PUSH_EVENT_UPDATED",
|
|
160
|
+
/** Triggered when event is canceled. */
|
|
161
|
+
PUSH_EVENT_CANCELATION = "PUSH_EVENT_CANCELATION",
|
|
162
|
+
/** Triggered before the event start time. */
|
|
163
|
+
PUSH_UPCOMING_EVENT_REMINDER = "PUSH_UPCOMING_EVENT_REMINDER",
|
|
164
|
+
/** Triggered when event is created. */
|
|
165
|
+
PUSH_EVENT_CREATED = "PUSH_EVENT_CREATED"
|
|
166
|
+
}
|
|
167
|
+
/** Single guest associated to the RSVP */
|
|
168
|
+
interface RsvpGuest {
|
|
169
|
+
/**
|
|
170
|
+
* Event id
|
|
171
|
+
* @format GUID
|
|
172
|
+
*/
|
|
173
|
+
eventId?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Rsvp id
|
|
176
|
+
* @format GUID
|
|
177
|
+
*/
|
|
178
|
+
rsvpId?: string;
|
|
179
|
+
}
|
|
180
|
+
/** Single guest associated to the Order */
|
|
181
|
+
interface OrderGuest {
|
|
182
|
+
/**
|
|
183
|
+
* Event id
|
|
184
|
+
* @format GUID
|
|
185
|
+
*/
|
|
186
|
+
eventId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Order number
|
|
189
|
+
* @maxLength 36
|
|
190
|
+
*/
|
|
191
|
+
orderNumber?: string;
|
|
192
|
+
}
|
|
193
|
+
/** All event guest from RSVPs and Orders */
|
|
194
|
+
interface EventGuests {
|
|
195
|
+
/**
|
|
196
|
+
* Event id
|
|
197
|
+
* @format GUID
|
|
198
|
+
*/
|
|
199
|
+
eventId?: string;
|
|
200
|
+
}
|
|
201
|
+
/** Multiple guests associated to Tickets */
|
|
202
|
+
interface TicketGuest {
|
|
203
|
+
/**
|
|
204
|
+
* Event id
|
|
205
|
+
* @format GUID
|
|
206
|
+
*/
|
|
207
|
+
eventId?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Order number
|
|
210
|
+
* @maxLength 36
|
|
211
|
+
*/
|
|
212
|
+
orderNumber?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Ticket numbers must be from the same order only.
|
|
215
|
+
* @minSize 1
|
|
216
|
+
* @maxSize 100
|
|
217
|
+
* @maxLength 36
|
|
218
|
+
*/
|
|
219
|
+
ticketNumber?: string[];
|
|
220
|
+
}
|
|
221
|
+
interface TriggerNotificationResponse {
|
|
222
|
+
}
|
|
223
|
+
interface ResolveNotificationConfigRequest {
|
|
224
|
+
/**
|
|
225
|
+
* Id of the NotificationConfig to retrieve
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
228
|
+
notificationConfigId: string;
|
|
229
|
+
}
|
|
230
|
+
interface ResolveNotificationConfigResponse {
|
|
231
|
+
/** The retrieved NotificationConfig */
|
|
232
|
+
notificationConfig?: NotificationConfig;
|
|
233
|
+
}
|
|
234
|
+
interface UpsertNotificationConfigRequest {
|
|
235
|
+
/** NotificationConfig to be upserted */
|
|
236
|
+
notificationConfig: NotificationConfig;
|
|
237
|
+
}
|
|
238
|
+
interface UpsertNotificationConfigResponse {
|
|
239
|
+
/** The upserted NotificationConfig */
|
|
240
|
+
notificationConfig?: NotificationConfig;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
244
|
+
getUrl: (context: any) => string;
|
|
245
|
+
httpMethod: K;
|
|
246
|
+
path: string;
|
|
247
|
+
pathParams: M;
|
|
248
|
+
__requestType: T;
|
|
249
|
+
__originalRequestType: S;
|
|
250
|
+
__responseType: Q;
|
|
251
|
+
__originalResponseType: R;
|
|
252
|
+
};
|
|
253
|
+
declare function triggerNotification(): __PublicMethodMetaInfo<'POST', {}, TriggerNotificationRequest$1, TriggerNotificationRequest, TriggerNotificationResponse$1, TriggerNotificationResponse>;
|
|
254
|
+
declare function resolveNotificationConfig(): __PublicMethodMetaInfo<'GET', {
|
|
255
|
+
notificationConfigId: string;
|
|
256
|
+
}, ResolveNotificationConfigRequest$1, ResolveNotificationConfigRequest, ResolveNotificationConfigResponse$1, ResolveNotificationConfigResponse>;
|
|
257
|
+
declare function upsertNotificationConfig(): __PublicMethodMetaInfo<'POST', {
|
|
258
|
+
notificationConfigId: string;
|
|
259
|
+
}, UpsertNotificationConfigRequest$1, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse$1, UpsertNotificationConfigResponse>;
|
|
260
|
+
|
|
261
|
+
export { type __PublicMethodMetaInfo, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { a5 as TriggerNotificationRequest$1, ac as TriggerNotificationResponse$1, de as ResolveNotificationConfigRequest$1, R as ResolveNotificationConfigResponse$1, df as UpsertNotificationConfigRequest$1, a as UpsertNotificationConfigResponse$1 } from './events-notifications-v2-notification-config-notifications.universal-DIjek3EA.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?: EmailNotificationType;
|
|
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?: EmailNotificationReminderTime;
|
|
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
|
+
interface EmailTemplate {
|
|
77
|
+
/**
|
|
78
|
+
* Email subject.
|
|
79
|
+
* @minLength 1
|
|
80
|
+
* @maxLength 100
|
|
81
|
+
*/
|
|
82
|
+
subject?: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Plain text message body.
|
|
85
|
+
* @minLength 1
|
|
86
|
+
* @maxLength 1000
|
|
87
|
+
*/
|
|
88
|
+
body?: string | null;
|
|
89
|
+
/** Description link visibility and display text */
|
|
90
|
+
descriptionLink?: Link;
|
|
91
|
+
/** Calendar link visibility and display text */
|
|
92
|
+
calendarLink?: Link;
|
|
93
|
+
/** Online conferencing link visibility and display text */
|
|
94
|
+
onlineConferencingLink?: Link;
|
|
95
|
+
/** When true the tickets are attached to the order confirmation email. */
|
|
96
|
+
includeTickets?: boolean | null;
|
|
97
|
+
}
|
|
98
|
+
interface Link {
|
|
99
|
+
/** When true the link is added to the email. */
|
|
100
|
+
display?: boolean | null;
|
|
101
|
+
/**
|
|
102
|
+
* Text of the link.
|
|
103
|
+
* @maxLength 60
|
|
104
|
+
*/
|
|
105
|
+
linkText?: string | null;
|
|
106
|
+
}
|
|
107
|
+
declare enum EmailNotificationReminderTime {
|
|
108
|
+
/** Default value. This value is unused. */
|
|
109
|
+
UNKNOWN_REMINDER_TIME = "UNKNOWN_REMINDER_TIME",
|
|
110
|
+
/** Notification is sent instantly */
|
|
111
|
+
INSTANT = "INSTANT",
|
|
112
|
+
/** 24 hours prior */
|
|
113
|
+
BEFORE_1_DAY = "BEFORE_1_DAY",
|
|
114
|
+
/** 3 days prior */
|
|
115
|
+
BEFORE_3_DAYS = "BEFORE_3_DAYS",
|
|
116
|
+
/** 7 days prior */
|
|
117
|
+
BEFORE_1_WEEK = "BEFORE_1_WEEK",
|
|
118
|
+
/** 1 hour prior */
|
|
119
|
+
BEFORE_1_HOUR = "BEFORE_1_HOUR",
|
|
120
|
+
/** 30 minutes prior */
|
|
121
|
+
BEFORE_30_MINUTES = "BEFORE_30_MINUTES"
|
|
122
|
+
}
|
|
123
|
+
interface TriggerNotificationRequest extends TriggerNotificationRequestNotificationOneOf, TriggerNotificationRequestGuestsOneOf {
|
|
124
|
+
/** Email notification type */
|
|
125
|
+
emailNotificationType?: EmailNotificationType;
|
|
126
|
+
/** Push notification type */
|
|
127
|
+
pushNotificationType?: PushNotificationType;
|
|
128
|
+
/** Rsvp guest info */
|
|
129
|
+
rsvpGuest?: RsvpGuest;
|
|
130
|
+
/** Order guest info */
|
|
131
|
+
orderGuest?: OrderGuest;
|
|
132
|
+
/** Event guests info */
|
|
133
|
+
eventGuests?: EventGuests;
|
|
134
|
+
/** Ticket guests info */
|
|
135
|
+
ticketGuest?: TicketGuest;
|
|
136
|
+
}
|
|
137
|
+
/** @oneof */
|
|
138
|
+
interface TriggerNotificationRequestNotificationOneOf {
|
|
139
|
+
/** Email notification type */
|
|
140
|
+
emailNotificationType?: EmailNotificationType;
|
|
141
|
+
/** Push notification type */
|
|
142
|
+
pushNotificationType?: PushNotificationType;
|
|
143
|
+
}
|
|
144
|
+
/** @oneof */
|
|
145
|
+
interface TriggerNotificationRequestGuestsOneOf {
|
|
146
|
+
/** Rsvp guest info */
|
|
147
|
+
rsvpGuest?: RsvpGuest;
|
|
148
|
+
/** Order guest info */
|
|
149
|
+
orderGuest?: OrderGuest;
|
|
150
|
+
/** Event guests info */
|
|
151
|
+
eventGuests?: EventGuests;
|
|
152
|
+
/** Ticket guests info */
|
|
153
|
+
ticketGuest?: TicketGuest;
|
|
154
|
+
}
|
|
155
|
+
declare enum PushNotificationType {
|
|
156
|
+
/** This is default value. This value is unused. */
|
|
157
|
+
UNKNOWN_PUSH_TYPE = "UNKNOWN_PUSH_TYPE",
|
|
158
|
+
/** Triggered when event is updated. */
|
|
159
|
+
PUSH_EVENT_UPDATED = "PUSH_EVENT_UPDATED",
|
|
160
|
+
/** Triggered when event is canceled. */
|
|
161
|
+
PUSH_EVENT_CANCELATION = "PUSH_EVENT_CANCELATION",
|
|
162
|
+
/** Triggered before the event start time. */
|
|
163
|
+
PUSH_UPCOMING_EVENT_REMINDER = "PUSH_UPCOMING_EVENT_REMINDER",
|
|
164
|
+
/** Triggered when event is created. */
|
|
165
|
+
PUSH_EVENT_CREATED = "PUSH_EVENT_CREATED"
|
|
166
|
+
}
|
|
167
|
+
/** Single guest associated to the RSVP */
|
|
168
|
+
interface RsvpGuest {
|
|
169
|
+
/**
|
|
170
|
+
* Event id
|
|
171
|
+
* @format GUID
|
|
172
|
+
*/
|
|
173
|
+
eventId?: string;
|
|
174
|
+
/**
|
|
175
|
+
* Rsvp id
|
|
176
|
+
* @format GUID
|
|
177
|
+
*/
|
|
178
|
+
rsvpId?: string;
|
|
179
|
+
}
|
|
180
|
+
/** Single guest associated to the Order */
|
|
181
|
+
interface OrderGuest {
|
|
182
|
+
/**
|
|
183
|
+
* Event id
|
|
184
|
+
* @format GUID
|
|
185
|
+
*/
|
|
186
|
+
eventId?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Order number
|
|
189
|
+
* @maxLength 36
|
|
190
|
+
*/
|
|
191
|
+
orderNumber?: string;
|
|
192
|
+
}
|
|
193
|
+
/** All event guest from RSVPs and Orders */
|
|
194
|
+
interface EventGuests {
|
|
195
|
+
/**
|
|
196
|
+
* Event id
|
|
197
|
+
* @format GUID
|
|
198
|
+
*/
|
|
199
|
+
eventId?: string;
|
|
200
|
+
}
|
|
201
|
+
/** Multiple guests associated to Tickets */
|
|
202
|
+
interface TicketGuest {
|
|
203
|
+
/**
|
|
204
|
+
* Event id
|
|
205
|
+
* @format GUID
|
|
206
|
+
*/
|
|
207
|
+
eventId?: string;
|
|
208
|
+
/**
|
|
209
|
+
* Order number
|
|
210
|
+
* @maxLength 36
|
|
211
|
+
*/
|
|
212
|
+
orderNumber?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
* Ticket numbers must be from the same order only.
|
|
215
|
+
* @minSize 1
|
|
216
|
+
* @maxSize 100
|
|
217
|
+
* @maxLength 36
|
|
218
|
+
*/
|
|
219
|
+
ticketNumber?: string[];
|
|
220
|
+
}
|
|
221
|
+
interface TriggerNotificationResponse {
|
|
222
|
+
}
|
|
223
|
+
interface ResolveNotificationConfigRequest {
|
|
224
|
+
/**
|
|
225
|
+
* Id of the NotificationConfig to retrieve
|
|
226
|
+
* @format GUID
|
|
227
|
+
*/
|
|
228
|
+
notificationConfigId: string;
|
|
229
|
+
}
|
|
230
|
+
interface ResolveNotificationConfigResponse {
|
|
231
|
+
/** The retrieved NotificationConfig */
|
|
232
|
+
notificationConfig?: NotificationConfig;
|
|
233
|
+
}
|
|
234
|
+
interface UpsertNotificationConfigRequest {
|
|
235
|
+
/** NotificationConfig to be upserted */
|
|
236
|
+
notificationConfig: NotificationConfig;
|
|
237
|
+
}
|
|
238
|
+
interface UpsertNotificationConfigResponse {
|
|
239
|
+
/** The upserted NotificationConfig */
|
|
240
|
+
notificationConfig?: NotificationConfig;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
244
|
+
getUrl: (context: any) => string;
|
|
245
|
+
httpMethod: K;
|
|
246
|
+
path: string;
|
|
247
|
+
pathParams: M;
|
|
248
|
+
__requestType: T;
|
|
249
|
+
__originalRequestType: S;
|
|
250
|
+
__responseType: Q;
|
|
251
|
+
__originalResponseType: R;
|
|
252
|
+
};
|
|
253
|
+
declare function triggerNotification(): __PublicMethodMetaInfo<'POST', {}, TriggerNotificationRequest$1, TriggerNotificationRequest, TriggerNotificationResponse$1, TriggerNotificationResponse>;
|
|
254
|
+
declare function resolveNotificationConfig(): __PublicMethodMetaInfo<'GET', {
|
|
255
|
+
notificationConfigId: string;
|
|
256
|
+
}, ResolveNotificationConfigRequest$1, ResolveNotificationConfigRequest, ResolveNotificationConfigResponse$1, ResolveNotificationConfigResponse>;
|
|
257
|
+
declare function upsertNotificationConfig(): __PublicMethodMetaInfo<'POST', {
|
|
258
|
+
notificationConfigId: string;
|
|
259
|
+
}, UpsertNotificationConfigRequest$1, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse$1, UpsertNotificationConfigResponse>;
|
|
260
|
+
|
|
261
|
+
export { type __PublicMethodMetaInfo, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };
|