@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.typings.ts
21
21
  var index_typings_exports = {};
22
22
  __export(index_typings_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
  resolveNotificationConfig: () => resolveNotificationConfig2,
87
36
  triggerNotification: () => triggerNotification2,
88
37
  upsertNotificationConfig: () => upsertNotificationConfig2
@@ -100,7 +49,7 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
100
49
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
101
50
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
102
51
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
103
- function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
52
+ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
104
53
  const domainToMappings = {
105
54
  "api._api_base_domain_": [
106
55
  {
@@ -133,7 +82,7 @@ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
133
82
  };
134
83
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
135
84
  }
136
- function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
85
+ function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
137
86
  const domainToMappings = {
138
87
  "api._api_base_domain_": [
139
88
  {
@@ -167,27 +116,6 @@ function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
167
116
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
168
117
  }
169
118
  var PACKAGE_NAME = "@wix/auto_sdk_events_notifications";
170
- function triggerNotification(payload) {
171
- function __triggerNotification({ host }) {
172
- const metadata = {
173
- entityFqdn: "wix.events.notifications.v2.notification_config",
174
- method: "POST",
175
- methodFqn: "wix.events.notifications.v2.NotificationService.TriggerNotification",
176
- packageName: PACKAGE_NAME,
177
- migrationOptions: {
178
- optInTransformResponse: true
179
- },
180
- url: resolveWixEventsNotificationsV2NotificationServiceUrl({
181
- protoPath: "/v2/notifications/trigger",
182
- data: payload,
183
- host
184
- }),
185
- data: payload
186
- };
187
- return metadata;
188
- }
189
- return __triggerNotification;
190
- }
191
119
  function resolveNotificationConfig(payload) {
192
120
  function __resolveNotificationConfig({ host }) {
193
121
  const metadata = {
@@ -261,6 +189,27 @@ function upsertNotificationConfig(payload) {
261
189
  }
262
190
  return __upsertNotificationConfig;
263
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
+ }
264
213
 
265
214
  // src/events-notifications-v2-notification-config-notifications.universal.ts
266
215
  var EmailNotificationType = /* @__PURE__ */ ((EmailNotificationType2) => {
@@ -284,14 +233,6 @@ var EmailNotificationReminderTime = /* @__PURE__ */ ((EmailNotificationReminderT
284
233
  EmailNotificationReminderTime2["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
285
234
  return EmailNotificationReminderTime2;
286
235
  })(EmailNotificationReminderTime || {});
287
- var PushNotificationType = /* @__PURE__ */ ((PushNotificationType2) => {
288
- PushNotificationType2["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
289
- PushNotificationType2["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
290
- PushNotificationType2["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
291
- PushNotificationType2["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
292
- PushNotificationType2["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
293
- return PushNotificationType2;
294
- })(PushNotificationType || {});
295
236
  var LocationType = /* @__PURE__ */ ((LocationType2) => {
296
237
  LocationType2["VENUE"] = "VENUE";
297
238
  LocationType2["ONLINE"] = "ONLINE";
@@ -322,380 +263,22 @@ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
322
263
  EventStatus2["CANCELED"] = "CANCELED";
323
264
  return EventStatus2;
324
265
  })(EventStatus || {});
325
- var EventType = /* @__PURE__ */ ((EventType2) => {
326
- EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
327
- EventType2["RSVP"] = "RSVP";
328
- EventType2["TICKETS"] = "TICKETS";
329
- EventType2["EXTERNAL"] = "EXTERNAL";
330
- EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
331
- return EventType2;
332
- })(EventType || {});
333
- var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
334
- RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
335
- RegistrationStatus2["CLOSED"] = "CLOSED";
336
- RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
337
- RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
338
- RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
339
- RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
340
- RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
341
- RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
342
- return RegistrationStatus2;
343
- })(RegistrationStatus || {});
344
- var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
345
- RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
346
- RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
347
- return RsvpStatusOptions2;
348
- })(RsvpStatusOptions || {});
349
- var TaxType = /* @__PURE__ */ ((TaxType2) => {
350
- TaxType2["INCLUDED"] = "INCLUDED";
351
- TaxType2["ADDED"] = "ADDED";
352
- TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
353
- return TaxType2;
354
- })(TaxType || {});
355
- var CheckoutType = /* @__PURE__ */ ((CheckoutType2) => {
356
- CheckoutType2["UNKNOWN_CHECKOUT_TYPE"] = "UNKNOWN_CHECKOUT_TYPE";
357
- CheckoutType2["EVENTS_APP"] = "EVENTS_APP";
358
- CheckoutType2["ECOMM_PLATFORM"] = "ECOMM_PLATFORM";
359
- return CheckoutType2;
360
- })(CheckoutType || {});
361
- var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
362
- VisitorType2["VISITOR"] = "VISITOR";
363
- VisitorType2["MEMBER"] = "MEMBER";
364
- VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
365
- return VisitorType2;
366
- })(VisitorType || {});
367
- var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
368
- InputControlType2["INPUT"] = "INPUT";
369
- InputControlType2["TEXTAREA"] = "TEXTAREA";
370
- InputControlType2["DROPDOWN"] = "DROPDOWN";
371
- InputControlType2["RADIO"] = "RADIO";
372
- InputControlType2["CHECKBOX"] = "CHECKBOX";
373
- InputControlType2["NAME"] = "NAME";
374
- InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
375
- InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
376
- InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
377
- InputControlType2["DATE"] = "DATE";
378
- return InputControlType2;
379
- })(InputControlType || {});
380
- var ValueType = /* @__PURE__ */ ((ValueType2) => {
381
- ValueType2["TEXT"] = "TEXT";
382
- ValueType2["NUMBER"] = "NUMBER";
383
- ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
384
- ValueType2["DATE_TIME"] = "DATE_TIME";
385
- ValueType2["ADDRESS"] = "ADDRESS";
386
- return ValueType2;
387
- })(ValueType || {});
388
- var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
389
- ConferenceType2["MEETING"] = "MEETING";
390
- ConferenceType2["WEBINAR"] = "WEBINAR";
391
- return ConferenceType2;
392
- })(ConferenceType || {});
393
- var State = /* @__PURE__ */ ((State2) => {
394
- State2["MANUAL"] = "MANUAL";
395
- State2["AUTO"] = "AUTO";
396
- State2["RECURRING_EVENT"] = "RECURRING_EVENT";
397
- State2["HIDDEN"] = "HIDDEN";
398
- return State2;
399
- })(State || {});
400
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
401
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
402
- NodeType2["TEXT"] = "TEXT";
403
- NodeType2["HEADING"] = "HEADING";
404
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
405
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
406
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
407
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
408
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
409
- NodeType2["VIDEO"] = "VIDEO";
410
- NodeType2["DIVIDER"] = "DIVIDER";
411
- NodeType2["FILE"] = "FILE";
412
- NodeType2["GALLERY"] = "GALLERY";
413
- NodeType2["GIF"] = "GIF";
414
- NodeType2["HTML"] = "HTML";
415
- NodeType2["IMAGE"] = "IMAGE";
416
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
417
- NodeType2["MAP"] = "MAP";
418
- NodeType2["POLL"] = "POLL";
419
- NodeType2["APP_EMBED"] = "APP_EMBED";
420
- NodeType2["BUTTON"] = "BUTTON";
421
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
422
- NodeType2["TABLE"] = "TABLE";
423
- NodeType2["EMBED"] = "EMBED";
424
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
425
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
426
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
427
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
428
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
429
- NodeType2["EXTERNAL"] = "EXTERNAL";
430
- NodeType2["AUDIO"] = "AUDIO";
431
- NodeType2["CAPTION"] = "CAPTION";
432
- NodeType2["LAYOUT"] = "LAYOUT";
433
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
434
- return NodeType2;
435
- })(NodeType || {});
436
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
437
- WidthType2["CONTENT"] = "CONTENT";
438
- WidthType2["SMALL"] = "SMALL";
439
- WidthType2["ORIGINAL"] = "ORIGINAL";
440
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
441
- return WidthType2;
442
- })(WidthType || {});
443
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
444
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
445
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
446
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
447
- return PluginContainerDataAlignment2;
448
- })(PluginContainerDataAlignment || {});
449
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
450
- ButtonDataType2["LINK"] = "LINK";
451
- ButtonDataType2["ACTION"] = "ACTION";
452
- return ButtonDataType2;
453
- })(ButtonDataType || {});
454
- var Target = /* @__PURE__ */ ((Target2) => {
455
- Target2["SELF"] = "SELF";
456
- Target2["BLANK"] = "BLANK";
457
- Target2["PARENT"] = "PARENT";
458
- Target2["TOP"] = "TOP";
459
- return Target2;
460
- })(Target || {});
461
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
462
- TextAlignment2["AUTO"] = "AUTO";
463
- TextAlignment2["LEFT"] = "LEFT";
464
- TextAlignment2["RIGHT"] = "RIGHT";
465
- TextAlignment2["CENTER"] = "CENTER";
466
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
467
- return TextAlignment2;
468
- })(TextAlignment || {});
469
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
470
- LineStyle2["SINGLE"] = "SINGLE";
471
- LineStyle2["DOUBLE"] = "DOUBLE";
472
- LineStyle2["DASHED"] = "DASHED";
473
- LineStyle2["DOTTED"] = "DOTTED";
474
- return LineStyle2;
475
- })(LineStyle || {});
476
- var Width = /* @__PURE__ */ ((Width2) => {
477
- Width2["LARGE"] = "LARGE";
478
- Width2["MEDIUM"] = "MEDIUM";
479
- Width2["SMALL"] = "SMALL";
480
- return Width2;
481
- })(Width || {});
482
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
483
- DividerDataAlignment2["CENTER"] = "CENTER";
484
- DividerDataAlignment2["LEFT"] = "LEFT";
485
- DividerDataAlignment2["RIGHT"] = "RIGHT";
486
- return DividerDataAlignment2;
487
- })(DividerDataAlignment || {});
488
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
489
- ViewMode2["NONE"] = "NONE";
490
- ViewMode2["FULL"] = "FULL";
491
- ViewMode2["MINI"] = "MINI";
492
- return ViewMode2;
493
- })(ViewMode || {});
494
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
495
- LayoutType2["COLLAGE"] = "COLLAGE";
496
- LayoutType2["MASONRY"] = "MASONRY";
497
- LayoutType2["GRID"] = "GRID";
498
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
499
- LayoutType2["SLIDER"] = "SLIDER";
500
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
501
- LayoutType2["PANORAMA"] = "PANORAMA";
502
- LayoutType2["COLUMN"] = "COLUMN";
503
- LayoutType2["MAGIC"] = "MAGIC";
504
- LayoutType2["FULLSIZE"] = "FULLSIZE";
505
- return LayoutType2;
506
- })(LayoutType || {});
507
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
508
- Orientation2["ROWS"] = "ROWS";
509
- Orientation2["COLUMNS"] = "COLUMNS";
510
- return Orientation2;
511
- })(Orientation || {});
512
- var Crop = /* @__PURE__ */ ((Crop2) => {
513
- Crop2["FILL"] = "FILL";
514
- Crop2["FIT"] = "FIT";
515
- return Crop2;
516
- })(Crop || {});
517
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
518
- ThumbnailsAlignment2["TOP"] = "TOP";
519
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
520
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
521
- ThumbnailsAlignment2["LEFT"] = "LEFT";
522
- ThumbnailsAlignment2["NONE"] = "NONE";
523
- return ThumbnailsAlignment2;
524
- })(ThumbnailsAlignment || {});
525
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
526
- GIFType2["NORMAL"] = "NORMAL";
527
- GIFType2["STICKER"] = "STICKER";
528
- return GIFType2;
529
- })(GIFType || {});
530
- var Source = /* @__PURE__ */ ((Source2) => {
531
- Source2["HTML"] = "HTML";
532
- Source2["ADSENSE"] = "ADSENSE";
533
- Source2["AI"] = "AI";
534
- return Source2;
535
- })(Source || {});
536
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
537
- StylesPosition2["START"] = "START";
538
- StylesPosition2["END"] = "END";
539
- StylesPosition2["TOP"] = "TOP";
540
- StylesPosition2["HIDDEN"] = "HIDDEN";
541
- return StylesPosition2;
542
- })(StylesPosition || {});
543
- var MapType = /* @__PURE__ */ ((MapType2) => {
544
- MapType2["ROADMAP"] = "ROADMAP";
545
- MapType2["SATELITE"] = "SATELITE";
546
- MapType2["HYBRID"] = "HYBRID";
547
- MapType2["TERRAIN"] = "TERRAIN";
548
- return MapType2;
549
- })(MapType || {});
550
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
551
- ViewRole2["CREATOR"] = "CREATOR";
552
- ViewRole2["VOTERS"] = "VOTERS";
553
- ViewRole2["EVERYONE"] = "EVERYONE";
554
- return ViewRole2;
555
- })(ViewRole || {});
556
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
557
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
558
- VoteRole2["ALL"] = "ALL";
559
- return VoteRole2;
560
- })(VoteRole || {});
561
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
562
- PollLayoutType2["LIST"] = "LIST";
563
- PollLayoutType2["GRID"] = "GRID";
564
- return PollLayoutType2;
565
- })(PollLayoutType || {});
566
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
567
- PollLayoutDirection2["LTR"] = "LTR";
568
- PollLayoutDirection2["RTL"] = "RTL";
569
- return PollLayoutDirection2;
570
- })(PollLayoutDirection || {});
571
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
572
- BackgroundType2["COLOR"] = "COLOR";
573
- BackgroundType2["IMAGE"] = "IMAGE";
574
- BackgroundType2["GRADIENT"] = "GRADIENT";
575
- return BackgroundType2;
576
- })(BackgroundType || {});
577
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
578
- DecorationType2["BOLD"] = "BOLD";
579
- DecorationType2["ITALIC"] = "ITALIC";
580
- DecorationType2["UNDERLINE"] = "UNDERLINE";
581
- DecorationType2["SPOILER"] = "SPOILER";
582
- DecorationType2["ANCHOR"] = "ANCHOR";
583
- DecorationType2["MENTION"] = "MENTION";
584
- DecorationType2["LINK"] = "LINK";
585
- DecorationType2["COLOR"] = "COLOR";
586
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
587
- DecorationType2["EXTERNAL"] = "EXTERNAL";
588
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
589
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
590
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
591
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
592
- return DecorationType2;
593
- })(DecorationType || {});
594
- var FontType = /* @__PURE__ */ ((FontType2) => {
595
- FontType2["PX"] = "PX";
596
- FontType2["EM"] = "EM";
597
- return FontType2;
598
- })(FontType || {});
599
- var Position = /* @__PURE__ */ ((Position2) => {
600
- Position2["START"] = "START";
601
- Position2["END"] = "END";
602
- Position2["TOP"] = "TOP";
603
- return Position2;
604
- })(Position || {});
605
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
606
- AspectRatio2["SQUARE"] = "SQUARE";
607
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
608
- return AspectRatio2;
609
- })(AspectRatio || {});
610
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
611
- Resizing2["FILL"] = "FILL";
612
- Resizing2["FIT"] = "FIT";
613
- return Resizing2;
614
- })(Resizing || {});
615
- var Placement = /* @__PURE__ */ ((Placement2) => {
616
- Placement2["IMAGE"] = "IMAGE";
617
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
618
- return Placement2;
619
- })(Placement || {});
620
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
621
- CardStylesType2["CONTAINED"] = "CONTAINED";
622
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
623
- return CardStylesType2;
624
- })(CardStylesType || {});
625
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
626
- Alignment2["START"] = "START";
627
- Alignment2["CENTER"] = "CENTER";
628
- Alignment2["END"] = "END";
629
- return Alignment2;
630
- })(Alignment || {});
631
- var Layout = /* @__PURE__ */ ((Layout2) => {
632
- Layout2["STACKED"] = "STACKED";
633
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
634
- return Layout2;
635
- })(Layout || {});
636
- var AppType = /* @__PURE__ */ ((AppType2) => {
637
- AppType2["PRODUCT"] = "PRODUCT";
638
- AppType2["EVENT"] = "EVENT";
639
- AppType2["BOOKING"] = "BOOKING";
640
- return AppType2;
641
- })(AppType || {});
642
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
643
- InitialExpandedItems2["FIRST"] = "FIRST";
644
- InitialExpandedItems2["ALL"] = "ALL";
645
- InitialExpandedItems2["NONE"] = "NONE";
646
- return InitialExpandedItems2;
647
- })(InitialExpandedItems || {});
648
- var Direction = /* @__PURE__ */ ((Direction2) => {
649
- Direction2["LTR"] = "LTR";
650
- Direction2["RTL"] = "RTL";
651
- return Direction2;
652
- })(Direction || {});
653
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
654
- VerticalAlignment2["TOP"] = "TOP";
655
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
656
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
657
- return VerticalAlignment2;
658
- })(VerticalAlignment || {});
659
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
660
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
661
- return NullValue2;
662
- })(NullValue || {});
663
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
664
- Scaling2["AUTO"] = "AUTO";
665
- Scaling2["CONTAIN"] = "CONTAIN";
666
- Scaling2["COVER"] = "COVER";
667
- return Scaling2;
668
- })(Scaling || {});
669
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
670
- ImagePosition2["CENTER"] = "CENTER";
671
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
672
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
673
- ImagePosition2["TOP"] = "TOP";
674
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
675
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
676
- ImagePosition2["BOTTOM"] = "BOTTOM";
677
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
678
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
679
- return ImagePosition2;
680
- })(ImagePosition || {});
681
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
682
- VerticalAlignmentAlignment2["TOP"] = "TOP";
683
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
684
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
685
- return VerticalAlignmentAlignment2;
686
- })(VerticalAlignmentAlignment || {});
687
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
688
- ResponsivenessBehaviour2["STACK"] = "STACK";
689
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
690
- return ResponsivenessBehaviour2;
691
- })(ResponsivenessBehaviour || {});
692
- var Type = /* @__PURE__ */ ((Type2) => {
693
- Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
694
- Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
695
- Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
696
- Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
697
- return Type2;
698
- })(Type || {});
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 || {});
699
282
  var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
