@wix/auto_sdk_forms_submissions 1.0.4 → 1.0.5
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/src/forms-v4-submission-submissions.context.d.ts +4 -4
- package/build/cjs/src/forms-v4-submission-submissions.context.js +4 -4
- package/build/cjs/src/forms-v4-submission-submissions.context.js.map +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.http.d.ts +2 -2
- package/build/cjs/src/forms-v4-submission-submissions.http.js +54 -54
- package/build/cjs/src/forms-v4-submission-submissions.http.js.map +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.meta.d.ts +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.meta.js +20 -20
- package/build/cjs/src/forms-v4-submission-submissions.meta.js.map +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.public.d.ts +8 -8
- package/build/cjs/src/forms-v4-submission-submissions.public.js +7 -7
- package/build/cjs/src/forms-v4-submission-submissions.public.js.map +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.types.d.ts +1199 -306
- package/build/cjs/src/forms-v4-submission-submissions.types.js +11 -11
- package/build/cjs/src/forms-v4-submission-submissions.types.js.map +1 -1
- package/build/cjs/src/forms-v4-submission-submissions.universal.d.ts +1267 -332
- package/build/cjs/src/forms-v4-submission-submissions.universal.js +50 -50
- package/build/cjs/src/forms-v4-submission-submissions.universal.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.context.d.ts +4 -4
- package/build/es/src/forms-v4-submission-submissions.context.js +3 -3
- package/build/es/src/forms-v4-submission-submissions.context.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.http.d.ts +2 -2
- package/build/es/src/forms-v4-submission-submissions.http.js +52 -52
- package/build/es/src/forms-v4-submission-submissions.http.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.meta.d.ts +1 -1
- package/build/es/src/forms-v4-submission-submissions.meta.js +18 -18
- package/build/es/src/forms-v4-submission-submissions.meta.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.public.d.ts +8 -8
- package/build/es/src/forms-v4-submission-submissions.public.js +5 -5
- package/build/es/src/forms-v4-submission-submissions.public.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.types.d.ts +1199 -306
- package/build/es/src/forms-v4-submission-submissions.types.js +10 -10
- package/build/es/src/forms-v4-submission-submissions.types.js.map +1 -1
- package/build/es/src/forms-v4-submission-submissions.universal.d.ts +1267 -332
- package/build/es/src/forms-v4-submission-submissions.universal.js +48 -48
- package/build/es/src/forms-v4-submission-submissions.universal.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.d.ts +4 -4
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.js +4 -4
- package/build/internal/cjs/src/forms-v4-submission-submissions.context.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.d.ts +2 -2
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.js +54 -54
- package/build/internal/cjs/src/forms-v4-submission-submissions.http.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.d.ts +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js +20 -20
- package/build/internal/cjs/src/forms-v4-submission-submissions.meta.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.d.ts +8 -8
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.js +7 -7
- package/build/internal/cjs/src/forms-v4-submission-submissions.public.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.d.ts +1199 -306
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.js +11 -11
- package/build/internal/cjs/src/forms-v4-submission-submissions.types.js.map +1 -1
- package/build/internal/cjs/src/forms-v4-submission-submissions.universal.d.ts +1267 -332
- package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js +50 -50
- package/build/internal/cjs/src/forms-v4-submission-submissions.universal.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.context.d.ts +4 -4
- package/build/internal/es/src/forms-v4-submission-submissions.context.js +3 -3
- package/build/internal/es/src/forms-v4-submission-submissions.context.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.http.d.ts +2 -2
- package/build/internal/es/src/forms-v4-submission-submissions.http.js +52 -52
- package/build/internal/es/src/forms-v4-submission-submissions.http.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.meta.d.ts +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.meta.js +18 -18
- package/build/internal/es/src/forms-v4-submission-submissions.meta.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.public.d.ts +8 -8
- package/build/internal/es/src/forms-v4-submission-submissions.public.js +5 -5
- package/build/internal/es/src/forms-v4-submission-submissions.public.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.types.d.ts +1199 -306
- package/build/internal/es/src/forms-v4-submission-submissions.types.js +10 -10
- package/build/internal/es/src/forms-v4-submission-submissions.types.js.map +1 -1
- package/build/internal/es/src/forms-v4-submission-submissions.universal.d.ts +1267 -332
- package/build/internal/es/src/forms-v4-submission-submissions.universal.js +48 -48
- package/build/internal/es/src/forms-v4-submission-submissions.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,13 +2,20 @@
|
|
|
2
2
|
export interface FormSubmission {
|
|
3
3
|
/**
|
|
4
4
|
* Submission ID.
|
|
5
|
+
* @format GUID
|
|
5
6
|
* @readonly
|
|
6
7
|
*/
|
|
7
8
|
_id?: string | null;
|
|
8
|
-
/**
|
|
9
|
+
/**
|
|
10
|
+
* ID of the form which the submission belongs to.
|
|
11
|
+
* @format GUID
|
|
12
|
+
* @immutable
|
|
13
|
+
*/
|
|
9
14
|
formId?: string;
|
|
10
15
|
/**
|
|
11
16
|
* The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `Get Submission` to retrieve the namespace.
|
|
17
|
+
* @minLength 10
|
|
18
|
+
* @maxLength 50
|
|
12
19
|
* @readonly
|
|
13
20
|
*/
|
|
14
21
|
namespace?: string;
|
|
@@ -16,7 +23,10 @@ export interface FormSubmission {
|
|
|
16
23
|
status?: SubmissionStatus;
|
|
17
24
|
/** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
|
|
18
25
|
submissions?: Record<string, any>;
|
|
19
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Date and time the form submission was created.
|
|
28
|
+
* @immutable
|
|
29
|
+
*/
|
|
20
30
|
_createdDate?: Date | null;
|
|
21
31
|
/**
|
|
22
32
|
* Date and time the form submission was updated.
|
|
@@ -39,14 +49,22 @@ export interface FormSubmission {
|
|
|
39
49
|
extendedFields?: ExtendedFields;
|
|
40
50
|
/**
|
|
41
51
|
* Order details. <br>
|
|
42
|
-
* <b>Note</b>: This object is only applicable when
|
|
52
|
+
* <b>Note</b>: This object is only applicable when submitting a form in the Wix Payments app.
|
|
43
53
|
*/
|
|
44
54
|
orderDetails?: OrderDetails;
|
|
45
|
-
/**
|
|
55
|
+
/**
|
|
56
|
+
* Contact ID of a site visitor who created the submission.
|
|
57
|
+
* @format GUID
|
|
58
|
+
* @immutable
|
|
59
|
+
*/
|
|
46
60
|
contactId?: string | null;
|
|
47
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Authorized viewer ID.
|
|
63
|
+
* @format GUID
|
|
64
|
+
* @immutable
|
|
65
|
+
*/
|
|
48
66
|
accessRestriction?: string | null;
|
|
49
|
-
/** Tag
|
|
67
|
+
/** Tag IDs collections associated with the current entity. */
|
|
50
68
|
tags?: PublicTags;
|
|
51
69
|
}
|
|
52
70
|
export declare enum SubmissionStatus {
|
|
@@ -61,24 +79,48 @@ export declare enum SubmissionStatus {
|
|
|
61
79
|
PAYMENT_CANCELED = "PAYMENT_CANCELED"
|
|
62
80
|
}
|
|
63
81
|
export interface Submitter extends SubmitterSubmitterOneOf {
|
|
64
|
-
/**
|
|
82
|
+
/**
|
|
83
|
+
* Member ID.
|
|
84
|
+
* @format GUID
|
|
85
|
+
*/
|
|
65
86
|
memberId?: string | null;
|
|
66
|
-
/**
|
|
87
|
+
/**
|
|
88
|
+
* Visitor ID.
|
|
89
|
+
* @format GUID
|
|
90
|
+
*/
|
|
67
91
|
visitorId?: string | null;
|
|
68
|
-
/**
|
|
92
|
+
/**
|
|
93
|
+
* Application ID.
|
|
94
|
+
* @maxLength 36
|
|
95
|
+
*/
|
|
69
96
|
applicationId?: string | null;
|
|
70
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* User ID.
|
|
99
|
+
* @format GUID
|
|
100
|
+
*/
|
|
71
101
|
userId?: string | null;
|
|
72
102
|
}
|
|
73
103
|
/** @oneof */
|
|
74
104
|
export interface SubmitterSubmitterOneOf {
|
|
75
|
-
/**
|
|
105
|
+
/**
|
|
106
|
+
* Member ID.
|
|
107
|
+
* @format GUID
|
|
108
|
+
*/
|
|
76
109
|
memberId?: string | null;
|
|
77
|
-
/**
|
|
110
|
+
/**
|
|
111
|
+
* Visitor ID.
|
|
112
|
+
* @format GUID
|
|
113
|
+
*/
|
|
78
114
|
visitorId?: string | null;
|
|
79
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* Application ID.
|
|
117
|
+
* @maxLength 36
|
|
118
|
+
*/
|
|
80
119
|
applicationId?: string | null;
|
|
81
|
-
/**
|
|
120
|
+
/**
|
|
121
|
+
* User ID.
|
|
122
|
+
* @format GUID
|
|
123
|
+
*/
|
|
82
124
|
userId?: string | null;
|
|
83
125
|
}
|
|
84
126
|
export interface ExtendedFields {
|
|
@@ -95,6 +137,7 @@ export interface ExtendedFields {
|
|
|
95
137
|
export interface OrderDetails {
|
|
96
138
|
/**
|
|
97
139
|
* ID of the order related to submission (only applicable if a form has payments).
|
|
140
|
+
* @format GUID
|
|
98
141
|
* @readonly
|
|
99
142
|
*/
|
|
100
143
|
orderId?: string | null;
|
|
@@ -105,16 +148,19 @@ export interface OrderDetails {
|
|
|
105
148
|
number?: string | null;
|
|
106
149
|
/**
|
|
107
150
|
* Currency.
|
|
151
|
+
* @format CURRENCY
|
|
108
152
|
* @readonly
|
|
109
153
|
*/
|
|
110
154
|
currency?: string | null;
|
|
111
155
|
/**
|
|
112
156
|
* Item subtotal.
|
|
157
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
113
158
|
* @readonly
|
|
114
159
|
*/
|
|
115
160
|
itemSubtotal?: string;
|
|
116
161
|
/**
|
|
117
162
|
* ID of the checkout related to submission (only applicable if a form has payments).
|
|
163
|
+
* @format GUID
|
|
118
164
|
* @readonly
|
|
119
165
|
*/
|
|
120
166
|
checkoutId?: string;
|
|
@@ -124,7 +170,11 @@ export interface PublicTags {
|
|
|
124
170
|
tags?: TagList;
|
|
125
171
|
}
|
|
126
172
|
export interface TagList {
|
|
127
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* List of tag IDs
|
|
175
|
+
* @maxSize 100
|
|
176
|
+
* @maxLength 5
|
|
177
|
+
*/
|
|
128
178
|
tagIds?: string[];
|
|
129
179
|
}
|
|
130
180
|
export interface FormSubmissionStatusUpdatedEvent {
|
|
@@ -140,18 +190,31 @@ export interface RemovedSubmissionFromTrash {
|
|
|
140
190
|
export interface SubmissionContactMapped {
|
|
141
191
|
/**
|
|
142
192
|
* Mapped upserted contact ID.
|
|
193
|
+
* @format GUID
|
|
143
194
|
* @readonly
|
|
144
195
|
*/
|
|
145
196
|
contactId?: string;
|
|
146
|
-
/**
|
|
197
|
+
/**
|
|
198
|
+
* Identifies the namespace that the submission's form belongs to.
|
|
199
|
+
* @minLength 10
|
|
200
|
+
* @maxLength 50
|
|
201
|
+
* @immutable
|
|
202
|
+
*/
|
|
147
203
|
namespace?: string;
|
|
148
204
|
/** Marketing subscription details */
|
|
149
205
|
marketingSubscriptionDetails?: MarketingSubscriptionDetails;
|
|
150
206
|
}
|
|
151
207
|
export interface MarketingSubscriptionDetails {
|
|
152
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Form id which was submitted
|
|
210
|
+
* @format GUID
|
|
211
|
+
*/
|
|
153
212
|
formId?: string;
|
|
154
|
-
/**
|
|
213
|
+
/**
|
|
214
|
+
* Mapped contact emails.
|
|
215
|
+
* @format EMAIL
|
|
216
|
+
* @maxSize 100
|
|
217
|
+
*/
|
|
155
218
|
emails?: string[];
|
|
156
219
|
/**
|
|
157
220
|
* Date and time the form submission was created.
|
|
@@ -171,12 +234,21 @@ export declare enum OptInLevel {
|
|
|
171
234
|
DOUBLE_CONFIRMATION = "DOUBLE_CONFIRMATION"
|
|
172
235
|
}
|
|
173
236
|
export interface SubmissionContactMappingSkipped {
|
|
174
|
-
/**
|
|
237
|
+
/**
|
|
238
|
+
* Form Id.
|
|
239
|
+
* @format GUID
|
|
240
|
+
*/
|
|
175
241
|
formId?: string;
|
|
176
|
-
/**
|
|
242
|
+
/**
|
|
243
|
+
* Identifies the namespace that the submission's form belongs to.
|
|
244
|
+
* @minLength 10
|
|
245
|
+
* @maxLength 50
|
|
246
|
+
* @immutable
|
|
247
|
+
*/
|
|
177
248
|
namespace?: string;
|
|
178
249
|
/**
|
|
179
250
|
* Contact ID resolved from the submission context.
|
|
251
|
+
* @format GUID
|
|
180
252
|
* @readonly
|
|
181
253
|
*/
|
|
182
254
|
contactId?: string | null;
|
|
@@ -195,17 +267,25 @@ export interface CreateCheckoutFromSubmissionRequestFormSchemaIdentifierOneOf {
|
|
|
195
267
|
export interface Form {
|
|
196
268
|
/**
|
|
197
269
|
* Form ID.
|
|
270
|
+
* @format GUID
|
|
198
271
|
* @readonly
|
|
199
272
|
*/
|
|
200
273
|
_id?: string | null;
|
|
201
274
|
/**
|
|
202
275
|
* List of form fields that represent input elements.
|
|
276
|
+
* @maxSize 500
|
|
203
277
|
* @readonly
|
|
204
278
|
*/
|
|
205
279
|
fieldsV2?: FormFieldV2[];
|
|
206
|
-
/**
|
|
280
|
+
/**
|
|
281
|
+
* Defines the layout for form fields in each submission step.
|
|
282
|
+
* @maxSize 100
|
|
283
|
+
*/
|
|
207
284
|
steps?: Step[];
|
|
208
|
-
/**
|
|
285
|
+
/**
|
|
286
|
+
* Form rules, can be applied to layout and items properties.
|
|
287
|
+
* @maxSize 100
|
|
288
|
+
*/
|
|
209
289
|
rules?: FormRule[];
|
|
210
290
|
/**
|
|
211
291
|
* Represents the current state of an item. Each time the item is modified, its `revision` changes. For an update operation to succeed, you MUST pass the latest revision.
|
|
@@ -226,20 +306,28 @@ export interface Form {
|
|
|
226
306
|
properties?: FormProperties;
|
|
227
307
|
/**
|
|
228
308
|
* Fields which were soft deleted.
|
|
309
|
+
* @maxSize 150
|
|
229
310
|
* @readonly
|
|
230
311
|
*/
|
|
231
312
|
deletedFields?: FormField[];
|
|
232
313
|
/**
|
|
233
314
|
* List of form fields that represent input elements.
|
|
315
|
+
* @maxSize 150
|
|
234
316
|
* @readonly
|
|
235
317
|
*/
|
|
236
318
|
deletedFieldsV2?: FormFieldV2[];
|
|
237
319
|
/** Data extensions ExtendedFields. */
|
|
238
320
|
extendedFields?: ExtendedFields;
|
|
239
|
-
/**
|
|
321
|
+
/**
|
|
322
|
+
* Identifies the namespace that the form belongs to.
|
|
323
|
+
* @minLength 10
|
|
324
|
+
* @maxLength 50
|
|
325
|
+
* @immutable
|
|
326
|
+
*/
|
|
240
327
|
namespace?: string;
|
|
241
328
|
/**
|
|
242
329
|
* Media folder ID.
|
|
330
|
+
* @maxLength 100
|
|
243
331
|
* @readonly
|
|
244
332
|
*/
|
|
245
333
|
mediaFolderId?: string | null;
|
|
@@ -254,15 +342,23 @@ export interface Form {
|
|
|
254
342
|
requiredIndicatorProperties?: RequiredIndicatorProperties;
|
|
255
343
|
/** Settings for actions to be taken after form submission. */
|
|
256
344
|
submitSettings?: SubmitSettings;
|
|
257
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Settings for field groups
|
|
347
|
+
* @maxSize 50
|
|
348
|
+
*/
|
|
258
349
|
fieldGroups?: FieldGroup[];
|
|
259
350
|
/** Message shown when the form is disabled */
|
|
260
351
|
disabledFormMessage?: RichContent;
|
|
261
352
|
/**
|
|
262
|
-
* Identifies if the form is
|
|
353
|
+
* Identifies if the form is enabled.
|
|
263
354
|
* Default true
|
|
264
355
|
*/
|
|
265
356
|
enabled?: boolean | null;
|
|
357
|
+
/**
|
|
358
|
+
* Form name.
|
|
359
|
+
* @maxLength 200
|
|
360
|
+
*/
|
|
361
|
+
name?: string | null;
|
|
266
362
|
}
|
|
267
363
|
export declare enum RequiredIndicator {
|
|
268
364
|
/** Unknown required indicator. */
|
|
@@ -283,9 +379,17 @@ export declare enum RequiredIndicatorPlacement {
|
|
|
283
379
|
BEFORE_FIELD_TITLE = "BEFORE_FIELD_TITLE"
|
|
284
380
|
}
|
|
285
381
|
export interface FormField {
|
|
286
|
-
/**
|
|
382
|
+
/**
|
|
383
|
+
* Item ID.
|
|
384
|
+
* @format GUID
|
|
385
|
+
* @immutable
|
|
386
|
+
*/
|
|
287
387
|
_id?: string;
|
|
288
|
-
/**
|
|
388
|
+
/**
|
|
389
|
+
* Definition of a target where the value of field belongs.
|
|
390
|
+
* @maxLength 200
|
|
391
|
+
* @immutable
|
|
392
|
+
*/
|
|
289
393
|
target?: string | null;
|
|
290
394
|
/** Validation of field output value. */
|
|
291
395
|
validation?: Validation;
|
|
@@ -314,17 +418,30 @@ export interface StringType extends StringTypeFormatOptionsOneOf {
|
|
|
314
418
|
dateOptionalTimeOptions?: DateTimeConstraints;
|
|
315
419
|
/** PHONE format options */
|
|
316
420
|
phoneOptions?: PhoneConstraints;
|
|
317
|
-
/**
|
|
421
|
+
/**
|
|
422
|
+
* Minimum length.
|
|
423
|
+
* @max 20000
|
|
424
|
+
*/
|
|
318
425
|
minLength?: number | null;
|
|
319
|
-
/**
|
|
426
|
+
/**
|
|
427
|
+
* Maximum length.
|
|
428
|
+
* @max 20000
|
|
429
|
+
*/
|
|
320
430
|
maxLength?: number | null;
|
|
321
|
-
/**
|
|
431
|
+
/**
|
|
432
|
+
* Pattern for a regular expression match.
|
|
433
|
+
* @maxLength 500
|
|
434
|
+
*/
|
|
322
435
|
pattern?: string | null;
|
|
323
436
|
/** Format of a string. */
|
|
324
437
|
format?: FormatEnumFormat;
|
|
325
438
|
/** Custom error messages when validation fails. */
|
|
326
439
|
errorMessages?: StringErrorMessages;
|
|
327
|
-
/**
|
|
440
|
+
/**
|
|
441
|
+
* List of allowed values.
|
|
442
|
+
* @maxSize 500
|
|
443
|
+
* @maxLength 20000
|
|
444
|
+
*/
|
|
328
445
|
enum?: string[] | null;
|
|
329
446
|
}
|
|
330
447
|
/** @oneof */
|
|
@@ -357,7 +474,10 @@ export declare enum FormatEnumFormat {
|
|
|
357
474
|
DATE_OPTIONAL_TIME = "DATE_OPTIONAL_TIME"
|
|
358
475
|
}
|
|
359
476
|
export interface StringErrorMessages {
|
|
360
|
-
/**
|
|
477
|
+
/**
|
|
478
|
+
* Default error message on invalid validation.
|
|
479
|
+
* @maxLength 200
|
|
480
|
+
*/
|
|
361
481
|
default?: string | null;
|
|
362
482
|
}
|
|
363
483
|
export interface DateTimeConstraints {
|
|
@@ -366,6 +486,7 @@ export interface DateTimeConstraints {
|
|
|
366
486
|
* dynamic calculations can be performed using special keywords such as "$now" to represent the current date and time.
|
|
367
487
|
* The dynamic calculation supports expressions like "$now+2d" (2 days in the future), "$now-1h" (1 hour in the past), etc.
|
|
368
488
|
* The regex pattern for dynamic calculations is: \$now([+-]\d{1,2})([yMdmh])
|
|
489
|
+
* @maxLength 50
|
|
369
490
|
*/
|
|
370
491
|
minimum?: string | null;
|
|
371
492
|
/**
|
|
@@ -373,11 +494,16 @@ export interface DateTimeConstraints {
|
|
|
373
494
|
* dynamic calculations can be performed using special keywords such as "$now" to represent the current date and time.
|
|
374
495
|
* The dynamic calculation supports expressions like "$now+2d" (2 days in the future), "$now-1h" (1 hour in the past), etc.
|
|
375
496
|
* The regex pattern for dynamic calculations is: \$now([+-]\d{1,2})([yMdmh])
|
|
497
|
+
* @maxLength 50
|
|
376
498
|
*/
|
|
377
499
|
maximum?: string | null;
|
|
378
500
|
}
|
|
379
501
|
export interface PhoneConstraints {
|
|
380
|
-
/**
|
|
502
|
+
/**
|
|
503
|
+
* Country codes for phone number that are allowed
|
|
504
|
+
* @maxSize 250
|
|
505
|
+
* @maxLength 2
|
|
506
|
+
*/
|
|
381
507
|
allowedCountryCodes?: string[];
|
|
382
508
|
}
|
|
383
509
|
export interface NumberType {
|
|
@@ -389,11 +515,17 @@ export interface NumberType {
|
|
|
389
515
|
multipleOf?: number | null;
|
|
390
516
|
/** Custom error message when validation fails. */
|
|
391
517
|
errorMessages?: NumberErrorMessages;
|
|
392
|
-
/**
|
|
518
|
+
/**
|
|
519
|
+
* List of allowed values.
|
|
520
|
+
* @maxSize 500
|
|
521
|
+
*/
|
|
393
522
|
enum?: number[] | null;
|
|
394
523
|
}
|
|
395
524
|
export interface NumberErrorMessages {
|
|
396
|
-
/**
|
|
525
|
+
/**
|
|
526
|
+
* Default error message on invalid validation.
|
|
527
|
+
* @maxLength 200
|
|
528
|
+
*/
|
|
397
529
|
default?: string | null;
|
|
398
530
|
}
|
|
399
531
|
export interface IntegerType {
|
|
@@ -405,23 +537,38 @@ export interface IntegerType {
|
|
|
405
537
|
multipleOf?: number | null;
|
|
406
538
|
/** Custom error message when validation fails. */
|
|
407
539
|
errorMessages?: NumberErrorMessages;
|
|
408
|
-
/**
|
|
540
|
+
/**
|
|
541
|
+
* List of allowed values.
|
|
542
|
+
* @maxSize 500
|
|
543
|
+
*/
|
|
409
544
|
enum?: number[] | null;
|
|
410
545
|
}
|
|
411
546
|
export interface BooleanType {
|
|
412
547
|
/** Custom error message when validation fails. */
|
|
413
548
|
errorMessages?: BooleanErrorMessages;
|
|
414
|
-
/**
|
|
549
|
+
/**
|
|
550
|
+
* List of allowed values.
|
|
551
|
+
* @maxSize 2
|
|
552
|
+
*/
|
|
415
553
|
enum?: boolean[];
|
|
416
554
|
}
|
|
417
555
|
export interface BooleanErrorMessages {
|
|
418
|
-
/**
|
|
556
|
+
/**
|
|
557
|
+
* Default error message on invalid validation.
|
|
558
|
+
* @maxLength 200
|
|
559
|
+
*/
|
|
419
560
|
default?: string | null;
|
|
420
561
|
}
|
|
421
562
|
export interface ArrayType {
|
|
422
|
-
/**
|
|
563
|
+
/**
|
|
564
|
+
* Maximum amount of array elements.
|
|
565
|
+
* @max 1000
|
|
566
|
+
*/
|
|
423
567
|
maxItems?: number | null;
|
|
424
|
-
/**
|
|
568
|
+
/**
|
|
569
|
+
* Minimum amount of array elements.
|
|
570
|
+
* @max 1000
|
|
571
|
+
*/
|
|
425
572
|
minItems?: number | null;
|
|
426
573
|
/** Type of items allowed in array. */
|
|
427
574
|
items?: ArrayItems;
|
|
@@ -462,7 +609,10 @@ export interface PropertiesTypePropertiesTypeOneOf {
|
|
|
462
609
|
array?: ArrayType;
|
|
463
610
|
}
|
|
464
611
|
export interface ObjectErrorMessages {
|
|
465
|
-
/**
|
|
612
|
+
/**
|
|
613
|
+
* Default error message on invalid validation.
|
|
614
|
+
* @maxLength 200
|
|
615
|
+
*/
|
|
466
616
|
default?: string | null;
|
|
467
617
|
}
|
|
468
618
|
export interface ArrayItems extends ArrayItemsItemsOneOf {
|
|
@@ -491,7 +641,10 @@ export interface ArrayItemsItemsOneOf {
|
|
|
491
641
|
object?: ObjectType;
|
|
492
642
|
}
|
|
493
643
|
export interface ArrayErrorMessages {
|
|
494
|
-
/**
|
|
644
|
+
/**
|
|
645
|
+
* Default error message on invalid validation.
|
|
646
|
+
* @maxLength 200
|
|
647
|
+
*/
|
|
495
648
|
default?: string | null;
|
|
496
649
|
}
|
|
497
650
|
export interface PredefinedValidation extends PredefinedValidationFormatOptionsOneOf {
|
|
@@ -521,11 +674,21 @@ export declare enum ValidationFormat {
|
|
|
521
674
|
SCHEDULING = "SCHEDULING"
|
|
522
675
|
}
|
|
523
676
|
export interface PaymentType {
|
|
524
|
-
/**
|
|
677
|
+
/**
|
|
678
|
+
* Field mapped to products.
|
|
679
|
+
* @minSize 1
|
|
680
|
+
* @maxSize 100
|
|
681
|
+
*/
|
|
525
682
|
products?: Product[];
|
|
526
|
-
/**
|
|
683
|
+
/**
|
|
684
|
+
* Minimum amount of different products.
|
|
685
|
+
* @max 100
|
|
686
|
+
*/
|
|
527
687
|
minItems?: number | null;
|
|
528
|
-
/**
|
|
688
|
+
/**
|
|
689
|
+
* Maximum amount of different products.
|
|
690
|
+
* @max 100
|
|
691
|
+
*/
|
|
529
692
|
maxItems?: number | null;
|
|
530
693
|
}
|
|
531
694
|
export declare enum ProductType {
|
|
@@ -545,19 +708,36 @@ export declare enum PriceType {
|
|
|
545
708
|
DYNAMIC_PRICE = "DYNAMIC_PRICE"
|
|
546
709
|
}
|
|
547
710
|
export interface QuantityLimit {
|
|
548
|
-
/**
|
|
711
|
+
/**
|
|
712
|
+
* Minimum quantity.
|
|
713
|
+
* @min 1
|
|
714
|
+
* @max 100000
|
|
715
|
+
*/
|
|
549
716
|
minimum?: number | null;
|
|
550
|
-
/**
|
|
717
|
+
/**
|
|
718
|
+
* Maximum quantity.
|
|
719
|
+
* @min 1
|
|
720
|
+
* @max 100000
|
|
721
|
+
*/
|
|
551
722
|
maximum?: number | null;
|
|
552
723
|
}
|
|
553
724
|
export interface FixedPriceOptions {
|
|
554
|
-
/**
|
|
725
|
+
/**
|
|
726
|
+
* Fixed price monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99).
|
|
727
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
728
|
+
*/
|
|
555
729
|
price?: string;
|
|
556
730
|
}
|
|
557
731
|
export interface DynamicPriceOptions {
|
|
558
|
-
/**
|
|
732
|
+
/**
|
|
733
|
+
* Minimal price monetary amount.
|
|
734
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
735
|
+
*/
|
|
559
736
|
minPrice?: string;
|
|
560
|
-
/**
|
|
737
|
+
/**
|
|
738
|
+
* Maximal price monetary amount.
|
|
739
|
+
* @decimalValue options { gte:0.00, maxScale:2 }
|
|
740
|
+
*/
|
|
561
741
|
maxPrice?: string | null;
|
|
562
742
|
}
|
|
563
743
|
export interface Product extends ProductPriceOptionsOneOf {
|
|
@@ -567,6 +747,7 @@ export interface Product extends ProductPriceOptionsOneOf {
|
|
|
567
747
|
dynamicPriceOptions?: DynamicPriceOptions;
|
|
568
748
|
/**
|
|
569
749
|
* Product ID.
|
|
750
|
+
* @format GUID
|
|
570
751
|
* @readonly
|
|
571
752
|
*/
|
|
572
753
|
_id?: string;
|
|
@@ -585,7 +766,11 @@ export interface ProductPriceOptionsOneOf {
|
|
|
585
766
|
dynamicPriceOptions?: DynamicPriceOptions;
|
|
586
767
|
}
|
|
587
768
|
export interface MultilineAddressValidation {
|
|
588
|
-
/**
|
|
769
|
+
/**
|
|
770
|
+
* Allowed countries. No countries treated as all.
|
|
771
|
+
* @format COUNTRY
|
|
772
|
+
* @maxSize 200
|
|
773
|
+
*/
|
|
589
774
|
allowedCountries?: string[];
|
|
590
775
|
/** Fields overrides. */
|
|
591
776
|
fields?: FieldsOverrides;
|
|
@@ -654,7 +839,12 @@ export interface ValidationValidationOneOf {
|
|
|
654
839
|
predefined?: PredefinedValidation;
|
|
655
840
|
}
|
|
656
841
|
export interface DataExtensionsDetails {
|
|
657
|
-
/**
|
|
842
|
+
/**
|
|
843
|
+
* FQDNS which can be extended with this field
|
|
844
|
+
* @maxSize 10
|
|
845
|
+
* @maxLength 100
|
|
846
|
+
* @immutable
|
|
847
|
+
*/
|
|
658
848
|
fqdns?: string[];
|
|
659
849
|
}
|
|
660
850
|
export interface NestedFormOverrides {
|
|
@@ -666,7 +856,11 @@ export interface FormFieldV2 extends FormFieldV2FieldTypeOptionsOneOf {
|
|
|
666
856
|
inputOptions?: InputField;
|
|
667
857
|
/** Field for displaying information such as header or text paragraph */
|
|
668
858
|
displayOptions?: DisplayField;
|
|
669
|
-
/**
|
|
859
|
+
/**
|
|
860
|
+
* Field id.
|
|
861
|
+
* @format GUID
|
|
862
|
+
* @immutable
|
|
863
|
+
*/
|
|
670
864
|
_id?: string;
|
|
671
865
|
/**
|
|
672
866
|
* Whether the field is hidden.
|
|
@@ -697,17 +891,30 @@ export interface InputFieldStringType extends InputFieldStringTypeFormatOptionsO
|
|
|
697
891
|
dateOptionalTimeOptions?: StringTypeDateTimeConstraints;
|
|
698
892
|
/** PHONE format options */
|
|
699
893
|
phoneOptions?: StringTypePhoneConstraints;
|
|
700
|
-
/**
|
|
894
|
+
/**
|
|
895
|
+
* Minimum length.
|
|
896
|
+
* @max 20000
|
|
897
|
+
*/
|
|
701
898
|
minLength?: number | null;
|
|
702
|
-
/**
|
|
899
|
+
/**
|
|
900
|
+
* Maximum length.
|
|
901
|
+
* @max 20000
|
|
902
|
+
*/
|
|
703
903
|
maxLength?: number | null;
|
|
704
|
-
/**
|
|
904
|
+
/**
|
|
905
|
+
* Pattern for a regular expression match.
|
|
906
|
+
* @maxLength 500
|
|
907
|
+
*/
|
|
705
908
|
pattern?: string | null;
|
|
706
909
|
/** Format of a string. */
|
|
707
910
|
format?: StringTypeFormatEnumFormat;
|
|
708
911
|
/** Custom error messages when validation fails. */
|
|
709
912
|
errorMessages?: InputFieldStringErrorMessages;
|
|
710
|
-
/**
|
|
913
|
+
/**
|
|
914
|
+
* List of allowed values.
|
|
915
|
+
* @maxSize 500
|
|
916
|
+
* @maxLength 20000
|
|
917
|
+
*/
|
|
711
918
|
enum?: string[] | null;
|
|
712
919
|
}
|
|
713
920
|
/** @oneof */
|
|
@@ -740,7 +947,10 @@ export declare enum StringTypeFormatEnumFormat {
|
|
|
740
947
|
DATE_OPTIONAL_TIME = "DATE_OPTIONAL_TIME"
|
|
741
948
|
}
|
|
742
949
|
export interface InputFieldStringErrorMessages {
|
|
743
|
-
/**
|
|
950
|
+
/**
|
|
951
|
+
* Default error message on invalid validation.
|
|
952
|
+
* @maxLength 200
|
|
953
|
+
*/
|
|
744
954
|
default?: string | null;
|
|
745
955
|
}
|
|
746
956
|
export interface StringTypeDateTimeConstraints {
|
|
@@ -749,6 +959,7 @@ export interface StringTypeDateTimeConstraints {
|
|
|
749
959
|
* dynamic calculations can be performed using special keywords such as "$now" to represent the current date and time.
|
|
750
960
|
* The dynamic calculation supports expressions like "$now+2d" (2 days in the future), "$now-1h" (1 hour in the past), etc.
|
|
751
961
|
* The regex pattern for dynamic calculations is: \$now([+-]\d{1,2})([yMdmh])
|
|
962
|
+
* @maxLength 50
|
|
752
963
|
*/
|
|
753
964
|
minimum?: string | null;
|
|
754
965
|
/**
|
|
@@ -756,11 +967,16 @@ export interface StringTypeDateTimeConstraints {
|
|
|
756
967
|
* dynamic calculations can be performed using special keywords such as "$now" to represent the current date and time.
|
|
757
968
|
* The dynamic calculation supports expressions like "$now+2d" (2 days in the future), "$now-1h" (1 hour in the past), etc.
|
|
758
969
|
* The regex pattern for dynamic calculations is: \$now([+-]\d{1,2})([yMdmh])
|
|
970
|
+
* @maxLength 50
|
|
759
971
|
*/
|
|
760
972
|
maximum?: string | null;
|
|
761
973
|
}
|
|
762
974
|
export interface StringTypePhoneConstraints {
|
|
763
|
-
/**
|
|
975
|
+
/**
|
|
976
|
+
* Country codes for phone number that are allowed
|
|
977
|
+
* @maxSize 250
|
|
978
|
+
* @maxLength 2
|
|
979
|
+
*/
|
|
764
980
|
allowedCountryCodes?: string[];
|
|
765
981
|
}
|
|
766
982
|
export declare enum StringComponentType {
|
|
@@ -775,18 +991,27 @@ export declare enum StringComponentType {
|
|
|
775
991
|
DATE_PICKER = "DATE_PICKER"
|
|
776
992
|
}
|
|
777
993
|
export interface TextInput {
|
|
778
|
-
/**
|
|
994
|
+
/**
|
|
995
|
+
* Label of the field
|
|
996
|
+
* @maxLength 350
|
|
997
|
+
*/
|
|
779
998
|
label?: string | null;
|
|
780
999
|
/** Description of the field */
|
|
781
1000
|
description?: RichContent;
|
|
782
|
-
/**
|
|
1001
|
+
/**
|
|
1002
|
+
* Placeholder for the value input
|
|
1003
|
+
* @maxLength 100
|
|
1004
|
+
*/
|
|
783
1005
|
placeholder?: string | null;
|
|
784
1006
|
/**
|
|
785
1007
|
* Flag identifying to hide or not label
|
|
786
1008
|
* Default: true
|
|
787
1009
|
*/
|
|
788
1010
|
showLabel?: boolean | null;
|
|
789
|
-
/**
|
|
1011
|
+
/**
|
|
1012
|
+
* Default value for the text input
|
|
1013
|
+
* @maxLength 20000
|
|
1014
|
+
*/
|
|
790
1015
|
default?: string | null;
|
|
791
1016
|
}
|
|
792
1017
|
export interface RichContent {
|
|
@@ -1387,11 +1612,20 @@ export interface GIFData {
|
|
|
1387
1612
|
gifType?: GIFType;
|
|
1388
1613
|
}
|
|
1389
1614
|
export interface GIF {
|
|
1390
|
-
/**
|
|
1615
|
+
/**
|
|
1616
|
+
* GIF format URL.
|
|
1617
|
+
* @format WEB_URL
|
|
1618
|
+
*/
|
|
1391
1619
|
gif?: string | null;
|
|
1392
|
-
/**
|
|
1620
|
+
/**
|
|
1621
|
+
* MP4 format URL.
|
|
1622
|
+
* @format WEB_URL
|
|
1623
|
+
*/
|
|
1393
1624
|
mp4?: string | null;
|
|
1394
|
-
/**
|
|
1625
|
+
/**
|
|
1626
|
+
* Thumbnail URL.
|
|
1627
|
+
* @format WEB_URL
|
|
1628
|
+
*/
|
|
1395
1629
|
still?: string | null;
|
|
1396
1630
|
}
|
|
1397
1631
|
export declare enum GIFType {
|
|
@@ -1465,7 +1699,10 @@ export interface ImageData {
|
|
|
1465
1699
|
export interface StylesBorder {
|
|
1466
1700
|
/** Border width in pixels. */
|
|
1467
1701
|
width?: number | null;
|
|
1468
|
-
/**
|
|
1702
|
+
/**
|
|
1703
|
+
* Border color as a hexadecimal value.
|
|
1704
|
+
* @format COLOR_HEX
|
|
1705
|
+
*/
|
|
1469
1706
|
color?: string | null;
|
|
1470
1707
|
/** Border radius in pixels. */
|
|
1471
1708
|
radius?: number | null;
|
|
@@ -1619,13 +1856,22 @@ export declare enum BackgroundType {
|
|
|
1619
1856
|
export interface Gradient {
|
|
1620
1857
|
/** The gradient angle in degrees. */
|
|
1621
1858
|
angle?: number | null;
|
|
1622
|
-
/**
|
|
1859
|
+
/**
|
|
1860
|
+
* The start color as a hexademical value.
|
|
1861
|
+
* @format COLOR_HEX
|
|
1862
|
+
*/
|
|
1623
1863
|
startColor?: string | null;
|
|
1624
|
-
/**
|
|
1864
|
+
/**
|
|
1865
|
+
* The end color as a hexademical value.
|
|
1866
|
+
* @format COLOR_HEX
|
|
1867
|
+
*/
|
|
1625
1868
|
lastColor?: string | null;
|
|
1626
1869
|
}
|
|
1627
1870
|
export interface Background extends BackgroundBackgroundOneOf {
|
|
1628
|
-
/**
|
|
1871
|
+
/**
|
|
1872
|
+
* The background color as a hexademical value.
|
|
1873
|
+
* @format COLOR_HEX
|
|
1874
|
+
*/
|
|
1629
1875
|
color?: string | null;
|
|
1630
1876
|
/** An image to use for the background. */
|
|
1631
1877
|
image?: Media;
|
|
@@ -1636,7 +1882,10 @@ export interface Background extends BackgroundBackgroundOneOf {
|
|
|
1636
1882
|
}
|
|
1637
1883
|
/** @oneof */
|
|
1638
1884
|
export interface BackgroundBackgroundOneOf {
|
|
1639
|
-
/**
|
|
1885
|
+
/**
|
|
1886
|
+
* The background color as a hexademical value.
|
|
1887
|
+
* @format COLOR_HEX
|
|
1888
|
+
*/
|
|
1640
1889
|
color?: string | null;
|
|
1641
1890
|
/** An image to use for the background. */
|
|
1642
1891
|
image?: Media;
|
|
@@ -1948,17 +2197,32 @@ export declare enum VerticalAlignment {
|
|
|
1948
2197
|
export interface CellStyle {
|
|
1949
2198
|
/** Vertical alignment for the cell's text. */
|
|
1950
2199
|
verticalAlignment?: VerticalAlignment;
|
|
1951
|
-
/**
|
|
2200
|
+
/**
|
|
2201
|
+
* Cell background color as a hexadecimal value.
|
|
2202
|
+
* @format COLOR_HEX
|
|
2203
|
+
*/
|
|
1952
2204
|
backgroundColor?: string | null;
|
|
1953
2205
|
}
|
|
1954
2206
|
export interface BorderColors {
|
|
1955
|
-
/**
|
|
2207
|
+
/**
|
|
2208
|
+
* Left border color as a hexadecimal value.
|
|
2209
|
+
* @format COLOR_HEX
|
|
2210
|
+
*/
|
|
1956
2211
|
left?: string | null;
|
|
1957
|
-
/**
|
|
2212
|
+
/**
|
|
2213
|
+
* Right border color as a hexadecimal value.
|
|
2214
|
+
* @format COLOR_HEX
|
|
2215
|
+
*/
|
|
1958
2216
|
right?: string | null;
|
|
1959
|
-
/**
|
|
2217
|
+
/**
|
|
2218
|
+
* Top border color as a hexadecimal value.
|
|
2219
|
+
* @format COLOR_HEX
|
|
2220
|
+
*/
|
|
1960
2221
|
top?: string | null;
|
|
1961
|
-
/**
|
|
2222
|
+
/**
|
|
2223
|
+
* Bottom border color as a hexadecimal value.
|
|
2224
|
+
* @format COLOR_HEX
|
|
2225
|
+
*/
|
|
1962
2226
|
bottom?: string | null;
|
|
1963
2227
|
}
|
|
1964
2228
|
/**
|
|
@@ -2067,13 +2331,17 @@ export interface TextNodeStyle {
|
|
|
2067
2331
|
lineHeight?: string | null;
|
|
2068
2332
|
}
|
|
2069
2333
|
export interface RadioGroup {
|
|
2070
|
-
/**
|
|
2334
|
+
/**
|
|
2335
|
+
* Label of the field
|
|
2336
|
+
* @maxLength 350
|
|
2337
|
+
*/
|
|
2071
2338
|
label?: string | null;
|
|
2072
2339
|
/** Description of the field */
|
|
2073
2340
|
description?: RichContent;
|
|
2074
2341
|
/**
|
|
2075
2342
|
* Flag identifying to show option allowing input custom value
|
|
2076
2343
|
* List of options to select from
|
|
2344
|
+
* @maxSize 400
|
|
2077
2345
|
*/
|
|
2078
2346
|
options?: RadioGroupOption[];
|
|
2079
2347
|
/**
|
|
@@ -2090,19 +2358,35 @@ export interface RadioGroup {
|
|
|
2090
2358
|
numberOfColumns?: NumberOfColumns;
|
|
2091
2359
|
}
|
|
2092
2360
|
export interface RadioGroupOption {
|
|
2093
|
-
/**
|
|
2361
|
+
/**
|
|
2362
|
+
* Selectable option label
|
|
2363
|
+
* @maxLength 400
|
|
2364
|
+
*/
|
|
2094
2365
|
label?: string | null;
|
|
2095
|
-
/**
|
|
2366
|
+
/**
|
|
2367
|
+
* Selectable option value, which is saved to DB.
|
|
2368
|
+
* @maxLength 20000
|
|
2369
|
+
*/
|
|
2096
2370
|
value?: string | null;
|
|
2097
2371
|
/** Flag identifying that option should be selected by default */
|
|
2098
2372
|
default?: boolean;
|
|
2099
|
-
/**
|
|
2373
|
+
/**
|
|
2374
|
+
* Option id. Used as binding for translations
|
|
2375
|
+
* @format GUID
|
|
2376
|
+
* @immutable
|
|
2377
|
+
*/
|
|
2100
2378
|
_id?: string;
|
|
2101
2379
|
}
|
|
2102
2380
|
export interface RadioGroupCustomOption {
|
|
2103
|
-
/**
|
|
2381
|
+
/**
|
|
2382
|
+
* Label of custom option input
|
|
2383
|
+
* @maxLength 350
|
|
2384
|
+
*/
|
|
2104
2385
|
label?: string | null;
|
|
2105
|
-
/**
|
|
2386
|
+
/**
|
|
2387
|
+
* Placeholder of custom option input
|
|
2388
|
+
* @maxLength 100
|
|
2389
|
+
*/
|
|
2106
2390
|
placeholder?: string | null;
|
|
2107
2391
|
}
|
|
2108
2392
|
export declare enum NumberOfColumns {
|
|
@@ -2118,11 +2402,17 @@ export declare enum NumberOfColumns {
|
|
|
2118
2402
|
THREE = "THREE"
|
|
2119
2403
|
}
|
|
2120
2404
|
export interface Dropdown {
|
|
2121
|
-
/**
|
|
2405
|
+
/**
|
|
2406
|
+
* Label of the field
|
|
2407
|
+
* @maxLength 350
|
|
2408
|
+
*/
|
|
2122
2409
|
label?: string | null;
|
|
2123
2410
|
/** Description of the field */
|
|
2124
2411
|
description?: RichContent;
|
|
2125
|
-
/**
|
|
2412
|
+
/**
|
|
2413
|
+
* List of options to select from
|
|
2414
|
+
* @maxSize 400
|
|
2415
|
+
*/
|
|
2126
2416
|
options?: DropdownOption[];
|
|
2127
2417
|
/**
|
|
2128
2418
|
* Flag identifying to hide or not label
|
|
@@ -2131,27 +2421,49 @@ export interface Dropdown {
|
|
|
2131
2421
|
showLabel?: boolean | null;
|
|
2132
2422
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
2133
2423
|
customOption?: DropdownCustomOption;
|
|
2134
|
-
/**
|
|
2424
|
+
/**
|
|
2425
|
+
* Placeholder of dropdown input
|
|
2426
|
+
* @maxLength 100
|
|
2427
|
+
*/
|
|
2135
2428
|
placeholder?: string | null;
|
|
2136
2429
|
}
|
|
2137
2430
|
export interface DropdownOption {
|
|
2138
|
-
/**
|
|
2431
|
+
/**
|
|
2432
|
+
* Selectable option label
|
|
2433
|
+
* @maxLength 400
|
|
2434
|
+
*/
|
|
2139
2435
|
label?: string | null;
|
|
2140
|
-
/**
|
|
2436
|
+
/**
|
|
2437
|
+
* Selectable option value, which is saved to DB.
|
|
2438
|
+
* @maxLength 20000
|
|
2439
|
+
*/
|
|
2141
2440
|
value?: string | null;
|
|
2142
2441
|
/** Flag identifying that option should be selected by default */
|
|
2143
2442
|
default?: boolean;
|
|
2144
|
-
/**
|
|
2443
|
+
/**
|
|
2444
|
+
* Option id. Used as binding for translations
|
|
2445
|
+
* @format GUID
|
|
2446
|
+
* @immutable
|
|
2447
|
+
*/
|
|
2145
2448
|
_id?: string;
|
|
2146
2449
|
}
|
|
2147
2450
|
export interface DropdownCustomOption {
|
|
2148
|
-
/**
|
|
2451
|
+
/**
|
|
2452
|
+
* Label of custom option input
|
|
2453
|
+
* @maxLength 350
|
|
2454
|
+
*/
|
|
2149
2455
|
label?: string | null;
|
|
2150
|
-
/**
|
|
2456
|
+
/**
|
|
2457
|
+
* Placeholder of custom option input
|
|
2458
|
+
* @maxLength 100
|
|
2459
|
+
*/
|
|
2151
2460
|
placeholder?: string | null;
|
|
2152
2461
|
}
|
|
2153
2462
|
export interface DateTimeInput {
|
|
2154
|
-
/**
|
|
2463
|
+
/**
|
|
2464
|
+
* Label of the field. Displayed text for the date/time input.
|
|
2465
|
+
* @maxLength 350
|
|
2466
|
+
*/
|
|
2155
2467
|
label?: string | null;
|
|
2156
2468
|
/** Description of the field. Additional information about the date/time input. */
|
|
2157
2469
|
description?: RichContent;
|
|
@@ -2170,22 +2482,35 @@ export interface DateTimeInput {
|
|
|
2170
2482
|
* Default: false.
|
|
2171
2483
|
*/
|
|
2172
2484
|
use24HourFormat?: boolean;
|
|
2173
|
-
/**
|
|
2485
|
+
/**
|
|
2486
|
+
* Default value for the date time input.
|
|
2487
|
+
* @format LOCAL_DATE_TIME
|
|
2488
|
+
*/
|
|
2174
2489
|
default?: string | null;
|
|
2175
2490
|
}
|
|
2176
2491
|
export interface PhoneInput {
|
|
2177
|
-
/**
|
|
2492
|
+
/**
|
|
2493
|
+
* Label of the field
|
|
2494
|
+
* @maxLength 350
|
|
2495
|
+
*/
|
|
2178
2496
|
label?: string | null;
|
|
2179
2497
|
/** Description of the field */
|
|
2180
2498
|
description?: RichContent;
|
|
2181
|
-
/**
|
|
2499
|
+
/**
|
|
2500
|
+
* Placeholder for the value input
|
|
2501
|
+
* @maxLength 100
|
|
2502
|
+
*/
|
|
2182
2503
|
placeholder?: string | null;
|
|
2183
2504
|
/**
|
|
2184
2505
|
* Flag identifying to show label or not
|
|
2185
2506
|
* Default: true
|
|
2186
2507
|
*/
|
|
2187
2508
|
showLabel?: boolean | null;
|
|
2188
|
-
/**
|
|
2509
|
+
/**
|
|
2510
|
+
* Default value of the country code
|
|
2511
|
+
* @minLength 1
|
|
2512
|
+
* @maxLength 5
|
|
2513
|
+
*/
|
|
2189
2514
|
defaultCountryCode?: string | null;
|
|
2190
2515
|
/**
|
|
2191
2516
|
* Flag identifying to show country flag or not
|
|
@@ -2194,7 +2519,10 @@ export interface PhoneInput {
|
|
|
2194
2519
|
showCountryFlag?: boolean;
|
|
2195
2520
|
}
|
|
2196
2521
|
export interface DateInput {
|
|
2197
|
-
/**
|
|
2522
|
+
/**
|
|
2523
|
+
* Label of the field. Displayed text for the date/time input.
|
|
2524
|
+
* @maxLength 350
|
|
2525
|
+
*/
|
|
2198
2526
|
label?: string | null;
|
|
2199
2527
|
/** Description of the field. Additional information about the date/time input. */
|
|
2200
2528
|
description?: RichContent;
|
|
@@ -2208,11 +2536,17 @@ export interface DateInput {
|
|
|
2208
2536
|
* Default: true
|
|
2209
2537
|
*/
|
|
2210
2538
|
showPlaceholder?: boolean | null;
|
|
2211
|
-
/**
|
|
2539
|
+
/**
|
|
2540
|
+
* Default value for the date input.
|
|
2541
|
+
* @format LOCAL_DATE
|
|
2542
|
+
*/
|
|
2212
2543
|
default?: string | null;
|
|
2213
2544
|
}
|
|
2214
2545
|
export interface TimeInput {
|
|
2215
|
-
/**
|
|
2546
|
+
/**
|
|
2547
|
+
* Label of the field. Displayed text for the date/time input.
|
|
2548
|
+
* @maxLength 350
|
|
2549
|
+
*/
|
|
2216
2550
|
label?: string | null;
|
|
2217
2551
|
/** Description of the field. Additional information about the date/time input. */
|
|
2218
2552
|
description?: RichContent;
|
|
@@ -2231,11 +2565,17 @@ export interface TimeInput {
|
|
|
2231
2565
|
* Default: false.
|
|
2232
2566
|
*/
|
|
2233
2567
|
use24HourFormat?: boolean;
|
|
2234
|
-
/**
|
|
2568
|
+
/**
|
|
2569
|
+
* Default value for the time input.
|
|
2570
|
+
* @format LOCAL_TIME
|
|
2571
|
+
*/
|
|
2235
2572
|
default?: string | null;
|
|
2236
2573
|
}
|
|
2237
2574
|
export interface DatePicker {
|
|
2238
|
-
/**
|
|
2575
|
+
/**
|
|
2576
|
+
* Label of the field. Displayed text for the date/time input.
|
|
2577
|
+
* @maxLength 350
|
|
2578
|
+
*/
|
|
2239
2579
|
label?: string | null;
|
|
2240
2580
|
/** Description of the field. Additional information about the date/time input. */
|
|
2241
2581
|
description?: RichContent;
|
|
@@ -2244,11 +2584,17 @@ export interface DatePicker {
|
|
|
2244
2584
|
* Default: true
|
|
2245
2585
|
*/
|
|
2246
2586
|
showLabel?: boolean | null;
|
|
2247
|
-
/**
|
|
2587
|
+
/**
|
|
2588
|
+
* Placeholder of date picker input
|
|
2589
|
+
* @maxLength 100
|
|
2590
|
+
*/
|
|
2248
2591
|
placeholder?: string | null;
|
|
2249
2592
|
/** First day of the week displayed on date picker. */
|
|
2250
2593
|
firstDayOfWeek?: FirstDayOfWeek;
|
|
2251
|
-
/**
|
|
2594
|
+
/**
|
|
2595
|
+
* Default value for the date picker.
|
|
2596
|
+
* @format LOCAL_DATE
|
|
2597
|
+
*/
|
|
2252
2598
|
default?: string | null;
|
|
2253
2599
|
}
|
|
2254
2600
|
export declare enum FirstDayOfWeek {
|
|
@@ -2266,11 +2612,17 @@ export interface InputFieldNumberType {
|
|
|
2266
2612
|
multipleOf?: number | null;
|
|
2267
2613
|
/** Custom error message when validation fails. */
|
|
2268
2614
|
errorMessages?: InputFieldNumberErrorMessages;
|
|
2269
|
-
/**
|
|
2615
|
+
/**
|
|
2616
|
+
* List of allowed values.
|
|
2617
|
+
* @maxSize 500
|
|
2618
|
+
*/
|
|
2270
2619
|
enum?: number[] | null;
|
|
2271
2620
|
}
|
|
2272
2621
|
export interface InputFieldNumberErrorMessages {
|
|
2273
|
-
/**
|
|
2622
|
+
/**
|
|
2623
|
+
* Default error message on invalid validation.
|
|
2624
|
+
* @maxLength 200
|
|
2625
|
+
*/
|
|
2274
2626
|
default?: string | null;
|
|
2275
2627
|
}
|
|
2276
2628
|
export declare enum NumberComponentType {
|
|
@@ -2279,11 +2631,17 @@ export declare enum NumberComponentType {
|
|
|
2279
2631
|
RATING_INPUT = "RATING_INPUT"
|
|
2280
2632
|
}
|
|
2281
2633
|
export interface NumberInput {
|
|
2282
|
-
/**
|
|
2634
|
+
/**
|
|
2635
|
+
* Label of the field
|
|
2636
|
+
* @maxLength 350
|
|
2637
|
+
*/
|
|
2283
2638
|
label?: string | null;
|
|
2284
2639
|
/** Description of the field */
|
|
2285
2640
|
description?: RichContent;
|
|
2286
|
-
/**
|
|
2641
|
+
/**
|
|
2642
|
+
* Placeholder for the value input
|
|
2643
|
+
* @maxLength 100
|
|
2644
|
+
*/
|
|
2287
2645
|
placeholder?: string | null;
|
|
2288
2646
|
/**
|
|
2289
2647
|
* Flag identifying to hide or not label
|
|
@@ -2294,7 +2652,10 @@ export interface NumberInput {
|
|
|
2294
2652
|
default?: number | null;
|
|
2295
2653
|
}
|
|
2296
2654
|
export interface RatingInput {
|
|
2297
|
-
/**
|
|
2655
|
+
/**
|
|
2656
|
+
* Label of the field
|
|
2657
|
+
* @maxLength 350
|
|
2658
|
+
*/
|
|
2298
2659
|
label?: string | null;
|
|
2299
2660
|
/** Description of the field */
|
|
2300
2661
|
description?: RichContent;
|
|
@@ -2303,17 +2664,27 @@ export interface RatingInput {
|
|
|
2303
2664
|
* Default: true
|
|
2304
2665
|
*/
|
|
2305
2666
|
showLabel?: boolean | null;
|
|
2306
|
-
/**
|
|
2667
|
+
/**
|
|
2668
|
+
* Default rating
|
|
2669
|
+
* @min 1
|
|
2670
|
+
* @max 5
|
|
2671
|
+
*/
|
|
2307
2672
|
defaultValue?: number | null;
|
|
2308
2673
|
}
|
|
2309
2674
|
export interface InputFieldBooleanType {
|
|
2310
2675
|
/** Custom error message when validation fails. */
|
|
2311
2676
|
errorMessages?: InputFieldBooleanErrorMessages;
|
|
2312
|
-
/**
|
|
2677
|
+
/**
|
|
2678
|
+
* List of allowed values.
|
|
2679
|
+
* @maxSize 2
|
|
2680
|
+
*/
|
|
2313
2681
|
enum?: boolean[];
|
|
2314
2682
|
}
|
|
2315
2683
|
export interface InputFieldBooleanErrorMessages {
|
|
2316
|
-
/**
|
|
2684
|
+
/**
|
|
2685
|
+
* Default error message on invalid validation.
|
|
2686
|
+
* @maxLength 200
|
|
2687
|
+
*/
|
|
2317
2688
|
default?: string | null;
|
|
2318
2689
|
}
|
|
2319
2690
|
export declare enum BooleanComponentType {
|
|
@@ -2330,9 +2701,15 @@ export interface Checkbox {
|
|
|
2330
2701
|
checked?: boolean;
|
|
2331
2702
|
}
|
|
2332
2703
|
export interface InputFieldArrayType {
|
|
2333
|
-
/**
|
|
2704
|
+
/**
|
|
2705
|
+
* Maximum amount of array elements.
|
|
2706
|
+
* @max 1000
|
|
2707
|
+
*/
|
|
2334
2708
|
maxItems?: number | null;
|
|
2335
|
-
/**
|
|
2709
|
+
/**
|
|
2710
|
+
* Minimum amount of array elements.
|
|
2711
|
+
* @max 1000
|
|
2712
|
+
*/
|
|
2336
2713
|
minItems?: number | null;
|
|
2337
2714
|
/** Type of items allowed in array. */
|
|
2338
2715
|
items?: ArrayTypeArrayItems;
|
|
@@ -2356,7 +2733,10 @@ export interface InputFieldIntegerType {
|
|
|
2356
2733
|
multipleOf?: number | null;
|
|
2357
2734
|
/** Custom error message when validation fails. */
|
|
2358
2735
|
errorMessages?: InputFieldNumberErrorMessages;
|
|
2359
|
-
/**
|
|
2736
|
+
/**
|
|
2737
|
+
* List of allowed values.
|
|
2738
|
+
* @maxSize 500
|
|
2739
|
+
*/
|
|
2360
2740
|
enum?: number[] | null;
|
|
2361
2741
|
}
|
|
2362
2742
|
export interface InputFieldObjectType {
|
|
@@ -2406,7 +2786,10 @@ export interface ObjectTypePropertiesTypePropertiesTypeOptionsOneOf {
|
|
|
2406
2786
|
arrayOptions?: InputFieldArrayType;
|
|
2407
2787
|
}
|
|
2408
2788
|
export interface InputFieldObjectErrorMessages {
|
|
2409
|
-
/**
|
|
2789
|
+
/**
|
|
2790
|
+
* Default error message on invalid validation.
|
|
2791
|
+
* @maxLength 200
|
|
2792
|
+
*/
|
|
2410
2793
|
default?: string | null;
|
|
2411
2794
|
}
|
|
2412
2795
|
export interface ArrayTypeArrayItems extends ArrayTypeArrayItemsItemTypeOptionsOneOf {
|
|
@@ -2440,7 +2823,10 @@ export interface ArrayTypeArrayItemsItemTypeOptionsOneOf {
|
|
|
2440
2823
|
objectOptions?: InputFieldObjectType;
|
|
2441
2824
|
}
|
|
2442
2825
|
export interface InputFieldArrayErrorMessages {
|
|
2443
|
-
/**
|
|
2826
|
+
/**
|
|
2827
|
+
* Default error message on invalid validation.
|
|
2828
|
+
* @maxLength 200
|
|
2829
|
+
*/
|
|
2444
2830
|
default?: string | null;
|
|
2445
2831
|
}
|
|
2446
2832
|
export declare enum ComponentType {
|
|
@@ -2449,11 +2835,17 @@ export declare enum ComponentType {
|
|
|
2449
2835
|
TAGS = "TAGS"
|
|
2450
2836
|
}
|
|
2451
2837
|
export interface CheckboxGroup {
|
|
2452
|
-
/**
|
|
2838
|
+
/**
|
|
2839
|
+
* Label of the field
|
|
2840
|
+
* @maxLength 350
|
|
2841
|
+
*/
|
|
2453
2842
|
label?: string | null;
|
|
2454
2843
|
/** Description of the field */
|
|
2455
2844
|
description?: RichContent;
|
|
2456
|
-
/**
|
|
2845
|
+
/**
|
|
2846
|
+
* List of options to select from
|
|
2847
|
+
* @maxSize 400
|
|
2848
|
+
*/
|
|
2457
2849
|
options?: Option[];
|
|
2458
2850
|
/**
|
|
2459
2851
|
* Flag identifying to hide or not label
|
|
@@ -2478,29 +2870,48 @@ export interface MediaItemMediaOneOf {
|
|
|
2478
2870
|
image?: string;
|
|
2479
2871
|
}
|
|
2480
2872
|
export interface Option {
|
|
2481
|
-
/**
|
|
2873
|
+
/**
|
|
2874
|
+
* Selectable option label
|
|
2875
|
+
* @maxLength 400
|
|
2876
|
+
*/
|
|
2482
2877
|
label?: string | null;
|
|
2483
2878
|
/** Selectable option value, which is saved to DB. */
|
|
2484
2879
|
value?: any;
|
|
2485
2880
|
/** Flag identifying that option should be selected by default */
|
|
2486
2881
|
default?: boolean;
|
|
2487
|
-
/**
|
|
2882
|
+
/**
|
|
2883
|
+
* Option id. Used as binding for translations
|
|
2884
|
+
* @format GUID
|
|
2885
|
+
* @immutable
|
|
2886
|
+
*/
|
|
2488
2887
|
_id?: string;
|
|
2489
2888
|
/** Media item. Media, associated with option, like image. */
|
|
2490
2889
|
media?: MediaItem;
|
|
2491
2890
|
}
|
|
2492
2891
|
export interface CustomOption {
|
|
2493
|
-
/**
|
|
2892
|
+
/**
|
|
2893
|
+
* Label of custom option input
|
|
2894
|
+
* @maxLength 350
|
|
2895
|
+
*/
|
|
2494
2896
|
label?: string | null;
|
|
2495
|
-
/**
|
|
2897
|
+
/**
|
|
2898
|
+
* Placeholder of custom option input
|
|
2899
|
+
* @maxLength 100
|
|
2900
|
+
*/
|
|
2496
2901
|
placeholder?: string | null;
|
|
2497
2902
|
}
|
|
2498
2903
|
export interface Tags {
|
|
2499
|
-
/**
|
|
2904
|
+
/**
|
|
2905
|
+
* Label of the field
|
|
2906
|
+
* @maxLength 350
|
|
2907
|
+
*/
|
|
2500
2908
|
label?: string | null;
|
|
2501
2909
|
/** Description of the field */
|
|
2502
2910
|
description?: RichContent;
|
|
2503
|
-
/**
|
|
2911
|
+
/**
|
|
2912
|
+
* List of options to select from
|
|
2913
|
+
* @maxSize 400
|
|
2914
|
+
*/
|
|
2504
2915
|
options?: TagsOption[];
|
|
2505
2916
|
/**
|
|
2506
2917
|
* Flag identifying to hide or not label
|
|
@@ -2516,21 +2927,34 @@ export interface Tags {
|
|
|
2516
2927
|
numberOfColumns?: NumberOfColumns;
|
|
2517
2928
|
}
|
|
2518
2929
|
export interface TagsOption {
|
|
2519
|
-
/**
|
|
2930
|
+
/**
|
|
2931
|
+
* Selectable option label
|
|
2932
|
+
* @maxLength 400
|
|
2933
|
+
*/
|
|
2520
2934
|
label?: string | null;
|
|
2521
2935
|
/** Selectable option value, which is saved to DB. */
|
|
2522
2936
|
value?: any;
|
|
2523
2937
|
/** Flag identifying that option should be selected by default */
|
|
2524
2938
|
default?: boolean;
|
|
2525
|
-
/**
|
|
2939
|
+
/**
|
|
2940
|
+
* Option id. Used as binding for translations
|
|
2941
|
+
* @format GUID
|
|
2942
|
+
* @immutable
|
|
2943
|
+
*/
|
|
2526
2944
|
_id?: string;
|
|
2527
2945
|
/** Media item. Media, associated with option, like image. */
|
|
2528
2946
|
media?: MediaItem;
|
|
2529
2947
|
}
|
|
2530
2948
|
export interface CommonCustomOption {
|
|
2531
|
-
/**
|
|
2949
|
+
/**
|
|
2950
|
+
* Label of custom option input
|
|
2951
|
+
* @maxLength 350
|
|
2952
|
+
*/
|
|
2532
2953
|
label?: string | null;
|
|
2533
|
-
/**
|
|
2954
|
+
/**
|
|
2955
|
+
* Placeholder of custom option input
|
|
2956
|
+
* @maxLength 100
|
|
2957
|
+
*/
|
|
2534
2958
|
placeholder?: string | null;
|
|
2535
2959
|
}
|
|
2536
2960
|
export declare enum WixFileComponentType {
|
|
@@ -2539,7 +2963,10 @@ export declare enum WixFileComponentType {
|
|
|
2539
2963
|
SIGNATURE = "SIGNATURE"
|
|
2540
2964
|
}
|
|
2541
2965
|
export interface FileUpload {
|
|
2542
|
-
/**
|
|
2966
|
+
/**
|
|
2967
|
+
* Selectable option label
|
|
2968
|
+
* @maxLength 350
|
|
2969
|
+
*/
|
|
2543
2970
|
label?: string | null;
|
|
2544
2971
|
/** Description of the field */
|
|
2545
2972
|
description?: RichContent;
|
|
@@ -2548,13 +2975,26 @@ export interface FileUpload {
|
|
|
2548
2975
|
* Default: true
|
|
2549
2976
|
*/
|
|
2550
2977
|
showLabel?: boolean | null;
|
|
2551
|
-
/**
|
|
2978
|
+
/**
|
|
2979
|
+
* Text on upload button
|
|
2980
|
+
* @maxLength 500
|
|
2981
|
+
*/
|
|
2552
2982
|
buttonText?: string | null;
|
|
2553
|
-
/**
|
|
2983
|
+
/**
|
|
2984
|
+
* Amount of files allowed to upload
|
|
2985
|
+
* @min 1
|
|
2986
|
+
* @max 30
|
|
2987
|
+
*/
|
|
2554
2988
|
fileLimit?: number;
|
|
2555
|
-
/**
|
|
2989
|
+
/**
|
|
2990
|
+
* Supported file formats for upload
|
|
2991
|
+
* @maxSize 5
|
|
2992
|
+
*/
|
|
2556
2993
|
uploadFileFormats?: UploadFileFormat[];
|
|
2557
|
-
/**
|
|
2994
|
+
/**
|
|
2995
|
+
* Custom text which appears when file is uploaded, if missing file name will be shown
|
|
2996
|
+
* @maxLength 255
|
|
2997
|
+
*/
|
|
2558
2998
|
explanationText?: string | null;
|
|
2559
2999
|
}
|
|
2560
3000
|
export declare enum UploadFileFormat {
|
|
@@ -2572,7 +3012,10 @@ export declare enum UploadFileFormat {
|
|
|
2572
3012
|
ARCHIVE = "ARCHIVE"
|
|
2573
3013
|
}
|
|
2574
3014
|
export interface Signature {
|
|
2575
|
-
/**
|
|
3015
|
+
/**
|
|
3016
|
+
* Selectable option label
|
|
3017
|
+
* @maxLength 350
|
|
3018
|
+
*/
|
|
2576
3019
|
label?: string | null;
|
|
2577
3020
|
/**
|
|
2578
3021
|
* Flag identifying to hide label or not
|
|
@@ -2592,11 +3035,17 @@ export declare enum PaymentComponentType {
|
|
|
2592
3035
|
FIXED_PAYMENT = "FIXED_PAYMENT"
|
|
2593
3036
|
}
|
|
2594
3037
|
export interface ProductCheckboxGroup {
|
|
2595
|
-
/**
|
|
3038
|
+
/**
|
|
3039
|
+
* Label of the field.
|
|
3040
|
+
* @maxLength 350
|
|
3041
|
+
*/
|
|
2596
3042
|
label?: string | null;
|
|
2597
3043
|
/** Description of the field. */
|
|
2598
3044
|
description?: RichContent;
|
|
2599
|
-
/**
|
|
3045
|
+
/**
|
|
3046
|
+
* List of options to select from.
|
|
3047
|
+
* @maxSize 400
|
|
3048
|
+
*/
|
|
2600
3049
|
options?: ProductCheckboxGroupOption[];
|
|
2601
3050
|
/**
|
|
2602
3051
|
* Flag identifying to hide or not label
|
|
@@ -2610,11 +3059,18 @@ export interface ProductCheckboxGroup {
|
|
|
2610
3059
|
imageFit?: ImageFit;
|
|
2611
3060
|
}
|
|
2612
3061
|
export interface ProductCheckboxGroupOption {
|
|
2613
|
-
/**
|
|
3062
|
+
/**
|
|
3063
|
+
* Selectable option label.
|
|
3064
|
+
* @maxLength 400
|
|
3065
|
+
*/
|
|
2614
3066
|
label?: string | null;
|
|
2615
3067
|
/** Selectable option value, which is saved to DB. Corresponds to product id, found in field's products list. */
|
|
2616
3068
|
value?: any;
|
|
2617
|
-
/**
|
|
3069
|
+
/**
|
|
3070
|
+
* Option id. Used as binding for translations.
|
|
3071
|
+
* @format GUID
|
|
3072
|
+
* @immutable
|
|
3073
|
+
*/
|
|
2618
3074
|
_id?: string;
|
|
2619
3075
|
/** Media item. Media, associated with option, like image. */
|
|
2620
3076
|
media?: MediaItem;
|
|
@@ -2629,11 +3085,17 @@ export declare enum ImageFit {
|
|
|
2629
3085
|
CONTAIN = "CONTAIN"
|
|
2630
3086
|
}
|
|
2631
3087
|
export interface DonationInput {
|
|
2632
|
-
/**
|
|
3088
|
+
/**
|
|
3089
|
+
* Label of the field.
|
|
3090
|
+
* @maxLength 350
|
|
3091
|
+
*/
|
|
2633
3092
|
label?: string | null;
|
|
2634
3093
|
/** Description of the field. */
|
|
2635
3094
|
description?: RichContent;
|
|
2636
|
-
/**
|
|
3095
|
+
/**
|
|
3096
|
+
* List of options to select from.
|
|
3097
|
+
* @maxSize 400
|
|
3098
|
+
*/
|
|
2637
3099
|
options?: DonationInputOption[];
|
|
2638
3100
|
/** Option which can be specified by UoU, enabled when this object is specified. */
|
|
2639
3101
|
customOption?: CommonCustomOption;
|
|
@@ -2649,13 +3111,19 @@ export interface DonationInput {
|
|
|
2649
3111
|
showLabel?: boolean | null;
|
|
2650
3112
|
}
|
|
2651
3113
|
export interface DonationInputOption {
|
|
2652
|
-
/**
|
|
3114
|
+
/**
|
|
3115
|
+
* Selectable option value, which is saved to DB. Corresponds to product id, found in field's products list.
|
|
3116
|
+
* @format GUID
|
|
3117
|
+
*/
|
|
2653
3118
|
value?: string;
|
|
2654
3119
|
/** Flag identifying that option should be selected by default */
|
|
2655
3120
|
default?: boolean;
|
|
2656
3121
|
}
|
|
2657
3122
|
export interface PaymentInput {
|
|
2658
|
-
/**
|
|
3123
|
+
/**
|
|
3124
|
+
* Label of the field.
|
|
3125
|
+
* @maxLength 350
|
|
3126
|
+
*/
|
|
2659
3127
|
label?: string | null;
|
|
2660
3128
|
/** Description of the field. */
|
|
2661
3129
|
description?: RichContent;
|
|
@@ -2664,13 +3132,19 @@ export interface PaymentInput {
|
|
|
2664
3132
|
* Default: true
|
|
2665
3133
|
*/
|
|
2666
3134
|
showLabel?: boolean | null;
|
|
2667
|
-
/**
|
|
3135
|
+
/**
|
|
3136
|
+
* Placeholder of custom option input
|
|
3137
|
+
* @maxLength 100
|
|
3138
|
+
*/
|
|
2668
3139
|
placeholder?: string | null;
|
|
2669
3140
|
/** Default value for the payment input */
|
|
2670
3141
|
default?: number | null;
|
|
2671
3142
|
}
|
|
2672
3143
|
export interface FixedPayment {
|
|
2673
|
-
/**
|
|
3144
|
+
/**
|
|
3145
|
+
* Label of the field.
|
|
3146
|
+
* @maxLength 350
|
|
3147
|
+
*/
|
|
2674
3148
|
label?: string | null;
|
|
2675
3149
|
/** Description of the field. */
|
|
2676
3150
|
description?: RichContent;
|
|
@@ -2691,15 +3165,30 @@ export interface Appointment extends AppointmentFormatInfoOneOf {
|
|
|
2691
3165
|
videoConferenceOptions?: VideoConferenceOptions;
|
|
2692
3166
|
/** Phone options for the appointment */
|
|
2693
3167
|
phoneOptions?: PhoneOptions;
|
|
2694
|
-
/**
|
|
3168
|
+
/**
|
|
3169
|
+
* Label of the field
|
|
3170
|
+
* @maxLength 255
|
|
3171
|
+
*/
|
|
2695
3172
|
label?: string | null;
|
|
2696
|
-
/**
|
|
3173
|
+
/**
|
|
3174
|
+
* Name of the appointment
|
|
3175
|
+
* @minLength 1
|
|
3176
|
+
* @maxLength 400
|
|
3177
|
+
*/
|
|
2697
3178
|
name?: string | null;
|
|
2698
|
-
/**
|
|
3179
|
+
/**
|
|
3180
|
+
* Duration of the appointment in minutes
|
|
3181
|
+
* @min 1
|
|
3182
|
+
* @max 44639
|
|
3183
|
+
*/
|
|
2699
3184
|
durationInMinutes?: number | null;
|
|
2700
3185
|
/** Indicates whether manual approval is required for the appointment */
|
|
2701
3186
|
manualApprovalRequired?: boolean | null;
|
|
2702
|
-
/**
|
|
3187
|
+
/**
|
|
3188
|
+
* ID of the staff members providing the appointment
|
|
3189
|
+
* @maxSize 220
|
|
3190
|
+
* @format GUID
|
|
3191
|
+
*/
|
|
2703
3192
|
staffIds?: string[] | null;
|
|
2704
3193
|
/** The format of the appointment */
|
|
2705
3194
|
format?: Format;
|
|
@@ -2714,16 +3203,28 @@ export interface AppointmentFormatInfoOneOf {
|
|
|
2714
3203
|
phoneOptions?: PhoneOptions;
|
|
2715
3204
|
}
|
|
2716
3205
|
export interface Location extends LocationLocationInfoOneOf {
|
|
2717
|
-
/**
|
|
3206
|
+
/**
|
|
3207
|
+
* Custom address details
|
|
3208
|
+
* @maxLength 512
|
|
3209
|
+
*/
|
|
2718
3210
|
customAddress?: string | null;
|
|
2719
|
-
/**
|
|
3211
|
+
/**
|
|
3212
|
+
* ID of a business location
|
|
3213
|
+
* @format GUID
|
|
3214
|
+
*/
|
|
2720
3215
|
businessLocationId?: string | null;
|
|
2721
3216
|
}
|
|
2722
3217
|
/** @oneof */
|
|
2723
3218
|
export interface LocationLocationInfoOneOf {
|
|
2724
|
-
/**
|
|
3219
|
+
/**
|
|
3220
|
+
* Custom address details
|
|
3221
|
+
* @maxLength 512
|
|
3222
|
+
*/
|
|
2725
3223
|
customAddress?: string | null;
|
|
2726
|
-
/**
|
|
3224
|
+
/**
|
|
3225
|
+
* ID of a business location
|
|
3226
|
+
* @format GUID
|
|
3227
|
+
*/
|
|
2727
3228
|
businessLocationId?: string | null;
|
|
2728
3229
|
}
|
|
2729
3230
|
export declare enum Format {
|
|
@@ -2733,15 +3234,25 @@ export declare enum Format {
|
|
|
2733
3234
|
PHONE = "PHONE"
|
|
2734
3235
|
}
|
|
2735
3236
|
export interface InPersonOptions {
|
|
2736
|
-
/**
|
|
3237
|
+
/**
|
|
3238
|
+
* The locations details
|
|
3239
|
+
* @minSize 1
|
|
3240
|
+
* @maxSize 500
|
|
3241
|
+
*/
|
|
2737
3242
|
locations?: Location[];
|
|
2738
3243
|
}
|
|
2739
3244
|
export interface VideoConferenceOptions {
|
|
2740
|
-
/**
|
|
3245
|
+
/**
|
|
3246
|
+
* Description or instructions for the online video conference
|
|
3247
|
+
* @maxLength 512
|
|
3248
|
+
*/
|
|
2741
3249
|
description?: string | null;
|
|
2742
3250
|
}
|
|
2743
3251
|
export interface PhoneOptions {
|
|
2744
|
-
/**
|
|
3252
|
+
/**
|
|
3253
|
+
* Description or instructions for the phone appointment
|
|
3254
|
+
* @maxLength 512
|
|
3255
|
+
*/
|
|
2745
3256
|
description?: string | null;
|
|
2746
3257
|
}
|
|
2747
3258
|
export declare enum MultilineAddressComponentType {
|
|
@@ -2749,7 +3260,10 @@ export declare enum MultilineAddressComponentType {
|
|
|
2749
3260
|
MULTILINE_ADDRESS = "MULTILINE_ADDRESS"
|
|
2750
3261
|
}
|
|
2751
3262
|
export interface MultilineAddress {
|
|
2752
|
-
/**
|
|
3263
|
+
/**
|
|
3264
|
+
* Label of the field.
|
|
3265
|
+
* @maxLength 350
|
|
3266
|
+
*/
|
|
2753
3267
|
label?: string | null;
|
|
2754
3268
|
/** Description of the field. */
|
|
2755
3269
|
description?: RichContent;
|
|
@@ -2775,14 +3289,20 @@ export interface AddressLine2 {
|
|
|
2775
3289
|
show?: boolean;
|
|
2776
3290
|
}
|
|
2777
3291
|
export interface DefaultCountryConfig extends DefaultCountryConfigOptionsOneOf {
|
|
2778
|
-
/**
|
|
3292
|
+
/**
|
|
3293
|
+
* Country.
|
|
3294
|
+
* @format COUNTRY
|
|
3295
|
+
*/
|
|
2779
3296
|
countryOptions?: string;
|
|
2780
3297
|
/** Default country type. */
|
|
2781
3298
|
type?: Type;
|
|
2782
3299
|
}
|
|
2783
3300
|
/** @oneof */
|
|
2784
3301
|
export interface DefaultCountryConfigOptionsOneOf {
|
|
2785
|
-
/**
|
|
3302
|
+
/**
|
|
3303
|
+
* Country.
|
|
3304
|
+
* @format COUNTRY
|
|
3305
|
+
*/
|
|
2786
3306
|
countryOptions?: string;
|
|
2787
3307
|
}
|
|
2788
3308
|
export interface FieldsSettings {
|
|
@@ -2872,7 +3392,11 @@ export interface AddressInfo {
|
|
|
2872
3392
|
tag?: Tag;
|
|
2873
3393
|
}
|
|
2874
3394
|
export interface CustomFieldInfo {
|
|
2875
|
-
/**
|
|
3395
|
+
/**
|
|
3396
|
+
* Custom field key.
|
|
3397
|
+
* @minLength 1
|
|
3398
|
+
* @maxLength 500
|
|
3399
|
+
*/
|
|
2876
3400
|
key?: string;
|
|
2877
3401
|
}
|
|
2878
3402
|
export interface SubscriptionInfo {
|
|
@@ -3091,7 +3615,12 @@ export interface InputField extends InputFieldInputTypeOptionsOneOf {
|
|
|
3091
3615
|
multilineAddressOptions?: InputFieldMultilineAddress;
|
|
3092
3616
|
/** Input returns scheduling as value. */
|
|
3093
3617
|
schedulingOptions?: Scheduling;
|
|
3094
|
-
/**
|
|
3618
|
+
/**
|
|
3619
|
+
* Definition of a target where the value of field belongs.
|
|
3620
|
+
* @minLength 1
|
|
3621
|
+
* @maxLength 200
|
|
3622
|
+
* @immutable
|
|
3623
|
+
*/
|
|
3095
3624
|
target?: string | null;
|
|
3096
3625
|
/**
|
|
3097
3626
|
* Mark the field as containing personal information. This will encrypt user data when storing it.
|
|
@@ -3163,17 +3692,33 @@ export interface RichContentOptions {
|
|
|
3163
3692
|
richContent?: RichContent;
|
|
3164
3693
|
}
|
|
3165
3694
|
export interface PageNavigationOptions {
|
|
3166
|
-
/**
|
|
3695
|
+
/**
|
|
3696
|
+
* When button is not on last page it behaves as switch between pages page, text of label to go to next page.
|
|
3697
|
+
* @maxLength 65
|
|
3698
|
+
*/
|
|
3167
3699
|
nextPageText?: string | null;
|
|
3168
|
-
/**
|
|
3700
|
+
/**
|
|
3701
|
+
* When button is not on last page it behaves as switch between pages page, text of label to go to previous page.
|
|
3702
|
+
* @maxLength 65
|
|
3703
|
+
*/
|
|
3169
3704
|
previousPageText?: string | null;
|
|
3170
|
-
/**
|
|
3705
|
+
/**
|
|
3706
|
+
* Text on the button when button is submitting a form
|
|
3707
|
+
* @maxLength 65
|
|
3708
|
+
*/
|
|
3171
3709
|
submitText?: string | null;
|
|
3172
3710
|
}
|
|
3173
3711
|
export interface Step {
|
|
3174
|
-
/**
|
|
3712
|
+
/**
|
|
3713
|
+
* Step ID.
|
|
3714
|
+
* @format GUID
|
|
3715
|
+
* @immutable
|
|
3716
|
+
*/
|
|
3175
3717
|
_id?: string;
|
|
3176
|
-
/**
|
|
3718
|
+
/**
|
|
3719
|
+
* Name of the step.
|
|
3720
|
+
* @maxLength 200
|
|
3721
|
+
*/
|
|
3177
3722
|
name?: string | null;
|
|
3178
3723
|
/** Is step hidden */
|
|
3179
3724
|
hidden?: boolean;
|
|
@@ -3189,7 +3734,10 @@ export interface FormLayout {
|
|
|
3189
3734
|
small?: BreakPoint;
|
|
3190
3735
|
}
|
|
3191
3736
|
export interface BreakPoint {
|
|
3192
|
-
/**
|
|
3737
|
+
/**
|
|
3738
|
+
* Description of layouts for items.
|
|
3739
|
+
* @maxSize 500
|
|
3740
|
+
*/
|
|
3193
3741
|
items?: ItemLayout[];
|
|
3194
3742
|
/** Amount of columns of layout grid. */
|
|
3195
3743
|
columns?: number | null;
|
|
@@ -3199,11 +3747,17 @@ export interface BreakPoint {
|
|
|
3199
3747
|
margin?: Margin;
|
|
3200
3748
|
/** Description of elements paddings. */
|
|
3201
3749
|
padding?: Margin;
|
|
3202
|
-
/**
|
|
3750
|
+
/**
|
|
3751
|
+
* Sections of the layout, which allow manage fields
|
|
3752
|
+
* @maxSize 100
|
|
3753
|
+
*/
|
|
3203
3754
|
sections?: Section[];
|
|
3204
3755
|
}
|
|
3205
3756
|
export interface ItemLayout extends ItemLayoutItemOneOf {
|
|
3206
|
-
/**
|
|
3757
|
+
/**
|
|
3758
|
+
* Form field reference id.
|
|
3759
|
+
* @format GUID
|
|
3760
|
+
*/
|
|
3207
3761
|
fieldId?: string;
|
|
3208
3762
|
/** Group info, defining that this item is a group of multiple fields */
|
|
3209
3763
|
group?: Group;
|
|
@@ -3218,15 +3772,25 @@ export interface ItemLayout extends ItemLayoutItemOneOf {
|
|
|
3218
3772
|
}
|
|
3219
3773
|
/** @oneof */
|
|
3220
3774
|
export interface ItemLayoutItemOneOf {
|
|
3221
|
-
/**
|
|
3775
|
+
/**
|
|
3776
|
+
* Form field reference id.
|
|
3777
|
+
* @format GUID
|
|
3778
|
+
*/
|
|
3222
3779
|
fieldId?: string;
|
|
3223
3780
|
/** Group info, defining that this item is a group of multiple fields */
|
|
3224
3781
|
group?: Group;
|
|
3225
3782
|
}
|
|
3226
3783
|
export interface Group {
|
|
3227
|
-
/**
|
|
3784
|
+
/**
|
|
3785
|
+
* Field group reference id.
|
|
3786
|
+
* @format GUID
|
|
3787
|
+
*/
|
|
3228
3788
|
groupId?: string;
|
|
3229
|
-
/**
|
|
3789
|
+
/**
|
|
3790
|
+
* Description of layouts for items.
|
|
3791
|
+
* @minSize 1
|
|
3792
|
+
* @maxSize 500
|
|
3793
|
+
*/
|
|
3230
3794
|
items?: ItemLayout[];
|
|
3231
3795
|
}
|
|
3232
3796
|
export interface Margin {
|
|
@@ -3236,7 +3800,11 @@ export interface Margin {
|
|
|
3236
3800
|
vertical?: number | null;
|
|
3237
3801
|
}
|
|
3238
3802
|
export interface Section {
|
|
3239
|
-
/**
|
|
3803
|
+
/**
|
|
3804
|
+
* Id of the section
|
|
3805
|
+
* @format GUID
|
|
3806
|
+
* @minLength 1
|
|
3807
|
+
*/
|
|
3240
3808
|
_id?: string;
|
|
3241
3809
|
/** Horizontal coordinate in the grid. */
|
|
3242
3810
|
row?: number | null;
|
|
@@ -3246,20 +3814,30 @@ export interface Section {
|
|
|
3246
3814
|
* If the section encounters the $new key within the list,
|
|
3247
3815
|
* it allows the inclusion of fields not explicitly listed,
|
|
3248
3816
|
* enabling dynamic addition of new fields.
|
|
3817
|
+
* @maxSize 100
|
|
3818
|
+
* @maxLength 100
|
|
3249
3819
|
*/
|
|
3250
3820
|
allowedFieldIds?: string[];
|
|
3251
3821
|
}
|
|
3252
3822
|
export interface FormRule {
|
|
3253
|
-
/**
|
|
3823
|
+
/**
|
|
3824
|
+
* Id of the rule
|
|
3825
|
+
* @format GUID
|
|
3826
|
+
* @immutable
|
|
3827
|
+
*/
|
|
3254
3828
|
_id?: string;
|
|
3255
3829
|
/** Rule on which item properties or layouts will be changed. */
|
|
3256
3830
|
condition?: Record<string, any> | null;
|
|
3257
3831
|
/**
|
|
3258
3832
|
* Form items with defined properties that will be
|
|
3259
3833
|
* changed when given condition is resolved to true.
|
|
3834
|
+
* @maxSize 500
|
|
3260
3835
|
*/
|
|
3261
3836
|
overrides?: FormOverride[];
|
|
3262
|
-
/**
|
|
3837
|
+
/**
|
|
3838
|
+
* Name of the rule
|
|
3839
|
+
* @maxLength 200
|
|
3840
|
+
*/
|
|
3263
3841
|
name?: string | null;
|
|
3264
3842
|
}
|
|
3265
3843
|
export declare enum OverrideEntityType {
|
|
@@ -3267,15 +3845,28 @@ export declare enum OverrideEntityType {
|
|
|
3267
3845
|
FIELD = "FIELD"
|
|
3268
3846
|
}
|
|
3269
3847
|
export interface FormOverride {
|
|
3270
|
-
/**
|
|
3848
|
+
/**
|
|
3849
|
+
* Override entity type.
|
|
3850
|
+
* @immutable
|
|
3851
|
+
*/
|
|
3271
3852
|
entityType?: OverrideEntityType;
|
|
3272
|
-
/**
|
|
3853
|
+
/**
|
|
3854
|
+
* Overridden entity id. Either fieldId, or "{fieldIdWithNestedForm}/{nestedFormFieldId}"
|
|
3855
|
+
* @immutable
|
|
3856
|
+
* @maxLength 73
|
|
3857
|
+
*/
|
|
3273
3858
|
entityId?: string | null;
|
|
3274
3859
|
/** Form entity properties path with new value, that will be changed on condition. */
|
|
3275
3860
|
valueChanges?: Record<string, any>;
|
|
3276
3861
|
}
|
|
3277
3862
|
export interface FormProperties {
|
|
3278
|
-
/**
|
|
3863
|
+
/**
|
|
3864
|
+
* Form name.
|
|
3865
|
+
* @maxLength 200
|
|
3866
|
+
* @deprecated
|
|
3867
|
+
* @replacedBy wix.forms.v4.Form.name
|
|
3868
|
+
* @targetRemovalDate 2026-01-06
|
|
3869
|
+
*/
|
|
3279
3870
|
name?: string | null;
|
|
3280
3871
|
/**
|
|
3281
3872
|
* Identifies if the form is disabled.
|
|
@@ -3296,17 +3887,27 @@ export interface PostSubmissionTriggers {
|
|
|
3296
3887
|
upsertContact?: UpsertContact;
|
|
3297
3888
|
}
|
|
3298
3889
|
export interface UpsertContact {
|
|
3299
|
-
/**
|
|
3890
|
+
/**
|
|
3891
|
+
* Fields mapping (target field mapped to corresponding contact field).
|
|
3892
|
+
* @maxSize 250
|
|
3893
|
+
*/
|
|
3300
3894
|
fieldsMapping?: Record<string, FormFieldContactInfo>;
|
|
3301
3895
|
/**
|
|
3302
3896
|
* List of contact label keys.
|
|
3303
3897
|
* [Contact labels](https://support.wix.com/en/article/adding-labels-to-contacts-in-your-contact-list)
|
|
3304
3898
|
* help categorize contacts.
|
|
3899
|
+
* @minLength 1
|
|
3900
|
+
* @maxLength 100
|
|
3901
|
+
* @maxSize 20
|
|
3305
3902
|
*/
|
|
3306
3903
|
labels?: string[];
|
|
3307
3904
|
}
|
|
3308
3905
|
export interface NestedForm {
|
|
3309
|
-
/**
|
|
3906
|
+
/**
|
|
3907
|
+
* Targets which have this form.
|
|
3908
|
+
* @maxSize 10
|
|
3909
|
+
* @maxLength 200
|
|
3910
|
+
*/
|
|
3310
3911
|
targets?: string[];
|
|
3311
3912
|
/** Nested form. */
|
|
3312
3913
|
form?: Form;
|
|
@@ -3373,28 +3974,44 @@ export interface ThankYouMessageOptions {
|
|
|
3373
3974
|
richContent?: RichContent;
|
|
3374
3975
|
}
|
|
3375
3976
|
export interface RedirectOptions {
|
|
3376
|
-
/**
|
|
3977
|
+
/**
|
|
3978
|
+
* The URL to which the user should be redirected after a successful form submission.
|
|
3979
|
+
* @maxLength 2000
|
|
3980
|
+
*/
|
|
3377
3981
|
redirectUrl?: string | null;
|
|
3378
3982
|
/** How the URL should be opened. */
|
|
3379
3983
|
target?: Target;
|
|
3380
3984
|
}
|
|
3381
3985
|
export interface FieldGroup {
|
|
3382
|
-
/**
|
|
3986
|
+
/**
|
|
3987
|
+
* Id of group, on layout
|
|
3988
|
+
* @format GUID
|
|
3989
|
+
*/
|
|
3383
3990
|
_id?: string;
|
|
3384
|
-
/**
|
|
3991
|
+
/**
|
|
3992
|
+
* Label of group
|
|
3993
|
+
* @maxLength 350
|
|
3994
|
+
*/
|
|
3385
3995
|
label?: string | null;
|
|
3386
3996
|
}
|
|
3387
3997
|
export interface CreateCheckoutFromSubmissionResponse {
|
|
3388
|
-
/**
|
|
3998
|
+
/**
|
|
3999
|
+
* Checkout ID (applicable for form involving payments).
|
|
4000
|
+
* @format GUID
|
|
4001
|
+
*/
|
|
3389
4002
|
checkoutId?: string | null;
|
|
3390
4003
|
/** Checkout (applicable for form involving payments). */
|
|
3391
4004
|
checkout?: Checkout;
|
|
3392
4005
|
}
|
|
3393
4006
|
export interface Checkout {
|
|
3394
|
-
/**
|
|
4007
|
+
/**
|
|
4008
|
+
* Checkout ID.
|
|
4009
|
+
* @format GUID
|
|
4010
|
+
*/
|
|
3395
4011
|
_id?: string;
|
|
3396
4012
|
/**
|
|
3397
4013
|
* The currency used when submitting the order.
|
|
4014
|
+
* @format CURRENCY
|
|
3398
4015
|
* @readonly
|
|
3399
4016
|
*/
|
|
3400
4017
|
currency?: string;
|
|
@@ -3476,9 +4093,15 @@ export interface ActionEvent {
|
|
|
3476
4093
|
export interface Empty {
|
|
3477
4094
|
}
|
|
3478
4095
|
export interface MessageEnvelope {
|
|
3479
|
-
/**
|
|
4096
|
+
/**
|
|
4097
|
+
* App instance ID.
|
|
4098
|
+
* @format GUID
|
|
4099
|
+
*/
|
|
3480
4100
|
instanceId?: string | null;
|
|
3481
|
-
/**
|
|
4101
|
+
/**
|
|
4102
|
+
* Event type.
|
|
4103
|
+
* @maxLength 150
|
|
4104
|
+
*/
|
|
3482
4105
|
eventType?: string;
|
|
3483
4106
|
/** The identification type and identity data. */
|
|
3484
4107
|
identity?: IdentificationData;
|
|
@@ -3486,26 +4109,50 @@ export interface MessageEnvelope {
|
|
|
3486
4109
|
data?: string;
|
|
3487
4110
|
}
|
|
3488
4111
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
3489
|
-
/**
|
|
4112
|
+
/**
|
|
4113
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4114
|
+
* @format GUID
|
|
4115
|
+
*/
|
|
3490
4116
|
anonymousVisitorId?: string;
|
|
3491
|
-
/**
|
|
4117
|
+
/**
|
|
4118
|
+
* ID of a site visitor that has logged in to the site.
|
|
4119
|
+
* @format GUID
|
|
4120
|
+
*/
|
|
3492
4121
|
memberId?: string;
|
|
3493
|
-
/**
|
|
4122
|
+
/**
|
|
4123
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4124
|
+
* @format GUID
|
|
4125
|
+
*/
|
|
3494
4126
|
wixUserId?: string;
|
|
3495
|
-
/**
|
|
4127
|
+
/**
|
|
4128
|
+
* ID of an app.
|
|
4129
|
+
* @format GUID
|
|
4130
|
+
*/
|
|
3496
4131
|
appId?: string;
|
|
3497
4132
|
/** @readonly */
|
|
3498
4133
|
identityType?: WebhookIdentityType;
|
|
3499
4134
|
}
|
|
3500
4135
|
/** @oneof */
|
|
3501
4136
|
export interface IdentificationDataIdOneOf {
|
|
3502
|
-
/**
|
|
4137
|
+
/**
|
|
4138
|
+
* ID of a site visitor that has not logged in to the site.
|
|
4139
|
+
* @format GUID
|
|
4140
|
+
*/
|
|
3503
4141
|
anonymousVisitorId?: string;
|
|
3504
|
-
/**
|
|
4142
|
+
/**
|
|
4143
|
+
* ID of a site visitor that has logged in to the site.
|
|
4144
|
+
* @format GUID
|
|
4145
|
+
*/
|
|
3505
4146
|
memberId?: string;
|
|
3506
|
-
/**
|
|
4147
|
+
/**
|
|
4148
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
4149
|
+
* @format GUID
|
|
4150
|
+
*/
|
|
3507
4151
|
wixUserId?: string;
|
|
3508
|
-
/**
|
|
4152
|
+
/**
|
|
4153
|
+
* ID of an app.
|
|
4154
|
+
* @format GUID
|
|
4155
|
+
*/
|
|
3509
4156
|
appId?: string;
|
|
3510
4157
|
}
|
|
3511
4158
|
export declare enum WebhookIdentityType {
|
|
@@ -3515,10 +4162,63 @@ export declare enum WebhookIdentityType {
|
|
|
3515
4162
|
WIX_USER = "WIX_USER",
|
|
3516
4163
|
APP = "APP"
|
|
3517
4164
|
}
|
|
4165
|
+
export interface UpsertContactFromSubmissionRequest {
|
|
4166
|
+
/**
|
|
4167
|
+
* Submission from which contact needs to be upserted.
|
|
4168
|
+
* @format GUID
|
|
4169
|
+
*/
|
|
4170
|
+
submissionId: string;
|
|
4171
|
+
/**
|
|
4172
|
+
* Optional contact id to which submission should be mapped.
|
|
4173
|
+
* @format GUID
|
|
4174
|
+
*/
|
|
4175
|
+
contactId?: string | null;
|
|
4176
|
+
/** Indicates contact has verified primary email. */
|
|
4177
|
+
emailVerified?: boolean;
|
|
4178
|
+
}
|
|
4179
|
+
export interface UpsertContactFromSubmissionResponse {
|
|
4180
|
+
/** Submit contact response. */
|
|
4181
|
+
submitContactResponse?: SubmitContactResponse;
|
|
4182
|
+
}
|
|
4183
|
+
export interface SubmitContactResponse {
|
|
4184
|
+
/**
|
|
4185
|
+
* ID of the contact that was found or created.
|
|
4186
|
+
* @format GUID
|
|
4187
|
+
*/
|
|
4188
|
+
contactId?: string;
|
|
4189
|
+
/**
|
|
4190
|
+
* Identity type of the returned contact.
|
|
4191
|
+
*
|
|
4192
|
+
* - `CONTACT`: The returned contact ID belongs to a new or existing contact.
|
|
4193
|
+
* - `MEMBER`: The returned contact ID belongs to the currently logged-in site member.
|
|
4194
|
+
* - `NOT_AUTHENTICATED_MEMBER`: The returned contact ID belongs to a site member who is not currently logged in.
|
|
4195
|
+
*/
|
|
4196
|
+
identityType?: IdentityType;
|
|
4197
|
+
/**
|
|
4198
|
+
* Indicates whether the contact was just created or already existed.
|
|
4199
|
+
*
|
|
4200
|
+
* If the contact was just created, returns `true`.
|
|
4201
|
+
* If it already existed, returns `false`.
|
|
4202
|
+
*/
|
|
4203
|
+
newContact?: boolean;
|
|
4204
|
+
}
|
|
4205
|
+
export declare enum IdentityType {
|
|
4206
|
+
UNKNOWN = "UNKNOWN",
|
|
4207
|
+
/** Existing or new contact */
|
|
4208
|
+
CONTACT = "CONTACT",
|
|
4209
|
+
/** Member is logged in, matching logic skipped */
|
|
4210
|
+
MEMBER = "MEMBER",
|
|
4211
|
+
/** Matching contact is a member, Merge logic won't be applied */
|
|
4212
|
+
NOT_AUTHENTICATED_MEMBER = "NOT_AUTHENTICATED_MEMBER"
|
|
4213
|
+
}
|
|
3518
4214
|
export interface CreateSubmissionRequest {
|
|
3519
4215
|
/** Submission to create. */
|
|
3520
4216
|
submission: FormSubmission;
|
|
3521
|
-
/**
|
|
4217
|
+
/**
|
|
4218
|
+
* Captcha token.
|
|
4219
|
+
* @minLength 1
|
|
4220
|
+
* @maxLength 3000
|
|
4221
|
+
*/
|
|
3522
4222
|
captchaToken?: string | null;
|
|
3523
4223
|
/**
|
|
3524
4224
|
* Optional metadata passed to SPI implementer, allowing clients to include additional business-specific data.
|
|
@@ -3531,15 +4231,24 @@ export interface CreateSubmissionResponse {
|
|
|
3531
4231
|
submission?: FormSubmission;
|
|
3532
4232
|
}
|
|
3533
4233
|
export interface SubmissionValidationErrorsDetails {
|
|
3534
|
-
/**
|
|
4234
|
+
/**
|
|
4235
|
+
* Submission validation errors details.
|
|
4236
|
+
* @maxSize 100
|
|
4237
|
+
*/
|
|
3535
4238
|
errors?: ValidationError[];
|
|
3536
4239
|
}
|
|
3537
4240
|
export interface ValidationError {
|
|
3538
|
-
/**
|
|
4241
|
+
/**
|
|
4242
|
+
* Path indicating the source of the error, such as `submission.submissions.email``
|
|
4243
|
+
* @maxLength 1000
|
|
4244
|
+
*/
|
|
3539
4245
|
errorPath?: string;
|
|
3540
4246
|
/** Error type. */
|
|
3541
4247
|
errorType?: ErrorType;
|
|
3542
|
-
/**
|
|
4248
|
+
/**
|
|
4249
|
+
* Error message.
|
|
4250
|
+
* @maxLength 1000
|
|
4251
|
+
*/
|
|
3543
4252
|
errorMessage?: string;
|
|
3544
4253
|
/** Additional error parameters, to help identify additional info. */
|
|
3545
4254
|
params?: Record<string, any> | null;
|
|
@@ -3613,16 +4322,23 @@ export interface CreateSubmissionBySubmitterResponse {
|
|
|
3613
4322
|
submission?: FormSubmission;
|
|
3614
4323
|
}
|
|
3615
4324
|
export interface BulkCreateSubmissionBySubmitterRequest {
|
|
3616
|
-
/**
|
|
4325
|
+
/**
|
|
4326
|
+
* Form id. Restricts submissions creation for a single form.
|
|
4327
|
+
* @format GUID
|
|
4328
|
+
*/
|
|
3617
4329
|
formId: string;
|
|
3618
4330
|
/**
|
|
3619
4331
|
* Submissions to create.
|
|
3620
4332
|
* Deprecated
|
|
4333
|
+
* @maxSize 100
|
|
3621
4334
|
*/
|
|
3622
4335
|
submissions?: FormSubmission[];
|
|
3623
4336
|
/** When set, items will be returned on successful create. */
|
|
3624
4337
|
returnEntity?: boolean;
|
|
3625
|
-
/**
|
|
4338
|
+
/**
|
|
4339
|
+
* Submissions data to create.
|
|
4340
|
+
* @maxSize 100
|
|
4341
|
+
*/
|
|
3626
4342
|
submissionsV2?: BulkCreateSubmissionBySubmitterData[];
|
|
3627
4343
|
/** Validation will be mode is more forgiving, for example "required" won't be validated. */
|
|
3628
4344
|
lenientValidation?: boolean;
|
|
@@ -3646,7 +4362,10 @@ export interface BulkSubmissionResult {
|
|
|
3646
4362
|
item?: FormSubmission;
|
|
3647
4363
|
}
|
|
3648
4364
|
export interface ItemMetadata {
|
|
3649
|
-
/**
|
|
4365
|
+
/**
|
|
4366
|
+
* Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
|
|
4367
|
+
* @format GUID
|
|
4368
|
+
*/
|
|
3650
4369
|
_id?: string | null;
|
|
3651
4370
|
/** Index of the item within the request array. Allows for correlation between request and response items. */
|
|
3652
4371
|
originalIndex?: number;
|
|
@@ -3672,7 +4391,10 @@ export interface BulkActionMetadata {
|
|
|
3672
4391
|
undetailedFailures?: number;
|
|
3673
4392
|
}
|
|
3674
4393
|
export interface GetSubmissionRequest {
|
|
3675
|
-
/**
|
|
4394
|
+
/**
|
|
4395
|
+
* ID of the submission to retrieve.
|
|
4396
|
+
* @format GUID
|
|
4397
|
+
*/
|
|
3676
4398
|
submissionId: string;
|
|
3677
4399
|
}
|
|
3678
4400
|
export interface GetSubmissionResponse {
|
|
@@ -3680,7 +4402,10 @@ export interface GetSubmissionResponse {
|
|
|
3680
4402
|
submission?: FormSubmission;
|
|
3681
4403
|
}
|
|
3682
4404
|
export interface GetSubmissionByCheckoutIdRequest {
|
|
3683
|
-
/**
|
|
4405
|
+
/**
|
|
4406
|
+
* Checkout ID of the submission to retrieve.
|
|
4407
|
+
* @format GUID
|
|
4408
|
+
*/
|
|
3684
4409
|
checkoutId?: string;
|
|
3685
4410
|
}
|
|
3686
4411
|
export interface GetSubmissionByCheckoutIdResponse {
|
|
@@ -3696,7 +4421,10 @@ export interface UpdateSubmissionResponse {
|
|
|
3696
4421
|
submission?: FormSubmission;
|
|
3697
4422
|
}
|
|
3698
4423
|
export interface ConfirmSubmissionRequest {
|
|
3699
|
-
/**
|
|
4424
|
+
/**
|
|
4425
|
+
* Submission ID to confirm.
|
|
4426
|
+
* @format GUID
|
|
4427
|
+
*/
|
|
3700
4428
|
submissionId: string;
|
|
3701
4429
|
}
|
|
3702
4430
|
export interface ConfirmSubmissionResponse {
|
|
@@ -3704,7 +4432,10 @@ export interface ConfirmSubmissionResponse {
|
|
|
3704
4432
|
submission?: FormSubmission;
|
|
3705
4433
|
}
|
|
3706
4434
|
export interface DeleteSubmissionRequest {
|
|
3707
|
-
/**
|
|
4435
|
+
/**
|
|
4436
|
+
* ID of the submission to delete.
|
|
4437
|
+
* @format GUID
|
|
4438
|
+
*/
|
|
3708
4439
|
submissionId: string;
|
|
3709
4440
|
/**
|
|
3710
4441
|
* Delete the submission, bypassing the trash bin. This means that the submission is permanently deleted and cannot be restored.
|
|
@@ -3719,9 +4450,17 @@ export interface DeleteSubmissionRequest {
|
|
|
3719
4450
|
export interface DeleteSubmissionResponse {
|
|
3720
4451
|
}
|
|
3721
4452
|
export interface BulkDeleteSubmissionRequest {
|
|
3722
|
-
/**
|
|
4453
|
+
/**
|
|
4454
|
+
* Form ID.
|
|
4455
|
+
* @format GUID
|
|
4456
|
+
*/
|
|
3723
4457
|
formId: string;
|
|
3724
|
-
/**
|
|
4458
|
+
/**
|
|
4459
|
+
* Submission ids.
|
|
4460
|
+
* @minSize 1
|
|
4461
|
+
* @maxSize 100
|
|
4462
|
+
* @format GUID
|
|
4463
|
+
*/
|
|
3725
4464
|
submissionIds?: string[];
|
|
3726
4465
|
/**
|
|
3727
4466
|
* Delete submission bypassing trash-bin
|
|
@@ -3732,7 +4471,11 @@ export interface BulkDeleteSubmissionRequest {
|
|
|
3732
4471
|
preserveFiles?: boolean;
|
|
3733
4472
|
}
|
|
3734
4473
|
export interface BulkDeleteSubmissionResponse {
|
|
3735
|
-
/**
|
|
4474
|
+
/**
|
|
4475
|
+
* Results of bulk submission delete
|
|
4476
|
+
* @minSize 1
|
|
4477
|
+
* @maxSize 100
|
|
4478
|
+
*/
|
|
3736
4479
|
results?: BulkDeleteSubmissionResult[];
|
|
3737
4480
|
/** Metadata of request */
|
|
3738
4481
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -3742,7 +4485,10 @@ export interface BulkDeleteSubmissionResult {
|
|
|
3742
4485
|
itemMetadata?: ItemMetadata;
|
|
3743
4486
|
}
|
|
3744
4487
|
export interface RestoreSubmissionFromTrashBinRequest {
|
|
3745
|
-
/**
|
|
4488
|
+
/**
|
|
4489
|
+
* ID of the submission to restore.
|
|
4490
|
+
* @format GUID
|
|
4491
|
+
*/
|
|
3746
4492
|
submissionId: string;
|
|
3747
4493
|
}
|
|
3748
4494
|
export interface RestoreSubmissionFromTrashBinResponse {
|
|
@@ -3750,19 +4496,33 @@ export interface RestoreSubmissionFromTrashBinResponse {
|
|
|
3750
4496
|
submission?: FormSubmission;
|
|
3751
4497
|
}
|
|
3752
4498
|
export interface RemoveSubmissionFromTrashBinRequest {
|
|
3753
|
-
/**
|
|
4499
|
+
/**
|
|
4500
|
+
* ID of the submission to restore.
|
|
4501
|
+
* @format GUID
|
|
4502
|
+
*/
|
|
3754
4503
|
submissionId: string;
|
|
3755
4504
|
}
|
|
3756
4505
|
export interface RemoveSubmissionFromTrashBinResponse {
|
|
3757
4506
|
}
|
|
3758
4507
|
export interface BulkRemoveSubmissionFromTrashBinRequest {
|
|
3759
|
-
/**
|
|
4508
|
+
/**
|
|
4509
|
+
* Form ID.
|
|
4510
|
+
* @format GUID
|
|
4511
|
+
*/
|
|
3760
4512
|
formId: string;
|
|
3761
|
-
/**
|
|
4513
|
+
/**
|
|
4514
|
+
* Submission ids.
|
|
4515
|
+
* @minSize 1
|
|
4516
|
+
* @maxSize 100
|
|
4517
|
+
* @format GUID
|
|
4518
|
+
*/
|
|
3762
4519
|
submissionIds?: string[];
|
|
3763
4520
|
}
|
|
3764
4521
|
export interface BulkRemoveSubmissionFromTrashBinResponse {
|
|
3765
|
-
/**
|
|
4522
|
+
/**
|
|
4523
|
+
* Results of bulk submission removal from trash
|
|
4524
|
+
* @maxSize 100
|
|
4525
|
+
*/
|
|
3766
4526
|
results?: BulkRemoveSubmissionFromTrashBinResult[];
|
|
3767
4527
|
/** Metadata of request */
|
|
3768
4528
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -3772,20 +4532,31 @@ export interface BulkRemoveSubmissionFromTrashBinResult {
|
|
|
3772
4532
|
itemMetadata?: ItemMetadata;
|
|
3773
4533
|
}
|
|
3774
4534
|
export interface ListDeletedSubmissionsRequest {
|
|
3775
|
-
/**
|
|
4535
|
+
/**
|
|
4536
|
+
* Form ID.
|
|
4537
|
+
* @format GUID
|
|
4538
|
+
*/
|
|
3776
4539
|
formId: string;
|
|
3777
|
-
/**
|
|
4540
|
+
/**
|
|
4541
|
+
* Submission ids.
|
|
4542
|
+
* @maxSize 10
|
|
4543
|
+
* @format GUID
|
|
4544
|
+
*/
|
|
3778
4545
|
submissionIds?: string[];
|
|
3779
4546
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not filter or `order`. */
|
|
3780
4547
|
paging?: CursorPaging;
|
|
3781
4548
|
/**
|
|
3782
4549
|
* List of statuses of submissions which should be returned
|
|
3783
4550
|
* Default: CONFIRMED
|
|
4551
|
+
* @maxSize 4
|
|
3784
4552
|
*/
|
|
3785
4553
|
statuses?: SubmissionStatus[];
|
|
3786
4554
|
}
|
|
3787
4555
|
export interface CursorPaging {
|
|
3788
|
-
/**
|
|
4556
|
+
/**
|
|
4557
|
+
* Number of items to load.
|
|
4558
|
+
* @max 100
|
|
4559
|
+
*/
|
|
3789
4560
|
limit?: number | null;
|
|
3790
4561
|
/**
|
|
3791
4562
|
* Pointer to the next or previous page in the list of results.
|
|
@@ -3793,6 +4564,7 @@ export interface CursorPaging {
|
|
|
3793
4564
|
* You can get the relevant cursor token
|
|
3794
4565
|
* from the `pagingMetadata` object in the previous call's response.
|
|
3795
4566
|
* Not relevant for the first request.
|
|
4567
|
+
* @maxLength 16000
|
|
3796
4568
|
*/
|
|
3797
4569
|
cursor?: string | null;
|
|
3798
4570
|
}
|
|
@@ -3815,13 +4587,22 @@ export interface CursorPagingMetadata {
|
|
|
3815
4587
|
hasNext?: boolean | null;
|
|
3816
4588
|
}
|
|
3817
4589
|
export interface Cursors {
|
|
3818
|
-
/**
|
|
4590
|
+
/**
|
|
4591
|
+
* Cursor pointing to next page in the list of results.
|
|
4592
|
+
* @maxLength 16000
|
|
4593
|
+
*/
|
|
3819
4594
|
next?: string | null;
|
|
3820
|
-
/**
|
|
4595
|
+
/**
|
|
4596
|
+
* Cursor pointing to previous page in the list of results.
|
|
4597
|
+
* @maxLength 16000
|
|
4598
|
+
*/
|
|
3821
4599
|
prev?: string | null;
|
|
3822
4600
|
}
|
|
3823
4601
|
export interface GetDeletedSubmissionRequest {
|
|
3824
|
-
/**
|
|
4602
|
+
/**
|
|
4603
|
+
* Submission id.
|
|
4604
|
+
* @format GUID
|
|
4605
|
+
*/
|
|
3825
4606
|
submissionId: string;
|
|
3826
4607
|
}
|
|
3827
4608
|
export interface GetDeletedSubmissionResponse {
|
|
@@ -3849,6 +4630,7 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
|
|
|
3849
4630
|
/**
|
|
3850
4631
|
* Sort object in the following format:
|
|
3851
4632
|
* `[{"fieldName":"sortField1","order":"ASC"},{"fieldName":"sortField2","order":"DESC"}]`
|
|
4633
|
+
* @maxSize 3
|
|
3852
4634
|
*/
|
|
3853
4635
|
sort?: Sorting[];
|
|
3854
4636
|
}
|
|
@@ -3858,7 +4640,10 @@ export interface CursorQueryPagingMethodOneOf {
|
|
|
3858
4640
|
cursorPaging?: CursorPaging;
|
|
3859
4641
|
}
|
|
3860
4642
|
export interface Sorting {
|
|
3861
|
-
/**
|
|
4643
|
+
/**
|
|
4644
|
+
* Name of the field to sort by.
|
|
4645
|
+
* @maxLength 512
|
|
4646
|
+
*/
|
|
3862
4647
|
fieldName?: string;
|
|
3863
4648
|
/** Sort order. */
|
|
3864
4649
|
order?: SortOrder;
|
|
@@ -3885,7 +4670,10 @@ export interface CursorSearch extends CursorSearchPagingMethodOneOf {
|
|
|
3885
4670
|
cursorPaging?: CursorPaging;
|
|
3886
4671
|
/** A filter object. See documentation [here](https://bo.wix.com/wix-docs/rnd/platformization-guidelines/api-query-language#platformization-guidelines_api-query-language_defining-in-protobuf) */
|
|
3887
4672
|
filter?: Record<string, any> | null;
|
|
3888
|
-
/**
|
|
4673
|
+
/**
|
|
4674
|
+
* Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
|
|
4675
|
+
* @maxSize 10
|
|
4676
|
+
*/
|
|
3889
4677
|
sort?: Sorting[];
|
|
3890
4678
|
/** Free text to match in searchable fields */
|
|
3891
4679
|
search?: SearchDetails;
|
|
@@ -3901,7 +4689,10 @@ export interface CursorSearchPagingMethodOneOf {
|
|
|
3901
4689
|
export interface SearchDetails {
|
|
3902
4690
|
/** Defines how separate search terms in `expression` are combined */
|
|
3903
4691
|
mode?: Mode;
|
|
3904
|
-
/**
|
|
4692
|
+
/**
|
|
4693
|
+
* Search term or expression
|
|
4694
|
+
* @maxLength 100
|
|
4695
|
+
*/
|
|
3905
4696
|
expression?: string | null;
|
|
3906
4697
|
/** Flag if should use auto fuzzy search (allowing typos by a managed proximity algorithm) */
|
|
3907
4698
|
fuzzy?: boolean;
|
|
@@ -3961,7 +4752,10 @@ export interface CountSubmissionsByFilterResponse {
|
|
|
3961
4752
|
formsSubmissionsCount?: FormSubmissionsCount[];
|
|
3962
4753
|
}
|
|
3963
4754
|
export interface FormSubmissionsCount {
|
|
3964
|
-
/**
|
|
4755
|
+
/**
|
|
4756
|
+
* Form ID.
|
|
4757
|
+
* @format GUID
|
|
4758
|
+
*/
|
|
3965
4759
|
formId?: string;
|
|
3966
4760
|
/** Total number of submissions. */
|
|
3967
4761
|
totalCount?: number;
|
|
@@ -3969,9 +4763,18 @@ export interface FormSubmissionsCount {
|
|
|
3969
4763
|
unseenCount?: number;
|
|
3970
4764
|
}
|
|
3971
4765
|
export interface CountSubmissionsRequest {
|
|
3972
|
-
/**
|
|
4766
|
+
/**
|
|
4767
|
+
* Form IDs which submissions should be counted.
|
|
4768
|
+
* @format GUID
|
|
4769
|
+
* @minSize 1
|
|
4770
|
+
* @maxSize 100
|
|
4771
|
+
*/
|
|
3973
4772
|
formIds: string[];
|
|
3974
|
-
/**
|
|
4773
|
+
/**
|
|
4774
|
+
* The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `getSubmission()` to retrieve the namespace.
|
|
4775
|
+
* @minLength 10
|
|
4776
|
+
* @maxLength 50
|
|
4777
|
+
*/
|
|
3975
4778
|
namespace: string;
|
|
3976
4779
|
/**
|
|
3977
4780
|
* Status of the submission.
|
|
@@ -3979,6 +4782,7 @@ export interface CountSubmissionsRequest {
|
|
|
3979
4782
|
* - `PAYMENT_WAITING`: A form submission requiring payment is created.
|
|
3980
4783
|
* - `PAYMENT_CANCELED`: An order of a form submission is canceled.
|
|
3981
4784
|
* - `CONFIRMED`: A submission is recorded in the Wix Forms collection.
|
|
4785
|
+
* @maxSize 4
|
|
3982
4786
|
*/
|
|
3983
4787
|
statuses?: SubmissionStatus[];
|
|
3984
4788
|
}
|
|
@@ -3987,13 +4791,23 @@ export interface CountSubmissionsResponse {
|
|
|
3987
4791
|
formsSubmissionsCount?: FormSubmissionsCount[];
|
|
3988
4792
|
}
|
|
3989
4793
|
export interface CountDeletedSubmissionsRequest {
|
|
3990
|
-
/**
|
|
4794
|
+
/**
|
|
4795
|
+
* Form IDs.
|
|
4796
|
+
* @format GUID
|
|
4797
|
+
* @minSize 1
|
|
4798
|
+
* @maxSize 100
|
|
4799
|
+
*/
|
|
3991
4800
|
formIds: string[];
|
|
3992
|
-
/**
|
|
4801
|
+
/**
|
|
4802
|
+
* Identifies the app which the form submissions belong to. For example, the namespace for the Wix Forms App is `"wix.form_app.form"`. The namespace of a submission can be retrieved using the Get Submission endpoint.
|
|
4803
|
+
* @minLength 10
|
|
4804
|
+
* @maxLength 50
|
|
4805
|
+
*/
|
|
3993
4806
|
namespace: string;
|
|
3994
4807
|
/**
|
|
3995
4808
|
* List of statuses of submissions which should be taken into count
|
|
3996
4809
|
* Default: CONFIRMED, PAYMENT_WAITING, PAYMENT_CANCELED
|
|
4810
|
+
* @maxSize 4
|
|
3997
4811
|
*/
|
|
3998
4812
|
statuses?: SubmissionStatus[];
|
|
3999
4813
|
}
|
|
@@ -4002,37 +4816,61 @@ export interface CountDeletedSubmissionsResponse {
|
|
|
4002
4816
|
formsDeletedSubmissionsCount?: FormDeletedSubmissionsCount[];
|
|
4003
4817
|
}
|
|
4004
4818
|
export interface FormDeletedSubmissionsCount {
|
|
4005
|
-
/**
|
|
4819
|
+
/**
|
|
4820
|
+
* Form ID.
|
|
4821
|
+
* @format GUID
|
|
4822
|
+
*/
|
|
4006
4823
|
formId?: string;
|
|
4007
4824
|
/** Total number of submissions. */
|
|
4008
4825
|
totalCount?: number;
|
|
4009
4826
|
}
|
|
4010
4827
|
export interface GetMediaUploadURLRequest {
|
|
4011
|
-
/**
|
|
4828
|
+
/**
|
|
4829
|
+
* Form ID.
|
|
4830
|
+
* @format GUID
|
|
4831
|
+
*/
|
|
4012
4832
|
formId: string;
|
|
4013
|
-
/**
|
|
4833
|
+
/**
|
|
4834
|
+
* Name of file to upload.
|
|
4835
|
+
* @maxLength 300
|
|
4836
|
+
*/
|
|
4014
4837
|
filename: string;
|
|
4015
4838
|
/**
|
|
4016
4839
|
* [Mime type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types#) of file to upload.
|
|
4017
4840
|
*
|
|
4018
4841
|
* For example, `'image/png'`
|
|
4842
|
+
* @maxLength 100
|
|
4019
4843
|
*/
|
|
4020
4844
|
mimeType: string;
|
|
4021
4845
|
}
|
|
4022
4846
|
export interface GetMediaUploadURLResponse {
|
|
4023
|
-
/**
|
|
4847
|
+
/**
|
|
4848
|
+
* Url to upload file.
|
|
4849
|
+
* @maxLength 500
|
|
4850
|
+
*/
|
|
4024
4851
|
uploadUrl?: string;
|
|
4025
4852
|
}
|
|
4026
4853
|
export interface BulkMarkSubmissionsAsSeenRequest {
|
|
4027
|
-
/**
|
|
4854
|
+
/**
|
|
4855
|
+
* Submission IDs to mark as seen.
|
|
4856
|
+
* @format GUID
|
|
4857
|
+
* @minSize 1
|
|
4858
|
+
* @maxSize 100
|
|
4859
|
+
*/
|
|
4028
4860
|
ids: string[];
|
|
4029
|
-
/**
|
|
4861
|
+
/**
|
|
4862
|
+
* ID of the form which the submissions belong to.
|
|
4863
|
+
* @format GUID
|
|
4864
|
+
*/
|
|
4030
4865
|
formId: string;
|
|
4031
4866
|
}
|
|
4032
4867
|
export interface BulkMarkSubmissionsAsSeenResponse {
|
|
4033
4868
|
}
|
|
4034
4869
|
export interface GetSubmissionDownloadUrlRequest {
|
|
4035
|
-
/**
|
|
4870
|
+
/**
|
|
4871
|
+
* Submission ID.
|
|
4872
|
+
* @format GUID
|
|
4873
|
+
*/
|
|
4036
4874
|
submissionId: string;
|
|
4037
4875
|
}
|
|
4038
4876
|
export interface GetSubmissionDownloadUrlResponse {
|
|
@@ -4045,6 +4883,7 @@ export interface SubmissionDocument extends SubmissionDocumentDocumentOneOf {
|
|
|
4045
4883
|
/**
|
|
4046
4884
|
* Document ID.
|
|
4047
4885
|
* @readonly
|
|
4886
|
+
* @maxLength 50
|
|
4048
4887
|
*/
|
|
4049
4888
|
_id?: string | null;
|
|
4050
4889
|
/** Document status. */
|
|
@@ -4065,45 +4904,89 @@ export interface DocumentReady {
|
|
|
4065
4904
|
/**
|
|
4066
4905
|
* Document download URL.
|
|
4067
4906
|
* @readonly
|
|
4907
|
+
* @maxLength 300
|
|
4068
4908
|
*/
|
|
4069
4909
|
downloadUrl?: string;
|
|
4070
4910
|
}
|
|
4071
4911
|
export interface GetFormattedSubmissionRequest {
|
|
4072
|
-
/**
|
|
4912
|
+
/**
|
|
4913
|
+
* Submission ID.
|
|
4914
|
+
* @format GUID
|
|
4915
|
+
*/
|
|
4073
4916
|
submissionId?: string;
|
|
4074
4917
|
}
|
|
4075
4918
|
export interface GetFormattedSubmissionResponse {
|
|
4076
|
-
/**
|
|
4919
|
+
/**
|
|
4920
|
+
* Submission ID.
|
|
4921
|
+
* @format GUID
|
|
4922
|
+
*/
|
|
4077
4923
|
submissionId?: string;
|
|
4078
|
-
/**
|
|
4924
|
+
/**
|
|
4925
|
+
* Ordered by form layout list of field submissions.
|
|
4926
|
+
* @maxSize 100
|
|
4927
|
+
*/
|
|
4079
4928
|
submissions?: FormattedSubmission[];
|
|
4080
4929
|
}
|
|
4081
4930
|
export interface FormattedSubmission {
|
|
4082
|
-
/**
|
|
4931
|
+
/**
|
|
4932
|
+
* Label of form field
|
|
4933
|
+
* @maxLength 500
|
|
4934
|
+
*/
|
|
4083
4935
|
label?: string | null;
|
|
4084
|
-
/**
|
|
4936
|
+
/**
|
|
4937
|
+
* Key of the submission, and target of a form field
|
|
4938
|
+
* @maxLength 200
|
|
4939
|
+
*/
|
|
4085
4940
|
key?: string;
|
|
4086
|
-
/**
|
|
4941
|
+
/**
|
|
4942
|
+
* Value of the submission, formatted as a string
|
|
4943
|
+
* @maxLength 500
|
|
4944
|
+
*/
|
|
4087
4945
|
value?: string;
|
|
4088
|
-
/**
|
|
4946
|
+
/**
|
|
4947
|
+
* Id of the form field
|
|
4948
|
+
* @format GUID
|
|
4949
|
+
*/
|
|
4089
4950
|
fieldId?: string;
|
|
4090
4951
|
}
|
|
4091
4952
|
export interface ListFormattedSubmissionsRequest {
|
|
4092
|
-
/**
|
|
4953
|
+
/**
|
|
4954
|
+
* Namespace.
|
|
4955
|
+
* @minLength 10
|
|
4956
|
+
* @maxLength 50
|
|
4957
|
+
*/
|
|
4093
4958
|
namespace?: string;
|
|
4094
|
-
/**
|
|
4959
|
+
/**
|
|
4960
|
+
* Submission IDs.
|
|
4961
|
+
* @format GUID
|
|
4962
|
+
* @minSize 1
|
|
4963
|
+
* @maxSize 100
|
|
4964
|
+
*/
|
|
4095
4965
|
submissionIds?: string[];
|
|
4096
|
-
/**
|
|
4966
|
+
/**
|
|
4967
|
+
* Optional additional filter of form IDs.
|
|
4968
|
+
* @format GUID
|
|
4969
|
+
* @maxSize 100
|
|
4970
|
+
*/
|
|
4097
4971
|
formIds?: string[];
|
|
4098
4972
|
}
|
|
4099
4973
|
export interface ListFormattedSubmissionsResponse {
|
|
4100
|
-
/**
|
|
4974
|
+
/**
|
|
4975
|
+
* List of formatted submissions
|
|
4976
|
+
* @maxSize 100
|
|
4977
|
+
*/
|
|
4101
4978
|
formattedFormSubmissions?: FormattedFormSubmission[];
|
|
4102
4979
|
}
|
|
4103
4980
|
export interface FormattedFormSubmission {
|
|
4104
|
-
/**
|
|
4981
|
+
/**
|
|
4982
|
+
* Submission ID.
|
|
4983
|
+
* @format GUID
|
|
4984
|
+
*/
|
|
4105
4985
|
submissionId?: string;
|
|
4106
|
-
/**
|
|
4986
|
+
/**
|
|
4987
|
+
* Ordered by form layout list of field submissions.
|
|
4988
|
+
* @maxSize 100
|
|
4989
|
+
*/
|
|
4107
4990
|
submissions?: FormattedSubmission[];
|
|
4108
4991
|
}
|
|
4109
4992
|
export interface UpdateExtendedFieldsRequest {
|
|
@@ -4115,13 +4998,22 @@ export interface UpdateExtendedFieldsRequest {
|
|
|
4115
4998
|
namespaceData: Record<string, any> | null;
|
|
4116
4999
|
}
|
|
4117
5000
|
export interface UpdateExtendedFieldsResponse {
|
|
4118
|
-
/**
|
|
5001
|
+
/**
|
|
5002
|
+
* namespace that was updated
|
|
5003
|
+
* @minLength 10
|
|
5004
|
+
* @maxLength 50
|
|
5005
|
+
*/
|
|
4119
5006
|
namespace?: string;
|
|
4120
5007
|
/** only data from UpdateExtendedFieldsRequest namespace_data */
|
|
4121
5008
|
namespaceData?: Record<string, any> | null;
|
|
4122
5009
|
}
|
|
4123
5010
|
export interface BulkUpdateFormSubmissionTagsRequest {
|
|
4124
|
-
/**
|
|
5011
|
+
/**
|
|
5012
|
+
* Submission IDs to update tags for.
|
|
5013
|
+
* @format GUID
|
|
5014
|
+
* @minSize 1
|
|
5015
|
+
* @maxSize 100
|
|
5016
|
+
*/
|
|
4125
5017
|
submissionIds: string[];
|
|
4126
5018
|
/** Tags to be added to submissions */
|
|
4127
5019
|
assignTags?: PublicTags;
|
|
@@ -4129,7 +5021,11 @@ export interface BulkUpdateFormSubmissionTagsRequest {
|
|
|
4129
5021
|
unassignTags?: PublicTags;
|
|
4130
5022
|
}
|
|
4131
5023
|
export interface BulkUpdateFormSubmissionTagsResponse {
|
|
4132
|
-
/**
|
|
5024
|
+
/**
|
|
5025
|
+
* Updated submissions with results
|
|
5026
|
+
* @minSize 1
|
|
5027
|
+
* @maxSize 100
|
|
5028
|
+
*/
|
|
4133
5029
|
results?: BulkUpdateFormSubmissionTagsResult[];
|
|
4134
5030
|
/** Metadata of request */
|
|
4135
5031
|
bulkActionMetadata?: BulkActionMetadata;
|
|
@@ -4147,7 +5043,10 @@ export interface BulkUpdateFormSubmissionTagsByFilterRequest {
|
|
|
4147
5043
|
unassignTags?: PublicTags;
|
|
4148
5044
|
}
|
|
4149
5045
|
export interface BulkUpdateFormSubmissionTagsByFilterResponse {
|
|
4150
|
-
/**
|
|
5046
|
+
/**
|
|
5047
|
+
* Job id for the bulk update operation
|
|
5048
|
+
* @format GUID
|
|
5049
|
+
*/
|
|
4151
5050
|
jobId?: string;
|
|
4152
5051
|
}
|
|
4153
5052
|
export interface ValidateFormSubmissionRequest {
|
|
@@ -4162,17 +5061,29 @@ export interface ValidateFormSubmissionResponse {
|
|
|
4162
5061
|
* Default: true
|
|
4163
5062
|
*/
|
|
4164
5063
|
valid?: boolean | null;
|
|
4165
|
-
/**
|
|
5064
|
+
/**
|
|
5065
|
+
* Submission validation violations
|
|
5066
|
+
* @maxSize 100
|
|
5067
|
+
*/
|
|
4166
5068
|
violationErrors?: FieldViolation[];
|
|
4167
5069
|
}
|
|
4168
5070
|
export interface FieldViolation extends FieldViolationErrorDataOneOf {
|
|
4169
5071
|
/** Validation errors */
|
|
4170
5072
|
submissionValidationErrors?: SubmissionValidationErrors;
|
|
4171
|
-
/**
|
|
5073
|
+
/**
|
|
5074
|
+
* Name of violated entity
|
|
5075
|
+
* @maxLength 50
|
|
5076
|
+
*/
|
|
4172
5077
|
name?: string;
|
|
4173
|
-
/**
|
|
5078
|
+
/**
|
|
5079
|
+
* Description of the error
|
|
5080
|
+
* @maxLength 512
|
|
5081
|
+
*/
|
|
4174
5082
|
description?: string;
|
|
4175
|
-
/**
|
|
5083
|
+
/**
|
|
5084
|
+
* Rule name
|
|
5085
|
+
* @maxLength 50
|
|
5086
|
+
*/
|
|
4176
5087
|
ruleName?: string;
|
|
4177
5088
|
}
|
|
4178
5089
|
/** @oneof */
|
|
@@ -4181,15 +5092,24 @@ export interface FieldViolationErrorDataOneOf {
|
|
|
4181
5092
|
submissionValidationErrors?: SubmissionValidationErrors;
|
|
4182
5093
|
}
|
|
4183
5094
|
export interface SubmissionValidationErrors {
|
|
4184
|
-
/**
|
|
5095
|
+
/**
|
|
5096
|
+
* Submission validation errors.
|
|
5097
|
+
* @maxSize 100
|
|
5098
|
+
*/
|
|
4185
5099
|
errors?: SubmissionValidationError[];
|
|
4186
5100
|
}
|
|
4187
5101
|
export interface SubmissionValidationError extends SubmissionValidationErrorErrorMessageOneOf {
|
|
4188
5102
|
/** Predefined error type. */
|
|
4189
5103
|
errorType?: SubmissionErrorType;
|
|
4190
|
-
/**
|
|
5104
|
+
/**
|
|
5105
|
+
* Custom error message. The message is displayed instead of an error type.
|
|
5106
|
+
* @maxLength 500
|
|
5107
|
+
*/
|
|
4191
5108
|
customErrorMessage?: string;
|
|
4192
|
-
/**
|
|
5109
|
+
/**
|
|
5110
|
+
* Path indicating the source of the error, such as `form.fields.target`.
|
|
5111
|
+
* @maxLength 500
|
|
5112
|
+
*/
|
|
4193
5113
|
errorPath?: string;
|
|
4194
5114
|
/** Additional error parameters. */
|
|
4195
5115
|
params?: Record<string, any> | null;
|
|
@@ -4198,7 +5118,10 @@ export interface SubmissionValidationError extends SubmissionValidationErrorErro
|
|
|
4198
5118
|
export interface SubmissionValidationErrorErrorMessageOneOf {
|
|
4199
5119
|
/** Predefined error type. */
|
|
4200
5120
|
errorType?: SubmissionErrorType;
|
|
4201
|
-
/**
|
|
5121
|
+
/**
|
|
5122
|
+
* Custom error message. The message is displayed instead of an error type.
|
|
5123
|
+
* @maxLength 500
|
|
5124
|
+
*/
|
|
4202
5125
|
customErrorMessage?: string;
|
|
4203
5126
|
}
|
|
4204
5127
|
export declare enum SubmissionErrorType {
|
|
@@ -4233,45 +5156,13 @@ export declare enum SubmissionErrorType {
|
|
|
4233
5156
|
/** Submitted form is disabled. */
|
|
4234
5157
|
DISABLED_FORM_ERROR = "DISABLED_FORM_ERROR"
|
|
4235
5158
|
}
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
contactId?: string | null;
|
|
4241
|
-
/** Indicates contact has verified primary email. */
|
|
4242
|
-
emailVerified?: boolean;
|
|
4243
|
-
}
|
|
4244
|
-
export interface UpsertContactFromSubmissionResponse {
|
|
4245
|
-
/** Submit contact response. */
|
|
4246
|
-
submitContactResponse?: SubmitContactResponse;
|
|
4247
|
-
}
|
|
4248
|
-
export interface SubmitContactResponse {
|
|
4249
|
-
/** ID of the contact that was found or created. */
|
|
4250
|
-
contactId?: string;
|
|
4251
|
-
/**
|
|
4252
|
-
* Identity type of the returned contact.
|
|
4253
|
-
*
|
|
4254
|
-
* - `CONTACT`: The returned contact ID belongs to a new or existing contact.
|
|
4255
|
-
* - `MEMBER`: The returned contact ID belongs to the currently logged-in site member.
|
|
4256
|
-
* - `NOT_AUTHENTICATED_MEMBER`: The returned contact ID belongs to a site member who is not currently logged in.
|
|
4257
|
-
*/
|
|
4258
|
-
identityType?: IdentityType;
|
|
4259
|
-
/**
|
|
4260
|
-
* Indicates whether the contact was just created or already existed.
|
|
4261
|
-
*
|
|
4262
|
-
* If the contact was just created, returns `true`.
|
|
4263
|
-
* If it already existed, returns `false`.
|
|
4264
|
-
*/
|
|
4265
|
-
newContact?: boolean;
|
|
5159
|
+
interface SubmitContactResponseNonNullableFields {
|
|
5160
|
+
contactId: string;
|
|
5161
|
+
identityType: IdentityType;
|
|
5162
|
+
newContact: boolean;
|
|
4266
5163
|
}
|
|
4267
|
-
export
|
|
4268
|
-
|
|
4269
|
-
/** Existing or new contact */
|
|
4270
|
-
CONTACT = "CONTACT",
|
|
4271
|
-
/** Member is logged in, matching logic skipped */
|
|
4272
|
-
MEMBER = "MEMBER",
|
|
4273
|
-
/** Matching contact is a member, Merge logic won't be applied */
|
|
4274
|
-
NOT_AUTHENTICATED_MEMBER = "NOT_AUTHENTICATED_MEMBER"
|
|
5164
|
+
export interface UpsertContactFromSubmissionResponseNonNullableFields {
|
|
5165
|
+
submitContactResponse?: SubmitContactResponseNonNullableFields;
|
|
4275
5166
|
}
|
|
4276
5167
|
interface OrderDetailsNonNullableFields {
|
|
4277
5168
|
itemSubtotal: string;
|
|
@@ -4419,18 +5310,16 @@ interface FieldViolationNonNullableFields {
|
|
|
4419
5310
|
export interface ValidateFormSubmissionResponseNonNullableFields {
|
|
4420
5311
|
violationErrors: FieldViolationNonNullableFields[];
|
|
4421
5312
|
}
|
|
4422
|
-
interface SubmitContactResponseNonNullableFields {
|
|
4423
|
-
contactId: string;
|
|
4424
|
-
identityType: IdentityType;
|
|
4425
|
-
newContact: boolean;
|
|
4426
|
-
}
|
|
4427
|
-
export interface UpsertContactFromSubmissionResponseNonNullableFields {
|
|
4428
|
-
submitContactResponse?: SubmitContactResponseNonNullableFields;
|
|
4429
|
-
}
|
|
4430
5313
|
export interface BaseEventMetadata {
|
|
4431
|
-
/**
|
|
5314
|
+
/**
|
|
5315
|
+
* App instance ID.
|
|
5316
|
+
* @format GUID
|
|
5317
|
+
*/
|
|
4432
5318
|
instanceId?: string | null;
|
|
4433
|
-
/**
|
|
5319
|
+
/**
|
|
5320
|
+
* Event type.
|
|
5321
|
+
* @maxLength 150
|
|
5322
|
+
*/
|
|
4434
5323
|
eventType?: string;
|
|
4435
5324
|
/** The identification type and identity data. */
|
|
4436
5325
|
identity?: IdentificationData;
|
|
@@ -4621,6 +5510,25 @@ export interface SubmissionUpdatedEnvelope {
|
|
|
4621
5510
|
* @documentationMaturity preview
|
|
4622
5511
|
*/
|
|
4623
5512
|
export declare function onSubmissionUpdated(handler: (event: SubmissionUpdatedEnvelope) => void | Promise<void>): void;
|
|
5513
|
+
/**
|
|
5514
|
+
* Upserts contact from submission.
|
|
5515
|
+
* @param submissionId - Submission from which contact needs to be upserted.
|
|
5516
|
+
* @public
|
|
5517
|
+
* @documentationMaturity preview
|
|
5518
|
+
* @requiredField submissionId
|
|
5519
|
+
* @permissionId WIX_FORMS.SUBMISSION_CONTACT_UPSERT
|
|
5520
|
+
* @fqn wix.forms.v4.FormSubmissionContactUpsertService.UpsertContactFromSubmission
|
|
5521
|
+
*/
|
|
5522
|
+
export declare function upsertContactFromSubmission(submissionId: string, options?: UpsertContactFromSubmissionOptions): Promise<UpsertContactFromSubmissionResponse & UpsertContactFromSubmissionResponseNonNullableFields>;
|
|
5523
|
+
export interface UpsertContactFromSubmissionOptions {
|
|
5524
|
+
/**
|
|
5525
|
+
* Optional contact id to which submission should be mapped.
|
|
5526
|
+
* @format GUID
|
|
5527
|
+
*/
|
|
5528
|
+
contactId?: string | null;
|
|
5529
|
+
/** Indicates contact has verified primary email. */
|
|
5530
|
+
emailVerified?: boolean;
|
|
5531
|
+
}
|
|
4624
5532
|
/**
|
|
4625
5533
|
* Creates a submission.
|
|
4626
5534
|
*
|
|
@@ -4641,7 +5549,11 @@ export declare function onSubmissionUpdated(handler: (event: SubmissionUpdatedEn
|
|
|
4641
5549
|
*/
|
|
4642
5550
|
export declare function createSubmission(submission: FormSubmission, options?: CreateSubmissionOptions): Promise<FormSubmission & FormSubmissionNonNullableFields>;
|
|
4643
5551
|
export interface CreateSubmissionOptions {
|
|
4644
|
-
/**
|
|
5552
|
+
/**
|
|
5553
|
+
* Captcha token.
|
|
5554
|
+
* @minLength 1
|
|
5555
|
+
* @maxLength 3000
|
|
5556
|
+
*/
|
|
4645
5557
|
captchaToken?: string | null;
|
|
4646
5558
|
}
|
|
4647
5559
|
/**
|
|
@@ -4661,11 +5573,15 @@ export interface BulkCreateSubmissionBySubmitterOptions {
|
|
|
4661
5573
|
/**
|
|
4662
5574
|
* Submissions to create.
|
|
4663
5575
|
* Deprecated
|
|
5576
|
+
* @maxSize 100
|
|
4664
5577
|
*/
|
|
4665
5578
|
submissions?: FormSubmission[];
|
|
4666
5579
|
/** When set, items will be returned on successful create. */
|
|
4667
5580
|
returnEntity?: boolean;
|
|
4668
|
-
/**
|
|
5581
|
+
/**
|
|
5582
|
+
* Submissions data to create.
|
|
5583
|
+
* @maxSize 100
|
|
5584
|
+
*/
|
|
4669
5585
|
submissionsV2?: BulkCreateSubmissionBySubmitterData[];
|
|
4670
5586
|
/** Validation will be mode is more forgiving, for example "required" won't be validated. */
|
|
4671
5587
|
lenientValidation?: boolean;
|
|
@@ -4712,13 +5628,20 @@ export declare function updateSubmission(_id: string | null, submission: UpdateS
|
|
|
4712
5628
|
export interface UpdateSubmission {
|
|
4713
5629
|
/**
|
|
4714
5630
|
* Submission ID.
|
|
5631
|
+
* @format GUID
|
|
4715
5632
|
* @readonly
|
|
4716
5633
|
*/
|
|
4717
5634
|
_id?: string | null;
|
|
4718
|
-
/**
|
|
5635
|
+
/**
|
|
5636
|
+
* ID of the form which the submission belongs to.
|
|
5637
|
+
* @format GUID
|
|
5638
|
+
* @immutable
|
|
5639
|
+
*/
|
|
4719
5640
|
formId?: string;
|
|
4720
5641
|
/**
|
|
4721
5642
|
* The app which the form submissions belong to. For example, the namespace for the Wix Forms app is `wix.form_app.form`. Call `Get Submission` to retrieve the namespace.
|
|
5643
|
+
* @minLength 10
|
|
5644
|
+
* @maxLength 50
|
|
4722
5645
|
* @readonly
|
|
4723
5646
|
*/
|
|
4724
5647
|
namespace?: string;
|
|
@@ -4726,7 +5649,10 @@ export interface UpdateSubmission {
|
|
|
4726
5649
|
status?: SubmissionStatus;
|
|
4727
5650
|
/** Submission values where `key` is the form field and `value` is the data submitted for the given field. */
|
|
4728
5651
|
submissions?: Record<string, any>;
|
|
4729
|
-
/**
|
|
5652
|
+
/**
|
|
5653
|
+
* Date and time the form submission was created.
|
|
5654
|
+
* @immutable
|
|
5655
|
+
*/
|
|
4730
5656
|
_createdDate?: Date | null;
|
|
4731
5657
|
/**
|
|
4732
5658
|
* Date and time the form submission was updated.
|
|
@@ -4749,14 +5675,22 @@ export interface UpdateSubmission {
|
|
|
4749
5675
|
extendedFields?: ExtendedFields;
|
|
4750
5676
|
/**
|
|
4751
5677
|
* Order details. <br>
|
|
4752
|
-
* <b>Note</b>: This object is only applicable when
|
|
5678
|
+
* <b>Note</b>: This object is only applicable when submitting a form in the Wix Payments app.
|
|
4753
5679
|
*/
|
|
4754
5680
|
orderDetails?: OrderDetails;
|
|
4755
|
-
/**
|
|
5681
|
+
/**
|
|
5682
|
+
* Contact ID of a site visitor who created the submission.
|
|
5683
|
+
* @format GUID
|
|
5684
|
+
* @immutable
|
|
5685
|
+
*/
|
|
4756
5686
|
contactId?: string | null;
|
|
4757
|
-
/**
|
|
5687
|
+
/**
|
|
5688
|
+
* Authorized viewer ID.
|
|
5689
|
+
* @format GUID
|
|
5690
|
+
* @immutable
|
|
5691
|
+
*/
|
|
4758
5692
|
accessRestriction?: string | null;
|
|
4759
|
-
/** Tag
|
|
5693
|
+
/** Tag IDs collections associated with the current entity. */
|
|
4760
5694
|
tags?: PublicTags;
|
|
4761
5695
|
}
|
|
4762
5696
|
/**
|
|
@@ -4817,7 +5751,12 @@ export interface DeleteSubmissionOptions {
|
|
|
4817
5751
|
*/
|
|
4818
5752
|
export declare function bulkDeleteSubmission(formId: string, options?: BulkDeleteSubmissionOptions): Promise<BulkDeleteSubmissionResponse & BulkDeleteSubmissionResponseNonNullableFields>;
|
|
4819
5753
|
export interface BulkDeleteSubmissionOptions {
|
|
4820
|
-
/**
|
|
5754
|
+
/**
|
|
5755
|
+
* Submission ids.
|
|
5756
|
+
* @minSize 1
|
|
5757
|
+
* @maxSize 100
|
|
5758
|
+
* @format GUID
|
|
5759
|
+
*/
|
|
4821
5760
|
submissionIds?: string[];
|
|
4822
5761
|
/**
|
|
4823
5762
|
* Delete submission bypassing trash-bin
|
|
@@ -4867,7 +5806,12 @@ export declare function removeSubmissionFromTrashBin(submissionId: string): Prom
|
|
|
4867
5806
|
*/
|
|
4868
5807
|
export declare function bulkRemoveSubmissionFromTrashBin(formId: string, options?: BulkRemoveSubmissionFromTrashBinOptions): Promise<BulkRemoveSubmissionFromTrashBinResponse & BulkRemoveSubmissionFromTrashBinResponseNonNullableFields>;
|
|
4869
5808
|
export interface BulkRemoveSubmissionFromTrashBinOptions {
|
|
4870
|
-
/**
|
|
5809
|
+
/**
|
|
5810
|
+
* Submission ids.
|
|
5811
|
+
* @minSize 1
|
|
5812
|
+
* @maxSize 100
|
|
5813
|
+
* @format GUID
|
|
5814
|
+
*/
|
|
4871
5815
|
submissionIds?: string[];
|
|
4872
5816
|
}
|
|
4873
5817
|
/**
|
|
@@ -4890,13 +5834,18 @@ export interface BulkRemoveSubmissionFromTrashBinOptions {
|
|
|
4890
5834
|
*/
|
|
4891
5835
|
export declare function listDeletedSubmissions(formId: string, options?: ListDeletedSubmissionsOptions): Promise<ListDeletedSubmissionsResponse & ListDeletedSubmissionsResponseNonNullableFields>;
|
|
4892
5836
|
export interface ListDeletedSubmissionsOptions {
|
|
4893
|
-
/**
|
|
5837
|
+
/**
|
|
5838
|
+
* Submission ids.
|
|
5839
|
+
* @maxSize 10
|
|
5840
|
+
* @format GUID
|
|
5841
|
+
*/
|
|
4894
5842
|
submissionIds?: string[];
|
|
4895
5843
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not filter or `order`. */
|
|
4896
5844
|
paging?: CursorPaging;
|
|
4897
5845
|
/**
|
|
4898
5846
|
* List of statuses of submissions which should be returned
|
|
4899
5847
|
* Default: CONFIRMED
|
|
5848
|
+
* @maxSize 4
|
|
4900
5849
|
*/
|
|
4901
5850
|
statuses?: SubmissionStatus[];
|
|
4902
5851
|
}
|
|
@@ -5108,6 +6057,7 @@ export interface CountSubmissionsOptions {
|
|
|
5108
6057
|
* - `PAYMENT_WAITING`: A form submission requiring payment is created.
|
|
5109
6058
|
* - `PAYMENT_CANCELED`: An order of a form submission is canceled.
|
|
5110
6059
|
* - `CONFIRMED`: A submission is recorded in the Wix Forms collection.
|
|
6060
|
+
* @maxSize 4
|
|
5111
6061
|
*/
|
|
5112
6062
|
statuses?: SubmissionStatus[];
|
|
5113
6063
|
}
|
|
@@ -5139,6 +6089,7 @@ export interface CountDeletedSubmissionsOptions {
|
|
|
5139
6089
|
/**
|
|
5140
6090
|
* List of statuses of submissions which should be taken into count
|
|
5141
6091
|
* Default: CONFIRMED, PAYMENT_WAITING, PAYMENT_CANCELED
|
|
6092
|
+
* @maxSize 4
|
|
5142
6093
|
*/
|
|
5143
6094
|
statuses?: SubmissionStatus[];
|
|
5144
6095
|
}
|
|
@@ -5278,20 +6229,4 @@ export interface ValidateFormSubmissionOptions {
|
|
|
5278
6229
|
/** Optional metadata passed to SPI implementer, allowing clients to include additional business-specific data. */
|
|
5279
6230
|
additionalMetadata?: Record<string, any> | null;
|
|
5280
6231
|
}
|
|
5281
|
-
/**
|
|
5282
|
-
* Upserts contact from submission.
|
|
5283
|
-
* @param submissionId - Submission from which contact needs to be upserted.
|
|
5284
|
-
* @public
|
|
5285
|
-
* @documentationMaturity preview
|
|
5286
|
-
* @requiredField submissionId
|
|
5287
|
-
* @permissionId WIX_FORMS.SUBMISSION_CONTACT_UPSERT
|
|
5288
|
-
* @fqn wix.forms.v4.FormSubmissionContactUpsertService.UpsertContactFromSubmission
|
|
5289
|
-
*/
|
|
5290
|
-
export declare function upsertContactFromSubmission(submissionId: string, options?: UpsertContactFromSubmissionOptions): Promise<UpsertContactFromSubmissionResponse & UpsertContactFromSubmissionResponseNonNullableFields>;
|
|
5291
|
-
export interface UpsertContactFromSubmissionOptions {
|
|
5292
|
-
/** Optional contact id to which submission should be mapped. */
|
|
5293
|
-
contactId?: string | null;
|
|
5294
|
-
/** Indicates contact has verified primary email. */
|
|
5295
|
-
emailVerified?: boolean;
|
|
5296
|
-
}
|
|
5297
6232
|
export {};
|