@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
@@ -49,7 +49,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
49
49
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
50
50
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
51
51
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
52
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
52
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
53
53
  const domainToMappings = {
54
54
  "api._api_base_domain_": [
55
55
  {
@@ -82,7 +82,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
82
82
  };
83
83
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
84
84
  }
85
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
85
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
86
86
  const domainToMappings = {
87
87
  "api._api_base_domain_": [
88
88
  {
@@ -116,27 +116,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
116
116
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
117
117
  }
118
118
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
119
- function triggerNotification(payload) {
120
- function __triggerNotification({ host }) {
121
- const metadata = {
122
- entityFqdn: "wix.events.notifications.v2.notification_config",
123
- method: "POST",
124
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
125
- packageName: PACKAGE_NAME,
126
- migrationOptions: {
127
- optInTransformResponse: true
128
- },
129
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
130
- protoPath: "/v2/notifications/trigger",
131
- data: payload,
132
- host
133
- }),
134
- data: payload
135
- };
136
- return metadata;
137
- }
138
- return __triggerNotification;
139
- }
140
119
  function resolveNotificationConfig(payload) {
141
120
  function __resolveNotificationConfig({ host }) {
142
121
  const metadata = {
@@ -210,6 +189,27 @@ function upsertNotificationConfig(payload) {
210
189
  }
211
190
  return __upsertNotificationConfig;
212
191
  }
192
+ function triggerNotification(payload) {
193
+ function __triggerNotification({ host }) {
194
+ const metadata = {
195
+ entityFqdn: "wix.events.notifications.v2.notification_config",
196
+ method: "POST",
197
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
198
+ packageName: PACKAGE_NAME,
199
+ migrationOptions: {
200
+ optInTransformResponse: true
201
+ },
202
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
203
+ protoPath: "/v2/notifications/trigger",
204
+ data: payload,
205
+ host
206
+ }),
207
+ data: payload
208
+ };
209
+ return metadata;
210
+ }
211
+ return __triggerNotification;
212
+ }
213
213
 
214
214
  // src/events-notifications-v2-notification-config-notifications.universal.ts
215
215
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -233,14 +233,11 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
233
233
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
234
234
  return EmailNotificationReminderTime2;
235
235
  })(EmailNotificationReminderTime || {});
236
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
237
- PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
238
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
239
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
240
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
241
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
242
- return PushNotificationType2;
243
- })(PushNotificationType || {});
236
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
237
+ LocationType2["VENUE"] = "VENUE";
238
+ LocationType2["ONLINE"] = "ONLINE";
239
+ return LocationType2;
240
+ })(LocationType || {});
244
241
  var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
245
242
  SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
246
243
  SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
@@ -251,6 +248,37 @@ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
251
248
  SubdivisionType2["COUNTRY"] = "COUNTRY";
252
249
  return SubdivisionType2;
253
250
  })(SubdivisionType || {});
251
+ var Status = /* @__PURE__ */ ((Status2) => {
252
+ Status2["ONE_TIME"] = "ONE_TIME";
253
+ Status2["RECURRING"] = "RECURRING";
254
+ Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
255
+ Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
256
+ Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
257
+ return Status2;
258
+ })(Status || {});
259
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
260
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
261
+ EventStatus2["STARTED"] = "STARTED";
262
+ EventStatus2["ENDED"] = "ENDED";
263
+ EventStatus2["CANCELED"] = "CANCELED";
264
+ return EventStatus2;
265
+ })(EventStatus || {});
266
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
267
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
268
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
269
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
270
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
271
+ WebhookIdentityType2["APP"] = "APP";
272
+ return WebhookIdentityType2;
273
+ })(WebhookIdentityType || {});
274
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
275
+ PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
276
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
277
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
278
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
279
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
280
+ return PushNotificationType2;
281
+ })(PushNotificationType || {});
254
282
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
255
283
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
256
284
  OrderStatus2["FREE"] = "FREE";
@@ -281,78 +309,39 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
281
309
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
282
310
  return FeeType2;
283
311
  })(FeeType || {});
