@wix/auto_sdk_events_notifications 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +9 -9
  2. package/build/cjs/index.js +99 -99
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +956 -956
  5. package/build/cjs/index.typings.js +91 -91
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +610 -610
  8. package/build/cjs/meta.js +77 -77
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +9 -9
  11. package/build/es/index.mjs +99 -99
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +956 -956
  14. package/build/es/index.typings.mjs +91 -91
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +610 -610
  17. package/build/es/meta.mjs +77 -77
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +9 -9
  20. package/build/internal/cjs/index.js +99 -99
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +956 -956
  23. package/build/internal/cjs/index.typings.js +91 -91
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +610 -610
  26. package/build/internal/cjs/meta.js +77 -77
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +9 -9
  29. package/build/internal/es/index.mjs +99 -99
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +956 -956
  32. package/build/internal/es/index.typings.mjs +91 -91
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +610 -610
  35. package/build/internal/es/meta.mjs +77 -77
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -5,7 +5,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
5
5
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
6
6
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
7
7
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
8
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
8
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
9
9
  const domainToMappings = {
10
10
  "api._api_base_domain_": [
11
11
  {
@@ -38,7 +38,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
38
38
  };
39
39
  return resolveUrl(Object.assign(opts, { domainToMappings }));
40
40
  }
41
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
41
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
42
42
  const domainToMappings = {
43
43
  "api._api_base_domain_": [
44
44
  {
@@ -72,27 +72,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
72
72
  return resolveUrl(Object.assign(opts, { domainToMappings }));
73
73
  }
74
74
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
75
- function triggerNotification(payload) {
76
- function __triggerNotification({ host }) {
77
- const metadata = {
78
- entityFqdn: "wix.events.notifications.v2.notification_config",
79
- method: "POST",
80
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
81
- packageName: PACKAGE_NAME,
82
- migrationOptions: {
83
- optInTransformResponse: true
84
- },
85
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
86
- protoPath: "/v2/notifications/trigger",
87
- data: payload,
88
- host
89
- }),
90
- data: payload
91
- };
92
- return metadata;
93
- }
94
- return __triggerNotification;
95
- }
96
75
  function resolveNotificationConfig(payload) {
97
76
  function __resolveNotificationConfig({ host }) {
98
77
  const metadata = {
@@ -166,6 +145,27 @@ function upsertNotificationConfig(payload) {
166
145
  }
167
146
  return __upsertNotificationConfig;
168
147
  }
148
+ function triggerNotification(payload) {
149
+ function __triggerNotification({ host }) {
150
+ const metadata = {
151
+ entityFqdn: "wix.events.notifications.v2.notification_config",
152
+ method: "POST",
153
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
154
+ packageName: PACKAGE_NAME,
155
+ migrationOptions: {
156
+ optInTransformResponse: true
157
+ },
158
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
159
+ protoPath: "/v2/notifications/trigger",
160
+ data: payload,
161
+ host
162
+ }),
163
+ data: payload
164
+ };
165
+ return metadata;
166
+ }
167
+ return __triggerNotification;
168
+ }
169
169
 
170
170
  // src/events-notifications-v2-notification-config-notifications.types.ts
171
171
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -189,14 +189,11 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
189
189
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
190
190
  return EmailNotificationReminderTime2;
191
191
  })(EmailNotificationReminderTime || {});
192
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
193
- PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
194
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
195
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
196
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
197
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
198
- return PushNotificationType2;
199
- })(PushNotificationType || {});
192
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
193
+ LocationType2["VENUE"] = "VENUE";
194
+ LocationType2["ONLINE"] = "ONLINE";
195
+ return LocationType2;
196
+ })(LocationType || {});
200
197
  var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
201
198
  SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
202
199
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
@@ -207,6 +204,37 @@ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
207
204
  SubdivisionType2["COUNTRY"] = "COUNTRY";
208
205
  return SubdivisionType2;
209
206
  })(SubdivisionType || {});
207
+ var Status = /* @__PURE__ */ ((Status2) => {
208
+ Status2["ONE_TIME"] = "ONE_TIME";
209
+ Status2["RECURRING"] = "RECURRING";
210
+ Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
211
+ Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
212
+ Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
213
+ return Status2;
214
+ })(Status || {});
215
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
216
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
217
+ EventStatus2["STARTED"] = "STARTED";
218
+ EventStatus2["ENDED"] = "ENDED";
219
+ EventStatus2["CANCELED"] = "CANCELED";
220
+ return EventStatus2;
221
+ })(EventStatus || {});
222
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
223
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
224
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
225
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
226
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
227
+ WebhookIdentityType2["APP"] = "APP";
228
+ return WebhookIdentityType2;
229
+ })(WebhookIdentityType || {});
230
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
231
+ PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
232
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
233
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
234
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
235
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
236
+ return PushNotificationType2;
237
+ })(PushNotificationType || {});
210
238
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
211
239
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
212
240
  OrderStatus2["FREE"] = "FREE";
@@ -237,39 +265,11 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
237
265
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
238
266
  return FeeType2;
239
267
  })(FeeType || {});
240
- var LocationType = /* @__PURE__ */ ((LocationType2) => {
241
- LocationType2["VENUE"] = "VENUE";
242
- LocationType2["ONLINE"] = "ONLINE";
243
- return LocationType2;
244
- })(LocationType || {});
245
- var Status = /* @__PURE__ */ ((Status2) => {
246
- Status2["ONE_TIME"] = "ONE_TIME";
247
- Status2["RECURRING"] = "RECURRING";
248
- Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
249
- Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
250
- Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
251
- return Status2;
252
- })(Status || {});
253
- var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
254
- EventStatus2["SCHEDULED"] = "SCHEDULED";
255
- EventStatus2["STARTED"] = "STARTED";
256
- EventStatus2["ENDED"] = "ENDED";
257
- EventStatus2["CANCELED"] = "CANCELED";
258
- return EventStatus2;
259
- })(EventStatus || {});
260
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
261
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
262
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
263
- WebhookIdentityType2["MEMBER"] = "MEMBER";
264
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
265
- WebhookIdentityType2["APP"] = "APP";
266
- return WebhookIdentityType2;
267
- })(WebhookIdentityType || {});
268
268
 
269
269
  // src/events-notifications-v2-notification-config-notifications.meta.ts
