@wix/auto_sdk_stores_customizations-v-3 1.0.92 → 1.0.93
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/schemas.js +964 -874
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +964 -874
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -1912
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1665
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1226
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -1920
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1864
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1619
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1179
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -1856
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/es/schemas.mjs
CHANGED
|
@@ -1,76 +1,78 @@
|
|
|
1
1
|
// src/stores-catalog-v3-customization-customizations-v-3.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
3
|
var CreateCustomizationRequest = /* @__PURE__ */ z.object({
|
|
4
|
-
customization: z.intersection(
|
|
5
|
-
z.object({
|
|
6
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
7
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
4
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
5
|
+
/* @__PURE__ */ z.object({
|
|
6
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
7
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
8
8
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
9
9
|
).optional().nullable(),
|
|
10
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
11
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
12
|
-
key: z.string().describe(
|
|
10
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
11
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
12
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
13
13
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
14
14
|
).min(1).max(50).optional().nullable(),
|
|
15
|
-
name: z.string().describe(
|
|
15
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
16
16
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
17
17
|
).min(1).max(50),
|
|
18
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]),
|
|
19
|
-
customizationRenderType: z.enum([
|
|
18
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]),
|
|
19
|
+
customizationRenderType: /* @__PURE__ */ z.enum([
|
|
20
20
|
"FREE_TEXT",
|
|
21
21
|
"TEXT_CHOICES",
|
|
22
22
|
"SWATCH_CHOICES"
|
|
23
23
|
]),
|
|
24
|
-
assignedProductsCount: z.number().int().describe(
|
|
24
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
25
25
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
26
26
|
).optional().nullable()
|
|
27
27
|
}),
|
|
28
|
-
z.xor([
|
|
29
|
-
z.object({
|
|
30
|
-
choicesSettings: z.never().optional(),
|
|
31
|
-
freeTextInput: z.object({
|
|
32
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
33
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
34
|
-
defaultAddedPrice: z.string().describe(
|
|
28
|
+
/* @__PURE__ */ z.xor([
|
|
29
|
+
/* @__PURE__ */ z.object({
|
|
30
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
31
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
32
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
33
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
34
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
35
35
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
36
36
|
).optional().nullable(),
|
|
37
|
-
title: z.string().describe(
|
|
37
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
38
38
|
"Title to display to customer for their free-text input."
|
|
39
39
|
).min(1).max(100),
|
|
40
|
-
key: z.string().describe(
|
|
40
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
41
41
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
42
42
|
).min(1).max(150).optional().nullable()
|
|
43
43
|
}).describe(
|
|
44
44
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
45
45
|
)
|
|
46
46
|
}),
|
|
47
|
-
z.object({
|
|
48
|
-
freeTextInput: z.never().optional(),
|
|
49
|
-
choicesSettings: z.object({
|
|
50
|
-
choices: z.array(
|
|
51
|
-
z.intersection(
|
|
52
|
-
z.object({
|
|
53
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
47
|
+
/* @__PURE__ */ z.object({
|
|
48
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
49
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
50
|
+
choices: /* @__PURE__ */ z.array(
|
|
51
|
+
/* @__PURE__ */ z.intersection(
|
|
52
|
+
/* @__PURE__ */ z.object({
|
|
53
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
54
54
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
55
55
|
"Must be a valid GUID"
|
|
56
56
|
).optional(),
|
|
57
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
58
|
-
key: z.string().describe(
|
|
57
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
58
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
59
59
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
60
60
|
).min(1).max(50).optional().nullable(),
|
|
61
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
62
|
-
defaultAddedPrice: z.string().describe(
|
|
61
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
62
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
63
63
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
64
64
|
).optional().nullable(),
|
|
65
|
-
displayImage: z.string().describe(
|
|
65
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
66
66
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
67
67
|
).optional(),
|
|
68
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
68
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
69
69
|
}),
|
|
70
|
-
z.xor([
|
|
71
|
-
z.object({
|
|
72
|
-
|
|
73
|
-
|
|
70
|
+
/* @__PURE__ */ z.xor([
|
|
71
|
+
/* @__PURE__ */ z.object({
|
|
72
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ z.object({
|
|
75
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
74
76
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
75
77
|
).min(3).max(20)
|
|
76
78
|
})
|
|
@@ -85,77 +87,79 @@ var CreateCustomizationRequest = /* @__PURE__ */ z.object({
|
|
|
85
87
|
).describe("Customization to create.")
|
|
86
88
|
});
|
|
87
89
|
var CreateCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
88
|
-
z.object({
|
|
89
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
90
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
90
|
+
/* @__PURE__ */ z.object({
|
|
91
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
92
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
91
93
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
92
94
|
).optional().nullable(),
|
|
93
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
94
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
95
|
-
key: z.string().describe(
|
|
95
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
96
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
97
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
96
98
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
97
99
|
).min(1).max(50).optional().nullable(),
|
|
98
|
-
name: z.string().describe(
|
|
100
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
99
101
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
100
102
|
).min(1).max(50).optional(),
|
|
101
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
102
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
103
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
104
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
103
105
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
104
106
|
).optional(),
|
|
105
|
-
assignedProductsCount: z.number().int().describe(
|
|
107
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
106
108
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
107
109
|
).optional().nullable()
|
|
108
110
|
}),
|
|
109
|
-
z.xor([
|
|
110
|
-
z.object({
|
|
111
|
-
freeTextInput: z.never().optional(),
|
|
112
|
-
choicesSettings: z.never().optional()
|
|
111
|
+
/* @__PURE__ */ z.xor([
|
|
112
|
+
/* @__PURE__ */ z.object({
|
|
113
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
114
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
113
115
|
}),
|
|
114
|
-
z.object({
|
|
115
|
-
choicesSettings: z.never().optional(),
|
|
116
|
-
freeTextInput: z.object({
|
|
117
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
118
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
119
|
-
defaultAddedPrice: z.string().describe(
|
|
116
|
+
/* @__PURE__ */ z.object({
|
|
117
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
118
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
119
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
120
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
121
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
120
122
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
121
123
|
).optional().nullable(),
|
|
122
|
-
title: z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
123
|
-
key: z.string().describe(
|
|
124
|
+
title: /* @__PURE__ */ z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
125
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
124
126
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
125
127
|
).min(1).max(150).optional().nullable()
|
|
126
128
|
}).describe(
|
|
127
129
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
128
130
|
)
|
|
129
131
|
}),
|
|
130
|
-
z.object({
|
|
131
|
-
freeTextInput: z.never().optional(),
|
|
132
|
-
choicesSettings: z.object({
|
|
133
|
-
choices: z.array(
|
|
134
|
-
z.intersection(
|
|
135
|
-
z.object({
|
|
136
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
132
|
+
/* @__PURE__ */ z.object({
|
|
133
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
134
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
135
|
+
choices: /* @__PURE__ */ z.array(
|
|
136
|
+
/* @__PURE__ */ z.intersection(
|
|
137
|
+
/* @__PURE__ */ z.object({
|
|
138
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
137
139
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
138
140
|
"Must be a valid GUID"
|
|
139
141
|
).optional(),
|
|
140
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
142
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
141
143
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
142
144
|
).optional(),
|
|
143
|
-
key: z.string().describe(
|
|
145
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
144
146
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
145
147
|
).min(1).max(50).optional().nullable(),
|
|
146
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
147
|
-
defaultAddedPrice: z.string().describe(
|
|
148
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
149
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
148
150
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
149
151
|
).optional().nullable(),
|
|
150
|
-
displayImage: z.string().describe(
|
|
152
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
151
153
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
152
154
|
).optional(),
|
|
153
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
155
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
154
156
|
}),
|
|
155
|
-
z.xor([
|
|
156
|
-
z.object({
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
/* @__PURE__ */ z.xor([
|
|
158
|
+
/* @__PURE__ */ z.object({
|
|
159
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
160
|
+
}),
|
|
161
|
+
/* @__PURE__ */ z.object({
|
|
162
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
159
163
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
160
164
|
).min(3).max(20)
|
|
161
165
|
})
|
|
@@ -169,86 +173,93 @@ var CreateCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
|
169
173
|
])
|
|
170
174
|
);
|
|
171
175
|
var GetCustomizationRequest = /* @__PURE__ */ z.object({
|
|
172
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
176
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
173
177
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
174
178
|
"Must be a valid GUID"
|
|
175
179
|
),
|
|
176
|
-
options: z.object({
|
|
177
|
-
fields: z.array(
|
|
180
|
+
options: /* @__PURE__ */ z.object({
|
|
181
|
+
fields: /* @__PURE__ */ z.array(
|
|
182
|
+
/* @__PURE__ */ z.enum([
|
|
183
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
184
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
185
|
+
])
|
|
186
|
+
).max(100).optional()
|
|
178
187
|
}).optional()
|
|
179
188
|
});
|
|
180
189
|
var GetCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
181
|
-
z.object({
|
|
182
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
183
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
190
|
+
/* @__PURE__ */ z.object({
|
|
191
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
192
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
184
193
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
185
194
|
).optional().nullable(),
|
|
186
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
187
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
188
|
-
key: z.string().describe(
|
|
195
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
196
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
197
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
189
198
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
190
199
|
).min(1).max(50).optional().nullable(),
|
|
191
|
-
name: z.string().describe(
|
|
200
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
192
201
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
193
202
|
).min(1).max(50).optional(),
|
|
194
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
195
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
203
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
204
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
196
205
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
197
206
|
).optional(),
|
|
198
|
-
assignedProductsCount: z.number().int().describe(
|
|
207
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
199
208
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
200
209
|
).optional().nullable()
|
|
201
210
|
}),
|
|
202
|
-
z.xor([
|
|
203
|
-
z.object({
|
|
204
|
-
freeTextInput: z.never().optional(),
|
|
205
|
-
choicesSettings: z.never().optional()
|
|
211
|
+
/* @__PURE__ */ z.xor([
|
|
212
|
+
/* @__PURE__ */ z.object({
|
|
213
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
214
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
206
215
|
}),
|
|
207
|
-
z.object({
|
|
208
|
-
choicesSettings: z.never().optional(),
|
|
209
|
-
freeTextInput: z.object({
|
|
210
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
211
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
212
|
-
defaultAddedPrice: z.string().describe(
|
|
216
|
+
/* @__PURE__ */ z.object({
|
|
217
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
218
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
219
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
220
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
221
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
213
222
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
214
223
|
).optional().nullable(),
|
|
215
|
-
title: z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
216
|
-
key: z.string().describe(
|
|
224
|
+
title: /* @__PURE__ */ z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
225
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
217
226
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
218
227
|
).min(1).max(150).optional().nullable()
|
|
219
228
|
}).describe(
|
|
220
229
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
221
230
|
)
|
|
222
231
|
}),
|
|
223
|
-
z.object({
|
|
224
|
-
freeTextInput: z.never().optional(),
|
|
225
|
-
choicesSettings: z.object({
|
|
226
|
-
choices: z.array(
|
|
227
|
-
z.intersection(
|
|
228
|
-
z.object({
|
|
229
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
232
|
+
/* @__PURE__ */ z.object({
|
|
233
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
234
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
235
|
+
choices: /* @__PURE__ */ z.array(
|
|
236
|
+
/* @__PURE__ */ z.intersection(
|
|
237
|
+
/* @__PURE__ */ z.object({
|
|
238
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
230
239
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
231
240
|
"Must be a valid GUID"
|
|
232
241
|
).optional(),
|
|
233
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
242
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
234
243
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
235
244
|
).optional(),
|
|
236
|
-
key: z.string().describe(
|
|
245
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
237
246
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
238
247
|
).min(1).max(50).optional().nullable(),
|
|
239
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
240
|
-
defaultAddedPrice: z.string().describe(
|
|
248
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
249
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
241
250
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
242
251
|
).optional().nullable(),
|
|
243
|
-
displayImage: z.string().describe(
|
|
252
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
244
253
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
245
254
|
).optional(),
|
|
246
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
255
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
247
256
|
}),
|
|
248
|
-
z.xor([
|
|
249
|
-
z.object({
|
|
250
|
-
|
|
251
|
-
|
|
257
|
+
/* @__PURE__ */ z.xor([
|
|
258
|
+
/* @__PURE__ */ z.object({
|
|
259
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
260
|
+
}),
|
|
261
|
+
/* @__PURE__ */ z.object({
|
|
262
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
252
263
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
253
264
|
).min(3).max(20)
|
|
254
265
|
})
|
|
@@ -262,77 +273,79 @@ var GetCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
|
262
273
|
])
|
|
263
274
|
);
|
|
264
275
|
var UpdateCustomizationRequest = /* @__PURE__ */ z.object({
|
|
265
|
-
_id: z.string().describe("Customization ID.").min(1).max(36),
|
|
266
|
-
customization: z.intersection(
|
|
267
|
-
z.object({
|
|
268
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
269
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
276
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36),
|
|
277
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
278
|
+
/* @__PURE__ */ z.object({
|
|
279
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
280
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
270
281
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
271
282
|
),
|
|
272
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
273
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
274
|
-
key: z.string().describe(
|
|
283
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
284
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
285
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
275
286
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
276
287
|
).min(1).max(50).optional().nullable(),
|
|
277
|
-
name: z.string().describe(
|
|
288
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
278
289
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
279
290
|
).min(1).max(50).optional(),
|
|
280
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
281
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
282
|
-
assignedProductsCount: z.number().int().describe(
|
|
291
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
292
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
293
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
283
294
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
284
295
|
).optional().nullable()
|
|
285
296
|
}),
|
|
286
|
-
z.xor([
|
|
287
|
-
z.object({
|
|
288
|
-
freeTextInput: z.never().optional(),
|
|
289
|
-
choicesSettings: z.never().optional()
|
|
297
|
+
/* @__PURE__ */ z.xor([
|
|
298
|
+
/* @__PURE__ */ z.object({
|
|
299
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
300
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
290
301
|
}),
|
|
291
|
-
z.object({
|
|
292
|
-
choicesSettings: z.never().optional(),
|
|
293
|
-
freeTextInput: z.object({
|
|
294
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
295
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
296
|
-
defaultAddedPrice: z.string().describe(
|
|
302
|
+
/* @__PURE__ */ z.object({
|
|
303
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
304
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
305
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
306
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
307
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
297
308
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
298
309
|
).optional().nullable(),
|
|
299
|
-
title: z.string().describe(
|
|
310
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
300
311
|
"Title to display to customer for their free-text input."
|
|
301
312
|
).min(1).max(100).optional(),
|
|
302
|
-
key: z.string().describe(
|
|
313
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
303
314
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
304
315
|
).min(1).max(150).optional().nullable()
|
|
305
316
|
}).describe(
|
|
306
317
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
307
318
|
)
|
|
308
319
|
}),
|
|
309
|
-
z.object({
|
|
310
|
-
freeTextInput: z.never().optional(),
|
|
311
|
-
choicesSettings: z.object({
|
|
312
|
-
choices: z.array(
|
|
313
|
-
z.intersection(
|
|
314
|
-
z.object({
|
|
315
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
320
|
+
/* @__PURE__ */ z.object({
|
|
321
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
322
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
323
|
+
choices: /* @__PURE__ */ z.array(
|
|
324
|
+
/* @__PURE__ */ z.intersection(
|
|
325
|
+
/* @__PURE__ */ z.object({
|
|
326
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
316
327
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
317
328
|
"Must be a valid GUID"
|
|
318
329
|
),
|
|
319
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
320
|
-
key: z.string().describe(
|
|
330
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
331
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
321
332
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
322
333
|
).min(1).max(50).optional().nullable(),
|
|
323
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
324
|
-
defaultAddedPrice: z.string().describe(
|
|
334
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
335
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
325
336
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
326
337
|
).optional().nullable(),
|
|
327
|
-
displayImage: z.string().describe(
|
|
338
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
328
339
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
329
340
|
).optional(),
|
|
330
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
341
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
331
342
|
}),
|
|
332
|
-
z.xor([
|
|
333
|
-
z.object({
|
|
334
|
-
|
|
335
|
-
|
|
343
|
+
/* @__PURE__ */ z.xor([
|
|
344
|
+
/* @__PURE__ */ z.object({
|
|
345
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ z.object({
|
|
348
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
336
349
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
337
350
|
).min(3).max(20)
|
|
338
351
|
})
|
|
@@ -345,82 +358,89 @@ var UpdateCustomizationRequest = /* @__PURE__ */ z.object({
|
|
|
345
358
|
})
|
|
346
359
|
])
|
|
347
360
|
).describe("Customization to update."),
|
|
348
|
-
options: z.object({
|
|
349
|
-
fields: z.array(
|
|
361
|
+
options: /* @__PURE__ */ z.object({
|
|
362
|
+
fields: /* @__PURE__ */ z.array(
|
|
363
|
+
/* @__PURE__ */ z.enum([
|
|
364
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
365
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
366
|
+
])
|
|
367
|
+
).max(100).optional()
|
|
350
368
|
}).optional()
|
|
351
369
|
});
|
|
352
370
|
var UpdateCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
353
|
-
z.object({
|
|
354
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
355
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
371
|
+
/* @__PURE__ */ z.object({
|
|
372
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
373
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
356
374
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
357
375
|
).optional().nullable(),
|
|
358
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
359
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
360
|
-
key: z.string().describe(
|
|
376
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
377
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
378
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
361
379
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
362
380
|
).min(1).max(50).optional().nullable(),
|
|
363
|
-
name: z.string().describe(
|
|
381
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
364
382
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
365
383
|
).min(1).max(50).optional(),
|
|
366
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
367
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
384
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
385
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
368
386
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
369
387
|
).optional(),
|
|
370
|
-
assignedProductsCount: z.number().int().describe(
|
|
388
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
371
389
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
372
390
|
).optional().nullable()
|
|
373
391
|
}),
|
|
374
|
-
z.xor([
|
|
375
|
-
z.object({
|
|
376
|
-
freeTextInput: z.never().optional(),
|
|
377
|
-
choicesSettings: z.never().optional()
|
|
392
|
+
/* @__PURE__ */ z.xor([
|
|
393
|
+
/* @__PURE__ */ z.object({
|
|
394
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
395
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
378
396
|
}),
|
|
379
|
-
z.object({
|
|
380
|
-
choicesSettings: z.never().optional(),
|
|
381
|
-
freeTextInput: z.object({
|
|
382
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
383
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
384
|
-
defaultAddedPrice: z.string().describe(
|
|
397
|
+
/* @__PURE__ */ z.object({
|
|
398
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
399
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
400
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
401
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
402
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
385
403
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
386
404
|
).optional().nullable(),
|
|
387
|
-
title: z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
388
|
-
key: z.string().describe(
|
|
405
|
+
title: /* @__PURE__ */ z.string().describe("Title to display to customer for their free-text input.").min(1).max(100).optional(),
|
|
406
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
389
407
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
390
408
|
).min(1).max(150).optional().nullable()
|
|
391
409
|
}).describe(
|
|
392
410
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
393
411
|
)
|
|
394
412
|
}),
|
|
395
|
-
z.object({
|
|
396
|
-
freeTextInput: z.never().optional(),
|
|
397
|
-
choicesSettings: z.object({
|
|
398
|
-
choices: z.array(
|
|
399
|
-
z.intersection(
|
|
400
|
-
z.object({
|
|
401
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
413
|
+
/* @__PURE__ */ z.object({
|
|
414
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
415
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
416
|
+
choices: /* @__PURE__ */ z.array(
|
|
417
|
+
/* @__PURE__ */ z.intersection(
|
|
418
|
+
/* @__PURE__ */ z.object({
|
|
419
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
402
420
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
403
421
|
"Must be a valid GUID"
|
|
404
422
|
).optional(),
|
|
405
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
423
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
406
424
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
407
425
|
).optional(),
|
|
408
|
-
key: z.string().describe(
|
|
426
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
409
427
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
410
428
|
).min(1).max(50).optional().nullable(),
|
|
411
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
412
|
-
defaultAddedPrice: z.string().describe(
|
|
429
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
430
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
413
431
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
414
432
|
).optional().nullable(),
|
|
415
|
-
displayImage: z.string().describe(
|
|
433
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
416
434
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
417
435
|
).optional(),
|
|
418
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
436
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
419
437
|
}),
|
|
420
|
-
z.xor([
|
|
421
|
-
z.object({
|
|
422
|
-
|
|
423
|
-
|
|
438
|
+
/* @__PURE__ */ z.xor([
|
|
439
|
+
/* @__PURE__ */ z.object({
|
|
440
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
441
|
+
}),
|
|
442
|
+
/* @__PURE__ */ z.object({
|
|
443
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
424
444
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
425
445
|
).min(3).max(20)
|
|
426
446
|
})
|
|
@@ -434,190 +454,197 @@ var UpdateCustomizationResponse = /* @__PURE__ */ z.intersection(
|
|
|
434
454
|
])
|
|
435
455
|
);
|
|
436
456
|
var DeleteCustomizationRequest = /* @__PURE__ */ z.object({
|
|
437
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
457
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
438
458
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
439
459
|
"Must be a valid GUID"
|
|
440
460
|
)
|
|
441
461
|
});
|
|
442
462
|
var DeleteCustomizationResponse = /* @__PURE__ */ z.object({});
|
|
443
463
|
var QueryCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
444
|
-
query: z.object({
|
|
445
|
-
filter: z.object({
|
|
446
|
-
_id: z.object({
|
|
447
|
-
$eq: z.string(),
|
|
448
|
-
$exists: z.boolean(),
|
|
449
|
-
$gt: z.string(),
|
|
450
|
-
$gte: z.string(),
|
|
451
|
-
$hasAll: z.array(z.string()),
|
|
452
|
-
$hasSome: z.array(z.string()),
|
|
453
|
-
$in: z.array(z.string()),
|
|
454
|
-
$lt: z.string(),
|
|
455
|
-
$lte: z.string(),
|
|
456
|
-
$ne: z.string(),
|
|
457
|
-
$nin: z.array(z.string()),
|
|
458
|
-
$startsWith: z.string()
|
|
464
|
+
query: /* @__PURE__ */ z.object({
|
|
465
|
+
filter: /* @__PURE__ */ z.object({
|
|
466
|
+
_id: /* @__PURE__ */ z.object({
|
|
467
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
468
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
469
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
470
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
471
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
472
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
473
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
474
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
475
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
476
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
477
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
478
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
459
479
|
}).partial().strict().optional(),
|
|
460
|
-
_createdDate: z.object({
|
|
461
|
-
$eq: z.string(),
|
|
462
|
-
$exists: z.boolean(),
|
|
463
|
-
$gt: z.string(),
|
|
464
|
-
$gte: z.string(),
|
|
465
|
-
$hasAll: z.array(z.string()),
|
|
466
|
-
$hasSome: z.array(z.string()),
|
|
467
|
-
$in: z.array(z.string()),
|
|
468
|
-
$lt: z.string(),
|
|
469
|
-
$lte: z.string(),
|
|
470
|
-
$ne: z.string(),
|
|
471
|
-
$nin: z.array(z.string()),
|
|
472
|
-
$startsWith: z.string()
|
|
480
|
+
_createdDate: /* @__PURE__ */ z.object({
|
|
481
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
482
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
483
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
484
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
485
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
486
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
487
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
488
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
489
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
490
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
491
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
492
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
473
493
|
}).partial().strict().optional(),
|
|
474
|
-
_updatedDate: z.object({
|
|
475
|
-
$eq: z.string(),
|
|
476
|
-
$exists: z.boolean(),
|
|
477
|
-
$gt: z.string(),
|
|
478
|
-
$gte: z.string(),
|
|
479
|
-
$hasAll: z.array(z.string()),
|
|
480
|
-
$hasSome: z.array(z.string()),
|
|
481
|
-
$in: z.array(z.string()),
|
|
482
|
-
$lt: z.string(),
|
|
483
|
-
$lte: z.string(),
|
|
484
|
-
$ne: z.string(),
|
|
485
|
-
$nin: z.array(z.string()),
|
|
486
|
-
$startsWith: z.string()
|
|
494
|
+
_updatedDate: /* @__PURE__ */ z.object({
|
|
495
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
496
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
497
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
498
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
499
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
500
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
501
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
502
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
503
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
504
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
505
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
506
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
487
507
|
}).partial().strict().optional(),
|
|
488
|
-
name: z.object({
|
|
489
|
-
$eq: z.string(),
|
|
490
|
-
$exists: z.boolean(),
|
|
491
|
-
$gt: z.string(),
|
|
492
|
-
$gte: z.string(),
|
|
493
|
-
$hasAll: z.array(z.string()),
|
|
494
|
-
$hasSome: z.array(z.string()),
|
|
495
|
-
$in: z.array(z.string()),
|
|
496
|
-
$lt: z.string(),
|
|
497
|
-
$lte: z.string(),
|
|
498
|
-
$ne: z.string(),
|
|
499
|
-
$nin: z.array(z.string()),
|
|
500
|
-
$startsWith: z.string()
|
|
508
|
+
name: /* @__PURE__ */ z.object({
|
|
509
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
510
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
511
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
512
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
513
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
514
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
515
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
516
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
517
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
518
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
519
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
520
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
501
521
|
}).partial().strict().optional(),
|
|
502
|
-
customizationType: z.object({
|
|
503
|
-
$eq: z.string(),
|
|
504
|
-
$exists: z.boolean(),
|
|
505
|
-
$gt: z.string(),
|
|
506
|
-
$gte: z.string(),
|
|
507
|
-
$hasAll: z.array(z.string()),
|
|
508
|
-
$hasSome: z.array(z.string()),
|
|
509
|
-
$in: z.array(z.string()),
|
|
510
|
-
$lt: z.string(),
|
|
511
|
-
$lte: z.string(),
|
|
512
|
-
$ne: z.string(),
|
|
513
|
-
$nin: z.array(z.string()),
|
|
514
|
-
$startsWith: z.string()
|
|
522
|
+
customizationType: /* @__PURE__ */ z.object({
|
|
523
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
524
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
525
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
526
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
527
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
528
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
529
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
530
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
531
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
532
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
533
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
534
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
515
535
|
}).partial().strict().optional(),
|
|
516
|
-
customizationRenderType: z.object({
|
|
517
|
-
$eq: z.string(),
|
|
518
|
-
$exists: z.boolean(),
|
|
519
|
-
$gt: z.string(),
|
|
520
|
-
$gte: z.string(),
|
|
521
|
-
$hasAll: z.array(z.string()),
|
|
522
|
-
$hasSome: z.array(z.string()),
|
|
523
|
-
$in: z.array(z.string()),
|
|
524
|
-
$lt: z.string(),
|
|
525
|
-
$lte: z.string(),
|
|
526
|
-
$ne: z.string(),
|
|
527
|
-
$nin: z.array(z.string()),
|
|
528
|
-
$startsWith: z.string()
|
|
536
|
+
customizationRenderType: /* @__PURE__ */ z.object({
|
|
537
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
538
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
539
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
540
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
541
|
+
$hasAll: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
542
|
+
$hasSome: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
543
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
544
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
545
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
546
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
547
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
548
|
+
$startsWith: /* @__PURE__ */ z.string()
|
|
529
549
|
}).partial().strict().optional(),
|
|
530
|
-
$and: z.array(z.any()).optional(),
|
|
531
|
-
$or: z.array(z.any()).optional(),
|
|
532
|
-
$not: z.any().optional()
|
|
550
|
+
$and: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
|
|
551
|
+
$or: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
|
|
552
|
+
$not: /* @__PURE__ */ z.any().optional()
|
|
533
553
|
}).strict().optional(),
|
|
534
|
-
sort: z.array(
|
|
535
|
-
z.object({
|
|
536
|
-
fieldName: z.enum(["_id", "_createdDate", "_updatedDate", "name"]).optional(),
|
|
537
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
554
|
+
sort: /* @__PURE__ */ z.array(
|
|
555
|
+
/* @__PURE__ */ z.object({
|
|
556
|
+
fieldName: /* @__PURE__ */ z.enum(["_id", "_createdDate", "_updatedDate", "name"]).optional(),
|
|
557
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
538
558
|
})
|
|
539
559
|
).optional()
|
|
540
|
-
}).catchall(z.any()).describe("Query options."),
|
|
541
|
-
options: z.object({
|
|
542
|
-
fields: z.array(
|
|
560
|
+
}).catchall(/* @__PURE__ */ z.any()).describe("Query options."),
|
|
561
|
+
options: /* @__PURE__ */ z.object({
|
|
562
|
+
fields: /* @__PURE__ */ z.array(
|
|
563
|
+
/* @__PURE__ */ z.enum([
|
|
564
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
565
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
566
|
+
])
|
|
567
|
+
).max(100).optional()
|
|
543
568
|
}).optional()
|
|
544
569
|
});
|
|
545
570
|
var QueryCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
546
|
-
customizations: z.array(
|
|
547
|
-
z.intersection(
|
|
548
|
-
z.object({
|
|
549
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
550
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
571
|
+
customizations: /* @__PURE__ */ z.array(
|
|
572
|
+
/* @__PURE__ */ z.intersection(
|
|
573
|
+
/* @__PURE__ */ z.object({
|
|
574
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
575
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
551
576
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
552
577
|
).optional().nullable(),
|
|
553
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
554
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
555
|
-
key: z.string().describe(
|
|
578
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
579
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
580
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
556
581
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
557
582
|
).min(1).max(50).optional().nullable(),
|
|
558
|
-
name: z.string().describe(
|
|
583
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
559
584
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
560
585
|
).min(1).max(50).optional(),
|
|
561
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
562
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
586
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
587
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
563
588
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
564
589
|
).optional(),
|
|
565
|
-
assignedProductsCount: z.number().int().describe(
|
|
590
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
566
591
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
567
592
|
).optional().nullable()
|
|
568
593
|
}),
|
|
569
|
-
z.xor([
|
|
570
|
-
z.object({
|
|
571
|
-
freeTextInput: z.never().optional(),
|
|
572
|
-
choicesSettings: z.never().optional()
|
|
594
|
+
/* @__PURE__ */ z.xor([
|
|
595
|
+
/* @__PURE__ */ z.object({
|
|
596
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
597
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
573
598
|
}),
|
|
574
|
-
z.object({
|
|
575
|
-
choicesSettings: z.never().optional(),
|
|
576
|
-
freeTextInput: z.object({
|
|
577
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
578
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
579
|
-
defaultAddedPrice: z.string().describe(
|
|
599
|
+
/* @__PURE__ */ z.object({
|
|
600
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
601
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
602
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
603
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
604
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
580
605
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
581
606
|
).optional().nullable(),
|
|
582
|
-
title: z.string().describe(
|
|
607
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
583
608
|
"Title to display to customer for their free-text input."
|
|
584
609
|
).min(1).max(100).optional(),
|
|
585
|
-
key: z.string().describe(
|
|
610
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
586
611
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
587
612
|
).min(1).max(150).optional().nullable()
|
|
588
613
|
}).describe(
|
|
589
614
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
590
615
|
)
|
|
591
616
|
}),
|
|
592
|
-
z.object({
|
|
593
|
-
freeTextInput: z.never().optional(),
|
|
594
|
-
choicesSettings: z.object({
|
|
595
|
-
choices: z.array(
|
|
596
|
-
z.intersection(
|
|
597
|
-
z.object({
|
|
598
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
617
|
+
/* @__PURE__ */ z.object({
|
|
618
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
619
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
620
|
+
choices: /* @__PURE__ */ z.array(
|
|
621
|
+
/* @__PURE__ */ z.intersection(
|
|
622
|
+
/* @__PURE__ */ z.object({
|
|
623
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
599
624
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
600
625
|
"Must be a valid GUID"
|
|
601
626
|
).optional(),
|
|
602
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
627
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
603
628
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
604
629
|
).optional(),
|
|
605
|
-
key: z.string().describe(
|
|
630
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
606
631
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
607
632
|
).min(1).max(50).optional().nullable(),
|
|
608
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
609
|
-
defaultAddedPrice: z.string().describe(
|
|
633
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
634
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
610
635
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
611
636
|
).optional().nullable(),
|
|
612
|
-
displayImage: z.string().describe(
|
|
637
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
613
638
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
614
639
|
).optional(),
|
|
615
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
640
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
616
641
|
}),
|
|
617
|
-
z.xor([
|
|
618
|
-
z.object({
|
|
619
|
-
|
|
620
|
-
|
|
642
|
+
/* @__PURE__ */ z.xor([
|
|
643
|
+
/* @__PURE__ */ z.object({
|
|
644
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
645
|
+
}),
|
|
646
|
+
/* @__PURE__ */ z.object({
|
|
647
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
621
648
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
622
649
|
).min(3).max(20)
|
|
623
650
|
})
|
|
@@ -631,103 +658,105 @@ var QueryCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
|
631
658
|
])
|
|
632
659
|
)
|
|
633
660
|
).min(1).max(200).optional(),
|
|
634
|
-
pagingMetadata: z.object({
|
|
635
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
636
|
-
cursors: z.object({
|
|
637
|
-
next: z.string().describe(
|
|
661
|
+
pagingMetadata: /* @__PURE__ */ z.object({
|
|
662
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
663
|
+
cursors: /* @__PURE__ */ z.object({
|
|
664
|
+
next: /* @__PURE__ */ z.string().describe(
|
|
638
665
|
"Cursor string pointing to the next page in the list of results."
|
|
639
666
|
).max(16e3).optional().nullable(),
|
|
640
|
-
prev: z.string().describe(
|
|
667
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
641
668
|
"Cursor pointing to the previous page in the list of results."
|
|
642
669
|
).max(16e3).optional().nullable()
|
|
643
670
|
}).describe(
|
|
644
671
|
"Cursor strings that point to the next page, previous page, or both."
|
|
645
672
|
).optional(),
|
|
646
|
-
hasNext: z.boolean().describe(
|
|
673
|
+
hasNext: /* @__PURE__ */ z.boolean().describe(
|
|
647
674
|
"Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
|
|
648
675
|
).optional().nullable()
|
|
649
676
|
}).describe("Details on the paged set of results returned.").optional()
|
|
650
677
|
});
|
|
651
678
|
var CountCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
652
|
-
options: z.object({
|
|
653
|
-
filter: z.record(z.string(), z.any()).describe("Filter object. See API Query Language for more information.").optional().nullable()
|
|
679
|
+
options: /* @__PURE__ */ z.object({
|
|
680
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Filter object. See API Query Language for more information.").optional().nullable()
|
|
654
681
|
}).optional()
|
|
655
682
|
});
|
|
656
683
|
var CountCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
657
|
-
count: z.number().int().describe("Number of customizations that match the filter.").optional()
|
|
684
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of customizations that match the filter.").optional()
|
|
658
685
|
});
|
|
659
686
|
var BulkCreateCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
660
|
-
customizations: z.array(
|
|
661
|
-
z.intersection(
|
|
662
|
-
z.object({
|
|
663
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
664
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
687
|
+
customizations: /* @__PURE__ */ z.array(
|
|
688
|
+
/* @__PURE__ */ z.intersection(
|
|
689
|
+
/* @__PURE__ */ z.object({
|
|
690
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
691
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
665
692
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
666
693
|
).optional().nullable(),
|
|
667
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
668
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
669
|
-
key: z.string().describe(
|
|
694
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
695
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
696
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
670
697
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
671
698
|
).min(1).max(50).optional().nullable(),
|
|
672
|
-
name: z.string().describe(
|
|
699
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
673
700
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
674
701
|
).min(1).max(50).optional(),
|
|
675
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
676
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
677
|
-
assignedProductsCount: z.number().int().describe(
|
|
702
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
703
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
704
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
678
705
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
679
706
|
).optional().nullable()
|
|
680
707
|
}),
|
|
681
|
-
z.xor([
|
|
682
|
-
z.object({
|
|
683
|
-
freeTextInput: z.never().optional(),
|
|
684
|
-
choicesSettings: z.never().optional()
|
|
708
|
+
/* @__PURE__ */ z.xor([
|
|
709
|
+
/* @__PURE__ */ z.object({
|
|
710
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
711
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
685
712
|
}),
|
|
686
|
-
z.object({
|
|
687
|
-
choicesSettings: z.never().optional(),
|
|
688
|
-
freeTextInput: z.object({
|
|
689
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
690
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
691
|
-
defaultAddedPrice: z.string().describe(
|
|
713
|
+
/* @__PURE__ */ z.object({
|
|
714
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
715
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
716
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
717
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
718
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
692
719
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
693
720
|
).optional().nullable(),
|
|
694
|
-
title: z.string().describe(
|
|
721
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
695
722
|
"Title to display to customer for their free-text input."
|
|
696
723
|
).min(1).max(100).optional(),
|
|
697
|
-
key: z.string().describe(
|
|
724
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
698
725
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
699
726
|
).min(1).max(150).optional().nullable()
|
|
700
727
|
}).describe(
|
|
701
728
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
702
729
|
)
|
|
703
730
|
}),
|
|
704
|
-
z.object({
|
|
705
|
-
freeTextInput: z.never().optional(),
|
|
706
|
-
choicesSettings: z.object({
|
|
707
|
-
choices: z.array(
|
|
708
|
-
z.intersection(
|
|
709
|
-
z.object({
|
|
710
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
731
|
+
/* @__PURE__ */ z.object({
|
|
732
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
733
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
734
|
+
choices: /* @__PURE__ */ z.array(
|
|
735
|
+
/* @__PURE__ */ z.intersection(
|
|
736
|
+
/* @__PURE__ */ z.object({
|
|
737
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
711
738
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
712
739
|
"Must be a valid GUID"
|
|
713
740
|
).optional(),
|
|
714
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
715
|
-
key: z.string().describe(
|
|
741
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
742
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
716
743
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
717
744
|
).min(1).max(50).optional().nullable(),
|
|
718
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
719
|
-
defaultAddedPrice: z.string().describe(
|
|
745
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
746
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
720
747
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
721
748
|
).optional().nullable(),
|
|
722
|
-
displayImage: z.string().describe(
|
|
749
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
723
750
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
724
751
|
).optional(),
|
|
725
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
752
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
726
753
|
}),
|
|
727
|
-
z.xor([
|
|
728
|
-
z.object({
|
|
729
|
-
|
|
730
|
-
|
|
754
|
+
/* @__PURE__ */ z.xor([
|
|
755
|
+
/* @__PURE__ */ z.object({
|
|
756
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
757
|
+
}),
|
|
758
|
+
/* @__PURE__ */ z.object({
|
|
759
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
731
760
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
732
761
|
).min(3).max(20)
|
|
733
762
|
})
|
|
@@ -741,105 +770,107 @@ var BulkCreateCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
|
741
770
|
])
|
|
742
771
|
)
|
|
743
772
|
).min(1).max(100),
|
|
744
|
-
options: z.object({
|
|
745
|
-
returnEntity: z.boolean().describe(
|
|
773
|
+
options: /* @__PURE__ */ z.object({
|
|
774
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
746
775
|
"Whether to return the full customization entities in the response.\n\nDefault: `false`"
|
|
747
776
|
).optional()
|
|
748
777
|
}).optional()
|
|
749
778
|
});
|
|
750
779
|
var BulkCreateCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
751
|
-
results: z.array(
|
|
752
|
-
z.object({
|
|
753
|
-
itemMetadata: z.object({
|
|
754
|
-
_id: z.string().describe(
|
|
780
|
+
results: /* @__PURE__ */ z.array(
|
|
781
|
+
/* @__PURE__ */ z.object({
|
|
782
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
783
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
755
784
|
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
756
785
|
).min(1).max(36).optional().nullable(),
|
|
757
|
-
originalIndex: z.number().int().describe(
|
|
786
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
758
787
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
759
788
|
).optional(),
|
|
760
|
-
success: z.boolean().describe(
|
|
789
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
761
790
|
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
762
791
|
).optional(),
|
|
763
|
-
error: z.object({
|
|
764
|
-
code: z.string().describe("Error code.").optional(),
|
|
765
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
766
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
792
|
+
error: /* @__PURE__ */ z.object({
|
|
793
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
794
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
795
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
767
796
|
}).describe("Details about the error in case of failure.").optional()
|
|
768
797
|
}).describe("Bulk action metadata for customization.").optional(),
|
|
769
|
-
customization: z.intersection(
|
|
770
|
-
z.object({
|
|
771
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
772
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
798
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
799
|
+
/* @__PURE__ */ z.object({
|
|
800
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
801
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
773
802
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
774
803
|
).optional().nullable(),
|
|
775
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
776
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
777
|
-
key: z.string().describe(
|
|
804
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
805
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
806
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
778
807
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
779
808
|
).min(1).max(50).optional().nullable(),
|
|
780
|
-
name: z.string().describe(
|
|
809
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
781
810
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
782
811
|
).min(1).max(50).optional(),
|
|
783
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
784
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
812
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
813
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
785
814
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
786
815
|
).optional(),
|
|
787
|
-
assignedProductsCount: z.number().int().describe(
|
|
816
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
788
817
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
789
818
|
).optional().nullable()
|
|
790
819
|
}),
|
|
791
|
-
z.xor([
|
|
792
|
-
z.object({
|
|
793
|
-
freeTextInput: z.never().optional(),
|
|
794
|
-
choicesSettings: z.never().optional()
|
|
820
|
+
/* @__PURE__ */ z.xor([
|
|
821
|
+
/* @__PURE__ */ z.object({
|
|
822
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
823
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
795
824
|
}),
|
|
796
|
-
z.object({
|
|
797
|
-
choicesSettings: z.never().optional(),
|
|
798
|
-
freeTextInput: z.object({
|
|
799
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
800
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
801
|
-
defaultAddedPrice: z.string().describe(
|
|
825
|
+
/* @__PURE__ */ z.object({
|
|
826
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
827
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
828
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
829
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
830
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
802
831
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
803
832
|
).optional().nullable(),
|
|
804
|
-
title: z.string().describe(
|
|
833
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
805
834
|
"Title to display to customer for their free-text input."
|
|
806
835
|
).min(1).max(100).optional(),
|
|
807
|
-
key: z.string().describe(
|
|
836
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
808
837
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
809
838
|
).min(1).max(150).optional().nullable()
|
|
810
839
|
}).describe(
|
|
811
840
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
812
841
|
)
|
|
813
842
|
}),
|
|
814
|
-
z.object({
|
|
815
|
-
freeTextInput: z.never().optional(),
|
|
816
|
-
choicesSettings: z.object({
|
|
817
|
-
choices: z.array(
|
|
818
|
-
z.intersection(
|
|
819
|
-
z.object({
|
|
820
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
843
|
+
/* @__PURE__ */ z.object({
|
|
844
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
845
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
846
|
+
choices: /* @__PURE__ */ z.array(
|
|
847
|
+
/* @__PURE__ */ z.intersection(
|
|
848
|
+
/* @__PURE__ */ z.object({
|
|
849
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
821
850
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
822
851
|
"Must be a valid GUID"
|
|
823
852
|
).optional(),
|
|
824
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
853
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
825
854
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
826
855
|
).optional(),
|
|
827
|
-
key: z.string().describe(
|
|
856
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
828
857
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
829
858
|
).min(1).max(50).optional().nullable(),
|
|
830
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
831
|
-
defaultAddedPrice: z.string().describe(
|
|
859
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
860
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
832
861
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
833
862
|
).optional().nullable(),
|
|
834
|
-
displayImage: z.string().describe(
|
|
863
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
835
864
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
836
865
|
).optional(),
|
|
837
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
866
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
838
867
|
}),
|
|
839
|
-
z.xor([
|
|
840
|
-
z.object({
|
|
841
|
-
|
|
842
|
-
|
|
868
|
+
/* @__PURE__ */ z.xor([
|
|
869
|
+
/* @__PURE__ */ z.object({
|
|
870
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
871
|
+
}),
|
|
872
|
+
/* @__PURE__ */ z.object({
|
|
873
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
843
874
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
844
875
|
).min(3).max(20)
|
|
845
876
|
})
|
|
@@ -856,128 +887,137 @@ var BulkCreateCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
|
856
887
|
).optional()
|
|
857
888
|
})
|
|
858
889
|
).min(1).max(100).optional(),
|
|
859
|
-
bulkActionMetadata: z.object({
|
|
860
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
861
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
862
|
-
undetailedFailures: z.number().int().describe(
|
|
890
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
891
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
892
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
893
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
863
894
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
864
895
|
).optional()
|
|
865
896
|
}).describe("Bulk action metadata.").optional()
|
|
866
897
|
});
|
|
867
898
|
var AddCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
868
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
899
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
869
900
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
870
901
|
"Must be a valid GUID"
|
|
871
902
|
),
|
|
872
|
-
choices: z.array(
|
|
873
|
-
z.intersection(
|
|
874
|
-
z.object({
|
|
875
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
903
|
+
choices: /* @__PURE__ */ z.array(
|
|
904
|
+
/* @__PURE__ */ z.intersection(
|
|
905
|
+
/* @__PURE__ */ z.object({
|
|
906
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
876
907
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
877
908
|
"Must be a valid GUID"
|
|
878
909
|
).optional(),
|
|
879
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
880
|
-
key: z.string().describe(
|
|
910
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
911
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
881
912
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
882
913
|
).min(1).max(50).optional().nullable(),
|
|
883
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
884
|
-
defaultAddedPrice: z.string().describe(
|
|
914
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
915
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
885
916
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
886
917
|
).optional().nullable(),
|
|
887
|
-
displayImage: z.string().describe(
|
|
918
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
888
919
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
889
920
|
).optional(),
|
|
890
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
921
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
891
922
|
}),
|
|
892
|
-
z.xor([
|
|
893
|
-
z.object({
|
|
894
|
-
|
|
895
|
-
|
|
923
|
+
/* @__PURE__ */ z.xor([
|
|
924
|
+
/* @__PURE__ */ z.object({
|
|
925
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
926
|
+
}),
|
|
927
|
+
/* @__PURE__ */ z.object({
|
|
928
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
896
929
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
897
930
|
).min(3).max(20)
|
|
898
931
|
})
|
|
899
932
|
])
|
|
900
933
|
)
|
|
901
934
|
).min(1).max(1e3),
|
|
902
|
-
options: z.object({
|
|
903
|
-
fields: z.array(
|
|
935
|
+
options: /* @__PURE__ */ z.object({
|
|
936
|
+
fields: /* @__PURE__ */ z.array(
|
|
937
|
+
/* @__PURE__ */ z.enum([
|
|
938
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
939
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
940
|
+
])
|
|
941
|
+
).max(100).optional()
|
|
904
942
|
}).optional()
|
|
905
943
|
});
|
|
906
944
|
var AddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
907
|
-
customization: z.intersection(
|
|
908
|
-
z.object({
|
|
909
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
910
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
945
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
946
|
+
/* @__PURE__ */ z.object({
|
|
947
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
948
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
911
949
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
912
950
|
).optional().nullable(),
|
|
913
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
914
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
915
|
-
key: z.string().describe(
|
|
951
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
952
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
953
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
916
954
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
917
955
|
).min(1).max(50).optional().nullable(),
|
|
918
|
-
name: z.string().describe(
|
|
956
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
919
957
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
920
958
|
).min(1).max(50).optional(),
|
|
921
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
922
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
959
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
960
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
923
961
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
924
962
|
).optional(),
|
|
925
|
-
assignedProductsCount: z.number().int().describe(
|
|
963
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
926
964
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
927
965
|
).optional().nullable()
|
|
928
966
|
}),
|
|
929
|
-
z.xor([
|
|
930
|
-
z.object({
|
|
931
|
-
freeTextInput: z.never().optional(),
|
|
932
|
-
choicesSettings: z.never().optional()
|
|
967
|
+
/* @__PURE__ */ z.xor([
|
|
968
|
+
/* @__PURE__ */ z.object({
|
|
969
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
970
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
933
971
|
}),
|
|
934
|
-
z.object({
|
|
935
|
-
choicesSettings: z.never().optional(),
|
|
936
|
-
freeTextInput: z.object({
|
|
937
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
938
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
939
|
-
defaultAddedPrice: z.string().describe(
|
|
972
|
+
/* @__PURE__ */ z.object({
|
|
973
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
974
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
975
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
976
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
977
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
940
978
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
941
979
|
).optional().nullable(),
|
|
942
|
-
title: z.string().describe(
|
|
980
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
943
981
|
"Title to display to customer for their free-text input."
|
|
944
982
|
).min(1).max(100).optional(),
|
|
945
|
-
key: z.string().describe(
|
|
983
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
946
984
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
947
985
|
).min(1).max(150).optional().nullable()
|
|
948
986
|
}).describe(
|
|
949
987
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
950
988
|
)
|
|
951
989
|
}),
|
|
952
|
-
z.object({
|
|
953
|
-
freeTextInput: z.never().optional(),
|
|
954
|
-
choicesSettings: z.object({
|
|
955
|
-
choices: z.array(
|
|
956
|
-
z.intersection(
|
|
957
|
-
z.object({
|
|
958
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
990
|
+
/* @__PURE__ */ z.object({
|
|
991
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
992
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
993
|
+
choices: /* @__PURE__ */ z.array(
|
|
994
|
+
/* @__PURE__ */ z.intersection(
|
|
995
|
+
/* @__PURE__ */ z.object({
|
|
996
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
959
997
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
960
998
|
"Must be a valid GUID"
|
|
961
999
|
).optional(),
|
|
962
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1000
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
963
1001
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
964
1002
|
).optional(),
|
|
965
|
-
key: z.string().describe(
|
|
1003
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
966
1004
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
967
1005
|
).min(1).max(50).optional().nullable(),
|
|
968
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
969
|
-
defaultAddedPrice: z.string().describe(
|
|
1006
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1007
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
970
1008
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
971
1009
|
).optional().nullable(),
|
|
972
|
-
displayImage: z.string().describe(
|
|
1010
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
973
1011
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
974
1012
|
).optional(),
|
|
975
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1013
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
976
1014
|
}),
|
|
977
|
-
z.xor([
|
|
978
|
-
z.object({
|
|
979
|
-
|
|
980
|
-
|
|
1015
|
+
/* @__PURE__ */ z.xor([
|
|
1016
|
+
/* @__PURE__ */ z.object({
|
|
1017
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1018
|
+
}),
|
|
1019
|
+
/* @__PURE__ */ z.object({
|
|
1020
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
981
1021
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
982
1022
|
).min(3).max(20)
|
|
983
1023
|
})
|
|
@@ -992,119 +1032,128 @@ var AddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
992
1032
|
).describe("Updated customization.").optional()
|
|
993
1033
|
});
|
|
994
1034
|
var SetCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
995
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
1035
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
996
1036
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
997
1037
|
"Must be a valid GUID"
|
|
998
1038
|
),
|
|
999
|
-
choices: z.array(
|
|
1000
|
-
z.intersection(
|
|
1001
|
-
z.object({
|
|
1002
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1039
|
+
choices: /* @__PURE__ */ z.array(
|
|
1040
|
+
/* @__PURE__ */ z.intersection(
|
|
1041
|
+
/* @__PURE__ */ z.object({
|
|
1042
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1003
1043
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1004
1044
|
"Must be a valid GUID"
|
|
1005
1045
|
).optional(),
|
|
1006
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1007
|
-
key: z.string().describe(
|
|
1046
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1047
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1008
1048
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1009
1049
|
).min(1).max(50).optional().nullable(),
|
|
1010
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1011
|
-
defaultAddedPrice: z.string().describe(
|
|
1050
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1051
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1012
1052
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1013
1053
|
).optional().nullable(),
|
|
1014
|
-
displayImage: z.string().describe(
|
|
1054
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1015
1055
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1016
1056
|
).optional(),
|
|
1017
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1057
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1018
1058
|
}),
|
|
1019
|
-
z.xor([
|
|
1020
|
-
z.object({
|
|
1021
|
-
|
|
1022
|
-
|
|
1059
|
+
/* @__PURE__ */ z.xor([
|
|
1060
|
+
/* @__PURE__ */ z.object({
|
|
1061
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1062
|
+
}),
|
|
1063
|
+
/* @__PURE__ */ z.object({
|
|
1064
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1023
1065
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1024
1066
|
).min(3).max(20)
|
|
1025
1067
|
})
|
|
1026
1068
|
])
|
|
1027
1069
|
)
|
|
1028
1070
|
).min(1).max(1e3),
|
|
1029
|
-
options: z.object({
|
|
1030
|
-
fields: z.array(
|
|
1071
|
+
options: /* @__PURE__ */ z.object({
|
|
1072
|
+
fields: /* @__PURE__ */ z.array(
|
|
1073
|
+
/* @__PURE__ */ z.enum([
|
|
1074
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1075
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1076
|
+
])
|
|
1077
|
+
).max(100).optional()
|
|
1031
1078
|
}).optional()
|
|
1032
1079
|
});
|
|
1033
1080
|
var SetCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
1034
|
-
customization: z.intersection(
|
|
1035
|
-
z.object({
|
|
1036
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1037
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1081
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1082
|
+
/* @__PURE__ */ z.object({
|
|
1083
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1084
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1038
1085
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1039
1086
|
).optional().nullable(),
|
|
1040
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1041
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1042
|
-
key: z.string().describe(
|
|
1087
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1088
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1089
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1043
1090
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1044
1091
|
).min(1).max(50).optional().nullable(),
|
|
1045
|
-
name: z.string().describe(
|
|
1092
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1046
1093
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1047
1094
|
).min(1).max(50).optional(),
|
|
1048
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1049
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1095
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1096
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1050
1097
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1051
1098
|
).optional(),
|
|
1052
|
-
assignedProductsCount: z.number().int().describe(
|
|
1099
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1053
1100
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1054
1101
|
).optional().nullable()
|
|
1055
1102
|
}),
|
|
1056
|
-
z.xor([
|
|
1057
|
-
z.object({
|
|
1058
|
-
freeTextInput: z.never().optional(),
|
|
1059
|
-
choicesSettings: z.never().optional()
|
|
1103
|
+
/* @__PURE__ */ z.xor([
|
|
1104
|
+
/* @__PURE__ */ z.object({
|
|
1105
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1106
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1060
1107
|
}),
|
|
1061
|
-
z.object({
|
|
1062
|
-
choicesSettings: z.never().optional(),
|
|
1063
|
-
freeTextInput: z.object({
|
|
1064
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1065
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1066
|
-
defaultAddedPrice: z.string().describe(
|
|
1108
|
+
/* @__PURE__ */ z.object({
|
|
1109
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1110
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1111
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1112
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1113
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1067
1114
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1068
1115
|
).optional().nullable(),
|
|
1069
|
-
title: z.string().describe(
|
|
1116
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1070
1117
|
"Title to display to customer for their free-text input."
|
|
1071
1118
|
).min(1).max(100).optional(),
|
|
1072
|
-
key: z.string().describe(
|
|
1119
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1073
1120
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1074
1121
|
).min(1).max(150).optional().nullable()
|
|
1075
1122
|
}).describe(
|
|
1076
1123
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1077
1124
|
)
|
|
1078
1125
|
}),
|
|
1079
|
-
z.object({
|
|
1080
|
-
freeTextInput: z.never().optional(),
|
|
1081
|
-
choicesSettings: z.object({
|
|
1082
|
-
choices: z.array(
|
|
1083
|
-
z.intersection(
|
|
1084
|
-
z.object({
|
|
1085
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1126
|
+
/* @__PURE__ */ z.object({
|
|
1127
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1128
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1129
|
+
choices: /* @__PURE__ */ z.array(
|
|
1130
|
+
/* @__PURE__ */ z.intersection(
|
|
1131
|
+
/* @__PURE__ */ z.object({
|
|
1132
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1086
1133
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1087
1134
|
"Must be a valid GUID"
|
|
1088
1135
|
).optional(),
|
|
1089
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1136
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1090
1137
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1091
1138
|
).optional(),
|
|
1092
|
-
key: z.string().describe(
|
|
1139
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1093
1140
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1094
1141
|
).min(1).max(50).optional().nullable(),
|
|
1095
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1096
|
-
defaultAddedPrice: z.string().describe(
|
|
1142
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1143
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1097
1144
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1098
1145
|
).optional().nullable(),
|
|
1099
|
-
displayImage: z.string().describe(
|
|
1146
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1100
1147
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1101
1148
|
).optional(),
|
|
1102
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1149
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1103
1150
|
}),
|
|
1104
|
-
z.xor([
|
|
1105
|
-
z.object({
|
|
1106
|
-
|
|
1107
|
-
|
|
1151
|
+
/* @__PURE__ */ z.xor([
|
|
1152
|
+
/* @__PURE__ */ z.object({
|
|
1153
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1154
|
+
}),
|
|
1155
|
+
/* @__PURE__ */ z.object({
|
|
1156
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1108
1157
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1109
1158
|
).min(3).max(20)
|
|
1110
1159
|
})
|
|
@@ -1119,91 +1168,98 @@ var SetCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
1119
1168
|
).describe("Updated customization.").optional()
|
|
1120
1169
|
});
|
|
1121
1170
|
var RemoveCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
1122
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
1171
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
1123
1172
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1124
1173
|
"Must be a valid GUID"
|
|
1125
1174
|
),
|
|
1126
|
-
choiceIds: z.array(z.string()).min(1).max(100),
|
|
1127
|
-
options: z.object({
|
|
1128
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Customization revision.").optional(),
|
|
1129
|
-
fields: z.array(
|
|
1175
|
+
choiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(100),
|
|
1176
|
+
options: /* @__PURE__ */ z.object({
|
|
1177
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe("Customization revision.").optional(),
|
|
1178
|
+
fields: /* @__PURE__ */ z.array(
|
|
1179
|
+
/* @__PURE__ */ z.enum([
|
|
1180
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1181
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1182
|
+
])
|
|
1183
|
+
).max(100).optional()
|
|
1130
1184
|
}).optional()
|
|
1131
1185
|
});
|
|
1132
1186
|
var RemoveCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
1133
|
-
customization: z.intersection(
|
|
1134
|
-
z.object({
|
|
1135
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1136
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1187
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1188
|
+
/* @__PURE__ */ z.object({
|
|
1189
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1190
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1137
1191
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1138
1192
|
).optional().nullable(),
|
|
1139
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1140
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1141
|
-
key: z.string().describe(
|
|
1193
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1194
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1195
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1142
1196
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1143
1197
|
).min(1).max(50).optional().nullable(),
|
|
1144
|
-
name: z.string().describe(
|
|
1198
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1145
1199
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1146
1200
|
).min(1).max(50).optional(),
|
|
1147
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1148
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1201
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1202
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1149
1203
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1150
1204
|
).optional(),
|
|
1151
|
-
assignedProductsCount: z.number().int().describe(
|
|
1205
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1152
1206
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1153
1207
|
).optional().nullable()
|
|
1154
1208
|
}),
|
|
1155
|
-
z.xor([
|
|
1156
|
-
z.object({
|
|
1157
|
-
freeTextInput: z.never().optional(),
|
|
1158
|
-
choicesSettings: z.never().optional()
|
|
1209
|
+
/* @__PURE__ */ z.xor([
|
|
1210
|
+
/* @__PURE__ */ z.object({
|
|
1211
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1212
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1159
1213
|
}),
|
|
1160
|
-
z.object({
|
|
1161
|
-
choicesSettings: z.never().optional(),
|
|
1162
|
-
freeTextInput: z.object({
|
|
1163
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1164
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1165
|
-
defaultAddedPrice: z.string().describe(
|
|
1214
|
+
/* @__PURE__ */ z.object({
|
|
1215
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1216
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1217
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1218
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1219
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1166
1220
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1167
1221
|
).optional().nullable(),
|
|
1168
|
-
title: z.string().describe(
|
|
1222
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1169
1223
|
"Title to display to customer for their free-text input."
|
|
1170
1224
|
).min(1).max(100).optional(),
|
|
1171
|
-
key: z.string().describe(
|
|
1225
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1172
1226
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1173
1227
|
).min(1).max(150).optional().nullable()
|
|
1174
1228
|
}).describe(
|
|
1175
1229
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1176
1230
|
)
|
|
1177
1231
|
}),
|
|
1178
|
-
z.object({
|
|
1179
|
-
freeTextInput: z.never().optional(),
|
|
1180
|
-
choicesSettings: z.object({
|
|
1181
|
-
choices: z.array(
|
|
1182
|
-
z.intersection(
|
|
1183
|
-
z.object({
|
|
1184
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1232
|
+
/* @__PURE__ */ z.object({
|
|
1233
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1234
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1235
|
+
choices: /* @__PURE__ */ z.array(
|
|
1236
|
+
/* @__PURE__ */ z.intersection(
|
|
1237
|
+
/* @__PURE__ */ z.object({
|
|
1238
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1185
1239
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1186
1240
|
"Must be a valid GUID"
|
|
1187
1241
|
).optional(),
|
|
1188
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1242
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1189
1243
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1190
1244
|
).optional(),
|
|
1191
|
-
key: z.string().describe(
|
|
1245
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1192
1246
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1193
1247
|
).min(1).max(50).optional().nullable(),
|
|
1194
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1195
|
-
defaultAddedPrice: z.string().describe(
|
|
1248
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1249
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1196
1250
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1197
1251
|
).optional().nullable(),
|
|
1198
|
-
displayImage: z.string().describe(
|
|
1252
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1199
1253
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1200
1254
|
).optional(),
|
|
1201
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1255
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1202
1256
|
}),
|
|
1203
|
-
z.xor([
|
|
1204
|
-
z.object({
|
|
1205
|
-
|
|
1206
|
-
|
|
1257
|
+
/* @__PURE__ */ z.xor([
|
|
1258
|
+
/* @__PURE__ */ z.object({
|
|
1259
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1260
|
+
}),
|
|
1261
|
+
/* @__PURE__ */ z.object({
|
|
1262
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1207
1263
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1208
1264
|
).min(3).max(20)
|
|
1209
1265
|
})
|
|
@@ -1218,39 +1274,41 @@ var RemoveCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
1218
1274
|
).describe("Updated customization.").optional()
|
|
1219
1275
|
});
|
|
1220
1276
|
var UpdateCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
1221
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
1277
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
1222
1278
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1223
1279
|
"Must be a valid GUID"
|
|
1224
1280
|
),
|
|
1225
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1281
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1226
1282
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization."
|
|
1227
1283
|
),
|
|
1228
|
-
options: z.object({
|
|
1229
|
-
choices: z.array(
|
|
1230
|
-
z.object({
|
|
1231
|
-
choice: z.intersection(
|
|
1232
|
-
z.object({
|
|
1233
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1284
|
+
options: /* @__PURE__ */ z.object({
|
|
1285
|
+
choices: /* @__PURE__ */ z.array(
|
|
1286
|
+
/* @__PURE__ */ z.object({
|
|
1287
|
+
choice: /* @__PURE__ */ z.intersection(
|
|
1288
|
+
/* @__PURE__ */ z.object({
|
|
1289
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1234
1290
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1235
1291
|
"Must be a valid GUID"
|
|
1236
1292
|
).optional(),
|
|
1237
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1238
|
-
key: z.string().describe(
|
|
1293
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1294
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1239
1295
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1240
1296
|
).min(1).max(50).optional().nullable(),
|
|
1241
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1242
|
-
defaultAddedPrice: z.string().describe(
|
|
1297
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1298
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1243
1299
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1244
1300
|
).optional().nullable(),
|
|
1245
|
-
displayImage: z.string().describe(
|
|
1301
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1246
1302
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1247
1303
|
).optional(),
|
|
1248
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1304
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1249
1305
|
}),
|
|
1250
|
-
z.xor([
|
|
1251
|
-
z.object({
|
|
1252
|
-
|
|
1253
|
-
|
|
1306
|
+
/* @__PURE__ */ z.xor([
|
|
1307
|
+
/* @__PURE__ */ z.object({
|
|
1308
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1309
|
+
}),
|
|
1310
|
+
/* @__PURE__ */ z.object({
|
|
1311
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1254
1312
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1255
1313
|
).min(3).max(20)
|
|
1256
1314
|
})
|
|
@@ -1258,84 +1316,91 @@ var UpdateCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
|
1258
1316
|
).describe("Choice to update.")
|
|
1259
1317
|
})
|
|
1260
1318
|
).min(1).max(100),
|
|
1261
|
-
fields: z.array(
|
|
1319
|
+
fields: /* @__PURE__ */ z.array(
|
|
1320
|
+
/* @__PURE__ */ z.enum([
|
|
1321
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1322
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1323
|
+
])
|
|
1324
|
+
).max(100).optional()
|
|
1262
1325
|
})
|
|
1263
1326
|
});
|
|
1264
1327
|
var UpdateCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
1265
|
-
customization: z.intersection(
|
|
1266
|
-
z.object({
|
|
1267
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1268
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1328
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1329
|
+
/* @__PURE__ */ z.object({
|
|
1330
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1331
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1269
1332
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1270
1333
|
).optional().nullable(),
|
|
1271
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1272
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1273
|
-
key: z.string().describe(
|
|
1334
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1335
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1336
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1274
1337
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1275
1338
|
).min(1).max(50).optional().nullable(),
|
|
1276
|
-
name: z.string().describe(
|
|
1339
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1277
1340
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1278
1341
|
).min(1).max(50).optional(),
|
|
1279
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1280
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1342
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1343
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1281
1344
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1282
1345
|
).optional(),
|
|
1283
|
-
assignedProductsCount: z.number().int().describe(
|
|
1346
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1284
1347
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1285
1348
|
).optional().nullable()
|
|
1286
1349
|
}),
|
|
1287
|
-
z.xor([
|
|
1288
|
-
z.object({
|
|
1289
|
-
freeTextInput: z.never().optional(),
|
|
1290
|
-
choicesSettings: z.never().optional()
|
|
1350
|
+
/* @__PURE__ */ z.xor([
|
|
1351
|
+
/* @__PURE__ */ z.object({
|
|
1352
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1353
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1291
1354
|
}),
|
|
1292
|
-
z.object({
|
|
1293
|
-
choicesSettings: z.never().optional(),
|
|
1294
|
-
freeTextInput: z.object({
|
|
1295
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1296
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1297
|
-
defaultAddedPrice: z.string().describe(
|
|
1355
|
+
/* @__PURE__ */ z.object({
|
|
1356
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1357
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1358
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1359
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1360
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1298
1361
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1299
1362
|
).optional().nullable(),
|
|
1300
|
-
title: z.string().describe(
|
|
1363
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1301
1364
|
"Title to display to customer for their free-text input."
|
|
1302
1365
|
).min(1).max(100).optional(),
|
|
1303
|
-
key: z.string().describe(
|
|
1366
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1304
1367
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1305
1368
|
).min(1).max(150).optional().nullable()
|
|
1306
1369
|
}).describe(
|
|
1307
1370
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1308
1371
|
)
|
|
1309
1372
|
}),
|
|
1310
|
-
z.object({
|
|
1311
|
-
freeTextInput: z.never().optional(),
|
|
1312
|
-
choicesSettings: z.object({
|
|
1313
|
-
choices: z.array(
|
|
1314
|
-
z.intersection(
|
|
1315
|
-
z.object({
|
|
1316
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1373
|
+
/* @__PURE__ */ z.object({
|
|
1374
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1375
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1376
|
+
choices: /* @__PURE__ */ z.array(
|
|
1377
|
+
/* @__PURE__ */ z.intersection(
|
|
1378
|
+
/* @__PURE__ */ z.object({
|
|
1379
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1317
1380
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1318
1381
|
"Must be a valid GUID"
|
|
1319
1382
|
).optional(),
|
|
1320
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1383
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1321
1384
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1322
1385
|
).optional(),
|
|
1323
|
-
key: z.string().describe(
|
|
1386
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1324
1387
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1325
1388
|
).min(1).max(50).optional().nullable(),
|
|
1326
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1327
|
-
defaultAddedPrice: z.string().describe(
|
|
1389
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1390
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1328
1391
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1329
1392
|
).optional().nullable(),
|
|
1330
|
-
displayImage: z.string().describe(
|
|
1393
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1331
1394
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1332
1395
|
).optional(),
|
|
1333
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1396
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1334
1397
|
}),
|
|
1335
|
-
z.xor([
|
|
1336
|
-
z.object({
|
|
1337
|
-
|
|
1338
|
-
|
|
1398
|
+
/* @__PURE__ */ z.xor([
|
|
1399
|
+
/* @__PURE__ */ z.object({
|
|
1400
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1401
|
+
}),
|
|
1402
|
+
/* @__PURE__ */ z.object({
|
|
1403
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1339
1404
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1340
1405
|
).min(3).max(20)
|
|
1341
1406
|
})
|
|
@@ -1350,93 +1415,100 @@ var UpdateCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
1350
1415
|
).describe("Updated customization.").optional()
|
|
1351
1416
|
});
|
|
1352
1417
|
var ReorderCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
1353
|
-
customizationId: z.string().describe("Customization ID.").regex(
|
|
1418
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").regex(
|
|
1354
1419
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1355
1420
|
"Must be a valid GUID"
|
|
1356
1421
|
),
|
|
1357
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1422
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1358
1423
|
"Revision number, which increments by 1 each time the customization is updated. To prevent conflicting changes, the current revision must be passed when updating the customization."
|
|
1359
1424
|
),
|
|
1360
|
-
options: z.object({
|
|
1361
|
-
choiceIds: z.array(z.string()).min(1).max(1e3),
|
|
1362
|
-
fields: z.array(
|
|
1425
|
+
options: /* @__PURE__ */ z.object({
|
|
1426
|
+
choiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).min(1).max(1e3),
|
|
1427
|
+
fields: /* @__PURE__ */ z.array(
|
|
1428
|
+
/* @__PURE__ */ z.enum([
|
|
1429
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1430
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1431
|
+
])
|
|
1432
|
+
).max(100).optional()
|
|
1363
1433
|
})
|
|
1364
1434
|
});
|
|
1365
1435
|
var ReorderCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
1366
|
-
customization: z.intersection(
|
|
1367
|
-
z.object({
|
|
1368
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1369
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1436
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1437
|
+
/* @__PURE__ */ z.object({
|
|
1438
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1439
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1370
1440
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1371
1441
|
).optional().nullable(),
|
|
1372
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1373
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1374
|
-
key: z.string().describe(
|
|
1442
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1443
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1444
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1375
1445
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1376
1446
|
).min(1).max(50).optional().nullable(),
|
|
1377
|
-
name: z.string().describe(
|
|
1447
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1378
1448
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1379
1449
|
).min(1).max(50).optional(),
|
|
1380
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1381
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1450
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1451
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1382
1452
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1383
1453
|
).optional(),
|
|
1384
|
-
assignedProductsCount: z.number().int().describe(
|
|
1454
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1385
1455
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1386
1456
|
).optional().nullable()
|
|
1387
1457
|
}),
|
|
1388
|
-
z.xor([
|
|
1389
|
-
z.object({
|
|
1390
|
-
freeTextInput: z.never().optional(),
|
|
1391
|
-
choicesSettings: z.never().optional()
|
|
1458
|
+
/* @__PURE__ */ z.xor([
|
|
1459
|
+
/* @__PURE__ */ z.object({
|
|
1460
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1461
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1392
1462
|
}),
|
|
1393
|
-
z.object({
|
|
1394
|
-
choicesSettings: z.never().optional(),
|
|
1395
|
-
freeTextInput: z.object({
|
|
1396
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1397
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1398
|
-
defaultAddedPrice: z.string().describe(
|
|
1463
|
+
/* @__PURE__ */ z.object({
|
|
1464
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1465
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1466
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1467
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1468
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1399
1469
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1400
1470
|
).optional().nullable(),
|
|
1401
|
-
title: z.string().describe(
|
|
1471
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1402
1472
|
"Title to display to customer for their free-text input."
|
|
1403
1473
|
).min(1).max(100).optional(),
|
|
1404
|
-
key: z.string().describe(
|
|
1474
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1405
1475
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1406
1476
|
).min(1).max(150).optional().nullable()
|
|
1407
1477
|
}).describe(
|
|
1408
1478
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1409
1479
|
)
|
|
1410
1480
|
}),
|
|
1411
|
-
z.object({
|
|
1412
|
-
freeTextInput: z.never().optional(),
|
|
1413
|
-
choicesSettings: z.object({
|
|
1414
|
-
choices: z.array(
|
|
1415
|
-
z.intersection(
|
|
1416
|
-
z.object({
|
|
1417
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1481
|
+
/* @__PURE__ */ z.object({
|
|
1482
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1483
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1484
|
+
choices: /* @__PURE__ */ z.array(
|
|
1485
|
+
/* @__PURE__ */ z.intersection(
|
|
1486
|
+
/* @__PURE__ */ z.object({
|
|
1487
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1418
1488
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1419
1489
|
"Must be a valid GUID"
|
|
1420
1490
|
).optional(),
|
|
1421
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1491
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1422
1492
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1423
1493
|
).optional(),
|
|
1424
|
-
key: z.string().describe(
|
|
1494
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1425
1495
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1426
1496
|
).min(1).max(50).optional().nullable(),
|
|
1427
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1428
|
-
defaultAddedPrice: z.string().describe(
|
|
1497
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1498
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1429
1499
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1430
1500
|
).optional().nullable(),
|
|
1431
|
-
displayImage: z.string().describe(
|
|
1501
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1432
1502
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1433
1503
|
).optional(),
|
|
1434
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1504
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1435
1505
|
}),
|
|
1436
|
-
z.xor([
|
|
1437
|
-
z.object({
|
|
1438
|
-
|
|
1439
|
-
|
|
1506
|
+
/* @__PURE__ */ z.xor([
|
|
1507
|
+
/* @__PURE__ */ z.object({
|
|
1508
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1509
|
+
}),
|
|
1510
|
+
/* @__PURE__ */ z.object({
|
|
1511
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1440
1512
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1441
1513
|
).min(3).max(20)
|
|
1442
1514
|
})
|
|
@@ -1453,33 +1525,35 @@ var ReorderCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
1453
1525
|
).optional()
|
|
1454
1526
|
});
|
|
1455
1527
|
var BulkAddCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
1456
|
-
customizationsChoices: z.array(
|
|
1457
|
-
z.object({
|
|
1458
|
-
customizationId: z.string().describe("Customization ID.").min(1).max(36),
|
|
1459
|
-
choices: z.array(
|
|
1460
|
-
z.intersection(
|
|
1461
|
-
z.object({
|
|
1462
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1528
|
+
customizationsChoices: /* @__PURE__ */ z.array(
|
|
1529
|
+
/* @__PURE__ */ z.object({
|
|
1530
|
+
customizationId: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36),
|
|
1531
|
+
choices: /* @__PURE__ */ z.array(
|
|
1532
|
+
/* @__PURE__ */ z.intersection(
|
|
1533
|
+
/* @__PURE__ */ z.object({
|
|
1534
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1463
1535
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1464
1536
|
"Must be a valid GUID"
|
|
1465
1537
|
).optional(),
|
|
1466
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1467
|
-
key: z.string().describe(
|
|
1538
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1539
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1468
1540
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1469
1541
|
).min(1).max(50).optional().nullable(),
|
|
1470
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1471
|
-
defaultAddedPrice: z.string().describe(
|
|
1542
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1543
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1472
1544
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1473
1545
|
).optional().nullable(),
|
|
1474
|
-
displayImage: z.string().describe(
|
|
1546
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1475
1547
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1476
1548
|
).optional(),
|
|
1477
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1549
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1478
1550
|
}),
|
|
1479
|
-
z.xor([
|
|
1480
|
-
z.object({
|
|
1481
|
-
|
|
1482
|
-
|
|
1551
|
+
/* @__PURE__ */ z.xor([
|
|
1552
|
+
/* @__PURE__ */ z.object({
|
|
1553
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1554
|
+
}),
|
|
1555
|
+
/* @__PURE__ */ z.object({
|
|
1556
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1483
1557
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1484
1558
|
).min(3).max(20)
|
|
1485
1559
|
})
|
|
@@ -1488,106 +1562,113 @@ var BulkAddCustomizationChoicesRequest = /* @__PURE__ */ z.object({
|
|
|
1488
1562
|
).min(1).max(100)
|
|
1489
1563
|
})
|
|
1490
1564
|
).min(1).max(1e3),
|
|
1491
|
-
options: z.object({
|
|
1492
|
-
returnEntity: z.boolean().describe(
|
|
1565
|
+
options: /* @__PURE__ */ z.object({
|
|
1566
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
1493
1567
|
"Whether to return the full customization entities in the response.\n\nDefault: `false`"
|
|
1494
1568
|
).optional(),
|
|
1495
|
-
fields: z.array(
|
|
1569
|
+
fields: /* @__PURE__ */ z.array(
|
|
1570
|
+
/* @__PURE__ */ z.enum([
|
|
1571
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1572
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1573
|
+
])
|
|
1574
|
+
).max(100).optional()
|
|
1496
1575
|
}).optional()
|
|
1497
1576
|
});
|
|
1498
1577
|
var BulkAddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
1499
|
-
results: z.array(
|
|
1500
|
-
z.object({
|
|
1501
|
-
itemMetadata: z.object({
|
|
1502
|
-
_id: z.string().describe(
|
|
1578
|
+
results: /* @__PURE__ */ z.array(
|
|
1579
|
+
/* @__PURE__ */ z.object({
|
|
1580
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
1581
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
1503
1582
|
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1504
1583
|
).min(1).max(36).optional().nullable(),
|
|
1505
|
-
originalIndex: z.number().int().describe(
|
|
1584
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1506
1585
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1507
1586
|
).optional(),
|
|
1508
|
-
success: z.boolean().describe(
|
|
1587
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
1509
1588
|
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1510
1589
|
).optional(),
|
|
1511
|
-
error: z.object({
|
|
1512
|
-
code: z.string().describe("Error code.").optional(),
|
|
1513
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
1514
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1590
|
+
error: /* @__PURE__ */ z.object({
|
|
1591
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
1592
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
1593
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
1515
1594
|
}).describe("Details about the error in case of failure.").optional()
|
|
1516
1595
|
}).describe("Bulk action metadata for customization.").optional(),
|
|
1517
|
-
customization: z.intersection(
|
|
1518
|
-
z.object({
|
|
1519
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1520
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1596
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1597
|
+
/* @__PURE__ */ z.object({
|
|
1598
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1599
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1521
1600
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1522
1601
|
).optional().nullable(),
|
|
1523
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1524
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1525
|
-
key: z.string().describe(
|
|
1602
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1603
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1604
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1526
1605
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1527
1606
|
).min(1).max(50).optional().nullable(),
|
|
1528
|
-
name: z.string().describe(
|
|
1607
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1529
1608
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1530
1609
|
).min(1).max(50).optional(),
|
|
1531
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1532
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1610
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1611
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1533
1612
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1534
1613
|
).optional(),
|
|
1535
|
-
assignedProductsCount: z.number().int().describe(
|
|
1614
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1536
1615
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1537
1616
|
).optional().nullable()
|
|
1538
1617
|
}),
|
|
1539
|
-
z.xor([
|
|
1540
|
-
z.object({
|
|
1541
|
-
freeTextInput: z.never().optional(),
|
|
1542
|
-
choicesSettings: z.never().optional()
|
|
1618
|
+
/* @__PURE__ */ z.xor([
|
|
1619
|
+
/* @__PURE__ */ z.object({
|
|
1620
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1621
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1543
1622
|
}),
|
|
1544
|
-
z.object({
|
|
1545
|
-
choicesSettings: z.never().optional(),
|
|
1546
|
-
freeTextInput: z.object({
|
|
1547
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1548
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1549
|
-
defaultAddedPrice: z.string().describe(
|
|
1623
|
+
/* @__PURE__ */ z.object({
|
|
1624
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1625
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1626
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1627
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1628
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1550
1629
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1551
1630
|
).optional().nullable(),
|
|
1552
|
-
title: z.string().describe(
|
|
1631
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1553
1632
|
"Title to display to customer for their free-text input."
|
|
1554
1633
|
).min(1).max(100).optional(),
|
|
1555
|
-
key: z.string().describe(
|
|
1634
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1556
1635
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1557
1636
|
).min(1).max(150).optional().nullable()
|
|
1558
1637
|
}).describe(
|
|
1559
1638
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1560
1639
|
)
|
|
1561
1640
|
}),
|
|
1562
|
-
z.object({
|
|
1563
|
-
freeTextInput: z.never().optional(),
|
|
1564
|
-
choicesSettings: z.object({
|
|
1565
|
-
choices: z.array(
|
|
1566
|
-
z.intersection(
|
|
1567
|
-
z.object({
|
|
1568
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1641
|
+
/* @__PURE__ */ z.object({
|
|
1642
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1643
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1644
|
+
choices: /* @__PURE__ */ z.array(
|
|
1645
|
+
/* @__PURE__ */ z.intersection(
|
|
1646
|
+
/* @__PURE__ */ z.object({
|
|
1647
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1569
1648
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1570
1649
|
"Must be a valid GUID"
|
|
1571
1650
|
).optional(),
|
|
1572
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1651
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1573
1652
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1574
1653
|
).optional(),
|
|
1575
|
-
key: z.string().describe(
|
|
1654
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1576
1655
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1577
1656
|
).min(1).max(50).optional().nullable(),
|
|
1578
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1579
|
-
defaultAddedPrice: z.string().describe(
|
|
1657
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1658
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1580
1659
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1581
1660
|
).optional().nullable(),
|
|
1582
|
-
displayImage: z.string().describe(
|
|
1661
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1583
1662
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1584
1663
|
).optional(),
|
|
1585
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1664
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1586
1665
|
}),
|
|
1587
|
-
z.xor([
|
|
1588
|
-
z.object({
|
|
1589
|
-
|
|
1590
|
-
|
|
1666
|
+
/* @__PURE__ */ z.xor([
|
|
1667
|
+
/* @__PURE__ */ z.object({
|
|
1668
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1669
|
+
}),
|
|
1670
|
+
/* @__PURE__ */ z.object({
|
|
1671
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1591
1672
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1592
1673
|
).min(3).max(20)
|
|
1593
1674
|
})
|
|
@@ -1604,87 +1685,89 @@ var BulkAddCustomizationChoicesResponse = /* @__PURE__ */ z.object({
|
|
|
1604
1685
|
).optional()
|
|
1605
1686
|
})
|
|
1606
1687
|
).min(1).max(1e3).optional(),
|
|
1607
|
-
bulkActionMetadata: z.object({
|
|
1608
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1609
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1610
|
-
undetailedFailures: z.number().int().describe(
|
|
1688
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
1689
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1690
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1691
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
1611
1692
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1612
1693
|
).optional()
|
|
1613
1694
|
}).describe("Bulk action metadata.").optional()
|
|
1614
1695
|
});
|
|
1615
1696
|
var BulkUpdateCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
1616
|
-
customizations: z.array(
|
|
1617
|
-
z.object({
|
|
1618
|
-
customization: z.intersection(
|
|
1619
|
-
z.object({
|
|
1620
|
-
_id: z.string().describe("Customization ID.").min(1).max(36),
|
|
1621
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1697
|
+
customizations: /* @__PURE__ */ z.array(
|
|
1698
|
+
/* @__PURE__ */ z.object({
|
|
1699
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1700
|
+
/* @__PURE__ */ z.object({
|
|
1701
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36),
|
|
1702
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1622
1703
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1623
1704
|
),
|
|
1624
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1625
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1626
|
-
key: z.string().describe(
|
|
1705
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1706
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1707
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1627
1708
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1628
1709
|
).min(1).max(50).optional().nullable(),
|
|
1629
|
-
name: z.string().describe(
|
|
1710
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1630
1711
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1631
1712
|
).min(1).max(50),
|
|
1632
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
1633
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
1634
|
-
assignedProductsCount: z.number().int().describe(
|
|
1713
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).optional(),
|
|
1714
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).optional(),
|
|
1715
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1635
1716
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1636
1717
|
).optional().nullable()
|
|
1637
1718
|
}),
|
|
1638
|
-
z.xor([
|
|
1639
|
-
z.object({
|
|
1640
|
-
freeTextInput: z.never().optional(),
|
|
1641
|
-
choicesSettings: z.never().optional()
|
|
1719
|
+
/* @__PURE__ */ z.xor([
|
|
1720
|
+
/* @__PURE__ */ z.object({
|
|
1721
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1722
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1642
1723
|
}),
|
|
1643
|
-
z.object({
|
|
1644
|
-
choicesSettings: z.never().optional(),
|
|
1645
|
-
freeTextInput: z.object({
|
|
1646
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1647
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1648
|
-
defaultAddedPrice: z.string().describe(
|
|
1724
|
+
/* @__PURE__ */ z.object({
|
|
1725
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1726
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1727
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1728
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1729
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1649
1730
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1650
1731
|
).optional().nullable(),
|
|
1651
|
-
title: z.string().describe(
|
|
1732
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1652
1733
|
"Title to display to customer for their free-text input."
|
|
1653
1734
|
).min(1).max(100).optional(),
|
|
1654
|
-
key: z.string().describe(
|
|
1735
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1655
1736
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1656
1737
|
).min(1).max(150).optional().nullable()
|
|
1657
1738
|
}).describe(
|
|
1658
1739
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1659
1740
|
)
|
|
1660
1741
|
}),
|
|
1661
|
-
z.object({
|
|
1662
|
-
freeTextInput: z.never().optional(),
|
|
1663
|
-
choicesSettings: z.object({
|
|
1664
|
-
choices: z.array(
|
|
1665
|
-
z.intersection(
|
|
1666
|
-
z.object({
|
|
1667
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1742
|
+
/* @__PURE__ */ z.object({
|
|
1743
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1744
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1745
|
+
choices: /* @__PURE__ */ z.array(
|
|
1746
|
+
/* @__PURE__ */ z.intersection(
|
|
1747
|
+
/* @__PURE__ */ z.object({
|
|
1748
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1668
1749
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1669
1750
|
"Must be a valid GUID"
|
|
1670
1751
|
).optional(),
|
|
1671
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1672
|
-
key: z.string().describe(
|
|
1752
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).optional(),
|
|
1753
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1673
1754
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1674
1755
|
).min(1).max(50).optional().nullable(),
|
|
1675
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1676
|
-
defaultAddedPrice: z.string().describe(
|
|
1756
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1757
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1677
1758
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1678
1759
|
).optional().nullable(),
|
|
1679
|
-
displayImage: z.string().describe(
|
|
1760
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1680
1761
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1681
1762
|
).optional(),
|
|
1682
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1763
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1683
1764
|
}),
|
|
1684
|
-
z.xor([
|
|
1685
|
-
z.object({
|
|
1686
|
-
|
|
1687
|
-
|
|
1765
|
+
/* @__PURE__ */ z.xor([
|
|
1766
|
+
/* @__PURE__ */ z.object({
|
|
1767
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1768
|
+
}),
|
|
1769
|
+
/* @__PURE__ */ z.object({
|
|
1770
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1688
1771
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1689
1772
|
).min(3).max(20)
|
|
1690
1773
|
})
|
|
@@ -1699,106 +1782,113 @@ var BulkUpdateCustomizationsRequest = /* @__PURE__ */ z.object({
|
|
|
1699
1782
|
).describe("Customization to update.").optional()
|
|
1700
1783
|
})
|
|
1701
1784
|
).min(1).max(100),
|
|
1702
|
-
options: z.object({
|
|
1703
|
-
returnEntity: z.boolean().describe(
|
|
1785
|
+
options: /* @__PURE__ */ z.object({
|
|
1786
|
+
returnEntity: /* @__PURE__ */ z.boolean().describe(
|
|
1704
1787
|
"Whether to return the full customization entities in the response.\n\nDefault: `false`"
|
|
1705
1788
|
).optional(),
|
|
1706
|
-
fields: z.array(
|
|
1789
|
+
fields: /* @__PURE__ */ z.array(
|
|
1790
|
+
/* @__PURE__ */ z.enum([
|
|
1791
|
+
"ASSIGNED_PRODUCTS_COUNT",
|
|
1792
|
+
"CHOICE_DISPLAY_IMAGE"
|
|
1793
|
+
])
|
|
1794
|
+
).max(100).optional()
|
|
1707
1795
|
}).optional()
|
|
1708
1796
|
});
|
|
1709
1797
|
var BulkUpdateCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
1710
|
-
results: z.array(
|
|
1711
|
-
z.object({
|
|
1712
|
-
itemMetadata: z.object({
|
|
1713
|
-
_id: z.string().describe(
|
|
1798
|
+
results: /* @__PURE__ */ z.array(
|
|
1799
|
+
/* @__PURE__ */ z.object({
|
|
1800
|
+
itemMetadata: /* @__PURE__ */ z.object({
|
|
1801
|
+
_id: /* @__PURE__ */ z.string().describe(
|
|
1714
1802
|
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1715
1803
|
).min(1).max(36).optional().nullable(),
|
|
1716
|
-
originalIndex: z.number().int().describe(
|
|
1804
|
+
originalIndex: /* @__PURE__ */ z.number().int().describe(
|
|
1717
1805
|
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1718
1806
|
).optional(),
|
|
1719
|
-
success: z.boolean().describe(
|
|
1807
|
+
success: /* @__PURE__ */ z.boolean().describe(
|
|
1720
1808
|
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1721
1809
|
).optional(),
|
|
1722
|
-
error: z.object({
|
|
1723
|
-
code: z.string().describe("Error code.").optional(),
|
|
1724
|
-
description: z.string().describe("Description of the error.").optional(),
|
|
1725
|
-
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1810
|
+
error: /* @__PURE__ */ z.object({
|
|
1811
|
+
code: /* @__PURE__ */ z.string().describe("Error code.").optional(),
|
|
1812
|
+
description: /* @__PURE__ */ z.string().describe("Description of the error.").optional(),
|
|
1813
|
+
data: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe("Data related to the error.").optional().nullable()
|
|
1726
1814
|
}).describe("Details about the error in case of failure.").optional()
|
|
1727
1815
|
}).describe("Bulk action metadata for customization.").optional(),
|
|
1728
|
-
customization: z.intersection(
|
|
1729
|
-
z.object({
|
|
1730
|
-
_id: z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1731
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1816
|
+
customization: /* @__PURE__ */ z.intersection(
|
|
1817
|
+
/* @__PURE__ */ z.object({
|
|
1818
|
+
_id: /* @__PURE__ */ z.string().describe("Customization ID.").min(1).max(36).optional().nullable(),
|
|
1819
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1732
1820
|
"Revision number, which increments by 1 each time the customization is updated.\nTo prevent conflicting changes,\nthe current revision must be passed when updating the customization.\n\nIgnored when creating a customization."
|
|
1733
1821
|
).optional().nullable(),
|
|
1734
|
-
_createdDate: z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1735
|
-
_updatedDate: z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1736
|
-
key: z.string().describe(
|
|
1822
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the customization was created.").optional().nullable(),
|
|
1823
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the customization was updated.").optional().nullable(),
|
|
1824
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1737
1825
|
"A read-only identifier generated from the customization name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1738
1826
|
).min(1).max(50).optional().nullable(),
|
|
1739
|
-
name: z.string().describe(
|
|
1827
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1740
1828
|
'Customization name for options (for example, `"color"`, `"size"`) and modifiers (for example, `"greeting card"`).'
|
|
1741
1829
|
).min(1).max(50).optional(),
|
|
1742
|
-
customizationType: z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1743
|
-
customizationRenderType: z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1830
|
+
customizationType: /* @__PURE__ */ z.enum(["PRODUCT_OPTION", "MODIFIER"]).describe("Customization type.").optional(),
|
|
1831
|
+
customizationRenderType: /* @__PURE__ */ z.enum(["FREE_TEXT", "TEXT_CHOICES", "SWATCH_CHOICES"]).describe(
|
|
1744
1832
|
"Customization render type.\n\nDefines how the customization will be displayed in the storefront."
|
|
1745
1833
|
).optional(),
|
|
1746
|
-
assignedProductsCount: z.number().int().describe(
|
|
1834
|
+
assignedProductsCount: /* @__PURE__ */ z.number().int().describe(
|
|
1747
1835
|
'Number of products this customization is assigned to.\n> **Note:** Returned only when you pass `"ASSIGNED_PRODUCTS_COUNT"` to the `fields` array in Customizations API requests.'
|
|
1748
1836
|
).optional().nullable()
|
|
1749
1837
|
}),
|
|
1750
|
-
z.xor([
|
|
1751
|
-
z.object({
|
|
1752
|
-
freeTextInput: z.never().optional(),
|
|
1753
|
-
choicesSettings: z.never().optional()
|
|
1838
|
+
/* @__PURE__ */ z.xor([
|
|
1839
|
+
/* @__PURE__ */ z.object({
|
|
1840
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1841
|
+
choicesSettings: /* @__PURE__ */ z.never().optional()
|
|
1754
1842
|
}),
|
|
1755
|
-
z.object({
|
|
1756
|
-
choicesSettings: z.never().optional(),
|
|
1757
|
-
freeTextInput: z.object({
|
|
1758
|
-
minCharCount: z.number().int().describe("Minimum text character length.").optional(),
|
|
1759
|
-
maxCharCount: z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1760
|
-
defaultAddedPrice: z.string().describe(
|
|
1843
|
+
/* @__PURE__ */ z.object({
|
|
1844
|
+
choicesSettings: /* @__PURE__ */ z.never().optional(),
|
|
1845
|
+
freeTextInput: /* @__PURE__ */ z.object({
|
|
1846
|
+
minCharCount: /* @__PURE__ */ z.number().int().describe("Minimum text character length.").optional(),
|
|
1847
|
+
maxCharCount: /* @__PURE__ */ z.number().int().describe("Maximum text character length.").max(500).optional(),
|
|
1848
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1761
1849
|
"Default amount added to a product's price when this choice is assigned to a modifier."
|
|
1762
1850
|
).optional().nullable(),
|
|
1763
|
-
title: z.string().describe(
|
|
1851
|
+
title: /* @__PURE__ */ z.string().describe(
|
|
1764
1852
|
"Title to display to customer for their free-text input."
|
|
1765
1853
|
).min(1).max(100).optional(),
|
|
1766
|
-
key: z.string().describe(
|
|
1854
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1767
1855
|
"A read-only identifier generated from the title.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1768
1856
|
).min(1).max(150).optional().nullable()
|
|
1769
1857
|
}).describe(
|
|
1770
1858
|
"Free text input settings.\n\n> **Note:** To be passed along with `customizationRenderType: FREE_TEXT`."
|
|
1771
1859
|
)
|
|
1772
1860
|
}),
|
|
1773
|
-
z.object({
|
|
1774
|
-
freeTextInput: z.never().optional(),
|
|
1775
|
-
choicesSettings: z.object({
|
|
1776
|
-
choices: z.array(
|
|
1777
|
-
z.intersection(
|
|
1778
|
-
z.object({
|
|
1779
|
-
_id: z.string().describe("Choice ID.").regex(
|
|
1861
|
+
/* @__PURE__ */ z.object({
|
|
1862
|
+
freeTextInput: /* @__PURE__ */ z.never().optional(),
|
|
1863
|
+
choicesSettings: /* @__PURE__ */ z.object({
|
|
1864
|
+
choices: /* @__PURE__ */ z.array(
|
|
1865
|
+
/* @__PURE__ */ z.intersection(
|
|
1866
|
+
/* @__PURE__ */ z.object({
|
|
1867
|
+
_id: /* @__PURE__ */ z.string().describe("Choice ID.").regex(
|
|
1780
1868
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1781
1869
|
"Must be a valid GUID"
|
|
1782
1870
|
).optional(),
|
|
1783
|
-
choiceType: z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1871
|
+
choiceType: /* @__PURE__ */ z.enum(["CHOICE_TEXT", "ONE_COLOR"]).describe(
|
|
1784
1872
|
"Choice type.\n\n> **Notes:**\n> + For `customizationRenderType: SWATCH_CHOICES`, the supported `choiceType` value is: `ONE_COLOR`.\n> + For a `customizationRenderType` of `TEXT_CHOICES`, the supported `choiceType` value is: `CHOICE_TEXT`."
|
|
1785
1873
|
).optional(),
|
|
1786
|
-
key: z.string().describe(
|
|
1874
|
+
key: /* @__PURE__ */ z.string().describe(
|
|
1787
1875
|
"A read-only identifier generated from the choice name.\n\nUse `key` in the `catalogReference.options` object when [integrating Catalog V3 with eCommerce APIs](https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/e-commerce-integration)."
|
|
1788
1876
|
).min(1).max(50).optional().nullable(),
|
|
1789
|
-
name: z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1790
|
-
defaultAddedPrice: z.string().describe(
|
|
1877
|
+
name: /* @__PURE__ */ z.string().describe("Choice name.").min(1).max(50).optional(),
|
|
1878
|
+
defaultAddedPrice: /* @__PURE__ */ z.string().describe(
|
|
1791
1879
|
"Default amount added to a product's price when this customization is assigned to a modifier."
|
|
1792
1880
|
).optional().nullable(),
|
|
1793
|
-
displayImage: z.string().describe(
|
|
1881
|
+
displayImage: /* @__PURE__ */ z.string().describe(
|
|
1794
1882
|
"Optional image displayed alongside a `ONE_COLOR` choice in the storefront.\nOnly valid for `ONE_COLOR` choices; not populated for other choice types."
|
|
1795
1883
|
).optional(),
|
|
1796
|
-
primaryChoiceIds: z.array(z.string()).max(4).optional()
|
|
1884
|
+
primaryChoiceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(4).optional()
|
|
1797
1885
|
}),
|
|
1798
|
-
z.xor([
|
|
1799
|
-
z.object({
|
|
1800
|
-
|
|
1801
|
-
|
|
1886
|
+
/* @__PURE__ */ z.xor([
|
|
1887
|
+
/* @__PURE__ */ z.object({
|
|
1888
|
+
colorCode: /* @__PURE__ */ z.never().optional()
|
|
1889
|
+
}),
|
|
1890
|
+
/* @__PURE__ */ z.object({
|
|
1891
|
+
colorCode: /* @__PURE__ */ z.string().describe(
|
|
1802
1892
|
"Color code in HEX format, [as described by MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/hex-color)."
|
|
1803
1893
|
).min(3).max(20)
|
|
1804
1894
|
})
|
|
@@ -1815,10 +1905,10 @@ var BulkUpdateCustomizationsResponse = /* @__PURE__ */ z.object({
|
|
|
1815
1905
|
).optional()
|
|
1816
1906
|
})
|
|
1817
1907
|
).min(1).max(100).optional(),
|
|
1818
|
-
bulkActionMetadata: z.object({
|
|
1819
|
-
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1820
|
-
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1821
|
-
undetailedFailures: z.number().int().describe(
|
|
1908
|
+
bulkActionMetadata: /* @__PURE__ */ z.object({
|
|
1909
|
+
totalSuccesses: /* @__PURE__ */ z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1910
|
+
totalFailures: /* @__PURE__ */ z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1911
|
+
undetailedFailures: /* @__PURE__ */ z.number().int().describe(
|
|
1822
1912
|
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1823
1913
|
).optional()
|
|
1824
1914
|
}).describe("Bulk action metadata.").optional()
|