@wix/auto_sdk_forms_submissions 1.0.27 → 1.0.29

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 (127) hide show
  1. package/build/{internal/cjs/src/forms-v4-submission-submissions.universal.d.ts → cjs/forms-v4-submission-submissions.universal-BScz75Gj.d.ts} +1534 -1205
  2. package/build/cjs/index.d.ts +327 -1
  3. package/build/cjs/index.js +2974 -15
  4. package/build/cjs/index.js.map +1 -1
  5. package/build/cjs/index.typings.d.ts +28 -1
  6. package/build/cjs/index.typings.js +2605 -15
  7. package/build/cjs/index.typings.js.map +1 -1
  8. package/build/cjs/meta.d.ts +1043 -1
  9. package/build/cjs/meta.js +1277 -15
  10. package/build/cjs/meta.js.map +1 -1
  11. package/build/{internal/es/src/forms-v4-submission-submissions.universal.d.ts → es/forms-v4-submission-submissions.universal-BScz75Gj.d.mts} +1534 -1205
  12. package/build/es/index.d.mts +327 -0
  13. package/build/es/index.mjs +2815 -0
  14. package/build/es/index.mjs.map +1 -0
  15. package/build/es/index.typings.d.mts +28 -0
  16. package/build/es/index.typings.mjs +2453 -0
  17. package/build/es/index.typings.mjs.map +1 -0
  18. package/build/es/meta.d.mts +1043 -0
  19. package/build/es/meta.mjs +1228 -0
  20. package/build/es/meta.mjs.map +1 -0
  21. package/build/{cjs/src/forms-v4-submission-submissions.universal.d.ts → internal/cjs/forms-v4-submission-submissions.universal-BIIcc2WV.d.ts} +1561 -1170
  22. package/build/internal/cjs/index.d.ts +349 -1
  23. package/build/internal/cjs/index.js +2974 -15
  24. package/build/internal/cjs/index.js.map +1 -1
  25. package/build/internal/cjs/index.typings.d.ts +28 -1
  26. package/build/internal/cjs/index.typings.js +2605 -15
  27. package/build/internal/cjs/index.typings.js.map +1 -1
  28. package/build/internal/cjs/meta.d.ts +1043 -1
  29. package/build/internal/cjs/meta.js +1277 -15
  30. package/build/internal/cjs/meta.js.map +1 -1
  31. package/build/{es/src/forms-v4-submission-submissions.universal.d.ts → internal/es/forms-v4-submission-submissions.universal-BIIcc2WV.d.mts} +1561 -1170
  32. package/build/internal/es/index.d.mts +349 -0
  33. package/build/internal/es/index.mjs +2815 -0
  34. package/build/internal/es/index.mjs.map +1 -0
  35. package/build/internal/es/index.typings.d.mts +28 -0
  36. package/build/internal/es/index.typings.mjs +2453 -0
  37. package/build/internal/es/index.typings.mjs.map +1 -0
  38. package/build/internal/es/meta.d.mts +1043 -0
  39. package/build/internal/es/meta.mjs +1228 -0
  40. package/build/internal/es/meta.mjs.map +1 -0
  41. package/package.json +12 -10
  42. package/build/cjs/src/forms-v4-submission-submissions.context.d.ts +0 -65
  43. package/build/cjs/src/forms-v4-submission-submissions.context.js +0 -170
  44. package/build/cjs/src/forms-v4-submission-submissions.context.js.map +0 -1
  45. package/build/cjs/src/forms-v4-submission-submissions.http.d.ts +0 -126
  46. package/build/cjs/src/forms-v4-submission-submissions.http.js +0 -849
  47. package/build/cjs/src/forms-v4-submission-submissions.http.js.map +0 -1
  48. package/build/cjs/src/forms-v4-submission-submissions.meta.d.ts +0 -58
  49. package/build/cjs/src/forms-v4-submission-submissions.meta.js +0 -522
  50. package/build/cjs/src/forms-v4-submission-submissions.meta.js.map +0 -1
  51. package/build/cjs/src/forms-v4-submission-submissions.public.d.ts +0 -268
  52. package/build/cjs/src/forms-v4-submission-submissions.public.js +0 -332
  53. package/build/cjs/src/forms-v4-submission-submissions.public.js.map +0 -1
  54. package/build/cjs/src/forms-v4-submission-submissions.types.d.ts +0 -6288
  55. package/build/cjs/src/forms-v4-submission-submissions.types.js +0 -961
  56. package/build/cjs/src/forms-v4-submission-submissions.types.js.map +0 -1
  57. package/build/cjs/src/forms-v4-submission-submissions.universal.js +0 -2217
  58. package/build/cjs/src/forms-v4-submission-submissions.universal.js.map +0 -1
  59. package/build/es/index.d.ts +0 -1
  60. package/build/es/index.js +0 -2
  61. package/build/es/index.js.map +0 -1
  62. package/build/es/index.typings.d.ts +0 -1
  63. package/build/es/index.typings.js +0 -2
  64. package/build/es/index.typings.js.map +0 -1
  65. package/build/es/meta.d.ts +0 -1
  66. package/build/es/meta.js +0 -2
  67. package/build/es/meta.js.map +0 -1
  68. package/build/es/src/forms-v4-submission-submissions.context.d.ts +0 -65
  69. package/build/es/src/forms-v4-submission-submissions.context.js +0 -69
  70. package/build/es/src/forms-v4-submission-submissions.context.js.map +0 -1
  71. package/build/es/src/forms-v4-submission-submissions.http.d.ts +0 -126
  72. package/build/es/src/forms-v4-submission-submissions.http.js +0 -820
  73. package/build/es/src/forms-v4-submission-submissions.http.js.map +0 -1
  74. package/build/es/src/forms-v4-submission-submissions.meta.d.ts +0 -58
  75. package/build/es/src/forms-v4-submission-submissions.meta.js +0 -470
  76. package/build/es/src/forms-v4-submission-submissions.meta.js.map +0 -1
  77. package/build/es/src/forms-v4-submission-submissions.public.d.ts +0 -268
  78. package/build/es/src/forms-v4-submission-submissions.public.js +0 -205
  79. package/build/es/src/forms-v4-submission-submissions.public.js.map +0 -1
  80. package/build/es/src/forms-v4-submission-submissions.types.d.ts +0 -6288
  81. package/build/es/src/forms-v4-submission-submissions.types.js +0 -957
  82. package/build/es/src/forms-v4-submission-submissions.types.js.map +0 -1
  83. package/build/es/src/forms-v4-submission-submissions.universal.js +0 -2163
  84. package/build/es/src/forms-v4-submission-submissions.universal.js.map +0 -1
  85. package/build/internal/cjs/src/forms-v4-submission-submissions.context.d.ts +0 -69
  86. package/build/internal/cjs/src/forms-v4-submission-submissions.context.js +0 -170
  87. package/build/internal/cjs/src/forms-v4-submission-submissions.context.js.map +0 -1
  88. package/build/internal/cjs/src/forms-v4-submission-submissions.http.d.ts +0 -126
  89. package/build/internal/cjs/src/forms-v4-submission-submissions.http.js +0 -849
  90. package/build/internal/cjs/src/forms-v4-submission-submissions.http.js.map +0 -1
  91. package/build/internal/cjs/src/forms-v4-submission-submissions.meta.d.ts +0 -58
  92. package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js +0 -522
  93. package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js.map +0 -1
  94. package/build/internal/cjs/src/forms-v4-submission-submissions.public.d.ts +0 -286
  95. package/build/internal/cjs/src/forms-v4-submission-submissions.public.js +0 -332
  96. package/build/internal/cjs/src/forms-v4-submission-submissions.public.js.map +0 -1
  97. package/build/internal/cjs/src/forms-v4-submission-submissions.types.d.ts +0 -6288
  98. package/build/internal/cjs/src/forms-v4-submission-submissions.types.js +0 -961
  99. package/build/internal/cjs/src/forms-v4-submission-submissions.types.js.map +0 -1
  100. package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js +0 -2217
  101. package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js.map +0 -1
  102. package/build/internal/es/index.d.ts +0 -1
  103. package/build/internal/es/index.js +0 -2
  104. package/build/internal/es/index.js.map +0 -1
  105. package/build/internal/es/index.typings.d.ts +0 -1
  106. package/build/internal/es/index.typings.js +0 -2
  107. package/build/internal/es/index.typings.js.map +0 -1
  108. package/build/internal/es/meta.d.ts +0 -1
  109. package/build/internal/es/meta.js +0 -2
  110. package/build/internal/es/meta.js.map +0 -1
  111. package/build/internal/es/src/forms-v4-submission-submissions.context.d.ts +0 -69
  112. package/build/internal/es/src/forms-v4-submission-submissions.context.js +0 -69
  113. package/build/internal/es/src/forms-v4-submission-submissions.context.js.map +0 -1
  114. package/build/internal/es/src/forms-v4-submission-submissions.http.d.ts +0 -126
  115. package/build/internal/es/src/forms-v4-submission-submissions.http.js +0 -820
  116. package/build/internal/es/src/forms-v4-submission-submissions.http.js.map +0 -1
  117. package/build/internal/es/src/forms-v4-submission-submissions.meta.d.ts +0 -58
  118. package/build/internal/es/src/forms-v4-submission-submissions.meta.js +0 -470
  119. package/build/internal/es/src/forms-v4-submission-submissions.meta.js.map +0 -1
  120. package/build/internal/es/src/forms-v4-submission-submissions.public.d.ts +0 -286
  121. package/build/internal/es/src/forms-v4-submission-submissions.public.js +0 -205
  122. package/build/internal/es/src/forms-v4-submission-submissions.public.js.map +0 -1
  123. package/build/internal/es/src/forms-v4-submission-submissions.types.d.ts +0 -6288
  124. package/build/internal/es/src/forms-v4-submission-submissions.types.js +0 -957
  125. package/build/internal/es/src/forms-v4-submission-submissions.types.js.map +0 -1
  126. package/build/internal/es/src/forms-v4-submission-submissions.universal.js +0 -2163
  127. package/build/internal/es/src/forms-v4-submission-submissions.universal.js.map +0 -1
