@wix/auto_sdk_events_forms 1.0.34 → 1.0.36

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