@wix/auto_sdk_events_forms 1.0.110 → 1.0.112

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 (48) hide show
  1. package/build/cjs/index.d.ts +2 -2
  2. package/build/cjs/index.js +5 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +13 -4
  5. package/build/cjs/index.typings.js +5 -2
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +2 -2
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +2 -2
  10. package/build/es/index.mjs +5 -2
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.d.mts +13 -4
  13. package/build/es/index.typings.mjs +5 -2
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +2 -2
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +2 -2
  18. package/build/internal/cjs/index.typings.d.ts +13 -4
  19. package/build/internal/cjs/meta.d.ts +2 -2
  20. package/build/internal/es/index.d.mts +2 -2
  21. package/build/internal/es/index.typings.d.mts +13 -4
  22. package/build/internal/es/meta.d.mts +2 -2
  23. package/package.json +4 -11
  24. package/build/cjs/schemas.d.ts +0 -1018
  25. package/build/cjs/schemas.js +0 -1452
  26. package/build/cjs/schemas.js.map +0 -1
  27. package/build/es/schemas.d.mts +0 -1018
  28. package/build/es/schemas.mjs +0 -1402
  29. package/build/es/schemas.mjs.map +0 -1
  30. package/build/internal/cjs/index.js +0 -1954
  31. package/build/internal/cjs/index.js.map +0 -1
  32. package/build/internal/cjs/index.typings.js +0 -1676
  33. package/build/internal/cjs/index.typings.js.map +0 -1
  34. package/build/internal/cjs/meta.js +0 -1584
  35. package/build/internal/cjs/meta.js.map +0 -1
  36. package/build/internal/cjs/schemas.d.ts +0 -1018
  37. package/build/internal/cjs/schemas.js +0 -1452
  38. package/build/internal/cjs/schemas.js.map +0 -1
  39. package/build/internal/es/index.mjs +0 -1842
  40. package/build/internal/es/index.mjs.map +0 -1
  41. package/build/internal/es/index.typings.mjs +0 -1565
  42. package/build/internal/es/index.typings.mjs.map +0 -1
  43. package/build/internal/es/meta.mjs +0 -1470
  44. package/build/internal/es/meta.mjs.map +0 -1
  45. package/build/internal/es/schemas.d.mts +0 -1018
  46. package/build/internal/es/schemas.mjs +0 -1402
  47. package/build/internal/es/schemas.mjs.map +0 -1
  48. package/schemas/package.json +0 -3