284
- var LocationType = /* @__PURE__ */ ((LocationType2) => {
285
- LocationType2["VENUE"] = "VENUE";
286
- LocationType2["ONLINE"] = "ONLINE";
287
- return LocationType2;
288
- })(LocationType || {});
289
- var Status = /* @__PURE__ */ ((Status2) => {
290
- Status2["ONE_TIME"] = "ONE_TIME";
291
- Status2["RECURRING"] = "RECURRING";
292
- Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
293
- Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
294
- Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
295
- return Status2;
296
- })(Status || {});
297
- var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
298
- EventStatus2["SCHEDULED"] = "SCHEDULED";
299
- EventStatus2["STARTED"] = "STARTED";
300
- EventStatus2["ENDED"] = "ENDED";
301
- EventStatus2["CANCELED"] = "CANCELED";
302
- return EventStatus2;
303
- })(EventStatus || {});
304
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
305
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
306
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
307
- WebhookIdentityType2["MEMBER"] = "MEMBER";
308
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
309
- WebhookIdentityType2["APP"] = "APP";
310
- return WebhookIdentityType2;
311
- })(WebhookIdentityType || {});
312
- async function triggerNotification2(options) {
312
+ async function resolveNotificationConfig2(notificationConfigId) {
313
313
  const { httpClient, sideEffects } = arguments[1];
314
314
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
315
- emailNotificationType: options?.emailNotificationType,
316
- pushNotificationType: options?.pushNotificationType,
317
- rsvpGuest: options?.rsvpGuest,
318
- orderGuest: options?.orderGuest,
319
- eventGuests: options?.eventGuests,
320
- ticketGuest: options?.ticketGuest
315
+ notificationConfigId
321
316
  });
322
- const reqOpts = triggerNotification(
317
+ const reqOpts = resolveNotificationConfig(
323
318
  payload
324
319
  );
325
320
  sideEffects?.onSiteCall?.();
326
321
  try {
327
322
  const result = await httpClient.request(reqOpts);
328
323
  sideEffects?.onSuccess?.(result);
324
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
329
325
  } catch (err) {
330
326
  const transformedError = (0, import_transform_error.transformError)(
331
327
  err,
332
328
  {
333
329
  spreadPathsToArguments: {},
334
- explicitPathsToArguments: {
335
- emailNotificationType: "$[0].emailNotificationType",
336
- pushNotificationType: "$[0].pushNotificationType",
337
- rsvpGuest: "$[0].rsvpGuest",
338
- orderGuest: "$[0].orderGuest",
339
- eventGuests: "$[0].eventGuests",
340
- ticketGuest: "$[0].ticketGuest"
341
- },
330
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
342
331
  singleArgumentUnchanged: false
343
332
  },
344
- ["options"]
333
+ ["notificationConfigId"]
345
334
  );
346
335
  sideEffects?.onError?.(err);
347
336
  throw transformedError;
348
337
  }
349
338
  }
350
- async function resolveNotificationConfig2(notificationConfigId) {
351
- const { httpClient, sideEffects } = arguments[1];
339
+ async function upsertNotificationConfig2(_id, notificationConfig) {
340
+ const { httpClient, sideEffects } = arguments[2];
352
341
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
353
- notificationConfigId
342
+ notificationConfig: { ...notificationConfig, id: _id }
354
343
  });
355
- const reqOpts = resolveNotificationConfig(
344
+ const reqOpts = upsertNotificationConfig(
356
345
  payload
357
346
  );
358
347
  sideEffects?.onSiteCall?.();
@@ -364,38 +353,49 @@ async function resolveNotificationConfig2(notificationConfigId) {
364
353
  const transformedError = (0, import_transform_error.transformError)(
365
354
  err,
366
355
  {
367
- spreadPathsToArguments: {},
368
- explicitPathsToArguments: { notificationConfigId: "$[0]" },
356
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
357
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
369
358
  singleArgumentUnchanged: false
370
359
  },
371
- ["notificationConfigId"]
360
+ ["_id", "notificationConfig"]
372
361
  );
373
362
  sideEffects?.onError?.(err);
374
363
  throw transformedError;
375
364
  }
376
365
  }
377
- async function upsertNotificationConfig2(_id, notificationConfig) {
378
- const { httpClient, sideEffects } = arguments[2];
366
+ async function triggerNotification2(options) {
367
+ const { httpClient, sideEffects } = arguments[1];
379
368
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
380
- notificationConfig: { ...notificationConfig, id: _id }
369
+ emailNotificationType: options?.emailNotificationType,
370
+ pushNotificationType: options?.pushNotificationType,
371
+ rsvpGuest: options?.rsvpGuest,
372
+ orderGuest: options?.orderGuest,
373
+ eventGuests: options?.eventGuests,
374
+ ticketGuest: options?.ticketGuest
381
375
  });
