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