@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
@@ -20,69 +20,18 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- Alignment: () => Alignment,
24
- AppType: () => AppType,
25
- AspectRatio: () => AspectRatio,
26
- BackgroundType: () => BackgroundType,
27
- ButtonDataType: () => ButtonDataType,
28
- CardStylesType: () => CardStylesType,
29
- CheckoutType: () => CheckoutType,
30
- ConferenceType: () => ConferenceType,
31
- Crop: () => Crop,
32
- DecorationType: () => DecorationType,
33
- Direction: () => Direction,
34
- DividerDataAlignment: () => DividerDataAlignment,
35
23
  EmailNotificationReminderTime: () => EmailNotificationReminderTime,
36
24
  EmailNotificationType: () => EmailNotificationType,
37
25
  EventStatus: () => EventStatus,
38
- EventType: () => EventType,
39
26
  FeeName: () => FeeName,
40
27
  FeeType: () => FeeType,
41
- FontType: () => FontType,
42
- GIFType: () => GIFType,
43
- ImagePosition: () => ImagePosition,
44
- InitialExpandedItems: () => InitialExpandedItems,
45
- InputControlType: () => InputControlType,
46
- Layout: () => Layout,
47
- LayoutType: () => LayoutType,
48
- LineStyle: () => LineStyle,
49
28
  LocationType: () => LocationType,
50
- MapType: () => MapType,
51
- NodeType: () => NodeType,
52
- NullValue: () => NullValue,
53
29
  OrderStatus: () => OrderStatus,
54
- Orientation: () => Orientation,
55
- Placement: () => Placement,
56
- PluginContainerDataAlignment: () => PluginContainerDataAlignment,
57
- PollLayoutDirection: () => PollLayoutDirection,
58
- PollLayoutType: () => PollLayoutType,
59
- Position: () => Position,
60
30
  PushNotificationType: () => PushNotificationType,
61
- RegistrationStatus: () => RegistrationStatus,
62
- Resizing: () => Resizing,
63
- ResponsivenessBehaviour: () => ResponsivenessBehaviour,
64
- RsvpStatusOptions: () => RsvpStatusOptions,
65
- Scaling: () => Scaling,
66
- Source: () => Source,
67
- State: () => State,
68
31
  Status: () => Status,
69
- StylesPosition: () => StylesPosition,
70
32
  SubdivisionType: () => SubdivisionType,
71
- Target: () => Target,
72
33
  TaxType: () => TaxType,
73
- TextAlignment: () => TextAlignment,
74
- ThumbnailsAlignment: () => ThumbnailsAlignment,
75
- Type: () => Type,
76
- ValueType: () => ValueType,
77
- VerticalAlignment: () => VerticalAlignment,
78
- VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
79
- ViewMode: () => ViewMode,
80
- ViewRole: () => ViewRole,
81
- VisitorType: () => VisitorType,
82
- VoteRole: () => VoteRole,
83
34
  WebhookIdentityType: () => WebhookIdentityType,
84
- Width: () => Width,
85
- WidthType: () => WidthType,
86
35
  onNotificationConfigCreated: () => onNotificationConfigCreated2,
87
36
  onNotificationConfigUpdated: () => onNotificationConfigUpdated2,
88
37
  resolveNotificationConfig: () => resolveNotificationConfig4,
