@wix/auto_sdk_forms_submissions 1.0.156 → 1.0.158

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.
@@ -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, iF as BulkUpdateFormSubmissionTagsResponse$1, iH as BulkUpdateFormSubmissionTagsByFilterRequest$1, iI as BulkUpdateFormSubmissionTagsByFilterResponse$1, iJ as ValidateFormSubmissionRequest$1, A as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-Dfm8IKXU.js';
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, iF as BulkUpdateFormSubmissionTagsResponse$1, iH as BulkUpdateFormSubmissionTagsByFilterRequest$1, iI as BulkUpdateFormSubmissionTagsByFilterResponse$1, iJ as ValidateFormSubmissionRequest$1, A as ValidateFormSubmissionResponse$1 } from './forms-v4-submission-submissions.universal-B1EWr26L.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** Form submission that was created or retrieved. */
@@ -97,6 +97,14 @@ interface FormSubmission {
97
97
  * This object is only applicable when submitting a form that creates a booking appointment.
98
98
  */
99
99
  appointmentDetails?: AppointmentDetails;
100
+ /**
101
+ * ID of the child site the submission was made on.
102
+ *
103
+ * Only present when the form was submitted on a site that shares its data with a parent site. In that case submissions from every child site are stored on the parent site, and this field identifies which child site the submission came from.
104
+ * @format GUID
105
+ * @readonly
106
+ */
107
+ childMetaSiteId?: string | null;
100
108
  }
101
109
  declare enum SubmissionStatus {
102
110
  /** A submission is created, but has not yet been recorded in the Wix Forms collection. */
@@ -728,9 +736,11 @@ interface Form {
728
736
  extendedFields?: ExtendedFields;
729
737
  /**
730
738
  * Unique identifier for the app that owns this form schema.
731
- * For example, `wix.form_app.form` for Wix Forms.
739
+ *
740
+ * For example, for creating a form visible in the Wix Forms app, use `wix.form_app.form`, the namespace of the Wix Forms app, whose app ID is `225dd912-7dea-4738-8688-4b8c6955ffc2`.
732
741
  *
733
742
  * See a list of namespaces for [apps made by Wix](https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/introduction#namespaces-of-apps-made-by-wix) section.
743
+ * To retrieve the ID for a Wix app, see [Apps Created By Wix](https://dev.wix.com/docs/rest/articles/get-started/apps-created-by-wix).
734
744
  * @minLength 10
735
745
  * @maxLength 50
736
746
  * @immutable
@@ -1404,7 +1414,7 @@ interface Field extends FieldFieldTypeOptionsOneOf {
1404
1414
  * Identification for the field, describing its purpose. For example, `TEXT_INPUT` or `CONTACTS_EMAIL`.
1405
1415
  *
1406
1416
  * Set this to the known value for the kind of field you're creating.
1407
- * 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.
1417
+ * Wix accepts an unrecognized value, such as a custom string or a GUID: the request succeeds, and Wix stores the field, returns it in `formFields`, and accepts its submissions. But Wix apps use `identifier` to recognize a field, so the Wix Forms editor doesn't render it, and the Wix user can't see or edit that field. A form whose fields all carry unrecognized identifiers opens empty in the editor. Always map a field onto a known identifier, and set its display name with the component's label.
1408
1418
  *
1409
1419
  * Several fields share a general-purpose `componentType`, so `identifier` is often the only value that distinguishes them.
1410
1420
  * 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.
@@ -1498,6 +1508,8 @@ interface InputField extends InputFieldInputTypeOptionsOneOf {
1498
1508
  /**
1499
1509
  * Whether the field is required for form submission.
1500
1510
  *
1511
+ * Set this on `inputOptions`, alongside `target` and `inputType`. A `required` placed inside a validation object, such as `stringOptions.validation`, isn't part of the schema and has no effect.
1512
+ *
1501
1513
  * Default: `false`
1502
1514
  */
1503
1515
  required?: boolean;
@@ -6860,6 +6872,9 @@ interface Rule {
6860
6872
  /**
6861
6873
  * Conditional expression that determines when this rule should be applied.
6862
6874
  * The overrides defined in this rule are applied when this expression evaluates to true.
6875
+ *
6876
+ * The root of the expression must be an `and` or `or` group. To evaluate a
6877
+ * single condition, wrap it in a group with 1 condition.
6863
6878
  */
6864
6879
  expression?: ConditionNode;
6865
6880
  /**
@@ -6935,12 +6950,19 @@ interface FieldOverridePropertyTypeOptionsOneOf {
6935
6950
  /** Configuration for changing the allowed values of a field. */
6936
6951
  allowedValuesOptions?: AllowedValuesOptions;
6937
6952
  }
6953
+ /**
6954
+ * Node of a rule's conditional expression. Either a logical group of nested
6955
+ * nodes, or a single condition.
6956
+ *
6957
+ * The root node of a rule's expression must be an `and` or `or` group.
6958
+ * A single condition is only supported in nested nodes.
6959
+ */
6938
6960
  interface ConditionNode extends ConditionNodeNodeOneOf {
6939
6961
  /** Logical AND condition with 1 or more child conditions. All child conditions must be true. */
6940
6962
  and?: AndCondition;
6941
6963
  /** Logical OR condition with 1 or more child conditions. At least 1 child condition must be true. */
6942
6964
  or?: OrCondition;
6943
- /** Single condition to evaluate. */
6965
+ /** Single condition to evaluate. Not supported as the root of a rule's expression. */
6944
6966
  condition?: Condition;
6945
6967
  }
6946
6968
  /** @oneof */
@@ -6949,7 +6971,7 @@ interface ConditionNodeNodeOneOf {
6949
6971
  and?: AndCondition;
6950
6972
  /** Logical OR condition with 1 or more child conditions. At least 1 child condition must be true. */
6951
6973
  or?: OrCondition;
6952
- /** Single condition to evaluate. */
6974
+ /** Single condition to evaluate. Not supported as the root of a rule's expression. */
6953
6975
  condition?: Condition;
6954
6976
  }
6955
6977
  interface AndCondition {