@wix/auto_sdk_events_forms 1.0.29 → 1.0.31

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 (134) hide show
  1. package/build/{internal/cjs/src/events-v1-form-forms.universal.d.ts → events-v1-form-forms.universal-Dmp4nCQH.d.mts} +294 -495
  2. package/build/{cjs/src/events-v1-form-forms.universal.d.ts → events-v1-form-forms.universal-Dmp4nCQH.d.ts} +294 -495
  3. package/build/index.d.mts +84 -0
  4. package/build/index.d.ts +84 -0
  5. package/build/index.js +1512 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1435 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/events-v1-form-forms.universal.d.ts → events-v1-form-forms.universal-Dmp4nCQH.d.mts} +294 -495
  10. package/build/{es/src/events-v1-form-forms.universal.d.ts → internal/events-v1-form-forms.universal-Dmp4nCQH.d.ts} +294 -495
  11. package/build/internal/index.d.mts +84 -0
  12. package/build/internal/index.d.ts +84 -0
  13. package/build/internal/index.js +1512 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1435 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +652 -0
  18. package/build/internal/meta.d.ts +652 -0
  19. package/build/internal/meta.js +800 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +767 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +652 -0
  24. package/build/meta.d.ts +652 -0
  25. package/build/meta.js +800 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +767 -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-v1-form-forms.context.d.ts +0 -17
  40. package/build/cjs/src/events-v1-form-forms.context.js +0 -67
  41. package/build/cjs/src/events-v1-form-forms.context.js.map +0 -1
  42. package/build/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  43. package/build/cjs/src/events-v1-form-forms.http.js +0 -653
  44. package/build/cjs/src/events-v1-form-forms.http.js.map +0 -1
  45. package/build/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  46. package/build/cjs/src/events-v1-form-forms.meta.js +0 -161
  47. package/build/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  48. package/build/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  49. package/build/cjs/src/events-v1-form-forms.public.js +0 -202
  50. package/build/cjs/src/events-v1-form-forms.public.js.map +0 -1
  51. package/build/cjs/src/events-v1-form-forms.types.d.ts +0 -3075
  52. package/build/cjs/src/events-v1-form-forms.types.js +0 -488
  53. package/build/cjs/src/events-v1-form-forms.types.js.map +0 -1
  54. package/build/cjs/src/events-v1-form-forms.universal.js +0 -869
  55. package/build/cjs/src/events-v1-form-forms.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/package.json +0 -3
  66. package/build/es/src/events-v1-form-forms.context.d.ts +0 -17
  67. package/build/es/src/events-v1-form-forms.context.js +0 -17
  68. package/build/es/src/events-v1-form-forms.context.js.map +0 -1
  69. package/build/es/src/events-v1-form-forms.http.d.ts +0 -22
  70. package/build/es/src/events-v1-form-forms.http.js +0 -643
  71. package/build/es/src/events-v1-form-forms.http.js.map +0 -1
  72. package/build/es/src/events-v1-form-forms.meta.d.ts +0 -35
  73. package/build/es/src/events-v1-form-forms.meta.js +0 -128
  74. package/build/es/src/events-v1-form-forms.meta.js.map +0 -1
  75. package/build/es/src/events-v1-form-forms.public.d.ts +0 -72
  76. package/build/es/src/events-v1-form-forms.public.js +0 -145
  77. package/build/es/src/events-v1-form-forms.public.js.map +0 -1
  78. package/build/es/src/events-v1-form-forms.types.d.ts +0 -3075
  79. package/build/es/src/events-v1-form-forms.types.js +0 -485
  80. package/build/es/src/events-v1-form-forms.types.js.map +0 -1
  81. package/build/es/src/events-v1-form-forms.universal.js +0 -835
  82. package/build/es/src/events-v1-form-forms.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/events-v1-form-forms.context.d.ts +0 -17
  93. package/build/internal/cjs/src/events-v1-form-forms.context.js +0 -67
  94. package/build/internal/cjs/src/events-v1-form-forms.context.js.map +0 -1
  95. package/build/internal/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  96. package/build/internal/cjs/src/events-v1-form-forms.http.js +0 -653
  97. package/build/internal/cjs/src/events-v1-form-forms.http.js.map +0 -1
  98. package/build/internal/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  99. package/build/internal/cjs/src/events-v1-form-forms.meta.js +0 -161
  100. package/build/internal/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  101. package/build/internal/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  102. package/build/internal/cjs/src/events-v1-form-forms.public.js +0 -202
  103. package/build/internal/cjs/src/events-v1-form-forms.public.js.map +0 -1
  104. package/build/internal/cjs/src/events-v1-form-forms.types.d.ts +0 -3075
  105. package/build/internal/cjs/src/events-v1-form-forms.types.js +0 -488
  106. package/build/internal/cjs/src/events-v1-form-forms.types.js.map +0 -1
  107. package/build/internal/cjs/src/events-v1-form-forms.universal.js +0 -869
  108. package/build/internal/cjs/src/events-v1-form-forms.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/events-v1-form-forms.context.d.ts +0 -17
  119. package/build/internal/es/src/events-v1-form-forms.context.js +0 -17
  120. package/build/internal/es/src/events-v1-form-forms.context.js.map +0 -1
  121. package/build/internal/es/src/events-v1-form-forms.http.d.ts +0 -22
  122. package/build/internal/es/src/events-v1-form-forms.http.js +0 -643
  123. package/build/internal/es/src/events-v1-form-forms.http.js.map +0 -1
  124. package/build/internal/es/src/events-v1-form-forms.meta.d.ts +0 -35
  125. package/build/internal/es/src/events-v1-form-forms.meta.js +0 -128
  126. package/build/internal/es/src/events-v1-form-forms.meta.js.map +0 -1
  127. package/build/internal/es/src/events-v1-form-forms.public.d.ts +0 -72
  128. package/build/internal/es/src/events-v1-form-forms.public.js +0 -145
  129. package/build/internal/es/src/events-v1-form-forms.public.js.map +0 -1
  130. package/build/internal/es/src/events-v1-form-forms.types.d.ts +0 -3075
  131. package/build/internal/es/src/events-v1-form-forms.types.js +0 -485
  132. package/build/internal/es/src/events-v1-form-forms.types.js.map +0 -1
  133. package/build/internal/es/src/events-v1-form-forms.universal.js +0 -835
  134. package/build/internal/es/src/events-v1-form-forms.universal.js.map +0 -1