@@ -108,7 +57,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
108
57
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
109
58
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
110
59
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
111
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
60
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
112
61
  const domainToMappings = {
113
62
  "api._api_base_domain_": [
114
63
  {
@@ -141,7 +90,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
141
90
  };
142
91
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
143
92
  }
144
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
93
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
145
94
  const domainToMappings = {
146
95
  "api._api_base_domain_": [
147
96
  {
@@ -175,27 +124,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
175
124
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
176
125
  }
177
126
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
178
- function triggerNotification(payload) {
179
- function __triggerNotification({ host }) {
180
- const metadata = {
181
- entityFqdn: "wix.events.notifications.v2.notification_config",
182
- method: "POST",
183
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
184
- packageName: PACKAGE_NAME,
185
- migrationOptions: {
186
- optInTransformResponse: true
187
- },
188
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
189
- protoPath: "/v2/notifications/trigger",
190
- data: payload,
191
- host
192
- }),
193
- data: payload
194
- };
195
- return metadata;
196
- }
197
- return __triggerNotification;
198
- }
199
127
  function resolveNotificationConfig(payload) {
200
128
  function __resolveNotificationConfig({ host }) {
201
129
  const metadata = {
@@ -269,6 +197,27 @@ function upsertNotificationConfig(payload) {
269
197
  }
270
198
  return __upsertNotificationConfig;
271
199
  }
200
+ function triggerNotification(payload) {
201
+ function __triggerNotification({ host }) {
202
+ const metadata = {
203
+ entityFqdn: "wix.events.notifications.v2.notification_config",
204
+ method: "POST",
205
+ methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
206
+ packageName: PACKAGE_NAME,
207
+ migrationOptions: {
208
+ optInTransformResponse: true
209
+ },
210
+ url: resolveWixEventsNotificationsV2NotificationServiceUrl({
211
+ protoPath: "/v2/notifications/trigger",
212
+ data: payload,
213
+ host
214
+ }),
215
+ data: payload
216
+ };
217
+ return metadata;
218
+ }
219
+ return __triggerNotification;
220
+ }
272
221
 
273
222
  // src/events-notifications-v2-notification-config-notifications.universal.ts
274
223
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -292,14 +241,6 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
292
241
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
293
242
  return EmailNotificationReminderTime2;
294
243
  })(EmailNotificationReminderTime || {});
295
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
296
- PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
297
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
298
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
299
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
300
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
301
- return PushNotificationType2;
302
- })(PushNotificationType || {});
303
244
  var LocationType = /* @__PURE__ */ ((LocationType2) => {
304
245
  LocationType2["VENUE"] = "VENUE";
305
246
  LocationType2["ONLINE"] = "ONLINE";
@@ -330,380 +271,22 @@ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
330
271
  EventStatus2["CANCELED"] = "CANCELED";
331
272
  return EventStatus2;
332
273
  })(EventStatus || {});