@@ -0,0 +1,2453 @@
1
+ // src/forms-v4-submission-submissions.universal.ts
2
+ import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
3
+ import { queryBuilder } from "@wix/sdk-runtime/query-builder";
4
+ import {
5
+ renameKeysFromSDKRequestToRESTRequest,
6
+ renameKeysFromRESTResponseToSDKResponse
7
+ } from "@wix/sdk-runtime/rename-all-nested-keys";
8
+
9
+ // src/forms-v4-submission-submissions.http.ts
10
+ import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
11
+ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
12
+ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
13
+ import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
14
+ import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
15
+ import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
16
+ function resolveWixFormsV4FormSubmissionServiceUrl(opts) {
17
+ const domainToMappings = {
18
+ "api._api_base_domain_": [
19
+ {
20
+ srcPath: "/form-submission-service",
21
+ destPath: ""
22
+ }
23
+ ],
24
+ _: [
25
+ {
26
+ srcPath: "/_api/form-submission-service",
27
+ destPath: ""
28
+ }
29
+ ],
30
+ "manage._base_domain_": [
31
+ {
32
+ srcPath: "/_api/form-submission-service",
33
+ destPath: ""
34
+ },
35
+ {
36
+ srcPath: "/form-submission-service",
37
+ destPath: ""
38
+ }
39
+ ],
40
+ "www._base_domain_": [
41
+ {
42
+ srcPath: "/_api/form-submission-service",
43
+ destPath: ""
44
+ }
45
+ ],
46
+ "bo._base_domain_": [
47
+ {
48
+ srcPath: "/form-submission-service",
49
+ destPath: ""
50
+ }
51
+ ],
52
+ "wixbo.ai": [
53
+ {
54
+ srcPath: "/form-submission-service",
55
+ destPath: ""
56
+ }
57
+ ],
58
+ "wix-bo.com": [
59
+ {
60
+ srcPath: "/form-submission-service",
61
+ destPath: ""
62
+ }
63
+ ],
64
+ "www.wixapis.com": [
65
+ {
66
+ srcPath: "/form-submission-service",
67
+ destPath: ""
68
+ },
69
+ {
70
+ srcPath: "/_api/form-submission-service",
71
+ destPath: ""
72
+ }
73
+ ],
74
+ "apps._base_domain_": [
75
+ {
76
+ srcPath: "/form-submission-service",
77
+ destPath: ""
78
+ }
79
+ ],
80
+ "editor._base_domain_": [
81
+ {
82
+ srcPath: "/_api/form-submission-service",
83
+ destPath: ""
84
+ }
85
+ ],
86
+ "blocks._base_domain_": [
87
+ {
88
+ srcPath: "/_api/form-submission-service",
89
+ destPath: ""
90
+ }
91
+ ],
92
+ "create.editorx": [
93
+ {
94
+ srcPath: "/_api/form-submission-service",
95
+ destPath: ""
96
+ }
97
+ ],
98
+ "*.dev.wix-code.com": [
99
+ {
100
+ srcPath: "/_api/form-submission-service",
101
+ destPath: ""
102
+ }
103
+ ],
104
+ "*.wixforms.com": [
105
+ {
106
+ srcPath: "/_api/form-submission-service",
107
+ destPath: ""
108
+ }
109
+ ]
110
+ };
111
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
112
+ }
113
+ function resolveWixFormsV4FormSubmissionContactUpsertServiceUrl(opts) {
114
+ const domainToMappings = {
115
+ "bo._base_domain_": [
116
+ {
117
+ srcPath: "/form-submission-contact-mapping-service",
118
+ destPath: ""
119
+ }
120
+ ],
121
+ "wixbo.ai": [
122
+ {
123
+ srcPath: "/form-submission-contact-mapping-service",
124
+ destPath: ""
125
+ }
126
+ ],
127
+ "wix-bo.com": [
128
+ {
129
+ srcPath: "/form-submission-contact-mapping-service",
130
+ destPath: ""
131
+ }
132
+ ],
133
+ "www.wixapis.com": [
134
+ {
135
+ srcPath: "/form-submission-contact-mapping-service",
136
+ destPath: ""
137
+ },
138
+ {
139
+ srcPath: "/_api/form-submission-contact-mapping-service",
140
+ destPath: ""
141
+ }
142
+ ]
143
+ };
144
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
145
+ }
146
+ var PACKAGE_NAME = "@wix/auto_sdk_forms_submissions";
147
+ function upsertContactFromSubmission(payload) {
148
+ function __upsertContactFromSubmission({ host }) {
149
+ const metadata = {
150
+ entityFqdn: "wix.forms.v4.submission",
151
+ method: "POST",
152
+ methodFqn: "wix.forms.v4.FormSubmissionContactUpsertService.UpsertContactFromSubmission",
153
+ packageName: PACKAGE_NAME,
154
+ url: resolveWixFormsV4FormSubmissionContactUpsertServiceUrl({
155
+ protoPath: "/v4/submissions-contacts",
156
+ data: payload,
157
+ host
158
+ }),
159
+ data: payload
160
+ };
161
+ return metadata;
162
+ }
163
+ return __upsertContactFromSubmission;
164
+ }
165
+ function createSubmission(payload) {
166
+ function __createSubmission({ host }) {
167
+ const serializedData = transformPaths(payload, [
168
+ {
169
+ transformFn: transformSDKTimestampToRESTTimestamp,
170
+ paths: [
171
+ { path: "submission.createdDate" },
172
+ { path: "submission.updatedDate" }
173
+ ]
174
+ }
175
+ ]);
176
+ const metadata = {
177
+ entityFqdn: "wix.forms.v4.submission",
178
+ method: "POST",
179
+ methodFqn: "wix.forms.v4.FormSubmissionService.CreateSubmission",
180
+ packageName: PACKAGE_NAME,
181
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
182
+ protoPath: "/v4/submissions",
183
+ data: serializedData,
184
+ host
185
+ }),
186
+ data: serializedData,
187
+ transformResponse: (payload2) => transformPaths(payload2, [
188
+ {
189
+ transformFn: transformRESTTimestampToSDKTimestamp,
190
+ paths: [
191
+ { path: "submission.createdDate" },
192
+ { path: "submission.updatedDate" }
193
+ ]
194
+ }
195
+ ])
196
+ };
197
+ return metadata;
198
+ }
199
+ return __createSubmission;
200
+ }
201
+ function getSubmission(payload) {
202
+ function __getSubmission({ host }) {
203
+ const metadata = {
204
+ entityFqdn: "wix.forms.v4.submission",
205
+ method: "GET",
206
+ methodFqn: "wix.forms.v4.FormSubmissionService.GetSubmission",
207
+ packageName: PACKAGE_NAME,
208
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
209
+ protoPath: "/v4/submissions/{submissionId}",
210
+ data: payload,
211
+ host
212
+ }),
213
+ params: toURLSearchParams(payload),
214
+ transformResponse: (payload2) => transformPaths(payload2, [
215
+ {
216
+ transformFn: transformRESTTimestampToSDKTimestamp,
217
+ paths: [
218
+ { path: "submission.createdDate" },
219
+ { path: "submission.updatedDate" }
220
+ ]
221
+ }
222
+ ])
223
+ };
224
+ return metadata;
225
+ }
226
+ return __getSubmission;
227
+ }
228
+ function updateSubmission(payload) {
229
+ function __updateSubmission({ host }) {
230
+ const serializedData = transformPaths(payload, [
231
+ {
232
+ transformFn: transformSDKFieldMaskToRESTFieldMask,
233
+ paths: [{ path: "mask" }]
234
+ },
235
+ {
236
+ transformFn: transformSDKTimestampToRESTTimestamp,
237
+ paths: [
238
+ { path: "submission.createdDate" },
239
+ { path: "submission.updatedDate" }
240
+ ]
241
+ }
242
+ ]);
243
+ const metadata = {
244
+ entityFqdn: "wix.forms.v4.submission",
245
+ method: "PATCH",
246
+ methodFqn: "wix.forms.v4.FormSubmissionService.UpdateSubmission",
247
+ packageName: PACKAGE_NAME,
248
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
249
+ protoPath: "/v4/submissions/{submission.id}",
250
+ data: serializedData,
251
+ host
252
+ }),
253
+ data: serializedData,
254
+ transformResponse: (payload2) => transformPaths(payload2, [
255
+ {
256
+ transformFn: transformRESTTimestampToSDKTimestamp,
257
+ paths: [
258
+ { path: "submission.createdDate" },
259
+ { path: "submission.updatedDate" }
260
+ ]
261
+ }
262
+ ])
263
+ };
264
+ return metadata;
265
+ }
266
+ return __updateSubmission;
267
+ }
268
+ function confirmSubmission(payload) {
269
+ function __confirmSubmission({ host }) {
270
+ const metadata = {
271
+ entityFqdn: "wix.forms.v4.submission",
272
+ method: "POST",
273
+ methodFqn: "wix.forms.v4.FormSubmissionService.ConfirmSubmission",
274
+ packageName: PACKAGE_NAME,
275
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
276
+ protoPath: "/v4/submissions/{submissionId}/confirm",
277
+ data: payload,
278
+ host
279
+ }),
280
+ data: payload,
281
+ transformResponse: (payload2) => transformPaths(payload2, [
282
+ {
283
+ transformFn: transformRESTTimestampToSDKTimestamp,
284
+ paths: [
285
+ { path: "submission.createdDate" },
286
+ { path: "submission.updatedDate" }
287
+ ]
288
+ }
289
+ ])
290
+ };
291
+ return metadata;
292
+ }
293
+ return __confirmSubmission;
294
+ }
295
+ function deleteSubmission(payload) {
296
+ function __deleteSubmission({ host }) {
297
+ const metadata = {
298
+ entityFqdn: "wix.forms.v4.submission",
299
+ method: "DELETE",
300
+ methodFqn: "wix.forms.v4.FormSubmissionService.DeleteSubmission",
301
+ packageName: PACKAGE_NAME,
302
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
303
+ protoPath: "/v4/submissions/{submissionId}",
304
+ data: payload,
305
+ host
306
+ }),
307
+ params: toURLSearchParams(payload)
308
+ };
309
+ return metadata;
310
+ }
311
+ return __deleteSubmission;
312
+ }
313
+ function bulkDeleteSubmission(payload) {
314
+ function __bulkDeleteSubmission({ host }) {
315
+ const metadata = {
316
+ entityFqdn: "wix.forms.v4.submission",
317
+ method: "POST",
318
+ methodFqn: "wix.forms.v4.FormSubmissionService.BulkDeleteSubmission",
319
+ packageName: PACKAGE_NAME,
320
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
321
+ protoPath: "/v4/bulk/submissions/delete",
322
+ data: payload,
323
+ host
324
+ }),
325
+ data: payload
326
+ };
327
+ return metadata;
328
+ }
329
+ return __bulkDeleteSubmission;
330
+ }
331
+ function restoreSubmissionFromTrashBin(payload) {
332
+ function __restoreSubmissionFromTrashBin({ host }) {
333
+ const metadata = {
334
+ entityFqdn: "wix.forms.v4.submission",
335
+ method: "POST",
336
+ methodFqn: "wix.forms.v4.FormSubmissionService.RestoreSubmissionFromTrashBin",
337
+ packageName: PACKAGE_NAME,
338
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
339
+ protoPath: "/v4/submissions/trash-bin/{submissionId}/restore",
340
+ data: payload,
341
+ host
342
+ }),
343
+ data: payload,
344
+ transformResponse: (payload2) => transformPaths(payload2, [
345
+ {
346
+ transformFn: transformRESTTimestampToSDKTimestamp,
347
+ paths: [
348
+ { path: "submission.createdDate" },
349
+ { path: "submission.updatedDate" }
350
+ ]
351
+ }
352
+ ])
353
+ };
354
+ return metadata;
355
+ }
356
+ return __restoreSubmissionFromTrashBin;
357
+ }
358
+ function removeSubmissionFromTrashBin(payload) {
359
+ function __removeSubmissionFromTrashBin({ host }) {
360
+ const metadata = {
361
+ entityFqdn: "wix.forms.v4.submission",
362
+ method: "DELETE",
363
+ methodFqn: "wix.forms.v4.FormSubmissionService.RemoveSubmissionFromTrashBin",
364
+ packageName: PACKAGE_NAME,
365
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
366
+ protoPath: "/v4/submissions/trash-bin/{submissionId}",
367
+ data: payload,
368
+ host
369
+ }),
370
+ params: toURLSearchParams(payload)
371
+ };
372
+ return metadata;
373
+ }
374
+ return __removeSubmissionFromTrashBin;
375
+ }
376
+ function bulkRemoveSubmissionFromTrashBin(payload) {
377
+ function __bulkRemoveSubmissionFromTrashBin({ host }) {
378
+ const metadata = {
379
+ entityFqdn: "wix.forms.v4.submission",
380
+ method: "POST",
381
+ methodFqn: "wix.forms.v4.FormSubmissionService.BulkRemoveSubmissionFromTrashBin",
382
+ packageName: PACKAGE_NAME,
383
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
384
+ protoPath: "/v4/submissions/trash-bin/delete",
385
+ data: payload,
386
+ host
387
+ }),
388
+ data: payload
389
+ };
390
+ return metadata;
391
+ }
392
+ return __bulkRemoveSubmissionFromTrashBin;
393
+ }
394
+ function listDeletedSubmissions(payload) {
395
+ function __listDeletedSubmissions({ host }) {
396
+ const metadata = {
397
+ entityFqdn: "wix.forms.v4.submission",
398
+ method: "GET",
399
+ methodFqn: "wix.forms.v4.FormSubmissionService.ListDeletedSubmissions",
400
+ packageName: PACKAGE_NAME,
401
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
402
+ protoPath: "/v4/submissions/trash-bin",
403
+ data: payload,
404
+ host
405
+ }),
406
+ params: toURLSearchParams(payload),
407
+ transformResponse: (payload2) => transformPaths(payload2, [
408
+ {
409
+ transformFn: transformRESTTimestampToSDKTimestamp,
410
+ paths: [
411
+ { path: "submissions.createdDate" },
412
+ { path: "submissions.updatedDate" }
413
+ ]
414
+ }
415
+ ])
416
+ };
417
+ return metadata;
418
+ }
419
+ return __listDeletedSubmissions;
420
+ }
421
+ function getDeletedSubmission(payload) {
422
+ function __getDeletedSubmission({ host }) {
423
+ const metadata = {
424
+ entityFqdn: "wix.forms.v4.submission",
425
+ method: "GET",
426
+ methodFqn: "wix.forms.v4.FormSubmissionService.GetDeletedSubmission",
427
+ packageName: PACKAGE_NAME,
428
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
429
+ protoPath: "/v4/submissions/trash-bin/{submissionId}",
430
+ data: payload,
431
+ host
432
+ }),
433
+ params: toURLSearchParams(payload),
434
+ transformResponse: (payload2) => transformPaths(payload2, [
435
+ {
436
+ transformFn: transformRESTTimestampToSDKTimestamp,
437
+ paths: [
438
+ { path: "submission.createdDate" },
439
+ { path: "submission.updatedDate" }
440
+ ]
441
+ }
442
+ ])
443
+ };
444
+ return metadata;
445
+ }
446
+ return __getDeletedSubmission;
447
+ }
448
+ function querySubmission(payload) {
449
+ function __querySubmission({ host }) {
450
+ const metadata = {
451
+ entityFqdn: "wix.forms.v4.submission",
452
+ method: "POST",
453
+ methodFqn: "wix.forms.v4.FormSubmissionService.QuerySubmission",
454
+ packageName: PACKAGE_NAME,
455
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
456
+ protoPath: "/v4/submissions/query",
457
+ data: payload,
458
+ host
459
+ }),
460
+ data: payload,
461
+ transformResponse: (payload2) => transformPaths(payload2, [
462
+ {
463
+ transformFn: transformRESTTimestampToSDKTimestamp,
464
+ paths: [
465
+ { path: "submissions.createdDate" },
466
+ { path: "submissions.updatedDate" }
467
+ ]
468
+ }
469
+ ])
470
+ };
471
+ return metadata;
472
+ }
473
+ return __querySubmission;
474
+ }
475
+ function searchSubmissionsByNamespace(payload) {
476
+ function __searchSubmissionsByNamespace({ host }) {
477
+ const metadata = {
478
+ entityFqdn: "wix.forms.v4.submission",
479
+ method: "POST",
480
+ methodFqn: "wix.forms.v4.FormSubmissionService.SearchSubmissionsByNamespace",
481
+ packageName: PACKAGE_NAME,
482
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
483
+ protoPath: "/v4/submissions/namespace/search",
484
+ data: payload,
485
+ host
486
+ }),
487
+ data: payload,
488
+ transformResponse: (payload2) => transformPaths(payload2, [
489
+ {
490
+ transformFn: transformRESTTimestampToSDKTimestamp,
491
+ paths: [
492
+ { path: "submissions.createdDate" },
493
+ { path: "submissions.updatedDate" }
494
+ ]
495
+ }
496
+ ])
497
+ };
498
+ return metadata;
499
+ }
500
+ return __searchSubmissionsByNamespace;
501
+ }
502
+ function querySubmissionsByNamespace(payload) {
503
+ function __querySubmissionsByNamespace({ host }) {
504
+ const metadata = {
505
+ entityFqdn: "wix.forms.v4.submission",
506
+ method: "POST",
507
+ methodFqn: "wix.forms.v4.FormSubmissionService.QuerySubmissionsByNamespace",
508
+ packageName: PACKAGE_NAME,
509
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
510
+ protoPath: "/v4/submissions/namespace/query",
511
+ data: payload,
512
+ host
513
+ }),
514
+ data: payload,
515
+ transformResponse: (payload2) => transformPaths(payload2, [
516
+ {
517
+ transformFn: transformRESTTimestampToSDKTimestamp,
518
+ paths: [
519
+ { path: "submissions.createdDate" },
520
+ { path: "submissions.updatedDate" }
521
+ ]
522
+ }
523
+ ])
524
+ };
525
+ return metadata;
526
+ }
527
+ return __querySubmissionsByNamespace;
528
+ }
529
+ function countSubmissionsByFilter(payload) {
530
+ function __countSubmissionsByFilter({ host }) {
531
+ const metadata = {
532
+ entityFqdn: "wix.forms.v4.submission",
533
+ method: "POST",
534
+ methodFqn: "wix.forms.v4.FormSubmissionService.CountSubmissionsByFilter",
535
+ packageName: PACKAGE_NAME,
536
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
537
+ protoPath: "/v4/submissions/count-by-filter",
538
+ data: payload,
539
+ host
540
+ }),
541
+ data: payload
542
+ };
543
+ return metadata;
544
+ }
545
+ return __countSubmissionsByFilter;
546
+ }
547
+ function countSubmissions(payload) {
548
+ function __countSubmissions({ host }) {
549
+ const metadata = {
550
+ entityFqdn: "wix.forms.v4.submission",
551
+ method: "POST",
552
+ methodFqn: "wix.forms.v4.FormSubmissionService.CountSubmissions",
553
+ packageName: PACKAGE_NAME,
554
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
555
+ protoPath: "/v4/submissions/count",
556
+ data: payload,
557
+ host
558
+ }),
559
+ data: payload
560
+ };
561
+ return metadata;
562
+ }
563
+ return __countSubmissions;
564
+ }
565
+ function countDeletedSubmissions(payload) {
566
+ function __countDeletedSubmissions({ host }) {
567
+ const metadata = {
568
+ entityFqdn: "wix.forms.v4.submission",
569
+ method: "POST",
570
+ methodFqn: "wix.forms.v4.FormSubmissionService.CountDeletedSubmissions",
571
+ packageName: PACKAGE_NAME,
572
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
573
+ protoPath: "/v4/submissions/trash-bin/count",
574
+ data: payload,
575
+ host
576
+ }),
577
+ data: payload
578
+ };
579
+ return metadata;
580
+ }
581
+ return __countDeletedSubmissions;
582
+ }
583
+ function getMediaUploadUrl(payload) {
584
+ function __getMediaUploadUrl({ host }) {
585
+ const metadata = {
586
+ entityFqdn: "wix.forms.v4.submission",
587
+ method: "POST",
588
+ methodFqn: "wix.forms.v4.FormSubmissionService.GetMediaUploadURL",
589
+ packageName: PACKAGE_NAME,
590
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
591
+ protoPath: "/v4/submissions/media-upload-url",
592
+ data: payload,
593
+ host
594
+ }),
595
+ data: payload
596
+ };
597
+ return metadata;
598
+ }
599
+ return __getMediaUploadUrl;
600
+ }
601
+ function bulkMarkSubmissionsAsSeen(payload) {
602
+ function __bulkMarkSubmissionsAsSeen({ host }) {
603
+ const metadata = {
604
+ entityFqdn: "wix.forms.v4.submission",
605
+ method: "POST",
606
+ methodFqn: "wix.forms.v4.FormSubmissionService.BulkMarkSubmissionsAsSeen",
607
+ packageName: PACKAGE_NAME,
608
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
609
+ protoPath: "/v4/bulk/submissions/mark-as-seen",
610
+ data: payload,
611
+ host
612
+ }),
613
+ data: payload
614
+ };
615
+ return metadata;
616
+ }
617
+ return __bulkMarkSubmissionsAsSeen;
618
+ }
619
+ function getSubmissionDownloadUrl(payload) {
620
+ function __getSubmissionDownloadUrl({ host }) {
621
+ const metadata = {
622
+ entityFqdn: "wix.forms.v4.submission",
623
+ method: "GET",
624
+ methodFqn: "wix.forms.v4.FormSubmissionService.GetSubmissionDownloadUrl",
625
+ packageName: PACKAGE_NAME,
626
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
627
+ protoPath: "/v4/submissions/{submissionId}/document",
628
+ data: payload,
629
+ host
630
+ }),
631
+ params: toURLSearchParams(payload)
632
+ };
633
+ return metadata;
634
+ }
635
+ return __getSubmissionDownloadUrl;
636
+ }
637
+ function getFormattedSubmission(payload) {
638
+ function __getFormattedSubmission({ host }) {
639
+ const metadata = {
640
+ entityFqdn: "wix.forms.v4.submission",
641
+ method: "GET",
642
+ methodFqn: "wix.forms.v4.FormSubmissionService.GetFormattedSubmission",
643
+ packageName: PACKAGE_NAME,
644
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
645
+ protoPath: "/v4/submissions/{submissionId}/formatted",
646
+ data: payload,
647
+ host
648
+ }),
649
+ params: toURLSearchParams(payload)
650
+ };
651
+ return metadata;
652
+ }
653
+ return __getFormattedSubmission;
654
+ }
655
+ function updateExtendedFields(payload) {
656
+ function __updateExtendedFields({ host }) {
657
+ const metadata = {
658
+ entityFqdn: "wix.forms.v4.submission",
659
+ method: "POST",
660
+ methodFqn: "wix.forms.v4.FormSubmissionService.UpdateExtendedFields",
661
+ packageName: PACKAGE_NAME,
662
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
663
+ protoPath: "/v4/submissions/{id}/extended-fields",
664
+ data: payload,
665
+ host
666
+ }),
667
+ data: payload
668
+ };
669
+ return metadata;
670
+ }
671
+ return __updateExtendedFields;
672
+ }
673
+ function bulkUpdateFormSubmissionTags(payload) {
674
+ function __bulkUpdateFormSubmissionTags({ host }) {
675
+ const metadata = {
676
+ entityFqdn: "wix.forms.v4.submission",
677
+ method: "POST",
678
+ methodFqn: "wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTags",
679
+ packageName: PACKAGE_NAME,
680
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
681
+ protoPath: "/v4/bulk/submissions/update-tags",
682
+ data: payload,
683
+ host
684
+ }),
685
+ data: payload
686
+ };
687
+ return metadata;
688
+ }
689
+ return __bulkUpdateFormSubmissionTags;
690
+ }
691
+ function bulkUpdateFormSubmissionTagsByFilter(payload) {
692
+ function __bulkUpdateFormSubmissionTagsByFilter({ host }) {
693
+ const metadata = {
694
+ entityFqdn: "wix.forms.v4.submission",
695
+ method: "POST",
696
+ methodFqn: "wix.forms.v4.FormSubmissionService.BulkUpdateFormSubmissionTagsByFilter",
697
+ packageName: PACKAGE_NAME,
698
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
699
+ protoPath: "/v4/bulk/submissions/update-tags-by-filter",
700
+ data: payload,
701
+ host
702
+ }),
703
+ data: payload
704
+ };
705
+ return metadata;
706
+ }
707
+ return __bulkUpdateFormSubmissionTagsByFilter;
708
+ }
709
+ function validateFormSubmission(payload) {
710
+ function __validateFormSubmission({ host }) {
711
+ const serializedData = transformPaths(payload, [
712
+ {
713
+ transformFn: transformSDKTimestampToRESTTimestamp,
714
+ paths: [
715
+ { path: "submission.createdDate" },
716
+ { path: "submission.updatedDate" }
717
+ ]
718
+ }
719
+ ]);
720
+ const metadata = {
721
+ entityFqdn: "wix.forms.v4.submission",
722
+ method: "POST",
723
+ methodFqn: "wix.forms.v4.FormSubmissionService.ValidateFormSubmission",
724
+ packageName: PACKAGE_NAME,
725
+ url: resolveWixFormsV4FormSubmissionServiceUrl({
726
+ protoPath: "/v4/submissions/validate",
727
+ data: serializedData,
728
+ host
729
+ }),
730
+ data: serializedData
731
+ };
732
+ return metadata;
733
+ }
734
+ return __validateFormSubmission;
735
+ }
736
+
737
+ // src/forms-v4-submission-submissions.universal.ts
738
+ import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
739
+ var SubmissionStatus = /* @__PURE__ */ ((SubmissionStatus2) => {
740
+ SubmissionStatus2["UNKNOWN_SUBMISSION_STATUS"] = "UNKNOWN_SUBMISSION_STATUS";
741
+ SubmissionStatus2["PENDING"] = "PENDING";
742
+ SubmissionStatus2["CONFIRMED"] = "CONFIRMED";
743
+ SubmissionStatus2["PAYMENT_WAITING"] = "PAYMENT_WAITING";
744
+ SubmissionStatus2["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
745
+ return SubmissionStatus2;
746
+ })(SubmissionStatus || {});
747
+ var OptInLevel = /* @__PURE__ */ ((OptInLevel2) => {
748
+ OptInLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
749
+ OptInLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
750
+ return OptInLevel2;
751
+ })(OptInLevel || {});
752
+ var StringTypeFormatEnumFormat = /* @__PURE__ */ ((StringTypeFormatEnumFormat2) => {
753
+ StringTypeFormatEnumFormat2["UNDEFINED"] = "UNDEFINED";
754
+ StringTypeFormatEnumFormat2["DATE"] = "DATE";
755
+ StringTypeFormatEnumFormat2["TIME"] = "TIME";
756
+ StringTypeFormatEnumFormat2["DATE_TIME"] = "DATE_TIME";
757
+ StringTypeFormatEnumFormat2["EMAIL"] = "EMAIL";
758
+ StringTypeFormatEnumFormat2["URL"] = "URL";
759
+ StringTypeFormatEnumFormat2["UUID"] = "UUID";
760
+ StringTypeFormatEnumFormat2["PHONE"] = "PHONE";
761
+ StringTypeFormatEnumFormat2["URI"] = "URI";
762
+ StringTypeFormatEnumFormat2["HOSTNAME"] = "HOSTNAME";
763
+ StringTypeFormatEnumFormat2["COLOR_HEX"] = "COLOR_HEX";
764
+ StringTypeFormatEnumFormat2["CURRENCY"] = "CURRENCY";
765
+ StringTypeFormatEnumFormat2["LANGUAGE"] = "LANGUAGE";
766
+ StringTypeFormatEnumFormat2["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
767
+ return StringTypeFormatEnumFormat2;
768
+ })(StringTypeFormatEnumFormat || {});
769
+ var ValidationFormat = /* @__PURE__ */ ((ValidationFormat2) => {
770
+ ValidationFormat2["UNDEFINED"] = "UNDEFINED";
771
+ ValidationFormat2["WIX_FILE"] = "WIX_FILE";
772
+ ValidationFormat2["PAYMENT"] = "PAYMENT";
773
+ ValidationFormat2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
774
+ ValidationFormat2["SCHEDULING"] = "SCHEDULING";
775
+ return ValidationFormat2;
776
+ })(ValidationFormat || {});
777
+ var ProductType = /* @__PURE__ */ ((ProductType2) => {
778
+ ProductType2["UNKNOWN_PRODUCT_TYPE"] = "UNKNOWN_PRODUCT_TYPE";
779
+ ProductType2["SHIPPABLE"] = "SHIPPABLE";
780
+ ProductType2["DIGITAL"] = "DIGITAL";
781
+ return ProductType2;
782
+ })(ProductType || {});
783
+ var PriceType = /* @__PURE__ */ ((PriceType2) => {
784
+ PriceType2["UNKNOWN_PRICE_TYPE"] = "UNKNOWN_PRICE_TYPE";
785
+ PriceType2["FIXED_PRICE"] = "FIXED_PRICE";
786
+ PriceType2["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
787
+ return PriceType2;
788
+ })(PriceType || {});
789
+ var InputFieldStringTypeFormatEnumFormat = /* @__PURE__ */ ((InputFieldStringTypeFormatEnumFormat2) => {
790
+ InputFieldStringTypeFormatEnumFormat2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
791
+ InputFieldStringTypeFormatEnumFormat2["DATE"] = "DATE";
792
+ InputFieldStringTypeFormatEnumFormat2["TIME"] = "TIME";
793
+ InputFieldStringTypeFormatEnumFormat2["DATE_TIME"] = "DATE_TIME";
794
+ InputFieldStringTypeFormatEnumFormat2["EMAIL"] = "EMAIL";
795
+ InputFieldStringTypeFormatEnumFormat2["URL"] = "URL";
796
+ InputFieldStringTypeFormatEnumFormat2["UUID"] = "UUID";
797
+ InputFieldStringTypeFormatEnumFormat2["PHONE"] = "PHONE";
798
+ InputFieldStringTypeFormatEnumFormat2["URI"] = "URI";
799
+ InputFieldStringTypeFormatEnumFormat2["HOSTNAME"] = "HOSTNAME";
800
+ InputFieldStringTypeFormatEnumFormat2["COLOR_HEX"] = "COLOR_HEX";
801
+ InputFieldStringTypeFormatEnumFormat2["CURRENCY"] = "CURRENCY";
802
+ InputFieldStringTypeFormatEnumFormat2["LANGUAGE"] = "LANGUAGE";
803
+ InputFieldStringTypeFormatEnumFormat2["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
804
+ return InputFieldStringTypeFormatEnumFormat2;
805
+ })(InputFieldStringTypeFormatEnumFormat || {});
806
+ var InputFieldStringComponentType = /* @__PURE__ */ ((InputFieldStringComponentType2) => {
807
+ InputFieldStringComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
808
+ InputFieldStringComponentType2["TEXT_INPUT"] = "TEXT_INPUT";
809
+ InputFieldStringComponentType2["RADIO_GROUP"] = "RADIO_GROUP";
810
+ InputFieldStringComponentType2["DROPDOWN"] = "DROPDOWN";
811
+ InputFieldStringComponentType2["DATE_TIME"] = "DATE_TIME";
812
+ InputFieldStringComponentType2["PHONE_INPUT"] = "PHONE_INPUT";
813
+ InputFieldStringComponentType2["DATE_INPUT"] = "DATE_INPUT";
814
+ InputFieldStringComponentType2["TIME_INPUT"] = "TIME_INPUT";
815
+ InputFieldStringComponentType2["DATE_PICKER"] = "DATE_PICKER";
816
+ InputFieldStringComponentType2["SERVICES_DROPDOWN"] = "SERVICES_DROPDOWN";
817
+ return InputFieldStringComponentType2;
818
+ })(InputFieldStringComponentType || {});
819
+ var NodeType = /* @__PURE__ */ ((NodeType2) => {
820
+ NodeType2["PARAGRAPH"] = "PARAGRAPH";
821
+ NodeType2["TEXT"] = "TEXT";
822
+ NodeType2["HEADING"] = "HEADING";
823
+ NodeType2["BULLETED_LIST"] = "BULLETED_LIST";
824
+ NodeType2["ORDERED_LIST"] = "ORDERED_LIST";
825
+ NodeType2["LIST_ITEM"] = "LIST_ITEM";
826
+ NodeType2["BLOCKQUOTE"] = "BLOCKQUOTE";
827
+ NodeType2["CODE_BLOCK"] = "CODE_BLOCK";
828
+ NodeType2["VIDEO"] = "VIDEO";
829
+ NodeType2["DIVIDER"] = "DIVIDER";
830
+ NodeType2["FILE"] = "FILE";
831
+ NodeType2["GALLERY"] = "GALLERY";
832
+ NodeType2["GIF"] = "GIF";
833
+ NodeType2["HTML"] = "HTML";
834
+ NodeType2["IMAGE"] = "IMAGE";
835
+ NodeType2["LINK_PREVIEW"] = "LINK_PREVIEW";
836
+ NodeType2["MAP"] = "MAP";
837
+ NodeType2["POLL"] = "POLL";
838
+ NodeType2["APP_EMBED"] = "APP_EMBED";
839
+ NodeType2["BUTTON"] = "BUTTON";
840
+ NodeType2["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
841
+ NodeType2["TABLE"] = "TABLE";
842
+ NodeType2["EMBED"] = "EMBED";
843
+ NodeType2["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
844
+ NodeType2["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
845
+ NodeType2["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
846
+ NodeType2["TABLE_CELL"] = "TABLE_CELL";
847
+ NodeType2["TABLE_ROW"] = "TABLE_ROW";
848
+ NodeType2["EXTERNAL"] = "EXTERNAL";
849
+ NodeType2["AUDIO"] = "AUDIO";
850
+ NodeType2["CAPTION"] = "CAPTION";
851
+ NodeType2["LAYOUT"] = "LAYOUT";
852
+ NodeType2["LAYOUT_CELL"] = "LAYOUT_CELL";
853
+ return NodeType2;
854
+ })(NodeType || {});
855
+ var WidthType = /* @__PURE__ */ ((WidthType2) => {
856
+ WidthType2["CONTENT"] = "CONTENT";
857
+ WidthType2["SMALL"] = "SMALL";
858
+ WidthType2["ORIGINAL"] = "ORIGINAL";
859
+ WidthType2["FULL_WIDTH"] = "FULL_WIDTH";
860
+ return WidthType2;
861
+ })(WidthType || {});
862
+ var PluginContainerDataAlignment = /* @__PURE__ */ ((PluginContainerDataAlignment2) => {
863
+ PluginContainerDataAlignment2["CENTER"] = "CENTER";
864
+ PluginContainerDataAlignment2["LEFT"] = "LEFT";
865
+ PluginContainerDataAlignment2["RIGHT"] = "RIGHT";
866
+ return PluginContainerDataAlignment2;
867
+ })(PluginContainerDataAlignment || {});
868
+ var ButtonDataType = /* @__PURE__ */ ((ButtonDataType2) => {
869
+ ButtonDataType2["LINK"] = "LINK";
870
+ ButtonDataType2["ACTION"] = "ACTION";
871
+ return ButtonDataType2;
872
+ })(ButtonDataType || {});
873
+ var LinkTarget = /* @__PURE__ */ ((LinkTarget2) => {
874
+ LinkTarget2["SELF"] = "SELF";
875
+ LinkTarget2["BLANK"] = "BLANK";
876
+ LinkTarget2["PARENT"] = "PARENT";
877
+ LinkTarget2["TOP"] = "TOP";
878
+ return LinkTarget2;
879
+ })(LinkTarget || {});
880
+ var TextAlignment = /* @__PURE__ */ ((TextAlignment2) => {
881
+ TextAlignment2["AUTO"] = "AUTO";
882
+ TextAlignment2["LEFT"] = "LEFT";
883
+ TextAlignment2["RIGHT"] = "RIGHT";
884
+ TextAlignment2["CENTER"] = "CENTER";
885
+ TextAlignment2["JUSTIFY"] = "JUSTIFY";
886
+ return TextAlignment2;
887
+ })(TextAlignment || {});
888
+ var LineStyle = /* @__PURE__ */ ((LineStyle2) => {
889
+ LineStyle2["SINGLE"] = "SINGLE";
890
+ LineStyle2["DOUBLE"] = "DOUBLE";
891
+ LineStyle2["DASHED"] = "DASHED";
892
+ LineStyle2["DOTTED"] = "DOTTED";
893
+ return LineStyle2;
894
+ })(LineStyle || {});
895
+ var Width = /* @__PURE__ */ ((Width2) => {
896
+ Width2["LARGE"] = "LARGE";
897
+ Width2["MEDIUM"] = "MEDIUM";
898
+ Width2["SMALL"] = "SMALL";
899
+ return Width2;
900
+ })(Width || {});
901
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
902
+ DividerDataAlignment2["CENTER"] = "CENTER";
903
+ DividerDataAlignment2["LEFT"] = "LEFT";
904
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
905
+ return DividerDataAlignment2;
906
+ })(DividerDataAlignment || {});
907
+ var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
908
+ ViewMode2["NONE"] = "NONE";
909
+ ViewMode2["FULL"] = "FULL";
910
+ ViewMode2["MINI"] = "MINI";
911
+ return ViewMode2;
912
+ })(ViewMode || {});
913
+ var LayoutType = /* @__PURE__ */ ((LayoutType2) => {
914
+ LayoutType2["COLLAGE"] = "COLLAGE";
915
+ LayoutType2["MASONRY"] = "MASONRY";
916
+ LayoutType2["GRID"] = "GRID";
917
+ LayoutType2["THUMBNAIL"] = "THUMBNAIL";
918
+ LayoutType2["SLIDER"] = "SLIDER";
919
+ LayoutType2["SLIDESHOW"] = "SLIDESHOW";
920
+ LayoutType2["PANORAMA"] = "PANORAMA";
921
+ LayoutType2["COLUMN"] = "COLUMN";
922
+ LayoutType2["MAGIC"] = "MAGIC";
923
+ LayoutType2["FULLSIZE"] = "FULLSIZE";
924
+ return LayoutType2;
925
+ })(LayoutType || {});
926
+ var Orientation = /* @__PURE__ */ ((Orientation2) => {
927
+ Orientation2["ROWS"] = "ROWS";
928
+ Orientation2["COLUMNS"] = "COLUMNS";
929
+ return Orientation2;
930
+ })(Orientation || {});
931
+ var Crop = /* @__PURE__ */ ((Crop2) => {
932
+ Crop2["FILL"] = "FILL";
933
+ Crop2["FIT"] = "FIT";
934
+ return Crop2;
935
+ })(Crop || {});
936
+ var ThumbnailsAlignment = /* @__PURE__ */ ((ThumbnailsAlignment2) => {
937
+ ThumbnailsAlignment2["TOP"] = "TOP";
938
+ ThumbnailsAlignment2["RIGHT"] = "RIGHT";
939
+ ThumbnailsAlignment2["BOTTOM"] = "BOTTOM";
940
+ ThumbnailsAlignment2["LEFT"] = "LEFT";
941
+ ThumbnailsAlignment2["NONE"] = "NONE";
942
+ return ThumbnailsAlignment2;
943
+ })(ThumbnailsAlignment || {});
944
+ var GIFType = /* @__PURE__ */ ((GIFType2) => {
945
+ GIFType2["NORMAL"] = "NORMAL";
946
+ GIFType2["STICKER"] = "STICKER";
947
+ return GIFType2;
948
+ })(GIFType || {});
949
+ var Source = /* @__PURE__ */ ((Source2) => {
950
+ Source2["HTML"] = "HTML";
951
+ Source2["ADSENSE"] = "ADSENSE";
952
+ return Source2;
953
+ })(Source || {});
954
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
955
+ StylesPosition2["START"] = "START";
956
+ StylesPosition2["END"] = "END";
957
+ StylesPosition2["TOP"] = "TOP";
958
+ StylesPosition2["HIDDEN"] = "HIDDEN";
959
+ return StylesPosition2;
960
+ })(StylesPosition || {});
961
+ var MapType = /* @__PURE__ */ ((MapType2) => {
962
+ MapType2["ROADMAP"] = "ROADMAP";
963
+ MapType2["SATELITE"] = "SATELITE";
964
+ MapType2["HYBRID"] = "HYBRID";
965
+ MapType2["TERRAIN"] = "TERRAIN";
966
+ return MapType2;
967
+ })(MapType || {});
968
+ var ViewRole = /* @__PURE__ */ ((ViewRole2) => {
969
+ ViewRole2["CREATOR"] = "CREATOR";
970
+ ViewRole2["VOTERS"] = "VOTERS";
971
+ ViewRole2["EVERYONE"] = "EVERYONE";
972
+ return ViewRole2;
973
+ })(ViewRole || {});
974
+ var VoteRole = /* @__PURE__ */ ((VoteRole2) => {
975
+ VoteRole2["SITE_MEMBERS"] = "SITE_MEMBERS";
976
+ VoteRole2["ALL"] = "ALL";
977
+ return VoteRole2;
978
+ })(VoteRole || {});
979
+ var PollLayoutType = /* @__PURE__ */ ((PollLayoutType2) => {
980
+ PollLayoutType2["LIST"] = "LIST";
981
+ PollLayoutType2["GRID"] = "GRID";
982
+ return PollLayoutType2;
983
+ })(PollLayoutType || {});
984
+ var PollLayoutDirection = /* @__PURE__ */ ((PollLayoutDirection2) => {
985
+ PollLayoutDirection2["LTR"] = "LTR";
986
+ PollLayoutDirection2["RTL"] = "RTL";
987
+ return PollLayoutDirection2;
988
+ })(PollLayoutDirection || {});
989
+ var BackgroundType = /* @__PURE__ */ ((BackgroundType2) => {
990
+ BackgroundType2["COLOR"] = "COLOR";
991
+ BackgroundType2["IMAGE"] = "IMAGE";
992
+ BackgroundType2["GRADIENT"] = "GRADIENT";
993
+ return BackgroundType2;
994
+ })(BackgroundType || {});
995
+ var DecorationType = /* @__PURE__ */ ((DecorationType2) => {
996
+ DecorationType2["BOLD"] = "BOLD";
997
+ DecorationType2["ITALIC"] = "ITALIC";
998
+ DecorationType2["UNDERLINE"] = "UNDERLINE";
999
+ DecorationType2["SPOILER"] = "SPOILER";
1000
+ DecorationType2["ANCHOR"] = "ANCHOR";
1001
+ DecorationType2["MENTION"] = "MENTION";
1002
+ DecorationType2["LINK"] = "LINK";
1003
+ DecorationType2["COLOR"] = "COLOR";
1004
+ DecorationType2["FONT_SIZE"] = "FONT_SIZE";
1005
+ DecorationType2["EXTERNAL"] = "EXTERNAL";
1006
+ DecorationType2["STRIKETHROUGH"] = "STRIKETHROUGH";
1007
+ DecorationType2["SUPERSCRIPT"] = "SUPERSCRIPT";
1008
+ DecorationType2["SUBSCRIPT"] = "SUBSCRIPT";
1009
+ return DecorationType2;
1010
+ })(DecorationType || {});
1011
+ var FontType = /* @__PURE__ */ ((FontType2) => {
1012
+ FontType2["PX"] = "PX";
1013
+ FontType2["EM"] = "EM";
1014
+ return FontType2;
1015
+ })(FontType || {});
1016
+ var Position = /* @__PURE__ */ ((Position2) => {
1017
+ Position2["START"] = "START";
1018
+ Position2["END"] = "END";
1019
+ Position2["TOP"] = "TOP";
1020
+ return Position2;
1021
+ })(Position || {});
1022
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1023
+ AspectRatio2["SQUARE"] = "SQUARE";
1024
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
1025
+ return AspectRatio2;
1026
+ })(AspectRatio || {});
1027
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
1028
+ Resizing2["FILL"] = "FILL";
1029
+ Resizing2["FIT"] = "FIT";
1030
+ return Resizing2;
1031
+ })(Resizing || {});
1032
+ var Placement = /* @__PURE__ */ ((Placement2) => {
1033
+ Placement2["IMAGE"] = "IMAGE";
1034
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1035
+ return Placement2;
1036
+ })(Placement || {});
1037
+ var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1038
+ CardStylesType2["CONTAINED"] = "CONTAINED";
1039
+ CardStylesType2["FRAMELESS"] = "FRAMELESS";
1040
+ return CardStylesType2;
1041
+ })(CardStylesType || {});
1042
+ var CardStylesAlignment = /* @__PURE__ */ ((CardStylesAlignment2) => {
1043
+ CardStylesAlignment2["START"] = "START";
1044
+ CardStylesAlignment2["CENTER"] = "CENTER";
1045
+ CardStylesAlignment2["END"] = "END";
1046
+ return CardStylesAlignment2;
1047
+ })(CardStylesAlignment || {});
1048
+ var Layout = /* @__PURE__ */ ((Layout2) => {
1049
+ Layout2["STACKED"] = "STACKED";
1050
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1051
+ return Layout2;
1052
+ })(Layout || {});
1053
+ var AppType = /* @__PURE__ */ ((AppType2) => {
1054
+ AppType2["PRODUCT"] = "PRODUCT";
1055
+ AppType2["EVENT"] = "EVENT";
1056
+ AppType2["BOOKING"] = "BOOKING";
1057
+ return AppType2;
1058
+ })(AppType || {});
1059
+ var InitialExpandedItems = /* @__PURE__ */ ((InitialExpandedItems2) => {
1060
+ InitialExpandedItems2["FIRST"] = "FIRST";
1061
+ InitialExpandedItems2["ALL"] = "ALL";
1062
+ InitialExpandedItems2["NONE"] = "NONE";
1063
+ return InitialExpandedItems2;
1064
+ })(InitialExpandedItems || {});
1065
+ var Direction = /* @__PURE__ */ ((Direction2) => {
1066
+ Direction2["LTR"] = "LTR";
1067
+ Direction2["RTL"] = "RTL";
1068
+ return Direction2;
1069
+ })(Direction || {});
1070
+ var VerticalAlignment = /* @__PURE__ */ ((VerticalAlignment2) => {
1071
+ VerticalAlignment2["TOP"] = "TOP";
1072
+ VerticalAlignment2["MIDDLE"] = "MIDDLE";
1073
+ VerticalAlignment2["BOTTOM"] = "BOTTOM";
1074
+ return VerticalAlignment2;
1075
+ })(VerticalAlignment || {});
1076
+ var NullValue = /* @__PURE__ */ ((NullValue2) => {
1077
+ NullValue2["NULL_VALUE"] = "NULL_VALUE";
1078
+ return NullValue2;
1079
+ })(NullValue || {});
1080
+ var ImagePosition = /* @__PURE__ */ ((ImagePosition2) => {
1081
+ ImagePosition2["UNKNOWN_IMAGE_POSITION"] = "UNKNOWN_IMAGE_POSITION";
1082
+ ImagePosition2["ABOVE"] = "ABOVE";
1083
+ ImagePosition2["BELOW"] = "BELOW";
1084
+ return ImagePosition2;
1085
+ })(ImagePosition || {});
1086
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1087
+ Alignment2["UNKNOWN_ALIGNMENT"] = "UNKNOWN_ALIGNMENT";
1088
+ Alignment2["LEFT"] = "LEFT";
1089
+ Alignment2["CENTER"] = "CENTER";
1090
+ Alignment2["RIGHT"] = "RIGHT";
1091
+ return Alignment2;
1092
+ })(Alignment || {});
1093
+ var ImageFit = /* @__PURE__ */ ((ImageFit2) => {
1094
+ ImageFit2["UNKNOWN_IMAGE_FIT"] = "UNKNOWN_IMAGE_FIT";
1095
+ ImageFit2["COVER"] = "COVER";
1096
+ ImageFit2["CONTAIN"] = "CONTAIN";
1097
+ return ImageFit2;
1098
+ })(ImageFit || {});
1099
+ var NumberOfColumns = /* @__PURE__ */ ((NumberOfColumns2) => {
1100
+ NumberOfColumns2["UNKNOWN"] = "UNKNOWN";
1101
+ NumberOfColumns2["ZERO"] = "ZERO";
1102
+ NumberOfColumns2["ONE"] = "ONE";
1103
+ NumberOfColumns2["TWO"] = "TWO";
1104
+ NumberOfColumns2["THREE"] = "THREE";
1105
+ return NumberOfColumns2;
1106
+ })(NumberOfColumns || {});
1107
+ var FirstDayOfWeek = /* @__PURE__ */ ((FirstDayOfWeek2) => {
1108
+ FirstDayOfWeek2["MONDAY"] = "MONDAY";
1109
+ FirstDayOfWeek2["SUNDAY"] = "SUNDAY";
1110
+ return FirstDayOfWeek2;
1111
+ })(FirstDayOfWeek || {});
1112
+ var InputFieldNumberComponentType = /* @__PURE__ */ ((InputFieldNumberComponentType2) => {
1113
+ InputFieldNumberComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1114
+ InputFieldNumberComponentType2["NUMBER_INPUT"] = "NUMBER_INPUT";
1115
+ InputFieldNumberComponentType2["RATING_INPUT"] = "RATING_INPUT";
1116
+ return InputFieldNumberComponentType2;
1117
+ })(InputFieldNumberComponentType || {});
1118
+ var InputFieldBooleanComponentType = /* @__PURE__ */ ((InputFieldBooleanComponentType2) => {
1119
+ InputFieldBooleanComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1120
+ InputFieldBooleanComponentType2["CHECKBOX"] = "CHECKBOX";
1121
+ return InputFieldBooleanComponentType2;
1122
+ })(InputFieldBooleanComponentType || {});
1123
+ var ArrayItemsItemType = /* @__PURE__ */ ((ArrayItemsItemType2) => {
1124
+ ArrayItemsItemType2["UNKNOWN_ITEM_TYPE"] = "UNKNOWN_ITEM_TYPE";
1125
+ ArrayItemsItemType2["STRING"] = "STRING";
1126
+ ArrayItemsItemType2["NUMBER"] = "NUMBER";
1127
+ ArrayItemsItemType2["BOOLEAN"] = "BOOLEAN";
1128
+ ArrayItemsItemType2["INTEGER"] = "INTEGER";
1129
+ ArrayItemsItemType2["OBJECT"] = "OBJECT";
1130
+ return ArrayItemsItemType2;
1131
+ })(ArrayItemsItemType || {});
1132
+ var PropertiesTypePropertiesTypeEnum = /* @__PURE__ */ ((PropertiesTypePropertiesTypeEnum2) => {
1133
+ PropertiesTypePropertiesTypeEnum2["UNKNOWN_PROPERTIES_TYPE"] = "UNKNOWN_PROPERTIES_TYPE";
1134
+ PropertiesTypePropertiesTypeEnum2["STRING"] = "STRING";
1135
+ PropertiesTypePropertiesTypeEnum2["NUMBER"] = "NUMBER";
1136
+ PropertiesTypePropertiesTypeEnum2["BOOLEAN"] = "BOOLEAN";
1137
+ PropertiesTypePropertiesTypeEnum2["INTEGER"] = "INTEGER";
1138
+ PropertiesTypePropertiesTypeEnum2["ARRAY"] = "ARRAY";
1139
+ return PropertiesTypePropertiesTypeEnum2;
1140
+ })(PropertiesTypePropertiesTypeEnum || {});
1141
+ var InputFieldArrayComponentType = /* @__PURE__ */ ((InputFieldArrayComponentType2) => {
1142
+ InputFieldArrayComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1143
+ InputFieldArrayComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1144
+ InputFieldArrayComponentType2["TAGS"] = "TAGS";
1145
+ return InputFieldArrayComponentType2;
1146
+ })(InputFieldArrayComponentType || {});
1147
+ var InputFieldWixFileComponentType = /* @__PURE__ */ ((InputFieldWixFileComponentType2) => {
1148
+ InputFieldWixFileComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1149
+ InputFieldWixFileComponentType2["FILE_UPLOAD"] = "FILE_UPLOAD";
1150
+ InputFieldWixFileComponentType2["SIGNATURE"] = "SIGNATURE";
1151
+ return InputFieldWixFileComponentType2;
1152
+ })(InputFieldWixFileComponentType || {});
1153
+ var UploadFileFormat = /* @__PURE__ */ ((UploadFileFormat2) => {
1154
+ UploadFileFormat2["UNDEFINED"] = "UNDEFINED";
1155
+ UploadFileFormat2["VIDEO"] = "VIDEO";
1156
+ UploadFileFormat2["IMAGE"] = "IMAGE";
1157
+ UploadFileFormat2["AUDIO"] = "AUDIO";
1158
+ UploadFileFormat2["DOCUMENT"] = "DOCUMENT";
1159
+ UploadFileFormat2["ARCHIVE"] = "ARCHIVE";
1160
+ return UploadFileFormat2;
1161
+ })(UploadFileFormat || {});
1162
+ var InputFieldPaymentComponentType = /* @__PURE__ */ ((InputFieldPaymentComponentType2) => {
1163
+ InputFieldPaymentComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1164
+ InputFieldPaymentComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1165
+ InputFieldPaymentComponentType2["DONATION_INPUT"] = "DONATION_INPUT";
1166
+ InputFieldPaymentComponentType2["PAYMENT_INPUT"] = "PAYMENT_INPUT";
1167
+ InputFieldPaymentComponentType2["FIXED_PAYMENT"] = "FIXED_PAYMENT";
1168
+ return InputFieldPaymentComponentType2;
1169
+ })(InputFieldPaymentComponentType || {});
1170
+ var InputFieldSchedulingComponentType = /* @__PURE__ */ ((InputFieldSchedulingComponentType2) => {
1171
+ InputFieldSchedulingComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1172
+ InputFieldSchedulingComponentType2["APPOINTMENT"] = "APPOINTMENT";
1173
+ return InputFieldSchedulingComponentType2;
1174
+ })(InputFieldSchedulingComponentType || {});
1175
+ var Format = /* @__PURE__ */ ((Format2) => {
1176
+ Format2["UNKNOWN_FORMAT_TYPE"] = "UNKNOWN_FORMAT_TYPE";
1177
+ Format2["IN_PERSON"] = "IN_PERSON";
1178
+ Format2["VIDEO_CONFERENCE"] = "VIDEO_CONFERENCE";
1179
+ Format2["PHONE"] = "PHONE";
1180
+ return Format2;
1181
+ })(Format || {});
1182
+ var MultilineAddressComponentType = /* @__PURE__ */ ((MultilineAddressComponentType2) => {
1183
+ MultilineAddressComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1184
+ MultilineAddressComponentType2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
1185
+ return MultilineAddressComponentType2;
1186
+ })(MultilineAddressComponentType || {});
1187
+ var Type = /* @__PURE__ */ ((Type2) => {
1188
+ Type2["UNKNOWN_DEFAULT_COUNTRY"] = "UNKNOWN_DEFAULT_COUNTRY";
1189
+ Type2["BY_IP"] = "BY_IP";
1190
+ Type2["COUNTRY"] = "COUNTRY";
1191
+ return Type2;
1192
+ })(Type || {});
1193
+ var InputFieldInputType = /* @__PURE__ */ ((InputFieldInputType2) => {
1194
+ InputFieldInputType2["UNKNOWN_INPUT_TYPE"] = "UNKNOWN_INPUT_TYPE";
1195
+ InputFieldInputType2["STRING"] = "STRING";
1196
+ InputFieldInputType2["NUMBER"] = "NUMBER";
1197
+ InputFieldInputType2["BOOLEAN"] = "BOOLEAN";
1198
+ InputFieldInputType2["ARRAY"] = "ARRAY";
1199
+ InputFieldInputType2["OBJECT"] = "OBJECT";
1200
+ InputFieldInputType2["WIX_FILE"] = "WIX_FILE";
1201
+ InputFieldInputType2["PAYMENT"] = "PAYMENT";
1202
+ InputFieldInputType2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
1203
+ InputFieldInputType2["SCHEDULING"] = "SCHEDULING";
1204
+ return InputFieldInputType2;
1205
+ })(InputFieldInputType || {});
1206
+ var FormFieldContactInfoEmailInfoTag = /* @__PURE__ */ ((FormFieldContactInfoEmailInfoTag2) => {
1207
+ FormFieldContactInfoEmailInfoTag2["UNTAGGED"] = "UNTAGGED";
1208
+ FormFieldContactInfoEmailInfoTag2["MAIN"] = "MAIN";
1209
+ return FormFieldContactInfoEmailInfoTag2;
1210
+ })(FormFieldContactInfoEmailInfoTag || {});
1211
+ var FormFieldContactInfoPhoneInfoTag = /* @__PURE__ */ ((FormFieldContactInfoPhoneInfoTag2) => {
1212
+ FormFieldContactInfoPhoneInfoTag2["UNTAGGED"] = "UNTAGGED";
1213
+ FormFieldContactInfoPhoneInfoTag2["MAIN"] = "MAIN";
1214
+ return FormFieldContactInfoPhoneInfoTag2;
1215
+ })(FormFieldContactInfoPhoneInfoTag || {});
1216
+ var AddressInfoTag = /* @__PURE__ */ ((AddressInfoTag2) => {
1217
+ AddressInfoTag2["UNTAGGED"] = "UNTAGGED";
1218
+ AddressInfoTag2["HOME"] = "HOME";
1219
+ return AddressInfoTag2;
1220
+ })(AddressInfoTag || {});
1221
+ var SubscriptionInfoOptInLevel = /* @__PURE__ */ ((SubscriptionInfoOptInLevel2) => {
1222
+ SubscriptionInfoOptInLevel2["UNKNOWN"] = "UNKNOWN";
1223
+ SubscriptionInfoOptInLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
1224
+ SubscriptionInfoOptInLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
1225
+ return SubscriptionInfoOptInLevel2;
1226
+ })(SubscriptionInfoOptInLevel || {});
1227
+ var FormFieldContactInfoContactField = /* @__PURE__ */ ((FormFieldContactInfoContactField2) => {
1228
+ FormFieldContactInfoContactField2["UNDEFINED"] = "UNDEFINED";
1229
+ FormFieldContactInfoContactField2["FIRST_NAME"] = "FIRST_NAME";
1230
+ FormFieldContactInfoContactField2["LAST_NAME"] = "LAST_NAME";
1231
+ FormFieldContactInfoContactField2["COMPANY"] = "COMPANY";
1232
+ FormFieldContactInfoContactField2["POSITION"] = "POSITION";
1233
+ FormFieldContactInfoContactField2["EMAIL"] = "EMAIL";
1234
+ FormFieldContactInfoContactField2["PHONE"] = "PHONE";
1235
+ FormFieldContactInfoContactField2["ADDRESS"] = "ADDRESS";
1236
+ FormFieldContactInfoContactField2["BIRTHDATE"] = "BIRTHDATE";
1237
+ FormFieldContactInfoContactField2["CUSTOM_FIELD"] = "CUSTOM_FIELD";
1238
+ FormFieldContactInfoContactField2["SUBSCRIPTION"] = "SUBSCRIPTION";
1239
+ FormFieldContactInfoContactField2["VAT_ID"] = "VAT_ID";
1240
+ return FormFieldContactInfoContactField2;
1241
+ })(FormFieldContactInfoContactField || {});
1242
+ var FormFieldV2FieldType = /* @__PURE__ */ ((FormFieldV2FieldType2) => {
1243
+ FormFieldV2FieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1244
+ FormFieldV2FieldType2["INPUT"] = "INPUT";
1245
+ FormFieldV2FieldType2["DISPLAY"] = "DISPLAY";
1246
+ return FormFieldV2FieldType2;
1247
+ })(FormFieldV2FieldType || {});
1248
+ var DisplayFieldType = /* @__PURE__ */ ((DisplayFieldType2) => {
1249
+ DisplayFieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1250
+ DisplayFieldType2["RICH_CONTENT"] = "RICH_CONTENT";
1251
+ DisplayFieldType2["PAGE_NAVIGATION"] = "PAGE_NAVIGATION";
1252
+ return DisplayFieldType2;
1253
+ })(DisplayFieldType || {});
1254
+ var FieldType = /* @__PURE__ */ ((FieldType2) => {
1255
+ FieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1256
+ FieldType2["INPUT"] = "INPUT";
1257
+ FieldType2["DISPLAY"] = "DISPLAY";
1258
+ return FieldType2;
1259
+ })(FieldType || {});
1260
+ var FormatEnumFormat = /* @__PURE__ */ ((FormatEnumFormat2) => {
1261
+ FormatEnumFormat2["UNKNOWN_FORMAT"] = "UNKNOWN_FORMAT";
1262
+ FormatEnumFormat2["DATE"] = "DATE";
1263
+ FormatEnumFormat2["TIME"] = "TIME";
1264
+ FormatEnumFormat2["DATE_TIME"] = "DATE_TIME";
1265
+ FormatEnumFormat2["EMAIL"] = "EMAIL";
1266
+ FormatEnumFormat2["URL"] = "URL";
1267
+ FormatEnumFormat2["UUID"] = "UUID";
1268
+ FormatEnumFormat2["PHONE"] = "PHONE";
1269
+ FormatEnumFormat2["URI"] = "URI";
1270
+ FormatEnumFormat2["HOSTNAME"] = "HOSTNAME";
1271
+ FormatEnumFormat2["COLOR_HEX"] = "COLOR_HEX";
1272
+ FormatEnumFormat2["CURRENCY"] = "CURRENCY";
1273
+ FormatEnumFormat2["LANGUAGE"] = "LANGUAGE";
1274
+ FormatEnumFormat2["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
1275
+ return FormatEnumFormat2;
1276
+ })(FormatEnumFormat || {});
1277
+ var StringComponentType = /* @__PURE__ */ ((StringComponentType2) => {
1278
+ StringComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1279
+ StringComponentType2["TEXT_INPUT"] = "TEXT_INPUT";
1280
+ StringComponentType2["RADIO_GROUP"] = "RADIO_GROUP";
1281
+ StringComponentType2["DROPDOWN"] = "DROPDOWN";
1282
+ StringComponentType2["DATE_TIME"] = "DATE_TIME";
1283
+ StringComponentType2["PHONE_INPUT"] = "PHONE_INPUT";
1284
+ StringComponentType2["DATE_INPUT"] = "DATE_INPUT";
1285
+ StringComponentType2["TIME_INPUT"] = "TIME_INPUT";
1286
+ StringComponentType2["DATE_PICKER"] = "DATE_PICKER";
1287
+ StringComponentType2["SERVICES_DROPDOWN"] = "SERVICES_DROPDOWN";
1288
+ return StringComponentType2;
1289
+ })(StringComponentType || {});
1290
+ var NumberComponentType = /* @__PURE__ */ ((NumberComponentType2) => {
1291
+ NumberComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1292
+ NumberComponentType2["NUMBER_INPUT"] = "NUMBER_INPUT";
1293
+ NumberComponentType2["RATING_INPUT"] = "RATING_INPUT";
1294
+ return NumberComponentType2;
1295
+ })(NumberComponentType || {});
1296
+ var BooleanComponentType = /* @__PURE__ */ ((BooleanComponentType2) => {
1297
+ BooleanComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1298
+ BooleanComponentType2["CHECKBOX"] = "CHECKBOX";
1299
+ return BooleanComponentType2;
1300
+ })(BooleanComponentType || {});
1301
+ var ItemType = /* @__PURE__ */ ((ItemType2) => {
1302
+ ItemType2["UNKNOWN_ITEM_TYPE"] = "UNKNOWN_ITEM_TYPE";
1303
+ ItemType2["STRING"] = "STRING";
1304
+ ItemType2["NUMBER"] = "NUMBER";
1305
+ ItemType2["BOOLEAN"] = "BOOLEAN";
1306
+ ItemType2["OBJECT"] = "OBJECT";
1307
+ return ItemType2;
1308
+ })(ItemType || {});
1309
+ var PropertiesTypeEnum = /* @__PURE__ */ ((PropertiesTypeEnum2) => {
1310
+ PropertiesTypeEnum2["UNKNOWN_PROPERTY_TYPE"] = "UNKNOWN_PROPERTY_TYPE";
1311
+ PropertiesTypeEnum2["STRING"] = "STRING";
1312
+ PropertiesTypeEnum2["NUMBER"] = "NUMBER";
1313
+ PropertiesTypeEnum2["BOOLEAN"] = "BOOLEAN";
1314
+ PropertiesTypeEnum2["ARRAY"] = "ARRAY";
1315
+ return PropertiesTypeEnum2;
1316
+ })(PropertiesTypeEnum || {});
1317
+ var ArrayComponentType = /* @__PURE__ */ ((ArrayComponentType2) => {
1318
+ ArrayComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1319
+ ArrayComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1320
+ ArrayComponentType2["TAGS"] = "TAGS";
1321
+ return ArrayComponentType2;
1322
+ })(ArrayComponentType || {});
1323
+ var WixFileComponentType = /* @__PURE__ */ ((WixFileComponentType2) => {
1324
+ WixFileComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1325
+ WixFileComponentType2["FILE_UPLOAD"] = "FILE_UPLOAD";
1326
+ WixFileComponentType2["SIGNATURE"] = "SIGNATURE";
1327
+ return WixFileComponentType2;
1328
+ })(WixFileComponentType || {});
1329
+ var PaymentComponentType = /* @__PURE__ */ ((PaymentComponentType2) => {
1330
+ PaymentComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1331
+ PaymentComponentType2["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
1332
+ PaymentComponentType2["DONATION_INPUT"] = "DONATION_INPUT";
1333
+ PaymentComponentType2["PAYMENT_INPUT"] = "PAYMENT_INPUT";
1334
+ PaymentComponentType2["FIXED_PAYMENT"] = "FIXED_PAYMENT";
1335
+ return PaymentComponentType2;
1336
+ })(PaymentComponentType || {});
1337
+ var ComponentType = /* @__PURE__ */ ((ComponentType2) => {
1338
+ ComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1339
+ ComponentType2["MULTILINE_ADDRESS"] = "MULTILINE_ADDRESS";
1340
+ return ComponentType2;
1341
+ })(ComponentType || {});
1342
+ var SchedulingComponentType = /* @__PURE__ */ ((SchedulingComponentType2) => {
1343
+ SchedulingComponentType2["UNKNOWN_COMPONENT_TYPE"] = "UNKNOWN_COMPONENT_TYPE";
1344
+ SchedulingComponentType2["APPOINTMENT"] = "APPOINTMENT";
1345
+ return SchedulingComponentType2;
1346
+ })(SchedulingComponentType || {});
1347
+ var InputType = /* @__PURE__ */ ((InputType2) => {
1348
+ InputType2["UNKNOWN_INPUT_TYPE"] = "UNKNOWN_INPUT_TYPE";
1349
+ InputType2["STRING"] = "STRING";
1350
+ InputType2["NUMBER"] = "NUMBER";
1351
+ InputType2["BOOLEAN"] = "BOOLEAN";
1352
+ InputType2["ARRAY"] = "ARRAY";
1353
+ InputType2["OBJECT"] = "OBJECT";
1354
+ InputType2["WIX_FILE"] = "WIX_FILE";
1355
+ InputType2["PAYMENT"] = "PAYMENT";
1356
+ InputType2["SCHEDULING"] = "SCHEDULING";
1357
+ InputType2["ADDRESS"] = "ADDRESS";
1358
+ return InputType2;
1359
+ })(InputType || {});
1360
+ var EmailInfoTag = /* @__PURE__ */ ((EmailInfoTag2) => {
1361
+ EmailInfoTag2["UNTAGGED"] = "UNTAGGED";
1362
+ EmailInfoTag2["MAIN"] = "MAIN";
1363
+ return EmailInfoTag2;
1364
+ })(EmailInfoTag || {});
1365
+ var PhoneInfoTag = /* @__PURE__ */ ((PhoneInfoTag2) => {
1366
+ PhoneInfoTag2["UNTAGGED"] = "UNTAGGED";
1367
+ PhoneInfoTag2["MAIN"] = "MAIN";
1368
+ return PhoneInfoTag2;
1369
+ })(PhoneInfoTag || {});
1370
+ var Tag = /* @__PURE__ */ ((Tag2) => {
1371
+ Tag2["UNTAGGED"] = "UNTAGGED";
1372
+ Tag2["HOME"] = "HOME";
1373
+ return Tag2;
1374
+ })(Tag || {});
1375
+ var ConfirmationLevel = /* @__PURE__ */ ((ConfirmationLevel2) => {
1376
+ ConfirmationLevel2["UNKNOWN_CONFIRMATION_LEVEL"] = "UNKNOWN_CONFIRMATION_LEVEL";
1377
+ ConfirmationLevel2["SINGLE_CONFIRMATION"] = "SINGLE_CONFIRMATION";
1378
+ ConfirmationLevel2["DOUBLE_CONFIRMATION"] = "DOUBLE_CONFIRMATION";
1379
+ return ConfirmationLevel2;
1380
+ })(ConfirmationLevel || {});
1381
+ var ContactField = /* @__PURE__ */ ((ContactField2) => {
1382
+ ContactField2["UNKNOWN_CONTACT_FIELD"] = "UNKNOWN_CONTACT_FIELD";
1383
+ ContactField2["FIRST_NAME"] = "FIRST_NAME";
1384
+ ContactField2["LAST_NAME"] = "LAST_NAME";
1385
+ ContactField2["COMPANY"] = "COMPANY";
1386
+ ContactField2["POSITION"] = "POSITION";
1387
+ ContactField2["EMAIL"] = "EMAIL";
1388
+ ContactField2["PHONE"] = "PHONE";
1389
+ ContactField2["ADDRESS"] = "ADDRESS";
1390
+ ContactField2["BIRTHDATE"] = "BIRTHDATE";
1391
+ ContactField2["CUSTOM_FIELD"] = "CUSTOM_FIELD";
1392
+ ContactField2["SUBSCRIPTION"] = "SUBSCRIPTION";
1393
+ ContactField2["VAT_ID"] = "VAT_ID";
1394
+ return ContactField2;
1395
+ })(ContactField || {});
1396
+ var DisplayFieldDisplayFieldType = /* @__PURE__ */ ((DisplayFieldDisplayFieldType2) => {
1397
+ DisplayFieldDisplayFieldType2["UNKNOWN_FIELD_TYPE"] = "UNKNOWN_FIELD_TYPE";
1398
+ DisplayFieldDisplayFieldType2["RICH_CONTENT"] = "RICH_CONTENT";
1399
+ DisplayFieldDisplayFieldType2["PAGE_NAVIGATION"] = "PAGE_NAVIGATION";
1400
+ DisplayFieldDisplayFieldType2["LOGIN_BAR"] = "LOGIN_BAR";
1401
+ return DisplayFieldDisplayFieldType2;
1402
+ })(DisplayFieldDisplayFieldType || {});
1403
+ var OverrideEntityType = /* @__PURE__ */ ((OverrideEntityType2) => {
1404
+ OverrideEntityType2["UNKNOWN"] = "UNKNOWN";
1405
+ OverrideEntityType2["FIELD"] = "FIELD";
1406
+ return OverrideEntityType2;
1407
+ })(OverrideEntityType || {});
1408
+ var Kind = /* @__PURE__ */ ((Kind2) => {
1409
+ Kind2["REGULAR"] = "REGULAR";
1410
+ Kind2["EXTENSION"] = "EXTENSION";
1411
+ return Kind2;
1412
+ })(Kind || {});
1413
+ var SpamFilterProtectionLevel = /* @__PURE__ */ ((SpamFilterProtectionLevel2) => {
1414
+ SpamFilterProtectionLevel2["UNKNOWN"] = "UNKNOWN";
1415
+ SpamFilterProtectionLevel2["NONE"] = "NONE";
1416
+ SpamFilterProtectionLevel2["BASIC"] = "BASIC";
1417
+ SpamFilterProtectionLevel2["ADVANCED"] = "ADVANCED";
1418
+ return SpamFilterProtectionLevel2;
1419
+ })(SpamFilterProtectionLevel || {});
1420
+ var RequiredIndicator = /* @__PURE__ */ ((RequiredIndicator2) => {
1421
+ RequiredIndicator2["UNKNOWN_INDICATOR"] = "UNKNOWN_INDICATOR";
1422
+ RequiredIndicator2["ASTERISK"] = "ASTERISK";
1423
+ RequiredIndicator2["TEXT"] = "TEXT";
1424
+ RequiredIndicator2["NONE"] = "NONE";
1425
+ return RequiredIndicator2;
1426
+ })(RequiredIndicator || {});
1427
+ var RequiredIndicatorPlacement = /* @__PURE__ */ ((RequiredIndicatorPlacement2) => {
1428
+ RequiredIndicatorPlacement2["UNKNOWN_PLACEMENT"] = "UNKNOWN_PLACEMENT";
1429
+ RequiredIndicatorPlacement2["AFTER_FIELD_TITLE"] = "AFTER_FIELD_TITLE";
1430
+ RequiredIndicatorPlacement2["BEFORE_FIELD_TITLE"] = "BEFORE_FIELD_TITLE";
1431
+ return RequiredIndicatorPlacement2;
1432
+ })(RequiredIndicatorPlacement || {});
1433
+ var Target = /* @__PURE__ */ ((Target2) => {
1434
+ Target2["UNKNOWN_TARGET"] = "UNKNOWN_TARGET";
1435
+ Target2["SELF"] = "SELF";
1436
+ Target2["BLANK"] = "BLANK";
1437
+ return Target2;
1438
+ })(Target || {});
1439
+ var SubmitSuccessAction = /* @__PURE__ */ ((SubmitSuccessAction2) => {
1440
+ SubmitSuccessAction2["UNKNOWN_SUBMIT_SUCCESS_ACTION"] = "UNKNOWN_SUBMIT_SUCCESS_ACTION";
1441
+ SubmitSuccessAction2["NO_ACTION"] = "NO_ACTION";
1442
+ SubmitSuccessAction2["THANK_YOU_MESSAGE"] = "THANK_YOU_MESSAGE";
1443
+ SubmitSuccessAction2["REDIRECT"] = "REDIRECT";
1444
+ return SubmitSuccessAction2;
1445
+ })(SubmitSuccessAction || {});
1446
+ var ChangeableProperty = /* @__PURE__ */ ((ChangeableProperty2) => {
1447
+ ChangeableProperty2["UNKNOWN_CHANGEABLE_PROPERTY"] = "UNKNOWN_CHANGEABLE_PROPERTY";
1448
+ ChangeableProperty2["REQUIRED"] = "REQUIRED";
1449
+ ChangeableProperty2["HIDDEN"] = "HIDDEN";
1450
+ ChangeableProperty2["ALLOWED_VALUES"] = "ALLOWED_VALUES";
1451
+ return ChangeableProperty2;
1452
+ })(ChangeableProperty || {});
1453
+ var OverrideEntityTypeEnumOverrideEntityType = /* @__PURE__ */ ((OverrideEntityTypeEnumOverrideEntityType2) => {
1454
+ OverrideEntityTypeEnumOverrideEntityType2["UNKNOWN_OVERRIDE_ENTITY_TYPE"] = "UNKNOWN_OVERRIDE_ENTITY_TYPE";
1455
+ OverrideEntityTypeEnumOverrideEntityType2["FIELD"] = "FIELD";
1456
+ return OverrideEntityTypeEnumOverrideEntityType2;
1457
+ })(OverrideEntityTypeEnumOverrideEntityType || {});
1458
+ var Operator = /* @__PURE__ */ ((Operator2) => {
1459
+ Operator2["UNKNOWN_OPERATOR"] = "UNKNOWN_OPERATOR";
1460
+ Operator2["EQUAL"] = "EQUAL";
1461
+ Operator2["NOT_EQUAL"] = "NOT_EQUAL";
1462
+ Operator2["EMPTY"] = "EMPTY";
1463
+ Operator2["NOT_EMPTY"] = "NOT_EMPTY";
1464
+ Operator2["CONTAINS"] = "CONTAINS";
1465
+ Operator2["NOT_CONTAINS"] = "NOT_CONTAINS";
1466
+ Operator2["LESS_THAN"] = "LESS_THAN";
1467
+ Operator2["LESS_THAN_OR_EQUALS"] = "LESS_THAN_OR_EQUALS";
1468
+ Operator2["GREATER_THAN"] = "GREATER_THAN";
1469
+ Operator2["GREATER_THAN_OR_EQUALS"] = "GREATER_THAN_OR_EQUALS";
1470
+ Operator2["BEFORE"] = "BEFORE";
1471
+ Operator2["BEFORE_OR_EQUAL"] = "BEFORE_OR_EQUAL";
1472
+ Operator2["AFTER"] = "AFTER";
1473
+ Operator2["AFTER_OR_EQUAL"] = "AFTER_OR_EQUAL";
1474
+ Operator2["BETWEEN"] = "BETWEEN";
1475
+ Operator2["ANY"] = "ANY";
1476
+ Operator2["ARRAY_EQUAL"] = "ARRAY_EQUAL";
1477
+ Operator2["ARRAY_NOT_EQUAL"] = "ARRAY_NOT_EQUAL";
1478
+ Operator2["CHECKED"] = "CHECKED";
1479
+ Operator2["NOT_CHECKED"] = "NOT_CHECKED";
1480
+ Operator2["IN"] = "IN";
1481
+ Operator2["NOT_IN"] = "NOT_IN";
1482
+ Operator2["IS_DATE_OLDER_THAN"] = "IS_DATE_OLDER_THAN";
1483
+ Operator2["IS_DATE_OLDER_THAN_OR_EQUAL"] = "IS_DATE_OLDER_THAN_OR_EQUAL";
1484
+ Operator2["IS_DATE_NEWER_THAN"] = "IS_DATE_NEWER_THAN";
1485
+ Operator2["IS_DATE_NEWER_THAN_OR_EQUAL"] = "IS_DATE_NEWER_THAN_OR_EQUAL";
1486
+ return Operator2;
1487
+ })(Operator || {});
1488
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1489
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
1490
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
1491
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
1492
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1493
+ WebhookIdentityType2["APP"] = "APP";
1494
+ return WebhookIdentityType2;
1495
+ })(WebhookIdentityType || {});
1496
+ var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
1497
+ IdentityType2["UNKNOWN"] = "UNKNOWN";
1498
+ IdentityType2["CONTACT"] = "CONTACT";
1499
+ IdentityType2["MEMBER"] = "MEMBER";
1500
+ IdentityType2["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
1501
+ return IdentityType2;
1502
+ })(IdentityType || {});
1503
+ var ErrorType = /* @__PURE__ */ ((ErrorType2) => {
1504
+ ErrorType2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
1505
+ ErrorType2["TYPE_ERROR"] = "TYPE_ERROR";
1506
+ ErrorType2["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
1507
+ ErrorType2["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
1508
+ ErrorType2["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
1509
+ ErrorType2["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
1510
+ ErrorType2["PATTERN_ERROR"] = "PATTERN_ERROR";
1511
+ ErrorType2["FORMAT_ERROR"] = "FORMAT_ERROR";
1512
+ ErrorType2["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
1513
+ ErrorType2["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
1514
+ ErrorType2["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
1515
+ ErrorType2["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
1516
+ ErrorType2["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
1517
+ ErrorType2["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
1518
+ ErrorType2["FIELDS_COMPATIBILITY_ERROR"] = "FIELDS_COMPATIBILITY_ERROR";
1519
+ ErrorType2["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
1520
+ ErrorType2["FORMS_COUNT_RESTRICTIONS_ERROR"] = "FORMS_COUNT_RESTRICTIONS_ERROR";
1521
+ ErrorType2["FIELDS_COUNT_RESTRICTIONS_ERROR"] = "FIELDS_COUNT_RESTRICTIONS_ERROR";
1522
+ ErrorType2["STEPS_COUNT_RESTRICTIONS_ERROR"] = "STEPS_COUNT_RESTRICTIONS_ERROR";
1523
+ ErrorType2["RULES_COUNT_RESTRICTIONS_ERROR"] = "RULES_COUNT_RESTRICTIONS_ERROR";
1524
+ ErrorType2["FILE_UPLOAD_RESTRICTIONS_ERROR"] = "FILE_UPLOAD_RESTRICTIONS_ERROR";
1525
+ ErrorType2["INVALID_PHONE_COUNTRY_CODE_ERROR"] = "INVALID_PHONE_COUNTRY_CODE_ERROR";
1526
+ ErrorType2["INVALID_STAFF_ID_ERROR"] = "INVALID_STAFF_ID_ERROR";
1527
+ ErrorType2["INVALID_LOCATION_ID_ERROR"] = "INVALID_LOCATION_ID_ERROR";
1528
+ return ErrorType2;
1529
+ })(ErrorType || {});
1530
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1531
+ SortOrder2["ASC"] = "ASC";
1532
+ SortOrder2["DESC"] = "DESC";
1533
+ return SortOrder2;
1534
+ })(SortOrder || {});
1535
+ var Mode = /* @__PURE__ */ ((Mode2) => {
1536
+ Mode2["OR"] = "OR";
1537
+ Mode2["AND"] = "AND";
1538
+ return Mode2;
1539
+ })(Mode || {});
1540
+ var Status = /* @__PURE__ */ ((Status2) => {
1541
+ Status2["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
1542
+ Status2["READY"] = "READY";
1543
+ Status2["PENDING"] = "PENDING";
1544
+ Status2["FAILED"] = "FAILED";
1545
+ return Status2;
1546
+ })(Status || {});
1547
+ var SubmissionErrorType = /* @__PURE__ */ ((SubmissionErrorType2) => {
1548
+ SubmissionErrorType2["UNKNOWN_ERROR"] = "UNKNOWN_ERROR";
1549
+ SubmissionErrorType2["TYPE_ERROR"] = "TYPE_ERROR";
1550
+ SubmissionErrorType2["REQUIRED_VALUE_ERROR"] = "REQUIRED_VALUE_ERROR";
1551
+ SubmissionErrorType2["UNKNOWN_VALUE_ERROR"] = "UNKNOWN_VALUE_ERROR";
1552
+ SubmissionErrorType2["MAX_LENGTH_ERROR"] = "MAX_LENGTH_ERROR";
1553
+ SubmissionErrorType2["MIN_LENGTH_ERROR"] = "MIN_LENGTH_ERROR";
1554
+ SubmissionErrorType2["PATTERN_ERROR"] = "PATTERN_ERROR";
1555
+ SubmissionErrorType2["FORMAT_ERROR"] = "FORMAT_ERROR";
1556
+ SubmissionErrorType2["MAX_VALUE_ERROR"] = "MAX_VALUE_ERROR";
1557
+ SubmissionErrorType2["MIN_VALUE_ERROR"] = "MIN_VALUE_ERROR";
1558
+ SubmissionErrorType2["MULTIPLE_OF_VALUE_ERROR"] = "MULTIPLE_OF_VALUE_ERROR";
1559
+ SubmissionErrorType2["MIN_ITEMS_ERROR"] = "MIN_ITEMS_ERROR";
1560
+ SubmissionErrorType2["MAX_ITEMS_ERROR"] = "MAX_ITEMS_ERROR";
1561
+ SubmissionErrorType2["NOT_ALLOWED_VALUE_ERROR"] = "NOT_ALLOWED_VALUE_ERROR";
1562
+ SubmissionErrorType2["DISABLED_FORM_ERROR"] = "DISABLED_FORM_ERROR";
1563
+ return SubmissionErrorType2;
1564
+ })(SubmissionErrorType || {});
1565
+ async function upsertContactFromSubmission2(submissionId, options) {
1566
+ const { httpClient, sideEffects } = arguments[2];
1567
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1568
+ submissionId,
1569
+ contactId: options?.contactId,
1570
+ emailVerified: options?.emailVerified
1571
+ });
1572
+ const reqOpts = upsertContactFromSubmission(payload);
1573
+ sideEffects?.onSiteCall?.();
1574
+ try {
1575
+ const result = await httpClient.request(reqOpts);
1576
+ sideEffects?.onSuccess?.(result);
1577
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1578
+ } catch (err) {
1579
+ const transformedError = sdkTransformError(
1580
+ err,
1581
+ {
1582
+ spreadPathsToArguments: {},
1583
+ explicitPathsToArguments: {
1584
+ submissionId: "$[0]",
1585
+ contactId: "$[1].contactId",
1586
+ emailVerified: "$[1].emailVerified"
1587
+ },
1588
+ singleArgumentUnchanged: false
1589
+ },
1590
+ ["submissionId", "options"]
1591
+ );
1592
+ sideEffects?.onError?.(err);
1593
+ throw transformedError;
1594
+ }
1595
+ }
1596
+ async function createSubmission2(submission, options) {
1597
+ const { httpClient, sideEffects } = arguments[2];
1598
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1599
+ submission,
1600
+ captchaToken: options?.captchaToken
1601
+ });
1602
+ const reqOpts = createSubmission(payload);
1603
+ sideEffects?.onSiteCall?.();
1604
+ try {
1605
+ const result = await httpClient.request(reqOpts);
1606
+ sideEffects?.onSuccess?.(result);
1607
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
1608
+ } catch (err) {
1609
+ const transformedError = sdkTransformError(
1610
+ err,
1611
+ {
1612
+ spreadPathsToArguments: {},
1613
+ explicitPathsToArguments: {
1614
+ submission: "$[0]",
1615
+ captchaToken: "$[1].captchaToken"
1616
+ },
1617
+ singleArgumentUnchanged: false
1618
+ },
1619
+ ["submission", "options"]
1620
+ );
1621
+ sideEffects?.onError?.(err);
1622
+ throw transformedError;
1623
+ }
1624
+ }
1625
+ async function getSubmission2(submissionId) {
1626
+ const { httpClient, sideEffects } = arguments[1];
1627
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1628
+ submissionId
1629
+ });
1630
+ const reqOpts = getSubmission(payload);
1631
+ sideEffects?.onSiteCall?.();
1632
+ try {
1633
+ const result = await httpClient.request(reqOpts);
1634
+ sideEffects?.onSuccess?.(result);
1635
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
1636
+ } catch (err) {
1637
+ const transformedError = sdkTransformError(
1638
+ err,
1639
+ {
1640
+ spreadPathsToArguments: {},
1641
+ explicitPathsToArguments: { submissionId: "$[0]" },
1642
+ singleArgumentUnchanged: false
1643
+ },
1644
+ ["submissionId"]
1645
+ );
1646
+ sideEffects?.onError?.(err);
1647
+ throw transformedError;
1648
+ }
1649
+ }
1650
+ async function updateSubmission2(_id, submission) {
1651
+ const { httpClient, sideEffects } = arguments[2];
1652
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1653
+ submission: { ...submission, id: _id }
1654
+ });
1655
+ const reqOpts = updateSubmission(payload);
1656
+ sideEffects?.onSiteCall?.();
1657
+ try {
1658
+ const result = await httpClient.request(reqOpts);
1659
+ sideEffects?.onSuccess?.(result);
1660
+ return renameKeysFromRESTResponseToSDKResponse(result.data)?.submission;
1661
+ } catch (err) {
1662
+ const transformedError = sdkTransformError(
1663
+ err,
1664
+ {
1665
+ spreadPathsToArguments: { submission: "$[1]" },
1666
+ explicitPathsToArguments: { "submission.id": "$[0]" },
1667
+ singleArgumentUnchanged: false
1668
+ },
1669
+ ["_id", "submission"]
1670
+ );
1671
+ sideEffects?.onError?.(err);
1672
+ throw transformedError;
1673
+ }
1674
+ }
1675
+ async function confirmSubmission2(submissionId) {
1676
+ const { httpClient, sideEffects } = arguments[1];
1677
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1678
+ submissionId
1679
+ });
1680
+ const reqOpts = confirmSubmission(payload);
1681
+ sideEffects?.onSiteCall?.();
1682
+ try {
1683
+ const result = await httpClient.request(reqOpts);
1684
+ sideEffects?.onSuccess?.(result);
1685
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1686
+ } catch (err) {
1687
+ const transformedError = sdkTransformError(
1688
+ err,
1689
+ {
1690
+ spreadPathsToArguments: {},
1691
+ explicitPathsToArguments: { submissionId: "$[0]" },
1692
+ singleArgumentUnchanged: false
1693
+ },
1694
+ ["submissionId"]
1695
+ );
1696
+ sideEffects?.onError?.(err);
1697
+ throw transformedError;
1698
+ }
1699
+ }
1700
+ async function deleteSubmission2(submissionId, options) {
1701
+ const { httpClient, sideEffects } = arguments[2];
1702
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1703
+ submissionId,
1704
+ permanent: options?.permanent,
1705
+ preserveFiles: options?.preserveFiles
1706
+ });
1707
+ const reqOpts = deleteSubmission(payload);
1708
+ sideEffects?.onSiteCall?.();
1709
+ try {
1710
+ const result = await httpClient.request(reqOpts);
1711
+ sideEffects?.onSuccess?.(result);
1712
+ } catch (err) {
1713
+ const transformedError = sdkTransformError(
1714
+ err,
1715
+ {
1716
+ spreadPathsToArguments: {},
1717
+ explicitPathsToArguments: {
1718
+ submissionId: "$[0]",
1719
+ permanent: "$[1].permanent",
1720
+ preserveFiles: "$[1].preserveFiles"
1721
+ },
1722
+ singleArgumentUnchanged: false
1723
+ },
1724
+ ["submissionId", "options"]
1725
+ );
1726
+ sideEffects?.onError?.(err);
1727
+ throw transformedError;
1728
+ }
1729
+ }
1730
+ async function bulkDeleteSubmission2(formId, options) {
1731
+ const { httpClient, sideEffects } = arguments[2];
1732
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1733
+ formId,
1734
+ submissionIds: options?.submissionIds,
1735
+ permanent: options?.permanent,
1736
+ preserveFiles: options?.preserveFiles
1737
+ });
1738
+ const reqOpts = bulkDeleteSubmission(payload);
1739
+ sideEffects?.onSiteCall?.();
1740
+ try {
1741
+ const result = await httpClient.request(reqOpts);
1742
+ sideEffects?.onSuccess?.(result);
1743
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1744
+ } catch (err) {
1745
+ const transformedError = sdkTransformError(
1746
+ err,
1747
+ {
1748
+ spreadPathsToArguments: {},
1749
+ explicitPathsToArguments: {
1750
+ formId: "$[0]",
1751
+ submissionIds: "$[1].submissionIds",
1752
+ permanent: "$[1].permanent",
1753
+ preserveFiles: "$[1].preserveFiles"
1754
+ },
1755
+ singleArgumentUnchanged: false
1756
+ },
1757
+ ["formId", "options"]
1758
+ );
1759
+ sideEffects?.onError?.(err);
1760
+ throw transformedError;
1761
+ }
1762
+ }
1763
+ async function restoreSubmissionFromTrashBin2(submissionId) {
1764
+ const { httpClient, sideEffects } = arguments[1];
1765
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1766
+ submissionId
1767
+ });
1768
+ const reqOpts = restoreSubmissionFromTrashBin(payload);
1769
+ sideEffects?.onSiteCall?.();
1770
+ try {
1771
+ const result = await httpClient.request(reqOpts);
1772
+ sideEffects?.onSuccess?.(result);
1773
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1774
+ } catch (err) {
1775
+ const transformedError = sdkTransformError(
1776
+ err,
1777
+ {
1778
+ spreadPathsToArguments: {},
1779
+ explicitPathsToArguments: { submissionId: "$[0]" },
1780
+ singleArgumentUnchanged: false
1781
+ },
1782
+ ["submissionId"]
1783
+ );
1784
+ sideEffects?.onError?.(err);
1785
+ throw transformedError;
1786
+ }
1787
+ }
1788
+ async function removeSubmissionFromTrashBin2(submissionId) {
1789
+ const { httpClient, sideEffects } = arguments[1];
1790
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1791
+ submissionId
1792
+ });
1793
+ const reqOpts = removeSubmissionFromTrashBin(payload);
1794
+ sideEffects?.onSiteCall?.();
1795
+ try {
1796
+ const result = await httpClient.request(reqOpts);
1797
+ sideEffects?.onSuccess?.(result);
1798
+ } catch (err) {
1799
+ const transformedError = sdkTransformError(
1800
+ err,
1801
+ {
1802
+ spreadPathsToArguments: {},
1803
+ explicitPathsToArguments: { submissionId: "$[0]" },
1804
+ singleArgumentUnchanged: false
1805
+ },
1806
+ ["submissionId"]
1807
+ );
1808
+ sideEffects?.onError?.(err);
1809
+ throw transformedError;
1810
+ }
1811
+ }
1812
+ async function bulkRemoveSubmissionFromTrashBin2(formId, options) {
1813
+ const { httpClient, sideEffects } = arguments[2];
1814
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1815
+ formId,
1816
+ submissionIds: options?.submissionIds
1817
+ });
1818
+ const reqOpts = bulkRemoveSubmissionFromTrashBin(payload);
1819
+ sideEffects?.onSiteCall?.();
1820
+ try {
1821
+ const result = await httpClient.request(reqOpts);
1822
+ sideEffects?.onSuccess?.(result);
1823
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1824
+ } catch (err) {
1825
+ const transformedError = sdkTransformError(
1826
+ err,
1827
+ {
1828
+ spreadPathsToArguments: {},
1829
+ explicitPathsToArguments: {
1830
+ formId: "$[0]",
1831
+ submissionIds: "$[1].submissionIds"
1832
+ },
1833
+ singleArgumentUnchanged: false
1834
+ },
1835
+ ["formId", "options"]
1836
+ );
1837
+ sideEffects?.onError?.(err);
1838
+ throw transformedError;
1839
+ }
1840
+ }
1841
+ async function listDeletedSubmissions2(formId, options) {
1842
+ const { httpClient, sideEffects } = arguments[2];
1843
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1844
+ formId,
1845
+ submissionIds: options?.submissionIds,
1846
+ paging: options?.paging,
1847
+ statuses: options?.statuses
1848
+ });
1849
+ const reqOpts = listDeletedSubmissions(payload);
1850
+ sideEffects?.onSiteCall?.();
1851
+ try {
1852
+ const result = await httpClient.request(reqOpts);
1853
+ sideEffects?.onSuccess?.(result);
1854
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1855
+ } catch (err) {
1856
+ const transformedError = sdkTransformError(
1857
+ err,
1858
+ {
1859
+ spreadPathsToArguments: {},
1860
+ explicitPathsToArguments: {
1861
+ formId: "$[0]",
1862
+ submissionIds: "$[1].submissionIds",
1863
+ paging: "$[1].paging",
1864
+ statuses: "$[1].statuses"
1865
+ },
1866
+ singleArgumentUnchanged: false
1867
+ },
1868
+ ["formId", "options"]
1869
+ );
1870
+ sideEffects?.onError?.(err);
1871
+ throw transformedError;
1872
+ }
1873
+ }
1874
+ async function getDeletedSubmission2(submissionId) {
1875
+ const { httpClient, sideEffects } = arguments[1];
1876
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1877
+ submissionId
1878
+ });
1879
+ const reqOpts = getDeletedSubmission(payload);
1880
+ sideEffects?.onSiteCall?.();
1881
+ try {
1882
+ const result = await httpClient.request(reqOpts);
1883
+ sideEffects?.onSuccess?.(result);
1884
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1885
+ } catch (err) {
1886
+ const transformedError = sdkTransformError(
1887
+ err,
1888
+ {
1889
+ spreadPathsToArguments: {},
1890
+ explicitPathsToArguments: { submissionId: "$[0]" },
1891
+ singleArgumentUnchanged: false
1892
+ },
1893
+ ["submissionId"]
1894
+ );
1895
+ sideEffects?.onError?.(err);
1896
+ throw transformedError;
1897
+ }
1898
+ }
1899
+ async function querySubmission2(query, options) {
1900
+ const { httpClient, sideEffects } = arguments[2];
1901
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1902
+ query,
1903
+ onlyYourOwn: options?.onlyYourOwn
1904
+ });
1905
+ const reqOpts = querySubmission(payload);
1906
+ sideEffects?.onSiteCall?.();
1907
+ try {
1908
+ const result = await httpClient.request(reqOpts);
1909
+ sideEffects?.onSuccess?.(result);
1910
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1911
+ } catch (err) {
1912
+ const transformedError = sdkTransformError(
1913
+ err,
1914
+ {
1915
+ spreadPathsToArguments: {},
1916
+ explicitPathsToArguments: {
1917
+ query: "$[0]",
1918
+ onlyYourOwn: "$[1].onlyYourOwn"
1919
+ },
1920
+ singleArgumentUnchanged: false
1921
+ },
1922
+ ["query", "options"]
1923
+ );
1924
+ sideEffects?.onError?.(err);
1925
+ throw transformedError;
1926
+ }
1927
+ }
1928
+ async function searchSubmissionsByNamespace2(search) {
1929
+ const { httpClient, sideEffects } = arguments[1];
1930
+ const payload = renameKeysFromSDKRequestToRESTRequest({ search });
1931
+ const reqOpts = searchSubmissionsByNamespace(payload);
1932
+ sideEffects?.onSiteCall?.();
1933
+ try {
1934
+ const result = await httpClient.request(reqOpts);
1935
+ sideEffects?.onSuccess?.(result);
1936
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1937
+ } catch (err) {
1938
+ const transformedError = sdkTransformError(
1939
+ err,
1940
+ {
1941
+ spreadPathsToArguments: {},
1942
+ explicitPathsToArguments: { search: "$[0]" },
1943
+ singleArgumentUnchanged: false
1944
+ },
1945
+ ["search"]
1946
+ );
1947
+ sideEffects?.onError?.(err);
1948
+ throw transformedError;
1949
+ }
1950
+ }
1951
+ function querySubmissionsByNamespace2(options) {
1952
+ const { httpClient, sideEffects } = arguments[1];
1953
+ return queryBuilder({
1954
+ func: async (payload) => {
1955
+ const reqOpts = querySubmissionsByNamespace({
1956
+ ...payload,
1957
+ ...options ?? {}
1958
+ });
1959
+ sideEffects?.onSiteCall?.();
1960
+ try {
1961
+ const result = await httpClient.request(reqOpts);
1962
+ sideEffects?.onSuccess?.(result);
1963
+ return result;
1964
+ } catch (err) {
1965
+ sideEffects?.onError?.(err);
1966
+ throw err;
1967
+ }
1968
+ },
1969
+ requestTransformer: (query) => {
1970
+ const args = [query, options];
1971
+ return renameKeysFromSDKRequestToRESTRequest({
1972
+ ...args?.[1],
1973
+ query: args?.[0]
1974
+ });
1975
+ },
1976
+ responseTransformer: ({
1977
+ data
1978
+ }) => {
1979
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(
1980
+ transformPaths2(data, [])
1981
+ );
1982
+ return {
1983
+ items: transformedData?.submissions,
1984
+ pagingMetadata: transformedData?.metadata
1985
+ };
1986
+ },
1987
+ errorTransformer: (err) => {
1988
+ const transformedError = sdkTransformError(err, {
1989
+ spreadPathsToArguments: {},
1990
+ explicitPathsToArguments: { query: "$[0]" },
1991
+ singleArgumentUnchanged: false
1992
+ });
1993
+ throw transformedError;
1994
+ },
1995
+ pagingMethod: "CURSOR",
1996
+ transformationPaths: {}
1997
+ });
1998
+ }
1999
+ async function countSubmissionsByFilter2(filter, options) {
2000
+ const { httpClient, sideEffects } = arguments[2];
2001
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2002
+ filter,
2003
+ search: options?.search
2004
+ });
2005
+ const reqOpts = countSubmissionsByFilter(payload);
2006
+ sideEffects?.onSiteCall?.();
2007
+ try {
2008
+ const result = await httpClient.request(reqOpts);
2009
+ sideEffects?.onSuccess?.(result);
2010
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2011
+ } catch (err) {
2012
+ const transformedError = sdkTransformError(
2013
+ err,
2014
+ {
2015
+ spreadPathsToArguments: {},
2016
+ explicitPathsToArguments: { filter: "$[0]", search: "$[1].search" },
2017
+ singleArgumentUnchanged: false
2018
+ },
2019
+ ["filter", "options"]
2020
+ );
2021
+ sideEffects?.onError?.(err);
2022
+ throw transformedError;
2023
+ }
2024
+ }
2025
+ async function countSubmissions2(formIds, namespace, options) {
2026
+ const { httpClient, sideEffects } = arguments[3];
2027
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2028
+ formIds,
2029
+ namespace,
2030
+ statuses: options?.statuses
2031
+ });
2032
+ const reqOpts = countSubmissions(payload);
2033
+ sideEffects?.onSiteCall?.();
2034
+ try {
2035
+ const result = await httpClient.request(reqOpts);
2036
+ sideEffects?.onSuccess?.(result);
2037
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2038
+ } catch (err) {
2039
+ const transformedError = sdkTransformError(
2040
+ err,
2041
+ {
2042
+ spreadPathsToArguments: {},
2043
+ explicitPathsToArguments: {
2044
+ formIds: "$[0]",
2045
+ namespace: "$[1]",
2046
+ statuses: "$[2].statuses"
2047
+ },
2048
+ singleArgumentUnchanged: false
2049
+ },
2050
+ ["formIds", "namespace", "options"]
2051
+ );
2052
+ sideEffects?.onError?.(err);
2053
+ throw transformedError;
2054
+ }
2055
+ }
2056
+ async function countDeletedSubmissions2(formIds, namespace, options) {
2057
+ const { httpClient, sideEffects } = arguments[3];
2058
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2059
+ formIds,
2060
+ namespace,
2061
+ statuses: options?.statuses
2062
+ });
2063
+ const reqOpts = countDeletedSubmissions(payload);
2064
+ sideEffects?.onSiteCall?.();
2065
+ try {
2066
+ const result = await httpClient.request(reqOpts);
2067
+ sideEffects?.onSuccess?.(result);
2068
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2069
+ } catch (err) {
2070
+ const transformedError = sdkTransformError(
2071
+ err,
2072
+ {
2073
+ spreadPathsToArguments: {},
2074
+ explicitPathsToArguments: {
2075
+ formIds: "$[0]",
2076
+ namespace: "$[1]",
2077
+ statuses: "$[2].statuses"
2078
+ },
2079
+ singleArgumentUnchanged: false
2080
+ },
2081
+ ["formIds", "namespace", "options"]
2082
+ );
2083
+ sideEffects?.onError?.(err);
2084
+ throw transformedError;
2085
+ }
2086
+ }
2087
+ async function getMediaUploadUrl2(formId, filename, mimeType) {
2088
+ const { httpClient, sideEffects } = arguments[3];
2089
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2090
+ formId,
2091
+ filename,
2092
+ mimeType
2093
+ });
2094
+ const reqOpts = getMediaUploadUrl(payload);
2095
+ sideEffects?.onSiteCall?.();
2096
+ try {
2097
+ const result = await httpClient.request(reqOpts);
2098
+ sideEffects?.onSuccess?.(result);
2099
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2100
+ } catch (err) {
2101
+ const transformedError = sdkTransformError(
2102
+ err,
2103
+ {
2104
+ spreadPathsToArguments: {},
2105
+ explicitPathsToArguments: {
2106
+ formId: "$[0]",
2107
+ filename: "$[1]",
2108
+ mimeType: "$[2]"
2109
+ },
2110
+ singleArgumentUnchanged: false
2111
+ },
2112
+ ["formId", "filename", "mimeType"]
2113
+ );
2114
+ sideEffects?.onError?.(err);
2115
+ throw transformedError;
2116
+ }
2117
+ }
2118
+ async function bulkMarkSubmissionsAsSeen2(ids, formId) {
2119
+ const { httpClient, sideEffects } = arguments[2];
2120
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2121
+ ids,
2122
+ formId
2123
+ });
2124
+ const reqOpts = bulkMarkSubmissionsAsSeen(payload);
2125
+ sideEffects?.onSiteCall?.();
2126
+ try {
2127
+ const result = await httpClient.request(reqOpts);
2128
+ sideEffects?.onSuccess?.(result);
2129
+ } catch (err) {
2130
+ const transformedError = sdkTransformError(
2131
+ err,
2132
+ {
2133
+ spreadPathsToArguments: {},
2134
+ explicitPathsToArguments: { ids: "$[0]", formId: "$[1]" },
2135
+ singleArgumentUnchanged: false
2136
+ },
2137
+ ["ids", "formId"]
2138
+ );
2139
+ sideEffects?.onError?.(err);
2140
+ throw transformedError;
2141
+ }
2142
+ }
2143
+ async function getSubmissionDownloadUrl2(submissionId) {
2144
+ const { httpClient, sideEffects } = arguments[1];
2145
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2146
+ submissionId
2147
+ });
2148
+ const reqOpts = getSubmissionDownloadUrl(payload);
2149
+ sideEffects?.onSiteCall?.();
2150
+ try {
2151
+ const result = await httpClient.request(reqOpts);
2152
+ sideEffects?.onSuccess?.(result);
2153
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2154
+ } catch (err) {
2155
+ const transformedError = sdkTransformError(
2156
+ err,
2157
+ {
2158
+ spreadPathsToArguments: {},
2159
+ explicitPathsToArguments: { submissionId: "$[0]" },
2160
+ singleArgumentUnchanged: false
2161
+ },
2162
+ ["submissionId"]
2163
+ );
2164
+ sideEffects?.onError?.(err);
2165
+ throw transformedError;
2166
+ }
2167
+ }
2168
+ async function getFormattedSubmission2(submissionId) {
2169
+ const { httpClient, sideEffects } = arguments[1];
2170
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2171
+ submissionId
2172
+ });
2173
+ const reqOpts = getFormattedSubmission(payload);
2174
+ sideEffects?.onSiteCall?.();
2175
+ try {
2176
+ const result = await httpClient.request(reqOpts);
2177
+ sideEffects?.onSuccess?.(result);
2178
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2179
+ } catch (err) {
2180
+ const transformedError = sdkTransformError(
2181
+ err,
2182
+ {
2183
+ spreadPathsToArguments: {},
2184
+ explicitPathsToArguments: { submissionId: "$[0]" },
2185
+ singleArgumentUnchanged: false
2186
+ },
2187
+ ["submissionId"]
2188
+ );
2189
+ sideEffects?.onError?.(err);
2190
+ throw transformedError;
2191
+ }
2192
+ }
2193
+ async function updateExtendedFields2(_id, namespace, options) {
2194
+ const { httpClient, sideEffects } = arguments[3];
2195
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2196
+ id: _id,
2197
+ namespace,
2198
+ namespaceData: options?.namespaceData
2199
+ });
2200
+ const reqOpts = updateExtendedFields(payload);
2201
+ sideEffects?.onSiteCall?.();
2202
+ try {
2203
+ const result = await httpClient.request(reqOpts);
2204
+ sideEffects?.onSuccess?.(result);
2205
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2206
+ } catch (err) {
2207
+ const transformedError = sdkTransformError(
2208
+ err,
2209
+ {
2210
+ spreadPathsToArguments: {},
2211
+ explicitPathsToArguments: {
2212
+ id: "$[0]",
2213
+ namespace: "$[1]",
2214
+ namespaceData: "$[2].namespaceData"
2215
+ },
2216
+ singleArgumentUnchanged: false
2217
+ },
2218
+ ["_id", "namespace", "options"]
2219
+ );
2220
+ sideEffects?.onError?.(err);
2221
+ throw transformedError;
2222
+ }
2223
+ }
2224
+ async function bulkUpdateFormSubmissionTags2(submissionIds, options) {
2225
+ const { httpClient, sideEffects } = arguments[2];
2226
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2227
+ submissionIds,
2228
+ assignTags: options?.assignTags,
2229
+ unassignTags: options?.unassignTags
2230
+ });
2231
+ const reqOpts = bulkUpdateFormSubmissionTags(payload);
2232
+ sideEffects?.onSiteCall?.();
2233
+ try {
2234
+ const result = await httpClient.request(reqOpts);
2235
+ sideEffects?.onSuccess?.(result);
2236
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2237
+ } catch (err) {
2238
+ const transformedError = sdkTransformError(
2239
+ err,
2240
+ {
2241
+ spreadPathsToArguments: {},
2242
+ explicitPathsToArguments: {
2243
+ submissionIds: "$[0]",
2244
+ assignTags: "$[1].assignTags",
2245
+ unassignTags: "$[1].unassignTags"
2246
+ },
2247
+ singleArgumentUnchanged: false
2248
+ },
2249
+ ["submissionIds", "options"]
2250
+ );
2251
+ sideEffects?.onError?.(err);
2252
+ throw transformedError;
2253
+ }
2254
+ }
2255
+ async function bulkUpdateFormSubmissionTagsByFilter2(filter, options) {
2256
+ const { httpClient, sideEffects } = arguments[2];
2257
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2258
+ filter,
2259
+ assignTags: options?.assignTags,
2260
+ unassignTags: options?.unassignTags
2261
+ });
2262
+ const reqOpts = bulkUpdateFormSubmissionTagsByFilter(
2263
+ payload
2264
+ );
2265
+ sideEffects?.onSiteCall?.();
2266
+ try {
2267
+ const result = await httpClient.request(reqOpts);
2268
+ sideEffects?.onSuccess?.(result);
2269
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2270
+ } catch (err) {
2271
+ const transformedError = sdkTransformError(
2272
+ err,
2273
+ {
2274
+ spreadPathsToArguments: {},
2275
+ explicitPathsToArguments: {
2276
+ filter: "$[0]",
2277
+ assignTags: "$[1].assignTags",
2278
+ unassignTags: "$[1].unassignTags"
2279
+ },
2280
+ singleArgumentUnchanged: false
2281
+ },
2282
+ ["filter", "options"]
2283
+ );
2284
+ sideEffects?.onError?.(err);
2285
+ throw transformedError;
2286
+ }
2287
+ }
2288
+ async function validateFormSubmission2(submission, options) {
2289
+ const { httpClient, sideEffects } = arguments[2];
2290
+ const payload = renameKeysFromSDKRequestToRESTRequest({
2291
+ submission,
2292
+ additionalMetadata: options?.additionalMetadata,
2293
+ fieldsToValidate: options?.fieldsToValidate
2294
+ });
2295
+ const reqOpts = validateFormSubmission(payload);
2296
+ sideEffects?.onSiteCall?.();
2297
+ try {
2298
+ const result = await httpClient.request(reqOpts);
2299
+ sideEffects?.onSuccess?.(result);
2300
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
2301
+ } catch (err) {
2302
+ const transformedError = sdkTransformError(
2303
+ err,
2304
+ {
2305
+ spreadPathsToArguments: {},
2306
+ explicitPathsToArguments: {
2307
+ submission: "$[0]",
2308
+ additionalMetadata: "$[1].additionalMetadata",
2309
+ fieldsToValidate: "$[1].fieldsToValidate"
2310
+ },
2311
+ singleArgumentUnchanged: false
2312
+ },
2313
+ ["submission", "options"]
2314
+ );
2315
+ sideEffects?.onError?.(err);
2316
+ throw transformedError;
2317
+ }
2318
+ }
2319
+ export {
2320
+ AddressInfoTag,
2321
+ Alignment,
2322
+ AppType,
2323
+ ArrayComponentType,
2324
+ ArrayItemsItemType,
2325
+ AspectRatio,
2326
+ BackgroundType,
2327
+ BooleanComponentType,
2328
+ ButtonDataType,
2329
+ CardStylesAlignment,
2330
+ CardStylesType,
2331
+ ChangeableProperty,
2332
+ ComponentType,
2333
+ ConfirmationLevel,
2334
+ ContactField,
2335
+ Crop,
2336
+ DecorationType,
2337
+ Direction,
2338
+ DisplayFieldDisplayFieldType,
2339
+ DisplayFieldType,
2340
+ DividerDataAlignment,
2341
+ EmailInfoTag,
2342
+ ErrorType,
2343
+ FieldType,
2344
+ FirstDayOfWeek,
2345
+ FontType,
2346
+ FormFieldContactInfoContactField,
2347
+ FormFieldContactInfoEmailInfoTag,
2348
+ FormFieldContactInfoPhoneInfoTag,
2349
+ FormFieldV2FieldType,
2350
+ Format,
2351
+ FormatEnumFormat,
2352
+ GIFType,
2353
+ IdentityType,
2354
+ ImageFit,
2355
+ ImagePosition,
2356
+ InitialExpandedItems,
2357
+ InputFieldArrayComponentType,
2358
+ InputFieldBooleanComponentType,
2359
+ InputFieldInputType,
2360
+ InputFieldNumberComponentType,
2361
+ InputFieldPaymentComponentType,
2362
+ InputFieldSchedulingComponentType,
2363
+ InputFieldStringComponentType,
2364
+ InputFieldStringTypeFormatEnumFormat,
2365
+ InputFieldWixFileComponentType,
2366
+ InputType,
2367
+ ItemType,
2368
+ Kind,
2369
+ Layout,
2370
+ LayoutType,
2371
+ LineStyle,
2372
+ LinkTarget,
2373
+ MapType,
2374
+ Mode,
2375
+ MultilineAddressComponentType,
2376
+ NodeType,
2377
+ NullValue,
2378
+ NumberComponentType,
2379
+ NumberOfColumns,
2380
+ Operator,
2381
+ OptInLevel,
2382
+ Orientation,
2383
+ OverrideEntityType,
2384
+ OverrideEntityTypeEnumOverrideEntityType,
2385
+ PaymentComponentType,
2386
+ PhoneInfoTag,
2387
+ Placement,
2388
+ PluginContainerDataAlignment,
2389
+ PollLayoutDirection,
2390
+ PollLayoutType,
2391
+ Position,
2392
+ PriceType,
2393
+ ProductType,
2394
+ PropertiesTypeEnum,
2395
+ PropertiesTypePropertiesTypeEnum,
2396
+ RequiredIndicator,
2397
+ RequiredIndicatorPlacement,
2398
+ Resizing,
2399
+ SchedulingComponentType,
2400
+ SortOrder,
2401
+ Source,
2402
+ SpamFilterProtectionLevel,
2403
+ Status,
2404
+ StringComponentType,
2405
+ StringTypeFormatEnumFormat,
2406
+ StylesPosition,
2407
+ SubmissionErrorType,
2408
+ SubmissionStatus,
2409
+ SubmitSuccessAction,
2410
+ SubscriptionInfoOptInLevel,
2411
+ Tag,
2412
+ Target,
2413
+ TextAlignment,
2414
+ ThumbnailsAlignment,
2415
+ Type,
2416
+ UploadFileFormat,
2417
+ ValidationFormat,
2418
+ VerticalAlignment,
2419
+ ViewMode,
2420
+ ViewRole,
2421
+ VoteRole,
2422
+ WebhookIdentityType,
2423
+ Width,
2424
+ WidthType,
2425
+ WixFileComponentType,
2426
+ bulkDeleteSubmission2 as bulkDeleteSubmission,
2427
+ bulkMarkSubmissionsAsSeen2 as bulkMarkSubmissionsAsSeen,
2428
+ bulkRemoveSubmissionFromTrashBin2 as bulkRemoveSubmissionFromTrashBin,
2429
+ bulkUpdateFormSubmissionTags2 as bulkUpdateFormSubmissionTags,
2430
+ bulkUpdateFormSubmissionTagsByFilter2 as bulkUpdateFormSubmissionTagsByFilter,
2431
+ confirmSubmission2 as confirmSubmission,
2432
+ countDeletedSubmissions2 as countDeletedSubmissions,
2433
+ countSubmissions2 as countSubmissions,
2434
+ countSubmissionsByFilter2 as countSubmissionsByFilter,
2435
+ createSubmission2 as createSubmission,
2436
+ deleteSubmission2 as deleteSubmission,
2437
+ getDeletedSubmission2 as getDeletedSubmission,
2438
+ getFormattedSubmission2 as getFormattedSubmission,
2439
+ getMediaUploadUrl2 as getMediaUploadUrl,
2440
+ getSubmission2 as getSubmission,
2441
+ getSubmissionDownloadUrl2 as getSubmissionDownloadUrl,
2442
+ listDeletedSubmissions2 as listDeletedSubmissions,
2443
+ querySubmission2 as querySubmission,
2444
+ querySubmissionsByNamespace2 as querySubmissionsByNamespace,
2445
+ removeSubmissionFromTrashBin2 as removeSubmissionFromTrashBin,
2446
+ restoreSubmissionFromTrashBin2 as restoreSubmissionFromTrashBin,
2447
+ searchSubmissionsByNamespace2 as searchSubmissionsByNamespace,
2448
+ updateExtendedFields2 as updateExtendedFields,
2449
+ updateSubmission2 as updateSubmission,
2450
+ upsertContactFromSubmission2 as upsertContactFromSubmission,
2451
+ validateFormSubmission2 as validateFormSubmission
2452
+ };
2453
+ //# sourceMappingURL=index.typings.mjs.map