@wix/auto_sdk_forms_submissions 1.0.154 → 1.0.156

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/{forms-v4-submission-submissions.universal-C4RKTvDI.d.ts → forms-v4-submission-submissions.universal-Dfm8IKXU.d.ts} +36 -28
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +3 -3
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +8 -3
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/{forms-v4-submission-submissions.universal-C4RKTvDI.d.mts → forms-v4-submission-submissions.universal-Dfm8IKXU.d.mts} +36 -28
  9. package/build/es/index.d.mts +2 -2
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +3 -3
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/es/meta.d.mts +8 -3
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/internal/cjs/{forms-v4-submission-submissions.universal-DK01-p3F.d.ts → forms-v4-submission-submissions.universal-JoamIElR.d.ts} +38 -30
  16. package/build/internal/cjs/index.d.ts +2 -2
  17. package/build/internal/cjs/index.typings.d.ts +3 -3
  18. package/build/internal/cjs/meta.d.ts +8 -3
  19. package/build/internal/es/{forms-v4-submission-submissions.universal-DK01-p3F.d.mts → forms-v4-submission-submissions.universal-JoamIElR.d.mts} +38 -30
  20. package/build/internal/es/index.d.mts +2 -2
  21. package/build/internal/es/index.typings.d.mts +3 -3
  22. package/build/internal/es/meta.d.mts +8 -3
  23. package/package.json +4 -11
  24. package/build/cjs/schemas.d.ts +0 -1351
  25. package/build/cjs/schemas.js +0 -2338
  26. package/build/cjs/schemas.js.map +0 -1
  27. package/build/es/schemas.d.mts +0 -1351
  28. package/build/es/schemas.mjs +0 -2252
  29. package/build/es/schemas.mjs.map +0 -1
  30. package/build/internal/cjs/index.js +0 -3462
  31. package/build/internal/cjs/index.js.map +0 -1
  32. package/build/internal/cjs/index.typings.js +0 -3054
  33. package/build/internal/cjs/index.typings.js.map +0 -1
  34. package/build/internal/cjs/meta.js +0 -2719
  35. package/build/internal/cjs/meta.js.map +0 -1
  36. package/build/internal/cjs/schemas.d.ts +0 -1351
  37. package/build/internal/cjs/schemas.js +0 -2338
  38. package/build/internal/cjs/schemas.js.map +0 -1
  39. package/build/internal/es/index.mjs +0 -3276
  40. package/build/internal/es/index.mjs.map +0 -1
  41. package/build/internal/es/index.typings.mjs +0 -2874
  42. package/build/internal/es/index.typings.mjs.map +0 -1
  43. package/build/internal/es/meta.mjs +0 -2538
  44. package/build/internal/es/meta.mjs.map +0 -1
  45. package/build/internal/es/schemas.d.mts +0 -1351
  46. package/build/internal/es/schemas.mjs +0 -2252
  47. package/build/internal/es/schemas.mjs.map +0 -1
  48. package/schemas/package.json +0 -3