333
- var EventType = /* @__PURE__ */ ((EventType2) => {
334
- EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
335
- EventType2["RSVP"] = "RSVP";
336
- EventType2["TICKETS"] = "TICKETS";
337
- EventType2["EXTERNAL"] = "EXTERNAL";
338
- EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
339
- return EventType2;
340
- })(EventType || {});
341
- var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
342
- RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
343
- RegistrationStatus2["CLOSED"] = "CLOSED";
344
- RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
345
- RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
346
- RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
347
- RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
348
- RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
349
- RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
350
- return RegistrationStatus2;
351
- })(RegistrationStatus || {});
352
- var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
353
- RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
354
- RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
355
- return RsvpStatusOptions2;
356
- })(RsvpStatusOptions || {});
357
- var TaxType = /* @__PURE__ */ ((TaxType2) => {
358
- TaxType2["INCLUDED"] = "INCLUDED";
359
- TaxType2["ADDED"] = "ADDED";
360
- TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
361
- return TaxType2;
362
- })(TaxType || {});
363
- var CheckoutType = /* @__PURE__ */ ((CheckoutType2) => {
364
- CheckoutType2["UNKNOWN_CHECKOUT_TYPE"] = "UNKNOWN_CHECKOUT_TYPE";
365
- CheckoutType2["EVENTS_APP"] = "EVENTS_APP";
366
- CheckoutType2["ECOMM_PLATFORM"] = "ECOMM_PLATFORM";
367
- return CheckoutType2;
368
- })(CheckoutType || {});
369
- var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
370
- VisitorType2["VISITOR"] = "VISITOR";
371
- VisitorType2["MEMBER"] = "MEMBER";
372
- VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
373
- return VisitorType2;
374
- })(VisitorType || {});
375
- var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
376
- InputControlType2["INPUT"] = "INPUT";
377
- InputControlType2["TEXTAREA"] = "TEXTAREA";
378
- InputControlType2["DROPDOWN"] = "DROPDOWN";
379
- InputControlType2["RADIO"] = "RADIO";
380
- InputControlType2["CHECKBOX"] = "CHECKBOX";
381
- InputControlType2["NAME"] = "NAME";
382
- InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
383
- InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
384
- InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
385
- InputControlType2["DATE"] = "DATE";
386
- return InputControlType2;
387
- })(InputControlType || {});
388
- var ValueType = /* @__PURE__ */ ((ValueType2) => {
389
- ValueType2["TEXT"] = "TEXT";
390
- ValueType2["NUMBER"] = "NUMBER";
391
- ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
392
- ValueType2["DATE_TIME"] = "DATE_TIME";
393
- ValueType2["ADDRESS"] = "ADDRESS";
394
- return ValueType2;
395
- })(ValueType || {});
396
- var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
397
- ConferenceType2["MEETING"] = "MEETING";
398
- ConferenceType2["WEBINAR"] = "WEBINAR";
399
- return ConferenceType2;
400
- })(ConferenceType || {});
401
- var State = /* @__PURE__ */ ((State2) => {
402
- State2["MANUAL"] = "MANUAL";
403
- State2["AUTO"] = "AUTO";
404
- State2["RECURRING_EVENT"] = "RECURRING_EVENT";
405
- State2["HIDDEN"] = "HIDDEN";
406
- return State2;
407
- })(State || {});
408
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
409
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
410
- NodeType2["TEXT"] = "TEXT";
411
- NodeType2["HEADING"] = "HEADING";
412
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
413
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
414
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
415
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
416
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
417
- NodeType2["VIDEO"] = "VIDEO";
418
- NodeType2["DIVIDER"] = "DIVIDER";
419
- NodeType2["FILE"] = "FILE";
420
- NodeType2["GALLERY"] = "GALLERY";
421
- NodeType2["GIF"] = "GIF";
422
- NodeType2["HTML"] = "HTML";
423
- NodeType2["IMAGE"] = "IMAGE";
424
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
425
- NodeType2["MAP"] = "MAP";
426
- NodeType2["POLL"] = "POLL";
427
- NodeType2["APP_EMBED"] = "APP_EMBED";
428
- NodeType2["BUTTON"] = "BUTTON";
429
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
430
- NodeType2["TABLE"] = "TABLE";
431
- NodeType2["EMBED"] = "EMBED";
432
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
433
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
434
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
435
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
436
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
437
- NodeType2["EXTERNAL"] = "EXTERNAL";
438
- NodeType2["AUDIO"] = "AUDIO";
439
- NodeType2["CAPTION"] = "CAPTION";
440
- NodeType2["LAYOUT"] = "LAYOUT";
441
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
442
- return NodeType2;
443
- })(NodeType || {});
444
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
445
- WidthType2["CONTENT"] = "CONTENT";
446
- WidthType2["SMALL"] = "SMALL";
447
- WidthType2["ORIGINAL"] = "ORIGINAL";
448
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
449
- return WidthType2;
450
- })(WidthType || {});
451
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
452
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
453
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
454
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
455
- return PluginContainerDataAlignment2;
456
- })(PluginContainerDataAlignment || {});
457
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
458
- ButtonDataType2["LINK"] = "LINK";
459
- ButtonDataType2["ACTION"] = "ACTION";
460
- return ButtonDataType2;
461
- })(ButtonDataType || {});
462
- var Target = /* @__PURE__ */ ((Target2) => {
463
- Target2["SELF"] = "SELF";
464
- Target2["BLANK"] = "BLANK";
465
- Target2["PARENT"] = "PARENT";
466
- Target2["TOP"] = "TOP";
467
- return Target2;
468
- })(Target || {});
469
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
470
- TextAlignment2["AUTO"] = "AUTO";
471
- TextAlignment2["LEFT"] = "LEFT";
472
- TextAlignment2["RIGHT"] = "RIGHT";
473
- TextAlignment2["CENTER"] = "CENTER";
474
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
475
- return TextAlignment2;
476
- })(TextAlignment || {});
477
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
478
- LineStyle2["SINGLE"] = "SINGLE";
479
- LineStyle2["DOUBLE"] = "DOUBLE";
480
- LineStyle2["DASHED"] = "DASHED";
481
- LineStyle2["DOTTED"] = "DOTTED";
482
- return LineStyle2;
483
- })(LineStyle || {});
484
- var Width = /* @__PURE__ */ ((Width2) => {
485
- Width2["LARGE"] = "LARGE";
486
- Width2["MEDIUM"] = "MEDIUM";
487
- Width2["SMALL"] = "SMALL";
488
- return Width2;
489
- })(Width || {});
490
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
491
- DividerDataAlignment2["CENTER"] = "CENTER";
492
- DividerDataAlignment2["LEFT"] = "LEFT";
493
- DividerDataAlignment2["RIGHT"] = "RIGHT";
494
- return DividerDataAlignment2;
495
- })(DividerDataAlignment || {});
496
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
497
- ViewMode2["NONE"] = "NONE";
498
- ViewMode2["FULL"] = "FULL";
499
- ViewMode2["MINI"] = "MINI";
500
- return ViewMode2;
501
- })(ViewMode || {});
502
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
503
- LayoutType2["COLLAGE"] = "COLLAGE";
504
- LayoutType2["MASONRY"] = "MASONRY";
505
- LayoutType2["GRID"] = "GRID";
506
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
507
- LayoutType2["SLIDER"] = "SLIDER";
508
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
509
- LayoutType2["PANORAMA"] = "PANORAMA";
510
- LayoutType2["COLUMN"] = "COLUMN";
511
- LayoutType2["MAGIC"] = "MAGIC";
512
- LayoutType2["FULLSIZE"] = "FULLSIZE";
513
- return LayoutType2;
514
- })(LayoutType || {});
515
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
516
- Orientation2["ROWS"] = "ROWS";
517
- Orientation2["COLUMNS"] = "COLUMNS";
518
- return Orientation2;
519
- })(Orientation || {});
520
- var Crop = /* @__PURE__ */ ((Crop2) => {
521
- Crop2["FILL"] = "FILL";
522
- Crop2["FIT"] = "FIT";
523
- return Crop2;
524
- })(Crop || {});
525
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
526
- ThumbnailsAlignment2["TOP"] = "TOP";
527
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
528
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
529
- ThumbnailsAlignment2["LEFT"] = "LEFT";
530
- ThumbnailsAlignment2["NONE"] = "NONE";
531
- return ThumbnailsAlignment2;
532
- })(ThumbnailsAlignment || {});
533
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
534
- GIFType2["NORMAL"] = "NORMAL";
535
- GIFType2["STICKER"] = "STICKER";
536
- return GIFType2;
537
- })(GIFType || {});
538
- var Source = /* @__PURE__ */ ((Source2) => {
539
- Source2["HTML"] = "HTML";
540
- Source2["ADSENSE"] = "ADSENSE";
541
- Source2["AI"] = "AI";
542
- return Source2;
543
- })(Source || {});
544
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
545
- StylesPosition2["START"] = "START";
546
- StylesPosition2["END"] = "END";
547
- StylesPosition2["TOP"] = "TOP";
548
- StylesPosition2["HIDDEN"] = "HIDDEN";
549
- return StylesPosition2;
550
- })(StylesPosition || {});
551
- var MapType = /* @__PURE__ */ ((MapType2) => {
552
- MapType2["ROADMAP"] = "ROADMAP";
553
- MapType2["SATELITE"] = "SATELITE";
554
- MapType2["HYBRID"] = "HYBRID";
555
- MapType2["TERRAIN"] = "TERRAIN";
556
- return MapType2;
557
- })(MapType || {});
558
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
559
- ViewRole2["CREATOR"] = "CREATOR";
560
- ViewRole2["VOTERS"] = "VOTERS";
561
- ViewRole2["EVERYONE"] = "EVERYONE";
562
- return ViewRole2;
563
- })(ViewRole || {});
564
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
565
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
566
- VoteRole2["ALL"] = "ALL";
567
- return VoteRole2;
568
- })(VoteRole || {});
569
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
570
- PollLayoutType2["LIST"] = "LIST";
571
- PollLayoutType2["GRID"] = "GRID";
572
- return PollLayoutType2;
573
- })(PollLayoutType || {});
574
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
575
- PollLayoutDirection2["LTR"] = "LTR";
576
- PollLayoutDirection2["RTL"] = "RTL";
577
- return PollLayoutDirection2;
578
- })(PollLayoutDirection || {});
579
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
580
- BackgroundType2["COLOR"] = "COLOR";
581
- BackgroundType2["IMAGE"] = "IMAGE";
582
- BackgroundType2["GRADIENT"] = "GRADIENT";
583
- return BackgroundType2;
584
- })(BackgroundType || {});
585
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
586
- DecorationType2["BOLD"] = "BOLD";
587
- DecorationType2["ITALIC"] = "ITALIC";
588
- DecorationType2["UNDERLINE"] = "UNDERLINE";
589
- DecorationType2["SPOILER"] = "SPOILER";
590
- DecorationType2["ANCHOR"] = "ANCHOR";
591
- DecorationType2["MENTION"] = "MENTION";
592
- DecorationType2["LINK"] = "LINK";
593
- DecorationType2["COLOR"] = "COLOR";
594
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
595
- DecorationType2["EXTERNAL"] = "EXTERNAL";
596
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
597
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
598
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
599
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
600
- return DecorationType2;
601
- })(DecorationType || {});
602
- var FontType = /* @__PURE__ */ ((FontType2) => {
603
- FontType2["PX"] = "PX";
604
- FontType2["EM"] = "EM";
605
- return FontType2;
606
- })(FontType || {});
607
- var Position = /* @__PURE__ */ ((Position2) => {
608
- Position2["START"] = "START";
609
- Position2["END"] = "END";
610
- Position2["TOP"] = "TOP";
611
- return Position2;
612
- })(Position || {});
613
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
614
- AspectRatio2["SQUARE"] = "SQUARE";
615
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
616
- return AspectRatio2;
617
- })(AspectRatio || {});
618
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
619
- Resizing2["FILL"] = "FILL";
620
- Resizing2["FIT"] = "FIT";
621
- return Resizing2;
622
- })(Resizing || {});
623
- var Placement = /* @__PURE__ */ ((Placement2) => {
624
- Placement2["IMAGE"] = "IMAGE";
625
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
626
- return Placement2;
627
- })(Placement || {});
628
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
629
- CardStylesType2["CONTAINED"] = "CONTAINED";
630
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
631
- return CardStylesType2;
632
- })(CardStylesType || {});
633
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
634
- Alignment2["START"] = "START";
635
- Alignment2["CENTER"] = "CENTER";
636
- Alignment2["END"] = "END";
637
- return Alignment2;
638
- })(Alignment || {});
639
- var Layout = /* @__PURE__ */ ((Layout2) => {
640
- Layout2["STACKED"] = "STACKED";
641
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
642
- return Layout2;
643
- })(Layout || {});
644
- var AppType = /* @__PURE__ */ ((AppType2) => {
645
- AppType2["PRODUCT"] = "PRODUCT";
646
- AppType2["EVENT"] = "EVENT";
647
- AppType2["BOOKING"] = "BOOKING";
648
- return AppType2;
649
- })(AppType || {});
650
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
651
- InitialExpandedItems2["FIRST"] = "FIRST";
652
- InitialExpandedItems2["ALL"] = "ALL";
653
- InitialExpandedItems2["NONE"] = "NONE";
654
- return InitialExpandedItems2;
655
- })(InitialExpandedItems || {});
656
- var Direction = /* @__PURE__ */ ((Direction2) => {
657
- Direction2["LTR"] = "LTR";
658
- Direction2["RTL"] = "RTL";
659
- return Direction2;
660
- })(Direction || {});
661
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
662
- VerticalAlignment2["TOP"] = "TOP";
663
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
664
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
665
- return VerticalAlignment2;
666
- })(VerticalAlignment || {});
667
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
668
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
669
- return NullValue2;
670
- })(NullValue || {});
671
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
672
- Scaling2["AUTO"] = "AUTO";
673
- Scaling2["CONTAIN"] = "CONTAIN";
674
- Scaling2["COVER"] = "COVER";
675
- return Scaling2;
676
- })(Scaling || {});
677
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
678
- ImagePosition2["CENTER"] = "CENTER";
679
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
680
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
681
- ImagePosition2["TOP"] = "TOP";
682
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
683
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
684
- ImagePosition2["BOTTOM"] = "BOTTOM";
685
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
686
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
687
- return ImagePosition2;
688
- })(ImagePosition || {});
689
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
690
- VerticalAlignmentAlignment2["TOP"] = "TOP";
691
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
692
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
693
- return VerticalAlignmentAlignment2;
694
- })(VerticalAlignmentAlignment || {});
695
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
696
- ResponsivenessBehaviour2["STACK"] = "STACK";
697
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
698
- return ResponsivenessBehaviour2;
699
- })(ResponsivenessBehaviour || {});
700
- var Type = /* @__PURE__ */ ((Type2) => {
701
- Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
702
- Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
703
- Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
704
- Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
705
- return Type2;
706
- })(Type || {});
274
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
275
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
276
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
277
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
278
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
279
+ WebhookIdentityType2["APP"] = "APP";
280
+ return WebhookIdentityType2;
281
+ })(WebhookIdentityType || {});
282
+ var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
283
+ PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
284
+ PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
285
+ PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
286
+ PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
287
+ PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
288
+ return PushNotificationType2;
289
+ })(PushNotificationType || {});
707
290
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
708
291
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
709
292
  OrderStatus2["FREE"] = "FREE";
