@wix/auto_sdk_events_forms 1.0.30 → 1.0.32

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 (121) hide show
  1. package/build/{internal/cjs/src/events-v1-form-forms.universal.d.ts → cjs/events-v1-form-forms.universal-Dmp4nCQH.d.ts} +294 -499
  2. package/build/cjs/index.d.ts +84 -1
  3. package/build/cjs/index.js +1509 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/meta.d.ts +652 -1
  6. package/build/cjs/meta.js +797 -15
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/{cjs/src/events-v1-form-forms.universal.d.ts → es/events-v1-form-forms.universal-Dmp4nCQH.d.mts} +294 -499
  9. package/build/es/index.d.mts +84 -0
  10. package/build/es/index.mjs +1435 -0
  11. package/build/es/index.mjs.map +1 -0
  12. package/build/es/meta.d.mts +652 -0
  13. package/build/es/meta.mjs +767 -0
  14. package/build/es/meta.mjs.map +1 -0
  15. package/build/internal/{es/src/events-v1-form-forms.universal.d.ts → cjs/events-v1-form-forms.universal-Dmp4nCQH.d.ts} +294 -499
  16. package/build/internal/cjs/index.d.ts +84 -1
  17. package/build/internal/cjs/index.js +1509 -15
  18. package/build/internal/cjs/index.js.map +1 -1
  19. package/build/internal/cjs/meta.d.ts +652 -1
  20. package/build/internal/cjs/meta.js +797 -15
  21. package/build/internal/cjs/meta.js.map +1 -1
  22. package/build/{es/src/events-v1-form-forms.universal.d.ts → internal/es/events-v1-form-forms.universal-Dmp4nCQH.d.mts} +294 -499
  23. package/build/internal/es/index.d.mts +84 -0
  24. package/build/internal/es/index.mjs +1435 -0
  25. package/build/internal/es/index.mjs.map +1 -0
  26. package/build/internal/es/meta.d.mts +652 -0
  27. package/build/internal/es/meta.mjs +767 -0
  28. package/build/internal/es/meta.mjs.map +1 -0
  29. package/package.json +9 -8
  30. package/build/cjs/index.typings.d.ts +0 -1
  31. package/build/cjs/index.typings.js +0 -18
  32. package/build/cjs/index.typings.js.map +0 -1
  33. package/build/cjs/src/events-v1-form-forms.context.d.ts +0 -17
  34. package/build/cjs/src/events-v1-form-forms.context.js +0 -67
  35. package/build/cjs/src/events-v1-form-forms.context.js.map +0 -1
  36. package/build/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  37. package/build/cjs/src/events-v1-form-forms.http.js +0 -653
  38. package/build/cjs/src/events-v1-form-forms.http.js.map +0 -1
  39. package/build/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  40. package/build/cjs/src/events-v1-form-forms.meta.js +0 -161
  41. package/build/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  42. package/build/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  43. package/build/cjs/src/events-v1-form-forms.public.js +0 -202
  44. package/build/cjs/src/events-v1-form-forms.public.js.map +0 -1
  45. package/build/cjs/src/events-v1-form-forms.types.d.ts +0 -3075
  46. package/build/cjs/src/events-v1-form-forms.types.js +0 -488
  47. package/build/cjs/src/events-v1-form-forms.types.js.map +0 -1
  48. package/build/cjs/src/events-v1-form-forms.universal.js +0 -871
  49. package/build/cjs/src/events-v1-form-forms.universal.js.map +0 -1
  50. package/build/es/index.d.ts +0 -1
  51. package/build/es/index.js +0 -2
  52. package/build/es/index.js.map +0 -1
  53. package/build/es/index.typings.d.ts +0 -1
  54. package/build/es/index.typings.js +0 -2
  55. package/build/es/index.typings.js.map +0 -1
  56. package/build/es/meta.d.ts +0 -1
  57. package/build/es/meta.js +0 -2
  58. package/build/es/meta.js.map +0 -1
  59. package/build/es/src/events-v1-form-forms.context.d.ts +0 -17
  60. package/build/es/src/events-v1-form-forms.context.js +0 -17
  61. package/build/es/src/events-v1-form-forms.context.js.map +0 -1
  62. package/build/es/src/events-v1-form-forms.http.d.ts +0 -22
  63. package/build/es/src/events-v1-form-forms.http.js +0 -643
  64. package/build/es/src/events-v1-form-forms.http.js.map +0 -1
  65. package/build/es/src/events-v1-form-forms.meta.d.ts +0 -35
  66. package/build/es/src/events-v1-form-forms.meta.js +0 -128
  67. package/build/es/src/events-v1-form-forms.meta.js.map +0 -1
  68. package/build/es/src/events-v1-form-forms.public.d.ts +0 -72
  69. package/build/es/src/events-v1-form-forms.public.js +0 -145
  70. package/build/es/src/events-v1-form-forms.public.js.map +0 -1
  71. package/build/es/src/events-v1-form-forms.types.d.ts +0 -3075
  72. package/build/es/src/events-v1-form-forms.types.js +0 -485
  73. package/build/es/src/events-v1-form-forms.types.js.map +0 -1
  74. package/build/es/src/events-v1-form-forms.universal.js +0 -837
  75. package/build/es/src/events-v1-form-forms.universal.js.map +0 -1
  76. package/build/internal/cjs/index.typings.d.ts +0 -1
  77. package/build/internal/cjs/index.typings.js +0 -18
  78. package/build/internal/cjs/index.typings.js.map +0 -1
  79. package/build/internal/cjs/src/events-v1-form-forms.context.d.ts +0 -17
  80. package/build/internal/cjs/src/events-v1-form-forms.context.js +0 -67
  81. package/build/internal/cjs/src/events-v1-form-forms.context.js.map +0 -1
  82. package/build/internal/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  83. package/build/internal/cjs/src/events-v1-form-forms.http.js +0 -653
  84. package/build/internal/cjs/src/events-v1-form-forms.http.js.map +0 -1
  85. package/build/internal/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  86. package/build/internal/cjs/src/events-v1-form-forms.meta.js +0 -161
  87. package/build/internal/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  88. package/build/internal/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  89. package/build/internal/cjs/src/events-v1-form-forms.public.js +0 -202
  90. package/build/internal/cjs/src/events-v1-form-forms.public.js.map +0 -1
  91. package/build/internal/cjs/src/events-v1-form-forms.types.d.ts +0 -3075
  92. package/build/internal/cjs/src/events-v1-form-forms.types.js +0 -488
  93. package/build/internal/cjs/src/events-v1-form-forms.types.js.map +0 -1
  94. package/build/internal/cjs/src/events-v1-form-forms.universal.js +0 -871
  95. package/build/internal/cjs/src/events-v1-form-forms.universal.js.map +0 -1
  96. package/build/internal/es/index.d.ts +0 -1
  97. package/build/internal/es/index.js +0 -2
  98. package/build/internal/es/index.js.map +0 -1
  99. package/build/internal/es/index.typings.d.ts +0 -1
  100. package/build/internal/es/index.typings.js +0 -2
  101. package/build/internal/es/index.typings.js.map +0 -1
  102. package/build/internal/es/meta.d.ts +0 -1
  103. package/build/internal/es/meta.js +0 -2
  104. package/build/internal/es/meta.js.map +0 -1
  105. package/build/internal/es/src/events-v1-form-forms.context.d.ts +0 -17
  106. package/build/internal/es/src/events-v1-form-forms.context.js +0 -17
  107. package/build/internal/es/src/events-v1-form-forms.context.js.map +0 -1
  108. package/build/internal/es/src/events-v1-form-forms.http.d.ts +0 -22
  109. package/build/internal/es/src/events-v1-form-forms.http.js +0 -643
  110. package/build/internal/es/src/events-v1-form-forms.http.js.map +0 -1
  111. package/build/internal/es/src/events-v1-form-forms.meta.d.ts +0 -35
  112. package/build/internal/es/src/events-v1-form-forms.meta.js +0 -128
  113. package/build/internal/es/src/events-v1-form-forms.meta.js.map +0 -1
  114. package/build/internal/es/src/events-v1-form-forms.public.d.ts +0 -72
  115. package/build/internal/es/src/events-v1-form-forms.public.js +0 -145
  116. package/build/internal/es/src/events-v1-form-forms.public.js.map +0 -1
  117. package/build/internal/es/src/events-v1-form-forms.types.d.ts +0 -3075
  118. package/build/internal/es/src/events-v1-form-forms.types.js +0 -485
  119. package/build/internal/es/src/events-v1-form-forms.types.js.map +0 -1
  120. package/build/internal/es/src/events-v1-form-forms.universal.js +0 -837
  121. package/build/internal/es/src/events-v1-form-forms.universal.js.map +0 -1
