@wix/forms 1.0.30 → 1.0.32

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 (31) hide show
  1. package/build/cjs/src/forms-v4-submission.http.d.ts +5 -1
  2. package/build/cjs/src/forms-v4-submission.http.js +57 -1
  3. package/build/cjs/src/forms-v4-submission.http.js.map +1 -1
  4. package/build/cjs/src/forms-v4-submission.meta.d.ts +4 -0
  5. package/build/cjs/src/forms-v4-submission.meta.js +39 -1
  6. package/build/cjs/src/forms-v4-submission.meta.js.map +1 -1
  7. package/build/cjs/src/forms-v4-submission.public.d.ts +5 -3
  8. package/build/cjs/src/forms-v4-submission.public.js +64 -1
  9. package/build/cjs/src/forms-v4-submission.public.js.map +1 -1
  10. package/build/cjs/src/forms-v4-submission.types.d.ts +2444 -53
  11. package/build/cjs/src/forms-v4-submission.types.js +469 -1
  12. package/build/cjs/src/forms-v4-submission.types.js.map +1 -1
  13. package/build/cjs/src/forms-v4-submission.universal.d.ts +2447 -53
  14. package/build/cjs/src/forms-v4-submission.universal.js +584 -1
  15. package/build/cjs/src/forms-v4-submission.universal.js.map +1 -1
  16. package/build/es/src/forms-v4-submission.http.d.ts +5 -1
  17. package/build/es/src/forms-v4-submission.http.js +54 -0
  18. package/build/es/src/forms-v4-submission.http.js.map +1 -1
  19. package/build/es/src/forms-v4-submission.meta.d.ts +4 -0
  20. package/build/es/src/forms-v4-submission.meta.js +36 -0
  21. package/build/es/src/forms-v4-submission.meta.js.map +1 -1
  22. package/build/es/src/forms-v4-submission.public.d.ts +5 -3
  23. package/build/es/src/forms-v4-submission.public.js +12 -2
  24. package/build/es/src/forms-v4-submission.public.js.map +1 -1
  25. package/build/es/src/forms-v4-submission.types.d.ts +2444 -53
  26. package/build/es/src/forms-v4-submission.types.js +467 -0
  27. package/build/es/src/forms-v4-submission.types.js.map +1 -1
  28. package/build/es/src/forms-v4-submission.universal.d.ts +2447 -53
  29. package/build/es/src/forms-v4-submission.universal.js +580 -0
  30. package/build/es/src/forms-v4-submission.universal.js.map +1 -1
  31. package/package.json +2 -2
@@ -32,6 +32,473 @@ export var SubmissionStatus;
32
32
  SubmissionStatus["PENDING"] = "PENDING";
33
33
  SubmissionStatus["CONFIRMED"] = "CONFIRMED";
34
34
  })(SubmissionStatus || (SubmissionStatus = {}));