@@ -1,1954 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- Alignment: () => Alignment,
24
- AnimationType: () => AnimationType,
25
- AppType: () => AppType,
26
- AspectRatio: () => AspectRatio,
27
- BackdropType: () => BackdropType,
28
- BackgroundType: () => BackgroundType,
29
- BannerPosition: () => BannerPosition,
30
- ButtonDataType: () => ButtonDataType,
31
- CancellationActorType: () => CancellationActorType,
32
- CardDataBackgroundType: () => CardDataBackgroundType,
33
- CardStylesType: () => CardStylesType,
34
- CheckoutType: () => CheckoutType,
35
- ColumnSize: () => ColumnSize,
36
- ConferenceType: () => ConferenceType,
37
- Crop: () => Crop,
38
- DecorationType: () => DecorationType,
39
- DesignTarget: () => DesignTarget,
40
- Direction: () => Direction,
41
- DividerDataAlignment: () => DividerDataAlignment,
42
- EntranceEffectType: () => EntranceEffectType,
43
- EventStatus: () => EventStatus,
44
- EventType: () => EventType,
45
- FontType: () => FontType,
46
- GIFType: () => GIFType,
47
- GradientType: () => GradientType,
48
- ImagePosition: () => ImagePosition,
49
- ImagePositionPosition: () => ImagePositionPosition,
50
- ImageScalingScaling: () => ImageScalingScaling,
51
- Indentation: () => Indentation,
52
- InitialExpandedItems: () => InitialExpandedItems,
53
- InputControlType: () => InputControlType,
54
- LayerEffect: () => LayerEffect,
55
- Layout: () => Layout,
56
- LayoutDataBackgroundType: () => LayoutDataBackgroundType,
57
- LayoutType: () => LayoutType,
58
- LineCap: () => LineCap,
59
- LineStyle: () => LineStyle,
60
- ListStyle: () => ListStyle,
61
- LocationType: () => LocationType,
62
- LoopEffectType: () => LoopEffectType,
63
- MapType: () => MapType,
64
- NodeType: () => NodeType,
65
- NullValue: () => NullValue,
66
- Orientation: () => Orientation,
67
- Origin: () => Origin,
68
- Placement: () => Placement,
69
- PluginContainerDataAlignment: () => PluginContainerDataAlignment,
70
- PointerEffectType: () => PointerEffectType,
71
- PollDesignBackgroundType: () => PollDesignBackgroundType,
72
- PollLayoutDirection: () => PollLayoutDirection,
73
- PollLayoutType: () => PollLayoutType,
74
- Position: () => Position,
75
- RegistrationStatus: () => RegistrationStatus,
76
- RequestedFields: () => RequestedFields,
77
- Resizing: () => Resizing,
78
- ResponsivenessBehaviour: () => ResponsivenessBehaviour,
79
- RsvpStatusOptions: () => RsvpStatusOptions,
80
- Scaling: () => Scaling,
81
- Shape: () => Shape,
82
- SmartBlockDataType: () => SmartBlockDataType,
83
- Source: () => Source,
84
- State: () => State,
85
- Status: () => Status,
86
- StylesPosition: () => StylesPosition,
87
- SubdivisionType: () => SubdivisionType,
88
- Target: () => Target,
89
- TaxType: () => TaxType,
90
- TextAlignment: () => TextAlignment,
91
- ThumbnailsAlignment: () => ThumbnailsAlignment,
92
- Type: () => Type,
93
- ValueType: () => ValueType,
94
- Variant: () => Variant,
95
- VerticalAlignment: () => VerticalAlignment,
96
- VerticalAlignmentAlignment: () => VerticalAlignmentAlignment,
97
- ViewMode: () => ViewMode,
98
- ViewRole: () => ViewRole,
99
- VisitorType: () => VisitorType,
100
- VoteRole: () => VoteRole,
101
- WebhookIdentityType: () => WebhookIdentityType,
102
- Width: () => Width,
103
- WidthType: () => WidthType,
104
- addControl: () => addControl4,
105
- deleteControl: () => deleteControl4,
106
- discardDraft: () => discardDraft4,
107
- getForm: () => getForm4,
108
- onFormEventUpdated: () => onFormEventUpdated2,
109
- publishDraft: () => publishDraft4,
110
- updateControl: () => updateControl4,
111
- updateMessages: () => updateMessages4
112
- });
113
- module.exports = __toCommonJS(index_exports);
114
-
115
- // src/events-v1-form-forms.public.ts
116
- var import_rename_all_nested_keys2 = require("@wix/sdk-runtime/rename-all-nested-keys");
117
- var import_address = require("@wix/sdk-runtime/transformations/address");
118
- var import_field_mask2 = require("@wix/sdk-runtime/transformations/field-mask");
119
- var import_float = require("@wix/sdk-runtime/transformations/float");
120
- var import_image = require("@wix/sdk-runtime/transformations/image");
121
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
122
- var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
123
- var import_sdk_types = require("@wix/sdk-types");
124
-
125
- // src/events-v1-form-forms.universal.ts
126
- var import_transform_error = require("@wix/sdk-runtime/transform-error");
127
- var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
128
-
129
- // src/events-v1-form-forms.http.ts
130
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
131
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
132
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
133
- var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
134
- function resolveWixEventsFormFormBuilderUrl(opts) {
135
- const domainToMappings = {
136
- "events._base_domain_": [
137
- {
138
- srcPath: "",
139
- destPath: ""
140
- },
141
- {
142
- srcPath: "/_api/wix-events-web",
143
- destPath: "/api"
144
- }
145
- ],
146
- "www.wixevents.com": [
147
- {
148
- srcPath: "/_api/wix-events-web",
149
- destPath: "/api"
150
- },
151
- {
152
- srcPath: "/api",
153
- destPath: "/api"
154
- },
155
- {
156
- srcPath: "/viewEvent",
157
- destPath: "/viewEvent"
158
- },
159
- {
160
- srcPath: "/viewRsvpDashboard",
161
- destPath: "/viewRsvpDashboard"
162
- },
163
- {
164
- srcPath: "/viewOrderDashboard",
165
- destPath: "/viewOrderDashboard"
166
- },
167
- {
168
- srcPath: "/viewSummarySubscription",
169
- destPath: "/viewSummarySubscription"
170
- },
171
- {
172
- srcPath: "/v2",
173
- destPath: "/v2"
174
- },
175
- {
176
- srcPath: "/export",
177
- destPath: "/export"
178
- },
179
- {
180
- srcPath: "/tickets",
181
- destPath: "/tickets"
182
- },
183
- {
184
- srcPath: "/payment-redirect",
185
- destPath: "/payment-redirect"
186
- },
187
- {
188
- srcPath: "/admin",
189
- destPath: "/admin"
190
- },
191
- {
192
- srcPath: "/ticket",
193
- destPath: "/ticket"
194
- },
195
- {
196
- srcPath: "/media",
197
- destPath: "/media"
198
- },
199
- {
200
- srcPath: "/wix-events-web/media",
201
- destPath: "/media"
202
- }
203
- ],
204
- "api._api_base_domain_": [
205
- {
206
- srcPath: "/wix-events-web",
207
- destPath: ""
208
- }
209
- ],
210
- "events.wixapps.net": [
211
- {
212
- srcPath: "/_api/wix-events-web",
213
- destPath: "/api"
214
- },
215
- {
216
- srcPath: "/events",
217
- destPath: ""
218
- }
219
- ],
220
- "www._base_domain_": [
221
- {
222
- srcPath: "/_api/wix-events-web",
223
- destPath: "/api"
224
- },
225
- {
226
- srcPath: "/_api/wix-events-web/v2",
227
- destPath: "/v2"
228
- },
229
- {
230
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
231
- destPath: "/v1/bulk-async/categories"
232
- },
233
- {
234
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
235
- destPath: "/v1/bulk/categories"
236
- },
237
- {
238
- srcPath: "/_api/wix-events-web/v1/categories",
239
- destPath: "/v1/categories"
240
- },
241
- {
242
- srcPath: "/_api/wix-events-web/v1/events",
243
- destPath: "/v1/events"
244
- },
245
- {
246
- srcPath: "/_api/wix-events-web/v1/orders",
247
- destPath: "/v1/orders"
248
- }
249
- ],
250
- "apps._base_domain_": [
251
- {
252
- srcPath: "/_api/wix-events-web",
253
- destPath: "/api"
254
- },
255
- {
256
- srcPath: "/events",
257
- destPath: ""
258
- }
259
- ],
260
- "manage._base_domain_": [
261
- {
262
- srcPath: "/_api/wix-events-web",
263
- destPath: "/api"
264
- },
265
- {
266
- srcPath: "/_api/wix-events-web/v1/events",
267
- destPath: "/v1/events"
268
- },
269
- {
270
- srcPath: "/_api/wix-events-web/v1/categories",
271
- destPath: "/v1/categories"
272
- },
273
- {
274
- srcPath: "/_api/wix-events-web/v2/events",
275
- destPath: "/v2/events"
276
- },
277
- {
278
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
279
- destPath: "/v1/bulk/categories"
280
- },
281
- {
282
- srcPath: "/_api/wix-events-web/v1/bulk/events",
283
- destPath: "/v1/bulk/events"
284
- },
285
- {
286
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
287
- destPath: "/v1/bulk-async/categories"
288
- },
289
- {
290
- srcPath: "/events/v1/events",
291
- destPath: "/v1/events"
292
- },
293
- {
294
- srcPath: "/events/v1/categories",
295
- destPath: "/v1/categories"
296
- },
297
- {
298
- srcPath: "/events/v1/bulk/categories",
299
- destPath: "/v1/bulk/categories"
300
- },
301
- {
302
- srcPath: "/events/v1/bulk-async/categories",
303
- destPath: "/v1/bulk-async/categories"
304
- },
305
- {
306
- srcPath: "/events/v1/bulk/events",
307
- destPath: "/v1/bulk/events"
308
- },
309
- {
310
- srcPath: "/events/v1/reports",
311
- destPath: "/v1/reports"
312
- },
313
- {
314
- srcPath: "/events/v1/orders",
315
- destPath: "/v1/orders"
316
- },
317
- {
318
- srcPath: "/events/v1/web",
319
- destPath: "/v1/web"
320
- },
321
- {
322
- srcPath: "/events/v2/tickets",
323
- destPath: "/v2/tickets"
324
- },
325
- {
326
- srcPath: "/events/v2/events",
327
- destPath: "/v2/events"
328
- }
329
- ],
330
- "www.wixapis.com": [
331
- {
332
- srcPath: "/events/v1/events",
333
- destPath: "/v1/events"
334
- },
335
- {
336
- srcPath: "/events/v1/categories",
337
- destPath: "/v1/categories"
338
- },
339
- {
340
- srcPath: "/events/v1/orders",
341
- destPath: "/v1/orders"
342
- },
343
- {
344
- srcPath: "/events/v1/bulk/categories",
345
- destPath: "/v1/bulk/categories"
346
- },
347
- {
348
- srcPath: "/events/v2/events",
349
- destPath: "/v2/events"
350
- },
351
- {
352
- srcPath: "/events/v1/bulk-async/categories",
353
- destPath: "/v1/bulk-async/categories"
354
- },
355
- {
356
- srcPath: "/events/v1/bulk/events",
357
- destPath: "/v1/bulk/events"
358
- }
359
- ],
360
- "api._base_domain_": [
361
- {
362
- srcPath: "/events/v2",
363
- destPath: "/v2"
364
- },
365
- {
366
- srcPath: "/events/v1/bulk-async/categories",
367
- destPath: "/v1/bulk-async/categories"
368
- },
369
- {
370
- srcPath: "/events/v1/bulk/categories",
371
- destPath: "/v1/bulk/categories"
372
- },
373
- {
374
- srcPath: "/events/v1/categories",
375
- destPath: "/v1/categories"
376
- },
377
- {
378
- srcPath: "/events/v1/events",
379
- destPath: "/v1/events"
380
- },
381
- {
382
- srcPath: "/events/v1/orders",
383
- destPath: "/v1/orders"
384
- }
385
- ],
386
- _: [
387
- {
388
- srcPath: "/_api/wix-events-web/v2",
389
- destPath: "/v2"
390
- },
391
- {
392
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
393
- destPath: "/v1/bulk-async/categories"
394
- },
395
- {
396
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
397
- destPath: "/v1/bulk/categories"
398
- },
399
- {
400
- srcPath: "/_api/wix-events-web/v1/categories",
401
- destPath: "/v1/categories"
402
- },
403
- {
404
- srcPath: "/_api/wix-events-web/v1/events",
405
- destPath: "/v1/events"
406
- },
407
- {
408
- srcPath: "/_api/wix-events-web/v1/orders",
409
- destPath: "/v1/orders"
410
- },
411
- {
412
- srcPath: "/events/v1/bulk/events",
413
- destPath: "/v1/bulk/events"
414
- }
415
- ],
416
- "editor.wixapps.net": [
417
- {
418
- srcPath: "/events/v2/events",
419
- destPath: "/v2/events"
420
- },
421
- {
422
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
423
- destPath: "/v1/bulk-async/categories"
424
- },
425
- {
426
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
427
- destPath: "/v1/bulk/categories"
428
- },
429
- {
430
- srcPath: "/_api/wix-events-web/v1/categories",
431
- destPath: "/v1/categories"
432
- },
433
- {
434
- srcPath: "/_api/wix-events-web/v1/events",
435
- destPath: "/v1/events"
436
- },
437
- {
438
- srcPath: "/_api/wix-events-web/v1/orders",
439
- destPath: "/v1/orders"
440
- }
441
- ],
442
- "*.dev.wix-code.com": [
443
- {
444
- srcPath: "/_api/wix-events-web/v2",
445
- destPath: "/v2"
446
- },
447
- {
448
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
449
- destPath: "/v1/bulk-async/categories"
450
- },
451
- {
452
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
453
- destPath: "/v1/bulk/categories"
454
- },
455
- {
456
- srcPath: "/_api/wix-events-web/v1/categories",
457
- destPath: "/v1/categories"
458
- },
459
- {
460
- srcPath: "/_api/wix-events-web/v1/events",
461
- destPath: "/v1/events"
462
- },
463
- {
464
- srcPath: "/_api/wix-events-web/v1/orders",
465
- destPath: "/v1/orders"
466
- },
467
- {
468
- srcPath: "/events/v1/bulk/events",
469
- destPath: "/v1/bulk/events"
470
- }
471
- ],
472
- "*.pub.wix-code.com": [
473
- {
474
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
475
- destPath: "/v1/bulk-async/categories"
476
- },
477
- {
478
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
479
- destPath: "/v1/bulk/categories"
480
- },
481
- {
482
- srcPath: "/_api/wix-events-web/v1/categories",
483
- destPath: "/v1/categories"
484
- },
485
- {
486
- srcPath: "/_api/wix-events-web/v1/events",
487
- destPath: "/v1/events"
488
- },
489
- {
490
- srcPath: "/_api/wix-events-web/v1/orders",
491
- destPath: "/v1/orders"
492
- }
493
- ],
494
- "editor-flow.wixapps.net": [
495
- {
496
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
497
- destPath: "/v1/bulk-async/categories"
498
- },
499
- {
500
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
501
- destPath: "/v1/bulk/categories"
502
- },
503
- {
504
- srcPath: "/_api/wix-events-web/v1/categories",
505
- destPath: "/v1/categories"
506
- },
507
- {
508
- srcPath: "/_api/wix-events-web/v1/events",
509
- destPath: "/v1/events"
510
- },
511
- {
512
- srcPath: "/_api/wix-events-web/v1/orders",
513
- destPath: "/v1/orders"
514
- }
515
- ],
516
- "editor._base_domain_": [
517
- {
518
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
519
- destPath: "/v1/bulk-async/categories"
520
- },
521
- {
522
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
523
- destPath: "/v1/bulk/categories"
524
- },
525
- {
526
- srcPath: "/_api/wix-events-web/v1/categories",
527
- destPath: "/v1/categories"
528
- },
529
- {
530
- srcPath: "/_api/wix-events-web/v1/events",
531
- destPath: "/v1/events"
532
- },
533
- {
534
- srcPath: "/_api/wix-events-web/v1/orders",
535
- destPath: "/v1/orders"
536
- }
537
- ],
538
- "blocks._base_domain_": [
539
- {
540
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
541
- destPath: "/v1/bulk-async/categories"
542
- },
543
- {
544
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
545
- destPath: "/v1/bulk/categories"
546
- },
547
- {
548
- srcPath: "/_api/wix-events-web/v1/categories",
549
- destPath: "/v1/categories"
550
- },
551
- {
552
- srcPath: "/_api/wix-events-web/v1/events",
553
- destPath: "/v1/events"
554
- },
555
- {
556
- srcPath: "/_api/wix-events-web/v1/orders",
557
- destPath: "/v1/orders"
558
- }
559
- ],
560
- "create.editorx": [
561
- {
562
- srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
563
- destPath: "/v1/bulk-async/categories"
564
- },
565
- {
566
- srcPath: "/_api/wix-events-web/v1/bulk/categories",
567
- destPath: "/v1/bulk/categories"
568
- },
569
- {
570
- srcPath: "/_api/wix-events-web/v1/categories",
571
- destPath: "/v1/categories"
572
- },
573
- {
574
- srcPath: "/_api/wix-events-web/v1/events",
575
- destPath: "/v1/events"
576
- },
577
- {
578
- srcPath: "/_api/wix-events-web/v1/orders",
579
- destPath: "/v1/orders"
580
- }
581
- ]
582
- };
583
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
584
- }
585
- var PACKAGE_NAME = "@wix/auto_sdk_events_forms";
586
- function getForm(payload) {
587
- function __getForm({ host }) {
588
- const metadata = {
589
- entityFqdn: "wix.events.v1.form",
590
- method: "GET",
591
- methodFqn: "wix.events.form.FormBuilder.GetForm",
592
- packageName: PACKAGE_NAME,
593
- migrationOptions: {
594
- optInTransformResponse: true
595
- },
596
- url: resolveWixEventsFormFormBuilderUrl({
597
- protoPath: "/v1/events/{eventId}/form",
598
- data: payload,
599
- host
600
- }),
601
- params: (0, import_rest_modules.toURLSearchParams)(payload)
602
- };
603
- return metadata;
604
- }
605
- return __getForm;
606
- }
607
- function addControl(payload) {
608
- function __addControl({ host }) {
609
- const metadata = {
610
- entityFqdn: "wix.events.v1.form",
611
- method: "POST",
612
- methodFqn: "wix.events.form.FormBuilder.AddControl",
613
- packageName: PACKAGE_NAME,
614
- migrationOptions: {
615
- optInTransformResponse: true
616
- },
617
- url: resolveWixEventsFormFormBuilderUrl({
618
- protoPath: "/v1/events/{eventId}/form/control",
619
- data: payload,
620
- host
621
- }),
622
- data: payload
623
- };
624
- return metadata;
625
- }
626
- return __addControl;
627
- }
628
- function updateControl(payload) {
629
- function __updateControl({ host }) {
630
- const metadata = {
631
- entityFqdn: "wix.events.v1.form",
632
- method: "PUT",
633
- methodFqn: "wix.events.form.FormBuilder.UpdateControl",
634
- packageName: PACKAGE_NAME,
635
- migrationOptions: {
636
- optInTransformResponse: true
637
- },
638
- url: resolveWixEventsFormFormBuilderUrl({
639
- protoPath: "/v1/events/{eventId}/form/controls/{id}",
640
- data: payload,
641
- host
642
- }),
643
- data: payload
644
- };
645
- return metadata;
646
- }
647
- return __updateControl;
648
- }
649
- function deleteControl(payload) {
650
- function __deleteControl({ host }) {
651
- const metadata = {
652
- entityFqdn: "wix.events.v1.form",
653
- method: "DELETE",
654
- methodFqn: "wix.events.form.FormBuilder.DeleteControl",
655
- packageName: PACKAGE_NAME,
656
- migrationOptions: {
657
- optInTransformResponse: true
658
- },
659
- url: resolveWixEventsFormFormBuilderUrl({
660
- protoPath: "/v1/events/{eventId}/form/controls/{id}",
661
- data: payload,
662
- host
663
- }),
664
- params: (0, import_rest_modules.toURLSearchParams)(payload)
665
- };
666
- return metadata;
667
- }
668
- return __deleteControl;
669
- }
670
- function updateMessages(payload) {
671
- function __updateMessages({ host }) {
672
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
673
- {
674
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
675
- paths: [{ path: "fields" }]
676
- }
677
- ]);
678
- const metadata = {
679
- entityFqdn: "wix.events.v1.form",
680
- method: "PATCH",
681
- methodFqn: "wix.events.form.FormBuilder.UpdateMessages",
682
- packageName: PACKAGE_NAME,
683
- migrationOptions: {
684
- optInTransformResponse: true
685
- },
686
- url: resolveWixEventsFormFormBuilderUrl({
687
- protoPath: "/v1/events/{eventId}/form/messages",
688
- data: serializedData,
689
- host
690
- }),
691
- data: serializedData
692
- };
693
- return metadata;
694
- }
695
- return __updateMessages;
696
- }
697
- function publishDraft(payload) {
698
- function __publishDraft({ host }) {
699
- const metadata = {
700
- entityFqdn: "wix.events.v1.form",
701
- method: "POST",
702
- methodFqn: "wix.events.form.FormBuilder.PublishDraft",
703
- packageName: PACKAGE_NAME,
704
- migrationOptions: {
705
- optInTransformResponse: true
706
- },
707
- url: resolveWixEventsFormFormBuilderUrl({
708
- protoPath: "/v1/events/{eventId}/form/publish",
709
- data: payload,
710
- host
711
- }),
712
- data: payload
713
- };
714
- return metadata;
715
- }
716
- return __publishDraft;
717
- }
718
- function discardDraft(payload) {
719
- function __discardDraft({ host }) {
720
- const metadata = {
721
- entityFqdn: "wix.events.v1.form",
722
- method: "DELETE",
723
- methodFqn: "wix.events.form.FormBuilder.DiscardDraft",
724
- packageName: PACKAGE_NAME,
725
- migrationOptions: {
726
- optInTransformResponse: true
727
- },
728
- url: resolveWixEventsFormFormBuilderUrl({
729
- protoPath: "/v1/events/{eventId}/form",
730
- data: payload,
731
- host
732
- }),
733
- params: (0, import_rest_modules.toURLSearchParams)(payload)
734
- };
735
- return metadata;
736
- }
737
- return __discardDraft;
738
- }
739
-
740
- // src/events-v1-form-forms.universal.ts
741
- var InputControlType = /* @__PURE__ */ ((InputControlType2) => {
742
- InputControlType2["INPUT"] = "INPUT";
743
- InputControlType2["TEXTAREA"] = "TEXTAREA";
744
- InputControlType2["DROPDOWN"] = "DROPDOWN";
745
- InputControlType2["RADIO"] = "RADIO";
746
- InputControlType2["CHECKBOX"] = "CHECKBOX";
747
- InputControlType2["NAME"] = "NAME";
748
- InputControlType2["GUEST_CONTROL"] = "GUEST_CONTROL";
749
- InputControlType2["ADDRESS_SHORT"] = "ADDRESS_SHORT";
750
- InputControlType2["ADDRESS_FULL"] = "ADDRESS_FULL";
751
- InputControlType2["DATE"] = "DATE";
752
- return InputControlType2;
753
- })(InputControlType || {});
754
- var ValueType = /* @__PURE__ */ ((ValueType2) => {
755
- ValueType2["TEXT"] = "TEXT";
756
- ValueType2["NUMBER"] = "NUMBER";
757
- ValueType2["TEXT_ARRAY"] = "TEXT_ARRAY";
758
- ValueType2["DATE_TIME"] = "DATE_TIME";
759
- ValueType2["ADDRESS"] = "ADDRESS";
760
- return ValueType2;
761
- })(ValueType || {});
762
- var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
763
- RequestedFields2["DELETED"] = "DELETED";
764
- return RequestedFields2;
765
- })(RequestedFields || {});
766
- var LocationType = /* @__PURE__ */ ((LocationType2) => {
767
- LocationType2["VENUE"] = "VENUE";
768
- LocationType2["ONLINE"] = "ONLINE";
769
- return LocationType2;
770
- })(LocationType || {});
771
- var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
772
- SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
773
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
774
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
775
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
776
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
777
- SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
778
- SubdivisionType2["COUNTRY"] = "COUNTRY";
779
- return SubdivisionType2;
780
- })(SubdivisionType || {});
781
- var Status = /* @__PURE__ */ ((Status2) => {
782
- Status2["ONE_TIME"] = "ONE_TIME";
783
- Status2["RECURRING"] = "RECURRING";
784
- Status2["RECURRING_NEXT"] = "RECURRING_NEXT";
785
- Status2["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
786
- Status2["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
787
- return Status2;
788
- })(Status || {});
789
- var EventStatus = /* @__PURE__ */ ((EventStatus2) => {
790
- EventStatus2["SCHEDULED"] = "SCHEDULED";
791
- EventStatus2["STARTED"] = "STARTED";
792
- EventStatus2["ENDED"] = "ENDED";
793
- EventStatus2["CANCELED"] = "CANCELED";
794
- EventStatus2["DRAFT"] = "DRAFT";
795
- return EventStatus2;
796
- })(EventStatus || {});
797
- var EventType = /* @__PURE__ */ ((EventType2) => {
798
- EventType2["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
799
- EventType2["RSVP"] = "RSVP";
800
- EventType2["TICKETS"] = "TICKETS";
801
- EventType2["EXTERNAL"] = "EXTERNAL";
802
- EventType2["NO_REGISTRATION"] = "NO_REGISTRATION";
803
- EventType2["RSVP_AND_TICKETS"] = "RSVP_AND_TICKETS";
804
- return EventType2;
805
- })(EventType || {});
806
- var RegistrationStatus = /* @__PURE__ */ ((RegistrationStatus2) => {
807
- RegistrationStatus2["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
808
- RegistrationStatus2["CLOSED"] = "CLOSED";
809
- RegistrationStatus2["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
810
- RegistrationStatus2["OPEN_RSVP"] = "OPEN_RSVP";
811
- RegistrationStatus2["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
812
- RegistrationStatus2["OPEN_TICKETS"] = "OPEN_TICKETS";
813
- RegistrationStatus2["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
814
- RegistrationStatus2["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
815
- RegistrationStatus2["OPEN_RSVP_AND_TICKETS"] = "OPEN_RSVP_AND_TICKETS";
816
- return RegistrationStatus2;
817
- })(RegistrationStatus || {});
818
- var RsvpStatusOptions = /* @__PURE__ */ ((RsvpStatusOptions2) => {
819
- RsvpStatusOptions2["YES_ONLY"] = "YES_ONLY";
820
- RsvpStatusOptions2["YES_AND_NO"] = "YES_AND_NO";
821
- return RsvpStatusOptions2;
822
- })(RsvpStatusOptions || {});
823
- var TaxType = /* @__PURE__ */ ((TaxType2) => {
824
- TaxType2["INCLUDED"] = "INCLUDED";
825
- TaxType2["ADDED"] = "ADDED";
826
- TaxType2["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
827
- return TaxType2;
828
- })(TaxType || {});
829
- var CheckoutType = /* @__PURE__ */ ((CheckoutType2) => {
830
- CheckoutType2["EVENTS_APP"] = "EVENTS_APP";
831
- CheckoutType2["ECOMM_PLATFORM"] = "ECOMM_PLATFORM";
832
- return CheckoutType2;
833
- })(CheckoutType || {});
834
- var VisitorType = /* @__PURE__ */ ((VisitorType2) => {
835
- VisitorType2["VISITOR"] = "VISITOR";
836
- VisitorType2["MEMBER"] = "MEMBER";
837
- VisitorType2["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
838
- return VisitorType2;
839
- })(VisitorType || {});
840
- var CancellationActorType = /* @__PURE__ */ ((CancellationActorType2) => {
841
- CancellationActorType2["USER"] = "USER";
842
- CancellationActorType2["APP"] = "APP";
843
- CancellationActorType2["SYSTEM"] = "SYSTEM";
844
- return CancellationActorType2;
845
- })(CancellationActorType || {});
846
- var ConferenceType = /* @__PURE__ */ ((ConferenceType2) => {
847
- ConferenceType2["MEETING"] = "MEETING";
848
- ConferenceType2["WEBINAR"] = "WEBINAR";
849
- return ConferenceType2;
850
- })(ConferenceType || {});
851
- var State = /* @__PURE__ */ ((State2) => {
852
- State2["MANUAL"] = "MANUAL";
853
- State2["AUTO"] = "AUTO";
854
- State2["RECURRING_EVENT"] = "RECURRING_EVENT";
855
- State2["HIDDEN"] = "HIDDEN";
856
- State2["COMPONENT"] = "COMPONENT";
857
- return State2;
858
- })(State || {});
859
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
860
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
861
- NodeType2["TEXT"] = "TEXT";
862
- NodeType2["HEADING"] = "HEADING";
863
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
864
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
865
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
866
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
867
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
868
- NodeType2["VIDEO"] = "VIDEO";
869
- NodeType2["DIVIDER"] = "DIVIDER";
870
- NodeType2["FILE"] = "FILE";
871
- NodeType2["GALLERY"] = "GALLERY";
872
- NodeType2["GIF"] = "GIF";
873
- NodeType2["HTML"] = "HTML";
874
- NodeType2["IMAGE"] = "IMAGE";
875
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
876
- NodeType2["MAP"] = "MAP";
877
- NodeType2["POLL"] = "POLL";
878
- NodeType2["APP_EMBED"] = "APP_EMBED";
879
- NodeType2["BUTTON"] = "BUTTON";
880
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
881
- NodeType2["TABLE"] = "TABLE";
882
- NodeType2["EMBED"] = "EMBED";
883
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
884
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
885
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
886
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
887
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
888
- NodeType2["EXTERNAL"] = "EXTERNAL";
889
- NodeType2["AUDIO"] = "AUDIO";
890
- NodeType2["CAPTION"] = "CAPTION";
891
- NodeType2["LAYOUT"] = "LAYOUT";
892
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
893
- NodeType2["SHAPE"] = "SHAPE";
894
- NodeType2["CARD"] = "CARD";
895
- NodeType2["TOC"] = "TOC";
896
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
897
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
898
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
899
- return NodeType2;
900
- })(NodeType || {});
901
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
902
- BackgroundType2["COLOR"] = "COLOR";
903
- BackgroundType2["GRADIENT"] = "GRADIENT";
904
- return BackgroundType2;
905
- })(BackgroundType || {});
906
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
907
- GradientType2["LINEAR"] = "LINEAR";
908
- GradientType2["RADIAL"] = "RADIAL";
909
- return GradientType2;
910
- })(GradientType || {});
911
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
912
- WidthType2["CONTENT"] = "CONTENT";
913
- WidthType2["SMALL"] = "SMALL";
914
- WidthType2["ORIGINAL"] = "ORIGINAL";
915
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
916
- return WidthType2;
917
- })(WidthType || {});
918
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
919
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
920
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
921
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
922
- return PluginContainerDataAlignment2;
923
- })(PluginContainerDataAlignment || {});
924
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
925
- ButtonDataType2["LINK"] = "LINK";
926
- ButtonDataType2["ACTION"] = "ACTION";
927
- return ButtonDataType2;
928
- })(ButtonDataType || {});
929
- var Target = /* @__PURE__ */ ((Target2) => {
930
- Target2["SELF"] = "SELF";
931
- Target2["BLANK"] = "BLANK";
932
- Target2["PARENT"] = "PARENT";
933
- Target2["TOP"] = "TOP";
934
- return Target2;
935
- })(Target || {});
936
- var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
937
- AnimationType2["VIEW"] = "VIEW";
938
- AnimationType2["POINTER"] = "POINTER";
939
- return AnimationType2;
940
- })(AnimationType || {});
941
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
942
- EntranceEffectType2["FADE"] = "FADE";
943
- EntranceEffectType2["ARC"] = "ARC";
944
- EntranceEffectType2["BLUR"] = "BLUR";
945
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
946
- EntranceEffectType2["DROP"] = "DROP";
947
- EntranceEffectType2["EXPAND"] = "EXPAND";
948
- EntranceEffectType2["FLIP"] = "FLIP";
949
- EntranceEffectType2["FLOAT"] = "FLOAT";
950
- EntranceEffectType2["FOLD"] = "FOLD";
951
- EntranceEffectType2["GLIDE"] = "GLIDE";
952
- EntranceEffectType2["REVEAL"] = "REVEAL";
953
- EntranceEffectType2["SHAPE"] = "SHAPE";
954
- EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
955
- EntranceEffectType2["SLIDE"] = "SLIDE";
956
- EntranceEffectType2["SPIN"] = "SPIN";
957
- EntranceEffectType2["TILT"] = "TILT";
958
- EntranceEffectType2["TURN"] = "TURN";
959
- EntranceEffectType2["WINK"] = "WINK";
960
- return EntranceEffectType2;
961
- })(EntranceEffectType || {});
962
- var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
963
- LoopEffectType2["BOUNCE"] = "BOUNCE";
964
- LoopEffectType2["BREATHE"] = "BREATHE";
965
- LoopEffectType2["CROSS"] = "CROSS";
966
- LoopEffectType2["FLASH"] = "FLASH";
967
- LoopEffectType2["FLIP"] = "FLIP";
968
- LoopEffectType2["FOLD"] = "FOLD";
969
- LoopEffectType2["JELLO"] = "JELLO";
970
- LoopEffectType2["POKE"] = "POKE";
971
- LoopEffectType2["PULSE"] = "PULSE";
972
- LoopEffectType2["RUBBER"] = "RUBBER";
973
- LoopEffectType2["SPIN"] = "SPIN";
974
- LoopEffectType2["SWING"] = "SWING";
975
- LoopEffectType2["WIGGLE"] = "WIGGLE";
976
- return LoopEffectType2;
977
- })(LoopEffectType || {});
978
- var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
979
- PointerEffectType2["AIRY"] = "AIRY";
980
- PointerEffectType2["BLOB"] = "BLOB";
981
- PointerEffectType2["BLUR"] = "BLUR";
982
- PointerEffectType2["SCALE"] = "SCALE";
983
- PointerEffectType2["SKEW"] = "SKEW";
984
- PointerEffectType2["SWIVEL"] = "SWIVEL";
985
- PointerEffectType2["TILT_3D"] = "TILT_3D";
986
- PointerEffectType2["TRACK"] = "TRACK";
987
- PointerEffectType2["TRACK_3D"] = "TRACK_3D";
988
- return PointerEffectType2;
989
- })(PointerEffectType || {});
990
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
991
- TextAlignment2["AUTO"] = "AUTO";
992
- TextAlignment2["LEFT"] = "LEFT";
993
- TextAlignment2["RIGHT"] = "RIGHT";
994
- TextAlignment2["CENTER"] = "CENTER";
995
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
996
- return TextAlignment2;
997
- })(TextAlignment || {});
998
- var LineCap = /* @__PURE__ */ ((LineCap2) => {
999
- LineCap2["SQUARE"] = "SQUARE";
1000
- LineCap2["ROUND"] = "ROUND";
1001
- return LineCap2;
1002
- })(LineCap || {});
1003
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1004
- LineStyle2["SINGLE"] = "SINGLE";
1005
- LineStyle2["DOUBLE"] = "DOUBLE";
1006
- LineStyle2["DASHED"] = "DASHED";
1007
- LineStyle2["DOTTED"] = "DOTTED";
1008
- return LineStyle2;
1009
- })(LineStyle || {});
1010
- var Width = /* @__PURE__ */ ((Width2) => {
1011
- Width2["LARGE"] = "LARGE";
1012
- Width2["MEDIUM"] = "MEDIUM";
1013
- Width2["SMALL"] = "SMALL";
1014
- return Width2;
1015
- })(Width || {});
1016
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
1017
- DividerDataAlignment2["CENTER"] = "CENTER";
1018
- DividerDataAlignment2["LEFT"] = "LEFT";
1019
- DividerDataAlignment2["RIGHT"] = "RIGHT";
1020
- return DividerDataAlignment2;
1021
- })(DividerDataAlignment || {});
1022
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
1023
- ViewMode2["NONE"] = "NONE";
1024
- ViewMode2["FULL"] = "FULL";
1025
- ViewMode2["MINI"] = "MINI";
1026
- return ViewMode2;
1027
- })(ViewMode || {});
1028
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
1029
- LayoutType2["COLLAGE"] = "COLLAGE";
1030
- LayoutType2["MASONRY"] = "MASONRY";
1031
- LayoutType2["GRID"] = "GRID";
1032
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
1033
- LayoutType2["SLIDER"] = "SLIDER";
1034
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
1035
- LayoutType2["PANORAMA"] = "PANORAMA";
1036
- LayoutType2["COLUMN"] = "COLUMN";
1037
- LayoutType2["MAGIC"] = "MAGIC";
1038
- LayoutType2["FULLSIZE"] = "FULLSIZE";
1039
- return LayoutType2;
1040
- })(LayoutType || {});
1041
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
1042
- Orientation2["ROWS"] = "ROWS";
1043
- Orientation2["COLUMNS"] = "COLUMNS";
1044
- return Orientation2;
1045
- })(Orientation || {});
1046
- var Crop = /* @__PURE__ */ ((Crop2) => {
1047
- Crop2["FILL"] = "FILL";
1048
- Crop2["FIT"] = "FIT";
1049
- return Crop2;
1050
- })(Crop || {});
1051
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
1052
- ThumbnailsAlignment2["TOP"] = "TOP";
1053
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
1054
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
1055
- ThumbnailsAlignment2["LEFT"] = "LEFT";
1056
- ThumbnailsAlignment2["NONE"] = "NONE";
1057
- return ThumbnailsAlignment2;
1058
- })(ThumbnailsAlignment || {});
1059
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
1060
- GIFType2["NORMAL"] = "NORMAL";
1061
- GIFType2["STICKER"] = "STICKER";
1062
- return GIFType2;
1063
- })(GIFType || {});
1064
- var Source = /* @__PURE__ */ ((Source2) => {
1065
- Source2["HTML"] = "HTML";
1066
- Source2["ADSENSE"] = "ADSENSE";
1067
- Source2["AI"] = "AI";
1068
- Source2["AI_WIDGET"] = "AI_WIDGET";
1069
- return Source2;
1070
- })(Source || {});
1071
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
1072
- StylesPosition2["START"] = "START";
1073
- StylesPosition2["END"] = "END";
1074
- StylesPosition2["TOP"] = "TOP";
1075
- StylesPosition2["HIDDEN"] = "HIDDEN";
1076
- return StylesPosition2;
1077
- })(StylesPosition || {});
1078
- var MapType = /* @__PURE__ */ ((MapType2) => {
1079
- MapType2["ROADMAP"] = "ROADMAP";
1080
- MapType2["SATELITE"] = "SATELITE";
1081
- MapType2["HYBRID"] = "HYBRID";
1082
- MapType2["TERRAIN"] = "TERRAIN";
1083
- return MapType2;
1084
- })(MapType || {});
1085
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1086
- ViewRole2["CREATOR"] = "CREATOR";
1087
- ViewRole2["VOTERS"] = "VOTERS";
1088
- ViewRole2["EVERYONE"] = "EVERYONE";
1089
- return ViewRole2;
1090
- })(ViewRole || {});
1091
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1092
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1093
- VoteRole2["ALL"] = "ALL";
1094
- return VoteRole2;
1095
- })(VoteRole || {});
1096
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1097
- PollLayoutType2["LIST"] = "LIST";
1098
- PollLayoutType2["GRID"] = "GRID";
1099
- return PollLayoutType2;
1100
- })(PollLayoutType || {});
1101
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1102
- PollLayoutDirection2["LTR"] = "LTR";
1103
- PollLayoutDirection2["RTL"] = "RTL";
1104
- return PollLayoutDirection2;
1105
- })(PollLayoutDirection || {});
1106
- var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
1107
- PollDesignBackgroundType2["COLOR"] = "COLOR";
1108
- PollDesignBackgroundType2["IMAGE"] = "IMAGE";
1109
- PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
1110
- return PollDesignBackgroundType2;
1111
- })(PollDesignBackgroundType || {});
1112
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1113
- DecorationType2["BOLD"] = "BOLD";
1114
- DecorationType2["ITALIC"] = "ITALIC";
1115
- DecorationType2["UNDERLINE"] = "UNDERLINE";
1116
- DecorationType2["SPOILER"] = "SPOILER";
1117
- DecorationType2["ANCHOR"] = "ANCHOR";
1118
- DecorationType2["MENTION"] = "MENTION";
1119
- DecorationType2["LINK"] = "LINK";
1120
- DecorationType2["COLOR"] = "COLOR";
1121
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1122
- DecorationType2["EXTERNAL"] = "EXTERNAL";
1123
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1124
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1125
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1126
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1127
- DecorationType2["SKETCH"] = "SKETCH";
1128
- return DecorationType2;
1129
- })(DecorationType || {});
1130
- var FontType = /* @__PURE__ */ ((FontType2) => {
1131
- FontType2["PX"] = "PX";
1132
- FontType2["EM"] = "EM";
1133
- return FontType2;
1134
- })(FontType || {});
1135
- var Variant = /* @__PURE__ */ ((Variant2) => {
1136
- Variant2["UNDERLINE"] = "UNDERLINE";
1137
- Variant2["BOX"] = "BOX";
1138
- Variant2["CIRCLE"] = "CIRCLE";
1139
- Variant2["HIGHLIGHT"] = "HIGHLIGHT";
1140
- Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
1141
- Variant2["CROSSED_OFF"] = "CROSSED_OFF";
1142
- return Variant2;
1143
- })(Variant || {});
1144
- var Position = /* @__PURE__ */ ((Position2) => {
1145
- Position2["START"] = "START";
1146
- Position2["END"] = "END";
1147
- Position2["TOP"] = "TOP";
1148
- return Position2;
1149
- })(Position || {});
1150
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1151
- AspectRatio2["SQUARE"] = "SQUARE";
1152
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
1153
- return AspectRatio2;
1154
- })(AspectRatio || {});
1155
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
1156
- Resizing2["FILL"] = "FILL";
1157
- Resizing2["FIT"] = "FIT";
1158
- return Resizing2;
1159
- })(Resizing || {});
1160
- var Placement = /* @__PURE__ */ ((Placement2) => {
1161
- Placement2["IMAGE"] = "IMAGE";
1162
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1163
- return Placement2;
1164
- })(Placement || {});
1165
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1166
- CardStylesType2["CONTAINED"] = "CONTAINED";
1167
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
1168
- return CardStylesType2;
1169
- })(CardStylesType || {});
1170
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
1171
- Alignment2["START"] = "START";
1172
- Alignment2["CENTER"] = "CENTER";
1173
- Alignment2["END"] = "END";
1174
- return Alignment2;
1175
- })(Alignment || {});
1176
- var Layout = /* @__PURE__ */ ((Layout2) => {
1177
- Layout2["STACKED"] = "STACKED";
1178
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1179
- return Layout2;
1180
- })(Layout || {});
1181
- var AppType = /* @__PURE__ */ ((AppType2) => {
1182
- AppType2["PRODUCT"] = "PRODUCT";
1183
- AppType2["EVENT"] = "EVENT";
1184
- AppType2["BOOKING"] = "BOOKING";
1185
- return AppType2;
1186
- })(AppType || {});
1187
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1188
- InitialExpandedItems2["FIRST"] = "FIRST";
1189
- InitialExpandedItems2["ALL"] = "ALL";
1190
- InitialExpandedItems2["NONE"] = "NONE";
1191
- return InitialExpandedItems2;
1192
- })(InitialExpandedItems || {});
1193
- var Direction = /* @__PURE__ */ ((Direction2) => {
1194
- Direction2["LTR"] = "LTR";
1195
- Direction2["RTL"] = "RTL";
1196
- return Direction2;
1197
- })(Direction || {});
1198
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1199
- VerticalAlignment2["TOP"] = "TOP";
1200
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
1201
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
1202
- return VerticalAlignment2;
1203
- })(VerticalAlignment || {});
1204
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
1205
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
1206
- return NullValue2;
1207
- })(NullValue || {});
1208
- var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
1209
- ImageScalingScaling2["AUTO"] = "AUTO";
1210
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
1211
- ImageScalingScaling2["COVER"] = "COVER";
1212
- return ImageScalingScaling2;
1213
- })(ImageScalingScaling || {});
1214
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1215
- ImagePosition2["CENTER"] = "CENTER";
1216
- ImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1217
- ImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1218
- ImagePosition2["TOP"] = "TOP";
1219
- ImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1220
- ImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1221
- ImagePosition2["BOTTOM"] = "BOTTOM";
1222
- ImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1223
- ImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1224
- return ImagePosition2;
1225
- })(ImagePosition || {});
1226
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1227
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
1228
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1229
- return LayoutDataBackgroundType2;
1230
- })(LayoutDataBackgroundType || {});
1231
- var Origin = /* @__PURE__ */ ((Origin2) => {
1232
- Origin2["IMAGE"] = "IMAGE";
1233
- Origin2["LAYOUT"] = "LAYOUT";
1234
- return Origin2;
1235
- })(Origin || {});
1236
- var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1237
- BannerPosition2["TOP"] = "TOP";
1238
- BannerPosition2["BOTTOM"] = "BOTTOM";
1239
- return BannerPosition2;
1240
- })(BannerPosition || {});
1241
- var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
1242
- LayerEffect2["CENTER"] = "CENTER";
1243
- LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
1244
- LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
1245
- return LayerEffect2;
1246
- })(LayerEffect || {});
1247
- var Shape = /* @__PURE__ */ ((Shape2) => {
1248
- Shape2["ELLIPSE"] = "ELLIPSE";
1249
- Shape2["TILT"] = "TILT";
1250
- Shape2["LIQUID"] = "LIQUID";
1251
- Shape2["LEFT_WAVE"] = "LEFT_WAVE";
1252
- Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
1253
- Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
1254
- Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
1255
- Shape2["DUNES"] = "DUNES";
1256
- Shape2["WAVES"] = "WAVES";
1257
- Shape2["TRIANGLE"] = "TRIANGLE";
1258
- Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
1259
- Shape2["PLANTS"] = "PLANTS";
1260
- Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
1261
- Shape2["PIXELS"] = "PIXELS";
1262
- Shape2["PAINT"] = "PAINT";
1263
- Shape2["CLOUDS"] = "CLOUDS";
1264
- Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
1265
- Shape2["STRIPES"] = "STRIPES";
1266
- Shape2["BLOBS"] = "BLOBS";
1267
- Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
1268
- Shape2["HILL"] = "HILL";
1269
- Shape2["BRUSH"] = "BRUSH";
1270
- Shape2["PEAKS"] = "PEAKS";
1271
- Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
1272
- return Shape2;
1273
- })(Shape || {});
1274
- var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
1275
- BackdropType2["COLOR"] = "COLOR";
1276
- BackdropType2["GRADIENT"] = "GRADIENT";
1277
- return BackdropType2;
1278
- })(BackdropType || {});
1279
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1280
- VerticalAlignmentAlignment2["TOP"] = "TOP";
1281
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1282
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1283
- return VerticalAlignmentAlignment2;
1284
- })(VerticalAlignmentAlignment || {});
1285
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1286
- ResponsivenessBehaviour2["STACK"] = "STACK";
1287
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
1288
- return ResponsivenessBehaviour2;
1289
- })(ResponsivenessBehaviour || {});
1290
- var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
1291
- DesignTarget2["LAYOUT"] = "LAYOUT";
1292
- DesignTarget2["CELL"] = "CELL";
1293
- return DesignTarget2;
1294
- })(DesignTarget || {});
1295
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
1296
- Scaling2["AUTO"] = "AUTO";
1297
- Scaling2["CONTAIN"] = "CONTAIN";
1298
- Scaling2["COVER"] = "COVER";
1299
- return Scaling2;
1300
- })(Scaling || {});
1301
- var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
1302
- ImagePositionPosition2["CENTER"] = "CENTER";
1303
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
1304
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1305
- ImagePositionPosition2["TOP"] = "TOP";
1306
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
1307
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
1308
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
1309
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1310
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1311
- return ImagePositionPosition2;
1312
- })(ImagePositionPosition || {});
1313
- var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1314
- CardDataBackgroundType2["COLOR"] = "COLOR";
1315
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1316
- return CardDataBackgroundType2;
1317
- })(CardDataBackgroundType || {});
1318
- var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1319
- ListStyle2["PLAIN"] = "PLAIN";
1320
- ListStyle2["NUMBERED"] = "NUMBERED";
1321
- ListStyle2["LETTERS"] = "LETTERS";
1322
- ListStyle2["ROMAN"] = "ROMAN";
1323
- ListStyle2["BULLETED"] = "BULLETED";
1324
- ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1325
- ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1326
- return ListStyle2;
1327
- })(ListStyle || {});
1328
- var Indentation = /* @__PURE__ */ ((Indentation2) => {
1329
- Indentation2["NESTED"] = "NESTED";
1330
- Indentation2["FLAT"] = "FLAT";
1331
- return Indentation2;
1332
- })(Indentation || {});
1333
- var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
1334
- SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
1335
- SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
1336
- SmartBlockDataType2["STATS"] = "STATS";
1337
- SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
1338
- SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
1339
- SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
1340
- SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
1341
- SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
1342
- SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
1343
- SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
1344
- SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
1345
- SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
1346
- SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
1347
- SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
1348
- SmartBlockDataType2["TIMELINE"] = "TIMELINE";
1349
- SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
1350
- SmartBlockDataType2["PILLS"] = "PILLS";
1351
- SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
1352
- SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
1353
- SmartBlockDataType2["CIRCLE"] = "CIRCLE";
1354
- SmartBlockDataType2["PYRAMID"] = "PYRAMID";
1355
- SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
1356
- SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
1357
- return SmartBlockDataType2;
1358
- })(SmartBlockDataType || {});
1359
- var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
1360
- ColumnSize2["SMALL"] = "SMALL";
1361
- ColumnSize2["MEDIUM"] = "MEDIUM";
1362
- ColumnSize2["LARGE"] = "LARGE";
1363
- ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
1364
- return ColumnSize2;
1365
- })(ColumnSize || {});
1366
- var Type = /* @__PURE__ */ ((Type2) => {
1367
- Type2["FIRST_PRIORITY"] = "FIRST_PRIORITY";
1368
- Type2["SECOND_PRIORITY"] = "SECOND_PRIORITY";
1369
- Type2["THIRD_PRIORITY"] = "THIRD_PRIORITY";
1370
- return Type2;
1371
- })(Type || {});
1372
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1373
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1374
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1375
- WebhookIdentityType2["MEMBER"] = "MEMBER";
1376
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1377
- WebhookIdentityType2["APP"] = "APP";
1378
- return WebhookIdentityType2;
1379
- })(WebhookIdentityType || {});
1380
- async function getForm2(eventId) {
1381
- const { httpClient, sideEffects } = arguments[1];
1382
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ eventId });
1383
- const reqOpts = getForm(payload);
1384
- sideEffects?.onSiteCall?.();
1385
- try {
1386
- const result = await httpClient.request(reqOpts);
1387
- sideEffects?.onSuccess?.(result);
1388
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data)?.form;
1389
- } catch (err) {
1390
- const transformedError = (0, import_transform_error.transformError)(
1391
- err,
1392
- {
1393
- spreadPathsToArguments: {},
1394
- explicitPathsToArguments: { eventId: "$[0]" },
1395
- singleArgumentUnchanged: false
1396
- },
1397
- ["eventId"]
1398
- );
1399
- sideEffects?.onError?.(err);
1400
- throw transformedError;
1401
- }
1402
- }
1403
- async function addControl2(eventId, options) {
1404
- const { httpClient, sideEffects } = arguments[2];
1405
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1406
- eventId,
1407
- phone: options?.phone,
1408
- address: options?.address,
1409
- date: options?.date,
1410
- additionalGuests: options?.additionalGuests,
1411
- dropdown: options?.dropdown,
1412
- checkbox: options?.checkbox,
1413
- text: options?.text,
1414
- radioButton: options?.radioButton
1415
- });
1416
- const reqOpts = addControl(payload);
1417
- sideEffects?.onSiteCall?.();
1418
- try {
1419
- const result = await httpClient.request(reqOpts);
1420
- sideEffects?.onSuccess?.(result);
1421
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1422
- } catch (err) {
1423
- const transformedError = (0, import_transform_error.transformError)(
1424
- err,
1425
- {
1426
- spreadPathsToArguments: {},
1427
- explicitPathsToArguments: {
1428
- eventId: "$[0]",
1429
- phone: "$[1].phone",
1430
- address: "$[1].address",
1431
- date: "$[1].date",
1432
- additionalGuests: "$[1].additionalGuests",
1433
- dropdown: "$[1].dropdown",
1434
- checkbox: "$[1].checkbox",
1435
- text: "$[1].text",
1436
- radioButton: "$[1].radioButton"
1437
- },
1438
- singleArgumentUnchanged: false
1439
- },
1440
- ["eventId", "options"]
1441
- );
1442
- sideEffects?.onError?.(err);
1443
- throw transformedError;
1444
- }
1445
- }
1446
- async function updateControl2(identifiers, options) {
1447
- const { httpClient, sideEffects } = arguments[2];
1448
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1449
- eventId: identifiers?.eventId,
1450
- orderIndex: options?.orderIndex,
1451
- phone: options?.phone,
1452
- address: options?.address,
1453
- date: options?.date,
1454
- additionalGuests: options?.additionalGuests,
1455
- dropdown: options?.dropdown,
1456
- checkbox: options?.checkbox,
1457
- text: options?.text,
1458
- name: options?.name,
1459
- email: options?.email,
1460
- radioButton: options?.radioButton
1461
- });
1462
- const reqOpts = updateControl(payload);
1463
- sideEffects?.onSiteCall?.();
1464
- try {
1465
- const result = await httpClient.request(reqOpts);
1466
- sideEffects?.onSuccess?.(result);
1467
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1468
- } catch (err) {
1469
- const transformedError = (0, import_transform_error.transformError)(
1470
- err,
1471
- {
1472
- spreadPathsToArguments: {},
1473
- explicitPathsToArguments: {
1474
- eventId: "$[0].eventId",
1475
- orderIndex: "$[1].orderIndex",
1476
- phone: "$[1].phone",
1477
- address: "$[1].address",
1478
- date: "$[1].date",
1479
- additionalGuests: "$[1].additionalGuests",
1480
- dropdown: "$[1].dropdown",
1481
- checkbox: "$[1].checkbox",
1482
- text: "$[1].text",
1483
- name: "$[1].name",
1484
- email: "$[1].email",
1485
- radioButton: "$[1].radioButton"
1486
- },
1487
- singleArgumentUnchanged: false
1488
- },
1489
- ["identifiers", "options"]
1490
- );
1491
- sideEffects?.onError?.(err);
1492
- throw transformedError;
1493
- }
1494
- }
1495
- async function deleteControl2(identifiers) {
1496
- const { httpClient, sideEffects } = arguments[1];
1497
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1498
- eventId: identifiers?.eventId
1499
- });
1500
- const reqOpts = deleteControl(payload);
1501
- sideEffects?.onSiteCall?.();
1502
- try {
1503
- const result = await httpClient.request(reqOpts);
1504
- sideEffects?.onSuccess?.(result);
1505
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1506
- } catch (err) {
1507
- const transformedError = (0, import_transform_error.transformError)(
1508
- err,
1509
- {
1510
- spreadPathsToArguments: {},
1511
- explicitPathsToArguments: { eventId: "$[0].eventId" },
1512
- singleArgumentUnchanged: false
1513
- },
1514
- ["identifiers"]
1515
- );
1516
- sideEffects?.onError?.(err);
1517
- throw transformedError;
1518
- }
1519
- }
1520
- async function updateMessages2(eventId, options) {
1521
- const { httpClient, sideEffects } = arguments[2];
1522
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1523
- eventId,
1524
- fields: options?.fields,
1525
- messages: options?.messages
1526
- });
1527
- const reqOpts = updateMessages(payload);
1528
- sideEffects?.onSiteCall?.();
1529
- try {
1530
- const result = await httpClient.request(reqOpts);
1531
- sideEffects?.onSuccess?.(result);
1532
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1533
- } catch (err) {
1534
- const transformedError = (0, import_transform_error.transformError)(
1535
- err,
1536
- {
1537
- spreadPathsToArguments: {},
1538
- explicitPathsToArguments: {
1539
- eventId: "$[0]",
1540
- fields: "$[1].fields",
1541
- messages: "$[1].messages"
1542
- },
1543
- singleArgumentUnchanged: false
1544
- },
1545
- ["eventId", "options"]
1546
- );
1547
- sideEffects?.onError?.(err);
1548
- throw transformedError;
1549
- }
1550
- }
1551
- async function publishDraft2(eventId) {
1552
- const { httpClient, sideEffects } = arguments[1];
1553
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ eventId });
1554
- const reqOpts = publishDraft(payload);
1555
- sideEffects?.onSiteCall?.();
1556
- try {
1557
- const result = await httpClient.request(reqOpts);
1558
- sideEffects?.onSuccess?.(result);
1559
- return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
1560
- } catch (err) {
1561
- const transformedError = (0, import_transform_error.transformError)(
1562
- err,
1563
- {
1564
- spreadPathsToArguments: {},
1565
- explicitPathsToArguments: { eventId: "$[0]" },
1566
- singleArgumentUnchanged: false
1567
- },
1568
- ["eventId"]
1569
- );
1570
- sideEffects?.onError?.(err);
1571
- throw transformedError;
1572
- }
1573
- }
1574
- async function discardDraft2(eventId) {
1575
- const { httpClient, sideEffects } = arguments[1];
1576
- const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ eventId });
1577
- const reqOpts = discardDraft(payload);
1578
- sideEffects?.onSiteCall?.();
1579
- try {
1580
- const result = await httpClient.request(reqOpts);
1581
- sideEffects?.onSuccess?.(result);
1582
- } catch (err) {
1583
- const transformedError = (0, import_transform_error.transformError)(
1584
- err,
1585
- {
1586
- spreadPathsToArguments: {},
1587
- explicitPathsToArguments: { eventId: "$[0]" },
1588
- singleArgumentUnchanged: false
1589
- },
1590
- ["eventId"]
1591
- );
1592
- sideEffects?.onError?.(err);
1593
- throw transformedError;
1594
- }
1595
- }
1596
-
1597
- // src/events-v1-form-forms.public.ts
1598
- function getForm3(httpClient) {
1599
- return (eventId) => getForm2(
1600
- eventId,
1601
- // @ts-ignore
1602
- { httpClient }
1603
- );
1604
- }
1605
- function addControl3(httpClient) {
1606
- return (eventId, options) => addControl2(
1607
- eventId,
1608
- options,
1609
- // @ts-ignore
1610
- { httpClient }
1611
- );
1612
- }
1613
- function updateControl3(httpClient) {
1614
- return (identifiers, options) => updateControl2(
1615
- identifiers,
1616
- options,
1617
- // @ts-ignore
1618
- { httpClient }
1619
- );
1620
- }
1621
- function deleteControl3(httpClient) {
1622
- return (identifiers) => deleteControl2(
1623
- identifiers,
1624
- // @ts-ignore
1625
- { httpClient }
1626
- );
1627
- }
1628
- function updateMessages3(httpClient) {
1629
- return (eventId, options) => updateMessages2(
1630
- eventId,
1631
- options,
1632
- // @ts-ignore
1633
- { httpClient }
1634
- );
1635
- }
1636
- function publishDraft3(httpClient) {
1637
- return (eventId) => publishDraft2(
1638
- eventId,
1639
- // @ts-ignore
1640
- { httpClient }
1641
- );
1642
- }
1643
- function discardDraft3(httpClient) {
1644
- return (eventId) => discardDraft2(
1645
- eventId,
1646
- // @ts-ignore
1647
- { httpClient }
1648
- );
1649
- }
1650
- var onFormEventUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
1651
- "wix.events.events.EventUpdated",
1652
- false,
1653
- (event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
1654
- (0, import_transform_paths2.transformPaths)(event, [
1655
- {
1656
- transformFn: import_timestamp.transformRESTTimestampToSDKTimestamp,
1657
- paths: [
1658
- { path: "data.timestamp" },
1659
- { path: "data.scheduleConfig.startDate" },
1660
- { path: "data.scheduleConfig.endDate" },
1661
- { path: "data.scheduleConfig.recurrences.occurrences.startDate" },
1662
- { path: "data.scheduleConfig.recurrences.occurrences.endDate" },
1663
- { path: "data.event.created" },
1664
- { path: "data.event.modified" },
1665
- { path: "data.event.publishedDate" },
1666
- { path: "data.event.scheduling.config.startDate" },
1667
- { path: "data.event.scheduling.config.endDate" },
1668
- {
1669
- path: "data.event.scheduling.config.recurrences.occurrences.startDate"
1670
- },
1671
- {
1672
- path: "data.event.scheduling.config.recurrences.occurrences.endDate"
1673
- },
1674
- { path: "data.event.registration.rsvpCollection.config.startDate" },
1675
- { path: "data.event.registration.rsvpCollection.config.endDate" },
1676
- { path: "data.event.dashboard.cancellationInfo.canceledDate" },
1677
- { path: "data.event.categories.createdDate" },
1678
- { path: "data.event.longDescription.metadata.createdTimestamp" },
1679
- { path: "data.event.longDescription.metadata.updatedTimestamp" },
1680
- { path: "data.event.badges.functionUpdateDate" }
1681
- ]
1682
- },
1683
- {
1684
- transformFn: import_field_mask2.transformRESTFieldMaskToSDKFieldMask,
1685
- paths: [{ path: "data.fields" }]
1686
- },
1687
- {
1688
- transformFn: import_address.transformRESTAddressToSDKAddress,
1689
- paths: [
1690
- { path: "data.location.fullAddress" },
1691
- { path: "data.event.location.fullAddress" }
1692
- ]
1693
- },
1694
- {
1695
- transformFn: import_float.transformRESTFloatToSDKFloat,
1696
- paths: [
1697
- { path: "data.location.coordinates.lat" },
1698
- { path: "data.location.coordinates.lng" },
1699
- { path: "data.event.location.coordinates.lat" },
1700
- { path: "data.event.location.coordinates.lng" },
1701
- {
1702
- path: "data.event.longDescription.nodes.buttonData.styles.background.gradient.centerX"
1703
- },
1704
- {
1705
- path: "data.event.longDescription.nodes.buttonData.styles.background.gradient.centerY"
1706
- },
1707
- {
1708
- path: "data.event.longDescription.nodes.buttonData.styles.background.gradient.stops.position"
1709
- },
1710
- {
1711
- path: "data.event.longDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX"
1712
- },
1713
- {
1714
- path: "data.event.longDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY"
1715
- },
1716
- {
1717
- path: "data.event.longDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position"
1718
- },
1719
- {
1720
- path: "data.event.longDescription.nodes.galleryData.items.image.media.duration"
1721
- },
1722
- {
1723
- path: "data.event.longDescription.nodes.galleryData.items.video.media.duration"
1724
- },
1725
- {
1726
- path: "data.event.longDescription.nodes.galleryData.items.video.thumbnail.duration"
1727
- },
1728
- {
1729
- path: "data.event.longDescription.nodes.galleryData.options.item.ratio"
1730
- },
1731
- {
1732
- path: "data.event.longDescription.nodes.imageData.image.duration"
1733
- },
1734
- { path: "data.event.longDescription.nodes.imageData.crop.x" },
1735
- { path: "data.event.longDescription.nodes.imageData.crop.y" },
1736
- { path: "data.event.longDescription.nodes.imageData.crop.width" },
1737
- { path: "data.event.longDescription.nodes.imageData.crop.height" },
1738
- {
1739
- path: "data.event.longDescription.nodes.mapData.mapSettings.lat"
1740
- },
1741
- {
1742
- path: "data.event.longDescription.nodes.mapData.mapSettings.lng"
1743
- },
1744
- {
1745
- path: "data.event.longDescription.nodes.pollData.poll.image.duration"
1746
- },
1747
- {
1748
- path: "data.event.longDescription.nodes.pollData.poll.options.image.duration"
1749
- },
1750
- {
1751
- path: "data.event.longDescription.nodes.pollData.design.poll.background.image.duration"
1752
- },
1753
- {
1754
- path: "data.event.longDescription.nodes.appEmbedData.image.duration"
1755
- },
1756
- {
1757
- path: "data.event.longDescription.nodes.videoData.video.duration"
1758
- },
1759
- {
1760
- path: "data.event.longDescription.nodes.videoData.thumbnail.duration"
1761
- },
1762
- {
1763
- path: "data.event.longDescription.nodes.audioData.audio.duration"
1764
- },
1765
- {
1766
- path: "data.event.longDescription.nodes.audioData.coverImage.duration"
1767
- },
1768
- {
1769
- path: "data.event.longDescription.nodes.layoutData.backgroundImage.media.duration"
1770
- },
1771
- {
1772
- path: "data.event.longDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX"
1773
- },
1774
- {
1775
- path: "data.event.longDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY"
1776
- },
1777
- {
1778
- path: "data.event.longDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position"
1779
- },
1780
- {
1781
- path: "data.event.longDescription.nodes.layoutData.backdropImage.media.duration"
1782
- },
1783
- {
1784
- path: "data.event.longDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX"
1785
- },
1786
- {
1787
- path: "data.event.longDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY"
1788
- },
1789
- {
1790
- path: "data.event.longDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position"
1791
- },
1792
- {
1793
- path: "data.event.longDescription.nodes.layoutData.background.gradient.centerX"
1794
- },
1795
- {
1796
- path: "data.event.longDescription.nodes.layoutData.background.gradient.centerY"
1797
- },
1798
- {
1799
- path: "data.event.longDescription.nodes.layoutData.background.gradient.stops.position"
1800
- },
1801
- {
1802
- path: "data.event.longDescription.nodes.layoutData.backdrop.gradient.centerX"
1803
- },
1804
- {
1805
- path: "data.event.longDescription.nodes.layoutData.backdrop.gradient.centerY"
1806
- },
1807
- {
1808
- path: "data.event.longDescription.nodes.layoutData.backdrop.gradient.stops.position"
1809
- },
1810
- {
1811
- path: "data.event.longDescription.nodes.shapeData.shape.duration"
1812
- },
1813
- {
1814
- path: "data.event.longDescription.nodes.cardData.background.gradient.centerX"
1815
- },
1816
- {
1817
- path: "data.event.longDescription.nodes.cardData.background.gradient.centerY"
1818
- },
1819
- {
1820
- path: "data.event.longDescription.nodes.cardData.background.gradient.stops.position"
1821
- },
1822
- {
1823
- path: "data.event.longDescription.nodes.cardData.backgroundImage.media.duration"
1824
- },
1825
- {
1826
- path: "data.event.longDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX"
1827
- },
1828
- {
1829
- path: "data.event.longDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY"
1830
- },
1831
- {
1832
- path: "data.event.longDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position"
1833
- },
1834
- { path: "data.event.longDescription.nodes.tocData.fontSize" },
1835
- { path: "data.event.longDescription.nodes.tocData.itemSpacing" },
1836
- {
1837
- path: "data.event.longDescription.nodes.smartBlockCellData.shape.duration"
1838
- }
1839
- ]
1840
- },
1841
- {
1842
- transformFn: import_image.transformRESTImageToSDKImage,
1843
- paths: [{ path: "data.event.mainImage" }]
1844
- }
1845
- ])
1846
- )
1847
- )();
1848
-
1849
- // src/events-v1-form-forms.context.ts
1850
- var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
1851
- var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
1852
- var getForm4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getForm3);
1853
- var addControl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(addControl3);
1854
- var updateControl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateControl3);
1855
- var deleteControl4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteControl3);
1856
- var updateMessages4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateMessages3);
1857
- var publishDraft4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(publishDraft3);
1858
- var discardDraft4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(discardDraft3);
1859
- var onFormEventUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
1860
- onFormEventUpdated
1861
- );
1862
- // Annotate the CommonJS export names for ESM import in node:
1863
- 0 && (module.exports = {
1864
- Alignment,
1865
- AnimationType,
1866
- AppType,
1867
- AspectRatio,
1868
- BackdropType,
1869
- BackgroundType,
1870
- BannerPosition,
1871
- ButtonDataType,
1872
- CancellationActorType,
1873
- CardDataBackgroundType,
1874
- CardStylesType,
1875
- CheckoutType,
1876
- ColumnSize,
1877
- ConferenceType,
1878
- Crop,
1879
- DecorationType,
1880
- DesignTarget,
1881
- Direction,
1882
- DividerDataAlignment,
1883
- EntranceEffectType,
1884
- EventStatus,
1885
- EventType,
1886
- FontType,
1887
- GIFType,
1888
- GradientType,
1889
- ImagePosition,
1890
- ImagePositionPosition,
1891
- ImageScalingScaling,
1892
- Indentation,
1893
- InitialExpandedItems,
1894
- InputControlType,
1895
- LayerEffect,
1896
- Layout,
1897
- LayoutDataBackgroundType,
1898
- LayoutType,
1899
- LineCap,
1900
- LineStyle,
1901
- ListStyle,
1902
- LocationType,
1903
- LoopEffectType,
1904
- MapType,
1905
- NodeType,
1906
- NullValue,
1907
- Orientation,
1908
- Origin,
1909
- Placement,
1910
- PluginContainerDataAlignment,
1911
- PointerEffectType,
1912
- PollDesignBackgroundType,
1913
- PollLayoutDirection,
1914
- PollLayoutType,
1915
- Position,
1916
- RegistrationStatus,
1917
- RequestedFields,
1918
- Resizing,
1919
- ResponsivenessBehaviour,
1920
- RsvpStatusOptions,
1921
- Scaling,
1922
- Shape,
1923
- SmartBlockDataType,
1924
- Source,
1925
- State,
1926
- Status,
1927
- StylesPosition,
1928
- SubdivisionType,
1929
- Target,
1930
- TaxType,
1931
- TextAlignment,
1932
- ThumbnailsAlignment,
1933
- Type,
1934
- ValueType,
1935
- Variant,
1936
- VerticalAlignment,
1937
- VerticalAlignmentAlignment,
1938
- ViewMode,
1939
- ViewRole,
1940
- VisitorType,
1941
- VoteRole,
1942
- WebhookIdentityType,
1943
- Width,
1944
- WidthType,
1945
- addControl,
1946
- deleteControl,
1947
- discardDraft,
1948
- getForm,
1949
- onFormEventUpdated,
1950
- publishDraft,
1951
- updateControl,
1952
- updateMessages
1953
- });
1954
- //# sourceMappingURL=index.js.map