@@ -718,6 +301,12 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
718
301
  OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
719
302
  return OrderStatus2;
720
303
  })(OrderStatus || {});
304
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
305
+ TaxType2["INCLUDED"] = "INCLUDED";
306
+ TaxType2["ADDED"] = "ADDED";
307
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
308
+ return TaxType2;
309
+ })(TaxType || {});
721
310
  var FeeName = /* @__PURE__ */ ((FeeName2) => {
722
311
  FeeName2["WIX_FEE"] = "WIX_FEE";
723
312
  return FeeName2;
@@ -728,58 +317,39 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
728
317
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
729
318
  return FeeType2;
730
319
  })(FeeType || {});
731
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
732
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
733
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
734
- WebhookIdentityType2["MEMBER"] = "MEMBER";
735
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
736
- WebhookIdentityType2["APP"] = "APP";
737
- return WebhookIdentityType2;
738
- })(WebhookIdentityType || {});
739
- async function triggerNotification2(options) {
320
+ async function resolveNotificationConfig2(notificationConfigId) {
740
321
  const { httpClient, sideEffects } = arguments[1];
741
322
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
742
- emailNotificationType: options?.emailNotificationType,
743
- pushNotificationType: options?.pushNotificationType,
744
- rsvpGuest: options?.rsvpGuest,
745
- orderGuest: options?.orderGuest,
746
- eventGuests: options?.eventGuests,
747
- ticketGuest: options?.ticketGuest
323
+ notificationConfigId
748
324
  });
