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