@wix/auto_sdk_forms_submissions 1.0.155 → 1.0.157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/build/cjs/{forms-v4-submission-submissions.universal-5DzKQUIB.d.ts → forms-v4-submission-submissions.universal-C6InzFwD.d.ts} +54 -9
  2. package/build/cjs/index.d.ts +2 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +3 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +26 -7
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/es/{forms-v4-submission-submissions.universal-5DzKQUIB.d.mts → forms-v4-submission-submissions.universal-C6InzFwD.d.mts} +54 -9
  9. package/build/es/index.d.mts +2 -2
  10. package/build/es/index.mjs.map +1 -1
  11. package/build/es/index.typings.d.mts +3 -2
  12. package/build/es/index.typings.mjs.map +1 -1
  13. package/build/es/meta.d.mts +26 -7
  14. package/build/es/meta.mjs.map +1 -1
  15. package/build/internal/cjs/{forms-v4-submission-submissions.universal-nbHDETE6.d.ts → forms-v4-submission-submissions.universal-DUQkvNPc.d.ts} +56 -9
  16. package/build/internal/cjs/index.d.ts +2 -2
  17. package/build/internal/cjs/index.typings.d.ts +3 -2
  18. package/build/internal/cjs/meta.d.ts +26 -7
  19. package/build/internal/es/{forms-v4-submission-submissions.universal-nbHDETE6.d.mts → forms-v4-submission-submissions.universal-DUQkvNPc.d.mts} +56 -9
  20. package/build/internal/es/index.d.mts +2 -2
  21. package/build/internal/es/index.typings.d.mts +3 -2
  22. package/build/internal/es/meta.d.mts +26 -7
  23. package/package.json +4 -11
  24. package/build/cjs/schemas.d.ts +0 -1351
  25. package/build/cjs/schemas.js +0 -2338
  26. package/build/cjs/schemas.js.map +0 -1
  27. package/build/es/schemas.d.mts +0 -1351
  28. package/build/es/schemas.mjs +0 -2252
  29. package/build/es/schemas.mjs.map +0 -1
  30. package/build/internal/cjs/index.js +0 -3462
  31. package/build/internal/cjs/index.js.map +0 -1
  32. package/build/internal/cjs/index.typings.js +0 -3054
  33. package/build/internal/cjs/index.typings.js.map +0 -1
  34. package/build/internal/cjs/meta.js +0 -2719
  35. package/build/internal/cjs/meta.js.map +0 -1
  36. package/build/internal/cjs/schemas.d.ts +0 -1351
  37. package/build/internal/cjs/schemas.js +0 -2338
  38. package/build/internal/cjs/schemas.js.map +0 -1
  39. package/build/internal/es/index.mjs +0 -3276
  40. package/build/internal/es/index.mjs.map +0 -1
  41. package/build/internal/es/index.typings.mjs +0 -2874
  42. package/build/internal/es/index.typings.mjs.map +0 -1
  43. package/build/internal/es/meta.mjs +0 -2538
  44. package/build/internal/es/meta.mjs.map +0 -1
  45. package/build/internal/es/schemas.d.mts +0 -1351
  46. package/build/internal/es/schemas.mjs +0 -2252
  47. package/build/internal/es/schemas.mjs.map +0 -1
  48. package/schemas/package.json +0 -3