@@ -1,837 +0,0 @@
1
- import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
- import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
3
- import * as ambassadorWixEventsV1Form from './events-v1-form-forms.http.js';
4
- export var InputControlType;
5
- (function (InputControlType) {
6
- /** Single text value field. */
7
- InputControlType["INPUT"] = "INPUT";
8
- /** Single text value field with multiple lines. */
9
- InputControlType["TEXTAREA"] = "TEXTAREA";
10
- /** Single-choice field with predefined values. */
11
- InputControlType["DROPDOWN"] = "DROPDOWN";
12
- /** Single-choice field with predefined values. */
13
- InputControlType["RADIO"] = "RADIO";
14
- /** Multiple-choice field with predefined values. */
15
- InputControlType["CHECKBOX"] = "CHECKBOX";
16
- /** Fields for entering first and last names. */
17
- InputControlType["NAME"] = "NAME";
18
- /** Fields for additional guests and their respective names. */
19
- InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
20
- /** Single-line address field. */
21
- InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
22
- /** Full address field with multiple lines. */
23
- InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
24
- /** Fields for entering year, month, and day. */
25
- InputControlType["DATE"] = "DATE";
26
- })(InputControlType || (InputControlType = {}));
27
- export var ValueType;
28
- (function (ValueType) {
29
- ValueType["TEXT"] = "TEXT";
30
- ValueType["NUMBER"] = "NUMBER";
31
- ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
32
- ValueType["DATE_TIME"] = "DATE_TIME";
33
- ValueType["ADDRESS"] = "ADDRESS";
34
- })(ValueType || (ValueType = {}));
35
- export var RequestedFields;
36
- (function (RequestedFields) {
37
- RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
38
- /** Include soft deleted input controls in the response. */
39
- RequestedFields["DELETED"] = "DELETED";
40
- })(RequestedFields || (RequestedFields = {}));
41
- export var LocationType;
42
- (function (LocationType) {
43
- LocationType["VENUE"] = "VENUE";
44
- LocationType["ONLINE"] = "ONLINE";
45
- })(LocationType || (LocationType = {}));
46
- export var SubdivisionType;
47
- (function (SubdivisionType) {
48
- SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
49
- /** State */
50
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
51
- /** County */
52
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
53
- /** City/town */
54
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
55
- /** Neighborhood/quarter */
56
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
57
- /** Street/block */
58
- SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
59
- /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
60
- SubdivisionType["COUNTRY"] = "COUNTRY";
61
- })(SubdivisionType || (SubdivisionType = {}));
62
- export var Status;
63
- (function (Status) {
64
- /** Event occurs only once. */
65
- Status["ONE_TIME"] = "ONE_TIME";
66
- /** Event is recurring. */
67
- Status["RECURRING"] = "RECURRING";
68
- /** Marks the next upcoming occurrence of the recurring event. */
69
- Status["RECURRING_NEXT"] = "RECURRING_NEXT";
70
- /** Marks the most recent ended occurrence of the recurring event. */
71
- Status["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
72
- /** Marks the most recent canceled occurrence of the recurring event. */
73
- Status["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
74
- })(Status || (Status = {}));
75
- export var EventStatus;
76
- (function (EventStatus) {
77
- /** Event is public and scheduled to start */
78
- EventStatus["SCHEDULED"] = "SCHEDULED";
79
- /** Event has started */
80
- EventStatus["STARTED"] = "STARTED";
81
- /** Event has ended */
82
- EventStatus["ENDED"] = "ENDED";
83
- /** Event was canceled */
84
- EventStatus["CANCELED"] = "CANCELED";
85
- })(EventStatus || (EventStatus = {}));
86
- export var EventType;
87
- (function (EventType) {
88
- /** Type not available for this request fieldset */
89
- EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
90
- /** Registration via RSVP */
91
- EventType["RSVP"] = "RSVP";
92
- /** Registration via ticket purchase */
93
- EventType["TICKETS"] = "TICKETS";
94
- /** External registration */
95
- EventType["EXTERNAL"] = "EXTERNAL";
96
- /** Registration not available */
97
- EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
98
- })(EventType || (EventType = {}));
99
- export var RegistrationStatus;
100
- (function (RegistrationStatus) {
101
- /** Registration status is not applicable */
102
- RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
103
- /** Registration to event is closed */
104
- RegistrationStatus["CLOSED"] = "CLOSED";
105
- /** Registration to event is closed manually */
106
- RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
107
- /** Registration is open via RSVP */
108
- RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
109
- /** Registration to event waitlist is open via RSVP */
110
- RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
111
- /** Registration is open via ticket purchase */
112
- RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
113
- /** Registration is open via external URL */
114
- RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
115
- /** Registration will be open via RSVP */
116
- RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
117
- })(RegistrationStatus || (RegistrationStatus = {}));
118
- export var RsvpStatusOptions;
119
- (function (RsvpStatusOptions) {
120
- /** Only YES RSVP status is available for RSVP registration */
121
- RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
122
- /** YES and NO RSVP status options are available for the registration */
123
- RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
124
- })(RsvpStatusOptions || (RsvpStatusOptions = {}));
125
- export var TaxType;
126
- (function (TaxType) {
127
- /** Tax is included in the ticket price. */
128
- TaxType["INCLUDED"] = "INCLUDED";
129
- /** Tax is added to the order at the checkout. */
130
- TaxType["ADDED"] = "ADDED";
131
- /** Tax is added to the final total at the checkout. */
132
- TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
133
- })(TaxType || (TaxType = {}));
134
- export var VisitorType;
135
- (function (VisitorType) {
136
- /** Site visitor (including member) */
137
- VisitorType["VISITOR"] = "VISITOR";
138
- /** Site member */
139
- VisitorType["MEMBER"] = "MEMBER";
140
- /** Site visitor or member */
141
- VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
142
- })(VisitorType || (VisitorType = {}));
143
- export var ConferenceType;
144
- (function (ConferenceType) {
145
- /** Everyone in the meeting can publish and subscribe video and audio. */
146
- ConferenceType["MEETING"] = "MEETING";
147
- /** Guests can only subscribe to video and audio. */
148
- ConferenceType["WEBINAR"] = "WEBINAR";
149
- })(ConferenceType || (ConferenceType = {}));
150
- export var State;
151
- (function (State) {
152
- /** Created manually by the user. */
153
- State["MANUAL"] = "MANUAL";
154
- /** Created automatically. */
155
- State["AUTO"] = "AUTO";
156
- /** Created when publishing recurring events. */
157
- State["RECURRING_EVENT"] = "RECURRING_EVENT";
158
- /** Category is hidden. */
159
- State["HIDDEN"] = "HIDDEN";
160
- })(State || (State = {}));
161
- export var NodeType;
162
- (function (NodeType) {
163
- NodeType["PARAGRAPH"] = "PARAGRAPH";
164
- NodeType["TEXT"] = "TEXT";
165
- NodeType["HEADING"] = "HEADING";
166
- NodeType["BULLETED_LIST"] = "BULLETED_LIST";
167
- NodeType["ORDERED_LIST"] = "ORDERED_LIST";
168
- NodeType["LIST_ITEM"] = "LIST_ITEM";
169
- NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
170
- NodeType["CODE_BLOCK"] = "CODE_BLOCK";
171
- NodeType["VIDEO"] = "VIDEO";
172
- NodeType["DIVIDER"] = "DIVIDER";
173
- NodeType["FILE"] = "FILE";
174
- NodeType["GALLERY"] = "GALLERY";
175
- NodeType["GIF"] = "GIF";
176
- NodeType["HTML"] = "HTML";
177
- NodeType["IMAGE"] = "IMAGE";
178
- NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
179
- /** @deprecated */
180
- NodeType["MAP"] = "MAP";
181
- NodeType["POLL"] = "POLL";
182
- NodeType["APP_EMBED"] = "APP_EMBED";
183
- NodeType["BUTTON"] = "BUTTON";
184
- NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
185
- NodeType["TABLE"] = "TABLE";
186
- NodeType["EMBED"] = "EMBED";
187
- NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
188
- NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
189
- NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
190
- NodeType["TABLE_CELL"] = "TABLE_CELL";
191
- NodeType["TABLE_ROW"] = "TABLE_ROW";
192
- NodeType["EXTERNAL"] = "EXTERNAL";
193
- NodeType["AUDIO"] = "AUDIO";
194
- NodeType["CAPTION"] = "CAPTION";
195
- NodeType["LAYOUT"] = "LAYOUT";
196
- NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
197
- })(NodeType || (NodeType = {}));
198
- export var WidthType;
199
- (function (WidthType) {
200
- /** Width matches the content width */
201
- WidthType["CONTENT"] = "CONTENT";
202
- /** Small Width */
203
- WidthType["SMALL"] = "SMALL";
204
- /** Width will match the original asset width */
205
- WidthType["ORIGINAL"] = "ORIGINAL";
206
- /** coast-to-coast display */
207
- WidthType["FULL_WIDTH"] = "FULL_WIDTH";
208
- })(WidthType || (WidthType = {}));
209
- export var PluginContainerDataAlignment;
210
- (function (PluginContainerDataAlignment) {
211
- /** Center Alignment */
212
- PluginContainerDataAlignment["CENTER"] = "CENTER";
213
- /** Left Alignment */
214
- PluginContainerDataAlignment["LEFT"] = "LEFT";
215
- /** Right Alignment */
216
- PluginContainerDataAlignment["RIGHT"] = "RIGHT";
217
- })(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
218
- export var ButtonDataType;
219
- (function (ButtonDataType) {
220
- /** Regular link button */
221
- ButtonDataType["LINK"] = "LINK";
222
- /** Triggers custom action that is defined in plugin configuration by the consumer */
223
- ButtonDataType["ACTION"] = "ACTION";
224
- })(ButtonDataType || (ButtonDataType = {}));
225
- export var Target;
226
- (function (Target) {
227
- /** Opens the linked document in the same frame as it was clicked (this is default) */
228
- Target["SELF"] = "SELF";
229
- /** Opens the linked document in a new window or tab */
230
- Target["BLANK"] = "BLANK";
231
- /** Opens the linked document in the parent frame */
232
- Target["PARENT"] = "PARENT";
233
- /** Opens the linked document in the full body of the window */
234
- Target["TOP"] = "TOP";
235
- })(Target || (Target = {}));
236
- export var TextAlignment;
237
- (function (TextAlignment) {
238
- /** browser default, eqivalent to `initial` */
239
- TextAlignment["AUTO"] = "AUTO";
240
- /** Left align */
241
- TextAlignment["LEFT"] = "LEFT";
242
- /** Right align */
243
- TextAlignment["RIGHT"] = "RIGHT";
244
- /** Center align */
245
- TextAlignment["CENTER"] = "CENTER";
246
- /** 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 */
247
- TextAlignment["JUSTIFY"] = "JUSTIFY";
248
- })(TextAlignment || (TextAlignment = {}));
249
- export var LineStyle;
250
- (function (LineStyle) {
251
- /** Single Line */
252
- LineStyle["SINGLE"] = "SINGLE";
253
- /** Double Line */
254
- LineStyle["DOUBLE"] = "DOUBLE";
255
- /** Dashed Line */
256
- LineStyle["DASHED"] = "DASHED";
257
- /** Dotted Line */
258
- LineStyle["DOTTED"] = "DOTTED";
259
- })(LineStyle || (LineStyle = {}));
260
- export var Width;
261
- (function (Width) {
262
- /** Large line */
263
- Width["LARGE"] = "LARGE";
264
- /** Medium line */
265
- Width["MEDIUM"] = "MEDIUM";
266
- /** Small line */
267
- Width["SMALL"] = "SMALL";
268
- })(Width || (Width = {}));
269
- export var Alignment;
270
- (function (Alignment) {
271
- /** Center alignment */
272
- Alignment["CENTER"] = "CENTER";
273
- /** Left alignment */
274
- Alignment["LEFT"] = "LEFT";
275
- /** Right alignment */
276
- Alignment["RIGHT"] = "RIGHT";
277
- })(Alignment || (Alignment = {}));
278
- export var ViewMode;
279
- (function (ViewMode) {
280
- /** No PDF view */
281
- ViewMode["NONE"] = "NONE";
282
- /** Full PDF view */
283
- ViewMode["FULL"] = "FULL";
284
- /** Mini PDF view */
285
- ViewMode["MINI"] = "MINI";
286
- })(ViewMode || (ViewMode = {}));
287
- export var LayoutType;
288
- (function (LayoutType) {
289
- /** Collage type */
290
- LayoutType["COLLAGE"] = "COLLAGE";
291
- /** Masonry type */
292
- LayoutType["MASONRY"] = "MASONRY";
293
- /** Grid type */
294
- LayoutType["GRID"] = "GRID";
295
- /** Thumbnail type */
296
- LayoutType["THUMBNAIL"] = "THUMBNAIL";
297
- /** Slider type */
298
- LayoutType["SLIDER"] = "SLIDER";
299
- /** Slideshow type */
300
- LayoutType["SLIDESHOW"] = "SLIDESHOW";
301
- /** Panorama type */
302
- LayoutType["PANORAMA"] = "PANORAMA";
303
- /** Column type */
304
- LayoutType["COLUMN"] = "COLUMN";
305
- /** Magic type */
306
- LayoutType["MAGIC"] = "MAGIC";
307
- /** Fullsize images type */
308
- LayoutType["FULLSIZE"] = "FULLSIZE";
309
- })(LayoutType || (LayoutType = {}));
310
- export var Orientation;
311
- (function (Orientation) {
312
- /** Rows Orientation */
313
- Orientation["ROWS"] = "ROWS";
314
- /** Columns Orientation */
315
- Orientation["COLUMNS"] = "COLUMNS";
316
- })(Orientation || (Orientation = {}));
317
- export var Crop;
318
- (function (Crop) {
319
- /** Crop to fill */
320
- Crop["FILL"] = "FILL";
321
- /** Crop to fit */
322
- Crop["FIT"] = "FIT";
323
- })(Crop || (Crop = {}));
324
- export var ThumbnailsAlignment;
325
- (function (ThumbnailsAlignment) {
326
- /** Top alignment */
327
- ThumbnailsAlignment["TOP"] = "TOP";
328
- /** Right alignment */
329
- ThumbnailsAlignment["RIGHT"] = "RIGHT";
330
- /** Bottom alignment */
331
- ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
332
- /** Left alignment */
333
- ThumbnailsAlignment["LEFT"] = "LEFT";
334
- /** No thumbnail */
335
- ThumbnailsAlignment["NONE"] = "NONE";
336
- })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
337
- export var GIFType;
338
- (function (GIFType) {
339
- GIFType["NORMAL"] = "NORMAL";
340
- GIFType["STICKER"] = "STICKER";
341
- })(GIFType || (GIFType = {}));
342
- export var Source;
343
- (function (Source) {
344
- Source["HTML"] = "HTML";
345
- Source["ADSENSE"] = "ADSENSE";
346
- })(Source || (Source = {}));
347
- export var Position;
348
- (function (Position) {
349
- /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
350
- Position["START"] = "START";
351
- /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
352
- Position["END"] = "END";
353
- /** Thumbnail positioned at the top */
354
- Position["TOP"] = "TOP";
355
- /** Thumbnail hidden and not displayed */
356
- Position["HIDDEN"] = "HIDDEN";
357
- })(Position || (Position = {}));
358
- export var MapType;
359
- (function (MapType) {
360
- /** Roadmap map type */
361
- MapType["ROADMAP"] = "ROADMAP";
362
- /** Satellite map type */
363
- MapType["SATELITE"] = "SATELITE";
364
- /** Hybrid map type */
365
- MapType["HYBRID"] = "HYBRID";
366
- /** Terrain map type */
367
- MapType["TERRAIN"] = "TERRAIN";
368
- })(MapType || (MapType = {}));
369
- export var ViewRole;
370
- (function (ViewRole) {
371
- /** Only Poll creator can view the results */
372
- ViewRole["CREATOR"] = "CREATOR";
373
- /** Anyone who voted can see the results */
374
- ViewRole["VOTERS"] = "VOTERS";
375
- /** Anyone can see the results, even if one didn't vote */
376
- ViewRole["EVERYONE"] = "EVERYONE";
377
- })(ViewRole || (ViewRole = {}));
378
- export var VoteRole;
379
- (function (VoteRole) {
380
- /** Logged in member */
381
- VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
382
- /** Anyone */
383
- VoteRole["ALL"] = "ALL";
384
- })(VoteRole || (VoteRole = {}));
385
- export var PollLayoutType;
386
- (function (PollLayoutType) {
387
- /** List */
388
- PollLayoutType["LIST"] = "LIST";
389
- /** Grid */
390
- PollLayoutType["GRID"] = "GRID";
391
- })(PollLayoutType || (PollLayoutType = {}));
392
- export var PollLayoutDirection;
393
- (function (PollLayoutDirection) {
394
- /** Left-to-right */
395
- PollLayoutDirection["LTR"] = "LTR";
396
- /** Right-to-left */
397
- PollLayoutDirection["RTL"] = "RTL";
398
- })(PollLayoutDirection || (PollLayoutDirection = {}));
399
- export var BackgroundType;
400
- (function (BackgroundType) {
401
- /** Color background type */
402
- BackgroundType["COLOR"] = "COLOR";
403
- /** Image background type */
404
- BackgroundType["IMAGE"] = "IMAGE";
405
- /** Gradiant background type */
406
- BackgroundType["GRADIENT"] = "GRADIENT";
407
- })(BackgroundType || (BackgroundType = {}));
408
- export var DecorationType;
409
- (function (DecorationType) {
410
- DecorationType["BOLD"] = "BOLD";
411
- DecorationType["ITALIC"] = "ITALIC";
412
- DecorationType["UNDERLINE"] = "UNDERLINE";
413
- DecorationType["SPOILER"] = "SPOILER";
414
- DecorationType["ANCHOR"] = "ANCHOR";
415
- DecorationType["MENTION"] = "MENTION";
416
- DecorationType["LINK"] = "LINK";
417
- DecorationType["COLOR"] = "COLOR";
418
- DecorationType["FONT_SIZE"] = "FONT_SIZE";
419
- DecorationType["EXTERNAL"] = "EXTERNAL";
420
- DecorationType["STRIKETHROUGH"] = "STRIKETHROUGH";
421
- })(DecorationType || (DecorationType = {}));
422
- export var FontType;
423
- (function (FontType) {
424
- FontType["PX"] = "PX";
425
- FontType["EM"] = "EM";
426
- })(FontType || (FontType = {}));
427
- export var AppType;
428
- (function (AppType) {
429
- AppType["PRODUCT"] = "PRODUCT";
430
- AppType["EVENT"] = "EVENT";
431
- AppType["BOOKING"] = "BOOKING";
432
- })(AppType || (AppType = {}));
433
- export var InitialExpandedItems;
434
- (function (InitialExpandedItems) {
435
- /** First item will be expended initally */
436
- InitialExpandedItems["FIRST"] = "FIRST";
437
- /** All items will expended initally */
438
- InitialExpandedItems["ALL"] = "ALL";
439
- /** All items collapsed initally */
440
- InitialExpandedItems["NONE"] = "NONE";
441
- })(InitialExpandedItems || (InitialExpandedItems = {}));
442
- export var Direction;
443
- (function (Direction) {
444
- /** Left-to-right */
445
- Direction["LTR"] = "LTR";
446
- /** Right-to-left */
447
- Direction["RTL"] = "RTL";
448
- })(Direction || (Direction = {}));
449
- export var VerticalAlignment;
450
- (function (VerticalAlignment) {
451
- /** Top alignment */
452
- VerticalAlignment["TOP"] = "TOP";
453
- /** Middle alignment */
454
- VerticalAlignment["MIDDLE"] = "MIDDLE";
455
- /** Bottom alignment */
456
- VerticalAlignment["BOTTOM"] = "BOTTOM";
457
- })(VerticalAlignment || (VerticalAlignment = {}));
458
- /**
459
- * `NullValue` is a singleton enumeration to represent the null value for the
460
- * `Value` type union.
461
- *
462
- * The JSON representation for `NullValue` is JSON `null`.
463
- */
464
- export var NullValue;
465
- (function (NullValue) {
466
- /** Null value. */
467
- NullValue["NULL_VALUE"] = "NULL_VALUE";
468
- })(NullValue || (NullValue = {}));
469
- export var Type;
470
- (function (Type) {
471
- /** Unknown badge type. */
472
- Type["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
473
- /** 1st priority badge type. */
474
- Type["FIRST_PRIORITY"] = "FIRST_PRIORITY";
475
- /** 2nd priority badge type. */
476
- Type["SECOND_PRIORITY"] = "SECOND_PRIORITY";
477
- /** 3rd priority badge type. */
478
- Type["THIRD_PRIORITY"] = "THIRD_PRIORITY";
479
- })(Type || (Type = {}));
480
- export var WebhookIdentityType;
481
- (function (WebhookIdentityType) {
482
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
483
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
484
- WebhookIdentityType["MEMBER"] = "MEMBER";
485
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
486
- WebhookIdentityType["APP"] = "APP";
487
- })(WebhookIdentityType || (WebhookIdentityType = {}));
488
- /**
489
- * Retrieves an event registration form.
490
- *
491
- * Retrieves both the draft and published versions.
492
- * @param eventId - Event ID to which the form belongs.
493
- * @public
494
- * @requiredField eventId
495
- * @param options - Optional fields.
496
- * @permissionId WIX_EVENTS.READ_EVENTS
497
- * @permissionScope Manage Stores
498
- * @permissionScopeId SCOPE.STORES.MANAGE-STORES
499
- * @permissionScope Read Events - all read permissions
500
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
501
- * @permissionScope Manage Bookings Services and Settings
502
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
503
- * @permissionScope Manage Events - all permissions
504
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
505
- * @permissionScope Manage Events
506
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
507
- * @permissionScope Read Events
508
- * @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS
509
- * @permissionScope Manage Challenges
510
- * @permissionScopeId SCOPE.CHALLENGES.MANAGE
511
- * @permissionScope Manage Portfolio
512
- * @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
513
- * @permissionScope Manage Blog
514
- * @permissionScopeId SCOPE.BLOG.MANAGE-BLOG
515
- * @permissionScope Access Verticals by Automations
516
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
517
- * @permissionScope Manage Restaurants - all permissions
518
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
519
- * @permissionScope Set Up Automations
520
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
521
- * @permissionScope Manage Guest List
522
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
523
- * @permissionScope Manage Events
524
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
525
- * @applicableIdentity APP
526
- * @applicableIdentity VISITOR
527
- * @returns Currently published event form.
528
- * Published form is visible to site visitors.
529
- * @fqn wix.events.form.FormBuilder.GetForm
530
- */
531
- export async function getForm(eventId) {
532
- // @ts-ignore
533
- const { httpClient, sideEffects } = arguments[1];
534
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
535
- const reqOpts = ambassadorWixEventsV1Form.getForm(payload);
536
- sideEffects?.onSiteCall?.();
537
- try {
538
- const result = await httpClient.request(reqOpts);
539
- sideEffects?.onSuccess?.(result);
540
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.form;
541
- }
542
- catch (err) {
543
- const transformedError = sdkTransformError(err, {
544
- spreadPathsToArguments: {},
545
- explicitPathsToArguments: { eventId: '$[0]' },
546
- singleArgumentUnchanged: false,
547
- }, ['eventId']);
548
- sideEffects?.onError?.(err);
549
- throw transformedError;
550
- }
551
- }
552
- /**
553
- * Adds an input control to the draft form.
554
- * @param eventId - Event ID to which the form belongs.
555
- * @public
556
- * @requiredField eventId
557
- * @requiredField options
558
- * @requiredField options.control
559
- * @param options - Optional fields.
560
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
561
- * @permissionScope Manage Events - all permissions
562
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
563
- * @permissionScope Manage Events
564
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
565
- * @permissionScope Manage Events
566
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
567
- * @applicableIdentity APP
568
- * @fqn wix.events.form.FormBuilder.AddControl
569
- */
570
- export async function addControl(eventId, options) {
571
- // @ts-ignore
572
- const { httpClient, sideEffects } = arguments[2];
573
- const payload = renameKeysFromSDKRequestToRESTRequest({
574
- eventId: eventId,
575
- phone: options?.phone,
576
- address: options?.address,
577
- date: options?.date,
578
- additionalGuests: options?.additionalGuests,
579
- dropdown: options?.dropdown,
580
- checkbox: options?.checkbox,
581
- text: options?.text,
582
- radioButton: options?.radioButton,
583
- });
584
- const reqOpts = ambassadorWixEventsV1Form.addControl(payload);
585
- sideEffects?.onSiteCall?.();
586
- try {
587
- const result = await httpClient.request(reqOpts);
588
- sideEffects?.onSuccess?.(result);
589
- return renameKeysFromRESTResponseToSDKResponse(result.data);
590
- }
591
- catch (err) {
592
- const transformedError = sdkTransformError(err, {
593
- spreadPathsToArguments: {},
594
- explicitPathsToArguments: {
595
- eventId: '$[0]',
596
- phone: '$[1].phone',
597
- address: '$[1].address',
598
- date: '$[1].date',
599
- additionalGuests: '$[1].additionalGuests',
600
- dropdown: '$[1].dropdown',
601
- checkbox: '$[1].checkbox',
602
- text: '$[1].text',
603
- radioButton: '$[1].radioButton',
604
- },
605
- singleArgumentUnchanged: false,
606
- }, ['eventId', 'options']);
607
- sideEffects?.onError?.(err);
608
- throw transformedError;
609
- }
610
- }
611
- /**
612
- * Updates an existing input control in the draft form.
613
- * @public
614
- * @requiredField identifiers
615
- * @requiredField identifiers._id
616
- * @requiredField identifiers.eventId
617
- * @requiredField options.control
618
- * @param options - Optional fields.
619
- * @param identifiers - Identifies what form to update.
620
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
621
- * @permissionScope Manage Events - all permissions
622
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
623
- * @permissionScope Manage Events
624
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
625
- * @permissionScope Manage Events
626
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
627
- * @applicableIdentity APP
628
- * @fqn wix.events.form.FormBuilder.UpdateControl
629
- */
630
- export async function updateControl(identifiers, options) {
631
- // @ts-ignore
632
- const { httpClient, sideEffects } = arguments[2];
633
- const payload = renameKeysFromSDKRequestToRESTRequest({
634
- eventId: identifiers?.eventId,
635
- id: identifiers?._id,
636
- orderIndex: options?.orderIndex,
637
- phone: options?.phone,
638
- address: options?.address,
639
- date: options?.date,
640
- additionalGuests: options?.additionalGuests,
641
- dropdown: options?.dropdown,
642
- checkbox: options?.checkbox,
643
- text: options?.text,
644
- name: options?.name,
645
- email: options?.email,
646
- radioButton: options?.radioButton,
647
- });
648
- const reqOpts = ambassadorWixEventsV1Form.updateControl(payload);
649
- sideEffects?.onSiteCall?.();
650
- try {
651
- const result = await httpClient.request(reqOpts);
652
- sideEffects?.onSuccess?.(result);
653
- return renameKeysFromRESTResponseToSDKResponse(result.data);
654
- }
655
- catch (err) {
656
- const transformedError = sdkTransformError(err, {
657
- spreadPathsToArguments: {},
658
- explicitPathsToArguments: {
659
- eventId: '$[0].eventId',
660
- id: '$[0]._id',
661
- orderIndex: '$[1].orderIndex',
662
- phone: '$[1].phone',
663
- address: '$[1].address',
664
- date: '$[1].date',
665
- additionalGuests: '$[1].additionalGuests',
666
- dropdown: '$[1].dropdown',
667
- checkbox: '$[1].checkbox',
668
- text: '$[1].text',
669
- name: '$[1].name',
670
- email: '$[1].email',
671
- radioButton: '$[1].radioButton',
672
- },
673
- singleArgumentUnchanged: false,
674
- }, ['identifiers', 'options']);
675
- sideEffects?.onError?.(err);
676
- throw transformedError;
677
- }
678
- }
679
- /**
680
- * Deletes an input control from the draft form.
681
- * @public
682
- * @requiredField identifiers
683
- * @requiredField identifiers._id
684
- * @requiredField identifiers.eventId
685
- * @param identifiers - Identifies what form to delete.
686
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
687
- * @permissionScope Manage Events - all permissions
688
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
689
- * @permissionScope Manage Events
690
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
691
- * @permissionScope Manage Events
692
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
693
- * @applicableIdentity APP
694
- * @fqn wix.events.form.FormBuilder.DeleteControl
695
- */
696
- export async function deleteControl(identifiers) {
697
- // @ts-ignore
698
- const { httpClient, sideEffects } = arguments[1];
699
- const payload = renameKeysFromSDKRequestToRESTRequest({
700
- eventId: identifiers?.eventId,
701
- id: identifiers?._id,
702
- });
703
- const reqOpts = ambassadorWixEventsV1Form.deleteControl(payload);
704
- sideEffects?.onSiteCall?.();
705
- try {
706
- const result = await httpClient.request(reqOpts);
707
- sideEffects?.onSuccess?.(result);
708
- return renameKeysFromRESTResponseToSDKResponse(result.data);
709
- }
710
- catch (err) {
711
- const transformedError = sdkTransformError(err, {
712
- spreadPathsToArguments: {},
713
- explicitPathsToArguments: { eventId: '$[0].eventId', id: '$[0]._id' },
714
- singleArgumentUnchanged: false,
715
- }, ['identifiers']);
716
- sideEffects?.onError?.(err);
717
- throw transformedError;
718
- }
719
- }
720
- /**
721
- * Updates a set of defined form messages that are displayed to a site visitor before, during, and after the registration flow.
722
- * Includes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
723
- * @param eventId - Event ID to which the form belongs.
724
- * @public
725
- * @requiredField eventId
726
- * @param options - Optional fields.
727
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
728
- * @permissionScope Manage Events - all permissions
729
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
730
- * @permissionScope Manage Events
731
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
732
- * @permissionScope Manage Events
733
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
734
- * @applicableIdentity APP
735
- * @fqn wix.events.form.FormBuilder.UpdateMessages
736
- */
737
- export async function updateMessages(eventId, options) {
738
- // @ts-ignore
739
- const { httpClient, sideEffects } = arguments[2];
740
- const payload = renameKeysFromSDKRequestToRESTRequest({
741
- eventId: eventId,
742
- fields: options?.fields,
743
- messages: options?.messages,
744
- });
745
- const reqOpts = ambassadorWixEventsV1Form.updateMessages(payload);
746
- sideEffects?.onSiteCall?.();
747
- try {
748
- const result = await httpClient.request(reqOpts);
749
- sideEffects?.onSuccess?.(result);
750
- return renameKeysFromRESTResponseToSDKResponse(result.data);
751
- }
752
- catch (err) {
753
- const transformedError = sdkTransformError(err, {
754
- spreadPathsToArguments: {},
755
- explicitPathsToArguments: {
756
- eventId: '$[0]',
757
- fields: '$[1].fields',
758
- messages: '$[1].messages',
759
- },
760
- singleArgumentUnchanged: false,
761
- }, ['eventId', 'options']);
762
- sideEffects?.onError?.(err);
763
- throw transformedError;
764
- }
765
- }
766
- /**
767
- * Publishes the draft form.
768
- * @param eventId - Event ID to which the form belongs.
769
- * @public
770
- * @requiredField eventId
771
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
772
- * @permissionScope Manage Events - all permissions
773
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
774
- * @permissionScope Manage Events
775
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
776
- * @permissionScope Manage Events
777
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
778
- * @applicableIdentity APP
779
- * @fqn wix.events.form.FormBuilder.PublishDraft
780
- */
781
- export async function publishDraft(eventId) {
782
- // @ts-ignore
783
- const { httpClient, sideEffects } = arguments[1];
784
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
785
- const reqOpts = ambassadorWixEventsV1Form.publishDraft(payload);
786
- sideEffects?.onSiteCall?.();
787
- try {
788
- const result = await httpClient.request(reqOpts);
789
- sideEffects?.onSuccess?.(result);
790
- return renameKeysFromRESTResponseToSDKResponse(result.data);
791
- }
792
- catch (err) {
793
- const transformedError = sdkTransformError(err, {
794
- spreadPathsToArguments: {},
795
- explicitPathsToArguments: { eventId: '$[0]' },
796
- singleArgumentUnchanged: false,
797
- }, ['eventId']);
798
- sideEffects?.onError?.(err);
799
- throw transformedError;
800
- }
801
- }
802
- /**
803
- * Clears all changes to the draft form.
804
- * @param eventId - Event ID to which the form belongs.
805
- * @public
806
- * @requiredField eventId
807
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
808
- * @permissionScope Manage Events - all permissions
809
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
810
- * @permissionScope Manage Events
811
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
812
- * @permissionScope Manage Events
813
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
814
- * @applicableIdentity APP
815
- * @fqn wix.events.form.FormBuilder.DiscardDraft
816
- */
817
- export async function discardDraft(eventId) {
818
- // @ts-ignore
819
- const { httpClient, sideEffects } = arguments[1];
820
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
821
- const reqOpts = ambassadorWixEventsV1Form.discardDraft(payload);
822
- sideEffects?.onSiteCall?.();
823
- try {
824
- const result = await httpClient.request(reqOpts);
825
- sideEffects?.onSuccess?.(result);
826
- }
827
- catch (err) {
828
- const transformedError = sdkTransformError(err, {
829
- spreadPathsToArguments: {},
830
- explicitPathsToArguments: { eventId: '$[0]' },
831
- singleArgumentUnchanged: false,
832
- }, ['eventId']);
833
- sideEffects?.onError?.(err);
834
- throw transformedError;
835
- }
836
- }
837
- //# sourceMappingURL=events-v1-form-forms.universal.js.map