749
- const reqOpts = triggerNotification(
325
+ const reqOpts = resolveNotificationConfig(
750
326
  payload
751
327
  );
752
328
  sideEffects?.onSiteCall?.();
753
329
  try {
754
330
  const result = await httpClient.request(reqOpts);
755
331
  sideEffects?.onSuccess?.(result);
332
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
756
333
  } catch (err) {
757
334
  const transformedError = (0, import_transform_error.transformError)(
758
335
  err,
759
336
  {
760
337
  spreadPathsToArguments: {},
761
- explicitPathsToArguments: {
762
- emailNotificationType: "$[0].emailNotificationType",
763
- pushNotificationType: "$[0].pushNotificationType",
764
- rsvpGuest: "$[0].rsvpGuest",
765
- orderGuest: "$[0].orderGuest",
766
- eventGuests: "$[0].eventGuests",
767
- ticketGuest: "$[0].ticketGuest"
768
- },
338
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
769
339
  singleArgumentUnchanged: false
770
340
  },
771
- ["options"]
341
+ ["notificationConfigId"]
772
342
  );
773
343
  sideEffects?.onError?.(err);
774
344
  throw transformedError;
775
345
  }
776
346
  }
777
- async function resolveNotificationConfig2(notificationConfigId) {
778
- const { httpClient, sideEffects } = arguments[1];
347
+ async function upsertNotificationConfig2(_id, notificationConfig) {
348
+ const { httpClient, sideEffects } = arguments[2];
779
349
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
780
- notificationConfigId
350
+ notificationConfig: { ...notificationConfig, id: _id }
781
351
  });
