@wix/forms 1.0.62 → 1.0.64
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.
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +5 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +5 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.http.js +126 -162
- package/build/cjs/src/forms-v4-submission.http.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.meta.d.ts +1 -1
- package/build/cjs/src/forms-v4-submission.meta.js +5 -1
- package/build/cjs/src/forms-v4-submission.meta.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.public.d.ts +11 -22
- package/build/cjs/src/forms-v4-submission.types.d.ts +37 -25
- package/build/cjs/src/forms-v4-submission.types.js +56 -56
- package/build/cjs/src/forms-v4-submission.types.js.map +1 -1
- package/build/cjs/src/forms-v4-submission.universal.d.ts +38 -27
- package/build/cjs/src/forms-v4-submission.universal.js +168 -117
- package/build/cjs/src/forms-v4-submission.universal.js.map +1 -1
- package/build/es/src/forms-v4-submission.http.js +126 -162
- package/build/es/src/forms-v4-submission.http.js.map +1 -1
- package/build/es/src/forms-v4-submission.meta.d.ts +1 -1
- package/build/es/src/forms-v4-submission.public.d.ts +11 -22
- package/build/es/src/forms-v4-submission.types.d.ts +37 -25
- package/build/es/src/forms-v4-submission.types.js.map +1 -1
- package/build/es/src/forms-v4-submission.universal.d.ts +38 -27
- package/build/es/src/forms-v4-submission.universal.js +107 -60
- package/build/es/src/forms-v4-submission.universal.js.map +1 -1
- package/package.json +7 -3
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -31,6 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
35
|
exports.OverrideEntityType = exports.FieldType = exports.Target = exports.InputType = exports.PaymentComponentType = exports.UploadFileFormat = exports.WixFileComponentType = exports.ComponentType = exports.PropertiesTypePropertiesType = exports.ItemType = exports.BooleanComponentType = exports.NumberComponentType = exports.DateTimeInputType = exports.DateFormatPart = 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.StringComponentType = exports.FormatEnumFormat = exports.PriceType = exports.ProductType = exports.ValidationFormat = exports.Format = exports.SubmissionStatus = exports.__debug = void 0;
|
|
32
36
|
exports.bulkMarkSubmissionsAsSeen = exports.getMediaUploadUrl = exports.countDeletedSubmissions = exports.countSubmissions = exports.querySubmissionsByNamespace = exports.getDeletedSubmission = exports.listDeletedSubmissions = exports.bulkRemoveSubmissionFromTrashBin = exports.removeSubmissionFromTrashBin = exports.restoreSubmissionFromTrashBin = exports.bulkDeleteSubmission = exports.deleteSubmission = exports.confirmSubmission = exports.updateSubmission = exports.getSubmission = exports.createSubmission = exports.SortOrder = exports.IdentityType = exports.ContactField = exports.Tag = exports.PhoneInfoTag = exports.EmailInfoTag = exports.Kind = void 0;
|
|
33
37
|
const velo_1 = require("@wix/metro-runtime/velo");
|
|
38
|
+
const transform_error_1 = require("@wix/sdk-runtime/transform-error");
|
|
34
39
|
const ambassadorWixFormsV4Submission = __importStar(require("./forms-v4-submission.http"));
|
|
35
40
|
// @ts-ignore
|
|
36
41
|
const motion_edm_autogen_query_wrapper_1 = require("@wix/motion-edm-autogen-query-wrapper");
|
|
@@ -56,7 +61,7 @@ var SubmissionStatus;
|
|
|
56
61
|
SubmissionStatus["CONFIRMED"] = "CONFIRMED";
|
|
57
62
|
SubmissionStatus["PAYMENT_WAITING"] = "PAYMENT_WAITING";
|
|
58
63
|
SubmissionStatus["PAYMENT_CANCELED"] = "PAYMENT_CANCELED";
|
|
59
|
-
})(SubmissionStatus
|
|
64
|
+
})(SubmissionStatus || (exports.SubmissionStatus = SubmissionStatus = {}));
|
|
60
65
|
var Format;
|
|
61
66
|
(function (Format) {
|
|
62
67
|
Format["UNDEFINED"] = "UNDEFINED";
|
|
@@ -73,7 +78,7 @@ var Format;
|
|
|
73
78
|
Format["CURRENCY"] = "CURRENCY";
|
|
74
79
|
Format["LANGUAGE"] = "LANGUAGE";
|
|
75
80
|
Format["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
|
|
76
|
-
})(Format
|
|
81
|
+
})(Format || (exports.Format = Format = {}));
|
|
77
82
|
var ValidationFormat;
|
|
78
83
|
(function (ValidationFormat) {
|
|
79
84
|
ValidationFormat["UNDEFINED"] = "UNDEFINED";
|
|
@@ -81,7 +86,7 @@ var ValidationFormat;
|
|
|
81
86
|
ValidationFormat["WIX_FILE"] = "WIX_FILE";
|
|
82
87
|
/** Payment validation. */
|
|
83
88
|
ValidationFormat["PAYMENT"] = "PAYMENT";
|
|
84
|
-
})(ValidationFormat
|
|
89
|
+
})(ValidationFormat || (exports.ValidationFormat = ValidationFormat = {}));
|
|
85
90
|
var ProductType;
|
|
86
91
|
(function (ProductType) {
|
|
87
92
|
ProductType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -89,7 +94,7 @@ var ProductType;
|
|
|
89
94
|
ProductType["SHIPPABLE"] = "SHIPPABLE";
|
|
90
95
|
/** Digital. */
|
|
91
96
|
ProductType["DIGITAL"] = "DIGITAL";
|
|
92
|
-
})(ProductType
|
|
97
|
+
})(ProductType || (exports.ProductType = ProductType = {}));
|
|
93
98
|
var PriceType;
|
|
94
99
|
(function (PriceType) {
|
|
95
100
|
PriceType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -97,7 +102,7 @@ var PriceType;
|
|
|
97
102
|
PriceType["FIXED_PRICE"] = "FIXED_PRICE";
|
|
98
103
|
/** Dynamic price from price range. */
|
|
99
104
|
PriceType["DYNAMIC_PRICE"] = "DYNAMIC_PRICE";
|
|
100
|
-
})(PriceType
|
|
105
|
+
})(PriceType || (exports.PriceType = PriceType = {}));
|
|
101
106
|
var FormatEnumFormat;
|
|
102
107
|
(function (FormatEnumFormat) {
|
|
103
108
|
FormatEnumFormat["UNDEFINED"] = "UNDEFINED";
|
|
@@ -114,7 +119,7 @@ var FormatEnumFormat;
|
|
|
114
119
|
FormatEnumFormat["CURRENCY"] = "CURRENCY";
|
|
115
120
|
FormatEnumFormat["LANGUAGE"] = "LANGUAGE";
|
|
116
121
|
FormatEnumFormat["DATE_OPTIONAL_TIME"] = "DATE_OPTIONAL_TIME";
|
|
117
|
-
})(FormatEnumFormat
|
|
122
|
+
})(FormatEnumFormat || (exports.FormatEnumFormat = FormatEnumFormat = {}));
|
|
118
123
|
var StringComponentType;
|
|
119
124
|
(function (StringComponentType) {
|
|
120
125
|
StringComponentType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -122,7 +127,7 @@ var StringComponentType;
|
|
|
122
127
|
StringComponentType["RADIO_GROUP"] = "RADIO_GROUP";
|
|
123
128
|
StringComponentType["DROPDOWN"] = "DROPDOWN";
|
|
124
129
|
StringComponentType["DATE_TIME"] = "DATE_TIME";
|
|
125
|
-
})(StringComponentType
|
|
130
|
+
})(StringComponentType || (exports.StringComponentType = StringComponentType = {}));
|
|
126
131
|
var NodeType;
|
|
127
132
|
(function (NodeType) {
|
|
128
133
|
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
@@ -155,7 +160,7 @@ var NodeType;
|
|
|
155
160
|
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
156
161
|
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
157
162
|
NodeType["AUDIO"] = "AUDIO";
|
|
158
|
-
})(NodeType
|
|
163
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
159
164
|
var WidthType;
|
|
160
165
|
(function (WidthType) {
|
|
161
166
|
/** Width matches the content width */
|
|
@@ -166,7 +171,7 @@ var WidthType;
|
|
|
166
171
|
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
167
172
|
/** coast-to-coast display */
|
|
168
173
|
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
169
|
-
})(WidthType
|
|
174
|
+
})(WidthType || (exports.WidthType = WidthType = {}));
|
|
170
175
|
var PluginContainerDataAlignment;
|
|
171
176
|
(function (PluginContainerDataAlignment) {
|
|
172
177
|
/** Center Alignment */
|
|
@@ -175,14 +180,14 @@ var PluginContainerDataAlignment;
|
|
|
175
180
|
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
176
181
|
/** Right Alignment */
|
|
177
182
|
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
178
|
-
})(PluginContainerDataAlignment
|
|
183
|
+
})(PluginContainerDataAlignment || (exports.PluginContainerDataAlignment = PluginContainerDataAlignment = {}));
|
|
179
184
|
var Type;
|
|
180
185
|
(function (Type) {
|
|
181
186
|
/** Regular link button */
|
|
182
187
|
Type["LINK"] = "LINK";
|
|
183
188
|
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
184
189
|
Type["ACTION"] = "ACTION";
|
|
185
|
-
})(Type
|
|
190
|
+
})(Type || (exports.Type = Type = {}));
|
|
186
191
|
var LinkTarget;
|
|
187
192
|
(function (LinkTarget) {
|
|
188
193
|
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
@@ -193,7 +198,7 @@ var LinkTarget;
|
|
|
193
198
|
LinkTarget["PARENT"] = "PARENT";
|
|
194
199
|
/** Opens the linked document in the full body of the window */
|
|
195
200
|
LinkTarget["TOP"] = "TOP";
|
|
196
|
-
})(LinkTarget
|
|
201
|
+
})(LinkTarget || (exports.LinkTarget = LinkTarget = {}));
|
|
197
202
|
var TextAlignment;
|
|
198
203
|
(function (TextAlignment) {
|
|
199
204
|
/** browser default, eqivalent to `initial` */
|
|
@@ -206,7 +211,7 @@ var TextAlignment;
|
|
|
206
211
|
TextAlignment["CENTER"] = "CENTER";
|
|
207
212
|
/** 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. */
|
|
208
213
|
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
209
|
-
})(TextAlignment
|
|
214
|
+
})(TextAlignment || (exports.TextAlignment = TextAlignment = {}));
|
|
210
215
|
var LineStyle;
|
|
211
216
|
(function (LineStyle) {
|
|
212
217
|
/** Single Line */
|
|
@@ -217,7 +222,7 @@ var LineStyle;
|
|
|
217
222
|
LineStyle["DASHED"] = "DASHED";
|
|
218
223
|
/** Dotted Line */
|
|
219
224
|
LineStyle["DOTTED"] = "DOTTED";
|
|
220
|
-
})(LineStyle
|
|
225
|
+
})(LineStyle || (exports.LineStyle = LineStyle = {}));
|
|
221
226
|
var Width;
|
|
222
227
|
(function (Width) {
|
|
223
228
|
/** Large line */
|
|
@@ -226,7 +231,7 @@ var Width;
|
|
|
226
231
|
Width["MEDIUM"] = "MEDIUM";
|
|
227
232
|
/** Small line */
|
|
228
233
|
Width["SMALL"] = "SMALL";
|
|
229
|
-
})(Width
|
|
234
|
+
})(Width || (exports.Width = Width = {}));
|
|
230
235
|
var Alignment;
|
|
231
236
|
(function (Alignment) {
|
|
232
237
|
/** Center alignment */
|
|
@@ -235,7 +240,7 @@ var Alignment;
|
|
|
235
240
|
Alignment["LEFT"] = "LEFT";
|
|
236
241
|
/** Right alignment */
|
|
237
242
|
Alignment["RIGHT"] = "RIGHT";
|
|
238
|
-
})(Alignment
|
|
243
|
+
})(Alignment || (exports.Alignment = Alignment = {}));
|
|
239
244
|
var ViewMode;
|
|
240
245
|
(function (ViewMode) {
|
|
241
246
|
/** No PDF view */
|
|
@@ -244,7 +249,7 @@ var ViewMode;
|
|
|
244
249
|
ViewMode["FULL"] = "FULL";
|
|
245
250
|
/** Mini PDF view */
|
|
246
251
|
ViewMode["MINI"] = "MINI";
|
|
247
|
-
})(ViewMode
|
|
252
|
+
})(ViewMode || (exports.ViewMode = ViewMode = {}));
|
|
248
253
|
var LayoutType;
|
|
249
254
|
(function (LayoutType) {
|
|
250
255
|
/** Collage type */
|
|
@@ -267,21 +272,21 @@ var LayoutType;
|
|
|
267
272
|
LayoutType["MAGIC"] = "MAGIC";
|
|
268
273
|
/** Fullsize images type */
|
|
269
274
|
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
270
|
-
})(LayoutType
|
|
275
|
+
})(LayoutType || (exports.LayoutType = LayoutType = {}));
|
|
271
276
|
var Orientation;
|
|
272
277
|
(function (Orientation) {
|
|
273
278
|
/** Rows Orientation */
|
|
274
279
|
Orientation["ROWS"] = "ROWS";
|
|
275
280
|
/** Columns Orientation */
|
|
276
281
|
Orientation["COLUMNS"] = "COLUMNS";
|
|
277
|
-
})(Orientation
|
|
282
|
+
})(Orientation || (exports.Orientation = Orientation = {}));
|
|
278
283
|
var Crop;
|
|
279
284
|
(function (Crop) {
|
|
280
285
|
/** Crop to fill */
|
|
281
286
|
Crop["FILL"] = "FILL";
|
|
282
287
|
/** Crop to fit */
|
|
283
288
|
Crop["FIT"] = "FIT";
|
|
284
|
-
})(Crop
|
|
289
|
+
})(Crop || (exports.Crop = Crop = {}));
|
|
285
290
|
var ThumbnailsAlignment;
|
|
286
291
|
(function (ThumbnailsAlignment) {
|
|
287
292
|
/** Top alignment */
|
|
@@ -294,12 +299,12 @@ var ThumbnailsAlignment;
|
|
|
294
299
|
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
295
300
|
/** No thumbnail */
|
|
296
301
|
ThumbnailsAlignment["NONE"] = "NONE";
|
|
297
|
-
})(ThumbnailsAlignment
|
|
302
|
+
})(ThumbnailsAlignment || (exports.ThumbnailsAlignment = ThumbnailsAlignment = {}));
|
|
298
303
|
var Source;
|
|
299
304
|
(function (Source) {
|
|
300
305
|
Source["HTML"] = "HTML";
|
|
301
306
|
Source["ADSENSE"] = "ADSENSE";
|
|
302
|
-
})(Source
|
|
307
|
+
})(Source || (exports.Source = Source = {}));
|
|
303
308
|
var MapType;
|
|
304
309
|
(function (MapType) {
|
|
305
310
|
/** Roadmap map type */
|
|
@@ -310,7 +315,7 @@ var MapType;
|
|
|
310
315
|
MapType["HYBRID"] = "HYBRID";
|
|
311
316
|
/** Terrain map type */
|
|
312
317
|
MapType["TERRAIN"] = "TERRAIN";
|
|
313
|
-
})(MapType
|
|
318
|
+
})(MapType || (exports.MapType = MapType = {}));
|
|
314
319
|
var ViewRole;
|
|
315
320
|
(function (ViewRole) {
|
|
316
321
|
/** Only Poll creator can view the results */
|
|
@@ -319,28 +324,28 @@ var ViewRole;
|
|
|
319
324
|
ViewRole["VOTERS"] = "VOTERS";
|
|
320
325
|
/** Anyone can see the results, even if one didn't vote */
|
|
321
326
|
ViewRole["EVERYONE"] = "EVERYONE";
|
|
322
|
-
})(ViewRole
|
|
327
|
+
})(ViewRole || (exports.ViewRole = ViewRole = {}));
|
|
323
328
|
var VoteRole;
|
|
324
329
|
(function (VoteRole) {
|
|
325
330
|
/** Logged in member */
|
|
326
331
|
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
327
332
|
/** Anyone */
|
|
328
333
|
VoteRole["ALL"] = "ALL";
|
|
329
|
-
})(VoteRole
|
|
334
|
+
})(VoteRole || (exports.VoteRole = VoteRole = {}));
|
|
330
335
|
var PollLayoutType;
|
|
331
336
|
(function (PollLayoutType) {
|
|
332
337
|
/** List */
|
|
333
338
|
PollLayoutType["LIST"] = "LIST";
|
|
334
339
|
/** Grid */
|
|
335
340
|
PollLayoutType["GRID"] = "GRID";
|
|
336
|
-
})(PollLayoutType
|
|
341
|
+
})(PollLayoutType || (exports.PollLayoutType = PollLayoutType = {}));
|
|
337
342
|
var PollLayoutDirection;
|
|
338
343
|
(function (PollLayoutDirection) {
|
|
339
344
|
/** Left-to-right */
|
|
340
345
|
PollLayoutDirection["LTR"] = "LTR";
|
|
341
346
|
/** Right-to-left */
|
|
342
347
|
PollLayoutDirection["RTL"] = "RTL";
|
|
343
|
-
})(PollLayoutDirection
|
|
348
|
+
})(PollLayoutDirection || (exports.PollLayoutDirection = PollLayoutDirection = {}));
|
|
344
349
|
var BackgroundType;
|
|
345
350
|
(function (BackgroundType) {
|
|
346
351
|
/** Color background type */
|
|
@@ -349,7 +354,7 @@ var BackgroundType;
|
|
|
349
354
|
BackgroundType["IMAGE"] = "IMAGE";
|
|
350
355
|
/** Gradiant background type */
|
|
351
356
|
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
352
|
-
})(BackgroundType
|
|
357
|
+
})(BackgroundType || (exports.BackgroundType = BackgroundType = {}));
|
|
353
358
|
var DecorationType;
|
|
354
359
|
(function (DecorationType) {
|
|
355
360
|
DecorationType["BOLD"] = "BOLD";
|
|
@@ -362,18 +367,18 @@ var DecorationType;
|
|
|
362
367
|
DecorationType["COLOR"] = "COLOR";
|
|
363
368
|
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
364
369
|
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
365
|
-
})(DecorationType
|
|
370
|
+
})(DecorationType || (exports.DecorationType = DecorationType = {}));
|
|
366
371
|
var FontType;
|
|
367
372
|
(function (FontType) {
|
|
368
373
|
FontType["PX"] = "PX";
|
|
369
374
|
FontType["EM"] = "EM";
|
|
370
|
-
})(FontType
|
|
375
|
+
})(FontType || (exports.FontType = FontType = {}));
|
|
371
376
|
var AppType;
|
|
372
377
|
(function (AppType) {
|
|
373
378
|
AppType["PRODUCT"] = "PRODUCT";
|
|
374
379
|
AppType["EVENT"] = "EVENT";
|
|
375
380
|
AppType["BOOKING"] = "BOOKING";
|
|
376
|
-
})(AppType
|
|
381
|
+
})(AppType || (exports.AppType = AppType = {}));
|
|
377
382
|
var InitialExpandedItems;
|
|
378
383
|
(function (InitialExpandedItems) {
|
|
379
384
|
/** First item will be expended initally */
|
|
@@ -382,14 +387,14 @@ var InitialExpandedItems;
|
|
|
382
387
|
InitialExpandedItems["ALL"] = "ALL";
|
|
383
388
|
/** All items collapsed initally */
|
|
384
389
|
InitialExpandedItems["NONE"] = "NONE";
|
|
385
|
-
})(InitialExpandedItems
|
|
390
|
+
})(InitialExpandedItems || (exports.InitialExpandedItems = InitialExpandedItems = {}));
|
|
386
391
|
var Direction;
|
|
387
392
|
(function (Direction) {
|
|
388
393
|
/** Left-to-right */
|
|
389
394
|
Direction["LTR"] = "LTR";
|
|
390
395
|
/** Right-to-left */
|
|
391
396
|
Direction["RTL"] = "RTL";
|
|
392
|
-
})(Direction
|
|
397
|
+
})(Direction || (exports.Direction = Direction = {}));
|
|
393
398
|
var VerticalAlignment;
|
|
394
399
|
(function (VerticalAlignment) {
|
|
395
400
|
/** Top alignment */
|
|
@@ -398,7 +403,7 @@ var VerticalAlignment;
|
|
|
398
403
|
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
399
404
|
/** Bottom alignment */
|
|
400
405
|
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
401
|
-
})(VerticalAlignment
|
|
406
|
+
})(VerticalAlignment || (exports.VerticalAlignment = VerticalAlignment = {}));
|
|
402
407
|
/**
|
|
403
408
|
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
404
409
|
* `Value` type union.
|
|
@@ -409,13 +414,13 @@ var NullValue;
|
|
|
409
414
|
(function (NullValue) {
|
|
410
415
|
/** Null value. */
|
|
411
416
|
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
412
|
-
})(NullValue
|
|
417
|
+
})(NullValue || (exports.NullValue = NullValue = {}));
|
|
413
418
|
var DateFormatPart;
|
|
414
419
|
(function (DateFormatPart) {
|
|
415
420
|
DateFormatPart["YEAR"] = "YEAR";
|
|
416
421
|
DateFormatPart["MONTH"] = "MONTH";
|
|
417
422
|
DateFormatPart["DAY"] = "DAY";
|
|
418
|
-
})(DateFormatPart
|
|
423
|
+
})(DateFormatPart || (exports.DateFormatPart = DateFormatPart = {}));
|
|
419
424
|
var DateTimeInputType;
|
|
420
425
|
(function (DateTimeInputType) {
|
|
421
426
|
DateTimeInputType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -425,17 +430,17 @@ var DateTimeInputType;
|
|
|
425
430
|
DateTimeInputType["DATE"] = "DATE";
|
|
426
431
|
/** Show only time input */
|
|
427
432
|
DateTimeInputType["TIME"] = "TIME";
|
|
428
|
-
})(DateTimeInputType
|
|
433
|
+
})(DateTimeInputType || (exports.DateTimeInputType = DateTimeInputType = {}));
|
|
429
434
|
var NumberComponentType;
|
|
430
435
|
(function (NumberComponentType) {
|
|
431
436
|
NumberComponentType["UNKNOWN"] = "UNKNOWN";
|
|
432
437
|
NumberComponentType["NUMBER_INPUT"] = "NUMBER_INPUT";
|
|
433
|
-
})(NumberComponentType
|
|
438
|
+
})(NumberComponentType || (exports.NumberComponentType = NumberComponentType = {}));
|
|
434
439
|
var BooleanComponentType;
|
|
435
440
|
(function (BooleanComponentType) {
|
|
436
441
|
BooleanComponentType["UNKNOWN"] = "UNKNOWN";
|
|
437
442
|
BooleanComponentType["CHECKBOX"] = "CHECKBOX";
|
|
438
|
-
})(BooleanComponentType
|
|
443
|
+
})(BooleanComponentType || (exports.BooleanComponentType = BooleanComponentType = {}));
|
|
439
444
|
var ItemType;
|
|
440
445
|
(function (ItemType) {
|
|
441
446
|
ItemType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -444,7 +449,7 @@ var ItemType;
|
|
|
444
449
|
ItemType["BOOLEAN"] = "BOOLEAN";
|
|
445
450
|
ItemType["INTEGER"] = "INTEGER";
|
|
446
451
|
ItemType["OBJECT"] = "OBJECT";
|
|
447
|
-
})(ItemType
|
|
452
|
+
})(ItemType || (exports.ItemType = ItemType = {}));
|
|
448
453
|
var PropertiesTypePropertiesType;
|
|
449
454
|
(function (PropertiesTypePropertiesType) {
|
|
450
455
|
PropertiesTypePropertiesType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -453,17 +458,17 @@ var PropertiesTypePropertiesType;
|
|
|
453
458
|
PropertiesTypePropertiesType["BOOLEAN"] = "BOOLEAN";
|
|
454
459
|
PropertiesTypePropertiesType["INTEGER"] = "INTEGER";
|
|
455
460
|
PropertiesTypePropertiesType["ARRAY"] = "ARRAY";
|
|
456
|
-
})(PropertiesTypePropertiesType
|
|
461
|
+
})(PropertiesTypePropertiesType || (exports.PropertiesTypePropertiesType = PropertiesTypePropertiesType = {}));
|
|
457
462
|
var ComponentType;
|
|
458
463
|
(function (ComponentType) {
|
|
459
464
|
ComponentType["UNKNOWN"] = "UNKNOWN";
|
|
460
465
|
ComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
461
|
-
})(ComponentType
|
|
466
|
+
})(ComponentType || (exports.ComponentType = ComponentType = {}));
|
|
462
467
|
var WixFileComponentType;
|
|
463
468
|
(function (WixFileComponentType) {
|
|
464
469
|
WixFileComponentType["UNKNOWN"] = "UNKNOWN";
|
|
465
470
|
WixFileComponentType["FILE_UPLOAD"] = "FILE_UPLOAD";
|
|
466
|
-
})(WixFileComponentType
|
|
471
|
+
})(WixFileComponentType || (exports.WixFileComponentType = WixFileComponentType = {}));
|
|
467
472
|
var UploadFileFormat;
|
|
468
473
|
(function (UploadFileFormat) {
|
|
469
474
|
UploadFileFormat["UNDEFINED"] = "UNDEFINED";
|
|
@@ -475,12 +480,12 @@ var UploadFileFormat;
|
|
|
475
480
|
UploadFileFormat["AUDIO"] = "AUDIO";
|
|
476
481
|
/** Document files */
|
|
477
482
|
UploadFileFormat["DOCUMENT"] = "DOCUMENT";
|
|
478
|
-
})(UploadFileFormat
|
|
483
|
+
})(UploadFileFormat || (exports.UploadFileFormat = UploadFileFormat = {}));
|
|
479
484
|
var PaymentComponentType;
|
|
480
485
|
(function (PaymentComponentType) {
|
|
481
486
|
PaymentComponentType["UNKNOWN"] = "UNKNOWN";
|
|
482
487
|
PaymentComponentType["CHECKBOX_GROUP"] = "CHECKBOX_GROUP";
|
|
483
|
-
})(PaymentComponentType
|
|
488
|
+
})(PaymentComponentType || (exports.PaymentComponentType = PaymentComponentType = {}));
|
|
484
489
|
var InputType;
|
|
485
490
|
(function (InputType) {
|
|
486
491
|
InputType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -491,7 +496,7 @@ var InputType;
|
|
|
491
496
|
InputType["OBJECT"] = "OBJECT";
|
|
492
497
|
InputType["WIX_FILE"] = "WIX_FILE";
|
|
493
498
|
InputType["PAYMENT"] = "PAYMENT";
|
|
494
|
-
})(InputType
|
|
499
|
+
})(InputType || (exports.InputType = InputType = {}));
|
|
495
500
|
var Target;
|
|
496
501
|
(function (Target) {
|
|
497
502
|
Target["UNDEFINED"] = "UNDEFINED";
|
|
@@ -499,41 +504,41 @@ var Target;
|
|
|
499
504
|
Target["SELF"] = "SELF";
|
|
500
505
|
/** Url open in new tab */
|
|
501
506
|
Target["BLANK"] = "BLANK";
|
|
502
|
-
})(Target
|
|
507
|
+
})(Target || (exports.Target = Target = {}));
|
|
503
508
|
var FieldType;
|
|
504
509
|
(function (FieldType) {
|
|
505
510
|
FieldType["UNKNOWN"] = "UNKNOWN";
|
|
506
511
|
FieldType["INPUT"] = "INPUT";
|
|
507
512
|
FieldType["DISPLAY"] = "DISPLAY";
|
|
508
513
|
FieldType["SUBMIT"] = "SUBMIT";
|
|
509
|
-
})(FieldType
|
|
514
|
+
})(FieldType || (exports.FieldType = FieldType = {}));
|
|
510
515
|
var OverrideEntityType;
|
|
511
516
|
(function (OverrideEntityType) {
|
|
512
517
|
OverrideEntityType["UNKNOWN"] = "UNKNOWN";
|
|
513
518
|
OverrideEntityType["FIELD"] = "FIELD";
|
|
514
519
|
OverrideEntityType["FORM"] = "FORM";
|
|
515
520
|
OverrideEntityType["NESTED_FORM_FIELD"] = "NESTED_FORM_FIELD";
|
|
516
|
-
})(OverrideEntityType
|
|
521
|
+
})(OverrideEntityType || (exports.OverrideEntityType = OverrideEntityType = {}));
|
|
517
522
|
var Kind;
|
|
518
523
|
(function (Kind) {
|
|
519
524
|
Kind["REGULAR"] = "REGULAR";
|
|
520
525
|
Kind["EXTENSION"] = "EXTENSION";
|
|
521
|
-
})(Kind
|
|
526
|
+
})(Kind || (exports.Kind = Kind = {}));
|
|
522
527
|
var EmailInfoTag;
|
|
523
528
|
(function (EmailInfoTag) {
|
|
524
529
|
EmailInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
525
530
|
EmailInfoTag["MAIN"] = "MAIN";
|
|
526
|
-
})(EmailInfoTag
|
|
531
|
+
})(EmailInfoTag || (exports.EmailInfoTag = EmailInfoTag = {}));
|
|
527
532
|
var PhoneInfoTag;
|
|
528
533
|
(function (PhoneInfoTag) {
|
|
529
534
|
PhoneInfoTag["UNTAGGED"] = "UNTAGGED";
|
|
530
535
|
PhoneInfoTag["MAIN"] = "MAIN";
|
|
531
|
-
})(PhoneInfoTag
|
|
536
|
+
})(PhoneInfoTag || (exports.PhoneInfoTag = PhoneInfoTag = {}));
|
|
532
537
|
var Tag;
|
|
533
538
|
(function (Tag) {
|
|
534
539
|
Tag["UNTAGGED"] = "UNTAGGED";
|
|
535
540
|
Tag["HOME"] = "HOME";
|
|
536
|
-
})(Tag
|
|
541
|
+
})(Tag || (exports.Tag = Tag = {}));
|
|
537
542
|
var ContactField;
|
|
538
543
|
(function (ContactField) {
|
|
539
544
|
ContactField["UNDEFINED"] = "UNDEFINED";
|
|
@@ -548,7 +553,7 @@ var ContactField;
|
|
|
548
553
|
ContactField["CUSTOM_FIELD"] = "CUSTOM_FIELD";
|
|
549
554
|
ContactField["SUBSCRIPTION"] = "SUBSCRIPTION";
|
|
550
555
|
ContactField["VAT_ID"] = "VAT_ID";
|
|
551
|
-
})(ContactField
|
|
556
|
+
})(ContactField || (exports.ContactField = ContactField = {}));
|
|
552
557
|
var IdentityType;
|
|
553
558
|
(function (IdentityType) {
|
|
554
559
|
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
@@ -558,12 +563,12 @@ var IdentityType;
|
|
|
558
563
|
IdentityType["MEMBER"] = "MEMBER";
|
|
559
564
|
/** Matching contact is a member, Merge logic won't be applied */
|
|
560
565
|
IdentityType["NOT_AUTHENTICATED_MEMBER"] = "NOT_AUTHENTICATED_MEMBER";
|
|
561
|
-
})(IdentityType
|
|
566
|
+
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
562
567
|
var SortOrder;
|
|
563
568
|
(function (SortOrder) {
|
|
564
569
|
SortOrder["ASC"] = "ASC";
|
|
565
570
|
SortOrder["DESC"] = "DESC";
|
|
566
|
-
})(SortOrder
|
|
571
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
567
572
|
const _bulkDeleteSubmissionRequest = {};
|
|
568
573
|
const _bulkDeleteSubmissionResponse = {};
|
|
569
574
|
const _bulkMarkSubmissionsAsSeenRequest = {};
|
|
@@ -648,10 +653,14 @@ function createSubmission(submission, options) {
|
|
|
648
653
|
return fromJSON(result.data);
|
|
649
654
|
}
|
|
650
655
|
catch (err) {
|
|
651
|
-
const transformedError = (0,
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
656
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
657
|
+
spreadPathsToArguments: {},
|
|
658
|
+
explicitPathsToArguments: {
|
|
659
|
+
submission: '$[0]',
|
|
660
|
+
captchaToken: '$[1].captchaToken',
|
|
661
|
+
},
|
|
662
|
+
singleArgumentUnchanged: false,
|
|
663
|
+
}, ['submission', 'options']);
|
|
655
664
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
656
665
|
throw transformedError;
|
|
657
666
|
}
|
|
@@ -671,13 +680,12 @@ exports.createSubmission = createSubmission;
|
|
|
671
680
|
* @permissionScope Read Orders
|
|
672
681
|
* @permissionScope Read Submissions
|
|
673
682
|
* @applicableIdentity APP
|
|
674
|
-
* @returns The retrieved submission.
|
|
675
683
|
*/
|
|
676
684
|
function getSubmission(submissionId) {
|
|
677
685
|
var _a, _b, _c;
|
|
678
686
|
return __awaiter(this, arguments, void 0, function* () {
|
|
679
687
|
const requestTransformation = { submissionId: '$[0]' };
|
|
680
|
-
const responseTransformation = '
|
|
688
|
+
const responseTransformation = '$';
|
|
681
689
|
// @ts-ignore
|
|
682
690
|
const { httpClient, sideEffects } = arguments[1];
|
|
683
691
|
const { toAmbassadorRequest } = (0, velo_1.serializer)({
|
|
@@ -708,9 +716,11 @@ function getSubmission(submissionId) {
|
|
|
708
716
|
return fromJSON(result.data);
|
|
709
717
|
}
|
|
710
718
|
catch (err) {
|
|
711
|
-
const transformedError = (0,
|
|
712
|
-
|
|
713
|
-
|
|
719
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
720
|
+
spreadPathsToArguments: {},
|
|
721
|
+
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
722
|
+
singleArgumentUnchanged: false,
|
|
723
|
+
}, ['submissionId']);
|
|
714
724
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
715
725
|
throw transformedError;
|
|
716
726
|
}
|
|
@@ -771,10 +781,11 @@ function updateSubmission(_id, submission) {
|
|
|
771
781
|
return fromJSON(result.data);
|
|
772
782
|
}
|
|
773
783
|
catch (err) {
|
|
774
|
-
const transformedError = (0,
|
|
775
|
-
'
|
|
776
|
-
'submission',
|
|
777
|
-
|
|
784
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
785
|
+
spreadPathsToArguments: { submission: '$[1]' },
|
|
786
|
+
explicitPathsToArguments: { 'submission.id': '$[0]' },
|
|
787
|
+
singleArgumentUnchanged: false,
|
|
788
|
+
}, ['_id', 'submission']);
|
|
778
789
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
779
790
|
throw transformedError;
|
|
780
791
|
}
|
|
@@ -832,9 +843,11 @@ function confirmSubmission(submissionId) {
|
|
|
832
843
|
return fromJSON(result.data);
|
|
833
844
|
}
|
|
834
845
|
catch (err) {
|
|
835
|
-
const transformedError = (0,
|
|
836
|
-
|
|
837
|
-
|
|
846
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
847
|
+
spreadPathsToArguments: {},
|
|
848
|
+
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
849
|
+
singleArgumentUnchanged: false,
|
|
850
|
+
}, ['submissionId']);
|
|
838
851
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
839
852
|
throw transformedError;
|
|
840
853
|
}
|
|
@@ -889,10 +902,14 @@ function deleteSubmission(submissionId, options) {
|
|
|
889
902
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
890
903
|
}
|
|
891
904
|
catch (err) {
|
|
892
|
-
const transformedError = (0,
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
905
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
906
|
+
spreadPathsToArguments: {},
|
|
907
|
+
explicitPathsToArguments: {
|
|
908
|
+
submissionId: '$[0]',
|
|
909
|
+
permanent: '$[1].permanent',
|
|
910
|
+
},
|
|
911
|
+
singleArgumentUnchanged: false,
|
|
912
|
+
}, ['submissionId', 'options']);
|
|
896
913
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
897
914
|
throw transformedError;
|
|
898
915
|
}
|
|
@@ -947,10 +964,15 @@ function bulkDeleteSubmission(formId, options) {
|
|
|
947
964
|
return fromJSON(result.data);
|
|
948
965
|
}
|
|
949
966
|
catch (err) {
|
|
950
|
-
const transformedError = (0,
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
967
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
968
|
+
spreadPathsToArguments: {},
|
|
969
|
+
explicitPathsToArguments: {
|
|
970
|
+
formId: '$[0]',
|
|
971
|
+
submissionIds: '$[1].submissionIds',
|
|
972
|
+
permanent: '$[1].permanent',
|
|
973
|
+
},
|
|
974
|
+
singleArgumentUnchanged: false,
|
|
975
|
+
}, ['formId', 'options']);
|
|
954
976
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
955
977
|
throw transformedError;
|
|
956
978
|
}
|
|
@@ -1001,9 +1023,11 @@ function restoreSubmissionFromTrashBin(submissionId) {
|
|
|
1001
1023
|
return fromJSON(result.data);
|
|
1002
1024
|
}
|
|
1003
1025
|
catch (err) {
|
|
1004
|
-
const transformedError = (0,
|
|
1005
|
-
|
|
1006
|
-
|
|
1026
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1027
|
+
spreadPathsToArguments: {},
|
|
1028
|
+
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1029
|
+
singleArgumentUnchanged: false,
|
|
1030
|
+
}, ['submissionId']);
|
|
1007
1031
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1008
1032
|
throw transformedError;
|
|
1009
1033
|
}
|
|
@@ -1053,9 +1077,11 @@ function removeSubmissionFromTrashBin(submissionId) {
|
|
|
1053
1077
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
1054
1078
|
}
|
|
1055
1079
|
catch (err) {
|
|
1056
|
-
const transformedError = (0,
|
|
1057
|
-
|
|
1058
|
-
|
|
1080
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1081
|
+
spreadPathsToArguments: {},
|
|
1082
|
+
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1083
|
+
singleArgumentUnchanged: false,
|
|
1084
|
+
}, ['submissionId']);
|
|
1059
1085
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1060
1086
|
throw transformedError;
|
|
1061
1087
|
}
|
|
@@ -1109,10 +1135,14 @@ function bulkRemoveSubmissionFromTrashBin(formId, options) {
|
|
|
1109
1135
|
return fromJSON(result.data);
|
|
1110
1136
|
}
|
|
1111
1137
|
catch (err) {
|
|
1112
|
-
const transformedError = (0,
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1138
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1139
|
+
spreadPathsToArguments: {},
|
|
1140
|
+
explicitPathsToArguments: {
|
|
1141
|
+
formId: '$[0]',
|
|
1142
|
+
submissionIds: '$[1].submissionIds',
|
|
1143
|
+
},
|
|
1144
|
+
singleArgumentUnchanged: false,
|
|
1145
|
+
}, ['formId', 'options']);
|
|
1116
1146
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1117
1147
|
throw transformedError;
|
|
1118
1148
|
}
|
|
@@ -1171,10 +1201,16 @@ function listDeletedSubmissions(formId, options) {
|
|
|
1171
1201
|
return fromJSON(result.data);
|
|
1172
1202
|
}
|
|
1173
1203
|
catch (err) {
|
|
1174
|
-
const transformedError = (0,
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1204
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1205
|
+
spreadPathsToArguments: {},
|
|
1206
|
+
explicitPathsToArguments: {
|
|
1207
|
+
formId: '$[0]',
|
|
1208
|
+
submissionIds: '$[1].submissionIds',
|
|
1209
|
+
paging: '$[1].paging',
|
|
1210
|
+
statuses: '$[1].statuses',
|
|
1211
|
+
},
|
|
1212
|
+
singleArgumentUnchanged: false,
|
|
1213
|
+
}, ['formId', 'options']);
|
|
1178
1214
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1179
1215
|
throw transformedError;
|
|
1180
1216
|
}
|
|
@@ -1228,9 +1264,11 @@ function getDeletedSubmission(submissionId) {
|
|
|
1228
1264
|
return fromJSON(result.data);
|
|
1229
1265
|
}
|
|
1230
1266
|
catch (err) {
|
|
1231
|
-
const transformedError = (0,
|
|
1232
|
-
|
|
1233
|
-
|
|
1267
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1268
|
+
spreadPathsToArguments: {},
|
|
1269
|
+
explicitPathsToArguments: { submissionId: '$[0]' },
|
|
1270
|
+
singleArgumentUnchanged: false,
|
|
1271
|
+
}, ['submissionId']);
|
|
1234
1272
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1235
1273
|
throw transformedError;
|
|
1236
1274
|
}
|
|
@@ -1367,11 +1405,15 @@ function countSubmissions(formIds, namespace, options) {
|
|
|
1367
1405
|
return fromJSON(result.data);
|
|
1368
1406
|
}
|
|
1369
1407
|
catch (err) {
|
|
1370
|
-
const transformedError = (0,
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1408
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1409
|
+
spreadPathsToArguments: {},
|
|
1410
|
+
explicitPathsToArguments: {
|
|
1411
|
+
formIds: '$[0]',
|
|
1412
|
+
namespace: '$[1]',
|
|
1413
|
+
statuses: '$[2].statuses',
|
|
1414
|
+
},
|
|
1415
|
+
singleArgumentUnchanged: false,
|
|
1416
|
+
}, ['formIds', 'namespace', 'options']);
|
|
1375
1417
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1376
1418
|
throw transformedError;
|
|
1377
1419
|
}
|
|
@@ -1434,11 +1476,15 @@ function countDeletedSubmissions(formIds, namespace, options) {
|
|
|
1434
1476
|
return fromJSON(result.data);
|
|
1435
1477
|
}
|
|
1436
1478
|
catch (err) {
|
|
1437
|
-
const transformedError = (0,
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1479
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1480
|
+
spreadPathsToArguments: {},
|
|
1481
|
+
explicitPathsToArguments: {
|
|
1482
|
+
formIds: '$[0]',
|
|
1483
|
+
namespace: '$[1]',
|
|
1484
|
+
statuses: '$[2].statuses',
|
|
1485
|
+
},
|
|
1486
|
+
singleArgumentUnchanged: false,
|
|
1487
|
+
}, ['formIds', 'namespace', 'options']);
|
|
1442
1488
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1443
1489
|
throw transformedError;
|
|
1444
1490
|
}
|
|
@@ -1503,11 +1549,15 @@ function getMediaUploadUrl(formId, filename, mimeType) {
|
|
|
1503
1549
|
return fromJSON(result.data);
|
|
1504
1550
|
}
|
|
1505
1551
|
catch (err) {
|
|
1506
|
-
const transformedError = (0,
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1552
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1553
|
+
spreadPathsToArguments: {},
|
|
1554
|
+
explicitPathsToArguments: {
|
|
1555
|
+
formId: '$[0]',
|
|
1556
|
+
filename: '$[1]',
|
|
1557
|
+
mimeType: '$[2]',
|
|
1558
|
+
},
|
|
1559
|
+
singleArgumentUnchanged: false,
|
|
1560
|
+
}, ['formId', 'filename', 'mimeType']);
|
|
1511
1561
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1512
1562
|
throw transformedError;
|
|
1513
1563
|
}
|
|
@@ -1567,10 +1617,11 @@ function bulkMarkSubmissionsAsSeen(ids, formId) {
|
|
|
1567
1617
|
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
1568
1618
|
}
|
|
1569
1619
|
catch (err) {
|
|
1570
|
-
const transformedError = (0,
|
|
1571
|
-
|
|
1572
|
-
'formId',
|
|
1573
|
-
|
|
1620
|
+
const transformedError = (0, transform_error_1.transformError)(err, {
|
|
1621
|
+
spreadPathsToArguments: {},
|
|
1622
|
+
explicitPathsToArguments: { ids: '$[0]', formId: '$[1]' },
|
|
1623
|
+
singleArgumentUnchanged: false,
|
|
1624
|
+
}, ['ids', 'formId']);
|
|
1574
1625
|
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
1575
1626
|
throw transformedError;
|
|
1576
1627
|
}
|