35
+ export var Format;
36
+ (function (Format) {
37
+ Format["UNDEFINED"] = "UNDEFINED";
38
+ Format["DATE"] = "DATE";
39
+ Format["TIME"] = "TIME";
40
+ Format["DATE_TIME"] = "DATE_TIME";
41
+ Format["EMAIL"] = "EMAIL";
42
+ Format["URL"] = "URL";
43
+ Format["UUID"] = "UUID";
44
+ Format["PHONE"] = "PHONE";
45
+ Format["URI"] = "URI";
46
+ Format["HOSTNAME"] = "HOSTNAME";
47
+ Format["COLOR_HEX"] = "COLOR_HEX";
48
+ Format["CURRENCY"] = "CURRENCY";
49
+ Format["LANGUAGE"] = "LANGUAGE";
50
+ })(Format || (Format = {}));
51
+ export var ValidationFormat;
52
+ (function (ValidationFormat) {
53
+ ValidationFormat["UNDEFINED"] = "UNDEFINED";
54
+ /** File upload validation. */
55
+ ValidationFormat["WIX_FILE"] = "WIX_FILE";
56
+ /** Payment validation (described in payment trigger). */
57
+ ValidationFormat["PAYMENT"] = "PAYMENT";
58
+ })(ValidationFormat || (ValidationFormat = {}));
59
+ export var NodeType;
60
+ (function (NodeType) {
61
+ NodeType["PARAGRAPH"] = "PARAGRAPH";
62
+ NodeType["TEXT"] = "TEXT";
63
+ NodeType["HEADING"] = "HEADING";
64
+ NodeType["BULLETED_LIST"] = "BULLETED_LIST";
65
+ NodeType["ORDERED_LIST"] = "ORDERED_LIST";
66
+ NodeType["LIST_ITEM"] = "LIST_ITEM";
67
+ NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
68
+ NodeType["CODE_BLOCK"] = "CODE_BLOCK";
69
+ NodeType["VIDEO"] = "VIDEO";
70
+ NodeType["DIVIDER"] = "DIVIDER";
71
+ NodeType["FILE"] = "FILE";
72
+ NodeType["GALLERY"] = "GALLERY";
73
+ NodeType["GIF"] = "GIF";
74
+ NodeType["HTML"] = "HTML";
75
+ NodeType["IMAGE"] = "IMAGE";
76
+ NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
77
+ NodeType["MAP"] = "MAP";
78
+ NodeType["POLL"] = "POLL";
79
+ NodeType["APP_EMBED"] = "APP_EMBED";
80
+ NodeType["BUTTON"] = "BUTTON";
81
+ NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
82
+ NodeType["TABLE"] = "TABLE";
83
+ NodeType["EMBED"] = "EMBED";
84
+ NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
85
+ NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
86
+ NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
87
+ NodeType["TABLE_CELL"] = "TABLE_CELL";
88
+ NodeType["TABLE_ROW"] = "TABLE_ROW";
89
+ NodeType["EXTERNAL"] = "EXTERNAL";
90
+ NodeType["AUDIO"] = "AUDIO";
91
+ })(NodeType || (NodeType = {}));
92
+ export var WidthType;
93
+ (function (WidthType) {
94
+ /** Width matches the content width */
95
+ WidthType["CONTENT"] = "CONTENT";
96
+ /** Small Width */
97
+ WidthType["SMALL"] = "SMALL";
98
+ /** Width will match the original asset width */
99
+ WidthType["ORIGINAL"] = "ORIGINAL";
100
+ /** coast-to-coast display */
101
+ WidthType["FULL_WIDTH"] = "FULL_WIDTH";
102
+ })(WidthType || (WidthType = {}));
103
+ export var PluginContainerDataAlignment;
104
+ (function (PluginContainerDataAlignment) {
105
+ /** Center Alignment */
106
+ PluginContainerDataAlignment["CENTER"] = "CENTER";
107
+ /** Left Alignment */
108
+ PluginContainerDataAlignment["LEFT"] = "LEFT";
109
+ /** Right Alignment */
110
+ PluginContainerDataAlignment["RIGHT"] = "RIGHT";
111
+ })(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
112
+ export var Type;
113
+ (function (Type) {
114
+ /** Regular link button */
115
+ Type["LINK"] = "LINK";
116
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
117
+ Type["ACTION"] = "ACTION";
118
+ })(Type || (Type = {}));
119
+ export var LinkTarget;
120
+ (function (LinkTarget) {
121
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
122
+ LinkTarget["SELF"] = "SELF";
123
+ /** Opens the linked document in a new window or tab */
124
+ LinkTarget["BLANK"] = "BLANK";
125
+ /** Opens the linked document in the parent frame */
126
+ LinkTarget["PARENT"] = "PARENT";
127
+ /** Opens the linked document in the full body of the window */
128
+ LinkTarget["TOP"] = "TOP";
129
+ })(LinkTarget || (LinkTarget = {}));
130
+ export var TextAlignment;
131
+ (function (TextAlignment) {
132
+ /** browser default, eqivalent to `initial` */
133
+ TextAlignment["AUTO"] = "AUTO";
134
+ /** Left align */
135
+ TextAlignment["LEFT"] = "LEFT";
136
+ /** Right align */
137
+ TextAlignment["RIGHT"] = "RIGHT";
138
+ /** Center align */
139
+ TextAlignment["CENTER"] = "CENTER";
140
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line. */
141
+ TextAlignment["JUSTIFY"] = "JUSTIFY";
142
+ })(TextAlignment || (TextAlignment = {}));
143
+ export var LineStyle;
144
+ (function (LineStyle) {
145
+ /** Single Line */
146
+ LineStyle["SINGLE"] = "SINGLE";
147
+ /** Double Line */
148
+ LineStyle["DOUBLE"] = "DOUBLE";
149
+ /** Dashed Line */
150
+ LineStyle["DASHED"] = "DASHED";
151
+ /** Dotted Line */
152
+ LineStyle["DOTTED"] = "DOTTED";
153
+ })(LineStyle || (LineStyle = {}));
154
+ export var Width;
155
+ (function (Width) {
156
+ /** Large line */
157
+ Width["LARGE"] = "LARGE";
158
+ /** Medium line */
159
+ Width["MEDIUM"] = "MEDIUM";
160
+ /** Small line */
161
+ Width["SMALL"] = "SMALL";
162
+ })(Width || (Width = {}));
163
+ export var Alignment;
164
+ (function (Alignment) {
165
+ /** Center alignment */
166
+ Alignment["CENTER"] = "CENTER";
167
+ /** Left alignment */
168
+ Alignment["LEFT"] = "LEFT";
169
+ /** Right alignment */
170
+ Alignment["RIGHT"] = "RIGHT";
171
+ })(Alignment || (Alignment = {}));
172
+ export var ViewMode;
173
+ (function (ViewMode) {
174
+ /** No PDF view */
175
+ ViewMode["NONE"] = "NONE";
176
+ /** Full PDF view */
177
+ ViewMode["FULL"] = "FULL";
178
+ /** Mini PDF view */
179
+ ViewMode["MINI"] = "MINI";
180
+ })(ViewMode || (ViewMode = {}));
181
+ export var LayoutType;
182
+ (function (LayoutType) {
183
+ /** Collage type */
184
+ LayoutType["COLLAGE"] = "COLLAGE";
185
+ /** Masonry type */
186
+ LayoutType["MASONRY"] = "MASONRY";
187
+ /** Grid type */
188
+ LayoutType["GRID"] = "GRID";
189
+ /** Thumbnail type */
190
+ LayoutType["THUMBNAIL"] = "THUMBNAIL";
191
+ /** Slider type */
192
+ LayoutType["SLIDER"] = "SLIDER";
193
+ /** Slideshow type */
194
+ LayoutType["SLIDESHOW"] = "SLIDESHOW";
195
+ /** Panorama type */
196
+ LayoutType["PANORAMA"] = "PANORAMA";
197
+ /** Column type */
198
+ LayoutType["COLUMN"] = "COLUMN";
199
+ /** Magic type */
200
+ LayoutType["MAGIC"] = "MAGIC";
201
+ /** Fullsize images type */
202
+ LayoutType["FULLSIZE"] = "FULLSIZE";
203
+ })(LayoutType || (LayoutType = {}));
204
+ export var Orientation;
205
+ (function (Orientation) {
206
+ /** Rows Orientation */
207
+ Orientation["ROWS"] = "ROWS";
208
+ /** Columns Orientation */
209
+ Orientation["COLUMNS"] = "COLUMNS";
210
+ })(Orientation || (Orientation = {}));
211
+ export var Crop;
212
+ (function (Crop) {
213
+ /** Crop to fill */
214
+ Crop["FILL"] = "FILL";
215
+ /** Crop to fit */
216
+ Crop["FIT"] = "FIT";
217
+ })(Crop || (Crop = {}));
218
+ export var ThumbnailsAlignment;
219
+ (function (ThumbnailsAlignment) {
220
+ /** Top alignment */
221
+ ThumbnailsAlignment["TOP"] = "TOP";
222
+ /** Right alignment */
223
+ ThumbnailsAlignment["RIGHT"] = "RIGHT";
224
+ /** Bottom alignment */
225
+ ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
226
+ /** Left alignment */
227
+ ThumbnailsAlignment["LEFT"] = "LEFT";
228
+ /** No thumbnail */
229
+ ThumbnailsAlignment["NONE"] = "NONE";
230
+ })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
231
+ export var Source;
232
+ (function (Source) {
233
+ Source["HTML"] = "HTML";
234
+ Source["ADSENSE"] = "ADSENSE";
235
+ })(Source || (Source = {}));
236
+ export var MapType;
237
+ (function (MapType) {
238
+ /** Roadmap map type */
239
+ MapType["ROADMAP"] = "ROADMAP";
240
+ /** Satellite map type */
241
+ MapType["SATELITE"] = "SATELITE";
242
+ /** Hybrid map type */
243
+ MapType["HYBRID"] = "HYBRID";
244
+ /** Terrain map type */
245
+ MapType["TERRAIN"] = "TERRAIN";
246
+ })(MapType || (MapType = {}));
247
+ export var ViewRole;
248
+ (function (ViewRole) {
249
+ /** Only Poll creator can view the results */
250
+ ViewRole["CREATOR"] = "CREATOR";
251
+ /** Anyone who voted can see the results */
252
+ ViewRole["VOTERS"] = "VOTERS";
253
+ /** Anyone can see the results, even if one didn't vote */
254
+ ViewRole["EVERYONE"] = "EVERYONE";
255
+ })(ViewRole || (ViewRole = {}));
256
+ export var VoteRole;
257
+ (function (VoteRole) {
258
+ /** Logged in member */
259
+ VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
260
+ /** Anyone */
261
+ VoteRole["ALL"] = "ALL";
262
+ })(VoteRole || (VoteRole = {}));
263
+ export var PollLayoutType;
264
+ (function (PollLayoutType) {
265
+ /** List */
266
+ PollLayoutType["LIST"] = "LIST";
267
+ /** Grid */
268
+ PollLayoutType["GRID"] = "GRID";
269
+ })(PollLayoutType || (PollLayoutType = {}));
270
+ export var PollLayoutDirection;
271
+ (function (PollLayoutDirection) {
272
+ /** Left-to-right */
273
+ PollLayoutDirection["LTR"] = "LTR";
274
+ /** Right-to-left */
275
+ PollLayoutDirection["RTL"] = "RTL";
276
+ })(PollLayoutDirection || (PollLayoutDirection = {}));
277
+ export var BackgroundType;
278
+ (function (BackgroundType) {
279
+ /** Color background type */
280
+ BackgroundType["COLOR"] = "COLOR";
281
+ /** Image background type */
282
+ BackgroundType["IMAGE"] = "IMAGE";
283
+ /** Gradiant background type */
284
+ BackgroundType["GRADIENT"] = "GRADIENT";
285
+ })(BackgroundType || (BackgroundType = {}));
286
+ export var DecorationType;
287
+ (function (DecorationType) {
288
+ DecorationType["BOLD"] = "BOLD";
289
+ DecorationType["ITALIC"] = "ITALIC";
290
+ DecorationType["UNDERLINE"] = "UNDERLINE";
291
+ DecorationType["SPOILER"] = "SPOILER";
292
+ DecorationType["ANCHOR"] = "ANCHOR";
293
+ DecorationType["MENTION"] = "MENTION";
294
+ DecorationType["LINK"] = "LINK";
295
+ DecorationType["COLOR"] = "COLOR";
296
+ DecorationType["FONT_SIZE"] = "FONT_SIZE";
297
+ DecorationType["EXTERNAL"] = "EXTERNAL";
298
+ })(DecorationType || (DecorationType = {}));
299
+ export var FontType;
300
+ (function (FontType) {
301
+ FontType["PX"] = "PX";
302
+ FontType["EM"] = "EM";
303
+ })(FontType || (FontType = {}));
304
+ export var AppType;
305
+ (function (AppType) {
306
+ AppType["PRODUCT"] = "PRODUCT";
307
+ AppType["EVENT"] = "EVENT";
308
+ AppType["BOOKING"] = "BOOKING";
309
+ })(AppType || (AppType = {}));
310
+ export var InitialExpandedItems;
311
+ (function (InitialExpandedItems) {
312
+ /** First item will be expended initally */
313
+ InitialExpandedItems["FIRST"] = "FIRST";
314
+ /** All items will expended initally */
315
+ InitialExpandedItems["ALL"] = "ALL";
316
+ /** All items collapsed initally */
317
+ InitialExpandedItems["NONE"] = "NONE";
318
+ })(InitialExpandedItems || (InitialExpandedItems = {}));
319
+ export var Direction;
320
+ (function (Direction) {
321
+ /** Left-to-right */
322
+ Direction["LTR"] = "LTR";
323
+ /** Right-to-left */
324
+ Direction["RTL"] = "RTL";
325
+ })(Direction || (Direction = {}));
326
+ export var VerticalAlignment;
327
+ (function (VerticalAlignment) {
328
+ /** Top alignment */
329
+ VerticalAlignment["TOP"] = "TOP";
330
+ /** Middle alignment */
331
+ VerticalAlignment["MIDDLE"] = "MIDDLE";
332
+ /** Bottom alignment */
333
+ VerticalAlignment["BOTTOM"] = "BOTTOM";
334
+ })(VerticalAlignment || (VerticalAlignment = {}));
335
+ /**
336
+ * `NullValue` is a singleton enumeration to represent the null value for the
337
+ * `Value` type union.
338
+ *
339
+ * The JSON representation for `NullValue` is JSON `null`.
340
+ */
341
+ export var NullValue;
342
+ (function (NullValue) {
343
+ /** Null value. */
344
+ NullValue["NULL_VALUE"] = "NULL_VALUE";
345
+ })(NullValue || (NullValue = {}));
346
+ export var FormatEnumFormat;
347
+ (function (FormatEnumFormat) {
348
+ FormatEnumFormat["UNDEFINED"] = "UNDEFINED";
349
+ FormatEnumFormat["DATE"] = "DATE";
350
+ FormatEnumFormat["TIME"] = "TIME";
351
+ FormatEnumFormat["DATE_TIME"] = "DATE_TIME";
352
+ FormatEnumFormat["EMAIL"] = "EMAIL";
353
+ FormatEnumFormat["URL"] = "URL";
354
+ FormatEnumFormat["UUID"] = "UUID";
355
+ FormatEnumFormat["PHONE"] = "PHONE";
356
+ FormatEnumFormat["URI"] = "URI";
357
+ FormatEnumFormat["HOSTNAME"] = "HOSTNAME";
358
+ FormatEnumFormat["COLOR_HEX"] = "COLOR_HEX";
359
+ FormatEnumFormat["CURRENCY"] = "CURRENCY";
360
+ FormatEnumFormat["LANGUAGE"] = "LANGUAGE";
361
+ })(FormatEnumFormat || (FormatEnumFormat = {}));
362
+ export var StringComponentType;
363
+ (function (StringComponentType) {
364
+ StringComponentType["UNKNOWN"] = "UNKNOWN";
365
+ StringComponentType["TEXT_INPUT"] = "TEXT_INPUT";
366
+ StringComponentType["RADIO_GROUP"] = "RADIO_GROUP";
367
+ StringComponentType["DROPDOWN"] = "DROPDOWN";
368
+ })(StringComponentType || (StringComponentType = {}));
369
+ export var NumberComponentType;
370
+ (function (NumberComponentType) {
371
+ NumberComponentType["UNKNOWN"] = "UNKNOWN";
372
+ NumberComponentType["NUMBER_INPUT"] = "NUMBER_INPUT";
373
+ })(NumberComponentType || (NumberComponentType = {}));
374
+ export var BooleanComponentType;
375
+ (function (BooleanComponentType) {
376
+ BooleanComponentType["UNKNOWN"] = "UNKNOWN";
377
+ BooleanComponentType["CHECKBOX"] = "CHECKBOX";
378
+ })(BooleanComponentType || (BooleanComponentType = {}));
379
+ export var ItemType;
380
+ (function (ItemType) {
381
+ ItemType["UNKNOWN"] = "UNKNOWN";
382
+ ItemType["STRING"] = "STRING";
383
+ ItemType["NUMBER"] = "NUMBER";
384
+ ItemType["BOOLEAN"] = "BOOLEAN";
385
+ ItemType["INTEGER"] = "INTEGER";
386
+ ItemType["OBJECT"] = "OBJECT";
387
+ })(ItemType || (ItemType = {}));
388
+ export var PropertiesTypePropertiesType;
389
+ (function (PropertiesTypePropertiesType) {
390
+ PropertiesTypePropertiesType["UNKNOWN"] = "UNKNOWN";
391
+ PropertiesTypePropertiesType["STRING"] = "STRING";
392
+ PropertiesTypePropertiesType["NUMBER"] = "NUMBER";
393
+ PropertiesTypePropertiesType["BOOLEAN"] = "BOOLEAN";
394
+ PropertiesTypePropertiesType["INTEGER"] = "INTEGER";
395
+ PropertiesTypePropertiesType["ARRAY"] = "ARRAY";
396
+ })(PropertiesTypePropertiesType || (PropertiesTypePropertiesType = {}));
397
+ export var ComponentType;
398
+ (function (ComponentType) {
399
+ ComponentType["UNKNOWN"] = "UNKNOWN";
400
+ ComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
401
+ })(ComponentType || (ComponentType = {}));
402
+ export var UploadFileFormat;
403
+ (function (UploadFileFormat) {
404
+ UploadFileFormat["UNDEFINED"] = "UNDEFINED";
405
+ /** Video files */
406
+ UploadFileFormat["VIDEO"] = "VIDEO";
407
+ /** Image files */
408
+ UploadFileFormat["IMAGE"] = "IMAGE";
409
+ /** Audio files */
410
+ UploadFileFormat["AUDIO"] = "AUDIO";
411
+ /** Document files */
412
+ UploadFileFormat["DOCUMENT"] = "DOCUMENT";
413
+ })(UploadFileFormat || (UploadFileFormat = {}));
414
+ export var WixFileComponentType;
415
+ (function (WixFileComponentType) {
416
+ WixFileComponentType["UNKNOWN"] = "UNKNOWN";
417
+ WixFileComponentType["FILE_UPLOAD"] = "FILE_UPLOAD";
418
+ })(WixFileComponentType || (WixFileComponentType = {}));
419
+ export var InputType;
420
+ (function (InputType) {
421
+ InputType["UNKNOWN"] = "UNKNOWN";
422
+ InputType["STRING"] = "STRING";
423
+ InputType["NUMBER"] = "NUMBER";
424
+ InputType["BOOLEAN"] = "BOOLEAN";
425
+ InputType["ARRAY"] = "ARRAY";
426
+ InputType["OBJECT"] = "OBJECT";
427
+ InputType["WIX_FILE"] = "WIX_FILE";
428
+ })(InputType || (InputType = {}));
429
+ export var Target;
430
+ (function (Target) {
431
+ Target["UNDEFINED"] = "UNDEFINED";
432
+ /** Opened in same browser tab */
433
+ Target["SELF"] = "SELF";
434
+ /** Url open in new tab */
435
+ Target["BLANK"] = "BLANK";
436
+ })(Target || (Target = {}));
437
+ export var FieldType;
438
+ (function (FieldType) {
439
+ FieldType["UNKNOWN"] = "UNKNOWN";
440
+ FieldType["INPUT"] = "INPUT";
441
+ FieldType["DISPLAY"] = "DISPLAY";
442
+ FieldType["SUBMIT"] = "SUBMIT";
443
+ })(FieldType || (FieldType = {}));
444
+ export var OverrideEntityType;
445
+ (function (OverrideEntityType) {
446
+ OverrideEntityType["UNKNOWN"] = "UNKNOWN";
447
+ OverrideEntityType["FIELD"] = "FIELD";
448
+ OverrideEntityType["FORM"] = "FORM";
449
+ OverrideEntityType["NESTED_FORM_FIELD"] = "NESTED_FORM_FIELD";
450
+ })(OverrideEntityType || (OverrideEntityType = {}));
451
+ export var Kind;
452
+ (function (Kind) {
453
+ Kind["REGULAR"] = "REGULAR";
454
+ Kind["EXTENSION"] = "EXTENSION";
455
+ })(Kind || (Kind = {}));
456
+ export var EmailInfoTag;
457
+ (function (EmailInfoTag) {
458
+ EmailInfoTag["UNTAGGED"] = "UNTAGGED";
459
+ EmailInfoTag["MAIN"] = "MAIN";
460
+ })(EmailInfoTag || (EmailInfoTag = {}));
461
+ export var PhoneInfoTag;
462
+ (function (PhoneInfoTag) {
463
+ PhoneInfoTag["UNTAGGED"] = "UNTAGGED";
464
+ PhoneInfoTag["MAIN"] = "MAIN";
465
+ })(PhoneInfoTag || (PhoneInfoTag = {}));
466
+ export var Tag;
467
+ (function (Tag) {
468
+ Tag["UNTAGGED"] = "UNTAGGED";
469
+ Tag["HOME"] = "HOME";
470
+ })(Tag || (Tag = {}));
471
+ export var ContactField;
472
+ (function (ContactField) {
473
+ ContactField["UNDEFINED"] = "UNDEFINED";
474
+ ContactField["FIRST_NAME"] = "FIRST_NAME";
475
+ ContactField["LAST_NAME"] = "LAST_NAME";
476
+ ContactField["COMPANY"] = "COMPANY";
477
+ ContactField["POSITION"] = "POSITION";
478
+ ContactField["EMAIL"] = "EMAIL";
479
+ ContactField["PHONE"] = "PHONE";
480
+ ContactField["ADDRESS"] = "ADDRESS";
481
+ ContactField["BIRTHDATE"] = "BIRTHDATE";
482
+ ContactField["CUSTOM_FIELD"] = "CUSTOM_FIELD";
483
+ ContactField["SUBSCRIPTION"] = "SUBSCRIPTION";
484
+ ContactField["VAT_ID"] = "VAT_ID";
485
+ })(ContactField || (ContactField = {}));
486
+ export var ProductType;
487
+ (function (ProductType) {
488
+ ProductType["UNKNOWN"] = "UNKNOWN";
489
+ /** Shippable (physical). */
490
+ ProductType["SHIPPABLE"] = "SHIPPABLE";
491
+ /** Digital. */
492
+ ProductType["DIGITAL"] = "DIGITAL";
493
+ })(ProductType || (ProductType = {}));
494
+ export var PriceType;
495
+ (function (PriceType) {
496
+ PriceType["UNKNOWN"] = "UNKNOWN";
497
+ /** Fixed price. */
498
+ PriceType["FIXED_PRICE"] = "FIXED_PRICE";
499
+ /** Dynamic price from price range. */
500
+ PriceType["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
501
+ })(PriceType || (PriceType = {}));
35
502
  export var IdentityType;
36
503
  (function (IdentityType) {
37
504
  IdentityType["UNKNOWN"] = "UNKNOWN";
@@ -61,8 +528,12 @@ const _getMediaUploadURLRequest = {};
61
528
  const _getMediaUploadURLResponse = {};
62
529
  const _getSubmissionRequest = {};
63
530
  const _getSubmissionResponse = {};
531
+ const _listDeletedSubmissionsRequest = {};
532
+ const _listDeletedSubmissionsResponse = {};
64
533
  const _querySubmissionsByNamespaceRequest = {};
65
534
  const _querySubmissionsByNamespaceResponse = {};
535
+ const _restoreSubmissionFromTrashBinRequest = {};
536
+ const _restoreSubmissionFromTrashBinResponse = {};
66
537
  const _updateSubmissionRequest = {};
67
538
  const _updateSubmissionResponse = {};
68
539
  /**
@@ -344,6 +815,115 @@ export function deleteSubmission(submissionId) {
344
815
  }
345
816
  });
346
817
  }
818
+ /**
819
+ * Restores deleted submission
820
+ * @param submissionId - ID of the submission to restore.
821
+ * @public
822
+ * @documentationMaturity preview
823
+ * @requiredField submissionId
824
+ * @permissionScope Manage Submissions
825
+ * @applicableIdentity APP
826
+ */
827
+ export function restoreSubmissionFromTrashBin(submissionId) {
828
+ var _a, _b, _c;
829
+ return __awaiter(this, arguments, void 0, function* () {
830
+ const requestTransformation = { submissionId: '$[0]' };
831
+ const responseTransformation = '$';
832
+ // @ts-ignore
833
+ const { httpClient, sideEffects } = arguments[1];
834
+ const { toAmbassadorRequest } = serializer({
835
+ rootSchema: _restoreSubmissionFromTrashBinRequest,
836
+ depSchemas: {},
837
+ fqdnTransformation: {
838
+ paths: [],
839
+ transformation: _fromVeloEntity,
840
+ },
841
+ customTransformation: requestTransformation,
842
+ });
843
+ const { fromJSON } = serializer({
844
+ rootSchema: _restoreSubmissionFromTrashBinResponse,
845
+ depSchemas: {},
846
+ fqdnTransformation: {
847
+ paths: [...['submission']],
848
+ transformation: _toVeloEntity,
849
+ },
850
+ customTransformation: responseTransformation,
851
+ });
852
+ const payload = toAmbassadorRequest([submissionId]);
853
+ const reqOpts = ambassadorWixFormsV4Submission.restoreSubmissionFromTrashBin(payload);
854
+ __log(`"RestoreSubmissionFromTrashBin" sending request with: ${__inspect(reqOpts)}`);
855
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
856
+ try {
857
+ const result = yield httpClient.request(reqOpts);
858
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
859
+ return fromJSON(result.data);
860
+ }
861
+ catch (err) {
862
+ const transformedError = transformError(err, requestTransformation, [
863
+ 'submissionId',
864
+ ]);
865
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
866
+ throw transformedError;
867
+ }
868
+ });
869
+ }
870
+ /**
871
+ * List deleted Forms
872
+ * @param formId - Form ID.
873
+ * @public
874
+ * @documentationMaturity preview
875
+ * @requiredField formId
876
+ * @permissionScope Read Submissions
877
+ * @applicableIdentity APP
878
+ */
879
+ export function listDeletedSubmissions(formId, options) {
880
+ var _a, _b, _c;
881
+ return __awaiter(this, arguments, void 0, function* () {
882
+ const requestTransformation = {
883
+ formId: '$[0]',
884
+ submissionIds: '$[1].submissionIds',
885
+ paging: '$[1].paging',
886
+ };
887
+ const responseTransformation = '$';
888
+ // @ts-ignore
889
+ const { httpClient, sideEffects } = arguments[2];
890
+ const { toAmbassadorRequest } = serializer({
891
+ rootSchema: _listDeletedSubmissionsRequest,
892
+ depSchemas: {},
893
+ fqdnTransformation: {
894
+ paths: [],
895
+ transformation: _fromVeloEntity,
896
+ },
897
+ customTransformation: requestTransformation,
898
+ });
899
+ const { fromJSON } = serializer({
900
+ rootSchema: _listDeletedSubmissionsResponse,
901
+ depSchemas: {},
902
+ fqdnTransformation: {
903
+ paths: [...['Array#submissions']],
904
+ transformation: _toVeloEntity,
905
+ },
906
+ customTransformation: responseTransformation,
907
+ });
908
+ const payload = toAmbassadorRequest([formId, options]);
909
+ const reqOpts = ambassadorWixFormsV4Submission.listDeletedSubmissions(payload);
910
+ __log(`"ListDeletedSubmissions" sending request with: ${__inspect(reqOpts)}`);
911
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
912
+ try {
913
+ const result = yield httpClient.request(reqOpts);
914
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
915
+ return fromJSON(result.data);
916
+ }
917
+ catch (err) {
918
+ const transformedError = transformError(err, requestTransformation, [
919
+ 'formId',
920
+ 'options',
921
+ ]);
922
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
923
+ throw transformedError;
924
+ }
925
+ });
926
+ }
347
927
  /**
348
928
  * Creates a query to retrieve a list of submissions.
349
929
  *