@@ -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-5DzKQUIB.mjs';
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-C6InzFwD.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  /** Form submission that was created or retrieved. */
@@ -16,7 +16,12 @@ interface FormSubmission {
16
16
  */
17
17
  formId?: string;
18
18
  /**
19
- * 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.
19
+ * The app which the form submissions belong to. A submission inherits the namespace from its form schema, so you can't set it directly.
20
+ *
21
+ * For example, a submission of a form visible in the Wix Forms app has the namespace `wix.form_app.form`, the namespace of the Wix Forms app, whose app ID is `225dd912-7dea-4738-8688-4b8c6955ffc2`.
22
+ *
23
+ * 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.
24
+ * 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).
20
25
  * @minLength 10
21
26
  * @maxLength 50
22
27
  * @readonly
@@ -37,7 +42,7 @@ interface FormSubmission {
37
42
  *
38
43
  * 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
44
  *
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.
45
+ * 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. A choice field submits an option's `value`, not its ID or its label.
41
46
  *
42
47
  * 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
48
  *
@@ -723,9 +728,11 @@ interface Form {
723
728
  extendedFields?: ExtendedFields;
724
729
  /**
725
730
  * Unique identifier for the app that owns this form schema.
726
- * For example, `wix.form_app.form` for Wix Forms.
731
+ *
732
+ * 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`.
727
733
  *
728
734
  * 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.
735
+ * 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).
729
736
  * @minLength 10
730
737
  * @maxLength 50
731
738
  * @immutable
@@ -1399,7 +1406,7 @@ interface Field extends FieldFieldTypeOptionsOneOf {
1399
1406
  * Identification for the field, describing its purpose. For example, `TEXT_INPUT` or `CONTACTS_EMAIL`.
1400
1407
  *
1401
1408
  * Set this to the known value for the kind of field you're creating.
1402
- * 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.
1409
+ * 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.
1403
1410
  *
1404
1411
  * Several fields share a general-purpose `componentType`, so `identifier` is often the only value that distinguishes them.
1405
1412
  * 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.
@@ -1493,6 +1500,8 @@ interface InputField extends InputFieldInputTypeOptionsOneOf {
1493
1500
  /**
1494
1501
  * Whether the field is required for form submission.
1495
1502
  *
1503
+ * 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.
1504
+ *
1496
1505
  * Default: `false`
1497
1506
  */
1498
1507
  required?: boolean;
@@ -6855,6 +6864,9 @@ interface Rule {
6855
6864
  /**
6856
6865
  * Conditional expression that determines when this rule should be applied.
6857
6866
  * The overrides defined in this rule are applied when this expression evaluates to true.
6867
+ *
6868
+ * The root of the expression must be an `and` or `or` group. To evaluate a
6869
+ * single condition, wrap it in a group with 1 condition.
6858
6870
  */
6859
6871
  expression?: ConditionNode;
6860
6872
  /**
@@ -6930,12 +6942,19 @@ interface FieldOverridePropertyTypeOptionsOneOf {
6930
6942
  /** Configuration for changing the allowed values of a field. */
6931
6943
  allowedValuesOptions?: AllowedValuesOptions;
6932
6944
  }
6945
+ /**
6946
+ * Node of a rule's conditional expression. Either a logical group of nested
6947
+ * nodes, or a single condition.
6948
+ *
6949
+ * The root node of a rule's expression must be an `and` or `or` group.
6950
+ * A single condition is only supported in nested nodes.
6951
+ */
6933
6952
  interface ConditionNode extends ConditionNodeNodeOneOf {
6934
6953
  /** Logical AND condition with 1 or more child conditions. All child conditions must be true. */
6935
6954
  and?: AndCondition;
6936
6955
  /** Logical OR condition with 1 or more child conditions. At least 1 child condition must be true. */
6937
6956
  or?: OrCondition;
6938
- /** Single condition to evaluate. */
6957
+ /** Single condition to evaluate. Not supported as the root of a rule's expression. */
6939
6958
  condition?: Condition;
6940
6959
  }
6941
6960
  /** @oneof */
@@ -6944,7 +6963,7 @@ interface ConditionNodeNodeOneOf {
6944
6963
  and?: AndCondition;
6945
6964
  /** Logical OR condition with 1 or more child conditions. At least 1 child condition must be true. */
6946
6965
  or?: OrCondition;
6947
- /** Single condition to evaluate. */
6966
+ /** Single condition to evaluate. Not supported as the root of a rule's expression. */
6948
6967
  condition?: Condition;
6949
6968
  }
6950
6969
  interface AndCondition {