700
283
  OrderStatus2["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
701
284
  OrderStatus2["FREE"] = "FREE";
@@ -710,6 +293,12 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
710
293
  OrderStatus2["PARTIALLY_PAID"] = "PARTIALLY_PAID";
711
294
  return OrderStatus2;
712
295
  })(OrderStatus || {});
296
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
297
+ TaxType2["INCLUDED"] = "INCLUDED";
298
+ TaxType2["ADDED"] = "ADDED";
299
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
300
+ return TaxType2;
301
+ })(TaxType || {});
713
302
  var FeeName = /* @__PURE__ */ ((FeeName2) => {
714
303
  FeeName2["WIX_FEE"] = "WIX_FEE";
715
304
  return FeeName2;
@@ -720,58 +309,39 @@ var FeeType = /* @__PURE__ */ ((FeeType2) => {
720
309
  FeeType2["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
721
310
  return FeeType2;
722
311
  })(FeeType || {});
723
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
724
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
725
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
726
- WebhookIdentityType2["MEMBER"] = "MEMBER";
727
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
728
- WebhookIdentityType2["APP"] = "APP";
729
- return WebhookIdentityType2;
730
- })(WebhookIdentityType || {});
731
- async function triggerNotification2(options) {
312
+ async function resolveNotificationConfig2(notificationConfigId) {
732
313
  const { httpClient, sideEffects } = arguments[1];
733
314
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
734
- emailNotificationType: options?.emailNotificationType,
735
- pushNotificationType: options?.pushNotificationType,
736
- rsvpGuest: options?.rsvpGuest,
737
- orderGuest: options?.orderGuest,
738
- eventGuests: options?.eventGuests,
739
- ticketGuest: options?.ticketGuest
315
+ notificationConfigId
740
316
  });
741
- const reqOpts = triggerNotification(
317
+ const reqOpts = resolveNotificationConfig(
742
318
  payload
743
319
  );
744
320
  sideEffects?.onSiteCall?.();
745
321
  try {
746
322
  const result = await httpClient.request(reqOpts);
747
323
  sideEffects?.onSuccess?.(result);
324
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
748
325
  } catch (err) {
749
326
  const transformedError = (0, import_transform_error.transformError)(
750
327
  err,
751
328
  {
752
329
  spreadPathsToArguments: {},
753
- explicitPathsToArguments: {
754
- emailNotificationType: "$[0].emailNotificationType",
755
- pushNotificationType: "$[0].pushNotificationType",
756
- rsvpGuest: "$[0].rsvpGuest",
757
- orderGuest: "$[0].orderGuest",
758
- eventGuests: "$[0].eventGuests",
759
- ticketGuest: "$[0].ticketGuest"
760
- },
330
+ explicitPathsToArguments: { notificationConfigId: "$[0]" },
761
331
  singleArgumentUnchanged: false
762
332
  },
763
- ["options"]
333
+ ["notificationConfigId"]
764
334
  );
765
335
  sideEffects?.onError?.(err);
766
336
  throw transformedError;
767
337
  }
768
338
  }
769
- async function resolveNotificationConfig2(notificationConfigId) {
770
- const { httpClient, sideEffects } = arguments[1];
339
+ async function upsertNotificationConfig2(_id, notificationConfig) {
340
+ const { httpClient, sideEffects } = arguments[2];
771
341
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
772
- notificationConfigId
342
+ notificationConfig: { ...notificationConfig, id: _id }
773
343
  });
774
- const reqOpts = resolveNotificationConfig(
344
+ const reqOpts = upsertNotificationConfig(
775
345
  payload
776
346
  );
777
347
  sideEffects?.onSiteCall?.();
@@ -783,38 +353,49 @@ async function resolveNotificationConfig2(notificationConfigId) {
783
353
  const transformedError = (0, import_transform_error.transformError)(
784
354
  err,
785
355
  {
786
- spreadPathsToArguments: {},
787
- explicitPathsToArguments: { notificationConfigId: "$[0]" },
356
+ spreadPathsToArguments: { notificationConfig: "$[1]" },
357
+ explicitPathsToArguments: { "notificationConfig.id": "$[0]" },
788
358
  singleArgumentUnchanged: false
789
359
  },
790
- ["notificationConfigId"]
360
+ ["_id", "notificationConfig"]
791
361
  );
792
362
  sideEffects?.onError?.(err);
793
363
  throw transformedError;
794
364
  }
795
365
  }
796
- async function upsertNotificationConfig2(_id, notificationConfig) {
797
- const { httpClient, sideEffects } = arguments[2];
366
+ async function triggerNotification2(options) {
367
+ const { httpClient, sideEffects } = arguments[1];
798
368
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
799
- 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
800
375
  });
801
- const reqOpts = upsertNotificationConfig(
376
+ const reqOpts = triggerNotification(
802
377
  payload
803
378
  );
804
379
  sideEffects?.onSiteCall?.();
805
380
  try {
806
381
  const result = await httpClient.request(reqOpts);
807
382
  sideEffects?.onSuccess?.(result);
808
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
809
383
  } catch (err) {
810
384
  const transformedError = (0, import_transform_error.transformError)(
811
385
  err,
812
386
  {
813
- spreadPathsToArguments: { notificationConfig: "$[1]" },
814
- 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
+ },
815
396
  singleArgumentUnchanged: false
816
397
  },
817
- ["_id", "notificationConfig"]
398
+ ["options"]
818
399
  );
819
400
  sideEffects?.onError?.(err);
820
401
  throw transformedError;
@@ -822,69 +403,18 @@ async function upsertNotificationConfig2(_id, notificationConfig) {
822
403
  }
823
404
  // Annotate the CommonJS export names for ESM import in node:
824
405
  0 && (module.exports = {
825
- Alignment,
826
- AppType,
827
- AspectRatio,
828
- BackgroundType,
829
- ButtonDataType,
830
- CardStylesType,
831
- CheckoutType,
832
- ConferenceType,
833
- Crop,
834
- DecorationType,
835
- Direction,
836
- DividerDataAlignment,
837
406
  EmailNotificationReminderTime,
838
407
  EmailNotificationType,
839
408
  EventStatus,
840
- EventType,
841
409
  FeeName,
842
410
  FeeType,
843
- FontType,
844
- GIFType,
845
- ImagePosition,
846
- InitialExpandedItems,
847
- InputControlType,
848
- Layout,
849
- LayoutType,
850
- LineStyle,
851
411
  LocationType,
852
- MapType,
853
- NodeType,
854
- NullValue,
855
412
  OrderStatus,
856
- Orientation,
857
- Placement,
858
- PluginContainerDataAlignment,
859
- PollLayoutDirection,
860
- PollLayoutType,
861
- Position,
862
413
  PushNotificationType,
863
- RegistrationStatus,
864
- Resizing,
865
- ResponsivenessBehaviour,
866
- RsvpStatusOptions,
867
- Scaling,
868
- Source,
869
- State,
870
414
  Status,
871
- StylesPosition,
872
415
  SubdivisionType,
873
- Target,
874
416
  TaxType,
875
- TextAlignment,
876
- ThumbnailsAlignment,
877
- Type,
878
- ValueType,
879
- VerticalAlignment,
880
- VerticalAlignmentAlignment,
881
- ViewMode,
882
- ViewRole,
883
- VisitorType,
884
- VoteRole,
885
417
  WebhookIdentityType,
886
- Width,
887
- WidthType,
888
418
  resolveNotificationConfig,
889
419
  triggerNotification,
890
420
  upsertNotificationConfig