382
- const reqOpts = upsertNotificationConfig(
376
+ const reqOpts = triggerNotification(
383
377
  payload
384
378
  );
385
379
  sideEffects?.onSiteCall?.();
386
380
  try {
387
381
  const result = await httpClient.request(reqOpts);
388
382
  sideEffects?.onSuccess?.(result);
389
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
390
383
  } catch (err) {
391
384
  const transformedError = (0, import_transform_error.transformError)(
392
385
  err,
393
386
  {
394
- spreadPathsToArguments: { notificationConfig: "$[1]" },
395
- explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
387
+ spreadPathsToArguments: {},
388
+ explicitPathsToArguments: {
389
+ emailNotificationType: "$[0].emailNotificationType",
390
+ pushNotificationType: "$[0].pushNotificationType",
391
+ rsvpGuest: "$[0].rsvpGuest",
392
+ orderGuest: "$[0].orderGuest",
393
+ eventGuests: "$[0].eventGuests",
394
+ ticketGuest: "$[0].ticketGuest"
395
+ },
396
396
  singleArgumentUnchanged: false
397
397
  },
398
- ["_id", "notificationConfig"]
398
+ ["options"]
399
399
  );
400
400
  sideEffects?.onError?.(err);
401
401
  throw transformedError;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.typings.ts","../../src/events-notifications-v2-notification-config-notifications.universal.ts","../../src/events-notifications-v2-notification-config-notifications.http.ts"],"sourcesContent":["export * from './src/events-notifications-v2-notification-config-notifications.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfig from './events-notifications-v2-notification-config-notifications.http.js';\n\nexport 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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: 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 addressLine1?: 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 addressLine1?: 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 formatted?: string | null;\n /** Free text for human-to-human textual orientation aid purposes */\n hint?: string | null;\n /** coordinates of the physical address */\n location?: 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\nexport interface BaseEventMetadata {\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}\n\nexport interface EventMetadata extends BaseEventMetadata {\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\nexport interface NotificationConfigCreatedEnvelope {\n entity: NotificationConfig;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Read Events - all read permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS\n * @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Read Events\n * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS\n * @permissionScope Manage Guest List\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @webhook\n * @eventType wix.events.notifications.v2.notification_config_created\n * @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onNotificationConfigCreated(\n handler: (event: NotificationConfigCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface NotificationConfigUpdatedEnvelope {\n entity: NotificationConfig;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Read Events - all read permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS\n * @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Read Events\n * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS\n * @permissionScope Manage Guest List\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @webhook\n * @eventType wix.events.notifications.v2.notification_config_updated\n * @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onNotificationConfigUpdated(\n handler: (event: NotificationConfigUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Triggers notification\n * @public\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.guests\n * @requiredField options.notification\n * @permissionId WIX_EVENTS.MANAGE\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationService.TriggerNotification\n */\nexport async function triggerNotification(\n options: TriggerNotificationOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n emailNotificationType: options?.emailNotificationType,\n pushNotificationType: options?.pushNotificationType,\n rsvpGuest: options?.rsvpGuest,\n orderGuest: options?.orderGuest,\n eventGuests: options?.eventGuests,\n ticketGuest: options?.ticketGuest,\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n emailNotificationType: '$[0].emailNotificationType',\n pushNotificationType: '$[0].pushNotificationType',\n rsvpGuest: '$[0].rsvpGuest',\n orderGuest: '$[0].orderGuest',\n eventGuests: '$[0].eventGuests',\n ticketGuest: '$[0].ticketGuest',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TriggerNotificationOptions\n extends TriggerNotificationOptionsNotificationOneOf,\n TriggerNotificationOptionsGuestsOneOf {\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 TriggerNotificationOptionsNotificationOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TriggerNotificationOptionsGuestsOneOf {\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/**\n * Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.\n * @param notificationConfigId - Id of the NotificationConfig to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField notificationConfigId\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig\n */\nexport async function resolveNotificationConfig(\n notificationConfigId: string\n): Promise<\n NonNullablePaths<\n ResolveNotificationConfigResponse,\n | `notificationConfig.rsvpConfirmation.notificationType`\n | `notificationConfig.rsvpConfirmation.reminderTime`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n notificationConfigId: notificationConfigId,\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { notificationConfigId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['notificationConfigId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Upsert a NotificationConfig\n * @param _id - Event ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField notificationConfig\n * @permissionId WIX_EVENTS.UPDATE_NOTIFICATION_CONFIG\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig\n */\nexport async function upsertNotificationConfig(\n _id: string,\n notificationConfig: UpsertNotificationConfig\n): Promise<\n NonNullablePaths<\n UpsertNotificationConfigResponse,\n | `notificationConfig.rsvpConfirmation.notificationType`\n | `notificationConfig.rsvpConfirmation.reminderTime`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n notificationConfig: { ...notificationConfig, id: _id },\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { notificationConfig: '$[1]' },\n explicitPathsToArguments: { 'notificationConfig.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'notificationConfig']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpsertNotificationConfig {\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","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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAAA;AAAA,EAAA,2BAAAC;AAAA,EAAA,gCAAAC;AAAA;AAAA;;;ACAA,6BAAoD;AACpD,oCAGO;;;ACJP,0BAAkC;AAClC,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;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;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,sBAAsB,OAAO;AAAA,QACzD,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,sBAAsB;AAAA,IACzB;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;AAaA,eAAsBE,0BACpB,KACA,oBAQA;AAEA,QAAM,EAAE,YAAY,YAAY,IAAI,UAAU,CAAC;AAK/C,QAAM,cAAU,qEAAsC;AAAA,IACpD,oBAAoB,EAAE,GAAG,oBAAoB,IAAI,IAAI;AAAA,EACvD,CAAC;AAED,QAAM,UACiD;AAAA,IACnD;AAAA,EACF;AAEF,eAAa,aAAa;AAC1B,MAAI;AACF,UAAM,SAAS,MAAM,WAAW,QAAQ,OAAO;AAC/C,iBAAa,YAAY,MAAM;AAE/B,eAAO,uEAAwC,OAAO,IAAI;AAAA,EAC5D,SAAS,KAAU;AACjB,UAAM,uBAAmB,uBAAAF;AAAA,MACvB;AAAA,MACA;AAAA,QACE,wBAAwB,EAAE,oBAAoB,OAAO;AAAA,QACrD,0BAA0B,EAAE,yBAAyB,OAAO;AAAA,QAC5D,yBAAyB;AAAA,MAC3B;AAAA,MACA,CAAC,OAAO,oBAAoB;AAAA,IAC9B;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["resolveNotificationConfig","triggerNotification","upsertNotificationConfig","import_timestamp","import_rest_modules","payload","EmailNotificationType","EmailNotificationReminderTime","PushNotificationType","SubdivisionType","OrderStatus","TaxType","FeeName","FeeType","LocationType","Status","EventStatus","WebhookIdentityType","triggerNotification","sdkTransformError","resolveNotificationConfig","upsertNotificationConfig"]}
1
+ {"version":3,"sources":["../../index.typings.ts","../../src/events-notifications-v2-notification-config-notifications.universal.ts","../../src/events-notifications-v2-notification-config-notifications.http.ts"],"sourcesContent":["export * from './src/events-notifications-v2-notification-config-notifications.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEventsNotificationsV2NotificationConfig from './events-notifications-v2-notification-config-notifications.http.js';\n\nexport 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 addressLine1?: 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 formatted?: string | null;\n /** Free text for human-to-human textual orientation aid purposes */\n hint?: string | null;\n /** coordinates of the physical address */\n location?: 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 entity?: string;\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 currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: 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 addressLine1?: 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\nexport interface BaseEventMetadata {\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}\n\nexport interface EventMetadata extends BaseEventMetadata {\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\nexport interface NotificationConfigCreatedEnvelope {\n entity: NotificationConfig;\n metadata: EventMetadata;\n}\n\n/** @permissionScope Read Events - all read permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS\n * @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Read Events\n * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS\n * @permissionScope Manage Guest List\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @webhook\n * @eventType wix.events.notifications.v2.notification_config_created\n * @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement\n * @slug created\n * @documentationMaturity preview\n */\nexport declare function onNotificationConfigCreated(\n handler: (event: NotificationConfigCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface NotificationConfigUpdatedEnvelope {\n entity: NotificationConfig;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/** @permissionScope Read Events - all read permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS\n * @permissionScope Manage Events - all permissions\n * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS\n * @permissionScope Read Events\n * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS\n * @permissionScope Manage Guest List\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST\n * @permissionScope Manage Events\n * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @webhook\n * @eventType wix.events.notifications.v2.notification_config_updated\n * @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement\n * @slug updated\n * @documentationMaturity preview\n */\nexport declare function onNotificationConfigUpdated(\n handler: (event: NotificationConfigUpdatedEnvelope) => void | Promise<void>\n): void;\n\n/**\n * Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.\n * @param notificationConfigId - Id of the NotificationConfig to retrieve\n * @public\n * @documentationMaturity preview\n * @requiredField notificationConfigId\n * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig\n */\nexport async function resolveNotificationConfig(\n notificationConfigId: string\n): Promise<\n NonNullablePaths<\n ResolveNotificationConfigResponse,\n | `notificationConfig.rsvpConfirmation.notificationType`\n | `notificationConfig.rsvpConfirmation.reminderTime`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n notificationConfigId: notificationConfigId,\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { notificationConfigId: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['notificationConfigId']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Upsert a NotificationConfig\n * @param _id - Event ID.\n * @public\n * @documentationMaturity preview\n * @requiredField _id\n * @requiredField notificationConfig\n * @permissionId WIX_EVENTS.UPDATE_NOTIFICATION_CONFIG\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig\n */\nexport async function upsertNotificationConfig(\n _id: string,\n notificationConfig: UpsertNotificationConfig\n): Promise<\n NonNullablePaths<\n UpsertNotificationConfigResponse,\n | `notificationConfig.rsvpConfirmation.notificationType`\n | `notificationConfig.rsvpConfirmation.reminderTime`,\n 4\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n notificationConfig: { ...notificationConfig, id: _id },\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { notificationConfig: '$[1]' },\n explicitPathsToArguments: { 'notificationConfig.id': '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'notificationConfig']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpsertNotificationConfig {\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\n/**\n * Triggers notification\n * @public\n * @documentationMaturity preview\n * @requiredField options\n * @requiredField options.guests\n * @requiredField options.notification\n * @permissionId WIX_EVENTS.MANAGE\n * @applicableIdentity APP\n * @fqn wix.events.notifications.v2.NotificationService.TriggerNotification\n */\nexport async function triggerNotification(\n options: TriggerNotificationOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n emailNotificationType: options?.emailNotificationType,\n pushNotificationType: options?.pushNotificationType,\n rsvpGuest: options?.rsvpGuest,\n orderGuest: options?.orderGuest,\n eventGuests: options?.eventGuests,\n ticketGuest: options?.ticketGuest,\n });\n\n const reqOpts =\n ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n emailNotificationType: '$[0].emailNotificationType',\n pushNotificationType: '$[0].pushNotificationType',\n rsvpGuest: '$[0].rsvpGuest',\n orderGuest: '$[0].orderGuest',\n eventGuests: '$[0].eventGuests',\n ticketGuest: '$[0].ticketGuest',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface TriggerNotificationOptions\n extends TriggerNotificationOptionsNotificationOneOf,\n TriggerNotificationOptionsGuestsOneOf {\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 TriggerNotificationOptionsNotificationOneOf {\n /** Email notification type */\n emailNotificationType?: EmailNotificationTypeWithLiterals;\n /** Push notification type */\n pushNotificationType?: PushNotificationTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TriggerNotificationOptionsGuestsOneOf {\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","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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA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AAAA,MAC3B;AAAA,MACA,CAAC,SAAS;AAAA,IACZ;AACA,iBAAa,UAAU,GAAG;AAE1B,UAAM;AAAA,EACR;AACF;","names":["resolveNotificationConfig","triggerNotification","upsertNotificationConfig","import_timestamp","import_rest_modules","payload","EmailNotificationType","EmailNotificationReminderTime","LocationType","SubdivisionType","Status","EventStatus","WebhookIdentityType","PushNotificationType","OrderStatus","TaxType","FeeName","FeeType","resolveNotificationConfig","sdkTransformError","upsertNotificationConfig","triggerNotification"]}