@wix/auto_sdk_events_notifications 1.0.57 → 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 +10 -10
  2. package/build/cjs/index.js +85 -555
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +397 -3222
  5. package/build/cjs/index.typings.js +77 -547
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +268 -3110
  8. package/build/cjs/meta.js +63 -533
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +10 -10
  11. package/build/es/index.mjs +85 -504
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +397 -3222
  14. package/build/es/index.typings.mjs +77 -496
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +268 -3110
  17. package/build/es/meta.mjs +63 -482
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +10 -10
  20. package/build/internal/cjs/index.js +85 -555
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +397 -3222
  23. package/build/internal/cjs/index.typings.js +77 -547
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +268 -3110
  26. package/build/internal/cjs/meta.js +63 -533
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +10 -10
  29. package/build/internal/es/index.mjs +85 -504
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +397 -3222
  32. package/build/internal/es/index.typings.mjs +77 -496
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +268 -3110
  35. package/build/internal/es/meta.mjs +63 -482
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -12,7 +12,7 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
12
12
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
13
13
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
14
14
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
15
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
15
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
16
16
  const domainToMappings = {
17
17
  "api._api_base_domain_": [
18
18
  {
@@ -45,7 +45,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
45
45
  };
46
46
  return resolveUrl(Object.assign(opts, { domainToMappings }));
47
47
  }
48
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
48
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
49
49
  const domainToMappings = {
50
50
  "api._api_base_domain_": [
51
51
  {
@@ -79,27 +79,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
79
79
  return resolveUrl(Object.assign(opts, { domainToMappings }));
80
80
  }
81
81
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
82
- function triggerNotification(payload) {
83
- function __triggerNotification({ host }) {
84
- const metadata = {
85
- entityFqdn: "wix.events.notifications.v2.notification_config",
86
- method: "POST",
87
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
88
- packageName: PACKAGE_NAME,
89
- migrationOptions: {
90
- optInTransformResponse: true
91
- },
92
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
93
- protoPath: "/v2/notifications/trigger",
94
- data: payload,
95
- host
96
- }),
97
- data: payload
98
- };
99
- return metadata;
100
- }
101
- return __triggerNotification;
102
- }
103
82
  function resolveNotificationConfig(payload) {
104
83
  function __resolveNotificationConfig({ host }) {
105
84
  const metadata = {
@@ -173,6 +152,27 @@ function upsertNotificationConfig(payload) {
173
152
  }
174
153
  return __upsertNotificationConfig;
175
154
  }
155
+ function triggerNotification(payload) {
156
+ function __triggerNotification({ host }) {
157
+ const metadata = {
158
+ entityFqdn: "wix.events.notifications.v2.notification_config",
159
+ method: "POST",
160
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
161
+ packageName: PACKAGE_NAME,
162
+ migrationOptions: {
163
+ optInTransformResponse: true
164
+ },
165
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
166
+ protoPath: "/v2/notifications/trigger",
167
+ data: payload,
168
+ host
169
+ }),
170
+ data: payload
171
+ };
172
+ return metadata;
173
+ }
174
+ return __triggerNotification;
175
+ }
176
176
 
177
177
  // src/events-notifications-v2-notification-config-notifications.universal.ts
178
178
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -196,14 +196,6 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
196
196
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
197
197
  return EmailNotificationReminderTime2;
198
198
  })(EmailNotificationReminderTime || {});
199
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
200
- PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
201
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
202
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
203
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
204
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
205
- return PushNotificationType2;
206
- })(PushNotificationType || {});
207
199
  var LocationType = /* @__PURE__ */ ((LocationType2) => {
208
200
  LocationType2["VENUE"] = "VENUE";
209
201
  LocationType2["ONLINE"] = "ONLINE";
@@ -234,380 +226,22 @@ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
234
226
  EventStatus2["CANCELED"] = "CANCELED";
235
227
  return EventStatus2;
236
228
  })(EventStatus || {});