782
- const reqOpts = resolveNotificationConfig(
352
+ const reqOpts = upsertNotificationConfig(
783
353
  payload
784
354
  );
785
355
  sideEffects?.onSiteCall?.();
@@ -791,38 +361,49 @@ async function resolveNotificationConfig2(notificationConfigId) {
791
361
  const transformedError = (0, import_transform_error.transformError)(
792
362
  err,
793
363
  {
794
- spreadPathsToArguments: {},
795
- explicitPathsToArguments: { notificationConfigId: "$[0]" },
364
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
365
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
796
366
  singleArgumentUnchanged: false
797
367
  },
798
- ["notificationConfigId"]
368
+ ["_id", "notificationConfig"]
799
369
  );
800
370
  sideEffects?.onError?.(err);
801
371
  throw transformedError;
802
372
  }
803
373
  }
804
- async function upsertNotificationConfig2(_id, notificationConfig) {
805
- const { httpClient, sideEffects } = arguments[2];
374
+ async function triggerNotification2(options) {
375
+ const { httpClient, sideEffects } = arguments[1];
806
376
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
807
- notificationConfig: { ...notificationConfig, id: _id }
377
+ emailNotificationType: options?.emailNotificationType,
378
+ pushNotificationType: options?.pushNotificationType,
379
+ rsvpGuest: options?.rsvpGuest,
380
+ orderGuest: options?.orderGuest,
381
+ eventGuests: options?.eventGuests,
382
+ ticketGuest: options?.ticketGuest
808
383
  });
