@wix/auto_sdk_events_notifications 1.0.20 → 1.0.22

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 (133) hide show
  1. package/build/{internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +501 -544
  2. package/build/{cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +501 -544
  3. package/build/index.d.mts +39 -0
  4. package/build/index.d.ts +39 -0
  5. package/build/index.js +858 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +779 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +501 -544
  10. package/build/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → internal/events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +501 -544
  11. package/build/internal/index.d.mts +39 -0
  12. package/build/internal/index.d.ts +39 -0
  13. package/build/internal/index.js +858 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +779 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +267 -0
  18. package/build/internal/meta.d.ts +267 -0
  19. package/build/internal/meta.js +258 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +229 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +267 -0
  24. package/build/meta.d.ts +267 -0
  25. package/build/meta.js +258 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +229 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  40. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  41. package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  42. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  43. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  44. package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  45. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  46. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  47. package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  48. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  49. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  50. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  51. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3669
  52. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
  53. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  54. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
  55. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  66. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  67. package/build/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  68. package/build/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  69. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  70. package/build/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  71. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  72. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  73. package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  74. package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  75. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  76. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  77. package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3669
  78. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
  79. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  80. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
  81. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  92. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
  93. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  94. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  95. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
  96. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  97. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  98. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
  99. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  100. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  101. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
  102. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  103. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3669
  104. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -570
  105. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -730
  107. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
  118. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
  119. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
  120. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
  121. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
  122. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
  123. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
  124. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
  125. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
  126. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
  127. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
  128. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
  129. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3669
  130. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -566
  131. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
  132. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -700
  133. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
@@ -1,730 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.FeeType = exports.FeeName = exports.OrderStatus = exports.Type = exports.NullValue = exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Position = exports.Source = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.State = exports.ConferenceType = exports.ValueType = exports.InputControlType = exports.VisitorType = exports.TaxType = exports.RsvpStatusOptions = exports.RegistrationStatus = exports.EventType = exports.EventStatus = exports.Status = exports.SubdivisionType = exports.LocationType = exports.PushNotificationType = exports.EmailNotificationReminderTime = exports.EmailNotificationType = void 0;
27
- exports.upsertNotificationConfig = exports.resolveNotificationConfig = exports.triggerNotification = exports.WebhookIdentityType = void 0;
28
- const transform_error_1 = require("@wix/sdk-runtime/transform-error");
29
- const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
30
- const ambassadorWixEventsNotificationsV2NotificationConfig = __importStar(require("./events-notifications-v2-notification-config-notifications.http.js"));
31
- var EmailNotificationType;
32
- (function (EmailNotificationType) {
33
- /** Default value. This value is unused. */
34
- EmailNotificationType["UNKNOWN_NOTIFICATION_TYPE"] = "UNKNOWN_NOTIFICATION_TYPE";
35
- /** Triggered when site user RSVP to the event. */
36
- EmailNotificationType["EMAIL_RSVP_CONFIRMATION"] = "EMAIL_RSVP_CONFIRMATION";
37
- /** Triggered for waiting guests when additional RSVP spots appears in the fully booked event. */
38
- EmailNotificationType["EMAIL_NEW_SPOTS_AVAILABLE"] = "EMAIL_NEW_SPOTS_AVAILABLE";
39
- /** Triggered when event is canceled. */
40
- EmailNotificationType["EMAIL_EVENT_CANCELATION"] = "EMAIL_EVENT_CANCELATION";
41
- /** Triggered before the event start time. */
42
- EmailNotificationType["EMAIL_UPCOMING_EVENT_REMINDER"] = "EMAIL_UPCOMING_EVENT_REMINDER";
43
- /** Triggered when site user creates Order. */
44
- EmailNotificationType["EMAIL_ORDER_CONFIRMATION"] = "EMAIL_ORDER_CONFIRMATION";
45
- /** Triggered when resending ticket to ticket holder. */
46
- EmailNotificationType["EMAIL_TICKET_CONFIRMATION"] = "EMAIL_TICKET_CONFIRMATION";
47
- /** Triggered when sending invoice. Currently only `enabled` flag update is supported. */
48
- EmailNotificationType["EMAIL_INVOICE"] = "EMAIL_INVOICE";
49
- })(EmailNotificationType || (exports.EmailNotificationType = EmailNotificationType = {}));
50
- var EmailNotificationReminderTime;
51
- (function (EmailNotificationReminderTime) {
52
- /** Default value. This value is unused. */
53
- EmailNotificationReminderTime["UNKNOWN_REMINDER_TIME"] = "UNKNOWN_REMINDER_TIME";
54
- /** Notification is sent instantly */
55
- EmailNotificationReminderTime["INSTANT"] = "INSTANT";
56
- /** 24 hours prior */
57
- EmailNotificationReminderTime["BEFORE_1_DAY"] = "BEFORE_1_DAY";
58
- /** 3 days prior */
59
- EmailNotificationReminderTime["BEFORE_3_DAYS"] = "BEFORE_3_DAYS";
60
- /** 7 days prior */
61
- EmailNotificationReminderTime["BEFORE_1_WEEK"] = "BEFORE_1_WEEK";
62
- /** 1 hour prior */
63
- EmailNotificationReminderTime["BEFORE_1_HOUR"] = "BEFORE_1_HOUR";
64
- /** 30 minutes prior */
65
- EmailNotificationReminderTime["BEFORE_30_MINUTES"] = "BEFORE_30_MINUTES";
66
- })(EmailNotificationReminderTime || (exports.EmailNotificationReminderTime = EmailNotificationReminderTime = {}));
67
- var PushNotificationType;
68
- (function (PushNotificationType) {
69
- /** This is default value. This value is unused. */
70
- PushNotificationType["UNKNOWN_PUSH_TYPE"] = "UNKNOWN_PUSH_TYPE";
71
- /** Triggered when event is updated. */
72
- PushNotificationType["PUSH_EVENT_UPDATED"] = "PUSH_EVENT_UPDATED";
73
- /** Triggered when event is canceled. */
74
- PushNotificationType["PUSH_EVENT_CANCELATION"] = "PUSH_EVENT_CANCELATION";
75
- /** Triggered before the event start time. */
76
- PushNotificationType["PUSH_UPCOMING_EVENT_REMINDER"] = "PUSH_UPCOMING_EVENT_REMINDER";
77
- /** Triggered when event is created. */
78
- PushNotificationType["PUSH_EVENT_CREATED"] = "PUSH_EVENT_CREATED";
79
- })(PushNotificationType || (exports.PushNotificationType = PushNotificationType = {}));
80
- var LocationType;
81
- (function (LocationType) {
82
- LocationType["VENUE"] = "VENUE";
83
- LocationType["ONLINE"] = "ONLINE";
84
- })(LocationType || (exports.LocationType = LocationType = {}));
85
- var SubdivisionType;
86
- (function (SubdivisionType) {
87
- SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
88
- /** State */
89
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
90
- /** County */
91
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
92
- /** City/town */
93
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
94
- /** Neighborhood/quarter */
95
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
96
- /** Street/block */
97
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
98
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
99
- SubdivisionType["COUNTRY"] = "COUNTRY";
100
- })(SubdivisionType || (exports.SubdivisionType = SubdivisionType = {}));
101
- var Status;
102
- (function (Status) {
103
- /** Event occurs only once. */
104
- Status["ONE_TIME"] = "ONE_TIME";
105
- /** Event is recurring. */
106
- Status["RECURRING"] = "RECURRING";
107
- /** Marks the next upcoming occurrence of the recurring event. */
108
- Status["RECURRING_NEXT"] = "RECURRING_NEXT";
109
- /** Marks the most recent ended occurrence of the recurring event. */
110
- Status["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
111
- /** Marks the most recent canceled occurrence of the recurring event. */
112
- Status["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
113
- })(Status || (exports.Status = Status = {}));
114
- var EventStatus;
115
- (function (EventStatus) {
116
- /** Event is public and scheduled to start */
117
- EventStatus["SCHEDULED"] = "SCHEDULED";
118
- /** Event has started */
119
- EventStatus["STARTED"] = "STARTED";
120
- /** Event has ended */
121
- EventStatus["ENDED"] = "ENDED";
122
- /** Event was canceled */
123
- EventStatus["CANCELED"] = "CANCELED";
124
- })(EventStatus || (exports.EventStatus = EventStatus = {}));
125
- var EventType;
126
- (function (EventType) {
127
- /** Type not available for this request fieldset */
128
- EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
129
- /** Registration via RSVP */
130
- EventType["RSVP"] = "RSVP";
131
- /** Registration via ticket purchase */
132
- EventType["TICKETS"] = "TICKETS";
133
- /** External registration */
134
- EventType["EXTERNAL"] = "EXTERNAL";
135
- /** Registration not available */
136
- EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
137
- })(EventType || (exports.EventType = EventType = {}));
138
- var RegistrationStatus;
139
- (function (RegistrationStatus) {
140
- /** Registration status is not applicable */
141
- RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
142
- /** Registration to event is closed */
143
- RegistrationStatus["CLOSED"] = "CLOSED";
144
- /** Registration to event is closed manually */
145
- RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
146
- /** Registration is open via RSVP */
147
- RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
148
- /** Registration to event waitlist is open via RSVP */
149
- RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
150
- /** Registration is open via ticket purchase */
151
- RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
152
- /** Registration is open via external URL */
153
- RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
154
- /** Registration will be open via RSVP */
155
- RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
156
- })(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
157
- var RsvpStatusOptions;
158
- (function (RsvpStatusOptions) {
159
- /** Only YES RSVP status is available for RSVP registration */
160
- RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
161
- /** YES and NO RSVP status options are available for the registration */
162
- RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
163
- })(RsvpStatusOptions || (exports.RsvpStatusOptions = RsvpStatusOptions = {}));
164
- var TaxType;
165
- (function (TaxType) {
166
- /** Tax is included in the ticket price. */
167
- TaxType["INCLUDED"] = "INCLUDED";
168
- /** Tax is added to the order at the checkout. */
169
- TaxType["ADDED"] = "ADDED";
170
- /** Tax is added to the final total at the checkout. */
171
- TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
172
- })(TaxType || (exports.TaxType = TaxType = {}));
173
- var VisitorType;
174
- (function (VisitorType) {
175
- /** Site visitor (including member) */
176
- VisitorType["VISITOR"] = "VISITOR";
177
- /** Site member */
178
- VisitorType["MEMBER"] = "MEMBER";
179
- /** Site visitor or member */
180
- VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
181
- })(VisitorType || (exports.VisitorType = VisitorType = {}));
182
- var InputControlType;
183
- (function (InputControlType) {
184
- /** Single text value field. */
185
- InputControlType["INPUT"] = "INPUT";
186
- /** Single text value field. */
187
- InputControlType["TEXTAREA"] = "TEXTAREA";
188
- /** Single-choice field of predefined values. */
189
- InputControlType["DROPDOWN"] = "DROPDOWN";
190
- /** Single-choice field of predefined values. */
191
- InputControlType["RADIO"] = "RADIO";
192
- /** Multiple-choice field of predefined values. */
193
- InputControlType["CHECKBOX"] = "CHECKBOX";
194
- /** First and last name fields. */
195
- InputControlType["NAME"] = "NAME";
196
- /** Additional guests and respective guest names fields. */
197
- InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
198
- /** Single-line address field. */
199
- InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
200
- /** Full address field. */
201
- InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
202
- /** Year, month and day fields. */
203
- InputControlType["DATE"] = "DATE";
204
- })(InputControlType || (exports.InputControlType = InputControlType = {}));
205
- var ValueType;
206
- (function (ValueType) {
207
- ValueType["TEXT"] = "TEXT";
208
- ValueType["NUMBER"] = "NUMBER";
209
- ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
210
- ValueType["DATE_TIME"] = "DATE_TIME";
211
- ValueType["ADDRESS"] = "ADDRESS";
212
- })(ValueType || (exports.ValueType = ValueType = {}));
213
- var ConferenceType;
214
- (function (ConferenceType) {
215
- /** Everyone in the meeting can publish and subscribe video and audio. */
216
- ConferenceType["MEETING"] = "MEETING";
217
- /** Guests can only subscribe to video and audio. */
218
- ConferenceType["WEBINAR"] = "WEBINAR";
219
- })(ConferenceType || (exports.ConferenceType = ConferenceType = {}));
220
- var State;
221
- (function (State) {
222
- /** Created manually by the user. */
223
- State["MANUAL"] = "MANUAL";
224
- /** Created automatically. */
225
- State["AUTO"] = "AUTO";
226
- /** Created when publishing recurring events. */
227
- State["RECURRING_EVENT"] = "RECURRING_EVENT";
228
- /** Category is hidden. */
229
- State["HIDDEN"] = "HIDDEN";
230
- })(State || (exports.State = State = {}));
231
- var NodeType;
232
- (function (NodeType) {
233
- NodeType["PARAGRAPH"] = "PARAGRAPH";
234
- NodeType["TEXT"] = "TEXT";
235
- NodeType["HEADING"] = "HEADING";
236
- NodeType["BULLETED_LIST"] = "BULLETED_LIST";
237
- NodeType["ORDERED_LIST"] = "ORDERED_LIST";
238
- NodeType["LIST_ITEM"] = "LIST_ITEM";
239
- NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
240
- NodeType["CODE_BLOCK"] = "CODE_BLOCK";
241
- NodeType["VIDEO"] = "VIDEO";
242
- NodeType["DIVIDER"] = "DIVIDER";
243
- NodeType["FILE"] = "FILE";
244
- NodeType["GALLERY"] = "GALLERY";
245
- NodeType["GIF"] = "GIF";
246
- NodeType["HTML"] = "HTML";
247
- NodeType["IMAGE"] = "IMAGE";
248
- NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
249
- /** @deprecated */
250
- NodeType["MAP"] = "MAP";
251
- NodeType["POLL"] = "POLL";
252
- NodeType["APP_EMBED"] = "APP_EMBED";
253
- NodeType["BUTTON"] = "BUTTON";
254
- NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
255
- NodeType["TABLE"] = "TABLE";
256
- NodeType["EMBED"] = "EMBED";
257
- NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
258
- NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
259
- NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
260
- NodeType["TABLE_CELL"] = "TABLE_CELL";
261
- NodeType["TABLE_ROW"] = "TABLE_ROW";
262
- NodeType["EXTERNAL"] = "EXTERNAL";
263
- NodeType["AUDIO"] = "AUDIO";
264
- NodeType["CAPTION"] = "CAPTION";
265
- NodeType["LAYOUT"] = "LAYOUT";
266
- NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
267
- })(NodeType || (exports.NodeType = NodeType = {}));
268
- var WidthType;
269
- (function (WidthType) {
270
- /** Width matches the content width */
271
- WidthType["CONTENT"] = "CONTENT";
272
- /** Small Width */
273
- WidthType["SMALL"] = "SMALL";
274
- /** Width will match the original asset width */
275
- WidthType["ORIGINAL"] = "ORIGINAL";
276
- /** coast-to-coast display */
277
- WidthType["FULL_WIDTH"] = "FULL_WIDTH";
278
- })(WidthType || (exports.WidthType = WidthType = {}));
279
- var PluginContainerDataAlignment;
280
- (function (PluginContainerDataAlignment) {
281
- /** Center Alignment */
282
- PluginContainerDataAlignment["CENTER"] = "CENTER";
283
- /** Left Alignment */
284
- PluginContainerDataAlignment["LEFT"] = "LEFT";
285
- /** Right Alignment */
286
- PluginContainerDataAlignment["RIGHT"] = "RIGHT";
287
- })(PluginContainerDataAlignment || (exports.PluginContainerDataAlignment = PluginContainerDataAlignment = {}));
288
- var ButtonDataType;
289
- (function (ButtonDataType) {
290
- /** Regular link button */
291
- ButtonDataType["LINK"] = "LINK";
292
- /** Triggers custom action that is defined in plugin configuration by the consumer */
293
- ButtonDataType["ACTION"] = "ACTION";
294
- })(ButtonDataType || (exports.ButtonDataType = ButtonDataType = {}));
295
- var Target;
296
- (function (Target) {
297
- /** Opens the linked document in the same frame as it was clicked (this is default) */
298
- Target["SELF"] = "SELF";
299
- /** Opens the linked document in a new window or tab */
300
- Target["BLANK"] = "BLANK";
301
- /** Opens the linked document in the parent frame */
302
- Target["PARENT"] = "PARENT";
303
- /** Opens the linked document in the full body of the window */
304
- Target["TOP"] = "TOP";
305
- })(Target || (exports.Target = Target = {}));
306
- var TextAlignment;
307
- (function (TextAlignment) {
308
- /** browser default, eqivalent to `initial` */
309
- TextAlignment["AUTO"] = "AUTO";
310
- /** Left align */
311
- TextAlignment["LEFT"] = "LEFT";
312
- /** Right align */
313
- TextAlignment["RIGHT"] = "RIGHT";
314
- /** Center align */
315
- TextAlignment["CENTER"] = "CENTER";
316
- /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
317
- TextAlignment["JUSTIFY"] = "JUSTIFY";
318
- })(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
319
- var LineStyle;
320
- (function (LineStyle) {
321
- /** Single Line */
322
- LineStyle["SINGLE"] = "SINGLE";
323
- /** Double Line */
324
- LineStyle["DOUBLE"] = "DOUBLE";
325
- /** Dashed Line */
326
- LineStyle["DASHED"] = "DASHED";
327
- /** Dotted Line */
328
- LineStyle["DOTTED"] = "DOTTED";
329
- })(LineStyle || (exports.LineStyle = LineStyle = {}));
330
- var Width;
331
- (function (Width) {
332
- /** Large line */
333
- Width["LARGE"] = "LARGE";
334
- /** Medium line */
335
- Width["MEDIUM"] = "MEDIUM";
336
- /** Small line */
337
- Width["SMALL"] = "SMALL";
338
- })(Width || (exports.Width = Width = {}));
339
- var Alignment;
340
- (function (Alignment) {
341
- /** Center alignment */
342
- Alignment["CENTER"] = "CENTER";
343
- /** Left alignment */
344
- Alignment["LEFT"] = "LEFT";
345
- /** Right alignment */
346
- Alignment["RIGHT"] = "RIGHT";
347
- })(Alignment || (exports.Alignment = Alignment = {}));
348
- var ViewMode;
349
- (function (ViewMode) {
350
- /** No PDF view */
351
- ViewMode["NONE"] = "NONE";
352
- /** Full PDF view */
353
- ViewMode["FULL"] = "FULL";
354
- /** Mini PDF view */
355
- ViewMode["MINI"] = "MINI";
356
- })(ViewMode || (exports.ViewMode = ViewMode = {}));
357
- var LayoutType;
358
- (function (LayoutType) {
359
- /** Collage type */
360
- LayoutType["COLLAGE"] = "COLLAGE";
361
- /** Masonry type */
362
- LayoutType["MASONRY"] = "MASONRY";
363
- /** Grid type */
364
- LayoutType["GRID"] = "GRID";
365
- /** Thumbnail type */
366
- LayoutType["THUMBNAIL"] = "THUMBNAIL";
367
- /** Slider type */
368
- LayoutType["SLIDER"] = "SLIDER";
369
- /** Slideshow type */
370
- LayoutType["SLIDESHOW"] = "SLIDESHOW";
371
- /** Panorama type */
372
- LayoutType["PANORAMA"] = "PANORAMA";
373
- /** Column type */
374
- LayoutType["COLUMN"] = "COLUMN";
375
- /** Magic type */
376
- LayoutType["MAGIC"] = "MAGIC";
377
- /** Fullsize images type */
378
- LayoutType["FULLSIZE"] = "FULLSIZE";
379
- })(LayoutType || (exports.LayoutType = LayoutType = {}));
380
- var Orientation;
381
- (function (Orientation) {
382
- /** Rows Orientation */
383
- Orientation["ROWS"] = "ROWS";
384
- /** Columns Orientation */
385
- Orientation["COLUMNS"] = "COLUMNS";
386
- })(Orientation || (exports.Orientation = Orientation = {}));
387
- var Crop;
388
- (function (Crop) {
389
- /** Crop to fill */
390
- Crop["FILL"] = "FILL";
391
- /** Crop to fit */
392
- Crop["FIT"] = "FIT";
393
- })(Crop || (exports.Crop = Crop = {}));
394
- var ThumbnailsAlignment;
395
- (function (ThumbnailsAlignment) {
396
- /** Top alignment */
397
- ThumbnailsAlignment["TOP"] = "TOP";
398
- /** Right alignment */
399
- ThumbnailsAlignment["RIGHT"] = "RIGHT";
400
- /** Bottom alignment */
401
- ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
402
- /** Left alignment */
403
- ThumbnailsAlignment["LEFT"] = "LEFT";
404
- /** No thumbnail */
405
- ThumbnailsAlignment["NONE"] = "NONE";
406
- })(ThumbnailsAlignment || (exports.ThumbnailsAlignment = ThumbnailsAlignment = {}));
407
- var GIFType;
408
- (function (GIFType) {
409
- GIFType["NORMAL"] = "NORMAL";
410
- GIFType["STICKER"] = "STICKER";
411
- })(GIFType || (exports.GIFType = GIFType = {}));
412
- var Source;
413
- (function (Source) {
414
- Source["HTML"] = "HTML";
415
- Source["ADSENSE"] = "ADSENSE";
416
- })(Source || (exports.Source = Source = {}));
417
- var Position;
418
- (function (Position) {
419
- /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
420
- Position["START"] = "START";
421
- /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
422
- Position["END"] = "END";
423
- /** Thumbnail positioned at the top */
424
- Position["TOP"] = "TOP";
425
- /** Thumbnail hidden and not displayed */
426
- Position["HIDDEN"] = "HIDDEN";
427
- })(Position || (exports.Position = Position = {}));
428
- var MapType;
429
- (function (MapType) {
430
- /** Roadmap map type */
431
- MapType["ROADMAP"] = "ROADMAP";
432
- /** Satellite map type */
433
- MapType["SATELITE"] = "SATELITE";
434
- /** Hybrid map type */
435
- MapType["HYBRID"] = "HYBRID";
436
- /** Terrain map type */
437
- MapType["TERRAIN"] = "TERRAIN";
438
- })(MapType || (exports.MapType = MapType = {}));
439
- var ViewRole;
440
- (function (ViewRole) {
441
- /** Only Poll creator can view the results */
442
- ViewRole["CREATOR"] = "CREATOR";
443
- /** Anyone who voted can see the results */
444
- ViewRole["VOTERS"] = "VOTERS";
445
- /** Anyone can see the results, even if one didn't vote */
446
- ViewRole["EVERYONE"] = "EVERYONE";
447
- })(ViewRole || (exports.ViewRole = ViewRole = {}));
448
- var VoteRole;
449
- (function (VoteRole) {
450
- /** Logged in member */
451
- VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
452
- /** Anyone */
453
- VoteRole["ALL"] = "ALL";
454
- })(VoteRole || (exports.VoteRole = VoteRole = {}));
455
- var PollLayoutType;
456
- (function (PollLayoutType) {
457
- /** List */
458
- PollLayoutType["LIST"] = "LIST";
459
- /** Grid */
460
- PollLayoutType["GRID"] = "GRID";
461
- })(PollLayoutType || (exports.PollLayoutType = PollLayoutType = {}));
462
- var PollLayoutDirection;
463
- (function (PollLayoutDirection) {
464
- /** Left-to-right */
465
- PollLayoutDirection["LTR"] = "LTR";
466
- /** Right-to-left */
467
- PollLayoutDirection["RTL"] = "RTL";
468
- })(PollLayoutDirection || (exports.PollLayoutDirection = PollLayoutDirection = {}));
469
- var BackgroundType;
470
- (function (BackgroundType) {
471
- /** Color background type */
472
- BackgroundType["COLOR"] = "COLOR";
473
- /** Image background type */
474
- BackgroundType["IMAGE"] = "IMAGE";
475
- /** Gradiant background type */
476
- BackgroundType["GRADIENT"] = "GRADIENT";
477
- })(BackgroundType || (exports.BackgroundType = BackgroundType = {}));
478
- var DecorationType;
479
- (function (DecorationType) {
480
- DecorationType["BOLD"] = "BOLD";
481
- DecorationType["ITALIC"] = "ITALIC";
482
- DecorationType["UNDERLINE"] = "UNDERLINE";
483
- DecorationType["SPOILER"] = "SPOILER";
484
- DecorationType["ANCHOR"] = "ANCHOR";
485
- DecorationType["MENTION"] = "MENTION";
486
- DecorationType["LINK"] = "LINK";
487
- DecorationType["COLOR"] = "COLOR";
488
- DecorationType["FONT_SIZE"] = "FONT_SIZE";
489
- DecorationType["EXTERNAL"] = "EXTERNAL";
490
- })(DecorationType || (exports.DecorationType = DecorationType = {}));
491
- var FontType;
492
- (function (FontType) {
493
- FontType["PX"] = "PX";
494
- FontType["EM"] = "EM";
495
- })(FontType || (exports.FontType = FontType = {}));
496
- var AppType;
497
- (function (AppType) {
498
- AppType["PRODUCT"] = "PRODUCT";
499
- AppType["EVENT"] = "EVENT";
500
- AppType["BOOKING"] = "BOOKING";
501
- })(AppType || (exports.AppType = AppType = {}));
502
- var InitialExpandedItems;
503
- (function (InitialExpandedItems) {
504
- /** First item will be expended initally */
505
- InitialExpandedItems["FIRST"] = "FIRST";
506
- /** All items will expended initally */
507
- InitialExpandedItems["ALL"] = "ALL";
508
- /** All items collapsed initally */
509
- InitialExpandedItems["NONE"] = "NONE";
510
- })(InitialExpandedItems || (exports.InitialExpandedItems = InitialExpandedItems = {}));
511
- var Direction;
512
- (function (Direction) {
513
- /** Left-to-right */
514
- Direction["LTR"] = "LTR";
515
- /** Right-to-left */
516
- Direction["RTL"] = "RTL";
517
- })(Direction || (exports.Direction = Direction = {}));
518
- var VerticalAlignment;
519
- (function (VerticalAlignment) {
520
- /** Top alignment */
521
- VerticalAlignment["TOP"] = "TOP";
522
- /** Middle alignment */
523
- VerticalAlignment["MIDDLE"] = "MIDDLE";
524
- /** Bottom alignment */
525
- VerticalAlignment["BOTTOM"] = "BOTTOM";
526
- })(VerticalAlignment || (exports.VerticalAlignment = VerticalAlignment = {}));
527
- /**
528
- * `NullValue` is a singleton enumeration to represent the null value for the
529
- * `Value` type union.
530
- *
531
- * The JSON representation for `NullValue` is JSON `null`.
532
- */
533
- var NullValue;
534
- (function (NullValue) {
535
- /** Null value. */
536
- NullValue["NULL_VALUE"] = "NULL_VALUE";
537
- })(NullValue || (exports.NullValue = NullValue = {}));
538
- var Type;
539
- (function (Type) {
540
- /** Unknown badge type. */
541
- Type["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
542
- /** Urgent badge type. */
543
- Type["URGENT"] = "URGENT";
544
- /** Informational badge type. */
545
- Type["INFO"] = "INFO";
546
- /** General badge type. */
547
- Type["GENERAL"] = "GENERAL";
548
- })(Type || (exports.Type = Type = {}));
549
- var OrderStatus;
550
- (function (OrderStatus) {
551
- /** Order status not available for this request fieldset. */
552
- OrderStatus["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
553
- /** Order is confirmed and payment isn't required. */
554
- OrderStatus["FREE"] = "FREE";
555
- /** Order is paid for but the payment gateway has suspended the payment. */
556
- OrderStatus["PENDING"] = "PENDING";
557
- /** Order is paid via a payment gateway. */
558
- OrderStatus["PAID"] = "PAID";
559
- /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `PAID`. */
560
- OrderStatus["OFFLINE_PENDING"] = "OFFLINE_PENDING";
561
- /** Order is awaiting payment at the cashier. */
562
- OrderStatus["INITIATED"] = "INITIATED";
563
- /** Order is canceled. */
564
- OrderStatus["CANCELED"] = "CANCELED";
565
- /** Order payment is declined. */
566
- OrderStatus["DECLINED"] = "DECLINED";
567
- /** Order payment is authorized. */
568
- OrderStatus["AUTHORIZED"] = "AUTHORIZED";
569
- /** Order payment is voided. */
570
- OrderStatus["VOIDED"] = "VOIDED";
571
- /** Order is partially paid with less than the total amount. */
572
- OrderStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
573
- })(OrderStatus || (exports.OrderStatus = OrderStatus = {}));
574
- var FeeName;
575
- (function (FeeName) {
576
- /** Wix ticket service fee charges applied to the line item. */
577
- FeeName["WIX_FEE"] = "WIX_FEE";
578
- })(FeeName || (exports.FeeName = FeeName = {}));
579
- var FeeType;
580
- (function (FeeType) {
581
- /** Fee is added to the ticket price at checkout. */
582
- FeeType["FEE_ADDED"] = "FEE_ADDED";
583
- /** Seller absorbs the fee. It is deducted from the ticket price. */
584
- FeeType["FEE_INCLUDED"] = "FEE_INCLUDED";
585
- /** Fee is added to the ticket price at checkout. */
586
- FeeType["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
587
- })(FeeType || (exports.FeeType = FeeType = {}));
588
- var WebhookIdentityType;
589
- (function (WebhookIdentityType) {
590
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
591
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
592
- WebhookIdentityType["MEMBER"] = "MEMBER";
593
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
594
- WebhookIdentityType["APP"] = "APP";
595
- })(WebhookIdentityType || (exports.WebhookIdentityType = WebhookIdentityType = {}));
596
- /**
597
- * Triggers notification
598
- * @public
599
- * @documentationMaturity preview
600
- * @requiredField guests
601
- * @requiredField notification
602
- * @permissionId WIX_EVENTS.MANAGE
603
- * @permissionScope Manage Events
604
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
605
- * @applicableIdentity APP
606
- * @fqn wix.events.notifications.v2.NotificationService.TriggerNotification
607
- */
608
- async function triggerNotification(options) {
609
- // @ts-ignore
610
- const { httpClient, sideEffects } = arguments[1];
611
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
612
- emailNotificationType: options?.emailNotificationType,
613
- pushNotificationType: options?.pushNotificationType,
614
- rsvpGuest: options?.rsvpGuest,
615
- orderGuest: options?.orderGuest,
616
- eventGuests: options?.eventGuests,
617
- ticketGuest: options?.ticketGuest,
618
- });
619
- const reqOpts = ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(payload);
620
- sideEffects?.onSiteCall?.();
621
- try {
622
- const result = await httpClient.request(reqOpts);
623
- sideEffects?.onSuccess?.(result);
624
- }
625
- catch (err) {
626
- const transformedError = (0, transform_error_1.transformError)(err, {
627
- spreadPathsToArguments: {},
628
- explicitPathsToArguments: {
629
- emailNotificationType: '$[0].emailNotificationType',
630
- pushNotificationType: '$[0].pushNotificationType',
631
- rsvpGuest: '$[0].rsvpGuest',
632
- orderGuest: '$[0].orderGuest',
633
- eventGuests: '$[0].eventGuests',
634
- ticketGuest: '$[0].ticketGuest',
635
- },
636
- singleArgumentUnchanged: false,
637
- }, ['options']);
638
- sideEffects?.onError?.(err);
639
- throw transformedError;
640
- }
641
- }
642
- exports.triggerNotification = triggerNotification;
643
- /**
644
- * Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.
645
- * @param notificationConfigId - Id of the NotificationConfig to retrieve
646
- * @public
647
- * @documentationMaturity preview
648
- * @requiredField notificationConfigId
649
- * @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG
650
- * @permissionScope Read Events - all read permissions
651
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
652
- * @permissionScope Manage Events - all permissions
653
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
654
- * @permissionScope Manage Events
655
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
656
- * @permissionScope Read Events
657
- * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS
658
- * @permissionScope Manage Guest List
659
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
660
- * @permissionScope Manage Events
661
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
662
- * @applicableIdentity APP
663
- * @fqn wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig
664
- */
665
- async function resolveNotificationConfig(notificationConfigId) {
666
- // @ts-ignore
667
- const { httpClient, sideEffects } = arguments[1];
668
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
669
- notificationConfigId: notificationConfigId,
670
- });
671
- const reqOpts = ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(payload);
672
- sideEffects?.onSiteCall?.();
673
- try {
674
- const result = await httpClient.request(reqOpts);
675
- sideEffects?.onSuccess?.(result);
676
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
677
- }
678
- catch (err) {
679
- const transformedError = (0, transform_error_1.transformError)(err, {
680
- spreadPathsToArguments: {},
681
- explicitPathsToArguments: { notificationConfigId: '$[0]' },
682
- singleArgumentUnchanged: false,
683
- }, ['notificationConfigId']);
684
- sideEffects?.onError?.(err);
685
- throw transformedError;
686
- }
687
- }
688
- exports.resolveNotificationConfig = resolveNotificationConfig;
689
- /**
690
- * Upsert a NotificationConfig
691
- * @param _id - Event ID.
692
- * @public
693
- * @documentationMaturity preview
694
- * @requiredField _id
695
- * @requiredField notificationConfig
696
- * @permissionId WIX_EVENTS.UPDATE_NOTIFICATION_CONFIG
697
- * @permissionScope Manage Events - all permissions
698
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
699
- * @permissionScope Manage Events
700
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
701
- * @permissionScope Manage Events
702
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
703
- * @applicableIdentity APP
704
- * @fqn wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig
705
- */
706
- async function upsertNotificationConfig(_id, notificationConfig) {
707
- // @ts-ignore
708
- const { httpClient, sideEffects } = arguments[2];
709
- const payload = (0, rename_all_nested_keys_1.renameKeysFromSDKRequestToRESTRequest)({
710
- notificationConfig: { ...notificationConfig, id: _id },
711
- });
712
- const reqOpts = ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(payload);
713
- sideEffects?.onSiteCall?.();
714
- try {
715
- const result = await httpClient.request(reqOpts);
716
- sideEffects?.onSuccess?.(result);
717
- return (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)(result.data);
718
- }
719
- catch (err) {
720
- const transformedError = (0, transform_error_1.transformError)(err, {
721
- spreadPathsToArguments: { notificationConfig: '$[1]' },
722
- explicitPathsToArguments: { 'notificationConfig.id': '$[0]' },
723
- singleArgumentUnchanged: false,
724
- }, ['_id', 'notificationConfig']);
725
- sideEffects?.onError?.(err);
726
- throw transformedError;
727
- }
728
- }
729
- exports.upsertNotificationConfig = upsertNotificationConfig;
730
- //# sourceMappingURL=events-notifications-v2-notification-config-notifications.universal.js.map