237
- var EventType = /* @__PURE__ */ ((EventType2) => {
238
- EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
239
- EventType2["RSVP"] = "RSVP";
240
- EventType2["TICKETS"] = "TICKETS";
241
- EventType2["EXTERNAL"] = "EXTERNAL";
242
- EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
243
- return EventType2;
244
- })(EventType || {});
245
- var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
246
- RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
247
- RegistrationStatus2["CLOSED"] = "CLOSED";
248
- RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
249
- RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
250
- RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
251
- RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
252
- RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
253
- RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
254
- return RegistrationStatus2;
255
- })(RegistrationStatus || {});
256
- var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
257
- RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
258
- RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
259
- return RsvpStatusOptions2;
260
- })(RsvpStatusOptions || {});
261
- var TaxType = /* @__PURE__ */ ((TaxType2) => {
262
- TaxType2["INCLUDED"] = "INCLUDED";
263
- TaxType2["ADDED"] = "ADDED";
264
- TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
265
- return TaxType2;
266
- })(TaxType || {});
267
- var CheckoutType = /* @__PURE__ */ ((CheckoutType2) => {
268
- CheckoutType2["UNKNOWN_CHECKOUT_TYPE"] = "UNKNOWN_CHECKOUT_TYPE";
269
- CheckoutType2["EVENTS_APP"] = "EVENTS_APP";
270
- CheckoutType2["ECOMM_PLATFORM"] = "ECOMM_PLATFORM";
271
- return CheckoutType2;
272
- })(CheckoutType || {});
273
- var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
274
- VisitorType2["VISITOR"] = "VISITOR";
275
- VisitorType2["MEMBER"] = "MEMBER";
276
- VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
277
- return VisitorType2;
278
- })(VisitorType || {});
279
- var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
280
- InputControlType2["INPUT"] = "INPUT";
281
- InputControlType2["TEXTAREA"] = "TEXTAREA";
282
- InputControlType2["DROPDOWN"] = "DROPDOWN";
283
- InputControlType2["RADIO"] = "RADIO";
284
- InputControlType2["CHECKBOX"] = "CHECKBOX";
285
- InputControlType2["NAME"] = "NAME";
286
- InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
287
- InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
288
- InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
289
- InputControlType2["DATE"] = "DATE";
290
- return InputControlType2;
291
- })(InputControlType || {});
292
- var ValueType = /* @__PURE__ */ ((ValueType2) => {
293
- ValueType2["TEXT"] = "TEXT";
294
- ValueType2["NUMBER"] = "NUMBER";
295
- ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
296
- ValueType2["DATE_TIME"] = "DATE_TIME";
297
- ValueType2["ADDRESS"] = "ADDRESS";
298
- return ValueType2;
299
- })(ValueType || {});
300
- var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
301
- ConferenceType2["MEETING"] = "MEETING";
302
- ConferenceType2["WEBINAR"] = "WEBINAR";
303
- return ConferenceType2;
304
- })(ConferenceType || {});
305
- var State = /* @__PURE__ */ ((State2) => {
306
- State2["MANUAL"] = "MANUAL";
307
- State2["AUTO"] = "AUTO";
308
- State2["RECURRING_EVENT"] = "RECURRING_EVENT";
309
- State2["HIDDEN"] = "HIDDEN";
310
- return State2;
311
- })(State || {});
312
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
313
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
314
- NodeType2["TEXT"] = "TEXT";
315
- NodeType2["HEADING"] = "HEADING";
316
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
317
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
318
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
319
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
320
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
321
- NodeType2["VIDEO"] = "VIDEO";
322
- NodeType2["DIVIDER"] = "DIVIDER";
323
- NodeType2["FILE"] = "FILE";
324
- NodeType2["GALLERY"] = "GALLERY";
325
- NodeType2["GIF"] = "GIF";
326
- NodeType2["HTML"] = "HTML";
327
- NodeType2["IMAGE"] = "IMAGE";
328
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
329
- NodeType2["MAP"] = "MAP";
330
- NodeType2["POLL"] = "POLL";
331
- NodeType2["APP_EMBED"] = "APP_EMBED";
332
- NodeType2["BUTTON"] = "BUTTON";
333
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
334
- NodeType2["TABLE"] = "TABLE";
335
- NodeType2["EMBED"] = "EMBED";
336
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
337
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
338
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
339
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
340
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
341
- NodeType2["EXTERNAL"] = "EXTERNAL";
342
- NodeType2["AUDIO"] = "AUDIO";
343
- NodeType2["CAPTION"] = "CAPTION";
344
- NodeType2["LAYOUT"] = "LAYOUT";
345
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
346
- return NodeType2;
347
- })(NodeType || {});
348
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
349
- WidthType2["CONTENT"] = "CONTENT";
350
- WidthType2["SMALL"] = "SMALL";
351
- WidthType2["ORIGINAL"] = "ORIGINAL";
352
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
353
- return WidthType2;
354
- })(WidthType || {});
355
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
356
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
357
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
358
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
359
- return PluginContainerDataAlignment2;
360
- })(PluginContainerDataAlignment || {});
361
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
362
- ButtonDataType2["LINK"] = "LINK";
363
- ButtonDataType2["ACTION"] = "ACTION";
364
- return ButtonDataType2;
365
- })(ButtonDataType || {});
366
- var Target = /* @__PURE__ */ ((Target2) => {
367
- Target2["SELF"] = "SELF";
368
- Target2["BLANK"] = "BLANK";
369
- Target2["PARENT"] = "PARENT";
370
- Target2["TOP"] = "TOP";
371
- return Target2;
372
- })(Target || {});
373
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
374
- TextAlignment2["AUTO"] = "AUTO";
375
- TextAlignment2["LEFT"] = "LEFT";
376
- TextAlignment2["RIGHT"] = "RIGHT";
377
- TextAlignment2["CENTER"] = "CENTER";
378
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
379
- return TextAlignment2;
380
- })(TextAlignment || {});
381
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
382
- LineStyle2["SINGLE"] = "SINGLE";
383
- LineStyle2["DOUBLE"] = "DOUBLE";
384
- LineStyle2["DASHED"] = "DASHED";
385
- LineStyle2["DOTTED"] = "DOTTED";
386
- return LineStyle2;
387
- })(LineStyle || {});
388
- var Width = /* @__PURE__ */ ((Width2) => {
389
- Width2["LARGE"] = "LARGE";
390
- Width2["MEDIUM"] = "MEDIUM";
391
- Width2["SMALL"] = "SMALL";
392
- return Width2;
393
- })(Width || {});
394
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
395
- DividerDataAlignment2["CENTER"] = "CENTER";
396
- DividerDataAlignment2["LEFT"] = "LEFT";
397
- DividerDataAlignment2["RIGHT"] = "RIGHT";
398
- return DividerDataAlignment2;
399
- })(DividerDataAlignment || {});
400
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
401
- ViewMode2["NONE"] = "NONE";
402
- ViewMode2["FULL"] = "FULL";
403
- ViewMode2["MINI"] = "MINI";
404
- return ViewMode2;
405
- })(ViewMode || {});
406
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
407
- LayoutType2["COLLAGE"] = "COLLAGE";
408
- LayoutType2["MASONRY"] = "MASONRY";
409
- LayoutType2["GRID"] = "GRID";
410
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
411
- LayoutType2["SLIDER"] = "SLIDER";
412
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
413
- LayoutType2["PANORAMA"] = "PANORAMA";
414
- LayoutType2["COLUMN"] = "COLUMN";
415
- LayoutType2["MAGIC"] = "MAGIC";
416
- LayoutType2["FULLSIZE"] = "FULLSIZE";
417
- return LayoutType2;
418
- })(LayoutType || {});
419
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
420
- Orientation2["ROWS"] = "ROWS";
421
- Orientation2["COLUMNS"] = "COLUMNS";
422
- return Orientation2;
423
- })(Orientation || {});
424
- var Crop = /* @__PURE__ */ ((Crop2) => {
425
- Crop2["FILL"] = "FILL";
426
- Crop2["FIT"] = "FIT";
427
- return Crop2;
428
- })(Crop || {});
429
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
430
- ThumbnailsAlignment2["TOP"] = "TOP";
431
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
432
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
433
- ThumbnailsAlignment2["LEFT"] = "LEFT";
434
- ThumbnailsAlignment2["NONE"] = "NONE";
435
- return ThumbnailsAlignment2;
436
- })(ThumbnailsAlignment || {});
437
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
438
- GIFType2["NORMAL"] = "NORMAL";
439
- GIFType2["STICKER"] = "STICKER";
440
- return GIFType2;
441
- })(GIFType || {});
442
- var Source = /* @__PURE__ */ ((Source2) => {
443
- Source2["HTML"] = "HTML";
444
- Source2["ADSENSE"] = "ADSENSE";
445
- Source2["AI"] = "AI";
446
- return Source2;
447
- })(Source || {});
448
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
449
- StylesPosition2["START"] = "START";
450
- StylesPosition2["END"] = "END";
451
- StylesPosition2["TOP"] = "TOP";
452
- StylesPosition2["HIDDEN"] = "HIDDEN";
453
- return StylesPosition2;
454
- })(StylesPosition || {});
455
- var MapType = /* @__PURE__ */ ((MapType2) => {
456
- MapType2["ROADMAP"] = "ROADMAP";
457
- MapType2["SATELITE"] = "SATELITE";
458
- MapType2["HYBRID"] = "HYBRID";
459
- MapType2["TERRAIN"] = "TERRAIN";
460
- return MapType2;
461
- })(MapType || {});
462
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
463
- ViewRole2["CREATOR"] = "CREATOR";
464
- ViewRole2["VOTERS"] = "VOTERS";
465
- ViewRole2["EVERYONE"] = "EVERYONE";
466
- return ViewRole2;
467
- })(ViewRole || {});
468
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
469
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
470
- VoteRole2["ALL"] = "ALL";
471
- return VoteRole2;
472
- })(VoteRole || {});
473
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
474
- PollLayoutType2["LIST"] = "LIST";
475
- PollLayoutType2["GRID"] = "GRID";
476
- return PollLayoutType2;
477
- })(PollLayoutType || {});
478
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
479
- PollLayoutDirection2["LTR"] = "LTR";
480
- PollLayoutDirection2["RTL"] = "RTL";
481
- return PollLayoutDirection2;
482
- })(PollLayoutDirection || {});
483
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
484
- BackgroundType2["COLOR"] = "COLOR";
485
- BackgroundType2["IMAGE"] = "IMAGE";
486
- BackgroundType2["GRADIENT"] = "GRADIENT";
487
- return BackgroundType2;
488
- })(BackgroundType || {});
489
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
490
- DecorationType2["BOLD"] = "BOLD";
491
- DecorationType2["ITALIC"] = "ITALIC";
492
- DecorationType2["UNDERLINE"] = "UNDERLINE";
493
- DecorationType2["SPOILER"] = "SPOILER";
494
- DecorationType2["ANCHOR"] = "ANCHOR";
495
- DecorationType2["MENTION"] = "MENTION";
496
- DecorationType2["LINK"] = "LINK";
497
- DecorationType2["COLOR"] = "COLOR";
498
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
499
- DecorationType2["EXTERNAL"] = "EXTERNAL";
500
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
501
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
502
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
503
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
504
- return DecorationType2;
505
- })(DecorationType || {});
506
- var FontType = /* @__PURE__ */ ((FontType2) => {
507
- FontType2["PX"] = "PX";
508
- FontType2["EM"] = "EM";
509
- return FontType2;
510
- })(FontType || {});
511
- var Position = /* @__PURE__ */ ((Position2) => {
512
- Position2["START"] = "START";
513
- Position2["END"] = "END";
514
- Position2["TOP"] = "TOP";
515
- return Position2;
516
- })(Position || {});
517
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
518
- AspectRatio2["SQUARE"] = "SQUARE";
519
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
520
- return AspectRatio2;
521
- })(AspectRatio || {});
522
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
523
- Resizing2["FILL"] = "FILL";
524
- Resizing2["FIT"] = "FIT";
525
- return Resizing2;
526
- })(Resizing || {});
527
- var Placement = /* @__PURE__ */ ((Placement2) => {
528
- Placement2["IMAGE"] = "IMAGE";
529
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
530
- return Placement2;
531
- })(Placement || {});
532
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
533
- CardStylesType2["CONTAINED"] = "CONTAINED";
534
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
535
- return CardStylesType2;
536
- })(CardStylesType || {});
537
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
538
- Alignment2["START"] = "START";
539
- Alignment2["CENTER"] = "CENTER";
540
- Alignment2["END"] = "END";
541
- return Alignment2;
542
- })(Alignment || {});
543
- var Layout = /* @__PURE__ */ ((Layout2) => {
544
- Layout2["STACKED"] = "STACKED";
545
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
546
- return Layout2;
547
- })(Layout || {});
548
- var AppType = /* @__PURE__ */ ((AppType2) => {
549
- AppType2["PRODUCT"] = "PRODUCT";
550
- AppType2["EVENT"] = "EVENT";
551
- AppType2["BOOKING"] = "BOOKING";
552
- return AppType2;
553
- })(AppType || {});
554
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
555
- InitialExpandedItems2["FIRST"] = "FIRST";
556
- InitialExpandedItems2["ALL"] = "ALL";
557
- InitialExpandedItems2["NONE"] = "NONE";
558
- return InitialExpandedItems2;
559
- })(InitialExpandedItems || {});
560
- var Direction = /* @__PURE__ */ ((Direction2) => {
561
- Direction2["LTR"] = "LTR";
562
- Direction2["RTL"] = "RTL";
563
- return Direction2;
564
- })(Direction || {});
565
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
566
- VerticalAlignment2["TOP"] = "TOP";
567
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
568
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
569
- return VerticalAlignment2;
570
- })(VerticalAlignment || {});
571
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
572
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
573
- return NullValue2;
574
- })(NullValue || {});
575
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
576
- Scaling2["AUTO"] = "AUTO";
577
- Scaling2["CONTAIN"] = "CONTAIN";
578
- Scaling2["COVER"] = "COVER";
579
- return Scaling2;
580
- })(Scaling || {});
581
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
582
- ImagePosition2["CENTER"] = "CENTER";
583
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
584
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
585
- ImagePosition2["TOP"] = "TOP";
586
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
587
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
588
- ImagePosition2["BOTTOM"] = "BOTTOM";
589
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
590
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
591
- return ImagePosition2;
592
- })(ImagePosition || {});
593
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
594
- VerticalAlignmentAlignment2["TOP"] = "TOP";
595
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
596
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
597
- return VerticalAlignmentAlignment2;
598
- })(VerticalAlignmentAlignment || {});
599
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
600
- ResponsivenessBehaviour2["STACK"] = "STACK";
601
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
602
- return ResponsivenessBehaviour2;
603
- })(ResponsivenessBehaviour || {});
604
- var Type = /* @__PURE__ */ ((Type2) => {
605
- Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
606
- Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
607
- Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
608
- Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
609
- return Type2;
610
- })(Type || {});
229
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
230
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
231
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
232
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
233
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
234
+ WebhookIdentityType2["APP"] = "APP";
235
+ return WebhookIdentityType2;
236
+ })(WebhookIdentityType || {});
237
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
238
+ PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
239
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
240
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
241
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
242
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
243
+ return PushNotificationType2;
244
+ })(PushNotificationType || {});
611
245
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
612
246
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
613
247
  OrderStatus2["FREE"] = "FREE";
