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