809
- const reqOpts = upsertNotificationConfig(
384
+ const reqOpts = triggerNotification(
810
385
  payload
811
386
  );
812
387
  sideEffects?.onSiteCall?.();
813
388
  try {
814
389
  const result = await httpClient.request(reqOpts);
815
390
  sideEffects?.onSuccess?.(result);
816
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
817
391
  } catch (err) {
818
392
  const transformedError = (0, import_transform_error.transformError)(
819
393
  err,
820
394
  {
821
- spreadPathsToArguments: { notificationConfig: "$[1]" },
822
- explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
395
+ spreadPathsToArguments: {},
396
+ explicitPathsToArguments: {
397
+ emailNotificationType: "$[0].emailNotificationType",
398
+ pushNotificationType: "$[0].pushNotificationType",
399
+ rsvpGuest: "$[0].rsvpGuest",
400
+ orderGuest: "$[0].orderGuest",
401
+ eventGuests: "$[0].eventGuests",
402
+ ticketGuest: "$[0].ticketGuest"
403
+ },
823
404
  singleArgumentUnchanged: false
824
405
  },
825
- ["_id", "notificationConfig"]
406
+ ["options"]
826
407
  );
827
408
  sideEffects?.onError?.(err);
828
409
  throw transformedError;
@@ -830,13 +411,6 @@ async function upsertNotificationConfig2(_id, notificationConfig) {
830
411
  }
831
412
 
832
413
  // src/events-notifications-v2-notification-config-notifications.public.ts
833
- function triggerNotification3(httpClient) {
834
- return (options) => triggerNotification2(
835
- options,
836
- // @ts-ignore
837
- { httpClient }
838
- );
839
- }
840
414
  function resolveNotificationConfig3(httpClient) {
841
415
  return (notificationConfigId) => resolveNotificationConfig2(
842
416
  notificationConfigId,
@@ -852,6 +426,13 @@ function upsertNotificationConfig3(httpClient) {
852
426
  { httpClient }
853
427
  );
854
428
  }
429
+ function triggerNotification3(httpClient) {
430
+ return (options) => triggerNotification2(
431
+ options,
432
+ // @ts-ignore
433
+ { httpClient }
434
+ );
435
+ }
855
436
  var onNotificationConfigCreated = (0, import_sdk_types.EventDefinition)(
856
437
  "wix.events.notifications.v2.notification_config_created",
857
438
  true,
@@ -890,9 +471,9 @@ var onNotificationConfigUpdated = (0, import_sdk_types.EventDefinition)(
890
471
  // src/events-notifications-v2-notification-config-notifications.context.ts
891
472
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
892
473
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
893
- var triggerNotification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerNotification3);
894
474
  var resolveNotificationConfig4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resolveNotificationConfig3);
895
475
  var upsertNotificationConfig4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(upsertNotificationConfig3);
476
+ var triggerNotification4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(triggerNotification3);
896
477
  var onNotificationConfigCreated2 = (0, import_event_definition_modules.createEventModule)(
897
478
  onNotificationConfigCreated
898
479
  );
@@ -901,69 +482,18 @@ var onNotificationConfigUpdated2 = (0, import_event_definition_modules.createEve
901
482
  );
902
483
  // Annotate the CommonJS export names for ESM import in node:
903
484
  0 && (module.exports = {
904
- Alignment,
905
- AppType,
906
- AspectRatio,
907
- BackgroundType,
908
- ButtonDataType,
909
- CardStylesType,
910
- CheckoutType,
911
- ConferenceType,
912
- Crop,
913
- DecorationType,
914
- Direction,
915
- DividerDataAlignment,
916
485
  EmailNotificationReminderTime,
917
486
  EmailNotificationType,
918
487
  EventStatus,
919
- EventType,
920
488
  FeeName,
921
489
  FeeType,
922
- FontType,
923
- GIFType,
924
- ImagePosition,
925
- InitialExpandedItems,
926
- InputControlType,
927
- Layout,
928
- LayoutType,
929
- LineStyle,
930
490
  LocationType,
931
- MapType,
932
- NodeType,
933
- NullValue,
934
491
  OrderStatus,
935
- Orientation,
936
- Placement,
937
- PluginContainerDataAlignment,
938
- PollLayoutDirection,
939
- PollLayoutType,
940
- Position,
941
492
  PushNotificationType,
942
- RegistrationStatus,
943
- Resizing,
944
- ResponsivenessBehaviour,
945
- RsvpStatusOptions,
946
- Scaling,
947
- Source,
948
- State,
949
493
  Status,
950
- StylesPosition,
951
494
  SubdivisionType,
952
- Target,
953
495
  TaxType,
954
- TextAlignment,
955
- ThumbnailsAlignment,
956
- Type,
957
- ValueType,
958
- VerticalAlignment,
959
- VerticalAlignmentAlignment,
960
- ViewMode,
961
- ViewRole,
962
- VisitorType,
963
- VoteRole,
964
496
  WebhookIdentityType,
965
- Width,
966
- WidthType,
967
497
  onNotificationConfigCreated,
968
498
  onNotificationConfigUpdated,
969
499
  resolveNotificationConfig,