@wix/auto_sdk_events_forms 1.0.19 → 1.0.21

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/{cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
  2. package/build/{internal/cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
  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/{es/src/events-v1-form-forms.types.d.ts → internal/events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
  10. package/build/internal/{es/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
  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 +648 -0
  18. package/build/internal/meta.d.ts +648 -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 +648 -0
  24. package/build/meta.d.ts +648 -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 +13 -12
  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.js +0 -487
  52. package/build/cjs/src/events-v1-form-forms.types.js.map +0 -1
  53. package/build/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
  54. package/build/cjs/src/events-v1-form-forms.universal.js +0 -880
  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.js +0 -484
  79. package/build/es/src/events-v1-form-forms.types.js.map +0 -1
  80. package/build/es/src/events-v1-form-forms.universal.d.ts +0 -3423
  81. package/build/es/src/events-v1-form-forms.universal.js +0 -846
  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.js +0 -487
  105. package/build/internal/cjs/src/events-v1-form-forms.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
  107. package/build/internal/cjs/src/events-v1-form-forms.universal.js +0 -880
  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.js +0 -484
  131. package/build/internal/es/src/events-v1-form-forms.types.js.map +0 -1
  132. package/build/internal/es/src/events-v1-form-forms.universal.d.ts +0 -3423
  133. package/build/internal/es/src/events-v1-form-forms.universal.js +0 -846
  134. package/build/internal/es/src/events-v1-form-forms.universal.js.map +0 -1
@@ -0,0 +1,1435 @@
1
+ // src/events-v1-form-forms.public.ts
2
+ import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
+ import { transformRESTAddressToSDKAddress } from "@wix/sdk-runtime/transformations/address";
4
+ import { transformRESTFieldMaskToSDKFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
5
+ import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
6
+ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
7
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
8
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
9
+ import { EventDefinition } from "@wix/sdk-types";
10
+
11
+ // src/events-v1-form-forms.universal.ts
12
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
13
+ import {
14
+ renameKeysFromSDKRequestToRESTRequest,
15
+ renameKeysFromRESTResponseToSDKResponse
16
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
17
+
18
+ // src/events-v1-form-forms.http.ts
19
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
20
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
21
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
22
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
23
+ function resolveWixEventsFormFormBuilderUrl(opts) {
24
+ const domainToMappings = {
25
+ "events._base_domain_": [
26
+ {
27
+ srcPath: "",
28
+ destPath: ""
29
+ },
30
+ {
31
+ srcPath: "/_api/wix-events-web",
32
+ destPath: "/api"
33
+ }
34
+ ],
35
+ "www.wixevents.com": [
36
+ {
37
+ srcPath: "/_api/wix-events-web",
38
+ destPath: "/api"
39
+ },
40
+ {
41
+ srcPath: "/api",
42
+ destPath: "/api"
43
+ },
44
+ {
45
+ srcPath: "/viewEvent",
46
+ destPath: "/viewEvent"
47
+ },
48
+ {
49
+ srcPath: "/viewRsvpDashboard",
50
+ destPath: "/viewRsvpDashboard"
51
+ },
52
+ {
53
+ srcPath: "/viewOrderDashboard",
54
+ destPath: "/viewOrderDashboard"
55
+ },
56
+ {
57
+ srcPath: "/viewSummarySubscription",
58
+ destPath: "/viewSummarySubscription"
59
+ },
60
+ {
61
+ srcPath: "/check-in",
62
+ destPath: "/check-in"
63
+ },
64
+ {
65
+ srcPath: "/v2",
66
+ destPath: "/v2"
67
+ },
68
+ {
69
+ srcPath: "/export",
70
+ destPath: "/export"
71
+ },
72
+ {
73
+ srcPath: "/tickets",
74
+ destPath: "/tickets"
75
+ },
76
+ {
77
+ srcPath: "/payment-redirect",
78
+ destPath: "/payment-redirect"
79
+ },
80
+ {
81
+ srcPath: "/admin",
82
+ destPath: "/admin"
83
+ },
84
+ {
85
+ srcPath: "/ticket",
86
+ destPath: "/ticket"
87
+ },
88
+ {
89
+ srcPath: "/media",
90
+ destPath: "/media"
91
+ }
92
+ ],
93
+ "api._api_base_domain_": [
94
+ {
95
+ srcPath: "/wix-events-web",
96
+ destPath: ""
97
+ }
98
+ ],
99
+ "events.wixapps.net": [
100
+ {
101
+ srcPath: "/_api/wix-events-web",
102
+ destPath: "/api"
103
+ },
104
+ {
105
+ srcPath: "/events",
106
+ destPath: ""
107
+ }
108
+ ],
109
+ "www._base_domain_": [
110
+ {
111
+ srcPath: "/_api/wix-events-web",
112
+ destPath: "/api"
113
+ },
114
+ {
115
+ srcPath: "/_api/wix-events-web/v2",
116
+ destPath: "/v2"
117
+ },
118
+ {
119
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
120
+ destPath: "/v1/bulk-async/categories"
121
+ },
122
+ {
123
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
124
+ destPath: "/v1/bulk/categories"
125
+ },
126
+ {
127
+ srcPath: "/_api/wix-events-web/v1/categories",
128
+ destPath: "/v1/categories"
129
+ },
130
+ {
131
+ srcPath: "/_api/wix-events-web/v1/events",
132
+ destPath: "/v1/events"
133
+ },
134
+ {
135
+ srcPath: "/_api/wix-events-web/v1/orders",
136
+ destPath: "/v1/orders"
137
+ },
138
+ {
139
+ srcPath: "/_api/wix-events-web/v1/tickets",
140
+ destPath: "/v1/tickets"
141
+ }
142
+ ],
143
+ "apps._base_domain_": [
144
+ {
145
+ srcPath: "/_api/wix-events-web",
146
+ destPath: "/api"
147
+ },
148
+ {
149
+ srcPath: "/events",
150
+ destPath: ""
151
+ }
152
+ ],
153
+ "manage._base_domain_": [
154
+ {
155
+ srcPath: "/_api/wix-events-web",
156
+ destPath: "/api"
157
+ },
158
+ {
159
+ srcPath: "/_api/wix-events-web/v1/events",
160
+ destPath: "/v1/events"
161
+ },
162
+ {
163
+ srcPath: "/_api/wix-events-web/v1/categories",
164
+ destPath: "/v1/categories"
165
+ },
166
+ {
167
+ srcPath: "/_api/wix-events-web/v2/events",
168
+ destPath: "/v2/events"
169
+ },
170
+ {
171
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
172
+ destPath: "/v1/bulk/categories"
173
+ },
174
+ {
175
+ srcPath: "/_api/wix-events-web/v1/bulk/events",
176
+ destPath: "/v1/bulk/events"
177
+ },
178
+ {
179
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
180
+ destPath: "/v1/bulk-async/categories"
181
+ },
182
+ {
183
+ srcPath: "/_api/wix-events-web/v1/tickets",
184
+ destPath: "/v1/tickets"
185
+ },
186
+ {
187
+ srcPath: "/events/v1/events",
188
+ destPath: "/v1/events"
189
+ },
190
+ {
191
+ srcPath: "/events/v1/categories",
192
+ destPath: "/v1/categories"
193
+ },
194
+ {
195
+ srcPath: "/events/v1/bulk/categories",
196
+ destPath: "/v1/bulk/categories"
197
+ },
198
+ {
199
+ srcPath: "/events/v1/bulk-async/categories",
200
+ destPath: "/v1/bulk-async/categories"
201
+ },
202
+ {
203
+ srcPath: "/events/v1/bulk/events",
204
+ destPath: "/v1/bulk/events"
205
+ },
206
+ {
207
+ srcPath: "/events/v1/reports",
208
+ destPath: "/v1/reports"
209
+ },
210
+ {
211
+ srcPath: "/events/v1/tickets",
212
+ destPath: "/v1/tickets"
213
+ },
214
+ {
215
+ srcPath: "/events/v1/orders",
216
+ destPath: "/v1/orders"
217
+ },
218
+ {
219
+ srcPath: "/events/v1/web",
220
+ destPath: "/v1/web"
221
+ },
222
+ {
223
+ srcPath: "/events/v2/tickets",
224
+ destPath: "/v2/tickets"
225
+ },
226
+ {
227
+ srcPath: "/events/v2/events",
228
+ destPath: "/v2/events"
229
+ }
230
+ ],
231
+ "www.wixapis.com": [
232
+ {
233
+ srcPath: "/events/v1/events",
234
+ destPath: "/v1/events"
235
+ },
236
+ {
237
+ srcPath: "/events/v1/tickets",
238
+ destPath: "/v1/tickets"
239
+ },
240
+ {
241
+ srcPath: "/events/v1/categories",
242
+ destPath: "/v1/categories"
243
+ },
244
+ {
245
+ srcPath: "/events/v1/orders",
246
+ destPath: "/v1/orders"
247
+ },
248
+ {
249
+ srcPath: "/events/v1/bulk/categories",
250
+ destPath: "/v1/bulk/categories"
251
+ },
252
+ {
253
+ srcPath: "/events/v2/events",
254
+ destPath: "/v2/events"
255
+ },
256
+ {
257
+ srcPath: "/events/v1/bulk-async/categories",
258
+ destPath: "/v1/bulk-async/categories"
259
+ }
260
+ ],
261
+ "api._base_domain_": [
262
+ {
263
+ srcPath: "/events/v2",
264
+ destPath: "/v2"
265
+ },
266
+ {
267
+ srcPath: "/events/v1/bulk-async/categories",
268
+ destPath: "/v1/bulk-async/categories"
269
+ },
270
+ {
271
+ srcPath: "/events/v1/bulk/categories",
272
+ destPath: "/v1/bulk/categories"
273
+ },
274
+ {
275
+ srcPath: "/events/v1/categories",
276
+ destPath: "/v1/categories"
277
+ },
278
+ {
279
+ srcPath: "/events/v1/events",
280
+ destPath: "/v1/events"
281
+ },
282
+ {
283
+ srcPath: "/events/v1/orders",
284
+ destPath: "/v1/orders"
285
+ },
286
+ {
287
+ srcPath: "/events/v1/tickets",
288
+ destPath: "/v1/tickets"
289
+ }
290
+ ],
291
+ _: [
292
+ {
293
+ srcPath: "/_api/wix-events-web/v2",
294
+ destPath: "/v2"
295
+ },
296
+ {
297
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
298
+ destPath: "/v1/bulk-async/categories"
299
+ },
300
+ {
301
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
302
+ destPath: "/v1/bulk/categories"
303
+ },
304
+ {
305
+ srcPath: "/_api/wix-events-web/v1/categories",
306
+ destPath: "/v1/categories"
307
+ },
308
+ {
309
+ srcPath: "/_api/wix-events-web/v1/events",
310
+ destPath: "/v1/events"
311
+ },
312
+ {
313
+ srcPath: "/_api/wix-events-web/v1/orders",
314
+ destPath: "/v1/orders"
315
+ },
316
+ {
317
+ srcPath: "/_api/wix-events-web/v1/tickets",
318
+ destPath: "/v1/tickets"
319
+ }
320
+ ],
321
+ "editor.wixapps.net": [
322
+ {
323
+ srcPath: "/events/v2/events",
324
+ destPath: "/v2/events"
325
+ },
326
+ {
327
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
328
+ destPath: "/v1/bulk-async/categories"
329
+ },
330
+ {
331
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
332
+ destPath: "/v1/bulk/categories"
333
+ },
334
+ {
335
+ srcPath: "/_api/wix-events-web/v1/categories",
336
+ destPath: "/v1/categories"
337
+ },
338
+ {
339
+ srcPath: "/_api/wix-events-web/v1/events",
340
+ destPath: "/v1/events"
341
+ },
342
+ {
343
+ srcPath: "/_api/wix-events-web/v1/orders",
344
+ destPath: "/v1/orders"
345
+ },
346
+ {
347
+ srcPath: "/_api/wix-events-web/v1/tickets",
348
+ destPath: "/v1/tickets"
349
+ }
350
+ ],
351
+ "*.dev.wix-code.com": [
352
+ {
353
+ srcPath: "/_api/wix-events-web/v2",
354
+ destPath: "/v2"
355
+ },
356
+ {
357
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
358
+ destPath: "/v1/bulk-async/categories"
359
+ },
360
+ {
361
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
362
+ destPath: "/v1/bulk/categories"
363
+ },
364
+ {
365
+ srcPath: "/_api/wix-events-web/v1/categories",
366
+ destPath: "/v1/categories"
367
+ },
368
+ {
369
+ srcPath: "/_api/wix-events-web/v1/events",
370
+ destPath: "/v1/events"
371
+ },
372
+ {
373
+ srcPath: "/_api/wix-events-web/v1/orders",
374
+ destPath: "/v1/orders"
375
+ },
376
+ {
377
+ srcPath: "/_api/wix-events-web/v1/tickets",
378
+ destPath: "/v1/tickets"
379
+ }
380
+ ],
381
+ "*.pub.wix-code.com": [
382
+ {
383
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
384
+ destPath: "/v1/bulk-async/categories"
385
+ },
386
+ {
387
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
388
+ destPath: "/v1/bulk/categories"
389
+ },
390
+ {
391
+ srcPath: "/_api/wix-events-web/v1/categories",
392
+ destPath: "/v1/categories"
393
+ },
394
+ {
395
+ srcPath: "/_api/wix-events-web/v1/events",
396
+ destPath: "/v1/events"
397
+ },
398
+ {
399
+ srcPath: "/_api/wix-events-web/v1/orders",
400
+ destPath: "/v1/orders"
401
+ },
402
+ {
403
+ srcPath: "/_api/wix-events-web/v1/tickets",
404
+ destPath: "/v1/tickets"
405
+ }
406
+ ],
407
+ "editor-flow.wixapps.net": [
408
+ {
409
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
410
+ destPath: "/v1/bulk-async/categories"
411
+ },
412
+ {
413
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
414
+ destPath: "/v1/bulk/categories"
415
+ },
416
+ {
417
+ srcPath: "/_api/wix-events-web/v1/categories",
418
+ destPath: "/v1/categories"
419
+ },
420
+ {
421
+ srcPath: "/_api/wix-events-web/v1/events",
422
+ destPath: "/v1/events"
423
+ },
424
+ {
425
+ srcPath: "/_api/wix-events-web/v1/orders",
426
+ destPath: "/v1/orders"
427
+ },
428
+ {
429
+ srcPath: "/_api/wix-events-web/v1/tickets",
430
+ destPath: "/v1/tickets"
431
+ }
432
+ ],
433
+ "editor._base_domain_": [
434
+ {
435
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
436
+ destPath: "/v1/bulk-async/categories"
437
+ },
438
+ {
439
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
440
+ destPath: "/v1/bulk/categories"
441
+ },
442
+ {
443
+ srcPath: "/_api/wix-events-web/v1/categories",
444
+ destPath: "/v1/categories"
445
+ },
446
+ {
447
+ srcPath: "/_api/wix-events-web/v1/events",
448
+ destPath: "/v1/events"
449
+ },
450
+ {
451
+ srcPath: "/_api/wix-events-web/v1/orders",
452
+ destPath: "/v1/orders"
453
+ },
454
+ {
455
+ srcPath: "/_api/wix-events-web/v1/tickets",
456
+ destPath: "/v1/tickets"
457
+ }
458
+ ],
459
+ "blocks._base_domain_": [
460
+ {
461
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
462
+ destPath: "/v1/bulk-async/categories"
463
+ },
464
+ {
465
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
466
+ destPath: "/v1/bulk/categories"
467
+ },
468
+ {
469
+ srcPath: "/_api/wix-events-web/v1/categories",
470
+ destPath: "/v1/categories"
471
+ },
472
+ {
473
+ srcPath: "/_api/wix-events-web/v1/events",
474
+ destPath: "/v1/events"
475
+ },
476
+ {
477
+ srcPath: "/_api/wix-events-web/v1/orders",
478
+ destPath: "/v1/orders"
479
+ },
480
+ {
481
+ srcPath: "/_api/wix-events-web/v1/tickets",
482
+ destPath: "/v1/tickets"
483
+ }
484
+ ],
485
+ "create.editorx": [
486
+ {
487
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
488
+ destPath: "/v1/bulk-async/categories"
489
+ },
490
+ {
491
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
492
+ destPath: "/v1/bulk/categories"
493
+ },
494
+ {
495
+ srcPath: "/_api/wix-events-web/v1/categories",
496
+ destPath: "/v1/categories"
497
+ },
498
+ {
499
+ srcPath: "/_api/wix-events-web/v1/events",
500
+ destPath: "/v1/events"
501
+ },
502
+ {
503
+ srcPath: "/_api/wix-events-web/v1/orders",
504
+ destPath: "/v1/orders"
505
+ },
506
+ {
507
+ srcPath: "/_api/wix-events-web/v1/tickets",
508
+ destPath: "/v1/tickets"
509
+ }
510
+ ]
511
+ };
512
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
513
+ }
514
+ var PACKAGE_NAME = "@wix/auto_sdk_events_forms";
515
+ function getForm(payload) {
516
+ function __getForm({ host }) {
517
+ const metadata = {
518
+ entityFqdn: "wix.events.v1.form",
519
+ method: "GET",
520
+ methodFqn: "wix.events.form.FormBuilder.GetForm",
521
+ packageName: PACKAGE_NAME,
522
+ url: resolveWixEventsFormFormBuilderUrl({
523
+ protoPath: "/v1/events/{eventId}/form",
524
+ data: payload,
525
+ host
526
+ }),
527
+ params: toURLSearchParams(payload)
528
+ };
529
+ return metadata;
530
+ }
531
+ return __getForm;
532
+ }
533
+ function addControl(payload) {
534
+ function __addControl({ host }) {
535
+ const metadata = {
536
+ entityFqdn: "wix.events.v1.form",
537
+ method: "POST",
538
+ methodFqn: "wix.events.form.FormBuilder.AddControl",
539
+ packageName: PACKAGE_NAME,
540
+ url: resolveWixEventsFormFormBuilderUrl({
541
+ protoPath: "/v1/events/{eventId}/form/control",
542
+ data: payload,
543
+ host
544
+ }),
545
+ data: payload
546
+ };
547
+ return metadata;
548
+ }
549
+ return __addControl;
550
+ }
551
+ function updateControl(payload) {
552
+ function __updateControl({ host }) {
553
+ const metadata = {
554
+ entityFqdn: "wix.events.v1.form",
555
+ method: "PUT",
556
+ methodFqn: "wix.events.form.FormBuilder.UpdateControl",
557
+ packageName: PACKAGE_NAME,
558
+ url: resolveWixEventsFormFormBuilderUrl({
559
+ protoPath: "/v1/events/{eventId}/form/controls/{id}",
560
+ data: payload,
561
+ host
562
+ }),
563
+ data: payload
564
+ };
565
+ return metadata;
566
+ }
567
+ return __updateControl;
568
+ }
569
+ function deleteControl(payload) {
570
+ function __deleteControl({ host }) {
571
+ const metadata = {
572
+ entityFqdn: "wix.events.v1.form",
573
+ method: "DELETE",
574
+ methodFqn: "wix.events.form.FormBuilder.DeleteControl",
575
+ packageName: PACKAGE_NAME,
576
+ url: resolveWixEventsFormFormBuilderUrl({
577
+ protoPath: "/v1/events/{eventId}/form/controls/{id}",
578
+ data: payload,
579
+ host
580
+ }),
581
+ params: toURLSearchParams(payload)
582
+ };
583
+ return metadata;
584
+ }
585
+ return __deleteControl;
586
+ }
587
+ function updateMessages(payload) {
588
+ function __updateMessages({ host }) {
589
+ const serializedData = transformPaths(payload, [
590
+ {
591
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
592
+ paths: [{ path: "fields" }]
593
+ }
594
+ ]);
595
+ const metadata = {
596
+ entityFqdn: "wix.events.v1.form",
597
+ method: "PATCH",
598
+ methodFqn: "wix.events.form.FormBuilder.UpdateMessages",
599
+ packageName: PACKAGE_NAME,
600
+ url: resolveWixEventsFormFormBuilderUrl({
601
+ protoPath: "/v1/events/{eventId}/form/messages",
602
+ data: serializedData,
603
+ host
604
+ }),
605
+ data: serializedData
606
+ };
607
+ return metadata;
608
+ }
609
+ return __updateMessages;
610
+ }
611
+ function publishDraft(payload) {
612
+ function __publishDraft({ host }) {
613
+ const metadata = {
614
+ entityFqdn: "wix.events.v1.form",
615
+ method: "POST",
616
+ methodFqn: "wix.events.form.FormBuilder.PublishDraft",
617
+ packageName: PACKAGE_NAME,
618
+ url: resolveWixEventsFormFormBuilderUrl({
619
+ protoPath: "/v1/events/{eventId}/form/publish",
620
+ data: payload,
621
+ host
622
+ }),
623
+ data: payload
624
+ };
625
+ return metadata;
626
+ }
627
+ return __publishDraft;
628
+ }
629
+ function discardDraft(payload) {
630
+ function __discardDraft({ host }) {
631
+ const metadata = {
632
+ entityFqdn: "wix.events.v1.form",
633
+ method: "DELETE",
634
+ methodFqn: "wix.events.form.FormBuilder.DiscardDraft",
635
+ packageName: PACKAGE_NAME,
636
+ url: resolveWixEventsFormFormBuilderUrl({
637
+ protoPath: "/v1/events/{eventId}/form",
638
+ data: payload,
639
+ host
640
+ }),
641
+ params: toURLSearchParams(payload)
642
+ };
643
+ return metadata;
644
+ }
645
+ return __discardDraft;
646
+ }
647
+
648
+ // src/events-v1-form-forms.universal.ts
649
+ var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
650
+ InputControlType2["INPUT"] = "INPUT";
651
+ InputControlType2["TEXTAREA"] = "TEXTAREA";
652
+ InputControlType2["DROPDOWN"] = "DROPDOWN";
653
+ InputControlType2["RADIO"] = "RADIO";
654
+ InputControlType2["CHECKBOX"] = "CHECKBOX";
655
+ InputControlType2["NAME"] = "NAME";
656
+ InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
657
+ InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
658
+ InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
659
+ InputControlType2["DATE"] = "DATE";
660
+ return InputControlType2;
661
+ })(InputControlType || {});
662
+ var ValueType = /* @__PURE__ */ ((ValueType2) => {
663
+ ValueType2["TEXT"] = "TEXT";
664
+ ValueType2["NUMBER"] = "NUMBER";
665
+ ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
666
+ ValueType2["DATE_TIME"] = "DATE_TIME";
667
+ ValueType2["ADDRESS"] = "ADDRESS";
668
+ return ValueType2;
669
+ })(ValueType || {});
670
+ var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
671
+ RequestedFields2["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
672
+ RequestedFields2["DELETED"] = "DELETED";
673
+ return RequestedFields2;
674
+ })(RequestedFields || {});
675
+ var LocationType = /* @__PURE__ */ ((LocationType2) => {
676
+ LocationType2["VENUE"] = "VENUE";
677
+ LocationType2["ONLINE"] = "ONLINE";
678
+ return LocationType2;
679
+ })(LocationType || {});
680
+ var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
681
+ SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
682
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
683
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
684
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
685
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
686
+ SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
687
+ SubdivisionType2["COUNTRY"] = "COUNTRY";
688
+ return SubdivisionType2;
689
+ })(SubdivisionType || {});
690
+ var Status = /* @__PURE__ */ ((Status2) => {
691
+ Status2["ONE_TIME"] = "ONE_TIME";
692
+ Status2["RECURRING"] = "RECURRING";
693
+ Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
694
+ Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
695
+ Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
696
+ return Status2;
697
+ })(Status || {});
698
+ var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
699
+ EventStatus2["SCHEDULED"] = "SCHEDULED";
700
+ EventStatus2["STARTED"] = "STARTED";
701
+ EventStatus2["ENDED"] = "ENDED";
702
+ EventStatus2["CANCELED"] = "CANCELED";
703
+ return EventStatus2;
704
+ })(EventStatus || {});
705
+ var EventType = /* @__PURE__ */ ((EventType2) => {
706
+ EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
707
+ EventType2["RSVP"] = "RSVP";
708
+ EventType2["TICKETS"] = "TICKETS";
709
+ EventType2["EXTERNAL"] = "EXTERNAL";
710
+ EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
711
+ return EventType2;
712
+ })(EventType || {});
713
+ var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
714
+ RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
715
+ RegistrationStatus2["CLOSED"] = "CLOSED";
716
+ RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
717
+ RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
718
+ RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
719
+ RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
720
+ RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
721
+ RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
722
+ return RegistrationStatus2;
723
+ })(RegistrationStatus || {});
724
+ var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
725
+ RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
726
+ RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
727
+ return RsvpStatusOptions2;
728
+ })(RsvpStatusOptions || {});
729
+ var TaxType = /* @__PURE__ */ ((TaxType2) => {
730
+ TaxType2["INCLUDED"] = "INCLUDED";
731
+ TaxType2["ADDED"] = "ADDED";
732
+ TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
733
+ return TaxType2;
734
+ })(TaxType || {});
735
+ var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
736
+ VisitorType2["VISITOR"] = "VISITOR";
737
+ VisitorType2["MEMBER"] = "MEMBER";
738
+ VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
739
+ return VisitorType2;
740
+ })(VisitorType || {});
741
+ var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
742
+ ConferenceType2["MEETING"] = "MEETING";
743
+ ConferenceType2["WEBINAR"] = "WEBINAR";
744
+ return ConferenceType2;
745
+ })(ConferenceType || {});
746
+ var State = /* @__PURE__ */ ((State2) => {
747
+ State2["MANUAL"] = "MANUAL";
748
+ State2["AUTO"] = "AUTO";
749
+ State2["RECURRING_EVENT"] = "RECURRING_EVENT";
750
+ State2["HIDDEN"] = "HIDDEN";
751
+ return State2;
752
+ })(State || {});
753
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
754
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
755
+ NodeType2["TEXT"] = "TEXT";
756
+ NodeType2["HEADING"] = "HEADING";
757
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
758
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
759
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
760
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
761
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
762
+ NodeType2["VIDEO"] = "VIDEO";
763
+ NodeType2["DIVIDER"] = "DIVIDER";
764
+ NodeType2["FILE"] = "FILE";
765
+ NodeType2["GALLERY"] = "GALLERY";
766
+ NodeType2["GIF"] = "GIF";
767
+ NodeType2["HTML"] = "HTML";
768
+ NodeType2["IMAGE"] = "IMAGE";
769
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
770
+ NodeType2["MAP"] = "MAP";
771
+ NodeType2["POLL"] = "POLL";
772
+ NodeType2["APP_EMBED"] = "APP_EMBED";
773
+ NodeType2["BUTTON"] = "BUTTON";
774
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
775
+ NodeType2["TABLE"] = "TABLE";
776
+ NodeType2["EMBED"] = "EMBED";
777
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
778
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
779
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
780
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
781
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
782
+ NodeType2["EXTERNAL"] = "EXTERNAL";
783
+ NodeType2["AUDIO"] = "AUDIO";
784
+ NodeType2["CAPTION"] = "CAPTION";
785
+ NodeType2["LAYOUT"] = "LAYOUT";
786
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
787
+ return NodeType2;
788
+ })(NodeType || {});
789
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
790
+ WidthType2["CONTENT"] = "CONTENT";
791
+ WidthType2["SMALL"] = "SMALL";
792
+ WidthType2["ORIGINAL"] = "ORIGINAL";
793
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
794
+ return WidthType2;
795
+ })(WidthType || {});
796
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
797
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
798
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
799
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
800
+ return PluginContainerDataAlignment2;
801
+ })(PluginContainerDataAlignment || {});
802
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
803
+ ButtonDataType2["LINK"] = "LINK";
804
+ ButtonDataType2["ACTION"] = "ACTION";
805
+ return ButtonDataType2;
806
+ })(ButtonDataType || {});
807
+ var Target = /* @__PURE__ */ ((Target2) => {
808
+ Target2["SELF"] = "SELF";
809
+ Target2["BLANK"] = "BLANK";
810
+ Target2["PARENT"] = "PARENT";
811
+ Target2["TOP"] = "TOP";
812
+ return Target2;
813
+ })(Target || {});
814
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
815
+ TextAlignment2["AUTO"] = "AUTO";
816
+ TextAlignment2["LEFT"] = "LEFT";
817
+ TextAlignment2["RIGHT"] = "RIGHT";
818
+ TextAlignment2["CENTER"] = "CENTER";
819
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
820
+ return TextAlignment2;
821
+ })(TextAlignment || {});
822
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
823
+ LineStyle2["SINGLE"] = "SINGLE";
824
+ LineStyle2["DOUBLE"] = "DOUBLE";
825
+ LineStyle2["DASHED"] = "DASHED";
826
+ LineStyle2["DOTTED"] = "DOTTED";
827
+ return LineStyle2;
828
+ })(LineStyle || {});
829
+ var Width = /* @__PURE__ */ ((Width2) => {
830
+ Width2["LARGE"] = "LARGE";
831
+ Width2["MEDIUM"] = "MEDIUM";
832
+ Width2["SMALL"] = "SMALL";
833
+ return Width2;
834
+ })(Width || {});
835
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
836
+ Alignment2["CENTER"] = "CENTER";
837
+ Alignment2["LEFT"] = "LEFT";
838
+ Alignment2["RIGHT"] = "RIGHT";
839
+ return Alignment2;
840
+ })(Alignment || {});
841
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
842
+ ViewMode2["NONE"] = "NONE";
843
+ ViewMode2["FULL"] = "FULL";
844
+ ViewMode2["MINI"] = "MINI";
845
+ return ViewMode2;
846
+ })(ViewMode || {});
847
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
848
+ LayoutType2["COLLAGE"] = "COLLAGE";
849
+ LayoutType2["MASONRY"] = "MASONRY";
850
+ LayoutType2["GRID"] = "GRID";
851
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
852
+ LayoutType2["SLIDER"] = "SLIDER";
853
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
854
+ LayoutType2["PANORAMA"] = "PANORAMA";
855
+ LayoutType2["COLUMN"] = "COLUMN";
856
+ LayoutType2["MAGIC"] = "MAGIC";
857
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
858
+ return LayoutType2;
859
+ })(LayoutType || {});
860
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
861
+ Orientation2["ROWS"] = "ROWS";
862
+ Orientation2["COLUMNS"] = "COLUMNS";
863
+ return Orientation2;
864
+ })(Orientation || {});
865
+ var Crop = /* @__PURE__ */ ((Crop2) => {
866
+ Crop2["FILL"] = "FILL";
867
+ Crop2["FIT"] = "FIT";
868
+ return Crop2;
869
+ })(Crop || {});
870
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
871
+ ThumbnailsAlignment2["TOP"] = "TOP";
872
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
873
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
874
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
875
+ ThumbnailsAlignment2["NONE"] = "NONE";
876
+ return ThumbnailsAlignment2;
877
+ })(ThumbnailsAlignment || {});
878
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
879
+ GIFType2["NORMAL"] = "NORMAL";
880
+ GIFType2["STICKER"] = "STICKER";
881
+ return GIFType2;
882
+ })(GIFType || {});
883
+ var Source = /* @__PURE__ */ ((Source2) => {
884
+ Source2["HTML"] = "HTML";
885
+ Source2["ADSENSE"] = "ADSENSE";
886
+ return Source2;
887
+ })(Source || {});
888
+ var Position = /* @__PURE__ */ ((Position2) => {
889
+ Position2["START"] = "START";
890
+ Position2["END"] = "END";
891
+ Position2["TOP"] = "TOP";
892
+ Position2["HIDDEN"] = "HIDDEN";
893
+ return Position2;
894
+ })(Position || {});
895
+ var MapType = /* @__PURE__ */ ((MapType2) => {
896
+ MapType2["ROADMAP"] = "ROADMAP";
897
+ MapType2["SATELITE"] = "SATELITE";
898
+ MapType2["HYBRID"] = "HYBRID";
899
+ MapType2["TERRAIN"] = "TERRAIN";
900
+ return MapType2;
901
+ })(MapType || {});
902
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
903
+ ViewRole2["CREATOR"] = "CREATOR";
904
+ ViewRole2["VOTERS"] = "VOTERS";
905
+ ViewRole2["EVERYONE"] = "EVERYONE";
906
+ return ViewRole2;
907
+ })(ViewRole || {});
908
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
909
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
910
+ VoteRole2["ALL"] = "ALL";
911
+ return VoteRole2;
912
+ })(VoteRole || {});
913
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
914
+ PollLayoutType2["LIST"] = "LIST";
915
+ PollLayoutType2["GRID"] = "GRID";
916
+ return PollLayoutType2;
917
+ })(PollLayoutType || {});
918
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
919
+ PollLayoutDirection2["LTR"] = "LTR";
920
+ PollLayoutDirection2["RTL"] = "RTL";
921
+ return PollLayoutDirection2;
922
+ })(PollLayoutDirection || {});
923
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
924
+ BackgroundType2["COLOR"] = "COLOR";
925
+ BackgroundType2["IMAGE"] = "IMAGE";
926
+ BackgroundType2["GRADIENT"] = "GRADIENT";
927
+ return BackgroundType2;
928
+ })(BackgroundType || {});
929
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
930
+ DecorationType2["BOLD"] = "BOLD";
931
+ DecorationType2["ITALIC"] = "ITALIC";
932
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
933
+ DecorationType2["SPOILER"] = "SPOILER";
934
+ DecorationType2["ANCHOR"] = "ANCHOR";
935
+ DecorationType2["MENTION"] = "MENTION";
936
+ DecorationType2["LINK"] = "LINK";
937
+ DecorationType2["COLOR"] = "COLOR";
938
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
939
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
940
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
941
+ return DecorationType2;
942
+ })(DecorationType || {});
943
+ var FontType = /* @__PURE__ */ ((FontType2) => {
944
+ FontType2["PX"] = "PX";
945
+ FontType2["EM"] = "EM";
946
+ return FontType2;
947
+ })(FontType || {});
948
+ var AppType = /* @__PURE__ */ ((AppType2) => {
949
+ AppType2["PRODUCT"] = "PRODUCT";
950
+ AppType2["EVENT"] = "EVENT";
951
+ AppType2["BOOKING"] = "BOOKING";
952
+ return AppType2;
953
+ })(AppType || {});
954
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
955
+ InitialExpandedItems2["FIRST"] = "FIRST";
956
+ InitialExpandedItems2["ALL"] = "ALL";
957
+ InitialExpandedItems2["NONE"] = "NONE";
958
+ return InitialExpandedItems2;
959
+ })(InitialExpandedItems || {});
960
+ var Direction = /* @__PURE__ */ ((Direction2) => {
961
+ Direction2["LTR"] = "LTR";
962
+ Direction2["RTL"] = "RTL";
963
+ return Direction2;
964
+ })(Direction || {});
965
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
966
+ VerticalAlignment2["TOP"] = "TOP";
967
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
968
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
969
+ return VerticalAlignment2;
970
+ })(VerticalAlignment || {});
971
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
972
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
973
+ return NullValue2;
974
+ })(NullValue || {});
975
+ var Type = /* @__PURE__ */ ((Type2) => {
976
+ Type2["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
977
+ Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
978
+ Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
979
+ Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
980
+ return Type2;
981
+ })(Type || {});
982
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
983
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
984
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
985
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
986
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
987
+ WebhookIdentityType2["APP"] = "APP";
988
+ return WebhookIdentityType2;
989
+ })(WebhookIdentityType || {});
990
+ async function getForm2(eventId) {
991
+ const { httpClient, sideEffects } = arguments[1];
992
+ const payload = renameKeysFromSDKRequestToRESTRequest({ eventId });
993
+ const reqOpts = getForm(payload);
994
+ sideEffects?.onSiteCall?.();
995
+ try {
996
+ const result = await httpClient.request(reqOpts);
997
+ sideEffects?.onSuccess?.(result);
998
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.form;
999
+ } catch (err) {
1000
+ const transformedError = sdkTransformError(
1001
+ err,
1002
+ {
1003
+ spreadPathsToArguments: {},
1004
+ explicitPathsToArguments: { eventId: "$[0]" },
1005
+ singleArgumentUnchanged: false
1006
+ },
1007
+ ["eventId"]
1008
+ );
1009
+ sideEffects?.onError?.(err);
1010
+ throw transformedError;
1011
+ }
1012
+ }
1013
+ async function addControl2(eventId, options) {
1014
+ const { httpClient, sideEffects } = arguments[2];
1015
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1016
+ eventId,
1017
+ phone: options?.phone,
1018
+ address: options?.address,
1019
+ date: options?.date,
1020
+ additionalGuests: options?.additionalGuests,
1021
+ dropdown: options?.dropdown,
1022
+ checkbox: options?.checkbox,
1023
+ text: options?.text,
1024
+ radioButton: options?.radioButton
1025
+ });
1026
+ const reqOpts = addControl(payload);
1027
+ sideEffects?.onSiteCall?.();
1028
+ try {
1029
+ const result = await httpClient.request(reqOpts);
1030
+ sideEffects?.onSuccess?.(result);
1031
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1032
+ } catch (err) {
1033
+ const transformedError = sdkTransformError(
1034
+ err,
1035
+ {
1036
+ spreadPathsToArguments: {},
1037
+ explicitPathsToArguments: {
1038
+ eventId: "$[0]",
1039
+ phone: "$[1].phone",
1040
+ address: "$[1].address",
1041
+ date: "$[1].date",
1042
+ additionalGuests: "$[1].additionalGuests",
1043
+ dropdown: "$[1].dropdown",
1044
+ checkbox: "$[1].checkbox",
1045
+ text: "$[1].text",
1046
+ radioButton: "$[1].radioButton"
1047
+ },
1048
+ singleArgumentUnchanged: false
1049
+ },
1050
+ ["eventId", "options"]
1051
+ );
1052
+ sideEffects?.onError?.(err);
1053
+ throw transformedError;
1054
+ }
1055
+ }
1056
+ async function updateControl2(identifiers, options) {
1057
+ const { httpClient, sideEffects } = arguments[2];
1058
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1059
+ eventId: identifiers?.eventId,
1060
+ id: identifiers?._id,
1061
+ orderIndex: options?.orderIndex,
1062
+ phone: options?.phone,
1063
+ address: options?.address,
1064
+ date: options?.date,
1065
+ additionalGuests: options?.additionalGuests,
1066
+ dropdown: options?.dropdown,
1067
+ checkbox: options?.checkbox,
1068
+ text: options?.text,
1069
+ name: options?.name,
1070
+ email: options?.email,
1071
+ radioButton: options?.radioButton
1072
+ });
1073
+ const reqOpts = updateControl(payload);
1074
+ sideEffects?.onSiteCall?.();
1075
+ try {
1076
+ const result = await httpClient.request(reqOpts);
1077
+ sideEffects?.onSuccess?.(result);
1078
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1079
+ } catch (err) {
1080
+ const transformedError = sdkTransformError(
1081
+ err,
1082
+ {
1083
+ spreadPathsToArguments: {},
1084
+ explicitPathsToArguments: {
1085
+ eventId: "$[0].eventId",
1086
+ id: "$[0]._id",
1087
+ orderIndex: "$[1].orderIndex",
1088
+ phone: "$[1].phone",
1089
+ address: "$[1].address",
1090
+ date: "$[1].date",
1091
+ additionalGuests: "$[1].additionalGuests",
1092
+ dropdown: "$[1].dropdown",
1093
+ checkbox: "$[1].checkbox",
1094
+ text: "$[1].text",
1095
+ name: "$[1].name",
1096
+ email: "$[1].email",
1097
+ radioButton: "$[1].radioButton"
1098
+ },
1099
+ singleArgumentUnchanged: false
1100
+ },
1101
+ ["identifiers", "options"]
1102
+ );
1103
+ sideEffects?.onError?.(err);
1104
+ throw transformedError;
1105
+ }
1106
+ }
1107
+ async function deleteControl2(identifiers) {
1108
+ const { httpClient, sideEffects } = arguments[1];
1109
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1110
+ eventId: identifiers?.eventId,
1111
+ id: identifiers?._id
1112
+ });
1113
+ const reqOpts = deleteControl(payload);
1114
+ sideEffects?.onSiteCall?.();
1115
+ try {
1116
+ const result = await httpClient.request(reqOpts);
1117
+ sideEffects?.onSuccess?.(result);
1118
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1119
+ } catch (err) {
1120
+ const transformedError = sdkTransformError(
1121
+ err,
1122
+ {
1123
+ spreadPathsToArguments: {},
1124
+ explicitPathsToArguments: { eventId: "$[0].eventId", id: "$[0]._id" },
1125
+ singleArgumentUnchanged: false
1126
+ },
1127
+ ["identifiers"]
1128
+ );
1129
+ sideEffects?.onError?.(err);
1130
+ throw transformedError;
1131
+ }
1132
+ }
1133
+ async function updateMessages2(eventId, options) {
1134
+ const { httpClient, sideEffects } = arguments[2];
1135
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1136
+ eventId,
1137
+ fields: options?.fields,
1138
+ messages: options?.messages
1139
+ });
1140
+ const reqOpts = updateMessages(payload);
1141
+ sideEffects?.onSiteCall?.();
1142
+ try {
1143
+ const result = await httpClient.request(reqOpts);
1144
+ sideEffects?.onSuccess?.(result);
1145
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1146
+ } catch (err) {
1147
+ const transformedError = sdkTransformError(
1148
+ err,
1149
+ {
1150
+ spreadPathsToArguments: {},
1151
+ explicitPathsToArguments: {
1152
+ eventId: "$[0]",
1153
+ fields: "$[1].fields",
1154
+ messages: "$[1].messages"
1155
+ },
1156
+ singleArgumentUnchanged: false
1157
+ },
1158
+ ["eventId", "options"]
1159
+ );
1160
+ sideEffects?.onError?.(err);
1161
+ throw transformedError;
1162
+ }
1163
+ }
1164
+ async function publishDraft2(eventId) {
1165
+ const { httpClient, sideEffects } = arguments[1];
1166
+ const payload = renameKeysFromSDKRequestToRESTRequest({ eventId });
1167
+ const reqOpts = publishDraft(payload);
1168
+ sideEffects?.onSiteCall?.();
1169
+ try {
1170
+ const result = await httpClient.request(reqOpts);
1171
+ sideEffects?.onSuccess?.(result);
1172
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1173
+ } catch (err) {
1174
+ const transformedError = sdkTransformError(
1175
+ err,
1176
+ {
1177
+ spreadPathsToArguments: {},
1178
+ explicitPathsToArguments: { eventId: "$[0]" },
1179
+ singleArgumentUnchanged: false
1180
+ },
1181
+ ["eventId"]
1182
+ );
1183
+ sideEffects?.onError?.(err);
1184
+ throw transformedError;
1185
+ }
1186
+ }
1187
+ async function discardDraft2(eventId) {
1188
+ const { httpClient, sideEffects } = arguments[1];
1189
+ const payload = renameKeysFromSDKRequestToRESTRequest({ eventId });
1190
+ const reqOpts = discardDraft(payload);
1191
+ sideEffects?.onSiteCall?.();
1192
+ try {
1193
+ const result = await httpClient.request(reqOpts);
1194
+ sideEffects?.onSuccess?.(result);
1195
+ } catch (err) {
1196
+ const transformedError = sdkTransformError(
1197
+ err,
1198
+ {
1199
+ spreadPathsToArguments: {},
1200
+ explicitPathsToArguments: { eventId: "$[0]" },
1201
+ singleArgumentUnchanged: false
1202
+ },
1203
+ ["eventId"]
1204
+ );
1205
+ sideEffects?.onError?.(err);
1206
+ throw transformedError;
1207
+ }
1208
+ }
1209
+
1210
+ // src/events-v1-form-forms.public.ts
1211
+ function getForm3(httpClient) {
1212
+ return (eventId) => getForm2(
1213
+ eventId,
1214
+ // @ts-ignore
1215
+ { httpClient }
1216
+ );
1217
+ }
1218
+ function addControl3(httpClient) {
1219
+ return (eventId, options) => addControl2(
1220
+ eventId,
1221
+ options,
1222
+ // @ts-ignore
1223
+ { httpClient }
1224
+ );
1225
+ }
1226
+ function updateControl3(httpClient) {
1227
+ return (identifiers, options) => updateControl2(
1228
+ identifiers,
1229
+ options,
1230
+ // @ts-ignore
1231
+ { httpClient }
1232
+ );
1233
+ }
1234
+ function deleteControl3(httpClient) {
1235
+ return (identifiers) => deleteControl2(
1236
+ identifiers,
1237
+ // @ts-ignore
1238
+ { httpClient }
1239
+ );
1240
+ }
1241
+ function updateMessages3(httpClient) {
1242
+ return (eventId, options) => updateMessages2(
1243
+ eventId,
1244
+ options,
1245
+ // @ts-ignore
1246
+ { httpClient }
1247
+ );
1248
+ }
1249
+ function publishDraft3(httpClient) {
1250
+ return (eventId) => publishDraft2(
1251
+ eventId,
1252
+ // @ts-ignore
1253
+ { httpClient }
1254
+ );
1255
+ }
1256
+ function discardDraft3(httpClient) {
1257
+ return (eventId) => discardDraft2(
1258
+ eventId,
1259
+ // @ts-ignore
1260
+ { httpClient }
1261
+ );
1262
+ }
1263
+ var onFormEventUpdated = EventDefinition(
1264
+ "wix.events.events.EventUpdated",
1265
+ false,
1266
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
1267
+ transformPaths2(event, [
1268
+ {
1269
+ transformFn: transformRESTTimestampToSDKTimestamp,
1270
+ paths: [
1271
+ { path: "data.timestamp" },
1272
+ { path: "data.scheduleConfig.startDate" },
1273
+ { path: "data.scheduleConfig.endDate" },
1274
+ { path: "data.scheduleConfig.recurrences.occurrences.startDate" },
1275
+ { path: "data.scheduleConfig.recurrences.occurrences.endDate" },
1276
+ { path: "data.event.created" },
1277
+ { path: "data.event.modified" },
1278
+ { path: "data.event.publishedDate" },
1279
+ { path: "data.event.scheduling.config.startDate" },
1280
+ { path: "data.event.scheduling.config.endDate" },
1281
+ {
1282
+ path: "data.event.scheduling.config.recurrences.occurrences.startDate"
1283
+ },
1284
+ {
1285
+ path: "data.event.scheduling.config.recurrences.occurrences.endDate"
1286
+ },
1287
+ { path: "data.event.registration.rsvpCollection.config.startDate" },
1288
+ { path: "data.event.registration.rsvpCollection.config.endDate" },
1289
+ { path: "data.event.categories.createdDate" },
1290
+ { path: "data.event.longDescription.metadata.createdTimestamp" },
1291
+ { path: "data.event.longDescription.metadata.updatedTimestamp" },
1292
+ { path: "data.event.badges.functionUpdateDate" }
1293
+ ]
1294
+ },
1295
+ {
1296
+ transformFn: transformRESTFieldMaskToSDKFieldMask,
1297
+ paths: [{ path: "data.fields" }]
1298
+ },
1299
+ {
1300
+ transformFn: transformRESTAddressToSDKAddress,
1301
+ paths: [
1302
+ { path: "data.location.fullAddress" },
1303
+ { path: "data.event.location.fullAddress" }
1304
+ ]
1305
+ },
1306
+ {
1307
+ transformFn: transformRESTFloatToSDKFloat,
1308
+ paths: [
1309
+ { path: "data.location.coordinates.lat" },
1310
+ { path: "data.location.coordinates.lng" },
1311
+ { path: "data.event.location.coordinates.lat" },
1312
+ { path: "data.event.location.coordinates.lng" },
1313
+ {
1314
+ path: "data.event.longDescription.nodes.galleryData.items.image.media.duration"
1315
+ },
1316
+ {
1317
+ path: "data.event.longDescription.nodes.galleryData.items.video.media.duration"
1318
+ },
1319
+ {
1320
+ path: "data.event.longDescription.nodes.galleryData.items.video.thumbnail.duration"
1321
+ },
1322
+ {
1323
+ path: "data.event.longDescription.nodes.galleryData.options.item.ratio"
1324
+ },
1325
+ {
1326
+ path: "data.event.longDescription.nodes.imageData.image.duration"
1327
+ },
1328
+ {
1329
+ path: "data.event.longDescription.nodes.mapData.mapSettings.lat"
1330
+ },
1331
+ {
1332
+ path: "data.event.longDescription.nodes.mapData.mapSettings.lng"
1333
+ },
1334
+ {
1335
+ path: "data.event.longDescription.nodes.pollData.poll.image.duration"
1336
+ },
1337
+ {
1338
+ path: "data.event.longDescription.nodes.pollData.poll.options.image.duration"
1339
+ },
1340
+ {
1341
+ path: "data.event.longDescription.nodes.pollData.design.poll.background.image.duration"
1342
+ },
1343
+ {
1344
+ path: "data.event.longDescription.nodes.appEmbedData.image.duration"
1345
+ },
1346
+ {
1347
+ path: "data.event.longDescription.nodes.videoData.video.duration"
1348
+ },
1349
+ {
1350
+ path: "data.event.longDescription.nodes.videoData.thumbnail.duration"
1351
+ },
1352
+ {
1353
+ path: "data.event.longDescription.nodes.audioData.audio.duration"
1354
+ },
1355
+ {
1356
+ path: "data.event.longDescription.nodes.audioData.coverImage.duration"
1357
+ }
1358
+ ]
1359
+ },
1360
+ {
1361
+ transformFn: transformRESTImageToSDKImage,
1362
+ paths: [{ path: "data.event.mainImage" }]
1363
+ }
1364
+ ])
1365
+ )
1366
+ )();
1367
+
1368
+ // src/events-v1-form-forms.context.ts
1369
+ import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
1370
+ import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
1371
+ var getForm4 = /* @__PURE__ */ createRESTModule(getForm3);
1372
+ var addControl4 = /* @__PURE__ */ createRESTModule(addControl3);
1373
+ var updateControl4 = /* @__PURE__ */ createRESTModule(updateControl3);
1374
+ var deleteControl4 = /* @__PURE__ */ createRESTModule(deleteControl3);
1375
+ var updateMessages4 = /* @__PURE__ */ createRESTModule(updateMessages3);
1376
+ var publishDraft4 = /* @__PURE__ */ createRESTModule(publishDraft3);
1377
+ var discardDraft4 = /* @__PURE__ */ createRESTModule(discardDraft3);
1378
+ var onFormEventUpdated2 = createEventModule(onFormEventUpdated);
1379
+ export {
1380
+ Alignment,
1381
+ AppType,
1382
+ BackgroundType,
1383
+ ButtonDataType,
1384
+ ConferenceType,
1385
+ Crop,
1386
+ DecorationType,
1387
+ Direction,
1388
+ EventStatus,
1389
+ EventType,
1390
+ FontType,
1391
+ GIFType,
1392
+ InitialExpandedItems,
1393
+ InputControlType,
1394
+ LayoutType,
1395
+ LineStyle,
1396
+ LocationType,
1397
+ MapType,
1398
+ NodeType,
1399
+ NullValue,
1400
+ Orientation,
1401
+ PluginContainerDataAlignment,
1402
+ PollLayoutDirection,
1403
+ PollLayoutType,
1404
+ Position,
1405
+ RegistrationStatus,
1406
+ RequestedFields,
1407
+ RsvpStatusOptions,
1408
+ Source,
1409
+ State,
1410
+ Status,
1411
+ SubdivisionType,
1412
+ Target,
1413
+ TaxType,
1414
+ TextAlignment,
1415
+ ThumbnailsAlignment,
1416
+ Type,
1417
+ ValueType,
1418
+ VerticalAlignment,
1419
+ ViewMode,
1420
+ ViewRole,
1421
+ VisitorType,
1422
+ VoteRole,
1423
+ WebhookIdentityType,
1424
+ Width,
1425
+ WidthType,
1426
+ addControl4 as addControl,
1427
+ deleteControl4 as deleteControl,
1428
+ discardDraft4 as discardDraft,
1429
+ getForm4 as getForm,
1430
+ onFormEventUpdated2 as onFormEventUpdated,
1431
+ publishDraft4 as publishDraft,
1432
+ updateControl4 as updateControl,
1433
+ updateMessages4 as updateMessages
1434
+ };
1435
+ //# sourceMappingURL=index.mjs.map