@@ -622,6 +256,12 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
622
256
  OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
623
257
  return OrderStatus2;
624
258
  })(OrderStatus || {});
259
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
260
+ TaxType2["INCLUDED"] = "INCLUDED";
261
+ TaxType2["ADDED"] = "ADDED";
262
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
263
+ return TaxType2;
264
+ })(TaxType || {});
625
265
  var FeeName = /* @__PURE__ */ ((FeeName2) => {
626
266
  FeeName2["WIX_FEE"] = "WIX_FEE";
627
267
  return FeeName2;
@@ -632,58 +272,39 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
632
272
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
633
273
  return FeeType2;
634
274
  })(FeeType || {});
635
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
636
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
637
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
638
- WebhookIdentityType2["MEMBER"] = "MEMBER";
639
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
640
- WebhookIdentityType2["APP"] = "APP";
641
- return WebhookIdentityType2;
642
- })(WebhookIdentityType || {});
643
- async function triggerNotification2(options) {
275
+ async function resolveNotificationConfig2(notificationConfigId) {
644
276
  const { httpClient, sideEffects } = arguments[1];
645
277
  const payload = renameKeysFromSDKRequestToRESTRequest({
646
- emailNotificationType: options?.emailNotificationType,
647
- pushNotificationType: options?.pushNotificationType,
648
- rsvpGuest: options?.rsvpGuest,
649
- orderGuest: options?.orderGuest,
650
- eventGuests: options?.eventGuests,
651
- ticketGuest: options?.ticketGuest
278
+ notificationConfigId
652
279
  });
653
- const reqOpts = triggerNotification(
280
+ const reqOpts = resolveNotificationConfig(
654
281
  payload
655
282
  );
656
283
  sideEffects?.onSiteCall?.();
657
284
  try {
658
285
  const result = await httpClient.request(reqOpts);
659
286
  sideEffects?.onSuccess?.(result);
287
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
660
288
  } catch (err) {
661
289
  const transformedError = sdkTransformError(
662
290
  err,
663
291
  {
664
292
  spreadPathsToArguments: {},
665
- explicitPathsToArguments: {
666
- emailNotificationType: "$[0].emailNotificationType",
667
- pushNotificationType: "$[0].pushNotificationType",
668
- rsvpGuest: "$[0].rsvpGuest",
669
- orderGuest: "$[0].orderGuest",
670
- eventGuests: "$[0].eventGuests",
671
- ticketGuest: "$[0].ticketGuest"
672
- },
293
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
673
294
  singleArgumentUnchanged: false
674
295
  },
675
- ["options"]
296
+ ["notificationConfigId"]
676
297
  );
677
298
  sideEffects?.onError?.(err);
678
299
  throw transformedError;
679
300
  }
680
301
  }
681
- async function resolveNotificationConfig2(notificationConfigId) {
682
- const { httpClient, sideEffects } = arguments[1];
302
+ async function upsertNotificationConfig2(_id, notificationConfig) {
303
+ const { httpClient, sideEffects } = arguments[2];
683
304
  const payload = renameKeysFromSDKRequestToRESTRequest({
684
- notificationConfigId
305
+ notificationConfig: { ...notificationConfig, id: _id }
685
306
  });
686
- const reqOpts = resolveNotificationConfig(
307
+ const reqOpts = upsertNotificationConfig(
687
308
  payload
688
309
  );
689
310
  sideEffects?.onSiteCall?.();
@@ -695,107 +316,67 @@ async function resolveNotificationConfig2(notificationConfigId) {
695
316
  const transformedError = sdkTransformError(
696
317
  err,
697
318
  {
698
- spreadPathsToArguments: {},
699
- explicitPathsToArguments: { notificationConfigId: "$[0]" },
319
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
320
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
700
321
  singleArgumentUnchanged: false
701
322
  },
702
- ["notificationConfigId"]
323
+ ["_id", "notificationConfig"]
703
324
  );
704
325
  sideEffects?.onError?.(err);
705
326
  throw transformedError;
706
327
  }
707
328
  }
708
- async function upsertNotificationConfig2(_id, notificationConfig) {
709
- const { httpClient, sideEffects } = arguments[2];
329
+ async function triggerNotification2(options) {
330
+ const { httpClient, sideEffects } = arguments[1];
710
331
  const payload = renameKeysFromSDKRequestToRESTRequest({
711
- notificationConfig: { ...notificationConfig, id: _id }
332
+ emailNotificationType: options?.emailNotificationType,
333
+ pushNotificationType: options?.pushNotificationType,
334
+ rsvpGuest: options?.rsvpGuest,
335
+ orderGuest: options?.orderGuest,
336
+ eventGuests: options?.eventGuests,
337
+ ticketGuest: options?.ticketGuest
712
338
  });
713
- const reqOpts = upsertNotificationConfig(
339
+ const reqOpts = triggerNotification(
714
340
  payload
715
341
  );
716
342
  sideEffects?.onSiteCall?.();
717
343
  try {
718
344
  const result = await httpClient.request(reqOpts);
719
345
  sideEffects?.onSuccess?.(result);
720
- return renameKeysFromRESTResponseToSDKResponse(result.data);
721
346
  } catch (err) {
722
347
  const transformedError = sdkTransformError(
723
348
  err,
724
349
  {
725
- spreadPathsToArguments: { notificationConfig: "$[1]" },
726
- explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
350
+ spreadPathsToArguments: {},
351
+ explicitPathsToArguments: {
352
+ emailNotificationType: "$[0].emailNotificationType",
353
+ pushNotificationType: "$[0].pushNotificationType",
354
+ rsvpGuest: "$[0].rsvpGuest",
355
+ orderGuest: "$[0].orderGuest",
356
+ eventGuests: "$[0].eventGuests",
357
+ ticketGuest: "$[0].ticketGuest"
358
+ },
727
359
  singleArgumentUnchanged: false
728
360
  },
729
- ["_id", "notificationConfig"]
361
+ ["options"]
730
362
  );
731
363
  sideEffects?.onError?.(err);
732
364
  throw transformedError;
733
365
  }
734
366
  }
735
367
  export {
736
- Alignment,
737
- AppType,
738
- AspectRatio,
739
- BackgroundType,
740
- ButtonDataType,
741
- CardStylesType,
742
- CheckoutType,
743
- ConferenceType,
744
- Crop,
745
- DecorationType,
746
- Direction,
747
- DividerDataAlignment,
748
368
  EmailNotificationReminderTime,
749
369
  EmailNotificationType,
750
370
  EventStatus,
751
- EventType,
752
371
  FeeName,
753
372
  FeeType,
754
- FontType,
755
- GIFType,
756
- ImagePosition,
757
- InitialExpandedItems,
758
- InputControlType,
759
- Layout,
760
- LayoutType,
761
- LineStyle,
762
373
  LocationType,
763
- MapType,
764
- NodeType,
765
- NullValue,
766
374
  OrderStatus,
767
- Orientation,
768
- Placement,
769
- PluginContainerDataAlignment,
770
- PollLayoutDirection,
771
- PollLayoutType,
772
- Position,
773
375
  PushNotificationType,
774
- RegistrationStatus,
775
- Resizing,
776
- ResponsivenessBehaviour,
777
- RsvpStatusOptions,
778
- Scaling,
779
- Source,
780
- State,
781
376
  Status,
782
- StylesPosition,
783
377
  SubdivisionType,
784
- Target,
785
378
  TaxType,
786
- TextAlignment,
787
- ThumbnailsAlignment,
788
- Type,
789
- ValueType,
790
- VerticalAlignment,
791
- VerticalAlignmentAlignment,
792
- ViewMode,
793
- ViewRole,
794
- VisitorType,
795
- VoteRole,
796
379
  WebhookIdentityType,
797
- Width,
798
- WidthType,
799
380
  resolveNotificationConfig2 as resolveNotificationConfig,
800
381
  triggerNotification2 as triggerNotification,
801
382
  upsertNotificationConfig2 as upsertNotificationConfig