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