@wix/auto_sdk_forms_submissions 1.0.148 → 1.0.150
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/{forms-v4-submission-submissions.universal-DpxoO7nJ.d.ts → forms-v4-submission-submissions.universal-DV8oC8Lk.d.ts} +184 -32
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +165 -31
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +43 -23
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/{forms-v4-submission-submissions.universal-DpxoO7nJ.d.mts → forms-v4-submission-submissions.universal-DV8oC8Lk.d.mts} +184 -32
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +165 -31
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +43 -23
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/{forms-v4-submission-submissions.universal-DpHNZLTq.d.ts → forms-v4-submission-submissions.universal-CUKQPm_I.d.ts} +186 -34
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +167 -33
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +43 -23
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/{forms-v4-submission-submissions.universal-DpHNZLTq.d.mts → forms-v4-submission-submissions.universal-CUKQPm_I.d.mts} +186 -34
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +167 -33
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +43 -23
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hG as UpsertContactFromSubmissionRequest$1, a as UpsertContactFromSubmissionResponse$1, hI as CreateSubmissionRequest$1, hJ as CreateSubmissionResponse$1, hV as GetSubmissionRequest$1, hW as GetSubmissionResponse$1, hZ as UpdateSubmissionRequest$1, h_ as UpdateSubmissionResponse$1, h$ as ConfirmSubmissionRequest$1, f as ConfirmSubmissionResponse$1, i0 as DeleteSubmissionRequest$1, i1 as DeleteSubmissionResponse$1, i2 as BulkDeleteSubmissionRequest$1, g as BulkDeleteSubmissionResponse$1, i4 as RestoreSubmissionFromTrashBinRequest$1, R as RestoreSubmissionFromTrashBinResponse$1, i5 as RemoveSubmissionFromTrashBinRequest$1, i6 as RemoveSubmissionFromTrashBinResponse$1, i7 as BulkRemoveSubmissionFromTrashBinRequest$1, i as BulkRemoveSubmissionFromTrashBinResponse$1, i9 as ListDeletedSubmissionsRequest$1, j as ListDeletedSubmissionsResponse$1, ia as GetDeletedSubmissionRequest$1, G as GetDeletedSubmissionResponse$1, ib as QuerySubmissionRequest$1, l as QuerySubmissionResponse$1, ic as SearchSubmissionsByNamespaceRequest$1, S as SearchSubmissionsByNamespaceResponse$1, ig as QuerySubmissionsByNamespaceRequest$1, ih as QuerySubmissionsByNamespaceResponse$1, ik as CountSubmissionsByFilterRequest$1, o as CountSubmissionsByFilterResponse$1, im as CountSubmissionsRequest$1, q as CountSubmissionsResponse$1, io as CountDeletedSubmissionsRequest$1, s as CountDeletedSubmissionsResponse$1, iq as GetMediaUploadURLRequest$1, t as GetMediaUploadURLResponse$1, ir as BulkMarkSubmissionsAsSeenRequest$1, u as BulkMarkSubmissionsAsSeenResponse$1, is as GetSubmissionDownloadUrlRequest$1, v as GetSubmissionDownloadUrlResponse$1, iw as DownloadSubmissionRequest$1, w as RawHttpResponse$1, iy as GetFormattedSubmissionRequest$1, x as GetFormattedSubmissionResponse$1, iD as UpdateExtendedFieldsRequest$1, z as UpdateExtendedFieldsResponse$1, iE as BulkUpdateFormSubmissionTagsRequest$1, E as BulkUpdateFormSubmissionTagsResponse$1, iG as BulkUpdateFormSubmissionTagsByFilterRequest$1, I as BulkUpdateFormSubmissionTagsByFilterResponse$1, iH as ValidateFormSubmissionRequest$1, J as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-
|
|
1
|
+
import { hG as UpsertContactFromSubmissionRequest$1, a as UpsertContactFromSubmissionResponse$1, hI as CreateSubmissionRequest$1, hJ as CreateSubmissionResponse$1, hV as GetSubmissionRequest$1, hW as GetSubmissionResponse$1, hZ as UpdateSubmissionRequest$1, h_ as UpdateSubmissionResponse$1, h$ as ConfirmSubmissionRequest$1, f as ConfirmSubmissionResponse$1, i0 as DeleteSubmissionRequest$1, i1 as DeleteSubmissionResponse$1, i2 as BulkDeleteSubmissionRequest$1, g as BulkDeleteSubmissionResponse$1, i4 as RestoreSubmissionFromTrashBinRequest$1, R as RestoreSubmissionFromTrashBinResponse$1, i5 as RemoveSubmissionFromTrashBinRequest$1, i6 as RemoveSubmissionFromTrashBinResponse$1, i7 as BulkRemoveSubmissionFromTrashBinRequest$1, i as BulkRemoveSubmissionFromTrashBinResponse$1, i9 as ListDeletedSubmissionsRequest$1, j as ListDeletedSubmissionsResponse$1, ia as GetDeletedSubmissionRequest$1, G as GetDeletedSubmissionResponse$1, ib as QuerySubmissionRequest$1, l as QuerySubmissionResponse$1, ic as SearchSubmissionsByNamespaceRequest$1, S as SearchSubmissionsByNamespaceResponse$1, ig as QuerySubmissionsByNamespaceRequest$1, ih as QuerySubmissionsByNamespaceResponse$1, ik as CountSubmissionsByFilterRequest$1, o as CountSubmissionsByFilterResponse$1, im as CountSubmissionsRequest$1, q as CountSubmissionsResponse$1, io as CountDeletedSubmissionsRequest$1, s as CountDeletedSubmissionsResponse$1, iq as GetMediaUploadURLRequest$1, t as GetMediaUploadURLResponse$1, ir as BulkMarkSubmissionsAsSeenRequest$1, u as BulkMarkSubmissionsAsSeenResponse$1, is as GetSubmissionDownloadUrlRequest$1, v as GetSubmissionDownloadUrlResponse$1, iw as DownloadSubmissionRequest$1, w as RawHttpResponse$1, iy as GetFormattedSubmissionRequest$1, x as GetFormattedSubmissionResponse$1, iD as UpdateExtendedFieldsRequest$1, z as UpdateExtendedFieldsResponse$1, iE as BulkUpdateFormSubmissionTagsRequest$1, E as BulkUpdateFormSubmissionTagsResponse$1, iG as BulkUpdateFormSubmissionTagsByFilterRequest$1, I as BulkUpdateFormSubmissionTagsByFilterResponse$1, iH as ValidateFormSubmissionRequest$1, J as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-CUKQPm_I.js';
|
|
2
2
|
import '@wix/sdk-types';
|
|
3
3
|
|
|
4
4
|
/** Form submission that was created or retrieved. */
|
|
@@ -22,9 +22,27 @@ interface FormSubmission {
|
|
|
22
22
|
* @readonly
|
|
23
23
|
*/
|
|
24
24
|
namespace?: string;
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Status of the submission.
|
|
27
|
+
*
|
|
28
|
+
* The status a submission is created with depends on the form's namespace and on whether the form collects payment, so read it from the response rather than assuming.
|
|
29
|
+
*
|
|
30
|
+
* A submission for a form that collects payment starts as `PAYMENT_WAITING`. Otherwise, most namespaces record the submission immediately as `CONFIRMED`. Namespaces that need to complete another step first, such as taking payment for a pricing plan, create the submission as `PENDING` and confirm it later with Confirm Submission.
|
|
31
|
+
*
|
|
32
|
+
* A `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time.
|
|
33
|
+
*/
|
|
26
34
|
status?: SubmissionStatusWithLiterals;
|
|
27
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Values the visitor submitted.
|
|
37
|
+
*
|
|
38
|
+
* Each key is the `target` of a field in the form schema, which is the field's stable storage key rather than its ID or label. Only keys matching a field target are accepted.
|
|
39
|
+
*
|
|
40
|
+
* Each value's shape follows that field's `inputType`: `STRING` fields submit a string, `NUMBER` a number, `BOOLEAN` a boolean, and `ARRAY` an array of the selected option values. Date and time fields are strings.
|
|
41
|
+
*
|
|
42
|
+
* 3 input types submit structured values: `ADDRESS` submits an address object, `PAYMENT` an array holding 1 product object per item bought, and `SCHEDULING` an appointment object.
|
|
43
|
+
*
|
|
44
|
+
* For the full mapping, see [About Submission Values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/about-submission-values).
|
|
45
|
+
*/
|
|
28
46
|
submissions?: Record<string, any>;
|
|
29
47
|
/**
|
|
30
48
|
* Date and time the form submission was created.
|
|
@@ -698,12 +716,20 @@ interface Form {
|
|
|
698
716
|
fields?: FormField[];
|
|
699
717
|
/**
|
|
700
718
|
* Form fields that define the input elements and their validation rules.
|
|
719
|
+
*
|
|
720
|
+
* The order of this array isn't the order the fields are displayed in. Display order comes from `steps`, where each layout item positions a field by `row` and `column`. Don't render fields in array order.
|
|
721
|
+
*
|
|
722
|
+
* For a detailed explanation of how to compose each kind of field, including which `identifier`, `inputType`, and `componentType` values to combine, see [About Form Fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields).
|
|
701
723
|
* @maxSize 500
|
|
702
724
|
*/
|
|
703
725
|
formFields?: Field[];
|
|
704
726
|
/**
|
|
705
727
|
* Layout configuration that defines how form fields are organized across multiple steps.
|
|
706
728
|
* Each step represents a page of the form.
|
|
729
|
+
*
|
|
730
|
+
* Every field in `formFields`, including the submit button, must be placed by a layout item whose `fieldId` matches the field's `id`. A field that isn't placed still stores submitted values, but the Wix dashboard renders it, and the submissions made against it, as empty.
|
|
731
|
+
*
|
|
732
|
+
* Use a single step unless the form is split across pages.
|
|
707
733
|
* @maxSize 100
|
|
708
734
|
*/
|
|
709
735
|
steps?: Step[];
|
|
@@ -818,10 +844,10 @@ interface Form {
|
|
|
818
844
|
sourceFormId?: string | null;
|
|
819
845
|
/**
|
|
820
846
|
* Whether the form is effectively active — `true` only when the user has not disabled the form
|
|
821
|
-
* **and** no system service has placed an `
|
|
847
|
+
* **and** no system service has placed an `activationBlock` on it.
|
|
822
848
|
*
|
|
823
849
|
* Writing `enabled: true` records the user's intent to activate the form, but the value read
|
|
824
|
-
* back may still be `false` if `
|
|
850
|
+
* back may still be `false` if `activationBlock` is present (for example, a plan restriction is in
|
|
825
851
|
* effect). Once the block is lifted the form becomes active automatically without any additional
|
|
826
852
|
* write.
|
|
827
853
|
*
|
|
@@ -830,6 +856,8 @@ interface Form {
|
|
|
830
856
|
enabled?: boolean | null;
|
|
831
857
|
/**
|
|
832
858
|
* Display name of the form schema.
|
|
859
|
+
*
|
|
860
|
+
* Names are unique in a namespace. If the name you pass is already taken, the request still succeeds, and the form schema is stored under a numbered variation of that name instead of returning an error. Read `name` from the response to learn the name the schema was actually saved under.
|
|
833
861
|
* @maxLength 200
|
|
834
862
|
*/
|
|
835
863
|
name?: string | null;
|
|
@@ -856,10 +884,10 @@ interface Form {
|
|
|
856
884
|
* When present, `enabled` is returned as `false` regardless of what the user set.
|
|
857
885
|
* When absent, `enabled` reflects the user's stored intent exclusively.
|
|
858
886
|
*
|
|
859
|
-
* Set and cleared only through dedicated internal RPCs (
|
|
887
|
+
* Set and cleared only through dedicated internal RPCs (for example, `BulkUpdateFormsActivationBlock`).
|
|
860
888
|
* Cannot be written via `UpdateForm` — attempts to include it in the field mask are rejected.
|
|
861
889
|
*
|
|
862
|
-
* Format: `<OWNER_APP>_<REASON>`,
|
|
890
|
+
* Format: `<OWNER_APP>_<REASON>`, such as `FORM_APP_PREMIUM_FEATURE_VIOLATION`, `FORM_APP_FORM_COUNT_EXCEEDED`.
|
|
863
891
|
* @internal
|
|
864
892
|
* @readonly
|
|
865
893
|
* @maxLength 100
|
|
@@ -1463,6 +1491,8 @@ interface Field extends FieldFieldTypeOptionsOneOf {
|
|
|
1463
1491
|
displayOptions?: DisplayField;
|
|
1464
1492
|
/**
|
|
1465
1493
|
* Field ID.
|
|
1494
|
+
*
|
|
1495
|
+
* The ID is stored in lowercase. Because the form's layout references each field by this ID, pass a lowercase GUID so that `id` and the layout's `fieldId` still match after the form schema is stored. IDs must be unique in the form.
|
|
1466
1496
|
* @format GUID
|
|
1467
1497
|
* @immutable
|
|
1468
1498
|
*/
|
|
@@ -1474,11 +1504,24 @@ interface Field extends FieldFieldTypeOptionsOneOf {
|
|
|
1474
1504
|
*/
|
|
1475
1505
|
hidden?: boolean;
|
|
1476
1506
|
/**
|
|
1477
|
-
*
|
|
1507
|
+
* Identification for the field, describing its purpose. For example, `TEXT_INPUT` or `CONTACTS_EMAIL`.
|
|
1508
|
+
*
|
|
1509
|
+
* Set this to the known value for the kind of field you're creating.
|
|
1510
|
+
* An unrecognized value, such as a custom string or a GUID, is dropped rather than rejected: the request still succeeds, but the field doesn't appear in the response's `formFields`, and neither the field nor its submitted values appear in the Wix dashboard.
|
|
1511
|
+
*
|
|
1512
|
+
* Several fields share a general-purpose `componentType`, so `identifier` is often the only value that distinguishes them.
|
|
1513
|
+
* For example, both a short answer field and a long answer field use the `TEXT_INPUT` component, and are told apart by their `TEXT_INPUT` and `TEXT_AREA` identifiers.
|
|
1514
|
+
*
|
|
1515
|
+
* For the full list of known values, see [About Form Fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields).
|
|
1478
1516
|
* @maxLength 50
|
|
1479
1517
|
*/
|
|
1480
1518
|
identifier?: string | null;
|
|
1481
|
-
/**
|
|
1519
|
+
/**
|
|
1520
|
+
* Field type.
|
|
1521
|
+
*
|
|
1522
|
+
* `INPUT` fields collect data from submitters and are configured in `inputOptions`.
|
|
1523
|
+
* `DISPLAY` fields show information without collecting data and are configured in `displayOptions`.
|
|
1524
|
+
*/
|
|
1482
1525
|
fieldType?: FieldTypeWithLiterals;
|
|
1483
1526
|
}
|
|
1484
1527
|
/** @oneof */
|
|
@@ -1509,11 +1552,23 @@ interface InputField extends InputFieldInputTypeOptionsOneOf {
|
|
|
1509
1552
|
arrayOptions?: _Array;
|
|
1510
1553
|
/** Object input field settings. */
|
|
1511
1554
|
objectOptions?: _Object;
|
|
1512
|
-
/**
|
|
1555
|
+
/**
|
|
1556
|
+
* File input field settings. Files are uploaded to the [Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager).
|
|
1557
|
+
*
|
|
1558
|
+
* > **Note:** File upload and signature fields are premium features. The site must have a Core premium plan or higher. Creating a form schema with one of these fields on a site without a qualifying plan fails.
|
|
1559
|
+
*/
|
|
1513
1560
|
wixFileOptions?: WixFile;
|
|
1514
|
-
/**
|
|
1561
|
+
/**
|
|
1562
|
+
* Payment input field settings.
|
|
1563
|
+
*
|
|
1564
|
+
* > **Note:** Payment fields are premium features that also depend on another app. The site must have a Core premium plan or higher, and the Wix eCommerce app must be installed. Creating a form schema with a payment field on a site that doesn't meet both requirements fails.
|
|
1565
|
+
*/
|
|
1515
1566
|
paymentOptions?: Payment;
|
|
1516
|
-
/**
|
|
1567
|
+
/**
|
|
1568
|
+
* Scheduling input field settings.
|
|
1569
|
+
*
|
|
1570
|
+
* > **Note:** Scheduling fields require the Wix Meetings app to be installed on the site. Creating a form schema with a scheduling field on a site without the app fails.
|
|
1571
|
+
*/
|
|
1517
1572
|
schedulingOptions?: Scheduling;
|
|
1518
1573
|
/** Address input field settings. */
|
|
1519
1574
|
addressOptions?: Address;
|
|
@@ -1559,7 +1614,14 @@ interface InputField extends InputFieldInputTypeOptionsOneOf {
|
|
|
1559
1614
|
* Default: `false`
|
|
1560
1615
|
*/
|
|
1561
1616
|
required?: boolean;
|
|
1562
|
-
/**
|
|
1617
|
+
/**
|
|
1618
|
+
* Type of the input field that determines what kind of data it collects.
|
|
1619
|
+
*
|
|
1620
|
+
* `inputType` selects which options object applies. For example, `STRING` is configured in `stringOptions`, and `PAYMENT` in `paymentOptions`.
|
|
1621
|
+
* That options object then sets a `componentType`, which selects the UI component and its own nested settings object.
|
|
1622
|
+
*
|
|
1623
|
+
* For which combinations produce which field, see [About Form Fields](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields).
|
|
1624
|
+
*/
|
|
1563
1625
|
inputType?: InputTypeWithLiterals;
|
|
1564
1626
|
/**
|
|
1565
1627
|
* Mapping configuration for automatically saving field values to contact properties.
|
|
@@ -1586,11 +1648,23 @@ interface InputFieldInputTypeOptionsOneOf {
|
|
|
1586
1648
|
arrayOptions?: _Array;
|
|
1587
1649
|
/** Object input field settings. */
|
|
1588
1650
|
objectOptions?: _Object;
|
|
1589
|
-
/**
|
|
1651
|
+
/**
|
|
1652
|
+
* File input field settings. Files are uploaded to the [Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager).
|
|
1653
|
+
*
|
|
1654
|
+
* > **Note:** File upload and signature fields are premium features. The site must have a Core premium plan or higher. Creating a form schema with one of these fields on a site without a qualifying plan fails.
|
|
1655
|
+
*/
|
|
1590
1656
|
wixFileOptions?: WixFile;
|
|
1591
|
-
/**
|
|
1657
|
+
/**
|
|
1658
|
+
* Payment input field settings.
|
|
1659
|
+
*
|
|
1660
|
+
* > **Note:** Payment fields are premium features that also depend on another app. The site must have a Core premium plan or higher, and the Wix eCommerce app must be installed. Creating a form schema with a payment field on a site that doesn't meet both requirements fails.
|
|
1661
|
+
*/
|
|
1592
1662
|
paymentOptions?: Payment;
|
|
1593
|
-
/**
|
|
1663
|
+
/**
|
|
1664
|
+
* Scheduling input field settings.
|
|
1665
|
+
*
|
|
1666
|
+
* > **Note:** Scheduling fields require the Wix Meetings app to be installed on the site. Creating a form schema with a scheduling field on a site without the app fails.
|
|
1667
|
+
*/
|
|
1594
1668
|
schedulingOptions?: Scheduling;
|
|
1595
1669
|
/** Address input field settings. */
|
|
1596
1670
|
addressOptions?: Address;
|
|
@@ -1665,7 +1739,7 @@ interface StringTypeFormatOptionsOneOf {
|
|
|
1665
1739
|
phoneOptions?: PhoneConstraints;
|
|
1666
1740
|
}
|
|
1667
1741
|
declare enum FormatEnumFormat {
|
|
1668
|
-
/**
|
|
1742
|
+
/** No format constraint. This is the default, and the value a field reads back with when it doesn't restrict its format. */
|
|
1669
1743
|
UNKNOWN_FORMAT = "UNKNOWN_FORMAT",
|
|
1670
1744
|
/** Date format. */
|
|
1671
1745
|
DATE = "DATE",
|
|
@@ -6191,11 +6265,19 @@ interface _String extends _StringComponentTypeOptionsOneOf {
|
|
|
6191
6265
|
timeInputOptions?: TimeInput;
|
|
6192
6266
|
/** Date picker component settings. */
|
|
6193
6267
|
datePickerOptions?: DatePicker;
|
|
6194
|
-
/**
|
|
6268
|
+
/**
|
|
6269
|
+
* Services dropdown component settings. Each option's `value` is a Wix Services service ID.
|
|
6270
|
+
*
|
|
6271
|
+
* > **Note:** Service fields require the Wix Services app to be installed on the site. Creating a form schema with a service field on a site without the app fails.
|
|
6272
|
+
*/
|
|
6195
6273
|
servicesDropdownOptions?: ServicesDropdown;
|
|
6196
6274
|
/** Password component settings. */
|
|
6197
6275
|
passwordOptions?: Password;
|
|
6198
|
-
/**
|
|
6276
|
+
/**
|
|
6277
|
+
* Validation configuration for the string input.
|
|
6278
|
+
*
|
|
6279
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6280
|
+
*/
|
|
6199
6281
|
validation?: StringType;
|
|
6200
6282
|
/** Component type of the string input field. */
|
|
6201
6283
|
componentType?: StringComponentTypeWithLiterals;
|
|
@@ -6223,7 +6305,11 @@ interface _StringComponentTypeOptionsOneOf {
|
|
|
6223
6305
|
timeInputOptions?: TimeInput;
|
|
6224
6306
|
/** Date picker component settings. */
|
|
6225
6307
|
datePickerOptions?: DatePicker;
|
|
6226
|
-
/**
|
|
6308
|
+
/**
|
|
6309
|
+
* Services dropdown component settings. Each option's `value` is a Wix Services service ID.
|
|
6310
|
+
*
|
|
6311
|
+
* > **Note:** Service fields require the Wix Services app to be installed on the site. Creating a form schema with a service field on a site without the app fails.
|
|
6312
|
+
*/
|
|
6227
6313
|
servicesDropdownOptions?: ServicesDropdown;
|
|
6228
6314
|
/** Password component settings. */
|
|
6229
6315
|
passwordOptions?: Password;
|
|
@@ -6233,7 +6319,11 @@ interface _Number extends _NumberComponentTypeOptionsOneOf {
|
|
|
6233
6319
|
numberInputOptions?: NumberInput;
|
|
6234
6320
|
/** Rating input settings. */
|
|
6235
6321
|
ratingInputOptions?: RatingInput;
|
|
6236
|
-
/**
|
|
6322
|
+
/**
|
|
6323
|
+
* Validation configuration for the number input.
|
|
6324
|
+
*
|
|
6325
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6326
|
+
*/
|
|
6237
6327
|
validation?: NumberType;
|
|
6238
6328
|
/** Component type of the number input field. */
|
|
6239
6329
|
componentType?: NumberComponentTypeWithLiterals;
|
|
@@ -6253,7 +6343,11 @@ interface _NumberComponentTypeOptionsOneOf {
|
|
|
6253
6343
|
interface _Boolean extends _BooleanComponentTypeOptionsOneOf {
|
|
6254
6344
|
/** Checkbox component settings. */
|
|
6255
6345
|
checkboxOptions?: Checkbox;
|
|
6256
|
-
/**
|
|
6346
|
+
/**
|
|
6347
|
+
* Validation configuration for the boolean input.
|
|
6348
|
+
*
|
|
6349
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6350
|
+
*/
|
|
6257
6351
|
validation?: BooleanType;
|
|
6258
6352
|
/** Component type of the boolean input field. */
|
|
6259
6353
|
componentType?: BooleanComponentTypeWithLiterals;
|
|
@@ -6268,9 +6362,17 @@ interface _Array extends _ArrayComponentTypeOptionsOneOf {
|
|
|
6268
6362
|
checkboxGroupOptions?: CheckboxGroup;
|
|
6269
6363
|
/** Tags component settings. */
|
|
6270
6364
|
tagsOptions?: ComponentsTags;
|
|
6271
|
-
/**
|
|
6365
|
+
/**
|
|
6366
|
+
* Services checkbox group component settings. Each option's `value` is a Wix Services service ID.
|
|
6367
|
+
*
|
|
6368
|
+
* > **Note:** Service fields require the Wix Services app to be installed on the site. Creating a form schema with a service field on a site without the app fails.
|
|
6369
|
+
*/
|
|
6272
6370
|
servicesCheckboxGroupOptions?: ServicesCheckboxGroup;
|
|
6273
|
-
/**
|
|
6371
|
+
/**
|
|
6372
|
+
* Validation configuration for the array input.
|
|
6373
|
+
*
|
|
6374
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6375
|
+
*/
|
|
6274
6376
|
validation?: ArrayType;
|
|
6275
6377
|
/** Component type of the array input field. */
|
|
6276
6378
|
componentType?: ArrayComponentTypeWithLiterals;
|
|
@@ -6286,11 +6388,19 @@ interface _ArrayComponentTypeOptionsOneOf {
|
|
|
6286
6388
|
checkboxGroupOptions?: CheckboxGroup;
|
|
6287
6389
|
/** Tags component settings. */
|
|
6288
6390
|
tagsOptions?: ComponentsTags;
|
|
6289
|
-
/**
|
|
6391
|
+
/**
|
|
6392
|
+
* Services checkbox group component settings. Each option's `value` is a Wix Services service ID.
|
|
6393
|
+
*
|
|
6394
|
+
* > **Note:** Service fields require the Wix Services app to be installed on the site. Creating a form schema with a service field on a site without the app fails.
|
|
6395
|
+
*/
|
|
6290
6396
|
servicesCheckboxGroupOptions?: ServicesCheckboxGroup;
|
|
6291
6397
|
}
|
|
6292
6398
|
interface _Object {
|
|
6293
|
-
/**
|
|
6399
|
+
/**
|
|
6400
|
+
* Validation configuration for the object input.
|
|
6401
|
+
*
|
|
6402
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6403
|
+
*/
|
|
6294
6404
|
validation?: ObjectType;
|
|
6295
6405
|
}
|
|
6296
6406
|
interface WixFile extends WixFileComponentTypeOptionsOneOf {
|
|
@@ -6300,7 +6410,11 @@ interface WixFile extends WixFileComponentTypeOptionsOneOf {
|
|
|
6300
6410
|
signatureOptions?: Signature;
|
|
6301
6411
|
/** Component type of the file input field. */
|
|
6302
6412
|
componentType?: WixFileComponentTypeWithLiterals;
|
|
6303
|
-
/**
|
|
6413
|
+
/**
|
|
6414
|
+
* Validation configuration for the file input.
|
|
6415
|
+
*
|
|
6416
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6417
|
+
*/
|
|
6304
6418
|
validation?: FileType;
|
|
6305
6419
|
}
|
|
6306
6420
|
/** @oneof */
|
|
@@ -6321,7 +6435,11 @@ interface Payment extends PaymentComponentTypeOptionsOneOf {
|
|
|
6321
6435
|
fixedPaymentOptions?: FixedPayment;
|
|
6322
6436
|
/** Component type of the payment input field. */
|
|
6323
6437
|
componentType?: PaymentComponentTypeWithLiterals;
|
|
6324
|
-
/**
|
|
6438
|
+
/**
|
|
6439
|
+
* Validation configuration for the payment input.
|
|
6440
|
+
*
|
|
6441
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6442
|
+
*/
|
|
6325
6443
|
validation?: PaymentType;
|
|
6326
6444
|
}
|
|
6327
6445
|
/** @oneof */
|
|
@@ -6351,7 +6469,11 @@ interface Address extends AddressComponentTypeOptionsOneOf {
|
|
|
6351
6469
|
multilineAddressOptions?: MultilineAddress;
|
|
6352
6470
|
/** Component type of the multiline address field. */
|
|
6353
6471
|
componentType?: ComponentTypeWithLiterals;
|
|
6354
|
-
/**
|
|
6472
|
+
/**
|
|
6473
|
+
* Validation configuration for the multiline address input.
|
|
6474
|
+
*
|
|
6475
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6476
|
+
*/
|
|
6355
6477
|
validation?: MultilineAddressValidation;
|
|
6356
6478
|
}
|
|
6357
6479
|
/** @oneof */
|
|
@@ -6364,7 +6486,11 @@ interface ObjectArray extends ObjectArrayComponentTypeOptionsOneOf {
|
|
|
6364
6486
|
repeaterOptions?: Repeater;
|
|
6365
6487
|
/** Component type of the object array input. */
|
|
6366
6488
|
componentType?: ObjectArrayComponentTypeWithLiterals;
|
|
6367
|
-
/**
|
|
6489
|
+
/**
|
|
6490
|
+
* Validation configuration for the object array input.
|
|
6491
|
+
*
|
|
6492
|
+
* Always include this object, even when it's empty: `{}`.
|
|
6493
|
+
*/
|
|
6368
6494
|
validation?: ObjectArrayType;
|
|
6369
6495
|
}
|
|
6370
6496
|
/** @oneof */
|
|
@@ -7229,14 +7355,22 @@ interface SubmissionValidationErrorsDetails {
|
|
|
7229
7355
|
}
|
|
7230
7356
|
interface ValidationError {
|
|
7231
7357
|
/**
|
|
7232
|
-
* Path
|
|
7358
|
+
* Path to the value that failed validation, relative to the submission's values.
|
|
7359
|
+
*
|
|
7360
|
+
* For a top-level field this is the field's `target`, such as `email`. For a value nested inside a field, the path continues with `/`, such as `address/postal_code` for an address subfield, or `attachments/0/fileId` for an element of an array field.
|
|
7233
7361
|
* @maxLength 1000
|
|
7234
7362
|
*/
|
|
7235
7363
|
errorPath?: string;
|
|
7236
|
-
/**
|
|
7364
|
+
/**
|
|
7365
|
+
* Error type.
|
|
7366
|
+
*
|
|
7367
|
+
* Switch on this rather than parsing `errorMessage`, which carries the underlying validator's wording and isn't a stable contract.
|
|
7368
|
+
*/
|
|
7237
7369
|
errorType?: ErrorTypeWithLiterals;
|
|
7238
7370
|
/**
|
|
7239
|
-
*
|
|
7371
|
+
* Human readable description of the error, in English.
|
|
7372
|
+
*
|
|
7373
|
+
* This comes from the schema validator and is meant for debugging. It isn't localized and its wording can change, so don't parse it or show it to submitters. Use `errorType` to decide what to display.
|
|
7240
7374
|
* @maxLength 1000
|
|
7241
7375
|
*/
|
|
7242
7376
|
errorMessage?: string;
|