@wix/auto_sdk_forms_submissions 1.0.148 → 1.0.149

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 (37) hide show
  1. package/build/cjs/{forms-v4-submission-submissions.universal-DpxoO7nJ.d.ts → forms-v4-submission-submissions.universal-Bfo2P_8S.d.ts} +137 -21
  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 +2 -2
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +118 -20
  7. package/build/cjs/meta.js.map +1 -1
  8. package/build/cjs/schemas.js +43 -23
  9. package/build/cjs/schemas.js.map +1 -1
  10. package/build/es/{forms-v4-submission-submissions.universal-DpxoO7nJ.d.mts → forms-v4-submission-submissions.universal-Bfo2P_8S.d.mts} +137 -21
  11. package/build/es/index.d.mts +2 -2
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +2 -2
  14. package/build/es/index.typings.mjs.map +1 -1
  15. package/build/es/meta.d.mts +118 -20
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/es/schemas.mjs +43 -23
  18. package/build/es/schemas.mjs.map +1 -1
  19. package/build/internal/cjs/{forms-v4-submission-submissions.universal-DpHNZLTq.d.ts → forms-v4-submission-submissions.universal-VEnQJRaC.d.ts} +137 -21
  20. package/build/internal/cjs/index.d.ts +2 -2
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +2 -2
  23. package/build/internal/cjs/index.typings.js.map +1 -1
  24. package/build/internal/cjs/meta.d.ts +118 -20
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/cjs/schemas.js +43 -23
  27. package/build/internal/cjs/schemas.js.map +1 -1
  28. package/build/internal/es/{forms-v4-submission-submissions.universal-DpHNZLTq.d.mts → forms-v4-submission-submissions.universal-VEnQJRaC.d.mts} +137 -21
  29. package/build/internal/es/index.d.mts +2 -2
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +2 -2
  32. package/build/internal/es/index.typings.mjs.map +1 -1
  33. package/build/internal/es/meta.d.mts +118 -20
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/build/internal/es/schemas.mjs +43 -23
  36. package/build/internal/es/schemas.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -127,7 +127,7 @@ var CreateSubmissionRequest = z.object({
127
127
  ).min(10).max(50).optional(),
128
128
  status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
129
129
  submissions: z.record(z.string(), z.any()).describe(
130
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
130
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
131
131
  ).optional(),
132
132
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
133
133
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -245,9 +245,11 @@ var CreateSubmissionResponse = z.object({
245
245
  namespace: z.string().describe(
246
246
  "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."
247
247
  ).min(10).max(50).optional(),
248
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
248
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
249
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
250
+ ).optional(),
249
251
  submissions: z.record(z.string(), z.any()).describe(
250
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
252
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
251
253
  ).optional(),
252
254
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
253
255
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -364,9 +366,11 @@ var GetSubmissionResponse = z.object({
364
366
  namespace: z.string().describe(
365
367
  "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."
366
368
  ).min(10).max(50).optional(),
367
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
369
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
370
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
371
+ ).optional(),
368
372
  submissions: z.record(z.string(), z.any()).describe(
369
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
373
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
370
374
  ).optional(),
371
375
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
372
376
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -484,7 +488,7 @@ var UpdateSubmissionRequest = z.object({
484
488
  ).min(10).max(50).optional(),
485
489
  status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
486
490
  submissions: z.record(z.string(), z.any()).describe(
487
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
491
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
488
492
  ).optional(),
489
493
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
490
494
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -596,9 +600,11 @@ var UpdateSubmissionResponse = z.object({
596
600
  namespace: z.string().describe(
597
601
  "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."
598
602
  ).min(10).max(50).optional(),
599
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
603
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
604
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
605
+ ).optional(),
600
606
  submissions: z.record(z.string(), z.any()).describe(
601
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
607
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
602
608
  ).optional(),
603
609
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
604
610
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -716,9 +722,11 @@ var ConfirmSubmissionResponse = z.object({
716
722
  namespace: z.string().describe(
717
723
  "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."
718
724
  ).min(10).max(50).optional(),
719
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
725
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
726
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
727
+ ).optional(),
720
728
  submissions: z.record(z.string(), z.any()).describe(
721
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
729
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
722
730
  ).optional(),
723
731
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
724
732
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -895,9 +903,11 @@ var RestoreSubmissionFromTrashBinResponse = z.object({
895
903
  namespace: z.string().describe(
896
904
  "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."
897
905
  ).min(10).max(50).optional(),
898
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
906
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
907
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
908
+ ).optional(),
899
909
  submissions: z.record(z.string(), z.any()).describe(
900
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
910
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
901
911
  ).optional(),
902
912
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
903
913
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -1082,9 +1092,11 @@ var ListDeletedSubmissionsResponse = z.object({
1082
1092
  namespace: z.string().describe(
1083
1093
  "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."
1084
1094
  ).min(10).max(50).optional(),
1085
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
1095
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
1096
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
1097
+ ).optional(),
1086
1098
  submissions: z.record(z.string(), z.any()).describe(
1087
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
1099
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
1088
1100
  ).optional(),
1089
1101
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
1090
1102
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -1216,9 +1228,11 @@ var GetDeletedSubmissionResponse = z.object({
1216
1228
  namespace: z.string().describe(
1217
1229
  "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."
1218
1230
  ).min(10).max(50).optional(),
1219
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
1231
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
1232
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
1233
+ ).optional(),
1220
1234
  submissions: z.record(z.string(), z.any()).describe(
1221
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
1235
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
1222
1236
  ).optional(),
1223
1237
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
1224
1238
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -1365,9 +1379,11 @@ var QuerySubmissionResponse = z.object({
1365
1379
  namespace: z.string().describe(
1366
1380
  "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."
1367
1381
  ).min(10).max(50).optional(),
1368
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
1382
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
1383
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
1384
+ ).optional(),
1369
1385
  submissions: z.record(z.string(), z.any()).describe(
1370
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
1386
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
1371
1387
  ).optional(),
1372
1388
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
1373
1389
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -1541,9 +1557,11 @@ var SearchSubmissionsByNamespaceResponse = z.object({
1541
1557
  namespace: z.string().describe(
1542
1558
  "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."
1543
1559
  ).min(10).max(50).optional(),
1544
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
1560
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
1561
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
1562
+ ).optional(),
1545
1563
  submissions: z.record(z.string(), z.any()).describe(
1546
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
1564
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
1547
1565
  ).optional(),
1548
1566
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
1549
1567
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -1782,9 +1800,11 @@ var QuerySubmissionsByNamespaceResponse = z.object({
1782
1800
  namespace: z.string().describe(
1783
1801
  "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."
1784
1802
  ).min(10).max(50).optional(),
1785
- status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe("Status of the submission.").optional(),
1803
+ status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
1804
+ "Status of the submission.\n\nThe 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.\n\nA 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.\n\nA `PENDING` submission isn't recorded yet, and is deleted automatically if it isn't confirmed in time."
1805
+ ).optional(),
1786
1806
  submissions: z.record(z.string(), z.any()).describe(
1787
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
1807
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
1788
1808
  ).optional(),
1789
1809
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
1790
1810
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
@@ -2095,7 +2115,7 @@ var ValidateFormSubmissionRequest = z.object({
2095
2115
  ).min(10).max(50).optional(),
2096
2116
  status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
2097
2117
  submissions: z.record(z.string(), z.any()).describe(
2098
- "Submission values where `key` is the form field and `value` is the data submitted for the given field."
2118
+ "Values the visitor submitted.\n\nEach 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.\n\nEach 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.\n\n3 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.\n\nFor the full mapping, see [Submission values](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/introduction#submission-values)."
2099
2119
  ).optional(),
2100
2120
  _createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
2101
2121
  _updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),