@wix/auto_sdk_forms_submissions 1.0.147 → 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.
- package/build/cjs/{forms-v4-submission-submissions.universal-Bc6sSCu_.d.ts → forms-v4-submission-submissions.universal-Bfo2P_8S.d.ts} +226 -30
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +20 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +20 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +207 -29
- package/build/cjs/meta.js +20 -0
- 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-Bc6sSCu_.d.mts → forms-v4-submission-submissions.universal-Bfo2P_8S.d.mts} +226 -30
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +19 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +19 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +207 -29
- package/build/es/meta.mjs +19 -0
- 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-BuZKHtTw.d.ts → forms-v4-submission-submissions.universal-VEnQJRaC.d.ts} +449 -31
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +20 -0
- 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 +20 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +481 -30
- package/build/internal/cjs/meta.js +20 -0
- 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-BuZKHtTw.d.mts → forms-v4-submission-submissions.universal-VEnQJRaC.d.mts} +449 -31
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +19 -0
- 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 +19 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +481 -30
- package/build/internal/es/meta.mjs +19 -0
- 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 +4 -4
package/build/es/schemas.mjs
CHANGED
|
@@ -42,7 +42,7 @@ var CreateSubmissionRequest = z.object({
|
|
|
42
42
|
).min(10).max(50).optional(),
|
|
43
43
|
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
|
|
44
44
|
submissions: z.record(z.string(), z.any()).describe(
|
|
45
|
-
"
|
|
45
|
+
"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)."
|
|
46
46
|
).optional(),
|
|
47
47
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
48
48
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -160,9 +160,11 @@ var CreateSubmissionResponse = z.object({
|
|
|
160
160
|
namespace: z.string().describe(
|
|
161
161
|
"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."
|
|
162
162
|
).min(10).max(50).optional(),
|
|
163
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
163
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
164
|
+
"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."
|
|
165
|
+
).optional(),
|
|
164
166
|
submissions: z.record(z.string(), z.any()).describe(
|
|
165
|
-
"
|
|
167
|
+
"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)."
|
|
166
168
|
).optional(),
|
|
167
169
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
168
170
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -279,9 +281,11 @@ var GetSubmissionResponse = z.object({
|
|
|
279
281
|
namespace: z.string().describe(
|
|
280
282
|
"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."
|
|
281
283
|
).min(10).max(50).optional(),
|
|
282
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
284
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
285
|
+
"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."
|
|
286
|
+
).optional(),
|
|
283
287
|
submissions: z.record(z.string(), z.any()).describe(
|
|
284
|
-
"
|
|
288
|
+
"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)."
|
|
285
289
|
).optional(),
|
|
286
290
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
287
291
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -399,7 +403,7 @@ var UpdateSubmissionRequest = z.object({
|
|
|
399
403
|
).min(10).max(50).optional(),
|
|
400
404
|
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
|
|
401
405
|
submissions: z.record(z.string(), z.any()).describe(
|
|
402
|
-
"
|
|
406
|
+
"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)."
|
|
403
407
|
).optional(),
|
|
404
408
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
405
409
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -511,9 +515,11 @@ var UpdateSubmissionResponse = z.object({
|
|
|
511
515
|
namespace: z.string().describe(
|
|
512
516
|
"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."
|
|
513
517
|
).min(10).max(50).optional(),
|
|
514
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
518
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
519
|
+
"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."
|
|
520
|
+
).optional(),
|
|
515
521
|
submissions: z.record(z.string(), z.any()).describe(
|
|
516
|
-
"
|
|
522
|
+
"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)."
|
|
517
523
|
).optional(),
|
|
518
524
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
519
525
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -631,9 +637,11 @@ var ConfirmSubmissionResponse = z.object({
|
|
|
631
637
|
namespace: z.string().describe(
|
|
632
638
|
"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."
|
|
633
639
|
).min(10).max(50).optional(),
|
|
634
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
640
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
641
|
+
"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."
|
|
642
|
+
).optional(),
|
|
635
643
|
submissions: z.record(z.string(), z.any()).describe(
|
|
636
|
-
"
|
|
644
|
+
"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)."
|
|
637
645
|
).optional(),
|
|
638
646
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
639
647
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -810,9 +818,11 @@ var RestoreSubmissionFromTrashBinResponse = z.object({
|
|
|
810
818
|
namespace: z.string().describe(
|
|
811
819
|
"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."
|
|
812
820
|
).min(10).max(50).optional(),
|
|
813
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
821
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
822
|
+
"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."
|
|
823
|
+
).optional(),
|
|
814
824
|
submissions: z.record(z.string(), z.any()).describe(
|
|
815
|
-
"
|
|
825
|
+
"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)."
|
|
816
826
|
).optional(),
|
|
817
827
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
818
828
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -997,9 +1007,11 @@ var ListDeletedSubmissionsResponse = z.object({
|
|
|
997
1007
|
namespace: z.string().describe(
|
|
998
1008
|
"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."
|
|
999
1009
|
).min(10).max(50).optional(),
|
|
1000
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1010
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1011
|
+
"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."
|
|
1012
|
+
).optional(),
|
|
1001
1013
|
submissions: z.record(z.string(), z.any()).describe(
|
|
1002
|
-
"
|
|
1014
|
+
"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)."
|
|
1003
1015
|
).optional(),
|
|
1004
1016
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
1005
1017
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -1131,9 +1143,11 @@ var GetDeletedSubmissionResponse = z.object({
|
|
|
1131
1143
|
namespace: z.string().describe(
|
|
1132
1144
|
"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."
|
|
1133
1145
|
).min(10).max(50).optional(),
|
|
1134
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1146
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1147
|
+
"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."
|
|
1148
|
+
).optional(),
|
|
1135
1149
|
submissions: z.record(z.string(), z.any()).describe(
|
|
1136
|
-
"
|
|
1150
|
+
"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)."
|
|
1137
1151
|
).optional(),
|
|
1138
1152
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
1139
1153
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -1280,9 +1294,11 @@ var QuerySubmissionResponse = z.object({
|
|
|
1280
1294
|
namespace: z.string().describe(
|
|
1281
1295
|
"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."
|
|
1282
1296
|
).min(10).max(50).optional(),
|
|
1283
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1297
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1298
|
+
"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."
|
|
1299
|
+
).optional(),
|
|
1284
1300
|
submissions: z.record(z.string(), z.any()).describe(
|
|
1285
|
-
"
|
|
1301
|
+
"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)."
|
|
1286
1302
|
).optional(),
|
|
1287
1303
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
1288
1304
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -1456,9 +1472,11 @@ var SearchSubmissionsByNamespaceResponse = z.object({
|
|
|
1456
1472
|
namespace: z.string().describe(
|
|
1457
1473
|
"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."
|
|
1458
1474
|
).min(10).max(50).optional(),
|
|
1459
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1475
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1476
|
+
"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."
|
|
1477
|
+
).optional(),
|
|
1460
1478
|
submissions: z.record(z.string(), z.any()).describe(
|
|
1461
|
-
"
|
|
1479
|
+
"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)."
|
|
1462
1480
|
).optional(),
|
|
1463
1481
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
1464
1482
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -1697,9 +1715,11 @@ var QuerySubmissionsByNamespaceResponse = z.object({
|
|
|
1697
1715
|
namespace: z.string().describe(
|
|
1698
1716
|
"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."
|
|
1699
1717
|
).min(10).max(50).optional(),
|
|
1700
|
-
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1718
|
+
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).describe(
|
|
1719
|
+
"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."
|
|
1720
|
+
).optional(),
|
|
1701
1721
|
submissions: z.record(z.string(), z.any()).describe(
|
|
1702
|
-
"
|
|
1722
|
+
"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)."
|
|
1703
1723
|
).optional(),
|
|
1704
1724
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
1705
1725
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|
|
@@ -2010,7 +2030,7 @@ var ValidateFormSubmissionRequest = z.object({
|
|
|
2010
2030
|
).min(10).max(50).optional(),
|
|
2011
2031
|
status: z.enum(["PENDING", "CONFIRMED", "PAYMENT_WAITING", "PAYMENT_CANCELED"]).optional(),
|
|
2012
2032
|
submissions: z.record(z.string(), z.any()).describe(
|
|
2013
|
-
"
|
|
2033
|
+
"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)."
|
|
2014
2034
|
).optional(),
|
|
2015
2035
|
_createdDate: z.date().describe("Date and time the form submission was created.").optional().nullable(),
|
|
2016
2036
|
_updatedDate: z.date().describe("Date and time the form submission was updated.").optional().nullable(),
|