270
- function triggerNotification2() {
271
- const payload = {};
272
- const getRequestOptions = triggerNotification(
270
+ function resolveNotificationConfig2() {
271
+ const payload = { notificationConfigId: ":notificationConfigId" };
272
+ const getRequestOptions = resolveNotificationConfig(
273
273
  payload
274
274
  );
275
275
  const getUrl = (context) => {
@@ -278,18 +278,20 @@ function triggerNotification2() {
278
278
  };
279
279
  return {
280
280
  getUrl,
281
- httpMethod: "POST",
282
- path: "/v2/notifications/trigger",
283
- pathParams: {},
281
+ httpMethod: "GET",
282
+ path: "/v2/notification-configs/resolve/{notificationConfigId}",
283
+ pathParams: { notificationConfigId: "notificationConfigId" },
284
284
  __requestType: null,
285
285
  __originalRequestType: null,
286
286
  __responseType: null,
287
287
  __originalResponseType: null
288
288
  };
289
289
  }
290
- function resolveNotificationConfig2() {
291
- const payload = { notificationConfigId: ":notificationConfigId" };
292
- const getRequestOptions = resolveNotificationConfig(
290
+ function upsertNotificationConfig2() {
291
+ const payload = {
292
+ notificationConfig: { id: ":notificationConfigId" }
293
+ };
294
+ const getRequestOptions = upsertNotificationConfig(
293
295
  payload
294
296
  );
295
297
  const getUrl = (context) => {
@@ -298,8 +300,8 @@ function resolveNotificationConfig2() {
298
300
  };
299
301
  return {
300
302
  getUrl,
301
- httpMethod: "GET",
302
- path: "/v2/notification-configs/resolve/{notificationConfigId}",
303
+ httpMethod: "POST",
304
+ path: "/v2/notification-configs/{notificationConfig.id}",
303
305
  pathParams: { notificationConfigId: "notificationConfigId" },
304
306
  __requestType: null,
305
307
  __originalRequestType: null,
@@ -307,11 +309,9 @@ function resolveNotificationConfig2() {
307
309
  __originalResponseType: null
308
310
  };
309
311
  }
310
- function upsertNotificationConfig2() {
311
- const payload = {
312
- notificationConfig: { id: ":notificationConfigId" }
313
- };
314
- const getRequestOptions = upsertNotificationConfig(
312
+ function triggerNotification2() {
313
+ const payload = {};
314
+ const getRequestOptions = triggerNotification(
315
315
  payload
316
316
  );
317
317
  const getUrl = (context) => {
@@ -321,8 +321,8 @@ function upsertNotificationConfig2() {
321
321
  return {
322
322
  getUrl,
323
323
  httpMethod: "POST",
324
- path: "/v2/notification-configs/{notificationConfig.id}",
325
- pathParams: { notificationConfigId: "notificationConfigId" },
324
+ path: "/v2/notifications/trigger",
325
+ pathParams: {},
326
326
  __requestType: null,
327
327
  __originalRequestType: null,
328
328
  __responseType: null,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/events-notifications-v2-notification-config-notifications.http.ts","../../../src/events-notifications-v2-notification-config-notifications.types.ts","../../../src/events-notifications-v2-notification-config-notifications.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEventsNotificationsV2NotificationConfigManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n {\n srcPath: '/events/v2/notifications',\n destPath: '/v2/notifications',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixEventsNotificationsV2NotificationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n {\n srcPath: '/events/v2/notifications',\n destPath: '/v2/notifications',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_notifications';\n\n/** Triggers notification */\nexport function triggerNotification(\n payload: object\n): RequestOptionsFactory<any> {\n function __triggerNotification({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationService.TriggerNotification',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationServiceUrl({\n protoPath: '/v2/notifications/trigger',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __triggerNotification;\n}\n\n/** Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet. */\nexport function resolveNotificationConfig(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveNotificationConfig({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({\n protoPath: '/v2/notification-configs/resolve/{notificationConfigId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveNotificationConfig;\n}\n\n/** Upsert a NotificationConfig */\nexport function upsertNotificationConfig(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertNotificationConfig({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({\n protoPath: '/v2/notification-configs/{notificationConfig.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertNotificationConfig;\n}\n","export interface NotificationConfig {\n /**\n * Event ID.\n * @format GUID\n * @immutable\n */\n id?: string | null;\n /**\n * 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.\n * @immutable\n */\n revision?: string | null;\n /**\n * Represents the time this NotificationConfig was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Represents the time this NotificationConfig was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Rsvp confirmation. */\n rsvpConfirmation?: EmailNotificationConfig;\n /** New spots available. */\n newSpotsAvailable?: EmailNotificationConfig;\n /** Event cancelation. */\n eventCancelation?: EmailNotificationConfig;\n /** Event reminder. */\n upcomingEventReminder?: EmailNotificationConfig;\n /** Order confirmation. */\n orderConfirmation?: EmailNotificationConfig;\n /** Ticket confirmation. */\n ticketConfirmation?: EmailNotificationConfig;\n /** Invoice. */\n invoice?: EmailNotificationConfig;\n /** Order confirmation with tickets link. */\n orderConfirmationWithTicketsLink?: EmailNotificationConfig;\n}\n\nexport interface EmailNotificationConfig {\n /**\n * Predefined id of the notification type.\n * @readonly\n */\n notificationType?: EmailNotificationTypeWithLiterals;\n /** Email template values. */\n template?: EmailTemplate;\n /**\n * Desired timing of the notification in hours respectfully to event start time.\n * For example if value is 0 then notification is sent at the start of the event.\n */\n reminderTime?: EmailNotificationReminderTimeWithLiterals;\n /** When true the notification will be sent when certain trigger occurs. */\n sendingEnabled?: boolean | null;\n}\n\nexport enum EmailNotificationType {\n /** Default value. This value is unused. */\n UNKNOWN_NOTIFICATION_TYPE = 'UNKNOWN_NOTIFICATION_TYPE',\n /** Triggered when site user RSVP to the event. */\n EMAIL_RSVP_CONFIRMATION = 'EMAIL_RSVP_CONFIRMATION',\n /** Triggered for waiting guests when additional RSVP spots appears in the fully booked event. */\n EMAIL_NEW_SPOTS_AVAILABLE = 'EMAIL_NEW_SPOTS_AVAILABLE',\n /** Triggered when event is canceled. */\n EMAIL_EVENT_CANCELATION = 'EMAIL_EVENT_CANCELATION',\n /** Triggered before the event start time. */\n EMAIL_UPCOMING_EVENT_REMINDER = 'EMAIL_UPCOMING_EVENT_REMINDER',\n /** Triggered when site user creates Order. */\n EMAIL_ORDER_CONFIRMATION = 'EMAIL_ORDER_CONFIRMATION',\n /** Triggered when resending ticket to ticket holder. */\n EMAIL_TICKET_CONFIRMATION = 'EMAIL_TICKET_CONFIRMATION',\n /** Triggered when sending invoice. Currently only `enabled` flag update is supported. */\n EMAIL_INVOICE = 'EMAIL_INVOICE',\n}\n\n/** @enumType */\nexport type EmailNotificationTypeWithLiterals =\n | EmailNotificationType\n | 'UNKNOWN_NOTIFICATION_TYPE'\n | 'EMAIL_RSVP_CONFIRMATION'\n | 'EMAIL_NEW_SPOTS_AVAILABLE'\n | 'EMAIL_EVENT_CANCELATION'\n | 'EMAIL_UPCOMING_EVENT_REMINDER'\n | 'EMAIL_ORDER_CONFIRMATION'\n | 'EMAIL_TICKET_CONFIRMATION'\n | 'EMAIL_INVOICE';\n\nexport interface EmailTemplate {\n /**\n * Email subject.\n * @minLength 1\n * @maxLength 100\n */\n subject?: string | null;\n /**\n * Plain text message body.\n * @minLength 1\n * @maxLength 1000\n */\n body?: string | null;\n /** Description link visibility and display text */\n descriptionLink?: Link;\n /** Calendar link visibility and display text */\n calendarLink?: Link;\n /** Online conferencing link visibility and display text */\n onlineConferencingLink?: Link;\n /** When true the tickets are attached to the order confirmation email. */\n includeTickets?: boolean | null;\n}\n\nexport interface Link {\n /** When true the link is added to the email. */\n display?: boolean | null;\n /**\n * Text of the link.\n * @maxLength 60\n */\n linkText?: string | null;\n}\n\nexport enum EmailNotificationReminderTime {\n /** Default value. This value is unused. */\n UNKNOWN_REMINDER_TIME = 'UNKNOWN_REMINDER_TIME',\n /** Notification is sent instantly */\n INSTANT = 'INSTANT',\n /** 24 hours prior */\n BEFORE_1_DAY = 'BEFORE_1_DAY',\n /** 3 days prior */\n BEFORE_3_DAYS = 'BEFORE_3_DAYS',\n /** 7 days prior */\n BEFORE_1_WEEK = 'BEFORE_1_WEEK',\n /** 1 hour prior */\n BEFORE_1_HOUR = 'BEFORE_1_HOUR',\n /** 30 minutes prior */\n BEFORE_30_MINUTES = 'BEFORE_30_MINUTES',\n}\n\n/** @enumType */\nexport type EmailNotificationReminderTimeWithLiterals =\n | EmailNotificationReminderTime\n | 'UNKNOWN_REMINDER_TIME'\n | 'INSTANT'\n | 'BEFORE_1_DAY'\n | 'BEFORE_3_DAYS'\n | 'BEFORE_1_WEEK'\n | 'BEFORE_1_HOUR'\n | 'BEFORE_30_MINUTES';\n\nexport interface TriggerNotificationRequest\n extends TriggerNotificationRequestNotificationOneOf,\n TriggerNotificationRequestGuestsOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n /** Rsvp guest info */\n rsvpGuest?: RsvpGuest;\n /** Order guest info */\n orderGuest?: OrderGuest;\n /** Event guests info */\n eventGuests?: EventGuests;\n /** Ticket guests info */\n ticketGuest?: TicketGuest;\n}\n\n/** @oneof */\nexport interface TriggerNotificationRequestNotificationOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TriggerNotificationRequestGuestsOneOf {\n /** Rsvp guest info */\n rsvpGuest?: RsvpGuest;\n /** Order guest info */\n orderGuest?: OrderGuest;\n /** Event guests info */\n eventGuests?: EventGuests;\n /** Ticket guests info */\n ticketGuest?: TicketGuest;\n}\n\nexport enum PushNotificationType {\n /** This is default value. This value is unused. */\n UNKNOWN_PUSH_TYPE = 'UNKNOWN_PUSH_TYPE',\n /** Triggered when event is updated. */\n PUSH_EVENT_UPDATED = 'PUSH_EVENT_UPDATED',\n /** Triggered when event is canceled. */\n PUSH_EVENT_CANCELATION = 'PUSH_EVENT_CANCELATION',\n /** Triggered before the event start time. */\n PUSH_UPCOMING_EVENT_REMINDER = 'PUSH_UPCOMING_EVENT_REMINDER',\n /** Triggered when event is created. */\n PUSH_EVENT_CREATED = 'PUSH_EVENT_CREATED',\n}\n\n/** @enumType */\nexport type PushNotificationTypeWithLiterals =\n | PushNotificationType\n | 'UNKNOWN_PUSH_TYPE'\n | 'PUSH_EVENT_UPDATED'\n | 'PUSH_EVENT_CANCELATION'\n | 'PUSH_UPCOMING_EVENT_REMINDER'\n | 'PUSH_EVENT_CREATED';\n\n/** Single guest associated to the RSVP */\nexport interface RsvpGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Rsvp id\n * @format GUID\n */\n rsvpId?: string;\n}\n\n/** Single guest associated to the Order */\nexport interface OrderGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Order number\n * @maxLength 36\n */\n orderNumber?: string;\n}\n\n/** All event guest from RSVPs and Orders */\nexport interface EventGuests {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n}\n\n/** Multiple guests associated to Tickets */\nexport interface TicketGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Ticket numbers must be from the same order only.\n * @minSize 1\n * @maxSize 100\n * @maxLength 36\n */\n ticketNumber?: string[];\n}\n\nexport interface TriggerNotificationResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface Empty {}\n\n/** Triggered when an order is confirmed. */\nexport interface OrderConfirmed {\n /** Date and time the order was confirmed. */\n timestamp?: Date | null;\n /**\n * Site language when the order was initiated.\n * @format LANGUAGE\n */\n language?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Locale in which the order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /** Unique order number. */\n orderNumber?: string;\n /** Contact ID associated with the order. */\n contactId?: string;\n /**\n * Member ID associated with the order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Date and time the order was created.\n * @readonly\n */\n created?: Date | null;\n /** Buyer first name. */\n firstName?: string;\n /** Buyer last name. */\n lastName?: string;\n /** Buyer email address. */\n email?: string;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /** Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc. */\n method?: string | null;\n /** Tickets (generated after payment). */\n tickets?: Ticket[];\n /** Invoice. */\n invoice?: Invoice;\n /** Reservation ID associated with the order. */\n reservationId?: string;\n}\n\nexport interface FormResponse {\n /**\n * Form field inputs.\n * @maxSize 200\n */\n inputValues?: InputValue[];\n}\n\nexport interface InputValue {\n /**\n * Form field input name.\n * @maxLength 100\n */\n inputName?: string;\n /**\n * Form field value.\n * @maxLength 5000\n */\n value?: string;\n /**\n * Form field values.\n * @maxSize 100\n * @maxLength 5000\n */\n values?: string[];\n}\n\nexport interface FormattedAddress {\n /**\n * 1-line address representation.\n * @maxLength 200\n */\n formatted?: string;\n /** Address components. */\n address?: CommonAddress;\n}\n\n/** Physical address */\nexport interface CommonAddress extends CommonAddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: CommonStreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */\n addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface CommonAddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: CommonStreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n}\n\nexport interface CommonStreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface CommonAddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface CommonSubdivision {\n /** Short subdivision code. */\n code?: string;\n /** Subdivision full name. */\n name?: string;\n}\n\nexport enum SubdivisionType {\n UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n /** State */\n ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n /** County */\n ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n /** City/town */\n ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n /** Neighborhood/quarter */\n ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n /** Street/block */\n ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n | SubdivisionType\n | 'UNKNOWN_SUBDIVISION_TYPE'\n | 'ADMINISTRATIVE_AREA_LEVEL_1'\n | 'ADMINISTRATIVE_AREA_LEVEL_2'\n | 'ADMINISTRATIVE_AREA_LEVEL_3'\n | 'ADMINISTRATIVE_AREA_LEVEL_4'\n | 'ADMINISTRATIVE_AREA_LEVEL_5'\n | 'COUNTRY';\n\n/** Subdivision Concordance values */\nexport interface StandardDetails {\n /**\n * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30\n * @maxLength 20\n */\n iso31662?: string | null;\n}\n\nexport enum OrderStatus {\n /** Order status isn't available for this request fieldset. */\n NA_ORDER_STATUS = 'NA_ORDER_STATUS',\n /** Order is confirmed, no payment is required. */\n FREE = 'FREE',\n /** Order was paid, but the payment gateway suspended the payment. */\n PENDING = 'PENDING',\n /** Order is paid. */\n PAID = 'PAID',\n /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `\"PAID\"`. */\n OFFLINE_PENDING = 'OFFLINE_PENDING',\n /** Order is waiting for payment at the cashier. */\n INITIATED = 'INITIATED',\n /** Order is canceled. */\n CANCELED = 'CANCELED',\n /** Order payment is declined. */\n DECLINED = 'DECLINED',\n /** Order payment is authorized. */\n AUTHORIZED = 'AUTHORIZED',\n /** Order payment is voided. */\n VOIDED = 'VOIDED',\n /** Order is partially paid with less than the total amount. */\n PARTIALLY_PAID = 'PARTIALLY_PAID',\n}\n\n/** @enumType */\nexport type OrderStatusWithLiterals =\n | OrderStatus\n | 'NA_ORDER_STATUS'\n | 'FREE'\n | 'PENDING'\n | 'PAID'\n | 'OFFLINE_PENDING'\n | 'INITIATED'\n | 'CANCELED'\n | 'DECLINED'\n | 'AUTHORIZED'\n | 'VOIDED'\n | 'PARTIALLY_PAID';\n\nexport interface Ticket {\n /** Unique issued ticket number. */\n ticketNumber?: string;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /** Ticket check-in. */\n checkIn?: CheckIn;\n /** Ticket price. */\n price?: Money;\n /** Whether ticket is archived. */\n archived?: boolean;\n /** Guest first name. */\n firstName?: string | null;\n /** Guest last name. */\n lastName?: string | null;\n /** Guest email. */\n email?: string | null;\n /**\n * Contact ID associated with this ticket.\n * @format GUID\n */\n contactId?: string | null;\n /** Whether ticket is confirmed */\n confirmed?: boolean;\n /**\n * Member ID associated with this ticket.\n * @format GUID\n */\n memberId?: string | null;\n /** Ticket form response (only assigned tickets contain separate forms). */\n form?: FormResponse;\n /** Ticket name. */\n ticketName?: string;\n /** Anonymized tickets no longer contain personally identifiable information (PII). */\n anonymized?: boolean;\n /** URL and password to online conference */\n onlineConferencingLogin?: OnlineConferencingLogin;\n /**\n * Seat ID associated with this ticket.\n * @maxLength 36\n */\n seatId?: string | null;\n /** Whether ticket is canceled. */\n canceled?: boolean | null;\n}\n\nexport interface CheckIn {\n /** Time of a ticket's check-in. */\n created?: Date | null;\n}\n\nexport interface Money {\n /**\n * *Deprecated:** Use `value` instead.\n * @format DECIMAL_VALUE\n * @deprecated\n */\n amount?: string;\n /**\n * 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n */\n value?: string | null;\n}\n\nexport interface OnlineConferencingLogin {\n /**\n * Link URL to the online conference.\n * @format WEB_URL\n * @readonly\n */\n link?: string;\n /**\n * Password for the online conference.\n * @readonly\n */\n password?: string | null;\n}\n\nexport interface Invoice {\n items?: Item[];\n /**\n * Total cart amount.\n * @deprecated\n */\n total?: Money;\n /** Discount applied to a cart. */\n discount?: Discount;\n /** Tax applied to a cart. */\n tax?: Tax;\n /** Total cart amount before discount, tax, and fees. */\n subTotal?: Money;\n /**\n * Total amount of a cart after discount, tax, and fees.\n * Grand total is calculated in the following order:\n * 1. Total prices of all items in the cart are calculated.\n * 2. Discount is subtracted from the cart, if applicable.\n * 3. Tax is added, if applicable.\n * 4. Wix ticket service fee is added.\n */\n grandTotal?: Money;\n /**\n * Fees applied to the cart.\n * @readonly\n */\n fees?: Fee[];\n /** Total revenue, excluding fees. Taxes and payment provider fees aren't deducted. */\n revenue?: Money;\n /** Invoice preview URL. Only returned if the order is paid. */\n previewUrl?: string | null;\n}\n\nexport interface Item {\n /**\n * Unique line item ID.\n * @format GUID\n */\n id?: string;\n /**\n * Line item quantity.\n * @min 1\n * @max 50\n */\n quantity?: number;\n /** Line item name. */\n name?: string;\n /** Line item price. */\n price?: Money;\n /** Total price for line items. Always equal to price * quantity. */\n total?: Money;\n /** Discount applied to the line item. */\n discount?: Discount;\n /** Tax applied to the item. */\n tax?: Tax;\n /**\n * Fees applied to the item.\n * @readonly\n */\n fees?: Fee[];\n}\n\nexport interface Discount {\n /** Total discount amount. */\n amount?: Money;\n /** Total sum after the discount. */\n afterDiscount?: Money;\n /**\n * Discount coupon code.\n * @deprecated\n */\n code?: string;\n /**\n * Discount coupon name.\n * @deprecated\n */\n name?: string;\n /**\n * Discount coupon ID.\n * @deprecated\n */\n couponId?: string;\n /** Discount items. */\n discounts?: DiscountItem[];\n}\n\nexport interface DiscountItem extends DiscountItemDiscountOneOf {\n /** Coupon discount. */\n coupon?: CouponDiscount;\n /** Pricing plan discount. */\n paidPlan?: PaidPlanDiscount;\n /** Total discount amount. */\n amount?: Money;\n}\n\n/** @oneof */\nexport interface DiscountItemDiscountOneOf {\n /** Coupon discount. */\n coupon?: CouponDiscount;\n /** Pricing plan discount. */\n paidPlan?: PaidPlanDiscount;\n}\n\nexport interface CouponDiscount {\n /** Discount coupon name. **Deprecated:** Use `invoice.discounts.coupon.name` instead. */\n name?: string;\n /** Discount coupon code. **Deprecated:** Use `invoice.discounts.coupon.code` instead. */\n code?: string;\n /** Discount coupon ID. **Deprecated:** Use `invoice.discounts.coupon.couponId` instead. */\n couponId?: string;\n}\n\nexport interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {\n /** Discount by percentage applied to tickets. */\n percentDiscount?: PercentDiscount;\n /** Name of pricing plan. */\n name?: string;\n}\n\n/** @oneof */\nexport interface PaidPlanDiscountDiscountOneOf {\n /** Discount by percentage applied to tickets. */\n percentDiscount?: PercentDiscount;\n}\n\nexport interface PercentDiscount {\n /**\n * Percent rate.\n * @decimalValue options { gte:0.01, lte:100, maxScale:2 }\n */\n rate?: string;\n /** Number of discounted tickets. */\n quantityDiscounted?: number;\n}\n\nexport interface Tax {\n /** Tax type. */\n type?: TaxTypeWithLiterals;\n /**\n * Tax name.\n * @readonly\n */\n name?: string;\n /**\n * Tax rate.\n * @format DECIMAL_VALUE\n */\n rate?: string;\n /** Taxable amount. */\n taxable?: Money;\n /** Total tax amount. */\n amount?: Money;\n}\n\nexport enum TaxType {\n /** Tax is included in the ticket price. */\n INCLUDED = 'INCLUDED',\n /** Tax is added to the order at the checkout. */\n ADDED = 'ADDED',\n /** Tax is added to the final total at the checkout. */\n ADDED_AT_CHECKOUT = 'ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type TaxTypeWithLiterals =\n | TaxType\n | 'INCLUDED'\n | 'ADDED'\n | 'ADDED_AT_CHECKOUT';\n\nexport interface Fee {\n /** Fee identifier. */\n name?: FeeNameWithLiterals;\n /** How fee is calculated. */\n type?: FeeTypeWithLiterals;\n /**\n * Fee rate.\n * @format DECIMAL_VALUE\n * @readonly\n */\n rate?: string;\n /** Total amount of fee charges. */\n amount?: Money;\n}\n\nexport enum FeeName {\n /** Wix ticket service fee charges applied to the line item. */\n WIX_FEE = 'WIX_FEE',\n}\n\n/** @enumType */\nexport type FeeNameWithLiterals = FeeName | 'WIX_FEE';\n\nexport enum FeeType {\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED = 'FEE_ADDED',\n /** Seller absorbs the fee. It's deducted from the ticket price. */\n FEE_INCLUDED = 'FEE_INCLUDED',\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED_AT_CHECKOUT = 'FEE_ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type FeeTypeWithLiterals =\n | FeeType\n | 'FEE_ADDED'\n | 'FEE_INCLUDED'\n | 'FEE_ADDED_AT_CHECKOUT';\n\n/** Produced if a buyer email was added to the existing order */\nexport interface OrderEmailAdded {\n /** Order updated timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Site language when Order initiated\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Locale in which Order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Unique order number.\n * @maxLength 36\n */\n orderNumber?: string;\n /**\n * Contact ID associated with this order.\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Member ID associated with this order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Order created timestamp.\n * @readonly\n */\n created?: Date | null;\n /**\n * Order updated timestamp.\n * @readonly\n */\n updated?: Date | null;\n /**\n * Buyer first name.\n * @maxLength 255\n */\n firstName?: string | null;\n /**\n * Buyer last name.\n * @maxLength 255\n */\n lastName?: string | null;\n /**\n * Buyer email.\n * @format EMAIL\n */\n email?: string | null;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */\n confirmed?: boolean;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /**\n * Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc.\n * @maxLength 100\n */\n method?: string | null;\n /**\n * Tickets generated after payment.\n * @maxSize 50\n */\n tickets?: Ticket[];\n /** Whether order was archived and excluded from results. */\n archived?: boolean;\n /**\n * Reservation ID associated with this order.\n * @format GUID\n */\n reservationId?: string;\n /** Whether marketing consent was given. */\n marketingConsent?: boolean | null;\n}\n\n/** Triggered when an order is paid. */\nexport interface OrderPaid {\n /** Date and time the order was paid. */\n timestamp?: Date | null;\n /**\n * Site language when the order was initiated.\n * @format LANGUAGE\n */\n language?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Locale in which the order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /** Unique order number. */\n orderNumber?: string;\n /** Reservation ID associated with this order. */\n reservationId?: string;\n /**\n * Contact ID associated with this order.\n * @maxLength 36\n */\n contactId?: string;\n /**\n * Member ID associated with this order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Date and time the order was created.\n * @readonly\n */\n created?: Date | null;\n /**\n * Buyer first name.\n * @maxLength 255\n */\n firstName?: string;\n /**\n * Buyer last name.\n * @maxLength 255\n */\n lastName?: string;\n /**\n * Buyer email address.\n * @maxLength 255\n */\n email?: string;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /**\n * Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc.\n * @maxLength 255\n */\n method?: string | null;\n /**\n * Tickets (generated after payment).\n * @maxSize 50\n */\n tickets?: Ticket[];\n /** Invoice. */\n invoice?: Invoice;\n}\n\nexport interface TicketPdfResolved {\n /**\n * Optional order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Optional ticket number\n * @maxLength 36\n */\n ticketNumber?: string | null;\n /**\n * Resolved download url\n * @format WEB_URL\n */\n downloadUrl?: string | null;\n /** Resolve status */\n resolveFailed?: boolean | null;\n /**\n * Papyrus document id\n * @format GUID\n */\n documentId?: string | null;\n}\n\nexport interface TicketPdfResolveDelayed {\n /**\n * Optional order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Optional ticket number\n * @maxLength 36\n */\n ticketNumber?: string | null;\n /**\n * Papyrus document id\n * @format GUID\n */\n documentId?: string | null;\n}\n\n/** Triggered when an order is canceled. */\nexport interface OrderCanceled {\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /**\n * Unique order number.\n * @maxLength 36\n */\n orderNumber?: string;\n /**\n * Reservation ID associated with the order.\n * @format GUID\n */\n reservationId?: string;\n /**\n * Contact ID associated with the order.\n * @maxLength 36\n */\n contactId?: string;\n /**\n * Buyer first name.\n * @maxLength 50\n */\n firstName?: string | null;\n /**\n * Buyer last name.\n * @maxLength 50\n */\n lastName?: string | null;\n /**\n * Buyer email address.\n * @maxLength 255\n */\n email?: string | null;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Invoice. */\n invoice?: Invoice;\n}\n\nexport interface ResolveNotificationConfigRequest {\n /**\n * Id of the NotificationConfig to retrieve\n * @format GUID\n */\n notificationConfigId: string;\n}\n\nexport interface ResolveNotificationConfigResponse {\n /** The retrieved NotificationConfig */\n notificationConfig?: NotificationConfig;\n}\n\nexport interface UpsertNotificationConfigRequest {\n /** NotificationConfig to be upserted */\n notificationConfig: NotificationConfig;\n}\n\nexport interface UpsertNotificationConfigResponse {\n /** The upserted NotificationConfig */\n notificationConfig?: NotificationConfig;\n}\n\nexport interface ResolveEmailNotificationConfigRequest {\n /**\n * Id of the NotificationConfig to retrieve\n * @format GUID\n */\n notificationConfigId?: string;\n /** Notification type */\n notificationType?: EmailNotificationTypeWithLiterals;\n}\n\nexport interface ResolveEmailNotificationConfigResponse {\n /** The retrieved EmailNotificationConfig */\n emailNotificationConfig?: EmailNotificationConfig;\n}\n\nexport interface EventCanceled {\n /** Event canceled timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event title */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n /** True if at least one guest is registered to the event with any attendance status. */\n hasGuests?: boolean | null;\n}\n\nexport interface EventDeleted {\n /** Event deleted timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event title. */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport interface EventCopied {\n /** Event created timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event location. */\n location?: Location;\n /** Event schedule configuration. */\n scheduleConfig?: ScheduleConfig;\n /** Event title. */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n /** Event status. */\n status?: EventStatusWithLiterals;\n /**\n * Instance ID. Indicates the original app instance which current event was derived from.\n * @format GUID\n */\n derivedFromInstanceId?: string | null;\n /**\n * Event ID. Indicates the original event which current event was derived from.\n * @format GUID\n */\n derivedFromEventId?: string | null;\n /**\n * Map of copied ticket definitions from original event.\n * Key represents ticket def id in the original event.\n * Value represents ticket def id in the newly created event.\n */\n ticketDefinitions?: Record<string, string>;\n}\n\nexport interface Location {\n /**\n * Location name.\n * @maxLength 50\n */\n name?: string | null;\n /** Location map coordinates. */\n coordinates?: MapCoordinates;\n /**\n * Single line address representation.\n * @maxLength 300\n */\n address?: string | null;\n /** Location type. */\n type?: LocationTypeWithLiterals;\n /**\n * Full address derived from formatted single line `address`.\n * When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.\n * If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.\n *\n * Migration notes:\n * - `full_address.formatted_address` is equivalent to `address`.\n * - `full_address.geocode` is equivalent to `coordinates`.\n */\n fullAddress?: Address;\n /**\n * Defines event location as TBD (To Be Determined).\n * When event location is not yet defined, `name` is displayed instead of location address.\n * `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.\n */\n tbd?: boolean | null;\n}\n\nexport interface MapCoordinates {\n /**\n * Latitude.\n * @min -90\n * @max 90\n */\n lat?: number;\n /**\n * Longitude.\n * @min -180\n * @max 180\n */\n lng?: number;\n}\n\nexport enum LocationType {\n VENUE = 'VENUE',\n ONLINE = 'ONLINE',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals = LocationType | 'VENUE' | 'ONLINE';\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n /** a break down of the street to number and street name */\n streetAddress?: StreetAddress;\n /** Main address line (usually street and number) as free text */\n addressLine?: string | null;\n /**\n * country code\n * @format COUNTRY\n */\n country?: string | null;\n /** subdivision (usually state or region) code according to ISO 3166-2 */\n subdivision?: string | null;\n /** city name */\n city?: string | null;\n /** zip/postal code */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */\n addressLine2?: string | null;\n /** A string containing the human-readable address of this location */\n formattedAddress?: string | null;\n /** Free text for human-to-human textual orientation aid purposes */\n hint?: string | null;\n /** coordinates of the physical address */\n geocode?: AddressLocation;\n /** country full-name */\n countryFullname?: string | null;\n /**\n * multi-level subdivisions from top to bottom\n * @maxSize 6\n */\n subdivisions?: Subdivision[];\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n /** a break down of the street to number and street name */\n streetAddress?: StreetAddress;\n /** Main address line (usually street and number) as free text */\n addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n /** street number */\n number?: string;\n /** street name */\n name?: string;\n}\n\nexport interface AddressLocation {\n /**\n * address latitude coordinates\n * @min -90\n * @max 90\n */\n latitude?: number | null;\n /**\n * address longitude coordinates\n * @min -180\n * @max 180\n */\n longitude?: number | null;\n}\n\nexport interface Subdivision {\n /** subdivision short code */\n code?: string;\n /** subdivision full-name */\n name?: string;\n}\n\nexport interface ScheduleConfig {\n /**\n * Defines event as TBD (To Be Determined) schedule.\n * When event time is not yet defined, TBD message is displayed instead of event start and end times.\n * `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.\n */\n scheduleTbd?: boolean;\n /**\n * TBD message.\n * @maxLength 100\n */\n scheduleTbdMessage?: string | null;\n /** Event start timestamp. */\n startDate?: Date | null;\n /** Event end timestamp. */\n endDate?: Date | null;\n /**\n * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n * @maxLength 100\n */\n timeZoneId?: string | null;\n /** Whether end date is hidden in the formatted schedule. */\n endDateHidden?: boolean;\n /** Whether time zone is displayed in formatted schedule. */\n showTimeZone?: boolean;\n /** Event recurrences. */\n recurrences?: Recurrences;\n}\n\nexport interface Recurrences {\n /**\n * Event occurrences.\n * @maxSize 1000\n */\n occurrences?: Occurrence[];\n /**\n * Recurring event category ID.\n * @readonly\n */\n categoryId?: string | null;\n /**\n * Recurrence status.\n * @readonly\n */\n status?: StatusWithLiterals;\n}\n\nexport interface Occurrence {\n /** Event start timestamp. */\n startDate?: Date | null;\n /** Event end timestamp. */\n endDate?: Date | null;\n /**\n * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n * @maxLength 100\n */\n timeZoneId?: string | null;\n /** Whether time zone is displayed in formatted schedule. */\n showTimeZone?: boolean;\n}\n\nexport enum Status {\n /** Event occurs only once. */\n ONE_TIME = 'ONE_TIME',\n /** Event is recurring. */\n RECURRING = 'RECURRING',\n /** Marks the next upcoming occurrence of the recurring event. */\n RECURRING_NEXT = 'RECURRING_NEXT',\n /** Marks the most recent ended occurrence of the recurring event. */\n RECURRING_LAST_ENDED = 'RECURRING_LAST_ENDED',\n /** Marks the most recent canceled occurrence of the recurring event. */\n RECURRING_LAST_CANCELED = 'RECURRING_LAST_CANCELED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'ONE_TIME'\n | 'RECURRING'\n | 'RECURRING_NEXT'\n | 'RECURRING_LAST_ENDED'\n | 'RECURRING_LAST_CANCELED';\n\nexport enum EventStatus {\n /** Event is public and scheduled to start */\n SCHEDULED = 'SCHEDULED',\n /** Event has started */\n STARTED = 'STARTED',\n /** Event has ended */\n ENDED = 'ENDED',\n /** Event was canceled */\n CANCELED = 'CANCELED',\n}\n\n/** @enumType */\nexport type EventStatusWithLiterals =\n | EventStatus\n | 'SCHEDULED'\n | 'STARTED'\n | 'ENDED'\n | 'CANCELED';\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n","import * as ambassadorWixEventsNotificationsV2NotificationConfig from './events-notifications-v2-notification-config-notifications.http.js';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfigTypes from './events-notifications-v2-notification-config-notifications.types.js';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes from './events-notifications-v2-notification-config-notifications.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function triggerNotification(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/notifications/trigger',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function resolveNotificationConfig(): __PublicMethodMetaInfo<\n 'GET',\n { notificationConfigId: string },\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigResponse\n> {\n const payload = { notificationConfigId: ':notificationConfigId' } as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/notification-configs/resolve/{notificationConfigId}',\n pathParams: { notificationConfigId: 'notificationConfigId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function upsertNotificationConfig(): __PublicMethodMetaInfo<\n 'POST',\n { notificationConfigId: string },\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigResponse\n> {\n const payload = {\n notificationConfig: { id: ':notificationConfigId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/notification-configs/{notificationConfig.id}',\n pathParams: { notificationConfigId: 'notificationConfigId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n NotificationConfig as NotificationConfigOriginal,\n EmailNotificationConfig as EmailNotificationConfigOriginal,\n EmailNotificationType as EmailNotificationTypeOriginal,\n EmailNotificationTypeWithLiterals as EmailNotificationTypeWithLiteralsOriginal,\n EmailTemplate as EmailTemplateOriginal,\n Link as LinkOriginal,\n EmailNotificationReminderTime as EmailNotificationReminderTimeOriginal,\n EmailNotificationReminderTimeWithLiterals as EmailNotificationReminderTimeWithLiteralsOriginal,\n TriggerNotificationRequest as TriggerNotificationRequestOriginal,\n TriggerNotificationRequestNotificationOneOf as TriggerNotificationRequestNotificationOneOfOriginal,\n TriggerNotificationRequestGuestsOneOf as TriggerNotificationRequestGuestsOneOfOriginal,\n PushNotificationType as PushNotificationTypeOriginal,\n PushNotificationTypeWithLiterals as PushNotificationTypeWithLiteralsOriginal,\n RsvpGuest as RsvpGuestOriginal,\n OrderGuest as OrderGuestOriginal,\n EventGuests as EventGuestsOriginal,\n TicketGuest as TicketGuestOriginal,\n TriggerNotificationResponse as TriggerNotificationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n Empty as EmptyOriginal,\n OrderConfirmed as OrderConfirmedOriginal,\n FormResponse as FormResponseOriginal,\n InputValue as InputValueOriginal,\n FormattedAddress as FormattedAddressOriginal,\n CommonAddress as CommonAddressOriginal,\n CommonAddressStreetOneOf as CommonAddressStreetOneOfOriginal,\n CommonStreetAddress as CommonStreetAddressOriginal,\n CommonAddressLocation as CommonAddressLocationOriginal,\n CommonSubdivision as CommonSubdivisionOriginal,\n SubdivisionType as SubdivisionTypeOriginal,\n SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal,\n StandardDetails as StandardDetailsOriginal,\n OrderStatus as OrderStatusOriginal,\n OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal,\n Ticket as TicketOriginal,\n CheckIn as CheckInOriginal,\n Money as MoneyOriginal,\n OnlineConferencingLogin as OnlineConferencingLoginOriginal,\n Invoice as InvoiceOriginal,\n Item as ItemOriginal,\n Discount as DiscountOriginal,\n DiscountItem as DiscountItemOriginal,\n DiscountItemDiscountOneOf as DiscountItemDiscountOneOfOriginal,\n CouponDiscount as CouponDiscountOriginal,\n PaidPlanDiscount as PaidPlanDiscountOriginal,\n PaidPlanDiscountDiscountOneOf as PaidPlanDiscountDiscountOneOfOriginal,\n PercentDiscount as PercentDiscountOriginal,\n Tax as TaxOriginal,\n TaxType as TaxTypeOriginal,\n TaxTypeWithLiterals as TaxTypeWithLiteralsOriginal,\n Fee as FeeOriginal,\n FeeName as FeeNameOriginal,\n FeeNameWithLiterals as FeeNameWithLiteralsOriginal,\n FeeType as FeeTypeOriginal,\n FeeTypeWithLiterals as FeeTypeWithLiteralsOriginal,\n OrderEmailAdded as OrderEmailAddedOriginal,\n OrderPaid as OrderPaidOriginal,\n TicketPdfResolved as TicketPdfResolvedOriginal,\n TicketPdfResolveDelayed as TicketPdfResolveDelayedOriginal,\n OrderCanceled as OrderCanceledOriginal,\n ResolveNotificationConfigRequest as ResolveNotificationConfigRequestOriginal,\n ResolveNotificationConfigResponse as ResolveNotificationConfigResponseOriginal,\n UpsertNotificationConfigRequest as UpsertNotificationConfigRequestOriginal,\n UpsertNotificationConfigResponse as UpsertNotificationConfigResponseOriginal,\n ResolveEmailNotificationConfigRequest as ResolveEmailNotificationConfigRequestOriginal,\n ResolveEmailNotificationConfigResponse as ResolveEmailNotificationConfigResponseOriginal,\n EventCanceled as EventCanceledOriginal,\n EventDeleted as EventDeletedOriginal,\n EventCopied as EventCopiedOriginal,\n Location as LocationOriginal,\n MapCoordinates as MapCoordinatesOriginal,\n LocationType as LocationTypeOriginal,\n LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal,\n Address as AddressOriginal,\n AddressStreetOneOf as AddressStreetOneOfOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n Subdivision as SubdivisionOriginal,\n ScheduleConfig as ScheduleConfigOriginal,\n Recurrences as RecurrencesOriginal,\n Occurrence as OccurrenceOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n EventStatus as EventStatusOriginal,\n EventStatusWithLiterals as EventStatusWithLiteralsOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n} from './events-notifications-v2-notification-config-notifications.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,+DACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,SAAS,sDACP,M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,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,6BAOd;AACA,QAAM,UAAU,EAAE,sBAAsB,wBAAwB;AAEhE,QAAM,oBACiD;AAAA,IACnD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,sBAAsB,uBAAuB;AAAA,IAC3D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,4BAOd;AACA,QAAM,UAAU;AAAA,IACd,oBAAoB,EAAE,IAAI,wBAAwB;AAAA,EACpD;AAEA,QAAM,oBACiD;AAAA,IACnD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,sBAAsB,uBAAuB;AAAA,IAC3D,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","EmailNotificationType","EmailNotificationReminderTime","PushNotificationType","SubdivisionType","OrderStatus","TaxType","FeeName","FeeType","LocationType","Status","EventStatus","WebhookIdentityType","triggerNotification","resolveNotificationConfig","upsertNotificationConfig"]}
1
+ {"version":3,"sources":["../../../src/events-notifications-v2-notification-config-notifications.http.ts","../../../src/events-notifications-v2-notification-config-notifications.types.ts","../../../src/events-notifications-v2-notification-config-notifications.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEventsNotificationsV2NotificationServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n {\n srcPath: '/events/v2/notifications',\n destPath: '/v2/notifications',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nfunction resolveWixEventsNotificationsV2NotificationConfigManagementUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/events-notifications',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/events-notifications',\n destPath: '',\n },\n {\n srcPath: '/events/v2/notifications',\n destPath: '/v2/notifications',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_events_notifications';\n\n/** Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet. */\nexport function resolveNotificationConfig(\n payload: object\n): RequestOptionsFactory<any> {\n function __resolveNotificationConfig({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'GET' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({\n protoPath: '/v2/notification-configs/resolve/{notificationConfigId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __resolveNotificationConfig;\n}\n\n/** Upsert a NotificationConfig */\nexport function upsertNotificationConfig(\n payload: object\n): RequestOptionsFactory<any> {\n function __upsertNotificationConfig({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({\n protoPath: '/v2/notification-configs/{notificationConfig.id}',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'notificationConfig.createdDate' },\n { path: 'notificationConfig.updatedDate' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __upsertNotificationConfig;\n}\n\n/** Triggers notification */\nexport function triggerNotification(\n payload: object\n): RequestOptionsFactory<any> {\n function __triggerNotification({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.events.notifications.v2.notification_config',\n method: 'POST' as any,\n methodFqn:\n 'wix.events.notifications.v2.NotificationService.TriggerNotification',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEventsNotificationsV2NotificationServiceUrl({\n protoPath: '/v2/notifications/trigger',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __triggerNotification;\n}\n","export interface NotificationConfig {\n /**\n * Event ID.\n * @format GUID\n * @immutable\n */\n id?: string | null;\n /**\n * 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.\n * @immutable\n */\n revision?: string | null;\n /**\n * Represents the time this NotificationConfig was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Represents the time this NotificationConfig was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /** Rsvp confirmation. */\n rsvpConfirmation?: EmailNotificationConfig;\n /** New spots available. */\n newSpotsAvailable?: EmailNotificationConfig;\n /** Event cancelation. */\n eventCancelation?: EmailNotificationConfig;\n /** Event reminder. */\n upcomingEventReminder?: EmailNotificationConfig;\n /** Order confirmation. */\n orderConfirmation?: EmailNotificationConfig;\n /** Ticket confirmation. */\n ticketConfirmation?: EmailNotificationConfig;\n /** Invoice. */\n invoice?: EmailNotificationConfig;\n /** Order confirmation with tickets link. */\n orderConfirmationWithTicketsLink?: EmailNotificationConfig;\n}\n\nexport interface EmailNotificationConfig {\n /**\n * Predefined id of the notification type.\n * @readonly\n */\n notificationType?: EmailNotificationTypeWithLiterals;\n /** Email template values. */\n template?: EmailTemplate;\n /**\n * Desired timing of the notification in hours respectfully to event start time.\n * For example if value is 0 then notification is sent at the start of the event.\n */\n reminderTime?: EmailNotificationReminderTimeWithLiterals;\n /** When true the notification will be sent when certain trigger occurs. */\n sendingEnabled?: boolean | null;\n}\n\nexport enum EmailNotificationType {\n /** Default value. This value is unused. */\n UNKNOWN_NOTIFICATION_TYPE = 'UNKNOWN_NOTIFICATION_TYPE',\n /** Triggered when site user RSVP to the event. */\n EMAIL_RSVP_CONFIRMATION = 'EMAIL_RSVP_CONFIRMATION',\n /** Triggered for waiting guests when additional RSVP spots appears in the fully booked event. */\n EMAIL_NEW_SPOTS_AVAILABLE = 'EMAIL_NEW_SPOTS_AVAILABLE',\n /** Triggered when event is canceled. */\n EMAIL_EVENT_CANCELATION = 'EMAIL_EVENT_CANCELATION',\n /** Triggered before the event start time. */\n EMAIL_UPCOMING_EVENT_REMINDER = 'EMAIL_UPCOMING_EVENT_REMINDER',\n /** Triggered when site user creates Order. */\n EMAIL_ORDER_CONFIRMATION = 'EMAIL_ORDER_CONFIRMATION',\n /** Triggered when resending ticket to ticket holder. */\n EMAIL_TICKET_CONFIRMATION = 'EMAIL_TICKET_CONFIRMATION',\n /** Triggered when sending invoice. Currently only `enabled` flag update is supported. */\n EMAIL_INVOICE = 'EMAIL_INVOICE',\n}\n\n/** @enumType */\nexport type EmailNotificationTypeWithLiterals =\n | EmailNotificationType\n | 'UNKNOWN_NOTIFICATION_TYPE'\n | 'EMAIL_RSVP_CONFIRMATION'\n | 'EMAIL_NEW_SPOTS_AVAILABLE'\n | 'EMAIL_EVENT_CANCELATION'\n | 'EMAIL_UPCOMING_EVENT_REMINDER'\n | 'EMAIL_ORDER_CONFIRMATION'\n | 'EMAIL_TICKET_CONFIRMATION'\n | 'EMAIL_INVOICE';\n\nexport interface EmailTemplate {\n /**\n * Email subject.\n * @minLength 1\n * @maxLength 100\n */\n subject?: string | null;\n /**\n * Plain text message body.\n * @minLength 1\n * @maxLength 1000\n */\n body?: string | null;\n /** Description link visibility and display text */\n descriptionLink?: Link;\n /** Calendar link visibility and display text */\n calendarLink?: Link;\n /** Online conferencing link visibility and display text */\n onlineConferencingLink?: Link;\n /** When true the tickets are attached to the order confirmation email. */\n includeTickets?: boolean | null;\n}\n\nexport interface Link {\n /** When true the link is added to the email. */\n display?: boolean | null;\n /**\n * Text of the link.\n * @maxLength 60\n */\n linkText?: string | null;\n}\n\nexport enum EmailNotificationReminderTime {\n /** Default value. This value is unused. */\n UNKNOWN_REMINDER_TIME = 'UNKNOWN_REMINDER_TIME',\n /** Notification is sent instantly */\n INSTANT = 'INSTANT',\n /** 24 hours prior */\n BEFORE_1_DAY = 'BEFORE_1_DAY',\n /** 3 days prior */\n BEFORE_3_DAYS = 'BEFORE_3_DAYS',\n /** 7 days prior */\n BEFORE_1_WEEK = 'BEFORE_1_WEEK',\n /** 1 hour prior */\n BEFORE_1_HOUR = 'BEFORE_1_HOUR',\n /** 30 minutes prior */\n BEFORE_30_MINUTES = 'BEFORE_30_MINUTES',\n}\n\n/** @enumType */\nexport type EmailNotificationReminderTimeWithLiterals =\n | EmailNotificationReminderTime\n | 'UNKNOWN_REMINDER_TIME'\n | 'INSTANT'\n | 'BEFORE_1_DAY'\n | 'BEFORE_3_DAYS'\n | 'BEFORE_1_WEEK'\n | 'BEFORE_1_HOUR'\n | 'BEFORE_30_MINUTES';\n\nexport interface ResolveNotificationConfigRequest {\n /**\n * Id of the NotificationConfig to retrieve\n * @format GUID\n */\n notificationConfigId: string;\n}\n\nexport interface ResolveNotificationConfigResponse {\n /** The retrieved NotificationConfig */\n notificationConfig?: NotificationConfig;\n}\n\nexport interface UpsertNotificationConfigRequest {\n /** NotificationConfig to be upserted */\n notificationConfig: NotificationConfig;\n}\n\nexport interface UpsertNotificationConfigResponse {\n /** The upserted NotificationConfig */\n notificationConfig?: NotificationConfig;\n}\n\nexport interface ResolveEmailNotificationConfigRequest {\n /**\n * Id of the NotificationConfig to retrieve\n * @format GUID\n */\n notificationConfigId?: string;\n /** Notification type */\n notificationType?: EmailNotificationTypeWithLiterals;\n}\n\nexport interface ResolveEmailNotificationConfigResponse {\n /** The retrieved EmailNotificationConfig */\n emailNotificationConfig?: EmailNotificationConfig;\n}\n\nexport interface EventCanceled {\n /** Event canceled timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event title */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n /** True if at least one guest is registered to the event with any attendance status. */\n hasGuests?: boolean | null;\n}\n\nexport interface Empty {}\n\nexport interface EventDeleted {\n /** Event deleted timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event title. */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n}\n\nexport interface EventCopied {\n /** Event created timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /** Event location. */\n location?: Location;\n /** Event schedule configuration. */\n scheduleConfig?: ScheduleConfig;\n /** Event title. */\n title?: string;\n /**\n * Event creator user ID.\n * @format GUID\n */\n userId?: string | null;\n /** Event status. */\n status?: EventStatusWithLiterals;\n /**\n * Instance ID. Indicates the original app instance which current event was derived from.\n * @format GUID\n */\n derivedFromInstanceId?: string | null;\n /**\n * Event ID. Indicates the original event which current event was derived from.\n * @format GUID\n */\n derivedFromEventId?: string | null;\n /**\n * Map of copied ticket definitions from original event.\n * Key represents ticket def id in the original event.\n * Value represents ticket def id in the newly created event.\n */\n ticketDefinitions?: Record<string, string>;\n}\n\nexport interface Location {\n /**\n * Location name.\n * @maxLength 50\n */\n name?: string | null;\n /** Location map coordinates. */\n coordinates?: MapCoordinates;\n /**\n * Single line address representation.\n * @maxLength 300\n */\n address?: string | null;\n /** Location type. */\n type?: LocationTypeWithLiterals;\n /**\n * Full address derived from formatted single line `address`.\n * When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.\n * If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.\n *\n * Migration notes:\n * - `full_address.formatted_address` is equivalent to `address`.\n * - `full_address.geocode` is equivalent to `coordinates`.\n */\n fullAddress?: Address;\n /**\n * Defines event location as TBD (To Be Determined).\n * When event location is not yet defined, `name` is displayed instead of location address.\n * `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.\n */\n tbd?: boolean | null;\n}\n\nexport interface MapCoordinates {\n /**\n * Latitude.\n * @min -90\n * @max 90\n */\n lat?: number;\n /**\n * Longitude.\n * @min -180\n * @max 180\n */\n lng?: number;\n}\n\nexport enum LocationType {\n VENUE = 'VENUE',\n ONLINE = 'ONLINE',\n}\n\n/** @enumType */\nexport type LocationTypeWithLiterals = LocationType | 'VENUE' | 'ONLINE';\n\n/** Physical address */\nexport interface Address extends AddressStreetOneOf {\n /** a break down of the street to number and street name */\n streetAddress?: StreetAddress;\n /** Main address line (usually street and number) as free text */\n addressLine?: string | null;\n /**\n * country code\n * @format COUNTRY\n */\n country?: string | null;\n /** subdivision (usually state or region) code according to ISO 3166-2 */\n subdivision?: string | null;\n /** city name */\n city?: string | null;\n /** zip/postal code */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */\n addressLine2?: string | null;\n /** A string containing the human-readable address of this location */\n formattedAddress?: string | null;\n /** Free text for human-to-human textual orientation aid purposes */\n hint?: string | null;\n /** coordinates of the physical address */\n geocode?: AddressLocation;\n /** country full-name */\n countryFullname?: string | null;\n /**\n * multi-level subdivisions from top to bottom\n * @maxSize 6\n */\n subdivisions?: Subdivision[];\n}\n\n/** @oneof */\nexport interface AddressStreetOneOf {\n /** a break down of the street to number and street name */\n streetAddress?: StreetAddress;\n /** Main address line (usually street and number) as free text */\n addressLine?: string | null;\n}\n\nexport interface StreetAddress {\n /** street number */\n number?: string;\n /** street name */\n name?: string;\n}\n\nexport interface AddressLocation {\n /**\n * address latitude coordinates\n * @min -90\n * @max 90\n */\n latitude?: number | null;\n /**\n * address longitude coordinates\n * @min -180\n * @max 180\n */\n longitude?: number | null;\n}\n\nexport interface Subdivision {\n /** subdivision short code */\n code?: string;\n /** subdivision full-name */\n name?: string;\n}\n\nexport enum SubdivisionType {\n UNKNOWN_SUBDIVISION_TYPE = 'UNKNOWN_SUBDIVISION_TYPE',\n /** State */\n ADMINISTRATIVE_AREA_LEVEL_1 = 'ADMINISTRATIVE_AREA_LEVEL_1',\n /** County */\n ADMINISTRATIVE_AREA_LEVEL_2 = 'ADMINISTRATIVE_AREA_LEVEL_2',\n /** City/town */\n ADMINISTRATIVE_AREA_LEVEL_3 = 'ADMINISTRATIVE_AREA_LEVEL_3',\n /** Neighborhood/quarter */\n ADMINISTRATIVE_AREA_LEVEL_4 = 'ADMINISTRATIVE_AREA_LEVEL_4',\n /** Street/block */\n ADMINISTRATIVE_AREA_LEVEL_5 = 'ADMINISTRATIVE_AREA_LEVEL_5',\n /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */\n COUNTRY = 'COUNTRY',\n}\n\n/** @enumType */\nexport type SubdivisionTypeWithLiterals =\n | SubdivisionType\n | 'UNKNOWN_SUBDIVISION_TYPE'\n | 'ADMINISTRATIVE_AREA_LEVEL_1'\n | 'ADMINISTRATIVE_AREA_LEVEL_2'\n | 'ADMINISTRATIVE_AREA_LEVEL_3'\n | 'ADMINISTRATIVE_AREA_LEVEL_4'\n | 'ADMINISTRATIVE_AREA_LEVEL_5'\n | 'COUNTRY';\n\nexport interface ScheduleConfig {\n /**\n * Defines event as TBD (To Be Determined) schedule.\n * When event time is not yet defined, TBD message is displayed instead of event start and end times.\n * `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.\n */\n scheduleTbd?: boolean;\n /**\n * TBD message.\n * @maxLength 100\n */\n scheduleTbdMessage?: string | null;\n /** Event start timestamp. */\n startDate?: Date | null;\n /** Event end timestamp. */\n endDate?: Date | null;\n /**\n * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n * @maxLength 100\n */\n timeZoneId?: string | null;\n /** Whether end date is hidden in the formatted schedule. */\n endDateHidden?: boolean;\n /** Whether time zone is displayed in formatted schedule. */\n showTimeZone?: boolean;\n /** Event recurrences. */\n recurrences?: Recurrences;\n}\n\nexport interface Recurrences {\n /**\n * Event occurrences.\n * @maxSize 1000\n */\n occurrences?: Occurrence[];\n /**\n * Recurring event category ID.\n * @readonly\n */\n categoryId?: string | null;\n /**\n * Recurrence status.\n * @readonly\n */\n status?: StatusWithLiterals;\n}\n\nexport interface Occurrence {\n /** Event start timestamp. */\n startDate?: Date | null;\n /** Event end timestamp. */\n endDate?: Date | null;\n /**\n * Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`.\n * @maxLength 100\n */\n timeZoneId?: string | null;\n /** Whether time zone is displayed in formatted schedule. */\n showTimeZone?: boolean;\n}\n\nexport enum Status {\n /** Event occurs only once. */\n ONE_TIME = 'ONE_TIME',\n /** Event is recurring. */\n RECURRING = 'RECURRING',\n /** Marks the next upcoming occurrence of the recurring event. */\n RECURRING_NEXT = 'RECURRING_NEXT',\n /** Marks the most recent ended occurrence of the recurring event. */\n RECURRING_LAST_ENDED = 'RECURRING_LAST_ENDED',\n /** Marks the most recent canceled occurrence of the recurring event. */\n RECURRING_LAST_CANCELED = 'RECURRING_LAST_CANCELED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n | Status\n | 'ONE_TIME'\n | 'RECURRING'\n | 'RECURRING_NEXT'\n | 'RECURRING_LAST_ENDED'\n | 'RECURRING_LAST_CANCELED';\n\nexport enum EventStatus {\n /** Event is public and scheduled to start */\n SCHEDULED = 'SCHEDULED',\n /** Event has started */\n STARTED = 'STARTED',\n /** Event has ended */\n ENDED = 'ENDED',\n /** Event was canceled */\n CANCELED = 'CANCELED',\n}\n\n/** @enumType */\nexport type EventStatusWithLiterals =\n | EventStatus\n | 'SCHEDULED'\n | 'STARTED'\n | 'ENDED'\n | 'CANCELED';\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface TriggerNotificationRequest\n extends TriggerNotificationRequestNotificationOneOf,\n TriggerNotificationRequestGuestsOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n /** Rsvp guest info */\n rsvpGuest?: RsvpGuest;\n /** Order guest info */\n orderGuest?: OrderGuest;\n /** Event guests info */\n eventGuests?: EventGuests;\n /** Ticket guests info */\n ticketGuest?: TicketGuest;\n}\n\n/** @oneof */\nexport interface TriggerNotificationRequestNotificationOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TriggerNotificationRequestGuestsOneOf {\n /** Rsvp guest info */\n rsvpGuest?: RsvpGuest;\n /** Order guest info */\n orderGuest?: OrderGuest;\n /** Event guests info */\n eventGuests?: EventGuests;\n /** Ticket guests info */\n ticketGuest?: TicketGuest;\n}\n\nexport enum PushNotificationType {\n /** This is default value. This value is unused. */\n UNKNOWN_PUSH_TYPE = 'UNKNOWN_PUSH_TYPE',\n /** Triggered when event is updated. */\n PUSH_EVENT_UPDATED = 'PUSH_EVENT_UPDATED',\n /** Triggered when event is canceled. */\n PUSH_EVENT_CANCELATION = 'PUSH_EVENT_CANCELATION',\n /** Triggered before the event start time. */\n PUSH_UPCOMING_EVENT_REMINDER = 'PUSH_UPCOMING_EVENT_REMINDER',\n /** Triggered when event is created. */\n PUSH_EVENT_CREATED = 'PUSH_EVENT_CREATED',\n}\n\n/** @enumType */\nexport type PushNotificationTypeWithLiterals =\n | PushNotificationType\n | 'UNKNOWN_PUSH_TYPE'\n | 'PUSH_EVENT_UPDATED'\n | 'PUSH_EVENT_CANCELATION'\n | 'PUSH_UPCOMING_EVENT_REMINDER'\n | 'PUSH_EVENT_CREATED';\n\n/** Single guest associated to the RSVP */\nexport interface RsvpGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Rsvp id\n * @format GUID\n */\n rsvpId?: string;\n}\n\n/** Single guest associated to the Order */\nexport interface OrderGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Order number\n * @maxLength 36\n */\n orderNumber?: string;\n}\n\n/** All event guest from RSVPs and Orders */\nexport interface EventGuests {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n}\n\n/** Multiple guests associated to Tickets */\nexport interface TicketGuest {\n /**\n * Event id\n * @format GUID\n */\n eventId?: string;\n /**\n * Order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Ticket numbers must be from the same order only.\n * @minSize 1\n * @maxSize 100\n * @maxLength 36\n */\n ticketNumber?: string[];\n}\n\nexport interface TriggerNotificationResponse {}\n\n/** Triggered when an order is confirmed. */\nexport interface OrderConfirmed {\n /** Date and time the order was confirmed. */\n timestamp?: Date | null;\n /**\n * Site language when the order was initiated.\n * @format LANGUAGE\n */\n language?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Locale in which the order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /** Unique order number. */\n orderNumber?: string;\n /** Contact ID associated with the order. */\n contactId?: string;\n /**\n * Member ID associated with the order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Date and time the order was created.\n * @readonly\n */\n created?: Date | null;\n /** Buyer first name. */\n firstName?: string;\n /** Buyer last name. */\n lastName?: string;\n /** Buyer email address. */\n email?: string;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /** Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc. */\n method?: string | null;\n /** Tickets (generated after payment). */\n tickets?: Ticket[];\n /** Invoice. */\n invoice?: Invoice;\n /** Reservation ID associated with the order. */\n reservationId?: string;\n}\n\nexport interface FormResponse {\n /**\n * Form field inputs.\n * @maxSize 200\n */\n inputValues?: InputValue[];\n}\n\nexport interface InputValue {\n /**\n * Form field input name.\n * @maxLength 100\n */\n inputName?: string;\n /**\n * Form field value.\n * @maxLength 5000\n */\n value?: string;\n /**\n * Form field values.\n * @maxSize 100\n * @maxLength 5000\n */\n values?: string[];\n}\n\nexport interface FormattedAddress {\n /**\n * 1-line address representation.\n * @maxLength 200\n */\n formatted?: string;\n /** Address components. */\n address?: CommonAddress;\n}\n\n/** Physical address */\nexport interface CommonAddress extends CommonAddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: CommonStreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n /**\n * Country code.\n * @format COUNTRY\n */\n country?: string | null;\n /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */\n subdivision?: string | null;\n /** City name. */\n city?: string | null;\n /** Zip/postal code. */\n postalCode?: string | null;\n /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */\n addressLine2?: string | null;\n}\n\n/** @oneof */\nexport interface CommonAddressStreetOneOf {\n /** Street name and number. */\n streetAddress?: CommonStreetAddress;\n /** Main address line, usually street and number as free text. */\n addressLine?: string | null;\n}\n\nexport interface CommonStreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface CommonAddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface CommonSubdivision {\n /** Short subdivision code. */\n code?: string;\n /** Subdivision full name. */\n name?: string;\n}\n\n/** Subdivision Concordance values */\nexport interface StandardDetails {\n /**\n * subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30\n * @maxLength 20\n */\n iso31662?: string | null;\n}\n\nexport enum OrderStatus {\n /** Order status isn't available for this request fieldset. */\n NA_ORDER_STATUS = 'NA_ORDER_STATUS',\n /** Order is confirmed, no payment is required. */\n FREE = 'FREE',\n /** Order was paid, but the payment gateway suspended the payment. */\n PENDING = 'PENDING',\n /** Order is paid. */\n PAID = 'PAID',\n /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `\"PAID\"`. */\n OFFLINE_PENDING = 'OFFLINE_PENDING',\n /** Order is waiting for payment at the cashier. */\n INITIATED = 'INITIATED',\n /** Order is canceled. */\n CANCELED = 'CANCELED',\n /** Order payment is declined. */\n DECLINED = 'DECLINED',\n /** Order payment is authorized. */\n AUTHORIZED = 'AUTHORIZED',\n /** Order payment is voided. */\n VOIDED = 'VOIDED',\n /** Order is partially paid with less than the total amount. */\n PARTIALLY_PAID = 'PARTIALLY_PAID',\n}\n\n/** @enumType */\nexport type OrderStatusWithLiterals =\n | OrderStatus\n | 'NA_ORDER_STATUS'\n | 'FREE'\n | 'PENDING'\n | 'PAID'\n | 'OFFLINE_PENDING'\n | 'INITIATED'\n | 'CANCELED'\n | 'DECLINED'\n | 'AUTHORIZED'\n | 'VOIDED'\n | 'PARTIALLY_PAID';\n\nexport interface Ticket {\n /** Unique issued ticket number. */\n ticketNumber?: string;\n /**\n * Ticket definition ID.\n * @format GUID\n */\n ticketDefinitionId?: string;\n /** Ticket check-in. */\n checkIn?: CheckIn;\n /** Ticket price. */\n price?: Money;\n /** Whether ticket is archived. */\n archived?: boolean;\n /** Guest first name. */\n firstName?: string | null;\n /** Guest last name. */\n lastName?: string | null;\n /** Guest email. */\n email?: string | null;\n /**\n * Contact ID associated with this ticket.\n * @format GUID\n */\n contactId?: string | null;\n /** Whether ticket is confirmed */\n confirmed?: boolean;\n /**\n * Member ID associated with this ticket.\n * @format GUID\n */\n memberId?: string | null;\n /** Ticket form response (only assigned tickets contain separate forms). */\n form?: FormResponse;\n /** Ticket name. */\n ticketName?: string;\n /** Anonymized tickets no longer contain personally identifiable information (PII). */\n anonymized?: boolean;\n /** URL and password to online conference */\n onlineConferencingLogin?: OnlineConferencingLogin;\n /**\n * Seat ID associated with this ticket.\n * @maxLength 36\n */\n seatId?: string | null;\n /** Whether ticket is canceled. */\n canceled?: boolean | null;\n}\n\nexport interface CheckIn {\n /** Time of a ticket's check-in. */\n created?: Date | null;\n}\n\nexport interface Money {\n /**\n * *Deprecated:** Use `value` instead.\n * @format DECIMAL_VALUE\n * @deprecated\n */\n amount?: string;\n /**\n * 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`.\n * @format CURRENCY\n */\n currency?: string;\n /**\n * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.\n * @format DECIMAL_VALUE\n */\n value?: string | null;\n}\n\nexport interface OnlineConferencingLogin {\n /**\n * Link URL to the online conference.\n * @format WEB_URL\n * @readonly\n */\n link?: string;\n /**\n * Password for the online conference.\n * @readonly\n */\n password?: string | null;\n}\n\nexport interface Invoice {\n items?: Item[];\n /**\n * Total cart amount.\n * @deprecated\n */\n total?: Money;\n /** Discount applied to a cart. */\n discount?: Discount;\n /** Tax applied to a cart. */\n tax?: Tax;\n /** Total cart amount before discount, tax, and fees. */\n subTotal?: Money;\n /**\n * Total amount of a cart after discount, tax, and fees.\n * Grand total is calculated in the following order:\n * 1. Total prices of all items in the cart are calculated.\n * 2. Discount is subtracted from the cart, if applicable.\n * 3. Tax is added, if applicable.\n * 4. Wix ticket service fee is added.\n */\n grandTotal?: Money;\n /**\n * Fees applied to the cart.\n * @readonly\n */\n fees?: Fee[];\n /** Total revenue, excluding fees. Taxes and payment provider fees aren't deducted. */\n revenue?: Money;\n /** Invoice preview URL. Only returned if the order is paid. */\n previewUrl?: string | null;\n}\n\nexport interface Item {\n /**\n * Unique line item ID.\n * @format GUID\n */\n id?: string;\n /**\n * Line item quantity.\n * @min 1\n * @max 50\n */\n quantity?: number;\n /** Line item name. */\n name?: string;\n /** Line item price. */\n price?: Money;\n /** Total price for line items. Always equal to price * quantity. */\n total?: Money;\n /** Discount applied to the line item. */\n discount?: Discount;\n /** Tax applied to the item. */\n tax?: Tax;\n /**\n * Fees applied to the item.\n * @readonly\n */\n fees?: Fee[];\n}\n\nexport interface Discount {\n /** Total discount amount. */\n amount?: Money;\n /** Total sum after the discount. */\n afterDiscount?: Money;\n /**\n * Discount coupon code.\n * @deprecated\n */\n code?: string;\n /**\n * Discount coupon name.\n * @deprecated\n */\n name?: string;\n /**\n * Discount coupon ID.\n * @deprecated\n */\n couponId?: string;\n /** Discount items. */\n discounts?: DiscountItem[];\n}\n\nexport interface DiscountItem extends DiscountItemDiscountOneOf {\n /** Coupon discount. */\n coupon?: CouponDiscount;\n /** Pricing plan discount. */\n paidPlan?: PaidPlanDiscount;\n /** Total discount amount. */\n amount?: Money;\n}\n\n/** @oneof */\nexport interface DiscountItemDiscountOneOf {\n /** Coupon discount. */\n coupon?: CouponDiscount;\n /** Pricing plan discount. */\n paidPlan?: PaidPlanDiscount;\n}\n\nexport interface CouponDiscount {\n /** Discount coupon name. **Deprecated:** Use `invoice.discounts.coupon.name` instead. */\n name?: string;\n /** Discount coupon code. **Deprecated:** Use `invoice.discounts.coupon.code` instead. */\n code?: string;\n /** Discount coupon ID. **Deprecated:** Use `invoice.discounts.coupon.couponId` instead. */\n couponId?: string;\n}\n\nexport interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {\n /** Discount by percentage applied to tickets. */\n percentDiscount?: PercentDiscount;\n /** Name of pricing plan. */\n name?: string;\n}\n\n/** @oneof */\nexport interface PaidPlanDiscountDiscountOneOf {\n /** Discount by percentage applied to tickets. */\n percentDiscount?: PercentDiscount;\n}\n\nexport interface PercentDiscount {\n /**\n * Percent rate.\n * @decimalValue options { gte:0.01, lte:100, maxScale:2 }\n */\n rate?: string;\n /** Number of discounted tickets. */\n quantityDiscounted?: number;\n}\n\nexport interface Tax {\n /** Tax type. */\n type?: TaxTypeWithLiterals;\n /**\n * Tax name.\n * @readonly\n */\n name?: string;\n /**\n * Tax rate.\n * @format DECIMAL_VALUE\n */\n rate?: string;\n /** Taxable amount. */\n taxable?: Money;\n /** Total tax amount. */\n amount?: Money;\n}\n\nexport enum TaxType {\n /** Tax is included in the ticket price. */\n INCLUDED = 'INCLUDED',\n /** Tax is added to the order at the checkout. */\n ADDED = 'ADDED',\n /** Tax is added to the final total at the checkout. */\n ADDED_AT_CHECKOUT = 'ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type TaxTypeWithLiterals =\n | TaxType\n | 'INCLUDED'\n | 'ADDED'\n | 'ADDED_AT_CHECKOUT';\n\nexport interface Fee {\n /** Fee identifier. */\n name?: FeeNameWithLiterals;\n /** How fee is calculated. */\n type?: FeeTypeWithLiterals;\n /**\n * Fee rate.\n * @format DECIMAL_VALUE\n * @readonly\n */\n rate?: string;\n /** Total amount of fee charges. */\n amount?: Money;\n}\n\nexport enum FeeName {\n /** Wix ticket service fee charges applied to the line item. */\n WIX_FEE = 'WIX_FEE',\n}\n\n/** @enumType */\nexport type FeeNameWithLiterals = FeeName | 'WIX_FEE';\n\nexport enum FeeType {\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED = 'FEE_ADDED',\n /** Seller absorbs the fee. It's deducted from the ticket price. */\n FEE_INCLUDED = 'FEE_INCLUDED',\n /** Fee is added to the ticket price at checkout. */\n FEE_ADDED_AT_CHECKOUT = 'FEE_ADDED_AT_CHECKOUT',\n}\n\n/** @enumType */\nexport type FeeTypeWithLiterals =\n | FeeType\n | 'FEE_ADDED'\n | 'FEE_INCLUDED'\n | 'FEE_ADDED_AT_CHECKOUT';\n\n/** Produced if a buyer email was added to the existing order */\nexport interface OrderEmailAdded {\n /** Order updated timestamp in ISO UTC format. */\n timestamp?: Date | null;\n /**\n * Site language when Order initiated\n * @format LANGUAGE\n */\n language?: string | null;\n /**\n * Locale in which Order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Event ID.\n * @format GUID\n */\n eventId?: string;\n /**\n * Unique order number.\n * @maxLength 36\n */\n orderNumber?: string;\n /**\n * Contact ID associated with this order.\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Member ID associated with this order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Order created timestamp.\n * @readonly\n */\n created?: Date | null;\n /**\n * Order updated timestamp.\n * @readonly\n */\n updated?: Date | null;\n /**\n * Buyer first name.\n * @maxLength 255\n */\n firstName?: string | null;\n /**\n * Buyer last name.\n * @maxLength 255\n */\n lastName?: string | null;\n /**\n * Buyer email.\n * @format EMAIL\n */\n email?: string | null;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */\n confirmed?: boolean;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /**\n * Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc.\n * @maxLength 100\n */\n method?: string | null;\n /**\n * Tickets generated after payment.\n * @maxSize 50\n */\n tickets?: Ticket[];\n /** Whether order was archived and excluded from results. */\n archived?: boolean;\n /**\n * Reservation ID associated with this order.\n * @format GUID\n */\n reservationId?: string;\n /** Whether marketing consent was given. */\n marketingConsent?: boolean | null;\n}\n\n/** Triggered when an order is paid. */\nexport interface OrderPaid {\n /** Date and time the order was paid. */\n timestamp?: Date | null;\n /**\n * Site language when the order was initiated.\n * @format LANGUAGE\n */\n language?: string | null;\n /** Notifications silenced for this domain event. */\n silent?: boolean | null;\n /**\n * Locale in which the order was created.\n * @format LANGUAGE_TAG\n */\n locale?: string | null;\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /** Unique order number. */\n orderNumber?: string;\n /** Reservation ID associated with this order. */\n reservationId?: string;\n /**\n * Contact ID associated with this order.\n * @maxLength 36\n */\n contactId?: string;\n /**\n * Member ID associated with this order.\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Date and time the order was created.\n * @readonly\n */\n created?: Date | null;\n /**\n * Buyer first name.\n * @maxLength 255\n */\n firstName?: string;\n /**\n * Buyer last name.\n * @maxLength 255\n */\n lastName?: string;\n /**\n * Buyer email address.\n * @maxLength 255\n */\n email?: string;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Order status. */\n status?: OrderStatusWithLiterals;\n /**\n * Payment method used for paid tickets purchase, i.e. \"payPal\", \"creditCard\", etc.\n * @maxLength 255\n */\n method?: string | null;\n /**\n * Tickets (generated after payment).\n * @maxSize 50\n */\n tickets?: Ticket[];\n /** Invoice. */\n invoice?: Invoice;\n}\n\nexport interface TicketPdfResolved {\n /**\n * Optional order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Optional ticket number\n * @maxLength 36\n */\n ticketNumber?: string | null;\n /**\n * Resolved download url\n * @format WEB_URL\n */\n downloadUrl?: string | null;\n /** Resolve status */\n resolveFailed?: boolean | null;\n /**\n * Papyrus document id\n * @format GUID\n */\n documentId?: string | null;\n}\n\nexport interface TicketPdfResolveDelayed {\n /**\n * Optional order number\n * @maxLength 36\n */\n orderNumber?: string | null;\n /**\n * Optional ticket number\n * @maxLength 36\n */\n ticketNumber?: string | null;\n /**\n * Papyrus document id\n * @format GUID\n */\n documentId?: string | null;\n}\n\n/** Triggered when an order is canceled. */\nexport interface OrderCanceled {\n /**\n * Event ID to which the order belongs.\n * @format GUID\n */\n eventId?: string;\n /**\n * Unique order number.\n * @maxLength 36\n */\n orderNumber?: string;\n /**\n * Reservation ID associated with the order.\n * @format GUID\n */\n reservationId?: string;\n /**\n * Contact ID associated with the order.\n * @maxLength 36\n */\n contactId?: string;\n /**\n * Buyer first name.\n * @maxLength 50\n */\n firstName?: string | null;\n /**\n * Buyer last name.\n * @maxLength 50\n */\n lastName?: string | null;\n /**\n * Buyer email address.\n * @maxLength 255\n */\n email?: string | null;\n /** Checkout form response. */\n checkoutForm?: FormResponse;\n /** Invoice. */\n invoice?: Invoice;\n}\n","import * as ambassadorWixEventsNotificationsV2NotificationConfig from './events-notifications-v2-notification-config-notifications.http.js';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfigTypes from './events-notifications-v2-notification-config-notifications.types.js';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes from './events-notifications-v2-notification-config-notifications.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function resolveNotificationConfig(): __PublicMethodMetaInfo<\n 'GET',\n { notificationConfigId: string },\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigResponse\n> {\n const payload = { notificationConfigId: ':notificationConfigId' } as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/notification-configs/resolve/{notificationConfigId}',\n pathParams: { notificationConfigId: 'notificationConfigId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function upsertNotificationConfig(): __PublicMethodMetaInfo<\n 'POST',\n { notificationConfigId: string },\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigResponse\n> {\n const payload = {\n notificationConfig: { id: ':notificationConfigId' },\n } as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/notification-configs/{notificationConfig.id}',\n pathParams: { notificationConfigId: 'notificationConfigId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function triggerNotification(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationRequest,\n ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationResponse,\n ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(\n payload\n );\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/notifications/trigger',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n NotificationConfig as NotificationConfigOriginal,\n EmailNotificationConfig as EmailNotificationConfigOriginal,\n EmailNotificationType as EmailNotificationTypeOriginal,\n EmailNotificationTypeWithLiterals as EmailNotificationTypeWithLiteralsOriginal,\n EmailTemplate as EmailTemplateOriginal,\n Link as LinkOriginal,\n EmailNotificationReminderTime as EmailNotificationReminderTimeOriginal,\n EmailNotificationReminderTimeWithLiterals as EmailNotificationReminderTimeWithLiteralsOriginal,\n ResolveNotificationConfigRequest as ResolveNotificationConfigRequestOriginal,\n ResolveNotificationConfigResponse as ResolveNotificationConfigResponseOriginal,\n UpsertNotificationConfigRequest as UpsertNotificationConfigRequestOriginal,\n UpsertNotificationConfigResponse as UpsertNotificationConfigResponseOriginal,\n ResolveEmailNotificationConfigRequest as ResolveEmailNotificationConfigRequestOriginal,\n ResolveEmailNotificationConfigResponse as ResolveEmailNotificationConfigResponseOriginal,\n EventCanceled as EventCanceledOriginal,\n Empty as EmptyOriginal,\n EventDeleted as EventDeletedOriginal,\n EventCopied as EventCopiedOriginal,\n Location as LocationOriginal,\n MapCoordinates as MapCoordinatesOriginal,\n LocationType as LocationTypeOriginal,\n LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal,\n Address as AddressOriginal,\n AddressStreetOneOf as AddressStreetOneOfOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n Subdivision as SubdivisionOriginal,\n SubdivisionType as SubdivisionTypeOriginal,\n SubdivisionTypeWithLiterals as SubdivisionTypeWithLiteralsOriginal,\n ScheduleConfig as ScheduleConfigOriginal,\n Recurrences as RecurrencesOriginal,\n Occurrence as OccurrenceOriginal,\n Status as StatusOriginal,\n StatusWithLiterals as StatusWithLiteralsOriginal,\n EventStatus as EventStatusOriginal,\n EventStatusWithLiterals as EventStatusWithLiteralsOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n TriggerNotificationRequest as TriggerNotificationRequestOriginal,\n TriggerNotificationRequestNotificationOneOf as TriggerNotificationRequestNotificationOneOfOriginal,\n TriggerNotificationRequestGuestsOneOf as TriggerNotificationRequestGuestsOneOfOriginal,\n PushNotificationType as PushNotificationTypeOriginal,\n PushNotificationTypeWithLiterals as PushNotificationTypeWithLiteralsOriginal,\n RsvpGuest as RsvpGuestOriginal,\n OrderGuest as OrderGuestOriginal,\n EventGuests as EventGuestsOriginal,\n TicketGuest as TicketGuestOriginal,\n TriggerNotificationResponse as TriggerNotificationResponseOriginal,\n OrderConfirmed as OrderConfirmedOriginal,\n FormResponse as FormResponseOriginal,\n InputValue as InputValueOriginal,\n FormattedAddress as FormattedAddressOriginal,\n CommonAddress as CommonAddressOriginal,\n CommonAddressStreetOneOf as CommonAddressStreetOneOfOriginal,\n CommonStreetAddress as CommonStreetAddressOriginal,\n CommonAddressLocation as CommonAddressLocationOriginal,\n CommonSubdivision as CommonSubdivisionOriginal,\n StandardDetails as StandardDetailsOriginal,\n OrderStatus as OrderStatusOriginal,\n OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal,\n Ticket as TicketOriginal,\n CheckIn as CheckInOriginal,\n Money as MoneyOriginal,\n OnlineConferencingLogin as OnlineConferencingLoginOriginal,\n Invoice as InvoiceOriginal,\n Item as ItemOriginal,\n Discount as DiscountOriginal,\n DiscountItem as DiscountItemOriginal,\n DiscountItemDiscountOneOf as DiscountItemDiscountOneOfOriginal,\n CouponDiscount as CouponDiscountOriginal,\n PaidPlanDiscount as PaidPlanDiscountOriginal,\n PaidPlanDiscountDiscountOneOf as PaidPlanDiscountDiscountOneOfOriginal,\n PercentDiscount as PercentDiscountOriginal,\n Tax as TaxOriginal,\n TaxType as TaxTypeOriginal,\n TaxTypeWithLiterals as TaxTypeWithLiteralsOriginal,\n Fee as FeeOriginal,\n FeeName as FeeNameOriginal,\n FeeNameWithLiterals as FeeNameWithLiteralsOriginal,\n FeeType as FeeTypeOriginal,\n FeeTypeWithLiterals as FeeTypeWithLiteralsOriginal,\n OrderEmailAdded as OrderEmailAddedOriginal,\n OrderPaid as OrderPaidOriginal,\n TicketPdfResolved as TicketPdfResolvedOriginal,\n TicketPdfResolveDelayed as TicketPdfResolveDelayedOriginal,\n OrderCanceled as OrderCanceledOriginal,\n} from './events-notifications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AAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACiD;AAAA,IACnD;AAAA,EACF;AAEF,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","EmailNotificationType","EmailNotificationReminderTime","LocationType","SubdivisionType","Status","EventStatus","WebhookIdentityType","PushNotificationType","OrderStatus","TaxType","FeeName","FeeType","resolveNotificationConfig","upsertNotificationConfig","triggerNotification"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_events_notifications",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -50,5 +50,5 @@
50
50
  "fqdn": "wix.events.notifications.v2.notification_config"
51
51
  }
52
52
  },
53
- "falconPackageHash": "240b237b10ffff478cd7b1b0b00efdefda9d2a16b0c02b0fdb31f723"
53
+ "falconPackageHash": "e33c62010e837b72e88a826dcf7e8a295dadb98dbbaab01c15cd2f08"
54
54
  }