@@ -1,835 +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 Access Verticals by Automations
514
- * @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
515
- * @permissionScope Manage Restaurants - all permissions
516
- * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
517
- * @permissionScope Set Up Automations
518
- * @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
519
- * @permissionScope Manage Guest List
520
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
521
- * @permissionScope Manage Events
522
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
523
- * @applicableIdentity APP
524
- * @applicableIdentity VISITOR
525
- * @returns Currently published event form.
526
- * Published form is visible to site visitors.
527
- * @fqn wix.events.form.FormBuilder.GetForm
528
- */
529
- export async function getForm(eventId) {
530
- // @ts-ignore
531
- const { httpClient, sideEffects } = arguments[1];
532
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
533
- const reqOpts = ambassadorWixEventsV1Form.getForm(payload);
534
- sideEffects?.onSiteCall?.();
535
- try {
536
- const result = await httpClient.request(reqOpts);
537
- sideEffects?.onSuccess?.(result);
538
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.form;
539
- }
540
- catch (err) {
541
- const transformedError = sdkTransformError(err, {
542
- spreadPathsToArguments: {},
543
- explicitPathsToArguments: { eventId: '$[0]' },
544
- singleArgumentUnchanged: false,
545
- }, ['eventId']);
546
- sideEffects?.onError?.(err);
547
- throw transformedError;
548
- }
549
- }
550
- /**
551
- * Adds an input control to the draft form.
552
- * @param eventId - Event ID to which the form belongs.
553
- * @public
554
- * @requiredField eventId
555
- * @requiredField options
556
- * @requiredField options.control
557
- * @param options - Optional fields.
558
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
559
- * @permissionScope Manage Events - all permissions
560
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
561
- * @permissionScope Manage Events
562
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
563
- * @permissionScope Manage Events
564
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
565
- * @applicableIdentity APP
566
- * @fqn wix.events.form.FormBuilder.AddControl
567
- */
568
- export async function addControl(eventId, options) {
569
- // @ts-ignore
570
- const { httpClient, sideEffects } = arguments[2];
571
- const payload = renameKeysFromSDKRequestToRESTRequest({
572
- eventId: eventId,
573
- phone: options?.phone,
574
- address: options?.address,
575
- date: options?.date,
576
- additionalGuests: options?.additionalGuests,
577
- dropdown: options?.dropdown,
578
- checkbox: options?.checkbox,
579
- text: options?.text,
580
- radioButton: options?.radioButton,
581
- });
582
- const reqOpts = ambassadorWixEventsV1Form.addControl(payload);
583
- sideEffects?.onSiteCall?.();
584
- try {
585
- const result = await httpClient.request(reqOpts);
586
- sideEffects?.onSuccess?.(result);
587
- return renameKeysFromRESTResponseToSDKResponse(result.data);
588
- }
589
- catch (err) {
590
- const transformedError = sdkTransformError(err, {
591
- spreadPathsToArguments: {},
592
- explicitPathsToArguments: {
593
- eventId: '$[0]',
594
- phone: '$[1].phone',
595
- address: '$[1].address',
596
- date: '$[1].date',
597
- additionalGuests: '$[1].additionalGuests',
598
- dropdown: '$[1].dropdown',
599
- checkbox: '$[1].checkbox',
600
- text: '$[1].text',
601
- radioButton: '$[1].radioButton',
602
- },
603
- singleArgumentUnchanged: false,
604
- }, ['eventId', 'options']);
605
- sideEffects?.onError?.(err);
606
- throw transformedError;
607
- }
608
- }
609
- /**
610
- * Updates an existing input control in the draft form.
611
- * @public
612
- * @requiredField identifiers
613
- * @requiredField identifiers._id
614
- * @requiredField identifiers.eventId
615
- * @requiredField options.control
616
- * @param options - Optional fields.
617
- * @param identifiers - Identifies what form to update.
618
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
619
- * @permissionScope Manage Events - all permissions
620
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
621
- * @permissionScope Manage Events
622
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
623
- * @permissionScope Manage Events
624
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
625
- * @applicableIdentity APP
626
- * @fqn wix.events.form.FormBuilder.UpdateControl
627
- */
628
- export async function updateControl(identifiers, options) {
629
- // @ts-ignore
630
- const { httpClient, sideEffects } = arguments[2];
631
- const payload = renameKeysFromSDKRequestToRESTRequest({
632
- eventId: identifiers?.eventId,
633
- id: identifiers?._id,
634
- orderIndex: options?.orderIndex,
635
- phone: options?.phone,
636
- address: options?.address,
637
- date: options?.date,
638
- additionalGuests: options?.additionalGuests,
639
- dropdown: options?.dropdown,
640
- checkbox: options?.checkbox,
641
- text: options?.text,
642
- name: options?.name,
643
- email: options?.email,
644
- radioButton: options?.radioButton,
645
- });
646
- const reqOpts = ambassadorWixEventsV1Form.updateControl(payload);
647
- sideEffects?.onSiteCall?.();
648
- try {
649
- const result = await httpClient.request(reqOpts);
650
- sideEffects?.onSuccess?.(result);
651
- return renameKeysFromRESTResponseToSDKResponse(result.data);
652
- }
653
- catch (err) {
654
- const transformedError = sdkTransformError(err, {
655
- spreadPathsToArguments: {},
656
- explicitPathsToArguments: {
657
- eventId: '$[0].eventId',
658
- id: '$[0]._id',
659
- orderIndex: '$[1].orderIndex',
660
- phone: '$[1].phone',
661
- address: '$[1].address',
662
- date: '$[1].date',
663
- additionalGuests: '$[1].additionalGuests',
664
- dropdown: '$[1].dropdown',
665
- checkbox: '$[1].checkbox',
666
- text: '$[1].text',
667
- name: '$[1].name',
668
- email: '$[1].email',
669
- radioButton: '$[1].radioButton',
670
- },
671
- singleArgumentUnchanged: false,
672
- }, ['identifiers', 'options']);
673
- sideEffects?.onError?.(err);
674
- throw transformedError;
675
- }
676
- }
677
- /**
678
- * Deletes an input control from the draft form.
679
- * @public
680
- * @requiredField identifiers
681
- * @requiredField identifiers._id
682
- * @requiredField identifiers.eventId
683
- * @param identifiers - Identifies what form to delete.
684
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
685
- * @permissionScope Manage Events - all permissions
686
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
687
- * @permissionScope Manage Events
688
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
689
- * @permissionScope Manage Events
690
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
691
- * @applicableIdentity APP
692
- * @fqn wix.events.form.FormBuilder.DeleteControl
693
- */
694
- export async function deleteControl(identifiers) {
695
- // @ts-ignore
696
- const { httpClient, sideEffects } = arguments[1];
697
- const payload = renameKeysFromSDKRequestToRESTRequest({
698
- eventId: identifiers?.eventId,
699
- id: identifiers?._id,
700
- });
701
- const reqOpts = ambassadorWixEventsV1Form.deleteControl(payload);
702
- sideEffects?.onSiteCall?.();
703
- try {
704
- const result = await httpClient.request(reqOpts);
705
- sideEffects?.onSuccess?.(result);
706
- return renameKeysFromRESTResponseToSDKResponse(result.data);
707
- }
708
- catch (err) {
709
- const transformedError = sdkTransformError(err, {
710
- spreadPathsToArguments: {},
711
- explicitPathsToArguments: { eventId: '$[0].eventId', id: '$[0]._id' },
712
- singleArgumentUnchanged: false,
713
- }, ['identifiers']);
714
- sideEffects?.onError?.(err);
715
- throw transformedError;
716
- }
717
- }
718
- /**
719
- * Updates a set of defined form messages that are displayed to a site visitor before, during, and after the registration flow.
720
- * Includes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
721
- * @param eventId - Event ID to which the form belongs.
722
- * @public
723
- * @requiredField eventId
724
- * @param options - Optional fields.
725
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
726
- * @permissionScope Manage Events - all permissions
727
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
728
- * @permissionScope Manage Events
729
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
730
- * @permissionScope Manage Events
731
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
732
- * @applicableIdentity APP
733
- * @fqn wix.events.form.FormBuilder.UpdateMessages
734
- */
735
- export async function updateMessages(eventId, options) {
736
- // @ts-ignore
737
- const { httpClient, sideEffects } = arguments[2];
738
- const payload = renameKeysFromSDKRequestToRESTRequest({
739
- eventId: eventId,
740
- fields: options?.fields,
741
- messages: options?.messages,
742
- });
743
- const reqOpts = ambassadorWixEventsV1Form.updateMessages(payload);
744
- sideEffects?.onSiteCall?.();
745
- try {
746
- const result = await httpClient.request(reqOpts);
747
- sideEffects?.onSuccess?.(result);
748
- return renameKeysFromRESTResponseToSDKResponse(result.data);
749
- }
750
- catch (err) {
751
- const transformedError = sdkTransformError(err, {
752
- spreadPathsToArguments: {},
753
- explicitPathsToArguments: {
754
- eventId: '$[0]',
755
- fields: '$[1].fields',
756
- messages: '$[1].messages',
757
- },
758
- singleArgumentUnchanged: false,
759
- }, ['eventId', 'options']);
760
- sideEffects?.onError?.(err);
761
- throw transformedError;
762
- }
763
- }
764
- /**
765
- * Publishes the draft form.
766
- * @param eventId - Event ID to which the form belongs.
767
- * @public
768
- * @requiredField eventId
769
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
770
- * @permissionScope Manage Events - all permissions
771
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
772
- * @permissionScope Manage Events
773
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
774
- * @permissionScope Manage Events
775
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
776
- * @applicableIdentity APP
777
- * @fqn wix.events.form.FormBuilder.PublishDraft
778
- */
779
- export async function publishDraft(eventId) {
780
- // @ts-ignore
781
- const { httpClient, sideEffects } = arguments[1];
782
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
783
- const reqOpts = ambassadorWixEventsV1Form.publishDraft(payload);
784
- sideEffects?.onSiteCall?.();
785
- try {
786
- const result = await httpClient.request(reqOpts);
787
- sideEffects?.onSuccess?.(result);
788
- return renameKeysFromRESTResponseToSDKResponse(result.data);
789
- }
790
- catch (err) {
791
- const transformedError = sdkTransformError(err, {
792
- spreadPathsToArguments: {},
793
- explicitPathsToArguments: { eventId: '$[0]' },
794
- singleArgumentUnchanged: false,
795
- }, ['eventId']);
796
- sideEffects?.onError?.(err);
797
- throw transformedError;
798
- }
799
- }
800
- /**
801
- * Clears all changes to the draft form.
802
- * @param eventId - Event ID to which the form belongs.
803
- * @public
804
- * @requiredField eventId
805
- * @permissionId WIX_EVENTS.MANAGE_EVENTS
806
- * @permissionScope Manage Events - all permissions
807
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
808
- * @permissionScope Manage Events
809
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
810
- * @permissionScope Manage Events
811
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
812
- * @applicableIdentity APP
813
- * @fqn wix.events.form.FormBuilder.DiscardDraft
814
- */
815
- export async function discardDraft(eventId) {
816
- // @ts-ignore
817
- const { httpClient, sideEffects } = arguments[1];
818
- const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
819
- const reqOpts = ambassadorWixEventsV1Form.discardDraft(payload);
820
- sideEffects?.onSiteCall?.();
821
- try {
822
- const result = await httpClient.request(reqOpts);
823
- sideEffects?.onSuccess?.(result);
824
- }
825
- catch (err) {
826
- const transformedError = sdkTransformError(err, {
827
- spreadPathsToArguments: {},
828
- explicitPathsToArguments: { eventId: '$[0]' },
829
- singleArgumentUnchanged: false,
830
- }, ['eventId']);
831
- sideEffects?.onError?.(err);
832
- throw transformedError;
833
- }
834
- }
835
- //# sourceMappingURL=events-v1-form-forms.universal.js.map