@@ -1,3276 +0,0 @@
1
- // src/forms-v4-submission-submissions.public.ts
2
- import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
3
- import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
4
- import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
5
- import { EventDefinition } from "@wix/sdk-types";
6
-
7
- // src/forms-v4-submission-submissions.universal.ts
8
- import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
9
- import { queryBuilder } from "@wix/sdk-runtime/query-builder";
10
- import {
11
- renameKeysFromSDKRequestToRESTRequest,
12
- renameKeysFromRESTResponseToSDKResponse
13
- } from "@wix/sdk-runtime/rename-all-nested-keys";
14
-
15
- // src/forms-v4-submission-submissions.http.ts
16
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
17
- import { transformRESTBytesToSDKBytes } from "@wix/sdk-runtime/transformations/bytes";
18
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
19
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
20
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
21
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
22
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
23
- function resolveWixFormsV4FormSubmissionServiceUrl(opts) {
24
- const domainToMappings = {
25
- "api._api_base_domain_": [
26
- {
27
- srcPath: "/form-submission-service",
28
- destPath: ""
29
- }
30
- ],
31
- _: [
32
- {
33
- srcPath: "/_api/form-submission-service",
34
- destPath: ""
35
- }
36
- ],
37
- "manage._base_domain_": [
38
- {
39
- srcPath: "/_api/form-submission-service",
40
- destPath: ""
41
- },
42
- {
43
- srcPath: "/form-submission-service",
44
- destPath: ""
45
- }
46
- ],
47
- "www._base_domain_": [
48
- {
49
- srcPath: "/_api/form-submission-service",
50
- destPath: ""
51
- }
52
- ],
53
- "bo._base_domain_": [
54
- {
55
- srcPath: "/form-submission-service",
56
- destPath: ""
57
- }
58
- ],
59
- "wixbo.ai": [
60
- {
61
- srcPath: "/form-submission-service",
62
- destPath: ""
63
- }
64
- ],
65
- "wix-bo.com": [
66
- {
67
- srcPath: "/form-submission-service",
68
- destPath: ""
69
- }
70
- ],
71
- "www.wixapis.com": [
72
- {
73
- srcPath: "/form-submission-service",
74
- destPath: ""
75
- },
76
- {
77
- srcPath: "/_api/form-submission-service",
78
- destPath: ""
79
- },
80
- {
81
- srcPath: "/forms/v4/submissions",
82
- destPath: "/v4/submissions"
83
- }
84
- ],
85
- "apps._base_domain_": [
86
- {
87
- srcPath: "/form-submission-service",
88
- destPath: ""
89
- }
90
- ],
91
- "editor._base_domain_": [
92
- {
93
- srcPath: "/_api/form-submission-service",
94
- destPath: ""
95
- }
96
- ],
97
- "blocks._base_domain_": [
98
- {
99
- srcPath: "/_api/form-submission-service",
100
- destPath: ""
101
- }
102
- ],
103
- "create.editorx": [
104
- {
105
- srcPath: "/_api/form-submission-service",
106
- destPath: ""
107
- }
108
- ],
109
- "*.dev.wix-code.com": [
110
- {
111
- srcPath: "/_api/form-submission-service",
112
- destPath: ""
113
- }
114
- ],
115
- "*.wixforms.com": [
116
- {
117
- srcPath: "/_api/form-submission-service",
118
- destPath: ""
119
- }
120
- ],
121
- "apps.wixel.com": [
122
- {
123
- srcPath: "/_api/form-submission-service",
124
- destPath: ""
125
- }
126
- ],
127
- "*.wixel.com": [
128
- {
129
- srcPath: "/_api/form-submission-service",
130
- destPath: ""
131
- }
132
- ],
133
- "editor.wixapps.net": [
134
- {
135
- srcPath: "/_api/form-submission-service",
136
- destPath: ""
137
- }
138
- ]
139
- };
140
- return resolveUrl(Object.assign(opts, { domainToMappings }));
141
- }
142
- function resolveWixFormsV4FormSubmissionContactUpsertServiceUrl(opts) {
143
- const domainToMappings = {
144
- "bo._base_domain_": [
145
- {
146
- srcPath: "/form-submission-contact-mapping-service",
147
- destPath: ""
148
- }
149
- ],
150
- "wixbo.ai": [
151
- {
152
- srcPath: "/form-submission-contact-mapping-service",
153
- destPath: ""
154
- }
155
- ],
156
- "wix-bo.com": [
157
- {
158
- srcPath: "/form-submission-contact-mapping-service",
159
- destPath: ""
160
- }
161
- ],
162
- "www.wixapis.com": [
163
- {
164
- srcPath: "/form-submission-contact-mapping-service",
165
- destPath: ""
166
- },
167
- {
168
- srcPath: "/_api/form-submission-contact-mapping-service",
169
- destPath: ""
170
- }
171
- ],
172
- "*.dev.wix-code.com": [
173
- {
174
- srcPath: "/forms/contactupsert/v4/submissions-contacts",
175
- destPath: "/v4/submissions-contacts"
176
- }
177
- ],
178
- _: [
179
- {
180
- srcPath: "/forms/contactupsert/v4/submissions-contacts",
181
- destPath: "/v4/submissions-contacts"
182
- }
183
- ]
184
- };
185
- return resolveUrl(Object.assign(opts, { domainToMappings }));
186
- }
187
- var PACKAGE_NAME = "@wix/auto_sdk_forms_submissions";
188
- function upsertContactFromSubmission(payload) {
189
- function __upsertContactFromSubmission({ host }) {
190
- const metadata = {
191
- entityFqdn: "wix.forms.v4.submission",
192
- method: "POST",
193
- methodFqn: "wix.forms.v4.FormSubmissionContactUpsertService.UpsertContactFromSubmission",
194
- packageName: PACKAGE_NAME,
195
- migrationOptions: {
196
- optInTransformResponse: true
197
- },
198
- url: resolveWixFormsV4FormSubmissionContactUpsertServiceUrl({
199
- protoPath: "/v4/submissions-contacts",
200
- data: payload,
201
- host
202
- }),
203
- data: payload
204
- };
205
- return metadata;
206
- }
207
- return __upsertContactFromSubmission;
208
- }
209
- function createSubmission(payload) {
210
- function __createSubmission({ host }) {
211
- const serializedData = transformPaths(payload, [
212
- {
213
- transformFn: transformSDKTimestampToRESTTimestamp,
214
- paths: [
215
- { path: "submission.createdDate" },
216
- { path: "submission.updatedDate" }
217
- ]
218
- }
219
- ]);
220
- const metadata = {
221
- entityFqdn: "wix.forms.v4.submission",
222
- method: "POST",
223
- methodFqn: "wix.forms.v4.FormSubmissionService.CreateSubmission",
224
- packageName: PACKAGE_NAME,
225
- migrationOptions: {
226
- optInTransformResponse: true
227
- },
228
- url: resolveWixFormsV4FormSubmissionServiceUrl({
229
- protoPath: "/v4/submissions",
230
- data: serializedData,
231
- host
232
- }),
233
- data: serializedData,
234
- transformResponse: (payload2) => transformPaths(payload2, [
235
- {
236
- transformFn: transformRESTTimestampToSDKTimestamp,
237
- paths: [
238
- { path: "submission.createdDate" },
239
- { path: "submission.updatedDate" }
240
- ]
241
- }
242
- ])
243
- };
244
- return metadata;
245
- }
246
- return __createSubmission;
247
- }
248
- function getSubmission(payload) {
249
- function __getSubmission({ host }) {
250
- const metadata = {
251
- entityFqdn: "wix.forms.v4.submission",
252
- method: "GET",
253
- methodFqn: "wix.forms.v4.FormSubmissionService.GetSubmission",
254
- packageName: PACKAGE_NAME,
255
- migrationOptions: {
256
- optInTransformResponse: true
257
- },
258
- url: resolveWixFormsV4FormSubmissionServiceUrl({
259
- protoPath: "/v4/submissions/{submissionId}",
260
- data: payload,
261
- host
262
- }),
263
- params: toURLSearchParams(payload),
264
- transformResponse: (payload2) => transformPaths(payload2, [
265
- {
266
- transformFn: transformRESTTimestampToSDKTimestamp,
267
- paths: [
268
- { path: "submission.createdDate" },
269
- { path: "submission.updatedDate" }
270
- ]
271
- }
272
- ])
273
- };
274
- return metadata;
275
- }
276
- return __getSubmission;
277
- }
278
- function updateSubmission(payload) {
279
- function __updateSubmission({ host }) {
280
- const serializedData = transformPaths(payload, [
281
- {
282
- transformFn: transformSDKFieldMaskToRESTFieldMask,
283
- paths: [{ path: "mask" }]
284
- },
285
- {
286
- transformFn: transformSDKTimestampToRESTTimestamp,
287
- paths: [
288
- { path: "submission.createdDate" },
289
- { path: "submission.updatedDate" }
290
- ]
291
- }
292
- ]);
293
- const metadata = {
294
- entityFqdn: "wix.forms.v4.submission",
295
- method: "PATCH",
296
- methodFqn: "wix.forms.v4.FormSubmissionService.UpdateSubmission",
297
- packageName: PACKAGE_NAME,
298
- migrationOptions: {
299
- optInTransformResponse: true
300
- },
301
- url: resolveWixFormsV4FormSubmissionServiceUrl({
302
- protoPath: "/v4/submissions/{submission.id}",
303
- data: serializedData,
304
- host
305
- }),
306
- data: serializedData,
307
- transformResponse: (payload2) => transformPaths(payload2, [
308
- {
309
- transformFn: transformRESTTimestampToSDKTimestamp,
310
- paths: [
311
- { path: "submission.createdDate" },
312
- { path: "submission.updatedDate" }
313
- ]
314
- }
315
- ])
316
- };
317
- return metadata;
318
- }
319
- return __updateSubmission;
320
- }
321
- function confirmSubmission(payload) {
322
- function __confirmSubmission({ host }) {
323
- const metadata = {
324
- entityFqdn: "wix.forms.v4.submission",
325
- method: "POST",
326
- methodFqn: "wix.forms.v4.FormSubmissionService.ConfirmSubmission",
327
- packageName: PACKAGE_NAME,
328
- migrationOptions: {
329
- optInTransformResponse: true
330
- },
331
- url: resolveWixFormsV4FormSubmissionServiceUrl({
332
- protoPath: "/v4/submissions/{submissionId}/confirm",
333
- data: payload,
334
- host
335
- }),
336
- data: payload,
337
- transformResponse: (payload2) => transformPaths(payload2, [
338
- {
339
- transformFn: transformRESTTimestampToSDKTimestamp,
340
- paths: [
341
- { path: "submission.createdDate" },
342
- { path: "submission.updatedDate" }
343
- ]
344
- }
345
- ])
346
- };
347
- return metadata;
348
- }
349
- return __confirmSubmission;
350
- }
351
- function deleteSubmission(payload) {
352
- function __deleteSubmission({ host }) {
353
- const metadata = {
354
- entityFqdn: "wix.forms.v4.submission",
355
- method: "DELETE",
356
- methodFqn: "wix.forms.v4.FormSubmissionService.DeleteSubmission",
357
- packageName: PACKAGE_NAME,
358
- migrationOptions: {
359
- optInTransformResponse: true
360
- },
361
- url: resolveWixFormsV4FormSubmissionServiceUrl({
362
- protoPath: "/v4/submissions/{submissionId}",
363
- data: payload,
364
- host
365
- }),
366
- params: toURLSearchParams(payload)
367
- };
368
- return metadata;
369
- }
370
- return __deleteSubmission;
371
- }
372
- function bulkDeleteSubmission(payload) {
373
- function __bulkDeleteSubmission({ host }) {
374
- const metadata = {
375
- entityFqdn: "wix.forms.v4.submission",
376
- method: "POST",
377
- methodFqn: "wix.forms.v4.FormSubmissionService.BulkDeleteSubmission",
378
- packageName: PACKAGE_NAME,
379
- migrationOptions: {
380
- optInTransformResponse: true
381
- },
382
- url: resolveWixFormsV4FormSubmissionServiceUrl({
383
- protoPath: "/v4/bulk/submissions/delete",
384
- data: payload,
385
- host
386
- }),
387
- data: payload
388
- };
389
- return metadata;
390
- }
391
- return __bulkDeleteSubmission;
392
- }
393
- function restoreSubmissionFromTrashBin(payload) {
394
- function __restoreSubmissionFromTrashBin({ host }) {
395
- const metadata = {
396
- entityFqdn: "wix.forms.v4.submission",
397
- method: "POST",
398
- methodFqn: "wix.forms.v4.FormSubmissionService.RestoreSubmissionFromTrashBin",
399
- packageName: PACKAGE_NAME,
400
- migrationOptions: {
401
- optInTransformResponse: true
402
- },
403
- url: resolveWixFormsV4FormSubmissionServiceUrl({
404
- protoPath: "/v4/submissions/trash-bin/{submissionId}/restore",
405
- data: payload,
406
- host
407
- }),
408
- data: payload,
409
- transformResponse: (payload2) => transformPaths(payload2, [
410
- {
411
- transformFn: transformRESTTimestampToSDKTimestamp,
412
- paths: [
413
- { path: "submission.createdDate" },
414
- { path: "submission.updatedDate" }
415
- ]
416
- }
417
- ])
418
- };
419
- return metadata;
420
- }
421
- return __restoreSubmissionFromTrashBin;
422
- }
423
- function removeSubmissionFromTrashBin(payload) {
424
- function __removeSubmissionFromTrashBin({ host }) {
425
- const metadata = {
426
- entityFqdn: "wix.forms.v4.submission",
427
- method: "DELETE",
428
- methodFqn: "wix.forms.v4.FormSubmissionService.RemoveSubmissionFromTrashBin",
429
- packageName: PACKAGE_NAME,
430
- migrationOptions: {
431
- optInTransformResponse: true
432
- },
433
- url: resolveWixFormsV4FormSubmissionServiceUrl({
434
- protoPath: "/v4/submissions/trash-bin/{submissionId}",
435
- data: payload,
436
- host
437
- }),
438
- params: toURLSearchParams(payload)
439
- };
440
- return metadata;
441
- }
442
- return __removeSubmissionFromTrashBin;
443
- }
444
- function bulkRemoveSubmissionFromTrashBin(payload) {
445
- function __bulkRemoveSubmissionFromTrashBin({ host }) {
446
- const metadata = {
447
- entityFqdn: "wix.forms.v4.submission",
448
- method: "POST",
449
- methodFqn: "wix.forms.v4.FormSubmissionService.BulkRemoveSubmissionFromTrashBin",
450
- packageName: PACKAGE_NAME,
451
- migrationOptions: {
452
- optInTransformResponse: true
453
- },
454
- url: resolveWixFormsV4FormSubmissionServiceUrl({
455
- protoPath: "/v4/submissions/trash-bin/delete",
456
- data: payload,
457
- host
458
- }),
459
- data: payload
460
- };
461
- return metadata;
462
- }
463
- return __bulkRemoveSubmissionFromTrashBin;
464
- }
465
- function listDeletedSubmissions(payload) {
466
- function __listDeletedSubmissions({ host }) {
467
- const metadata = {
468
- entityFqdn: "wix.forms.v4.submission",
469
- method: "GET",
470
- methodFqn: "wix.forms.v4.FormSubmissionService.ListDeletedSubmissions",
471
- packageName: PACKAGE_NAME,
472
- migrationOptions: {
473
- optInTransformResponse: true
474
- },
475
- url: resolveWixFormsV4FormSubmissionServiceUrl({
476
- protoPath: "/v4/submissions/trash-bin",
477
- data: payload,
478
- host
479
- }),
480
- params: toURLSearchParams(payload),
481
- transformResponse: (payload2) => transformPaths(payload2, [
482
- {
483
- transformFn: transformRESTTimestampToSDKTimestamp,
484
- paths: [
485
- { path: "submissions.createdDate" },
486
- { path: "submissions.updatedDate" }
487
- ]
488
- }
489
- ])
490
- };
491
- return metadata;
492
- }
493
- return __listDeletedSubmissions;
494
- }
495
- function getDeletedSubmission(payload) {
496
- function __getDeletedSubmission({ host }) {
497
- const metadata = {
498
- entityFqdn: "wix.forms.v4.submission",
499
- method: "GET",
500
- methodFqn: "wix.forms.v4.FormSubmissionService.GetDeletedSubmission",
501
- packageName: PACKAGE_NAME,
502
- migrationOptions: {
503
- optInTransformResponse: true
504
- },
505
- url: resolveWixFormsV4FormSubmissionServiceUrl({
506
- protoPath: "/v4/submissions/trash-bin/{submissionId}",
507
- data: payload,
508
- host
509
- }),
510
- params: toURLSearchParams(payload),
511
- transformResponse: (payload2) => transformPaths(payload2, [
512
- {
513
- transformFn: transformRESTTimestampToSDKTimestamp,
514
- paths: [
515
- { path: "submission.createdDate" },
516
- { path: "submission.updatedDate" }
517
- ]
518
- }
519
- ])
520
- };
521
- return metadata;
522
- }
523
- return __getDeletedSubmission;
524
- }
525
- function querySubmission(payload) {
526
- function __querySubmission({ host }) {
527
- const metadata = {
528
- entityFqdn: "wix.forms.v4.submission",
529
- method: "POST",
530
- methodFqn: "wix.forms.v4.FormSubmissionService.QuerySubmission",
531
- packageName: PACKAGE_NAME,
532
- migrationOptions: {
533
- optInTransformResponse: true
534
- },
535
- url: resolveWixFormsV4FormSubmissionServiceUrl({
536
- protoPath: "/v4/submissions/query",
537
- data: payload,
538
- host
539
- }),
540
- data: payload,
541
- transformResponse: (payload2) => transformPaths(payload2, [
542
- {
543
- transformFn: transformRESTTimestampToSDKTimestamp,
544
- paths: [
545
- { path: "submissions.createdDate" },
546
- { path: "submissions.updatedDate" }
547
- ]
548
- }
549
- ])
550
- };
551
- return metadata;
552
- }
553
- return __querySubmission;
554
- }
555
- function searchSubmissionsByNamespace(payload) {
556
- function __searchSubmissionsByNamespace({ host }) {
557
- const metadata = {
558
- entityFqdn: "wix.forms.v4.submission",
559
- method: "POST",
560
- methodFqn: "wix.forms.v4.FormSubmissionService.SearchSubmissionsByNamespace",
561
- packageName: PACKAGE_NAME,
562
- migrationOptions: {
563
- optInTransformResponse: true
564
- },
565
- url: resolveWixFormsV4FormSubmissionServiceUrl({
566
- protoPath: "/v4/submissions/namespace/search",
567
- data: payload,
568
- host
569
- }),
570
- data: payload,
571
- transformResponse: (payload2) => transformPaths(payload2, [
572
- {
573
- transformFn: transformRESTTimestampToSDKTimestamp,
574
- paths: [
575
- { path: "submissions.createdDate" },
576
- { path: "submissions.updatedDate" }
577
- ]
578
- }
579
- ])
580
- };
581
- return metadata;
582
- }
583
- return __searchSubmissionsByNamespace;
584
- }
585
- function querySubmissionsByNamespace(payload) {
586
- function __querySubmissionsByNamespace({ host }) {
587
- const metadata = {
588
- entityFqdn: "wix.forms.v4.submission",
589
- method: "POST",
590
- methodFqn: "wix.forms.v4.FormSubmissionService.QuerySubmissionsByNamespace",
591
- packageName: PACKAGE_NAME,
592
- migrationOptions: {
593
- optInTransformResponse: true
594
- },
595
- url: resolveWixFormsV4FormSubmissionServiceUrl({
596
- protoPath: "/v4/submissions/namespace/query",
597
- data: payload,
598
- host
599
- }),
600
- data: payload,
601
- transformResponse: (payload2) => transformPaths(payload2, [
602
- {
603
- transformFn: transformRESTTimestampToSDKTimestamp,
604
- paths: [
605
- { path: "submissions.createdDate" },
606
- { path: "submissions.updatedDate" }
607
- ]
608
- }
609
- ])
610
- };
611
- return metadata;
612
- }
613
- return __querySubmissionsByNamespace;
614
- }
615
- function countSubmissionsByFilter(payload) {
616
- function __countSubmissionsByFilter({ host }) {
617
- const metadata = {
618
- entityFqdn: "wix.forms.v4.submission",
619
- method: "POST",
620
- methodFqn: "wix.forms.v4.FormSubmissionService.CountSubmissionsByFilter",
621
- packageName: PACKAGE_NAME,
622
- migrationOptions: {
623
- optInTransformResponse: true
624
- },
625
- url: resolveWixFormsV4FormSubmissionServiceUrl({
626
- protoPath: "/v4/submissions/count-by-filter",
627
- data: payload,
628
- host
629
- }),
630
- data: payload
631
- };
632
- return metadata;
633
- }
634
- return __countSubmissionsByFilter;
635
- }
636
- function countSubmissions(payload) {
637
- function __countSubmissions({ host }) {
638
- const metadata = {
639
- entityFqdn: "wix.forms.v4.submission",
640
- method: "POST",
641
- methodFqn: "wix.forms.v4.FormSubmissionService.CountSubmissions",
642
- packageName: PACKAGE_NAME,
643
- migrationOptions: {
644
- optInTransformResponse: true
645
- },
646
- url: resolveWixFormsV4FormSubmissionServiceUrl({
647
- protoPath: "/v4/submissions/count",
648
- data: payload,
649
- host
650
- }),
651
- data: payload
652
- };
653
- return metadata;
654
- }
655
- return __countSubmissions;
656
- }
657
- function countDeletedSubmissions(payload) {
658
- function __countDeletedSubmissions({ host }) {
659
- const metadata = {
660
- entityFqdn: "wix.forms.v4.submission",
661
- method: "POST",
662
- methodFqn: "wix.forms.v4.FormSubmissionService.CountDeletedSubmissions",
663
- packageName: PACKAGE_NAME,
664
- migrationOptions: {
665
- optInTransformResponse: true
666
- },
667
- url: resolveWixFormsV4FormSubmissionServiceUrl({
668
- protoPath: "/v4/submissions/trash-bin/count",
669
- data: payload,
670
- host
671
- }),
672
- data: payload
673
- };
674
- return metadata;
675
- }
676
- return __countDeletedSubmissions;
677
- }
678
- function getMediaUploadUrl(payload) {
679
- function __getMediaUploadUrl({ host }) {
680
- const metadata = {
681
- entityFqdn: "wix.forms.v4.submission",
682
- method: "POST",
683
- methodFqn: "wix.forms.v4.FormSubmissionService.GetMediaUploadURL",
684
- packageName: PACKAGE_NAME,
685
- migrationOptions: {
686
- optInTransformResponse: true
687
- },
688
- url: resolveWixFormsV4FormSubmissionServiceUrl({
689
- protoPath: "/v4/submissions/media-upload-url",
690
- data: payload,
691
- host
692
- }),
693
- data: payload
694
- };
695
- return metadata;
696
- }
697
- return __getMediaUploadUrl;
698
- }
699
- function bulkMarkSubmissionsAsSeen(payload) {
700
- function __bulkMarkSubmissionsAsSeen({ host }) {
701
- const metadata = {
702
- entityFqdn: "wix.forms.v4.submission",
703
- method: "POST",
704
- methodFqn: "wix.forms.v4.FormSubmissionService.BulkMarkSubmissionsAsSeen",
705
- packageName: PACKAGE_NAME,
706
- migrationOptions: {
707
- optInTransformResponse: true
708
- },
709
- url: resolveWixFormsV4FormSubmissionServiceUrl({
710
- protoPath: "/v4/bulk/submissions/mark-as-seen",
711
- data: payload,
712
- host
713
- }),
714
- data: payload
715
- };
716
- return metadata;
717
- }
718
- return __bulkMarkSubmissionsAsSeen;
719
- }
720
- function getSubmissionDownloadUrl(payload) {
721
- function __getSubmissionDownloadUrl({ host }) {
722
- const metadata = {
723
- entityFqdn: "wix.forms.v4.submission",
724
- method: "GET",
725
- methodFqn: "wix.forms.v4.FormSubmissionService.GetSubmissionDownloadUrl",
726
- packageName: PACKAGE_NAME,
727
- migrationOptions: {
728
- optInTransformResponse: true
729
- },
730
- url: resolveWixFormsV4FormSubmissionServiceUrl({
731
- protoPath: "/v4/submissions/{submissionId}/document",
732
- data: payload,
733
- host
734
- }),
735
- params: toURLSearchParams(payload)
736
- };
737
- return metadata;
738
- }
739
- return __getSubmissionDownloadUrl;
740
- }
741
- function downloadSubmission(payload) {
742
- function __downloadSubmission({ host }) {
743
- const metadata = {
744
- entityFqdn: "wix.forms.v4.submission",
745
- method: "GET",
746
- methodFqn: "wix.forms.v4.FormSubmissionService.DownloadSubmission",
747
- packageName: PACKAGE_NAME,
748
- migrationOptions: {
749
- optInTransformResponse: true
750
- },
751
- url: resolveWixFormsV4FormSubmissionServiceUrl({
752
- protoPath: "/v4/submissions/{submissionId}/download",
753
- data: payload,
754
- host
755
- }),
756
- params: toURLSearchParams(payload),
757
- transformResponse: (payload2) => transformPaths(payload2, [
758
- {
759
- transformFn: transformRESTBytesToSDKBytes,
760
- paths: [{ path: "body" }]
761
- }
762
- ])
763
- };
764
- return metadata;
765
- }
766
- return __downloadSubmission;
767
- }
768
- function getFormattedSubmission(payload) {
769
- function __getFormattedSubmission({ host }) {
770
- const metadata = {
771
- entityFqdn: "wix.forms.v4.submission",
772
- method: "GET",
773
- methodFqn: "wix.forms.v4.FormSubmissionService.GetFormattedSubmission",
774
- packageName: PACKAGE_NAME,
775
- migrationOptions: {
776
- optInTransformResponse: true
777
- },
778
- url: resolveWixFormsV4FormSubmissionServiceUrl({
779
- protoPath: "/v4/submissions/{submissionId}/formatted",
780
- data: payload,
781
- host
782
- }),
783
- params: toURLSearchParams(payload)
784
- };
785
- return metadata;
786
- }
787
- return __getFormattedSubmission;
788
- }
789
- function updateExtendedFields(payload) {
790
- function __updateExtendedFields({ host }) {
791
- const metadata = {
792
- entityFqdn: "wix.forms.v4.submission",
793
- method: "POST",
794
- methodFqn: "wix.forms.v4.FormSubmissionService.UpdateExtendedFields",
795
- packageName: PACKAGE_NAME,
796
- migrationOptions: {
797
- optInTransformResponse: true
798
- },
799
- url: resolveWixFormsV4FormSubmissionServiceUrl({
800
- protoPath: "/v4/submissions/{id}/extended-fields",
801
- data: payload,
802
- host
803
- }),
804
- data: payload
805
- };
806
- return metadata;
807
- }
808
- return __updateExtendedFields;
809
- }
810
- function bulkUpdateFormSubmissionTags(payload) {
811
- function __bulkUpdateFormSubmissionTags({ host }) {
812
- const metadata = {
813
- entityFqdn: "wix.forms.v4.submission",
814
- method: "POST",
815
- methodFqn: "wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTags",
816
- packageName: PACKAGE_NAME,
817
- migrationOptions: {
818
- optInTransformResponse: true
819
- },
820
- url: resolveWixFormsV4FormSubmissionServiceUrl({
821
- protoPath: "/v4/bulk/submissions/update-tags",
822
- data: payload,
823
- host
824
- }),
825
- data: payload
826
- };
827
- return metadata;
828
- }
829
- return __bulkUpdateFormSubmissionTags;
830
- }
831
- function bulkUpdateFormSubmissionTagsByFilter(payload) {
832
- function __bulkUpdateFormSubmissionTagsByFilter({ host }) {
833
- const metadata = {
834
- entityFqdn: "wix.forms.v4.submission",
835
- method: "POST",
836
- methodFqn: "wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTagsByFilter",
837
- packageName: PACKAGE_NAME,
838
- migrationOptions: {
839
- optInTransformResponse: true
840
- },
841
- url: resolveWixFormsV4FormSubmissionServiceUrl({
842
- protoPath: "/v4/bulk/submissions/update-tags-by-filter",
843
- data: payload,
844
- host
845
- }),
846
- data: payload
847
- };
848
- return metadata;
849
- }
850
- return __bulkUpdateFormSubmissionTagsByFilter;
851
- }
852
- function validateFormSubmission(payload) {
853
- function __validateFormSubmission({ host }) {
854
- const serializedData = transformPaths(payload, [
855
- {
856
- transformFn: transformSDKTimestampToRESTTimestamp,
857
- paths: [
858
- { path: "submission.createdDate" },
859
- { path: "submission.updatedDate" }
860
- ]
861
- }
862
- ]);
863
- const metadata = {
864
- entityFqdn: "wix.forms.v4.submission",
865
- method: "POST",
866
- methodFqn: "wix.forms.v4.FormSubmissionService.ValidateFormSubmission",
867
- packageName: PACKAGE_NAME,
868
- migrationOptions: {
869
- optInTransformResponse: true
870
- },
871
- url: resolveWixFormsV4FormSubmissionServiceUrl({
872
- protoPath: "/v4/submissions/validate",
873
- data: serializedData,
874
- host
875
- }),
876
- data: serializedData
877
- };
878
- return metadata;
879
- }
880
- return __validateFormSubmission;
881
- }
882
-
883
- // src/forms-v4-submission-submissions.universal.ts
884
- import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
885
- import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
886
- import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
887
- var SubmissionStatus = /* @__PURE__ */ ((SubmissionStatus2) => {
888
- SubmissionStatus2["PENDING"] = "PENDING";
889
- SubmissionStatus2["CONFIRMED"] = "CONFIRMED";
890
- SubmissionStatus2["PAYMENT_WAITING"] = "PAYMENT_WAITING";
891
- SubmissionStatus2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
892
- return SubmissionStatus2;
893
- })(SubmissionStatus || {});
894
- var OptInLevel = /* @__PURE__ */ ((OptInLevel2) => {
895
- OptInLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
896
- OptInLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
897
- return OptInLevel2;
898
- })(OptInLevel || {});
899
- var ContactIdentityType = /* @__PURE__ */ ((ContactIdentityType2) => {
900
- ContactIdentityType2["CONTACT"] = "CONTACT";
901
- ContactIdentityType2["MEMBER"] = "MEMBER";
902
- ContactIdentityType2["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
903
- return ContactIdentityType2;
904
- })(ContactIdentityType || {});
905
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
906
- SortOrder2["ASC"] = "ASC";
907
- SortOrder2["DESC"] = "DESC";
908
- return SortOrder2;
909
- })(SortOrder || {});
910
- var Mode = /* @__PURE__ */ ((Mode2) => {
911
- Mode2["OR"] = "OR";
912
- Mode2["AND"] = "AND";
913
- return Mode2;
914
- })(Mode || {});
915
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
916
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
917
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
918
- WebhookIdentityType2["MEMBER"] = "MEMBER";
919
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
920
- WebhookIdentityType2["APP"] = "APP";
921
- return WebhookIdentityType2;
922
- })(WebhookIdentityType || {});
923
- var StringTypeFormatEnumFormat = /* @__PURE__ */ ((StringTypeFormatEnumFormat2) => {
924
- StringTypeFormatEnumFormat2["UNDEFINED"] = "UNDEFINED";
925
- StringTypeFormatEnumFormat2["DATE"] = "DATE";
926
- StringTypeFormatEnumFormat2["TIME"] = "TIME";
927
- StringTypeFormatEnumFormat2["DATE_TIME"] = "DATE_TIME";
928
- StringTypeFormatEnumFormat2["EMAIL"] = "EMAIL";
929
- StringTypeFormatEnumFormat2["URL"] = "URL";
930
- StringTypeFormatEnumFormat2["UUID"] = "UUID";
931
- StringTypeFormatEnumFormat2["PHONE"] = "PHONE";
932
- StringTypeFormatEnumFormat2["URI"] = "URI";
933
- StringTypeFormatEnumFormat2["HOSTNAME"] = "HOSTNAME";
934
- StringTypeFormatEnumFormat2["COLOR_HEX"] = "COLOR_HEX";
935
- StringTypeFormatEnumFormat2["CURRENCY"] = "CURRENCY";
936
- StringTypeFormatEnumFormat2["LANGUAGE"] = "LANGUAGE";
937
- StringTypeFormatEnumFormat2["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
938
- return StringTypeFormatEnumFormat2;
939
- })(StringTypeFormatEnumFormat || {});
940
- var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
941
- DayOfWeek2["MONDAY"] = "MONDAY";
942
- DayOfWeek2["TUESDAY"] = "TUESDAY";
943
- DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
944
- DayOfWeek2["THURSDAY"] = "THURSDAY";
945
- DayOfWeek2["FRIDAY"] = "FRIDAY";
946
- DayOfWeek2["SATURDAY"] = "SATURDAY";
947
- DayOfWeek2["SUNDAY"] = "SUNDAY";
948
- return DayOfWeek2;
949
- })(DayOfWeek || {});
950
- var ValidationFormat = /* @__PURE__ */ ((ValidationFormat2) => {
951
- ValidationFormat2["UNDEFINED"] = "UNDEFINED";
952
- ValidationFormat2["WIX_FILE"] = "WIX_FILE";
953
- ValidationFormat2["PAYMENT"] = "PAYMENT";
954
- ValidationFormat2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
955
- ValidationFormat2["SCHEDULING"] = "SCHEDULING";
956
- ValidationFormat2["OBJECT_ARRAY"] = "OBJECT_ARRAY";
957
- return ValidationFormat2;
958
- })(ValidationFormat || {});
959
- var ProductType = /* @__PURE__ */ ((ProductType2) => {
960
- ProductType2["SHIPPABLE"] = "SHIPPABLE";
961
- ProductType2["DIGITAL"] = "DIGITAL";
962
- return ProductType2;
963
- })(ProductType || {});
964
- var PriceType = /* @__PURE__ */ ((PriceType2) => {
965
- PriceType2["FIXED_PRICE"] = "FIXED_PRICE";
966
- PriceType2["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
967
- return PriceType2;
968
- })(PriceType || {});
969
- var FieldType = /* @__PURE__ */ ((FieldType2) => {
970
- FieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
971
- FieldType2["INPUT"] = "INPUT";
972
- FieldType2["DISPLAY"] = "DISPLAY";
973
- return FieldType2;
974
- })(FieldType || {});
975
- var FormatEnumFormat = /* @__PURE__ */ ((FormatEnumFormat2) => {
976
- FormatEnumFormat2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
977
- FormatEnumFormat2["DATE"] = "DATE";
978
- FormatEnumFormat2["TIME"] = "TIME";
979
- FormatEnumFormat2["DATE_TIME"] = "DATE_TIME";
980
- FormatEnumFormat2["EMAIL"] = "EMAIL";
981
- FormatEnumFormat2["URL"] = "URL";
982
- FormatEnumFormat2["UUID"] = "UUID";
983
- FormatEnumFormat2["PHONE"] = "PHONE";
984
- FormatEnumFormat2["URI"] = "URI";
985
- FormatEnumFormat2["HOSTNAME"] = "HOSTNAME";
986
- FormatEnumFormat2["COLOR_HEX"] = "COLOR_HEX";
987
- FormatEnumFormat2["CURRENCY"] = "CURRENCY";
988
- FormatEnumFormat2["LANGUAGE"] = "LANGUAGE";
989
- FormatEnumFormat2["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
990
- return FormatEnumFormat2;
991
- })(FormatEnumFormat || {});
992
- var StringComponentType = /* @__PURE__ */ ((StringComponentType2) => {
993
- StringComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
994
- StringComponentType2["TEXT_INPUT"] = "TEXT_INPUT";
995
- StringComponentType2["RADIO_GROUP"] = "RADIO_GROUP";
996
- StringComponentType2["DROPDOWN"] = "DROPDOWN";
997
- StringComponentType2["DATE_TIME"] = "DATE_TIME";
998
- StringComponentType2["PHONE_INPUT"] = "PHONE_INPUT";
999
- StringComponentType2["DATE_INPUT"] = "DATE_INPUT";
1000
- StringComponentType2["TIME_INPUT"] = "TIME_INPUT";
1001
- StringComponentType2["DATE_PICKER"] = "DATE_PICKER";
1002
- StringComponentType2["SERVICES_DROPDOWN"] = "SERVICES_DROPDOWN";
1003
- StringComponentType2["PASSWORD"] = "PASSWORD";
1004
- return StringComponentType2;
1005
- })(StringComponentType || {});
1006
- var NodeType = /* @__PURE__ */ ((NodeType2) => {
1007
- NodeType2["PARAGRAPH"] = "PARAGRAPH";
1008
- NodeType2["TEXT"] = "TEXT";
1009
- NodeType2["HEADING"] = "HEADING";
1010
- NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
1011
- NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
1012
- NodeType2["LIST_ITEM"] = "LIST_ITEM";
1013
- NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
1014
- NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
1015
- NodeType2["VIDEO"] = "VIDEO";
1016
- NodeType2["DIVIDER"] = "DIVIDER";
1017
- NodeType2["FILE"] = "FILE";
1018
- NodeType2["GALLERY"] = "GALLERY";
1019
- NodeType2["GIF"] = "GIF";
1020
- NodeType2["HTML"] = "HTML";
1021
- NodeType2["IMAGE"] = "IMAGE";
1022
- NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
1023
- NodeType2["MAP"] = "MAP";
1024
- NodeType2["POLL"] = "POLL";
1025
- NodeType2["APP_EMBED"] = "APP_EMBED";
1026
- NodeType2["BUTTON"] = "BUTTON";
1027
- NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
1028
- NodeType2["TABLE"] = "TABLE";
1029
- NodeType2["EMBED"] = "EMBED";
1030
- NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
1031
- NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
1032
- NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
1033
- NodeType2["TABLE_CELL"] = "TABLE_CELL";
1034
- NodeType2["TABLE_ROW"] = "TABLE_ROW";
1035
- NodeType2["EXTERNAL"] = "EXTERNAL";
1036
- NodeType2["AUDIO"] = "AUDIO";
1037
- NodeType2["CAPTION"] = "CAPTION";
1038
- NodeType2["LAYOUT"] = "LAYOUT";
1039
- NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
1040
- NodeType2["SHAPE"] = "SHAPE";
1041
- NodeType2["CARD"] = "CARD";
1042
- NodeType2["TOC"] = "TOC";
1043
- NodeType2["SMART_BLOCK"] = "SMART_BLOCK";
1044
- NodeType2["SMART_BLOCK_CELL"] = "SMART_BLOCK_CELL";
1045
- NodeType2["CHECKBOX_LIST"] = "CHECKBOX_LIST";
1046
- return NodeType2;
1047
- })(NodeType || {});
1048
- var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
1049
- BackgroundType2["COLOR"] = "COLOR";
1050
- BackgroundType2["GRADIENT"] = "GRADIENT";
1051
- return BackgroundType2;
1052
- })(BackgroundType || {});
1053
- var GradientType = /* @__PURE__ */ ((GradientType2) => {
1054
- GradientType2["LINEAR"] = "LINEAR";
1055
- GradientType2["RADIAL"] = "RADIAL";
1056
- return GradientType2;
1057
- })(GradientType || {});
1058
- var WidthType = /* @__PURE__ */ ((WidthType2) => {
1059
- WidthType2["CONTENT"] = "CONTENT";
1060
- WidthType2["SMALL"] = "SMALL";
1061
- WidthType2["ORIGINAL"] = "ORIGINAL";
1062
- WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
1063
- return WidthType2;
1064
- })(WidthType || {});
1065
- var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
1066
- PluginContainerDataAlignment2["CENTER"] = "CENTER";
1067
- PluginContainerDataAlignment2["LEFT"] = "LEFT";
1068
- PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
1069
- return PluginContainerDataAlignment2;
1070
- })(PluginContainerDataAlignment || {});
1071
- var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
1072
- ButtonDataType2["LINK"] = "LINK";
1073
- ButtonDataType2["ACTION"] = "ACTION";
1074
- return ButtonDataType2;
1075
- })(ButtonDataType || {});
1076
- var LinkTarget = /* @__PURE__ */ ((LinkTarget2) => {
1077
- LinkTarget2["SELF"] = "SELF";
1078
- LinkTarget2["BLANK"] = "BLANK";
1079
- LinkTarget2["PARENT"] = "PARENT";
1080
- LinkTarget2["TOP"] = "TOP";
1081
- return LinkTarget2;
1082
- })(LinkTarget || {});
1083
- var AnimationType = /* @__PURE__ */ ((AnimationType2) => {
1084
- AnimationType2["VIEW"] = "VIEW";
1085
- AnimationType2["POINTER"] = "POINTER";
1086
- return AnimationType2;
1087
- })(AnimationType || {});
1088
- var EntranceEffectType = /* @__PURE__ */ ((EntranceEffectType2) => {
1089
- EntranceEffectType2["FADE"] = "FADE";
1090
- EntranceEffectType2["ARC"] = "ARC";
1091
- EntranceEffectType2["BLUR"] = "BLUR";
1092
- EntranceEffectType2["BOUNCE"] = "BOUNCE";
1093
- EntranceEffectType2["DROP"] = "DROP";
1094
- EntranceEffectType2["EXPAND"] = "EXPAND";
1095
- EntranceEffectType2["FLIP"] = "FLIP";
1096
- EntranceEffectType2["FLOAT"] = "FLOAT";
1097
- EntranceEffectType2["FOLD"] = "FOLD";
1098
- EntranceEffectType2["GLIDE"] = "GLIDE";
1099
- EntranceEffectType2["REVEAL"] = "REVEAL";
1100
- EntranceEffectType2["SHAPE"] = "SHAPE";
1101
- EntranceEffectType2["SHUTTERS"] = "SHUTTERS";
1102
- EntranceEffectType2["SLIDE"] = "SLIDE";
1103
- EntranceEffectType2["SPIN"] = "SPIN";
1104
- EntranceEffectType2["TILT"] = "TILT";
1105
- EntranceEffectType2["TURN"] = "TURN";
1106
- EntranceEffectType2["WINK"] = "WINK";
1107
- return EntranceEffectType2;
1108
- })(EntranceEffectType || {});
1109
- var LoopEffectType = /* @__PURE__ */ ((LoopEffectType2) => {
1110
- LoopEffectType2["BOUNCE"] = "BOUNCE";
1111
- LoopEffectType2["BREATHE"] = "BREATHE";
1112
- LoopEffectType2["CROSS"] = "CROSS";
1113
- LoopEffectType2["FLASH"] = "FLASH";
1114
- LoopEffectType2["FLIP"] = "FLIP";
1115
- LoopEffectType2["FOLD"] = "FOLD";
1116
- LoopEffectType2["JELLO"] = "JELLO";
1117
- LoopEffectType2["POKE"] = "POKE";
1118
- LoopEffectType2["PULSE"] = "PULSE";
1119
- LoopEffectType2["RUBBER"] = "RUBBER";
1120
- LoopEffectType2["SPIN"] = "SPIN";
1121
- LoopEffectType2["SWING"] = "SWING";
1122
- LoopEffectType2["WIGGLE"] = "WIGGLE";
1123
- return LoopEffectType2;
1124
- })(LoopEffectType || {});
1125
- var PointerEffectType = /* @__PURE__ */ ((PointerEffectType2) => {
1126
- PointerEffectType2["AIRY"] = "AIRY";
1127
- PointerEffectType2["BLOB"] = "BLOB";
1128
- PointerEffectType2["BLUR"] = "BLUR";
1129
- PointerEffectType2["SCALE"] = "SCALE";
1130
- PointerEffectType2["SKEW"] = "SKEW";
1131
- PointerEffectType2["SWIVEL"] = "SWIVEL";
1132
- PointerEffectType2["TILT_3D"] = "TILT_3D";
1133
- PointerEffectType2["TRACK"] = "TRACK";
1134
- PointerEffectType2["TRACK_3D"] = "TRACK_3D";
1135
- return PointerEffectType2;
1136
- })(PointerEffectType || {});
1137
- var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
1138
- TextAlignment2["AUTO"] = "AUTO";
1139
- TextAlignment2["LEFT"] = "LEFT";
1140
- TextAlignment2["RIGHT"] = "RIGHT";
1141
- TextAlignment2["CENTER"] = "CENTER";
1142
- TextAlignment2["JUSTIFY"] = "JUSTIFY";
1143
- return TextAlignment2;
1144
- })(TextAlignment || {});
1145
- var LineCap = /* @__PURE__ */ ((LineCap2) => {
1146
- LineCap2["SQUARE"] = "SQUARE";
1147
- LineCap2["ROUND"] = "ROUND";
1148
- return LineCap2;
1149
- })(LineCap || {});
1150
- var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
1151
- LineStyle2["SINGLE"] = "SINGLE";
1152
- LineStyle2["DOUBLE"] = "DOUBLE";
1153
- LineStyle2["DASHED"] = "DASHED";
1154
- LineStyle2["DOTTED"] = "DOTTED";
1155
- return LineStyle2;
1156
- })(LineStyle || {});
1157
- var Width = /* @__PURE__ */ ((Width2) => {
1158
- Width2["LARGE"] = "LARGE";
1159
- Width2["MEDIUM"] = "MEDIUM";
1160
- Width2["SMALL"] = "SMALL";
1161
- return Width2;
1162
- })(Width || {});
1163
- var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
1164
- DividerDataAlignment2["CENTER"] = "CENTER";
1165
- DividerDataAlignment2["LEFT"] = "LEFT";
1166
- DividerDataAlignment2["RIGHT"] = "RIGHT";
1167
- return DividerDataAlignment2;
1168
- })(DividerDataAlignment || {});
1169
- var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
1170
- ViewMode2["NONE"] = "NONE";
1171
- ViewMode2["FULL"] = "FULL";
1172
- ViewMode2["MINI"] = "MINI";
1173
- return ViewMode2;
1174
- })(ViewMode || {});
1175
- var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
1176
- LayoutType2["COLLAGE"] = "COLLAGE";
1177
- LayoutType2["MASONRY"] = "MASONRY";
1178
- LayoutType2["GRID"] = "GRID";
1179
- LayoutType2["THUMBNAIL"] = "THUMBNAIL";
1180
- LayoutType2["SLIDER"] = "SLIDER";
1181
- LayoutType2["SLIDESHOW"] = "SLIDESHOW";
1182
- LayoutType2["PANORAMA"] = "PANORAMA";
1183
- LayoutType2["COLUMN"] = "COLUMN";
1184
- LayoutType2["MAGIC"] = "MAGIC";
1185
- LayoutType2["FULLSIZE"] = "FULLSIZE";
1186
- return LayoutType2;
1187
- })(LayoutType || {});
1188
- var Orientation = /* @__PURE__ */ ((Orientation2) => {
1189
- Orientation2["ROWS"] = "ROWS";
1190
- Orientation2["COLUMNS"] = "COLUMNS";
1191
- return Orientation2;
1192
- })(Orientation || {});
1193
- var Crop = /* @__PURE__ */ ((Crop2) => {
1194
- Crop2["FILL"] = "FILL";
1195
- Crop2["FIT"] = "FIT";
1196
- return Crop2;
1197
- })(Crop || {});
1198
- var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
1199
- ThumbnailsAlignment2["TOP"] = "TOP";
1200
- ThumbnailsAlignment2["RIGHT"] = "RIGHT";
1201
- ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
1202
- ThumbnailsAlignment2["LEFT"] = "LEFT";
1203
- ThumbnailsAlignment2["NONE"] = "NONE";
1204
- return ThumbnailsAlignment2;
1205
- })(ThumbnailsAlignment || {});
1206
- var GIFType = /* @__PURE__ */ ((GIFType2) => {
1207
- GIFType2["NORMAL"] = "NORMAL";
1208
- GIFType2["STICKER"] = "STICKER";
1209
- return GIFType2;
1210
- })(GIFType || {});
1211
- var Source = /* @__PURE__ */ ((Source2) => {
1212
- Source2["HTML"] = "HTML";
1213
- Source2["ADSENSE"] = "ADSENSE";
1214
- Source2["AI"] = "AI";
1215
- Source2["AI_WIDGET"] = "AI_WIDGET";
1216
- return Source2;
1217
- })(Source || {});
1218
- var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
1219
- StylesPosition2["START"] = "START";
1220
- StylesPosition2["END"] = "END";
1221
- StylesPosition2["TOP"] = "TOP";
1222
- StylesPosition2["HIDDEN"] = "HIDDEN";
1223
- return StylesPosition2;
1224
- })(StylesPosition || {});
1225
- var MapType = /* @__PURE__ */ ((MapType2) => {
1226
- MapType2["ROADMAP"] = "ROADMAP";
1227
- MapType2["SATELITE"] = "SATELITE";
1228
- MapType2["HYBRID"] = "HYBRID";
1229
- MapType2["TERRAIN"] = "TERRAIN";
1230
- return MapType2;
1231
- })(MapType || {});
1232
- var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
1233
- ViewRole2["CREATOR"] = "CREATOR";
1234
- ViewRole2["VOTERS"] = "VOTERS";
1235
- ViewRole2["EVERYONE"] = "EVERYONE";
1236
- return ViewRole2;
1237
- })(ViewRole || {});
1238
- var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
1239
- VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
1240
- VoteRole2["ALL"] = "ALL";
1241
- return VoteRole2;
1242
- })(VoteRole || {});
1243
- var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
1244
- PollLayoutType2["LIST"] = "LIST";
1245
- PollLayoutType2["GRID"] = "GRID";
1246
- return PollLayoutType2;
1247
- })(PollLayoutType || {});
1248
- var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
1249
- PollLayoutDirection2["LTR"] = "LTR";
1250
- PollLayoutDirection2["RTL"] = "RTL";
1251
- return PollLayoutDirection2;
1252
- })(PollLayoutDirection || {});
1253
- var PollDesignBackgroundType = /* @__PURE__ */ ((PollDesignBackgroundType2) => {
1254
- PollDesignBackgroundType2["COLOR"] = "COLOR";
1255
- PollDesignBackgroundType2["IMAGE"] = "IMAGE";
1256
- PollDesignBackgroundType2["GRADIENT"] = "GRADIENT";
1257
- return PollDesignBackgroundType2;
1258
- })(PollDesignBackgroundType || {});
1259
- var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
1260
- DecorationType2["BOLD"] = "BOLD";
1261
- DecorationType2["ITALIC"] = "ITALIC";
1262
- DecorationType2["UNDERLINE"] = "UNDERLINE";
1263
- DecorationType2["SPOILER"] = "SPOILER";
1264
- DecorationType2["ANCHOR"] = "ANCHOR";
1265
- DecorationType2["MENTION"] = "MENTION";
1266
- DecorationType2["LINK"] = "LINK";
1267
- DecorationType2["COLOR"] = "COLOR";
1268
- DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1269
- DecorationType2["EXTERNAL"] = "EXTERNAL";
1270
- DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1271
- DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1272
- DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1273
- DecorationType2["FONT_FAMILY"] = "FONT_FAMILY";
1274
- DecorationType2["SKETCH"] = "SKETCH";
1275
- return DecorationType2;
1276
- })(DecorationType || {});
1277
- var FontType = /* @__PURE__ */ ((FontType2) => {
1278
- FontType2["PX"] = "PX";
1279
- FontType2["EM"] = "EM";
1280
- return FontType2;
1281
- })(FontType || {});
1282
- var Variant = /* @__PURE__ */ ((Variant2) => {
1283
- Variant2["UNDERLINE"] = "UNDERLINE";
1284
- Variant2["BOX"] = "BOX";
1285
- Variant2["CIRCLE"] = "CIRCLE";
1286
- Variant2["HIGHLIGHT"] = "HIGHLIGHT";
1287
- Variant2["STRIKETHROUGH"] = "STRIKETHROUGH";
1288
- Variant2["CROSSED_OFF"] = "CROSSED_OFF";
1289
- return Variant2;
1290
- })(Variant || {});
1291
- var Position = /* @__PURE__ */ ((Position2) => {
1292
- Position2["START"] = "START";
1293
- Position2["END"] = "END";
1294
- Position2["TOP"] = "TOP";
1295
- return Position2;
1296
- })(Position || {});
1297
- var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1298
- AspectRatio2["SQUARE"] = "SQUARE";
1299
- AspectRatio2["RECTANGLE"] = "RECTANGLE";
1300
- return AspectRatio2;
1301
- })(AspectRatio || {});
1302
- var Resizing = /* @__PURE__ */ ((Resizing2) => {
1303
- Resizing2["FILL"] = "FILL";
1304
- Resizing2["FIT"] = "FIT";
1305
- return Resizing2;
1306
- })(Resizing || {});
1307
- var Placement = /* @__PURE__ */ ((Placement2) => {
1308
- Placement2["IMAGE"] = "IMAGE";
1309
- Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1310
- return Placement2;
1311
- })(Placement || {});
1312
- var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1313
- CardStylesType2["CONTAINED"] = "CONTAINED";
1314
- CardStylesType2["FRAMELESS"] = "FRAMELESS";
1315
- return CardStylesType2;
1316
- })(CardStylesType || {});
1317
- var CardStylesAlignment = /* @__PURE__ */ ((CardStylesAlignment2) => {
1318
- CardStylesAlignment2["START"] = "START";
1319
- CardStylesAlignment2["CENTER"] = "CENTER";
1320
- CardStylesAlignment2["END"] = "END";
1321
- return CardStylesAlignment2;
1322
- })(CardStylesAlignment || {});
1323
- var Layout = /* @__PURE__ */ ((Layout2) => {
1324
- Layout2["STACKED"] = "STACKED";
1325
- Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1326
- return Layout2;
1327
- })(Layout || {});
1328
- var AppType = /* @__PURE__ */ ((AppType2) => {
1329
- AppType2["PRODUCT"] = "PRODUCT";
1330
- AppType2["EVENT"] = "EVENT";
1331
- AppType2["BOOKING"] = "BOOKING";
1332
- return AppType2;
1333
- })(AppType || {});
1334
- var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1335
- InitialExpandedItems2["FIRST"] = "FIRST";
1336
- InitialExpandedItems2["ALL"] = "ALL";
1337
- InitialExpandedItems2["NONE"] = "NONE";
1338
- return InitialExpandedItems2;
1339
- })(InitialExpandedItems || {});
1340
- var Direction = /* @__PURE__ */ ((Direction2) => {
1341
- Direction2["LTR"] = "LTR";
1342
- Direction2["RTL"] = "RTL";
1343
- return Direction2;
1344
- })(Direction || {});
1345
- var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1346
- VerticalAlignment2["TOP"] = "TOP";
1347
- VerticalAlignment2["MIDDLE"] = "MIDDLE";
1348
- VerticalAlignment2["BOTTOM"] = "BOTTOM";
1349
- return VerticalAlignment2;
1350
- })(VerticalAlignment || {});
1351
- var NullValue = /* @__PURE__ */ ((NullValue2) => {
1352
- NullValue2["NULL_VALUE"] = "NULL_VALUE";
1353
- return NullValue2;
1354
- })(NullValue || {});
1355
- var ImageScalingScaling = /* @__PURE__ */ ((ImageScalingScaling2) => {
1356
- ImageScalingScaling2["AUTO"] = "AUTO";
1357
- ImageScalingScaling2["CONTAIN"] = "CONTAIN";
1358
- ImageScalingScaling2["COVER"] = "COVER";
1359
- return ImageScalingScaling2;
1360
- })(ImageScalingScaling || {});
1361
- var LayoutDataImagePosition = /* @__PURE__ */ ((LayoutDataImagePosition2) => {
1362
- LayoutDataImagePosition2["CENTER"] = "CENTER";
1363
- LayoutDataImagePosition2["CENTER_LEFT"] = "CENTER_LEFT";
1364
- LayoutDataImagePosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1365
- LayoutDataImagePosition2["TOP"] = "TOP";
1366
- LayoutDataImagePosition2["TOP_LEFT"] = "TOP_LEFT";
1367
- LayoutDataImagePosition2["TOP_RIGHT"] = "TOP_RIGHT";
1368
- LayoutDataImagePosition2["BOTTOM"] = "BOTTOM";
1369
- LayoutDataImagePosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1370
- LayoutDataImagePosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1371
- return LayoutDataImagePosition2;
1372
- })(LayoutDataImagePosition || {});
1373
- var LayoutDataBackgroundType = /* @__PURE__ */ ((LayoutDataBackgroundType2) => {
1374
- LayoutDataBackgroundType2["COLOR"] = "COLOR";
1375
- LayoutDataBackgroundType2["GRADIENT"] = "GRADIENT";
1376
- return LayoutDataBackgroundType2;
1377
- })(LayoutDataBackgroundType || {});
1378
- var Origin = /* @__PURE__ */ ((Origin2) => {
1379
- Origin2["IMAGE"] = "IMAGE";
1380
- Origin2["LAYOUT"] = "LAYOUT";
1381
- return Origin2;
1382
- })(Origin || {});
1383
- var BannerPosition = /* @__PURE__ */ ((BannerPosition2) => {
1384
- BannerPosition2["TOP"] = "TOP";
1385
- BannerPosition2["BOTTOM"] = "BOTTOM";
1386
- return BannerPosition2;
1387
- })(BannerPosition || {});
1388
- var LayerEffect = /* @__PURE__ */ ((LayerEffect2) => {
1389
- LayerEffect2["CENTER"] = "CENTER";
1390
- LayerEffect2["FADE_TO_TOP"] = "FADE_TO_TOP";
1391
- LayerEffect2["FADE_TO_BOTTOM"] = "FADE_TO_BOTTOM";
1392
- return LayerEffect2;
1393
- })(LayerEffect || {});
1394
- var Shape = /* @__PURE__ */ ((Shape2) => {
1395
- Shape2["ELLIPSE"] = "ELLIPSE";
1396
- Shape2["TILT"] = "TILT";
1397
- Shape2["LIQUID"] = "LIQUID";
1398
- Shape2["LEFT_WAVE"] = "LEFT_WAVE";
1399
- Shape2["PAINT_SCRIBBLE"] = "PAINT_SCRIBBLE";
1400
- Shape2["INVERTED_ELLIPSE"] = "INVERTED_ELLIPSE";
1401
- Shape2["RIGHT_WAVE"] = "RIGHT_WAVE";
1402
- Shape2["DUNES"] = "DUNES";
1403
- Shape2["WAVES"] = "WAVES";
1404
- Shape2["TRIANGLE"] = "TRIANGLE";
1405
- Shape2["SEMI_ELLIPSE"] = "SEMI_ELLIPSE";
1406
- Shape2["PLANTS"] = "PLANTS";
1407
- Shape2["LAYERED_ELLIPSE"] = "LAYERED_ELLIPSE";
1408
- Shape2["PIXELS"] = "PIXELS";
1409
- Shape2["PAINT"] = "PAINT";
1410
- Shape2["CLOUDS"] = "CLOUDS";
1411
- Shape2["OPTICAL_ILLUSION"] = "OPTICAL_ILLUSION";
1412
- Shape2["STRIPES"] = "STRIPES";
1413
- Shape2["BLOBS"] = "BLOBS";
1414
- Shape2["SEMI_CIRCLES"] = "SEMI_CIRCLES";
1415
- Shape2["HILL"] = "HILL";
1416
- Shape2["BRUSH"] = "BRUSH";
1417
- Shape2["PEAKS"] = "PEAKS";
1418
- Shape2["ANGLED_TRIANGLE"] = "ANGLED_TRIANGLE";
1419
- return Shape2;
1420
- })(Shape || {});
1421
- var BackdropType = /* @__PURE__ */ ((BackdropType2) => {
1422
- BackdropType2["COLOR"] = "COLOR";
1423
- BackdropType2["GRADIENT"] = "GRADIENT";
1424
- return BackdropType2;
1425
- })(BackdropType || {});
1426
- var VerticalAlignmentAlignment = /* @__PURE__ */ ((VerticalAlignmentAlignment2) => {
1427
- VerticalAlignmentAlignment2["TOP"] = "TOP";
1428
- VerticalAlignmentAlignment2["MIDDLE"] = "MIDDLE";
1429
- VerticalAlignmentAlignment2["BOTTOM"] = "BOTTOM";
1430
- return VerticalAlignmentAlignment2;
1431
- })(VerticalAlignmentAlignment || {});
1432
- var ResponsivenessBehaviour = /* @__PURE__ */ ((ResponsivenessBehaviour2) => {
1433
- ResponsivenessBehaviour2["STACK"] = "STACK";
1434
- ResponsivenessBehaviour2["WRAP"] = "WRAP";
1435
- return ResponsivenessBehaviour2;
1436
- })(ResponsivenessBehaviour || {});
1437
- var DesignTarget = /* @__PURE__ */ ((DesignTarget2) => {
1438
- DesignTarget2["LAYOUT"] = "LAYOUT";
1439
- DesignTarget2["CELL"] = "CELL";
1440
- return DesignTarget2;
1441
- })(DesignTarget || {});
1442
- var Scaling = /* @__PURE__ */ ((Scaling2) => {
1443
- Scaling2["AUTO"] = "AUTO";
1444
- Scaling2["CONTAIN"] = "CONTAIN";
1445
- Scaling2["COVER"] = "COVER";
1446
- return Scaling2;
1447
- })(Scaling || {});
1448
- var ImagePositionPosition = /* @__PURE__ */ ((ImagePositionPosition2) => {
1449
- ImagePositionPosition2["CENTER"] = "CENTER";
1450
- ImagePositionPosition2["CENTER_LEFT"] = "CENTER_LEFT";
1451
- ImagePositionPosition2["CENTER_RIGHT"] = "CENTER_RIGHT";
1452
- ImagePositionPosition2["TOP"] = "TOP";
1453
- ImagePositionPosition2["TOP_LEFT"] = "TOP_LEFT";
1454
- ImagePositionPosition2["TOP_RIGHT"] = "TOP_RIGHT";
1455
- ImagePositionPosition2["BOTTOM"] = "BOTTOM";
1456
- ImagePositionPosition2["BOTTOM_LEFT"] = "BOTTOM_LEFT";
1457
- ImagePositionPosition2["BOTTOM_RIGHT"] = "BOTTOM_RIGHT";
1458
- return ImagePositionPosition2;
1459
- })(ImagePositionPosition || {});
1460
- var CardDataBackgroundType = /* @__PURE__ */ ((CardDataBackgroundType2) => {
1461
- CardDataBackgroundType2["COLOR"] = "COLOR";
1462
- CardDataBackgroundType2["GRADIENT"] = "GRADIENT";
1463
- return CardDataBackgroundType2;
1464
- })(CardDataBackgroundType || {});
1465
- var ListStyle = /* @__PURE__ */ ((ListStyle2) => {
1466
- ListStyle2["PLAIN"] = "PLAIN";
1467
- ListStyle2["NUMBERED"] = "NUMBERED";
1468
- ListStyle2["LETTERS"] = "LETTERS";
1469
- ListStyle2["ROMAN"] = "ROMAN";
1470
- ListStyle2["BULLETED"] = "BULLETED";
1471
- ListStyle2["ALPHABETICAL_INDEX"] = "ALPHABETICAL_INDEX";
1472
- ListStyle2["ALPHABETICAL_INDEX_COMPACT"] = "ALPHABETICAL_INDEX_COMPACT";
1473
- return ListStyle2;
1474
- })(ListStyle || {});
1475
- var Indentation = /* @__PURE__ */ ((Indentation2) => {
1476
- Indentation2["NESTED"] = "NESTED";
1477
- Indentation2["FLAT"] = "FLAT";
1478
- return Indentation2;
1479
- })(Indentation || {});
1480
- var SmartBlockDataType = /* @__PURE__ */ ((SmartBlockDataType2) => {
1481
- SmartBlockDataType2["SOLID_BOXES"] = "SOLID_BOXES";
1482
- SmartBlockDataType2["NUMBERED_BOXES"] = "NUMBERED_BOXES";
1483
- SmartBlockDataType2["STATS"] = "STATS";
1484
- SmartBlockDataType2["CIRCLE_STATS"] = "CIRCLE_STATS";
1485
- SmartBlockDataType2["SOLID_BOXES_ALTERNATING"] = "SOLID_BOXES_ALTERNATING";
1486
- SmartBlockDataType2["SOLID_JOINED_BOXES"] = "SOLID_JOINED_BOXES";
1487
- SmartBlockDataType2["SIDE_LINE_TEXT"] = "SIDE_LINE_TEXT";
1488
- SmartBlockDataType2["TOP_LINE_TEXT"] = "TOP_LINE_TEXT";
1489
- SmartBlockDataType2["OUTLINE_BOXES_WITH_TOP_CIRCLE"] = "OUTLINE_BOXES_WITH_TOP_CIRCLE";
1490
- SmartBlockDataType2["BIG_BULLETS"] = "BIG_BULLETS";
1491
- SmartBlockDataType2["SMALL_BULLETS"] = "SMALL_BULLETS";
1492
- SmartBlockDataType2["ARROW_BULLETS"] = "ARROW_BULLETS";
1493
- SmartBlockDataType2["PROCESS_STEPS"] = "PROCESS_STEPS";
1494
- SmartBlockDataType2["BAR_STATS"] = "BAR_STATS";
1495
- SmartBlockDataType2["TIMELINE"] = "TIMELINE";
1496
- SmartBlockDataType2["MINIMAL_TIMELINE"] = "MINIMAL_TIMELINE";
1497
- SmartBlockDataType2["PILLS"] = "PILLS";
1498
- SmartBlockDataType2["STAR_RATING"] = "STAR_RATING";
1499
- SmartBlockDataType2["QUOTE_BOXES"] = "QUOTE_BOXES";
1500
- SmartBlockDataType2["CIRCLE"] = "CIRCLE";
1501
- SmartBlockDataType2["PYRAMID"] = "PYRAMID";
1502
- SmartBlockDataType2["STAIRCASE"] = "STAIRCASE";
1503
- SmartBlockDataType2["VERTICAL_FUNNEL"] = "VERTICAL_FUNNEL";
1504
- return SmartBlockDataType2;
1505
- })(SmartBlockDataType || {});
1506
- var ColumnSize = /* @__PURE__ */ ((ColumnSize2) => {
1507
- ColumnSize2["SMALL"] = "SMALL";
1508
- ColumnSize2["MEDIUM"] = "MEDIUM";
1509
- ColumnSize2["LARGE"] = "LARGE";
1510
- ColumnSize2["EXTRA_LARGE"] = "EXTRA_LARGE";
1511
- return ColumnSize2;
1512
- })(ColumnSize || {});
1513
- var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1514
- ImagePosition2["ABOVE"] = "ABOVE";
1515
- ImagePosition2["BELOW"] = "BELOW";
1516
- return ImagePosition2;
1517
- })(ImagePosition || {});
1518
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
1519
- Alignment2["LEFT"] = "LEFT";
1520
- Alignment2["CENTER"] = "CENTER";
1521
- Alignment2["RIGHT"] = "RIGHT";
1522
- return Alignment2;
1523
- })(Alignment || {});
1524
- var ImageFit = /* @__PURE__ */ ((ImageFit2) => {
1525
- ImageFit2["COVER"] = "COVER";
1526
- ImageFit2["CONTAIN"] = "CONTAIN";
1527
- return ImageFit2;
1528
- })(ImageFit || {});
1529
- var NumberOfColumns = /* @__PURE__ */ ((NumberOfColumns2) => {
1530
- NumberOfColumns2["ZERO"] = "ZERO";
1531
- NumberOfColumns2["ONE"] = "ONE";
1532
- NumberOfColumns2["TWO"] = "TWO";
1533
- NumberOfColumns2["THREE"] = "THREE";
1534
- return NumberOfColumns2;
1535
- })(NumberOfColumns || {});
1536
- var FirstDayOfWeek = /* @__PURE__ */ ((FirstDayOfWeek2) => {
1537
- FirstDayOfWeek2["MONDAY"] = "MONDAY";
1538
- FirstDayOfWeek2["SUNDAY"] = "SUNDAY";
1539
- return FirstDayOfWeek2;
1540
- })(FirstDayOfWeek || {});
1541
- var NumberComponentType = /* @__PURE__ */ ((NumberComponentType2) => {
1542
- NumberComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1543
- NumberComponentType2["NUMBER_INPUT"] = "NUMBER_INPUT";
1544
- NumberComponentType2["RATING_INPUT"] = "RATING_INPUT";
1545
- return NumberComponentType2;
1546
- })(NumberComponentType || {});
1547
- var BooleanComponentType = /* @__PURE__ */ ((BooleanComponentType2) => {
1548
- BooleanComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1549
- BooleanComponentType2["CHECKBOX"] = "CHECKBOX";
1550
- return BooleanComponentType2;
1551
- })(BooleanComponentType || {});
1552
- var ItemType = /* @__PURE__ */ ((ItemType2) => {
1553
- ItemType2["STRING"] = "STRING";
1554
- ItemType2["NUMBER"] = "NUMBER";
1555
- ItemType2["BOOLEAN"] = "BOOLEAN";
1556
- ItemType2["OBJECT"] = "OBJECT";
1557
- return ItemType2;
1558
- })(ItemType || {});
1559
- var PropertiesTypeEnum = /* @__PURE__ */ ((PropertiesTypeEnum2) => {
1560
- PropertiesTypeEnum2["STRING"] = "STRING";
1561
- PropertiesTypeEnum2["NUMBER"] = "NUMBER";
1562
- PropertiesTypeEnum2["BOOLEAN"] = "BOOLEAN";
1563
- PropertiesTypeEnum2["ARRAY"] = "ARRAY";
1564
- return PropertiesTypeEnum2;
1565
- })(PropertiesTypeEnum || {});
1566
- var ArrayComponentType = /* @__PURE__ */ ((ArrayComponentType2) => {
1567
- ArrayComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1568
- ArrayComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1569
- ArrayComponentType2["TAGS"] = "TAGS";
1570
- ArrayComponentType2["SERVICES_CHECKBOX_GROUP"] = "SERVICES_CHECKBOX_GROUP";
1571
- return ArrayComponentType2;
1572
- })(ArrayComponentType || {});
1573
- var WixFileComponentType = /* @__PURE__ */ ((WixFileComponentType2) => {
1574
- WixFileComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1575
- WixFileComponentType2["FILE_UPLOAD"] = "FILE_UPLOAD";
1576
- WixFileComponentType2["SIGNATURE"] = "SIGNATURE";
1577
- return WixFileComponentType2;
1578
- })(WixFileComponentType || {});
1579
- var UploadFileFormat = /* @__PURE__ */ ((UploadFileFormat2) => {
1580
- UploadFileFormat2["VIDEO"] = "VIDEO";
1581
- UploadFileFormat2["IMAGE"] = "IMAGE";
1582
- UploadFileFormat2["AUDIO"] = "AUDIO";
1583
- UploadFileFormat2["DOCUMENT"] = "DOCUMENT";
1584
- UploadFileFormat2["ARCHIVE"] = "ARCHIVE";
1585
- UploadFileFormat2["MODEL_3D"] = "MODEL_3D";
1586
- return UploadFileFormat2;
1587
- })(UploadFileFormat || {});
1588
- var PaymentComponentType = /* @__PURE__ */ ((PaymentComponentType2) => {
1589
- PaymentComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1590
- PaymentComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1591
- PaymentComponentType2["DONATION_INPUT"] = "DONATION_INPUT";
1592
- PaymentComponentType2["PAYMENT_INPUT"] = "PAYMENT_INPUT";
1593
- PaymentComponentType2["FIXED_PAYMENT"] = "FIXED_PAYMENT";
1594
- return PaymentComponentType2;
1595
- })(PaymentComponentType || {});
1596
- var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
1597
- ComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1598
- ComponentType2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
1599
- return ComponentType2;
1600
- })(ComponentType || {});
1601
- var Type = /* @__PURE__ */ ((Type2) => {
1602
- Type2["UNKNOWN_DEFAULT_COUNTRY"] = "UNKNOWN_DEFAULT_COUNTRY";
1603
- Type2["BY_IP"] = "BY_IP";
1604
- Type2["COUNTRY"] = "COUNTRY";
1605
- return Type2;
1606
- })(Type || {});
1607
- var ObjectArrayComponentType = /* @__PURE__ */ ((ObjectArrayComponentType2) => {
1608
- ObjectArrayComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1609
- ObjectArrayComponentType2["REPEATER"] = "REPEATER";
1610
- return ObjectArrayComponentType2;
1611
- })(ObjectArrayComponentType || {});
1612
- var SchedulingComponentType = /* @__PURE__ */ ((SchedulingComponentType2) => {
1613
- SchedulingComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1614
- SchedulingComponentType2["APPOINTMENT"] = "APPOINTMENT";
1615
- return SchedulingComponentType2;
1616
- })(SchedulingComponentType || {});
1617
- var WaitType = /* @__PURE__ */ ((WaitType2) => {
1618
- WaitType2["NO_WAIT"] = "NO_WAIT";
1619
- WaitType2["WAIT"] = "WAIT";
1620
- WaitType2["NO_REBOOKING"] = "NO_REBOOKING";
1621
- return WaitType2;
1622
- })(WaitType || {});
1623
- var Format = /* @__PURE__ */ ((Format2) => {
1624
- Format2["IN_PERSON"] = "IN_PERSON";
1625
- Format2["VIDEO_CONFERENCE"] = "VIDEO_CONFERENCE";
1626
- Format2["PHONE"] = "PHONE";
1627
- return Format2;
1628
- })(Format || {});
1629
- var MeetingType = /* @__PURE__ */ ((MeetingType2) => {
1630
- MeetingType2["SINGLE_STAFF"] = "SINGLE_STAFF";
1631
- MeetingType2["ROUND_ROBIN"] = "ROUND_ROBIN";
1632
- return MeetingType2;
1633
- })(MeetingType || {});
1634
- var StaffStrategySelection = /* @__PURE__ */ ((StaffStrategySelection2) => {
1635
- StaffStrategySelection2["AUTOMATIC"] = "AUTOMATIC";
1636
- StaffStrategySelection2["HIGH_TO_LOW_PRIORITY"] = "HIGH_TO_LOW_PRIORITY";
1637
- StaffStrategySelection2["LOW_TO_HIGH_PRIORITY"] = "LOW_TO_HIGH_PRIORITY";
1638
- return StaffStrategySelection2;
1639
- })(StaffStrategySelection || {});
1640
- var InputType = /* @__PURE__ */ ((InputType2) => {
1641
- InputType2["UNKNOWN_INPUT_TYPE"] = "UNKNOWN_INPUT_TYPE";
1642
- InputType2["STRING"] = "STRING";
1643
- InputType2["NUMBER"] = "NUMBER";
1644
- InputType2["BOOLEAN"] = "BOOLEAN";
1645
- InputType2["ARRAY"] = "ARRAY";
1646
- InputType2["OBJECT"] = "OBJECT";
1647
- InputType2["WIX_FILE"] = "WIX_FILE";
1648
- InputType2["PAYMENT"] = "PAYMENT";
1649
- InputType2["SCHEDULING"] = "SCHEDULING";
1650
- InputType2["ADDRESS"] = "ADDRESS";
1651
- InputType2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
1652
- InputType2["OBJECT_ARRAY"] = "OBJECT_ARRAY";
1653
- return InputType2;
1654
- })(InputType || {});
1655
- var EmailInfoTag = /* @__PURE__ */ ((EmailInfoTag2) => {
1656
- EmailInfoTag2["UNTAGGED"] = "UNTAGGED";
1657
- EmailInfoTag2["MAIN"] = "MAIN";
1658
- return EmailInfoTag2;
1659
- })(EmailInfoTag || {});
1660
- var PhoneInfoTag = /* @__PURE__ */ ((PhoneInfoTag2) => {
1661
- PhoneInfoTag2["UNTAGGED"] = "UNTAGGED";
1662
- PhoneInfoTag2["MAIN"] = "MAIN";
1663
- return PhoneInfoTag2;
1664
- })(PhoneInfoTag || {});
1665
- var Tag = /* @__PURE__ */ ((Tag2) => {
1666
- Tag2["UNTAGGED"] = "UNTAGGED";
1667
- Tag2["HOME"] = "HOME";
1668
- return Tag2;
1669
- })(Tag || {});
1670
- var ConfirmationLevel = /* @__PURE__ */ ((ConfirmationLevel2) => {
1671
- ConfirmationLevel2["UNKNOWN_CONFIRMATION_LEVEL"] = "UNKNOWN_CONFIRMATION_LEVEL";
1672
- ConfirmationLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
1673
- ConfirmationLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
1674
- return ConfirmationLevel2;
1675
- })(ConfirmationLevel || {});
1676
- var SubscriptionChannel = /* @__PURE__ */ ((SubscriptionChannel2) => {
1677
- SubscriptionChannel2["EMAIL"] = "EMAIL";
1678
- SubscriptionChannel2["SMS"] = "SMS";
1679
- return SubscriptionChannel2;
1680
- })(SubscriptionChannel || {});
1681
- var ContactField = /* @__PURE__ */ ((ContactField2) => {
1682
- ContactField2["FIRST_NAME"] = "FIRST_NAME";
1683
- ContactField2["LAST_NAME"] = "LAST_NAME";
1684
- ContactField2["COMPANY"] = "COMPANY";
1685
- ContactField2["POSITION"] = "POSITION";
1686
- ContactField2["EMAIL"] = "EMAIL";
1687
- ContactField2["PHONE"] = "PHONE";
1688
- ContactField2["ADDRESS"] = "ADDRESS";
1689
- ContactField2["BIRTHDATE"] = "BIRTHDATE";
1690
- ContactField2["CUSTOM_FIELD"] = "CUSTOM_FIELD";
1691
- ContactField2["SUBSCRIPTION"] = "SUBSCRIPTION";
1692
- ContactField2["VAT_ID"] = "VAT_ID";
1693
- return ContactField2;
1694
- })(ContactField || {});
1695
- var DisplayFieldType = /* @__PURE__ */ ((DisplayFieldType2) => {
1696
- DisplayFieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1697
- DisplayFieldType2["RICH_CONTENT"] = "RICH_CONTENT";
1698
- DisplayFieldType2["PAGE_NAVIGATION"] = "PAGE_NAVIGATION";
1699
- DisplayFieldType2["LOGIN_BAR"] = "LOGIN_BAR";
1700
- return DisplayFieldType2;
1701
- })(DisplayFieldType || {});
1702
- var OverrideEntityType = /* @__PURE__ */ ((OverrideEntityType2) => {
1703
- OverrideEntityType2["UNKNOWN"] = "UNKNOWN";
1704
- OverrideEntityType2["FIELD"] = "FIELD";
1705
- OverrideEntityType2["FORM"] = "FORM";
1706
- OverrideEntityType2["NESTED_FORM_FIELD"] = "NESTED_FORM_FIELD";
1707
- return OverrideEntityType2;
1708
- })(OverrideEntityType || {});
1709
- var Kind = /* @__PURE__ */ ((Kind2) => {
1710
- Kind2["REGULAR"] = "REGULAR";
1711
- Kind2["EXTENSION"] = "EXTENSION";
1712
- return Kind2;
1713
- })(Kind || {});
1714
- var FormFieldContactInfoEmailInfoTag = /* @__PURE__ */ ((FormFieldContactInfoEmailInfoTag2) => {
1715
- FormFieldContactInfoEmailInfoTag2["UNTAGGED"] = "UNTAGGED";
1716
- FormFieldContactInfoEmailInfoTag2["MAIN"] = "MAIN";
1717
- return FormFieldContactInfoEmailInfoTag2;
1718
- })(FormFieldContactInfoEmailInfoTag || {});
1719
- var FormFieldContactInfoPhoneInfoTag = /* @__PURE__ */ ((FormFieldContactInfoPhoneInfoTag2) => {
1720
- FormFieldContactInfoPhoneInfoTag2["UNTAGGED"] = "UNTAGGED";
1721
- FormFieldContactInfoPhoneInfoTag2["MAIN"] = "MAIN";
1722
- return FormFieldContactInfoPhoneInfoTag2;
1723
- })(FormFieldContactInfoPhoneInfoTag || {});
1724
- var AddressInfoTag = /* @__PURE__ */ ((AddressInfoTag2) => {
1725
- AddressInfoTag2["UNTAGGED"] = "UNTAGGED";
1726
- AddressInfoTag2["HOME"] = "HOME";
1727
- return AddressInfoTag2;
1728
- })(AddressInfoTag || {});
1729
- var SubscriptionInfoOptInLevel = /* @__PURE__ */ ((SubscriptionInfoOptInLevel2) => {
1730
- SubscriptionInfoOptInLevel2["UNKNOWN"] = "UNKNOWN";
1731
- SubscriptionInfoOptInLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
1732
- SubscriptionInfoOptInLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
1733
- return SubscriptionInfoOptInLevel2;
1734
- })(SubscriptionInfoOptInLevel || {});
1735
- var FormFieldContactInfoContactField = /* @__PURE__ */ ((FormFieldContactInfoContactField2) => {
1736
- FormFieldContactInfoContactField2["FIRST_NAME"] = "FIRST_NAME";
1737
- FormFieldContactInfoContactField2["LAST_NAME"] = "LAST_NAME";
1738
- FormFieldContactInfoContactField2["COMPANY"] = "COMPANY";
1739
- FormFieldContactInfoContactField2["POSITION"] = "POSITION";
1740
- FormFieldContactInfoContactField2["EMAIL"] = "EMAIL";
1741
- FormFieldContactInfoContactField2["PHONE"] = "PHONE";
1742
- FormFieldContactInfoContactField2["ADDRESS"] = "ADDRESS";
1743
- FormFieldContactInfoContactField2["BIRTHDATE"] = "BIRTHDATE";
1744
- FormFieldContactInfoContactField2["CUSTOM_FIELD"] = "CUSTOM_FIELD";
1745
- FormFieldContactInfoContactField2["SUBSCRIPTION"] = "SUBSCRIPTION";
1746
- FormFieldContactInfoContactField2["VAT_ID"] = "VAT_ID";
1747
- return FormFieldContactInfoContactField2;
1748
- })(FormFieldContactInfoContactField || {});
1749
- var SpamFilterProtectionLevel = /* @__PURE__ */ ((SpamFilterProtectionLevel2) => {
1750
- SpamFilterProtectionLevel2["UNKNOWN"] = "UNKNOWN";
1751
- SpamFilterProtectionLevel2["NONE"] = "NONE";
1752
- SpamFilterProtectionLevel2["BASIC"] = "BASIC";
1753
- SpamFilterProtectionLevel2["ADVANCED"] = "ADVANCED";
1754
- return SpamFilterProtectionLevel2;
1755
- })(SpamFilterProtectionLevel || {});
1756
- var RequiredIndicator = /* @__PURE__ */ ((RequiredIndicator2) => {
1757
- RequiredIndicator2["ASTERISK"] = "ASTERISK";
1758
- RequiredIndicator2["TEXT"] = "TEXT";
1759
- RequiredIndicator2["NONE"] = "NONE";
1760
- return RequiredIndicator2;
1761
- })(RequiredIndicator || {});
1762
- var RequiredIndicatorPlacement = /* @__PURE__ */ ((RequiredIndicatorPlacement2) => {
1763
- RequiredIndicatorPlacement2["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
1764
- RequiredIndicatorPlacement2["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
1765
- return RequiredIndicatorPlacement2;
1766
- })(RequiredIndicatorPlacement || {});
1767
- var Target = /* @__PURE__ */ ((Target2) => {
1768
- Target2["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
1769
- Target2["SELF"] = "SELF";
1770
- Target2["BLANK"] = "BLANK";
1771
- return Target2;
1772
- })(Target || {});
1773
- var SubmitSuccessAction = /* @__PURE__ */ ((SubmitSuccessAction2) => {
1774
- SubmitSuccessAction2["NO_ACTION"] = "NO_ACTION";
1775
- SubmitSuccessAction2["THANK_YOU_MESSAGE"] = "THANK_YOU_MESSAGE";
1776
- SubmitSuccessAction2["REDIRECT"] = "REDIRECT";
1777
- SubmitSuccessAction2["POPUP"] = "POPUP";
1778
- return SubmitSuccessAction2;
1779
- })(SubmitSuccessAction || {});
1780
- var ChangeableProperty = /* @__PURE__ */ ((ChangeableProperty2) => {
1781
- ChangeableProperty2["REQUIRED"] = "REQUIRED";
1782
- ChangeableProperty2["HIDDEN"] = "HIDDEN";
1783
- return ChangeableProperty2;
1784
- })(ChangeableProperty || {});
1785
- var OverrideEntityTypeEnumOverrideEntityType = /* @__PURE__ */ ((OverrideEntityTypeEnumOverrideEntityType2) => {
1786
- OverrideEntityTypeEnumOverrideEntityType2["FIELD"] = "FIELD";
1787
- return OverrideEntityTypeEnumOverrideEntityType2;
1788
- })(OverrideEntityTypeEnumOverrideEntityType || {});
1789
- var Operator = /* @__PURE__ */ ((Operator2) => {
1790
- Operator2["EQUAL"] = "EQUAL";
1791
- Operator2["NOT_EQUAL"] = "NOT_EQUAL";
1792
- Operator2["EMPTY"] = "EMPTY";
1793
- Operator2["NOT_EMPTY"] = "NOT_EMPTY";
1794
- Operator2["CONTAINS"] = "CONTAINS";
1795
- Operator2["NOT_CONTAINS"] = "NOT_CONTAINS";
1796
- Operator2["LESS_THAN"] = "LESS_THAN";
1797
- Operator2["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
1798
- Operator2["GREATER_THAN"] = "GREATER_THAN";
1799
- Operator2["GREATER_THAN_OR_EQUALS"] = "GREATER_THAN_OR_EQUALS";
1800
- Operator2["BEFORE"] = "BEFORE";
1801
- Operator2["BEFORE_OR_EQUAL"] = "BEFORE_OR_EQUAL";
1802
- Operator2["AFTER"] = "AFTER";
1803
- Operator2["AFTER_OR_EQUAL"] = "AFTER_OR_EQUAL";
1804
- Operator2["BETWEEN"] = "BETWEEN";
1805
- Operator2["ANY"] = "ANY";
1806
- Operator2["ARRAY_EQUAL"] = "ARRAY_EQUAL";
1807
- Operator2["ARRAY_NOT_EQUAL"] = "ARRAY_NOT_EQUAL";
1808
- Operator2["CHECKED"] = "CHECKED";
1809
- Operator2["NOT_CHECKED"] = "NOT_CHECKED";
1810
- Operator2["IN"] = "IN";
1811
- Operator2["NOT_IN"] = "NOT_IN";
1812
- Operator2["IS_DATE_OLDER_THAN"] = "IS_DATE_OLDER_THAN";
1813
- Operator2["IS_DATE_OLDER_THAN_OR_EQUAL"] = "IS_DATE_OLDER_THAN_OR_EQUAL";
1814
- Operator2["IS_DATE_NEWER_THAN"] = "IS_DATE_NEWER_THAN";
1815
- Operator2["IS_DATE_NEWER_THAN_OR_EQUAL"] = "IS_DATE_NEWER_THAN_OR_EQUAL";
1816
- return Operator2;
1817
- })(Operator || {});
1818
- var ResultsDisplay = /* @__PURE__ */ ((ResultsDisplay2) => {
1819
- ResultsDisplay2["DO_NOT_DISPLAY"] = "DO_NOT_DISPLAY";
1820
- ResultsDisplay2["SCORE"] = "SCORE";
1821
- ResultsDisplay2["PASSING_STATUS"] = "PASSING_STATUS";
1822
- ResultsDisplay2["SCORE_AND_PASSING_STATUS"] = "SCORE_AND_PASSING_STATUS";
1823
- return ResultsDisplay2;
1824
- })(ResultsDisplay || {});
1825
- var ContactAutofill = /* @__PURE__ */ ((ContactAutofill2) => {
1826
- ContactAutofill2["MEMBER_DATA"] = "MEMBER_DATA";
1827
- ContactAutofill2["FORM_INPUT"] = "FORM_INPUT";
1828
- return ContactAutofill2;
1829
- })(ContactAutofill || {});
1830
- var SubmissionAccess = /* @__PURE__ */ ((SubmissionAccess2) => {
1831
- SubmissionAccess2["UNKNOWN_SUBMISSION_ACCESS"] = "UNKNOWN_SUBMISSION_ACCESS";
1832
- SubmissionAccess2["OWNER_AND_COLLABORATORS"] = "OWNER_AND_COLLABORATORS";
1833
- SubmissionAccess2["MEMBERS"] = "MEMBERS";
1834
- SubmissionAccess2["PUBLIC"] = "PUBLIC";
1835
- return SubmissionAccess2;
1836
- })(SubmissionAccess || {});
1837
- var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
1838
- IdentityType2["UNKNOWN"] = "UNKNOWN";
1839
- IdentityType2["CONTACT"] = "CONTACT";
1840
- IdentityType2["MEMBER"] = "MEMBER";
1841
- IdentityType2["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
1842
- return IdentityType2;
1843
- })(IdentityType || {});
1844
- var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
1845
- ErrorType2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
1846
- ErrorType2["TYPE_ERROR"] = "TYPE_ERROR";
1847
- ErrorType2["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
1848
- ErrorType2["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
1849
- ErrorType2["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
1850
- ErrorType2["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
1851
- ErrorType2["PATTERN_ERROR"] = "PATTERN_ERROR";
1852
- ErrorType2["FORMAT_ERROR"] = "FORMAT_ERROR";
1853
- ErrorType2["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
1854
- ErrorType2["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
1855
- ErrorType2["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
1856
- ErrorType2["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
1857
- ErrorType2["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
1858
- ErrorType2["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
1859
- ErrorType2["FIELDS_COMPATIBILITY_ERROR"] = "FIELDS_COMPATIBILITY_ERROR";
1860
- ErrorType2["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
1861
- ErrorType2["FORMS_COUNT_RESTRICTIONS_ERROR"] = "FORMS_COUNT_RESTRICTIONS_ERROR";
1862
- ErrorType2["FIELDS_COUNT_RESTRICTIONS_ERROR"] = "FIELDS_COUNT_RESTRICTIONS_ERROR";
1863
- ErrorType2["STEPS_COUNT_RESTRICTIONS_ERROR"] = "STEPS_COUNT_RESTRICTIONS_ERROR";
1864
- ErrorType2["RULES_COUNT_RESTRICTIONS_ERROR"] = "RULES_COUNT_RESTRICTIONS_ERROR";
1865
- ErrorType2["FILE_UPLOAD_RESTRICTIONS_ERROR"] = "FILE_UPLOAD_RESTRICTIONS_ERROR";
1866
- ErrorType2["INVALID_PHONE_COUNTRY_CODE_ERROR"] = "INVALID_PHONE_COUNTRY_CODE_ERROR";
1867
- ErrorType2["INVALID_STAFF_ID_ERROR"] = "INVALID_STAFF_ID_ERROR";
1868
- ErrorType2["INVALID_LOCATION_ID_ERROR"] = "INVALID_LOCATION_ID_ERROR";
1869
- ErrorType2["MISSING_SERVICE_OPTION_ERROR"] = "MISSING_SERVICE_OPTION_ERROR";
1870
- ErrorType2["INVALID_SERVICE_OPTIONS_ERROR"] = "INVALID_SERVICE_OPTIONS_ERROR";
1871
- ErrorType2["NO_AVAILABLE_SERVICE_OPTIONS_ERROR"] = "NO_AVAILABLE_SERVICE_OPTIONS_ERROR";
1872
- ErrorType2["EXACT_CHARACTER_LENGTH_ERROR"] = "EXACT_CHARACTER_LENGTH_ERROR";
1873
- ErrorType2["CHARACTER_LENGTH_RANGE_ERROR"] = "CHARACTER_LENGTH_RANGE_ERROR";
1874
- ErrorType2["VALUE_RANGE_ERROR"] = "VALUE_RANGE_ERROR";
1875
- ErrorType2["EXACT_ITEMS_NUMBER_ERROR"] = "EXACT_ITEMS_NUMBER_ERROR";
1876
- ErrorType2["DECIMAL_POINT_ERROR"] = "DECIMAL_POINT_ERROR";
1877
- ErrorType2["INCOMPLETE_DATE_ERROR"] = "INCOMPLETE_DATE_ERROR";
1878
- ErrorType2["INVALID_VALUE_FOR_PATTERN_ERROR"] = "INVALID_VALUE_FOR_PATTERN_ERROR";
1879
- ErrorType2["INVALID_DEFAULT_VALUE_ERROR"] = "INVALID_DEFAULT_VALUE_ERROR";
1880
- ErrorType2["NO_CONNECTED_CONFERENCING_RESOURCE_ERROR"] = "NO_CONNECTED_CONFERENCING_RESOURCE_ERROR";
1881
- return ErrorType2;
1882
- })(ErrorType || {});
1883
- var Status = /* @__PURE__ */ ((Status2) => {
1884
- Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
1885
- Status2["READY"] = "READY";
1886
- Status2["PENDING"] = "PENDING";
1887
- Status2["FAILED"] = "FAILED";
1888
- return Status2;
1889
- })(Status || {});
1890
- var SubmissionErrorType = /* @__PURE__ */ ((SubmissionErrorType2) => {
1891
- SubmissionErrorType2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
1892
- SubmissionErrorType2["TYPE_ERROR"] = "TYPE_ERROR";
1893
- SubmissionErrorType2["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
1894
- SubmissionErrorType2["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
1895
- SubmissionErrorType2["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
1896
- SubmissionErrorType2["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
1897
- SubmissionErrorType2["PATTERN_ERROR"] = "PATTERN_ERROR";
1898
- SubmissionErrorType2["FORMAT_ERROR"] = "FORMAT_ERROR";
1899
- SubmissionErrorType2["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
1900
- SubmissionErrorType2["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
1901
- SubmissionErrorType2["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
1902
- SubmissionErrorType2["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
1903
- SubmissionErrorType2["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
1904
- SubmissionErrorType2["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
1905
- SubmissionErrorType2["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
1906
- return SubmissionErrorType2;
1907
- })(SubmissionErrorType || {});
1908
- async function upsertContactFromSubmission2(submissionId, options) {
1909
- const { httpClient, sideEffects } = arguments[2];
1910
- const payload = renameKeysFromSDKRequestToRESTRequest({
1911
- submissionId,
1912
- contactId: options?.contactId,
1913
- emailVerified: options?.emailVerified
1914
- });
1915
- const reqOpts = upsertContactFromSubmission(payload);
1916
- sideEffects?.onSiteCall?.();
1917
- try {
1918
- const result = await httpClient.request(reqOpts);
1919
- sideEffects?.onSuccess?.(result);
1920
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1921
- } catch (err) {
1922
- const transformedError = sdkTransformError(
1923
- err,
1924
- {
1925
- spreadPathsToArguments: {},
1926
- explicitPathsToArguments: {
1927
- submissionId: "$[0]",
1928
- contactId: "$[1].contactId",
1929
- emailVerified: "$[1].emailVerified"
1930
- },
1931
- singleArgumentUnchanged: false
1932
- },
1933
- ["submissionId", "options"]
1934
- );
1935
- sideEffects?.onError?.(err);
1936
- throw transformedError;
1937
- }
1938
- }
1939
- async function createSubmission2(submission, options) {
1940
- const { httpClient, sideEffects } = arguments[2];
1941
- const payload = renameKeysFromSDKRequestToRESTRequest({
1942
- submission,
1943
- captchaToken: options?.captchaToken,
1944
- additionalMetadata: options?.additionalMetadata
1945
- });
1946
- const reqOpts = createSubmission(payload);
1947
- sideEffects?.onSiteCall?.();
1948
- try {
1949
- const result = await httpClient.request(reqOpts);
1950
- sideEffects?.onSuccess?.(result);
1951
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
1952
- } catch (err) {
1953
- const transformedError = sdkTransformError(
1954
- err,
1955
- {
1956
- spreadPathsToArguments: {},
1957
- explicitPathsToArguments: {
1958
- submission: "$[0]",
1959
- captchaToken: "$[1].captchaToken",
1960
- additionalMetadata: "$[1].additionalMetadata"
1961
- },
1962
- singleArgumentUnchanged: false
1963
- },
1964
- ["submission", "options"]
1965
- );
1966
- sideEffects?.onError?.(err);
1967
- throw transformedError;
1968
- }
1969
- }
1970
- async function getSubmission2(submissionId) {
1971
- const { httpClient, sideEffects } = arguments[1];
1972
- const payload = renameKeysFromSDKRequestToRESTRequest({
1973
- submissionId
1974
- });
1975
- const reqOpts = getSubmission(payload);
1976
- sideEffects?.onSiteCall?.();
1977
- try {
1978
- const result = await httpClient.request(reqOpts);
1979
- sideEffects?.onSuccess?.(result);
1980
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
1981
- } catch (err) {
1982
- const transformedError = sdkTransformError(
1983
- err,
1984
- {
1985
- spreadPathsToArguments: {},
1986
- explicitPathsToArguments: { submissionId: "$[0]" },
1987
- singleArgumentUnchanged: false
1988
- },
1989
- ["submissionId"]
1990
- );
1991
- sideEffects?.onError?.(err);
1992
- throw transformedError;
1993
- }
1994
- }
1995
- async function updateSubmission2(_id, submission) {
1996
- const { httpClient, sideEffects } = arguments[2];
1997
- const payload = renameKeysFromSDKRequestToRESTRequest({
1998
- submission: { ...submission, id: _id }
1999
- });
2000
- const reqOpts = updateSubmission(payload);
2001
- sideEffects?.onSiteCall?.();
2002
- try {
2003
- const result = await httpClient.request(reqOpts);
2004
- sideEffects?.onSuccess?.(result);
2005
- return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
2006
- } catch (err) {
2007
- const transformedError = sdkTransformError(
2008
- err,
2009
- {
2010
- spreadPathsToArguments: { submission: "$[1]" },
2011
- explicitPathsToArguments: { "submission.id": "$[0]" },
2012
- singleArgumentUnchanged: false
2013
- },
2014
- ["_id", "submission"]
2015
- );
2016
- sideEffects?.onError?.(err);
2017
- throw transformedError;
2018
- }
2019
- }
2020
- async function confirmSubmission2(submissionId) {
2021
- const { httpClient, sideEffects } = arguments[1];
2022
- const payload = renameKeysFromSDKRequestToRESTRequest({
2023
- submissionId
2024
- });
2025
- const reqOpts = confirmSubmission(payload);
2026
- sideEffects?.onSiteCall?.();
2027
- try {
2028
- const result = await httpClient.request(reqOpts);
2029
- sideEffects?.onSuccess?.(result);
2030
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2031
- } catch (err) {
2032
- const transformedError = sdkTransformError(
2033
- err,
2034
- {
2035
- spreadPathsToArguments: {},
2036
- explicitPathsToArguments: { submissionId: "$[0]" },
2037
- singleArgumentUnchanged: false
2038
- },
2039
- ["submissionId"]
2040
- );
2041
- sideEffects?.onError?.(err);
2042
- throw transformedError;
2043
- }
2044
- }
2045
- async function deleteSubmission2(submissionId, options) {
2046
- const { httpClient, sideEffects } = arguments[2];
2047
- const payload = renameKeysFromSDKRequestToRESTRequest({
2048
- submissionId,
2049
- permanent: options?.permanent,
2050
- preserveFiles: options?.preserveFiles
2051
- });
2052
- const reqOpts = deleteSubmission(payload);
2053
- sideEffects?.onSiteCall?.();
2054
- try {
2055
- const result = await httpClient.request(reqOpts);
2056
- sideEffects?.onSuccess?.(result);
2057
- } catch (err) {
2058
- const transformedError = sdkTransformError(
2059
- err,
2060
- {
2061
- spreadPathsToArguments: {},
2062
- explicitPathsToArguments: {
2063
- submissionId: "$[0]",
2064
- permanent: "$[1].permanent",
2065
- preserveFiles: "$[1].preserveFiles"
2066
- },
2067
- singleArgumentUnchanged: false
2068
- },
2069
- ["submissionId", "options"]
2070
- );
2071
- sideEffects?.onError?.(err);
2072
- throw transformedError;
2073
- }
2074
- }
2075
- async function bulkDeleteSubmission2(formId, options) {
2076
- const { httpClient, sideEffects } = arguments[2];
2077
- const payload = renameKeysFromSDKRequestToRESTRequest({
2078
- formId,
2079
- submissionIds: options?.submissionIds,
2080
- permanent: options?.permanent,
2081
- preserveFiles: options?.preserveFiles
2082
- });
2083
- const reqOpts = bulkDeleteSubmission(payload);
2084
- sideEffects?.onSiteCall?.();
2085
- try {
2086
- const result = await httpClient.request(reqOpts);
2087
- sideEffects?.onSuccess?.(result);
2088
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2089
- } catch (err) {
2090
- const transformedError = sdkTransformError(
2091
- err,
2092
- {
2093
- spreadPathsToArguments: {},
2094
- explicitPathsToArguments: {
2095
- formId: "$[0]",
2096
- submissionIds: "$[1].submissionIds",
2097
- permanent: "$[1].permanent",
2098
- preserveFiles: "$[1].preserveFiles"
2099
- },
2100
- singleArgumentUnchanged: false
2101
- },
2102
- ["formId", "options"]
2103
- );
2104
- sideEffects?.onError?.(err);
2105
- throw transformedError;
2106
- }
2107
- }
2108
- async function restoreSubmissionFromTrashBin2(submissionId) {
2109
- const { httpClient, sideEffects } = arguments[1];
2110
- const payload = renameKeysFromSDKRequestToRESTRequest({
2111
- submissionId
2112
- });
2113
- const reqOpts = restoreSubmissionFromTrashBin(payload);
2114
- sideEffects?.onSiteCall?.();
2115
- try {
2116
- const result = await httpClient.request(reqOpts);
2117
- sideEffects?.onSuccess?.(result);
2118
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2119
- } catch (err) {
2120
- const transformedError = sdkTransformError(
2121
- err,
2122
- {
2123
- spreadPathsToArguments: {},
2124
- explicitPathsToArguments: { submissionId: "$[0]" },
2125
- singleArgumentUnchanged: false
2126
- },
2127
- ["submissionId"]
2128
- );
2129
- sideEffects?.onError?.(err);
2130
- throw transformedError;
2131
- }
2132
- }
2133
- async function removeSubmissionFromTrashBin2(submissionId) {
2134
- const { httpClient, sideEffects } = arguments[1];
2135
- const payload = renameKeysFromSDKRequestToRESTRequest({
2136
- submissionId
2137
- });
2138
- const reqOpts = removeSubmissionFromTrashBin(payload);
2139
- sideEffects?.onSiteCall?.();
2140
- try {
2141
- const result = await httpClient.request(reqOpts);
2142
- sideEffects?.onSuccess?.(result);
2143
- } catch (err) {
2144
- const transformedError = sdkTransformError(
2145
- err,
2146
- {
2147
- spreadPathsToArguments: {},
2148
- explicitPathsToArguments: { submissionId: "$[0]" },
2149
- singleArgumentUnchanged: false
2150
- },
2151
- ["submissionId"]
2152
- );
2153
- sideEffects?.onError?.(err);
2154
- throw transformedError;
2155
- }
2156
- }
2157
- async function bulkRemoveSubmissionFromTrashBin2(formId, options) {
2158
- const { httpClient, sideEffects } = arguments[2];
2159
- const payload = renameKeysFromSDKRequestToRESTRequest({
2160
- formId,
2161
- submissionIds: options?.submissionIds
2162
- });
2163
- const reqOpts = bulkRemoveSubmissionFromTrashBin(payload);
2164
- sideEffects?.onSiteCall?.();
2165
- try {
2166
- const result = await httpClient.request(reqOpts);
2167
- sideEffects?.onSuccess?.(result);
2168
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2169
- } catch (err) {
2170
- const transformedError = sdkTransformError(
2171
- err,
2172
- {
2173
- spreadPathsToArguments: {},
2174
- explicitPathsToArguments: {
2175
- formId: "$[0]",
2176
- submissionIds: "$[1].submissionIds"
2177
- },
2178
- singleArgumentUnchanged: false
2179
- },
2180
- ["formId", "options"]
2181
- );
2182
- sideEffects?.onError?.(err);
2183
- throw transformedError;
2184
- }
2185
- }
2186
- async function listDeletedSubmissions2(formId, options) {
2187
- const { httpClient, sideEffects } = arguments[2];
2188
- const payload = renameKeysFromSDKRequestToRESTRequest({
2189
- formId,
2190
- submissionIds: options?.submissionIds,
2191
- paging: options?.paging,
2192
- statuses: options?.statuses
2193
- });
2194
- const reqOpts = listDeletedSubmissions(payload);
2195
- sideEffects?.onSiteCall?.();
2196
- try {
2197
- const result = await httpClient.request(reqOpts);
2198
- sideEffects?.onSuccess?.(result);
2199
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2200
- } catch (err) {
2201
- const transformedError = sdkTransformError(
2202
- err,
2203
- {
2204
- spreadPathsToArguments: {},
2205
- explicitPathsToArguments: {
2206
- formId: "$[0]",
2207
- submissionIds: "$[1].submissionIds",
2208
- paging: "$[1].paging",
2209
- statuses: "$[1].statuses"
2210
- },
2211
- singleArgumentUnchanged: false
2212
- },
2213
- ["formId", "options"]
2214
- );
2215
- sideEffects?.onError?.(err);
2216
- throw transformedError;
2217
- }
2218
- }
2219
- async function getDeletedSubmission2(submissionId) {
2220
- const { httpClient, sideEffects } = arguments[1];
2221
- const payload = renameKeysFromSDKRequestToRESTRequest({
2222
- submissionId
2223
- });
2224
- const reqOpts = getDeletedSubmission(payload);
2225
- sideEffects?.onSiteCall?.();
2226
- try {
2227
- const result = await httpClient.request(reqOpts);
2228
- sideEffects?.onSuccess?.(result);
2229
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2230
- } catch (err) {
2231
- const transformedError = sdkTransformError(
2232
- err,
2233
- {
2234
- spreadPathsToArguments: {},
2235
- explicitPathsToArguments: { submissionId: "$[0]" },
2236
- singleArgumentUnchanged: false
2237
- },
2238
- ["submissionId"]
2239
- );
2240
- sideEffects?.onError?.(err);
2241
- throw transformedError;
2242
- }
2243
- }
2244
- async function querySubmission2(query, options) {
2245
- const { httpClient, sideEffects } = arguments[2];
2246
- const payload = renameKeysFromSDKRequestToRESTRequest({
2247
- query,
2248
- onlyYourOwn: options?.onlyYourOwn
2249
- });
2250
- const reqOpts = querySubmission(payload);
2251
- sideEffects?.onSiteCall?.();
2252
- try {
2253
- const result = await httpClient.request(reqOpts);
2254
- sideEffects?.onSuccess?.(result);
2255
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2256
- } catch (err) {
2257
- const transformedError = sdkTransformError(
2258
- err,
2259
- {
2260
- spreadPathsToArguments: {},
2261
- explicitPathsToArguments: {
2262
- query: "$[0]",
2263
- onlyYourOwn: "$[1].onlyYourOwn"
2264
- },
2265
- singleArgumentUnchanged: false
2266
- },
2267
- ["query", "options"]
2268
- );
2269
- sideEffects?.onError?.(err);
2270
- throw transformedError;
2271
- }
2272
- }
2273
- async function searchSubmissionsByNamespace2(search) {
2274
- const { httpClient, sideEffects } = arguments[1];
2275
- const payload = renameKeysFromSDKRequestToRESTRequest({ search });
2276
- const reqOpts = searchSubmissionsByNamespace(payload);
2277
- sideEffects?.onSiteCall?.();
2278
- try {
2279
- const result = await httpClient.request(reqOpts);
2280
- sideEffects?.onSuccess?.(result);
2281
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2282
- } catch (err) {
2283
- const transformedError = sdkTransformError(
2284
- err,
2285
- {
2286
- spreadPathsToArguments: {},
2287
- explicitPathsToArguments: { search: "$[0]" },
2288
- singleArgumentUnchanged: false
2289
- },
2290
- ["search"]
2291
- );
2292
- sideEffects?.onError?.(err);
2293
- throw transformedError;
2294
- }
2295
- }
2296
- var utils = {
2297
- search: /* @__PURE__ */ createSearchUtils(),
2298
- query: /* @__PURE__ */ createQueryUtils()
2299
- };
2300
- function querySubmissionsByNamespace2(options) {
2301
- const { httpClient, sideEffects } = arguments[1];
2302
- return queryBuilder({
2303
- func: async (payload) => {
2304
- const reqOpts = querySubmissionsByNamespace({
2305
- ...payload,
2306
- ...options ?? {}
2307
- });
2308
- sideEffects?.onSiteCall?.();
2309
- try {
2310
- const result = await httpClient.request(reqOpts);
2311
- sideEffects?.onSuccess?.(result);
2312
- return result;
2313
- } catch (err) {
2314
- sideEffects?.onError?.(err);
2315
- throw err;
2316
- }
2317
- },
2318
- requestTransformer: (query) => {
2319
- const args = [query, options];
2320
- return renameKeysFromSDKRequestToRESTRequest({
2321
- ...args?.[1],
2322
- query: args?.[0]
2323
- });
2324
- },
2325
- responseTransformer: ({
2326
- data
2327
- }) => {
2328
- const transformedData = renameKeysFromRESTResponseToSDKResponse(
2329
- transformPaths2(data, [])
2330
- );
2331
- return {
2332
- items: transformedData?.submissions,
2333
- pagingMetadata: transformedData?.metadata
2334
- };
2335
- },
2336
- errorTransformer: (err) => {
2337
- const transformedError = sdkTransformError(err, {
2338
- spreadPathsToArguments: {},
2339
- explicitPathsToArguments: { query: "$[0]" },
2340
- singleArgumentUnchanged: false
2341
- });
2342
- throw transformedError;
2343
- },
2344
- pagingMethod: "CURSOR",
2345
- transformationPaths: {}
2346
- });
2347
- }
2348
- async function typedQuerySubmissionsByNamespace(query, options) {
2349
- const { httpClient, sideEffects } = arguments[2];
2350
- const payload = renameKeysFromSDKRequestToRESTRequest({
2351
- query,
2352
- ...options
2353
- });
2354
- const reqOpts = querySubmissionsByNamespace(payload);
2355
- sideEffects?.onSiteCall?.();
2356
- try {
2357
- const result = await httpClient.request(reqOpts);
2358
- sideEffects?.onSuccess?.(result);
2359
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2360
- } catch (err) {
2361
- const transformedError = sdkTransformError(
2362
- err,
2363
- {
2364
- spreadPathsToArguments: {},
2365
- explicitPathsToArguments: { query: "$[0]" },
2366
- singleArgumentUnchanged: false
2367
- },
2368
- ["query", "options"]
2369
- );
2370
- sideEffects?.onError?.(err);
2371
- throw transformedError;
2372
- }
2373
- }
2374
- async function countSubmissionsByFilter2(filter, options) {
2375
- const { httpClient, sideEffects } = arguments[2];
2376
- const payload = renameKeysFromSDKRequestToRESTRequest({
2377
- filter,
2378
- search: options?.search
2379
- });
2380
- const reqOpts = countSubmissionsByFilter(payload);
2381
- sideEffects?.onSiteCall?.();
2382
- try {
2383
- const result = await httpClient.request(reqOpts);
2384
- sideEffects?.onSuccess?.(result);
2385
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2386
- } catch (err) {
2387
- const transformedError = sdkTransformError(
2388
- err,
2389
- {
2390
- spreadPathsToArguments: {},
2391
- explicitPathsToArguments: { filter: "$[0]", search: "$[1].search" },
2392
- singleArgumentUnchanged: false
2393
- },
2394
- ["filter", "options"]
2395
- );
2396
- sideEffects?.onError?.(err);
2397
- throw transformedError;
2398
- }
2399
- }
2400
- async function countSubmissions2(formIds, namespace, options) {
2401
- const { httpClient, sideEffects } = arguments[3];
2402
- const payload = renameKeysFromSDKRequestToRESTRequest({
2403
- formIds,
2404
- namespace,
2405
- statuses: options?.statuses
2406
- });
2407
- const reqOpts = countSubmissions(payload);
2408
- sideEffects?.onSiteCall?.();
2409
- try {
2410
- const result = await httpClient.request(reqOpts);
2411
- sideEffects?.onSuccess?.(result);
2412
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2413
- } catch (err) {
2414
- const transformedError = sdkTransformError(
2415
- err,
2416
- {
2417
- spreadPathsToArguments: {},
2418
- explicitPathsToArguments: {
2419
- formIds: "$[0]",
2420
- namespace: "$[1]",
2421
- statuses: "$[2].statuses"
2422
- },
2423
- singleArgumentUnchanged: false
2424
- },
2425
- ["formIds", "namespace", "options"]
2426
- );
2427
- sideEffects?.onError?.(err);
2428
- throw transformedError;
2429
- }
2430
- }
2431
- async function countDeletedSubmissions2(formIds, namespace, options) {
2432
- const { httpClient, sideEffects } = arguments[3];
2433
- const payload = renameKeysFromSDKRequestToRESTRequest({
2434
- formIds,
2435
- namespace,
2436
- statuses: options?.statuses
2437
- });
2438
- const reqOpts = countDeletedSubmissions(payload);
2439
- sideEffects?.onSiteCall?.();
2440
- try {
2441
- const result = await httpClient.request(reqOpts);
2442
- sideEffects?.onSuccess?.(result);
2443
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2444
- } catch (err) {
2445
- const transformedError = sdkTransformError(
2446
- err,
2447
- {
2448
- spreadPathsToArguments: {},
2449
- explicitPathsToArguments: {
2450
- formIds: "$[0]",
2451
- namespace: "$[1]",
2452
- statuses: "$[2].statuses"
2453
- },
2454
- singleArgumentUnchanged: false
2455
- },
2456
- ["formIds", "namespace", "options"]
2457
- );
2458
- sideEffects?.onError?.(err);
2459
- throw transformedError;
2460
- }
2461
- }
2462
- async function getMediaUploadUrl2(formId, filename, mimeType) {
2463
- const { httpClient, sideEffects } = arguments[3];
2464
- const payload = renameKeysFromSDKRequestToRESTRequest({
2465
- formId,
2466
- filename,
2467
- mimeType
2468
- });
2469
- const reqOpts = getMediaUploadUrl(payload);
2470
- sideEffects?.onSiteCall?.();
2471
- try {
2472
- const result = await httpClient.request(reqOpts);
2473
- sideEffects?.onSuccess?.(result);
2474
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2475
- } catch (err) {
2476
- const transformedError = sdkTransformError(
2477
- err,
2478
- {
2479
- spreadPathsToArguments: {},
2480
- explicitPathsToArguments: {
2481
- formId: "$[0]",
2482
- filename: "$[1]",
2483
- mimeType: "$[2]"
2484
- },
2485
- singleArgumentUnchanged: false
2486
- },
2487
- ["formId", "filename", "mimeType"]
2488
- );
2489
- sideEffects?.onError?.(err);
2490
- throw transformedError;
2491
- }
2492
- }
2493
- async function bulkMarkSubmissionsAsSeen2(ids, formId) {
2494
- const { httpClient, sideEffects } = arguments[2];
2495
- const payload = renameKeysFromSDKRequestToRESTRequest({
2496
- ids,
2497
- formId
2498
- });
2499
- const reqOpts = bulkMarkSubmissionsAsSeen(payload);
2500
- sideEffects?.onSiteCall?.();
2501
- try {
2502
- const result = await httpClient.request(reqOpts);
2503
- sideEffects?.onSuccess?.(result);
2504
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2505
- } catch (err) {
2506
- const transformedError = sdkTransformError(
2507
- err,
2508
- {
2509
- spreadPathsToArguments: {},
2510
- explicitPathsToArguments: { ids: "$[0]", formId: "$[1]" },
2511
- singleArgumentUnchanged: false
2512
- },
2513
- ["ids", "formId"]
2514
- );
2515
- sideEffects?.onError?.(err);
2516
- throw transformedError;
2517
- }
2518
- }
2519
- async function getSubmissionDownloadUrl2(submissionId) {
2520
- const { httpClient, sideEffects } = arguments[1];
2521
- const payload = renameKeysFromSDKRequestToRESTRequest({
2522
- submissionId
2523
- });
2524
- const reqOpts = getSubmissionDownloadUrl(payload);
2525
- sideEffects?.onSiteCall?.();
2526
- try {
2527
- const result = await httpClient.request(reqOpts);
2528
- sideEffects?.onSuccess?.(result);
2529
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2530
- } catch (err) {
2531
- const transformedError = sdkTransformError(
2532
- err,
2533
- {
2534
- spreadPathsToArguments: {},
2535
- explicitPathsToArguments: { submissionId: "$[0]" },
2536
- singleArgumentUnchanged: false
2537
- },
2538
- ["submissionId"]
2539
- );
2540
- sideEffects?.onError?.(err);
2541
- throw transformedError;
2542
- }
2543
- }
2544
- async function downloadSubmission2(submissionId, accessToken) {
2545
- const { httpClient, sideEffects } = arguments[2];
2546
- const payload = renameKeysFromSDKRequestToRESTRequest({
2547
- submissionId,
2548
- accessToken
2549
- });
2550
- const reqOpts = downloadSubmission(payload);
2551
- sideEffects?.onSiteCall?.();
2552
- try {
2553
- const result = await httpClient.request(reqOpts);
2554
- sideEffects?.onSuccess?.(result);
2555
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2556
- } catch (err) {
2557
- const transformedError = sdkTransformError(
2558
- err,
2559
- {
2560
- spreadPathsToArguments: {},
2561
- explicitPathsToArguments: { submissionId: "$[0]", accessToken: "$[1]" },
2562
- singleArgumentUnchanged: false
2563
- },
2564
- ["submissionId", "accessToken"]
2565
- );
2566
- sideEffects?.onError?.(err);
2567
- throw transformedError;
2568
- }
2569
- }
2570
- async function getFormattedSubmission2(submissionId) {
2571
- const { httpClient, sideEffects } = arguments[1];
2572
- const payload = renameKeysFromSDKRequestToRESTRequest({
2573
- submissionId
2574
- });
2575
- const reqOpts = getFormattedSubmission(payload);
2576
- sideEffects?.onSiteCall?.();
2577
- try {
2578
- const result = await httpClient.request(reqOpts);
2579
- sideEffects?.onSuccess?.(result);
2580
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2581
- } catch (err) {
2582
- const transformedError = sdkTransformError(
2583
- err,
2584
- {
2585
- spreadPathsToArguments: {},
2586
- explicitPathsToArguments: { submissionId: "$[0]" },
2587
- singleArgumentUnchanged: false
2588
- },
2589
- ["submissionId"]
2590
- );
2591
- sideEffects?.onError?.(err);
2592
- throw transformedError;
2593
- }
2594
- }
2595
- async function updateExtendedFields2(_id, namespace, options) {
2596
- const { httpClient, sideEffects } = arguments[3];
2597
- const payload = renameKeysFromSDKRequestToRESTRequest({
2598
- id: _id,
2599
- namespace,
2600
- namespaceData: options?.namespaceData
2601
- });
2602
- const reqOpts = updateExtendedFields(payload);
2603
- sideEffects?.onSiteCall?.();
2604
- try {
2605
- const result = await httpClient.request(reqOpts);
2606
- sideEffects?.onSuccess?.(result);
2607
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2608
- } catch (err) {
2609
- const transformedError = sdkTransformError(
2610
- err,
2611
- {
2612
- spreadPathsToArguments: {},
2613
- explicitPathsToArguments: {
2614
- id: "$[0]",
2615
- namespace: "$[1]",
2616
- namespaceData: "$[2].namespaceData"
2617
- },
2618
- singleArgumentUnchanged: false
2619
- },
2620
- ["_id", "namespace", "options"]
2621
- );
2622
- sideEffects?.onError?.(err);
2623
- throw transformedError;
2624
- }
2625
- }
2626
- async function bulkUpdateFormSubmissionTags2(submissionIds, options) {
2627
- const { httpClient, sideEffects } = arguments[2];
2628
- const payload = renameKeysFromSDKRequestToRESTRequest({
2629
- submissionIds,
2630
- assignTags: options?.assignTags,
2631
- unassignTags: options?.unassignTags
2632
- });
2633
- const reqOpts = bulkUpdateFormSubmissionTags(payload);
2634
- sideEffects?.onSiteCall?.();
2635
- try {
2636
- const result = await httpClient.request(reqOpts);
2637
- sideEffects?.onSuccess?.(result);
2638
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2639
- } catch (err) {
2640
- const transformedError = sdkTransformError(
2641
- err,
2642
- {
2643
- spreadPathsToArguments: {},
2644
- explicitPathsToArguments: {
2645
- submissionIds: "$[0]",
2646
- assignTags: "$[1].assignTags",
2647
- unassignTags: "$[1].unassignTags"
2648
- },
2649
- singleArgumentUnchanged: false
2650
- },
2651
- ["submissionIds", "options"]
2652
- );
2653
- sideEffects?.onError?.(err);
2654
- throw transformedError;
2655
- }
2656
- }
2657
- async function bulkUpdateFormSubmissionTagsByFilter2(filter, options) {
2658
- const { httpClient, sideEffects } = arguments[2];
2659
- const payload = renameKeysFromSDKRequestToRESTRequest({
2660
- filter,
2661
- assignTags: options?.assignTags,
2662
- unassignTags: options?.unassignTags
2663
- });
2664
- const reqOpts = bulkUpdateFormSubmissionTagsByFilter(
2665
- payload
2666
- );
2667
- sideEffects?.onSiteCall?.();
2668
- try {
2669
- const result = await httpClient.request(reqOpts);
2670
- sideEffects?.onSuccess?.(result);
2671
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2672
- } catch (err) {
2673
- const transformedError = sdkTransformError(
2674
- err,
2675
- {
2676
- spreadPathsToArguments: {},
2677
- explicitPathsToArguments: {
2678
- filter: "$[0]",
2679
- assignTags: "$[1].assignTags",
2680
- unassignTags: "$[1].unassignTags"
2681
- },
2682
- singleArgumentUnchanged: false
2683
- },
2684
- ["filter", "options"]
2685
- );
2686
- sideEffects?.onError?.(err);
2687
- throw transformedError;
2688
- }
2689
- }
2690
- async function validateFormSubmission2(submission, options) {
2691
- const { httpClient, sideEffects } = arguments[2];
2692
- const payload = renameKeysFromSDKRequestToRESTRequest({
2693
- submission,
2694
- additionalMetadata: options?.additionalMetadata,
2695
- fieldsToValidate: options?.fieldsToValidate
2696
- });
2697
- const reqOpts = validateFormSubmission(payload);
2698
- sideEffects?.onSiteCall?.();
2699
- try {
2700
- const result = await httpClient.request(reqOpts);
2701
- sideEffects?.onSuccess?.(result);
2702
- return renameKeysFromRESTResponseToSDKResponse(result.data);
2703
- } catch (err) {
2704
- const transformedError = sdkTransformError(
2705
- err,
2706
- {
2707
- spreadPathsToArguments: {},
2708
- explicitPathsToArguments: {
2709
- submission: "$[0]",
2710
- additionalMetadata: "$[1].additionalMetadata",
2711
- fieldsToValidate: "$[1].fieldsToValidate"
2712
- },
2713
- singleArgumentUnchanged: false
2714
- },
2715
- ["submission", "options"]
2716
- );
2717
- sideEffects?.onError?.(err);
2718
- throw transformedError;
2719
- }
2720
- }
2721
-
2722
- // src/forms-v4-submission-submissions.public.ts
2723
- function upsertContactFromSubmission3(httpClient) {
2724
- return (submissionId, options) => upsertContactFromSubmission2(
2725
- submissionId,
2726
- options,
2727
- // @ts-ignore
2728
- { httpClient }
2729
- );
2730
- }
2731
- function createSubmission3(httpClient) {
2732
- return (submission, options) => createSubmission2(
2733
- submission,
2734
- options,
2735
- // @ts-ignore
2736
- { httpClient }
2737
- );
2738
- }
2739
- function getSubmission3(httpClient) {
2740
- return (submissionId) => getSubmission2(
2741
- submissionId,
2742
- // @ts-ignore
2743
- { httpClient }
2744
- );
2745
- }
2746
- function updateSubmission3(httpClient) {
2747
- return (_id, submission) => updateSubmission2(
2748
- _id,
2749
- submission,
2750
- // @ts-ignore
2751
- { httpClient }
2752
- );
2753
- }
2754
- function confirmSubmission3(httpClient) {
2755
- return (submissionId) => confirmSubmission2(
2756
- submissionId,
2757
- // @ts-ignore
2758
- { httpClient }
2759
- );
2760
- }
2761
- function deleteSubmission3(httpClient) {
2762
- return (submissionId, options) => deleteSubmission2(
2763
- submissionId,
2764
- options,
2765
- // @ts-ignore
2766
- { httpClient }
2767
- );
2768
- }
2769
- function bulkDeleteSubmission3(httpClient) {
2770
- return (formId, options) => bulkDeleteSubmission2(
2771
- formId,
2772
- options,
2773
- // @ts-ignore
2774
- { httpClient }
2775
- );
2776
- }
2777
- function restoreSubmissionFromTrashBin3(httpClient) {
2778
- return (submissionId) => restoreSubmissionFromTrashBin2(
2779
- submissionId,
2780
- // @ts-ignore
2781
- { httpClient }
2782
- );
2783
- }
2784
- function removeSubmissionFromTrashBin3(httpClient) {
2785
- return (submissionId) => removeSubmissionFromTrashBin2(
2786
- submissionId,
2787
- // @ts-ignore
2788
- { httpClient }
2789
- );
2790
- }
2791
- function bulkRemoveSubmissionFromTrashBin3(httpClient) {
2792
- return (formId, options) => bulkRemoveSubmissionFromTrashBin2(
2793
- formId,
2794
- options,
2795
- // @ts-ignore
2796
- { httpClient }
2797
- );
2798
- }
2799
- function listDeletedSubmissions3(httpClient) {
2800
- return (formId, options) => listDeletedSubmissions2(
2801
- formId,
2802
- options,
2803
- // @ts-ignore
2804
- { httpClient }
2805
- );
2806
- }
2807
- function getDeletedSubmission3(httpClient) {
2808
- return (submissionId) => getDeletedSubmission2(
2809
- submissionId,
2810
- // @ts-ignore
2811
- { httpClient }
2812
- );
2813
- }
2814
- function querySubmission3(httpClient) {
2815
- return (query, options) => querySubmission2(
2816
- query,
2817
- options,
2818
- // @ts-ignore
2819
- { httpClient }
2820
- );
2821
- }
2822
- function searchSubmissionsByNamespace3(httpClient) {
2823
- return (search) => searchSubmissionsByNamespace2(
2824
- search,
2825
- // @ts-ignore
2826
- { httpClient }
2827
- );
2828
- }
2829
- function querySubmissionsByNamespace3(httpClient) {
2830
- return (options) => querySubmissionsByNamespace2(
2831
- options,
2832
- // @ts-ignore
2833
- { httpClient }
2834
- );
2835
- }
2836
- function typedQuerySubmissionsByNamespace2(httpClient) {
2837
- return (query, options) => typedQuerySubmissionsByNamespace(
2838
- query,
2839
- options,
2840
- // @ts-ignore
2841
- { httpClient }
2842
- );
2843
- }
2844
- function countSubmissionsByFilter3(httpClient) {
2845
- return (filter, options) => countSubmissionsByFilter2(
2846
- filter,
2847
- options,
2848
- // @ts-ignore
2849
- { httpClient }
2850
- );
2851
- }
2852
- function countSubmissions3(httpClient) {
2853
- return (formIds, namespace, options) => countSubmissions2(
2854
- formIds,
2855
- namespace,
2856
- options,
2857
- // @ts-ignore
2858
- { httpClient }
2859
- );
2860
- }
2861
- function countDeletedSubmissions3(httpClient) {
2862
- return (formIds, namespace, options) => countDeletedSubmissions2(
2863
- formIds,
2864
- namespace,
2865
- options,
2866
- // @ts-ignore
2867
- { httpClient }
2868
- );
2869
- }
2870
- function getMediaUploadUrl3(httpClient) {
2871
- return (formId, filename, mimeType) => getMediaUploadUrl2(
2872
- formId,
2873
- filename,
2874
- mimeType,
2875
- // @ts-ignore
2876
- { httpClient }
2877
- );
2878
- }
2879
- function bulkMarkSubmissionsAsSeen3(httpClient) {
2880
- return (ids, formId) => bulkMarkSubmissionsAsSeen2(
2881
- ids,
2882
- formId,
2883
- // @ts-ignore
2884
- { httpClient }
2885
- );
2886
- }
2887
- function getSubmissionDownloadUrl3(httpClient) {
2888
- return (submissionId) => getSubmissionDownloadUrl2(
2889
- submissionId,
2890
- // @ts-ignore
2891
- { httpClient }
2892
- );
2893
- }
2894
- function downloadSubmission3(httpClient) {
2895
- return (submissionId, accessToken) => downloadSubmission2(
2896
- submissionId,
2897
- accessToken,
2898
- // @ts-ignore
2899
- { httpClient }
2900
- );
2901
- }
2902
- function getFormattedSubmission3(httpClient) {
2903
- return (submissionId) => getFormattedSubmission2(
2904
- submissionId,
2905
- // @ts-ignore
2906
- { httpClient }
2907
- );
2908
- }
2909
- function updateExtendedFields3(httpClient) {
2910
- return (_id, namespace, options) => updateExtendedFields2(
2911
- _id,
2912
- namespace,
2913
- options,
2914
- // @ts-ignore
2915
- { httpClient }
2916
- );
2917
- }
2918
- function bulkUpdateFormSubmissionTags3(httpClient) {
2919
- return (submissionIds, options) => bulkUpdateFormSubmissionTags2(
2920
- submissionIds,
2921
- options,
2922
- // @ts-ignore
2923
- { httpClient }
2924
- );
2925
- }
2926
- function bulkUpdateFormSubmissionTagsByFilter3(httpClient) {
2927
- return (filter, options) => bulkUpdateFormSubmissionTagsByFilter2(
2928
- filter,
2929
- options,
2930
- // @ts-ignore
2931
- { httpClient }
2932
- );
2933
- }
2934
- function validateFormSubmission3(httpClient) {
2935
- return (submission, options) => validateFormSubmission2(
2936
- submission,
2937
- options,
2938
- // @ts-ignore
2939
- { httpClient }
2940
- );
2941
- }
2942
- var onSubmissionCreated = /* @__PURE__ */ EventDefinition(
2943
- "wix.forms.v4.submission_created",
2944
- true,
2945
- (event) => renameKeysFromRESTResponseToSDKResponse2(
2946
- transformPaths3(event, [
2947
- {
2948
- transformFn: transformRESTTimestampToSDKTimestamp2,
2949
- paths: [
2950
- { path: "entity.createdDate" },
2951
- { path: "entity.updatedDate" },
2952
- { path: "metadata.eventTime" }
2953
- ]
2954
- }
2955
- ])
2956
- )
2957
- )();
2958
- var onSubmissionDeleted = /* @__PURE__ */ EventDefinition(
2959
- "wix.forms.v4.submission_deleted",
2960
- true,
2961
- (event) => renameKeysFromRESTResponseToSDKResponse2(
2962
- transformPaths3(event, [
2963
- {
2964
- transformFn: transformRESTTimestampToSDKTimestamp2,
2965
- paths: [
2966
- { path: "entity.createdDate" },
2967
- { path: "entity.updatedDate" },
2968
- { path: "metadata.eventTime" }
2969
- ]
2970
- }
2971
- ])
2972
- )
2973
- )();
2974
- var onSubmissionRemovedSubmissionFromTrash = /* @__PURE__ */ EventDefinition(
2975
- "wix.forms.v4.submission_removed_submission_from_trash",
2976
- true,
2977
- (event) => renameKeysFromRESTResponseToSDKResponse2(
2978
- transformPaths3(event, [
2979
- {
2980
- transformFn: transformRESTTimestampToSDKTimestamp2,
2981
- paths: [
2982
- { path: "data.submission.createdDate" },
2983
- { path: "data.submission.updatedDate" },
2984
- { path: "metadata.eventTime" }
2985
- ]
2986
- }
2987
- ])
2988
- )
2989
- )();
2990
- var onSubmissionStatusUpdated = /* @__PURE__ */ EventDefinition(
2991
- "wix.forms.v4.submission_status_updated",
2992
- true,
2993
- (event) => renameKeysFromRESTResponseToSDKResponse2(
2994
- transformPaths3(event, [
2995
- {
2996
- transformFn: transformRESTTimestampToSDKTimestamp2,
2997
- paths: [
2998
- { path: "data.submission.createdDate" },
2999
- { path: "data.submission.updatedDate" },
3000
- { path: "metadata.eventTime" }
3001
- ]
3002
- }
3003
- ])
3004
- )
3005
- )();
3006
- var onSubmissionContactMapped = /* @__PURE__ */ EventDefinition(
3007
- "wix.forms.v4.submission_submission_contact_mapped",
3008
- true,
3009
- (event) => renameKeysFromRESTResponseToSDKResponse2(
3010
- transformPaths3(event, [
3011
- {
3012
- transformFn: transformRESTTimestampToSDKTimestamp2,
3013
- paths: [
3014
- { path: "data.marketingSubscriptionDetails.submittedDate" },
3015
- { path: "metadata.eventTime" }
3016
- ]
3017
- }
3018
- ])
3019
- )
3020
- )();
3021
- var onSubmissionContactMappingSkipped = /* @__PURE__ */ EventDefinition(
3022
- "wix.forms.v4.submission_submission_contact_mapping_skipped",
3023
- true,
3024
- (event) => renameKeysFromRESTResponseToSDKResponse2(
3025
- transformPaths3(event, [
3026
- {
3027
- transformFn: transformRESTTimestampToSDKTimestamp2,
3028
- paths: [{ path: "metadata.eventTime" }]
3029
- }
3030
- ])
3031
- )
3032
- )();
3033
- var onSubmissionUpdated = /* @__PURE__ */ EventDefinition(
3034
- "wix.forms.v4.submission_updated",
3035
- true,
3036
- (event) => renameKeysFromRESTResponseToSDKResponse2(
3037
- transformPaths3(event, [
3038
- {
3039
- transformFn: transformRESTTimestampToSDKTimestamp2,
3040
- paths: [
3041
- { path: "entity.createdDate" },
3042
- { path: "entity.updatedDate" },
3043
- { path: "metadata.eventTime" },
3044
- { path: "modifiedFields.createdDate" },
3045
- { path: "modifiedFields.updatedDate" }
3046
- ]
3047
- }
3048
- ])
3049
- )
3050
- )();
3051
-
3052
- // src/forms-v4-submission-submissions.context.ts
3053
- import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
3054
- import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
3055
- import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
3056
- function customQuerySubmissionsByNamespace(httpClient) {
3057
- const router = /* @__PURE__ */ createQueryOverloadRouter({
3058
- builderQueryFunction: (options) => querySubmissionsByNamespace3(httpClient)(options),
3059
- typedQueryFunction: (query, options) => typedQuerySubmissionsByNamespace2(httpClient)(query, options),
3060
- hasOptionsParameter: true
3061
- });
3062
- function overloadedQuery(queryOrOptions, options) {
3063
- return router(...arguments);
3064
- }
3065
- return overloadedQuery;
3066
- }
3067
- var upsertContactFromSubmission4 = /* @__PURE__ */ createRESTModule(upsertContactFromSubmission3);
3068
- var createSubmission4 = /* @__PURE__ */ createRESTModule(createSubmission3);
3069
- var getSubmission4 = /* @__PURE__ */ createRESTModule(getSubmission3);
3070
- var updateSubmission4 = /* @__PURE__ */ createRESTModule(updateSubmission3);
3071
- var confirmSubmission4 = /* @__PURE__ */ createRESTModule(confirmSubmission3);
3072
- var deleteSubmission4 = /* @__PURE__ */ createRESTModule(deleteSubmission3);
3073
- var bulkDeleteSubmission4 = /* @__PURE__ */ createRESTModule(bulkDeleteSubmission3);
3074
- var restoreSubmissionFromTrashBin4 = /* @__PURE__ */ createRESTModule(restoreSubmissionFromTrashBin3);
3075
- var removeSubmissionFromTrashBin4 = /* @__PURE__ */ createRESTModule(removeSubmissionFromTrashBin3);
3076
- var bulkRemoveSubmissionFromTrashBin4 = /* @__PURE__ */ createRESTModule(bulkRemoveSubmissionFromTrashBin3);
3077
- var listDeletedSubmissions4 = /* @__PURE__ */ createRESTModule(listDeletedSubmissions3);
3078
- var getDeletedSubmission4 = /* @__PURE__ */ createRESTModule(getDeletedSubmission3);
3079
- var querySubmission4 = /* @__PURE__ */ createRESTModule(querySubmission3);
3080
- var searchSubmissionsByNamespace4 = /* @__PURE__ */ createRESTModule(searchSubmissionsByNamespace3);
3081
- var countSubmissionsByFilter4 = /* @__PURE__ */ createRESTModule(countSubmissionsByFilter3);
3082
- var countSubmissions4 = /* @__PURE__ */ createRESTModule(countSubmissions3);
3083
- var countDeletedSubmissions4 = /* @__PURE__ */ createRESTModule(countDeletedSubmissions3);
3084
- var getMediaUploadUrl4 = /* @__PURE__ */ createRESTModule(getMediaUploadUrl3);
3085
- var bulkMarkSubmissionsAsSeen4 = /* @__PURE__ */ createRESTModule(bulkMarkSubmissionsAsSeen3);
3086
- var getSubmissionDownloadUrl4 = /* @__PURE__ */ createRESTModule(getSubmissionDownloadUrl3);
3087
- var downloadSubmission4 = /* @__PURE__ */ createRESTModule(downloadSubmission3);
3088
- var getFormattedSubmission4 = /* @__PURE__ */ createRESTModule(getFormattedSubmission3);
3089
- var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
3090
- var bulkUpdateFormSubmissionTags4 = /* @__PURE__ */ createRESTModule(bulkUpdateFormSubmissionTags3);
3091
- var bulkUpdateFormSubmissionTagsByFilter4 = /* @__PURE__ */ createRESTModule(bulkUpdateFormSubmissionTagsByFilter3);
3092
- var validateFormSubmission4 = /* @__PURE__ */ createRESTModule(validateFormSubmission3);
3093
- var querySubmissionsByNamespace4 = /* @__PURE__ */ createRESTModule(customQuerySubmissionsByNamespace);
3094
- var onSubmissionCreated2 = /* @__PURE__ */ createEventModule(
3095
- onSubmissionCreated
3096
- );
3097
- var onSubmissionDeleted2 = /* @__PURE__ */ createEventModule(
3098
- onSubmissionDeleted
3099
- );
3100
- var onSubmissionRemovedSubmissionFromTrash2 = /* @__PURE__ */ createEventModule(onSubmissionRemovedSubmissionFromTrash);
3101
- var onSubmissionStatusUpdated2 = /* @__PURE__ */ createEventModule(
3102
- onSubmissionStatusUpdated
3103
- );
3104
- var onSubmissionContactMapped2 = /* @__PURE__ */ createEventModule(
3105
- onSubmissionContactMapped
3106
- );
3107
- var onSubmissionContactMappingSkipped2 = /* @__PURE__ */ createEventModule(onSubmissionContactMappingSkipped);
3108
- var onSubmissionUpdated2 = /* @__PURE__ */ createEventModule(
3109
- onSubmissionUpdated
3110
- );
3111
- export {
3112
- AddressInfoTag,
3113
- Alignment,
3114
- AnimationType,
3115
- AppType,
3116
- ArrayComponentType,
3117
- AspectRatio,
3118
- BackdropType,
3119
- BackgroundType,
3120
- BannerPosition,
3121
- BooleanComponentType,
3122
- ButtonDataType,
3123
- CardDataBackgroundType,
3124
- CardStylesAlignment,
3125
- CardStylesType,
3126
- ChangeableProperty,
3127
- ColumnSize,
3128
- ComponentType,
3129
- ConfirmationLevel,
3130
- ContactAutofill,
3131
- ContactField,
3132
- ContactIdentityType,
3133
- Crop,
3134
- DayOfWeek,
3135
- DecorationType,
3136
- DesignTarget,
3137
- Direction,
3138
- DisplayFieldType,
3139
- DividerDataAlignment,
3140
- EmailInfoTag,
3141
- EntranceEffectType,
3142
- ErrorType,
3143
- FieldType,
3144
- FirstDayOfWeek,
3145
- FontType,
3146
- FormFieldContactInfoContactField,
3147
- FormFieldContactInfoEmailInfoTag,
3148
- FormFieldContactInfoPhoneInfoTag,
3149
- Format,
3150
- FormatEnumFormat,
3151
- GIFType,
3152
- GradientType,
3153
- IdentityType,
3154
- ImageFit,
3155
- ImagePosition,
3156
- ImagePositionPosition,
3157
- ImageScalingScaling,
3158
- Indentation,
3159
- InitialExpandedItems,
3160
- InputType,
3161
- ItemType,
3162
- Kind,
3163
- LayerEffect,
3164
- Layout,
3165
- LayoutDataBackgroundType,
3166
- LayoutDataImagePosition,
3167
- LayoutType,
3168
- LineCap,
3169
- LineStyle,
3170
- LinkTarget,
3171
- ListStyle,
3172
- LoopEffectType,
3173
- MapType,
3174
- MeetingType,
3175
- Mode,
3176
- NodeType,
3177
- NullValue,
3178
- NumberComponentType,
3179
- NumberOfColumns,
3180
- ObjectArrayComponentType,
3181
- Operator,
3182
- OptInLevel,
3183
- Orientation,
3184
- Origin,
3185
- OverrideEntityType,
3186
- OverrideEntityTypeEnumOverrideEntityType,
3187
- PaymentComponentType,
3188
- PhoneInfoTag,
3189
- Placement,
3190
- PluginContainerDataAlignment,
3191
- PointerEffectType,
3192
- PollDesignBackgroundType,
3193
- PollLayoutDirection,
3194
- PollLayoutType,
3195
- Position,
3196
- PriceType,
3197
- ProductType,
3198
- PropertiesTypeEnum,
3199
- RequiredIndicator,
3200
- RequiredIndicatorPlacement,
3201
- Resizing,
3202
- ResponsivenessBehaviour,
3203
- ResultsDisplay,
3204
- Scaling,
3205
- SchedulingComponentType,
3206
- Shape,
3207
- SmartBlockDataType,
3208
- SortOrder,
3209
- Source,
3210
- SpamFilterProtectionLevel,
3211
- StaffStrategySelection,
3212
- Status,
3213
- StringComponentType,
3214
- StringTypeFormatEnumFormat,
3215
- StylesPosition,
3216
- SubmissionAccess,
3217
- SubmissionErrorType,
3218
- SubmissionStatus,
3219
- SubmitSuccessAction,
3220
- SubscriptionChannel,
3221
- SubscriptionInfoOptInLevel,
3222
- Tag,
3223
- Target,
3224
- TextAlignment,
3225
- ThumbnailsAlignment,
3226
- Type,
3227
- UploadFileFormat,
3228
- ValidationFormat,
3229
- Variant,
3230
- VerticalAlignment,
3231
- VerticalAlignmentAlignment,
3232
- ViewMode,
3233
- ViewRole,
3234
- VoteRole,
3235
- WaitType,
3236
- WebhookIdentityType,
3237
- Width,
3238
- WidthType,
3239
- WixFileComponentType,
3240
- bulkDeleteSubmission4 as bulkDeleteSubmission,
3241
- bulkMarkSubmissionsAsSeen4 as bulkMarkSubmissionsAsSeen,
3242
- bulkRemoveSubmissionFromTrashBin4 as bulkRemoveSubmissionFromTrashBin,
3243
- bulkUpdateFormSubmissionTags4 as bulkUpdateFormSubmissionTags,
3244
- bulkUpdateFormSubmissionTagsByFilter4 as bulkUpdateFormSubmissionTagsByFilter,
3245
- confirmSubmission4 as confirmSubmission,
3246
- countDeletedSubmissions4 as countDeletedSubmissions,
3247
- countSubmissions4 as countSubmissions,
3248
- countSubmissionsByFilter4 as countSubmissionsByFilter,
3249
- createSubmission4 as createSubmission,
3250
- deleteSubmission4 as deleteSubmission,
3251
- downloadSubmission4 as downloadSubmission,
3252
- getDeletedSubmission4 as getDeletedSubmission,
3253
- getFormattedSubmission4 as getFormattedSubmission,
3254
- getMediaUploadUrl4 as getMediaUploadUrl,
3255
- getSubmission4 as getSubmission,
3256
- getSubmissionDownloadUrl4 as getSubmissionDownloadUrl,
3257
- listDeletedSubmissions4 as listDeletedSubmissions,
3258
- onSubmissionContactMapped2 as onSubmissionContactMapped,
3259
- onSubmissionContactMappingSkipped2 as onSubmissionContactMappingSkipped,
3260
- onSubmissionCreated2 as onSubmissionCreated,
3261
- onSubmissionDeleted2 as onSubmissionDeleted,
3262
- onSubmissionRemovedSubmissionFromTrash2 as onSubmissionRemovedSubmissionFromTrash,
3263
- onSubmissionStatusUpdated2 as onSubmissionStatusUpdated,
3264
- onSubmissionUpdated2 as onSubmissionUpdated,
3265
- querySubmission4 as querySubmission,
3266
- querySubmissionsByNamespace4 as querySubmissionsByNamespace,
3267
- removeSubmissionFromTrashBin4 as removeSubmissionFromTrashBin,
3268
- restoreSubmissionFromTrashBin4 as restoreSubmissionFromTrashBin,
3269
- searchSubmissionsByNamespace4 as searchSubmissionsByNamespace,
3270
- updateExtendedFields4 as updateExtendedFields,
3271
- updateSubmission4 as updateSubmission,
3272
- upsertContactFromSubmission4 as upsertContactFromSubmission,
3273
- utils,
3274
- validateFormSubmission4 as validateFormSubmission
3275
- };
3276
- //# sourceMappingURL=index.mjs.map