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