@mercurjs/b2c-core 1.4.3 → 1.4.5
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/.medusa/server/src/admin/index.js +3 -1
- package/.medusa/server/src/admin/index.mjs +3 -1
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +355 -59
- package/.medusa/server/src/api/admin/configuration/validators.d.ts +3 -2
- package/.medusa/server/src/api/admin/notifications/route.js +8 -2
- package/.medusa/server/src/api/admin/order-sets/validators.d.ts +5 -3
- package/.medusa/server/src/api/admin/products/validators.d.ts +909 -500
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -16
- package/.medusa/server/src/api/admin/stock-locations/route.js +2 -2
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +34 -0
- package/.medusa/server/src/api/store/order-set/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/returns/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/seller/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/shipping-options/validators.d.ts +24 -26
- package/.medusa/server/src/api/store/wishlist/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/attributes/validators.d.ts +9 -7
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +76 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +89 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +55 -4
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +59 -3
- package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +4 -0
- package/.medusa/server/src/api/vendor/campaigns/helpers.js +34 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +18 -9
- package/.medusa/server/src/api/vendor/campaigns/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/campaigns/route.js +10 -4
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +203 -11
- package/.medusa/server/src/api/vendor/campaigns/validators.js +43 -4
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/customer-groups/route.js +5 -5
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +604 -2
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +37 -2
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +22 -6
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +23 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +48 -2
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +12 -1
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +37 -104
- package/.medusa/server/src/api/vendor/invites/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/members/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/notifications/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +13 -11
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +18 -16
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +37 -29
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +317 -26
- package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/product-tags/route.js +8 -2
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +31 -29
- package/.medusa/server/src/api/vendor/product-types/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/product-types/route.js +8 -1
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +14 -2
- package/.medusa/server/src/api/vendor/product-types/validators.js +9 -3
- package/.medusa/server/src/api/vendor/products/route.js +7 -3
- package/.medusa/server/src/api/vendor/products/utils.d.ts +4 -1
- package/.medusa/server/src/api/vendor/products/utils.js +40 -2
- package/.medusa/server/src/api/vendor/products/validators.d.ts +905 -377
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +57 -53
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +9 -8
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +20 -20
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +27 -26
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -4
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +49 -59
- package/.medusa/server/src/links/seller-campaign.js +1 -1
- package/.medusa/server/src/links/seller-customer-group.js +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.js +2 -2
- package/.medusa/server/src/modules/attribute/service.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.js +2 -2
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.js +2 -2
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.d.ts +1 -1
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.js +2 -2
- package/.medusa/server/src/modules/payout/service.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.js +2 -2
- package/.medusa/server/src/modules/seller/utils.d.ts +4 -0
- package/.medusa/server/src/modules/seller/utils.js +18 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.d.ts +1 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.js +2 -2
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.d.ts +1 -1
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.js +2 -2
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.d.ts +1 -1
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.js +2 -2
- package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.js +2 -2
- package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.d.ts +1 -1
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.d.ts +7 -2
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.js +6 -6
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +6 -2
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +10 -10
- package/package.json +15 -28
|
@@ -3,8 +3,658 @@ import { AdditionalData } from "@medusajs/framework/types";
|
|
|
3
3
|
export type VendorGetProductParamsType = z.infer<typeof VendorGetProductParams>;
|
|
4
4
|
export declare const VendorGetProductParams: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
[x: string]: any;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
7
|
+
variants: z.ZodOptional<z.ZodObject<{} & {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<Omit<{
|
|
10
|
+
q: z.ZodOptional<z.ZodString>;
|
|
11
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
12
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
13
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
14
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
15
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
16
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
17
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
18
|
+
$eq: any;
|
|
19
|
+
$ne: any;
|
|
20
|
+
$in: any;
|
|
21
|
+
$nin: any;
|
|
22
|
+
$like: any;
|
|
23
|
+
$ilike: any;
|
|
24
|
+
$re: any;
|
|
25
|
+
$contains: any;
|
|
26
|
+
$gt: any;
|
|
27
|
+
$gte: any;
|
|
28
|
+
$lt: any;
|
|
29
|
+
$lte: any;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
$eq?: any;
|
|
32
|
+
$ne?: any;
|
|
33
|
+
$in?: any;
|
|
34
|
+
$nin?: any;
|
|
35
|
+
$like?: any;
|
|
36
|
+
$ilike?: any;
|
|
37
|
+
$re?: any;
|
|
38
|
+
$contains?: any;
|
|
39
|
+
$gt?: any;
|
|
40
|
+
$gte?: any;
|
|
41
|
+
$lt?: any;
|
|
42
|
+
$lte?: any;
|
|
43
|
+
}, {
|
|
44
|
+
$eq?: any;
|
|
45
|
+
$ne?: any;
|
|
46
|
+
$in?: any;
|
|
47
|
+
$nin?: any;
|
|
48
|
+
$like?: any;
|
|
49
|
+
$ilike?: any;
|
|
50
|
+
$re?: any;
|
|
51
|
+
$contains?: any;
|
|
52
|
+
$gt?: any;
|
|
53
|
+
$gte?: any;
|
|
54
|
+
$lt?: any;
|
|
55
|
+
$lte?: any;
|
|
56
|
+
}>]>>;
|
|
57
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
58
|
+
$eq: any;
|
|
59
|
+
$ne: any;
|
|
60
|
+
$in: any;
|
|
61
|
+
$nin: any;
|
|
62
|
+
$like: any;
|
|
63
|
+
$ilike: any;
|
|
64
|
+
$re: any;
|
|
65
|
+
$contains: any;
|
|
66
|
+
$gt: any;
|
|
67
|
+
$gte: any;
|
|
68
|
+
$lt: any;
|
|
69
|
+
$lte: any;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
$eq?: any;
|
|
72
|
+
$ne?: any;
|
|
73
|
+
$in?: any;
|
|
74
|
+
$nin?: any;
|
|
75
|
+
$like?: any;
|
|
76
|
+
$ilike?: any;
|
|
77
|
+
$re?: any;
|
|
78
|
+
$contains?: any;
|
|
79
|
+
$gt?: any;
|
|
80
|
+
$gte?: any;
|
|
81
|
+
$lt?: any;
|
|
82
|
+
$lte?: any;
|
|
83
|
+
}, {
|
|
84
|
+
$eq?: any;
|
|
85
|
+
$ne?: any;
|
|
86
|
+
$in?: any;
|
|
87
|
+
$nin?: any;
|
|
88
|
+
$like?: any;
|
|
89
|
+
$ilike?: any;
|
|
90
|
+
$re?: any;
|
|
91
|
+
$contains?: any;
|
|
92
|
+
$gt?: any;
|
|
93
|
+
$gte?: any;
|
|
94
|
+
$lt?: any;
|
|
95
|
+
$lte?: any;
|
|
96
|
+
}>]>>;
|
|
97
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
98
|
+
$eq: any;
|
|
99
|
+
$ne: any;
|
|
100
|
+
$in: any;
|
|
101
|
+
$nin: any;
|
|
102
|
+
$like: any;
|
|
103
|
+
$ilike: any;
|
|
104
|
+
$re: any;
|
|
105
|
+
$contains: any;
|
|
106
|
+
$gt: any;
|
|
107
|
+
$gte: any;
|
|
108
|
+
$lt: any;
|
|
109
|
+
$lte: any;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
$eq?: any;
|
|
112
|
+
$ne?: any;
|
|
113
|
+
$in?: any;
|
|
114
|
+
$nin?: any;
|
|
115
|
+
$like?: any;
|
|
116
|
+
$ilike?: any;
|
|
117
|
+
$re?: any;
|
|
118
|
+
$contains?: any;
|
|
119
|
+
$gt?: any;
|
|
120
|
+
$gte?: any;
|
|
121
|
+
$lt?: any;
|
|
122
|
+
$lte?: any;
|
|
123
|
+
}, {
|
|
124
|
+
$eq?: any;
|
|
125
|
+
$ne?: any;
|
|
126
|
+
$in?: any;
|
|
127
|
+
$nin?: any;
|
|
128
|
+
$like?: any;
|
|
129
|
+
$ilike?: any;
|
|
130
|
+
$re?: any;
|
|
131
|
+
$contains?: any;
|
|
132
|
+
$gt?: any;
|
|
133
|
+
$gte?: any;
|
|
134
|
+
$lt?: any;
|
|
135
|
+
$lte?: any;
|
|
136
|
+
}>]>>;
|
|
137
|
+
}, "q">, "strip", z.ZodTypeAny, {
|
|
138
|
+
id?: string | string[] | undefined;
|
|
139
|
+
created_at?: any;
|
|
140
|
+
updated_at?: any;
|
|
141
|
+
deleted_at?: any;
|
|
142
|
+
barcode?: string | string[] | undefined;
|
|
143
|
+
allow_backorder?: boolean | undefined;
|
|
144
|
+
ean?: string | string[] | undefined;
|
|
145
|
+
upc?: string | string[] | undefined;
|
|
146
|
+
manage_inventory?: boolean | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
id?: string | string[] | undefined;
|
|
149
|
+
created_at?: any;
|
|
150
|
+
updated_at?: any;
|
|
151
|
+
deleted_at?: any;
|
|
152
|
+
barcode?: string | string[] | undefined;
|
|
153
|
+
allow_backorder?: string | boolean | undefined;
|
|
154
|
+
ean?: string | string[] | undefined;
|
|
155
|
+
upc?: string | string[] | undefined;
|
|
156
|
+
manage_inventory?: string | boolean | undefined;
|
|
157
|
+
}>, "many">>>;
|
|
158
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<Omit<{
|
|
159
|
+
q: z.ZodOptional<z.ZodString>;
|
|
160
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
161
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
162
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
163
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
164
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
165
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
166
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
167
|
+
$eq: any;
|
|
168
|
+
$ne: any;
|
|
169
|
+
$in: any;
|
|
170
|
+
$nin: any;
|
|
171
|
+
$like: any;
|
|
172
|
+
$ilike: any;
|
|
173
|
+
$re: any;
|
|
174
|
+
$contains: any;
|
|
175
|
+
$gt: any;
|
|
176
|
+
$gte: any;
|
|
177
|
+
$lt: any;
|
|
178
|
+
$lte: any;
|
|
179
|
+
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
$eq?: any;
|
|
181
|
+
$ne?: any;
|
|
182
|
+
$in?: any;
|
|
183
|
+
$nin?: any;
|
|
184
|
+
$like?: any;
|
|
185
|
+
$ilike?: any;
|
|
186
|
+
$re?: any;
|
|
187
|
+
$contains?: any;
|
|
188
|
+
$gt?: any;
|
|
189
|
+
$gte?: any;
|
|
190
|
+
$lt?: any;
|
|
191
|
+
$lte?: any;
|
|
192
|
+
}, {
|
|
193
|
+
$eq?: any;
|
|
194
|
+
$ne?: any;
|
|
195
|
+
$in?: any;
|
|
196
|
+
$nin?: any;
|
|
197
|
+
$like?: any;
|
|
198
|
+
$ilike?: any;
|
|
199
|
+
$re?: any;
|
|
200
|
+
$contains?: any;
|
|
201
|
+
$gt?: any;
|
|
202
|
+
$gte?: any;
|
|
203
|
+
$lt?: any;
|
|
204
|
+
$lte?: any;
|
|
205
|
+
}>]>>;
|
|
206
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
207
|
+
$eq: any;
|
|
208
|
+
$ne: any;
|
|
209
|
+
$in: any;
|
|
210
|
+
$nin: any;
|
|
211
|
+
$like: any;
|
|
212
|
+
$ilike: any;
|
|
213
|
+
$re: any;
|
|
214
|
+
$contains: any;
|
|
215
|
+
$gt: any;
|
|
216
|
+
$gte: any;
|
|
217
|
+
$lt: any;
|
|
218
|
+
$lte: any;
|
|
219
|
+
}, "strip", z.ZodTypeAny, {
|
|
220
|
+
$eq?: any;
|
|
221
|
+
$ne?: any;
|
|
222
|
+
$in?: any;
|
|
223
|
+
$nin?: any;
|
|
224
|
+
$like?: any;
|
|
225
|
+
$ilike?: any;
|
|
226
|
+
$re?: any;
|
|
227
|
+
$contains?: any;
|
|
228
|
+
$gt?: any;
|
|
229
|
+
$gte?: any;
|
|
230
|
+
$lt?: any;
|
|
231
|
+
$lte?: any;
|
|
232
|
+
}, {
|
|
233
|
+
$eq?: any;
|
|
234
|
+
$ne?: any;
|
|
235
|
+
$in?: any;
|
|
236
|
+
$nin?: any;
|
|
237
|
+
$like?: any;
|
|
238
|
+
$ilike?: any;
|
|
239
|
+
$re?: any;
|
|
240
|
+
$contains?: any;
|
|
241
|
+
$gt?: any;
|
|
242
|
+
$gte?: any;
|
|
243
|
+
$lt?: any;
|
|
244
|
+
$lte?: any;
|
|
245
|
+
}>]>>;
|
|
246
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
247
|
+
$eq: any;
|
|
248
|
+
$ne: any;
|
|
249
|
+
$in: any;
|
|
250
|
+
$nin: any;
|
|
251
|
+
$like: any;
|
|
252
|
+
$ilike: any;
|
|
253
|
+
$re: any;
|
|
254
|
+
$contains: any;
|
|
255
|
+
$gt: any;
|
|
256
|
+
$gte: any;
|
|
257
|
+
$lt: any;
|
|
258
|
+
$lte: any;
|
|
259
|
+
}, "strip", z.ZodTypeAny, {
|
|
260
|
+
$eq?: any;
|
|
261
|
+
$ne?: any;
|
|
262
|
+
$in?: any;
|
|
263
|
+
$nin?: any;
|
|
264
|
+
$like?: any;
|
|
265
|
+
$ilike?: any;
|
|
266
|
+
$re?: any;
|
|
267
|
+
$contains?: any;
|
|
268
|
+
$gt?: any;
|
|
269
|
+
$gte?: any;
|
|
270
|
+
$lt?: any;
|
|
271
|
+
$lte?: any;
|
|
272
|
+
}, {
|
|
273
|
+
$eq?: any;
|
|
274
|
+
$ne?: any;
|
|
275
|
+
$in?: any;
|
|
276
|
+
$nin?: any;
|
|
277
|
+
$like?: any;
|
|
278
|
+
$ilike?: any;
|
|
279
|
+
$re?: any;
|
|
280
|
+
$contains?: any;
|
|
281
|
+
$gt?: any;
|
|
282
|
+
$gte?: any;
|
|
283
|
+
$lt?: any;
|
|
284
|
+
$lte?: any;
|
|
285
|
+
}>]>>;
|
|
286
|
+
}, "q">, "strip", z.ZodTypeAny, {
|
|
287
|
+
id?: string | string[] | undefined;
|
|
288
|
+
created_at?: any;
|
|
289
|
+
updated_at?: any;
|
|
290
|
+
deleted_at?: any;
|
|
291
|
+
barcode?: string | string[] | undefined;
|
|
292
|
+
allow_backorder?: boolean | undefined;
|
|
293
|
+
ean?: string | string[] | undefined;
|
|
294
|
+
upc?: string | string[] | undefined;
|
|
295
|
+
manage_inventory?: boolean | undefined;
|
|
296
|
+
}, {
|
|
297
|
+
id?: string | string[] | undefined;
|
|
298
|
+
created_at?: any;
|
|
299
|
+
updated_at?: any;
|
|
300
|
+
deleted_at?: any;
|
|
301
|
+
barcode?: string | string[] | undefined;
|
|
302
|
+
allow_backorder?: string | boolean | undefined;
|
|
303
|
+
ean?: string | string[] | undefined;
|
|
304
|
+
upc?: string | string[] | undefined;
|
|
305
|
+
manage_inventory?: string | boolean | undefined;
|
|
306
|
+
}>, "many">>>;
|
|
307
|
+
}, "strip", z.ZodTypeAny, {
|
|
308
|
+
[x: string]: any;
|
|
309
|
+
$and?: unknown;
|
|
310
|
+
$or?: unknown;
|
|
311
|
+
}, {
|
|
312
|
+
[x: string]: any;
|
|
313
|
+
$and?: unknown;
|
|
314
|
+
$or?: unknown;
|
|
315
|
+
}>>;
|
|
316
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("@medusajs/utils").ProductStatus>, "many">>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
variants?: {
|
|
319
|
+
[x: string]: any;
|
|
320
|
+
$and?: unknown;
|
|
321
|
+
$or?: unknown;
|
|
322
|
+
} | undefined;
|
|
323
|
+
status?: import("@medusajs/utils").ProductStatus[] | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
variants?: {
|
|
326
|
+
[x: string]: any;
|
|
327
|
+
$and?: unknown;
|
|
328
|
+
$or?: unknown;
|
|
329
|
+
} | undefined;
|
|
330
|
+
status?: import("@medusajs/utils").ProductStatus[] | undefined;
|
|
331
|
+
}>, "many">>>;
|
|
332
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
333
|
+
variants: z.ZodOptional<z.ZodObject<{} & {
|
|
334
|
+
[x: string]: any;
|
|
335
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<Omit<{
|
|
336
|
+
q: z.ZodOptional<z.ZodString>;
|
|
337
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
338
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
339
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
340
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
341
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
342
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
343
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
344
|
+
$eq: any;
|
|
345
|
+
$ne: any;
|
|
346
|
+
$in: any;
|
|
347
|
+
$nin: any;
|
|
348
|
+
$like: any;
|
|
349
|
+
$ilike: any;
|
|
350
|
+
$re: any;
|
|
351
|
+
$contains: any;
|
|
352
|
+
$gt: any;
|
|
353
|
+
$gte: any;
|
|
354
|
+
$lt: any;
|
|
355
|
+
$lte: any;
|
|
356
|
+
}, "strip", z.ZodTypeAny, {
|
|
357
|
+
$eq?: any;
|
|
358
|
+
$ne?: any;
|
|
359
|
+
$in?: any;
|
|
360
|
+
$nin?: any;
|
|
361
|
+
$like?: any;
|
|
362
|
+
$ilike?: any;
|
|
363
|
+
$re?: any;
|
|
364
|
+
$contains?: any;
|
|
365
|
+
$gt?: any;
|
|
366
|
+
$gte?: any;
|
|
367
|
+
$lt?: any;
|
|
368
|
+
$lte?: any;
|
|
369
|
+
}, {
|
|
370
|
+
$eq?: any;
|
|
371
|
+
$ne?: any;
|
|
372
|
+
$in?: any;
|
|
373
|
+
$nin?: any;
|
|
374
|
+
$like?: any;
|
|
375
|
+
$ilike?: any;
|
|
376
|
+
$re?: any;
|
|
377
|
+
$contains?: any;
|
|
378
|
+
$gt?: any;
|
|
379
|
+
$gte?: any;
|
|
380
|
+
$lt?: any;
|
|
381
|
+
$lte?: any;
|
|
382
|
+
}>]>>;
|
|
383
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
384
|
+
$eq: any;
|
|
385
|
+
$ne: any;
|
|
386
|
+
$in: any;
|
|
387
|
+
$nin: any;
|
|
388
|
+
$like: any;
|
|
389
|
+
$ilike: any;
|
|
390
|
+
$re: any;
|
|
391
|
+
$contains: any;
|
|
392
|
+
$gt: any;
|
|
393
|
+
$gte: any;
|
|
394
|
+
$lt: any;
|
|
395
|
+
$lte: any;
|
|
396
|
+
}, "strip", z.ZodTypeAny, {
|
|
397
|
+
$eq?: any;
|
|
398
|
+
$ne?: any;
|
|
399
|
+
$in?: any;
|
|
400
|
+
$nin?: any;
|
|
401
|
+
$like?: any;
|
|
402
|
+
$ilike?: any;
|
|
403
|
+
$re?: any;
|
|
404
|
+
$contains?: any;
|
|
405
|
+
$gt?: any;
|
|
406
|
+
$gte?: any;
|
|
407
|
+
$lt?: any;
|
|
408
|
+
$lte?: any;
|
|
409
|
+
}, {
|
|
410
|
+
$eq?: any;
|
|
411
|
+
$ne?: any;
|
|
412
|
+
$in?: any;
|
|
413
|
+
$nin?: any;
|
|
414
|
+
$like?: any;
|
|
415
|
+
$ilike?: any;
|
|
416
|
+
$re?: any;
|
|
417
|
+
$contains?: any;
|
|
418
|
+
$gt?: any;
|
|
419
|
+
$gte?: any;
|
|
420
|
+
$lt?: any;
|
|
421
|
+
$lte?: any;
|
|
422
|
+
}>]>>;
|
|
423
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
424
|
+
$eq: any;
|
|
425
|
+
$ne: any;
|
|
426
|
+
$in: any;
|
|
427
|
+
$nin: any;
|
|
428
|
+
$like: any;
|
|
429
|
+
$ilike: any;
|
|
430
|
+
$re: any;
|
|
431
|
+
$contains: any;
|
|
432
|
+
$gt: any;
|
|
433
|
+
$gte: any;
|
|
434
|
+
$lt: any;
|
|
435
|
+
$lte: any;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
$eq?: any;
|
|
438
|
+
$ne?: any;
|
|
439
|
+
$in?: any;
|
|
440
|
+
$nin?: any;
|
|
441
|
+
$like?: any;
|
|
442
|
+
$ilike?: any;
|
|
443
|
+
$re?: any;
|
|
444
|
+
$contains?: any;
|
|
445
|
+
$gt?: any;
|
|
446
|
+
$gte?: any;
|
|
447
|
+
$lt?: any;
|
|
448
|
+
$lte?: any;
|
|
449
|
+
}, {
|
|
450
|
+
$eq?: any;
|
|
451
|
+
$ne?: any;
|
|
452
|
+
$in?: any;
|
|
453
|
+
$nin?: any;
|
|
454
|
+
$like?: any;
|
|
455
|
+
$ilike?: any;
|
|
456
|
+
$re?: any;
|
|
457
|
+
$contains?: any;
|
|
458
|
+
$gt?: any;
|
|
459
|
+
$gte?: any;
|
|
460
|
+
$lt?: any;
|
|
461
|
+
$lte?: any;
|
|
462
|
+
}>]>>;
|
|
463
|
+
}, "q">, "strip", z.ZodTypeAny, {
|
|
464
|
+
id?: string | string[] | undefined;
|
|
465
|
+
created_at?: any;
|
|
466
|
+
updated_at?: any;
|
|
467
|
+
deleted_at?: any;
|
|
468
|
+
barcode?: string | string[] | undefined;
|
|
469
|
+
allow_backorder?: boolean | undefined;
|
|
470
|
+
ean?: string | string[] | undefined;
|
|
471
|
+
upc?: string | string[] | undefined;
|
|
472
|
+
manage_inventory?: boolean | undefined;
|
|
473
|
+
}, {
|
|
474
|
+
id?: string | string[] | undefined;
|
|
475
|
+
created_at?: any;
|
|
476
|
+
updated_at?: any;
|
|
477
|
+
deleted_at?: any;
|
|
478
|
+
barcode?: string | string[] | undefined;
|
|
479
|
+
allow_backorder?: string | boolean | undefined;
|
|
480
|
+
ean?: string | string[] | undefined;
|
|
481
|
+
upc?: string | string[] | undefined;
|
|
482
|
+
manage_inventory?: string | boolean | undefined;
|
|
483
|
+
}>, "many">>>;
|
|
484
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<Omit<{
|
|
485
|
+
q: z.ZodOptional<z.ZodString>;
|
|
486
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
487
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
488
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
489
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
490
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
491
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
492
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
493
|
+
$eq: any;
|
|
494
|
+
$ne: any;
|
|
495
|
+
$in: any;
|
|
496
|
+
$nin: any;
|
|
497
|
+
$like: any;
|
|
498
|
+
$ilike: any;
|
|
499
|
+
$re: any;
|
|
500
|
+
$contains: any;
|
|
501
|
+
$gt: any;
|
|
502
|
+
$gte: any;
|
|
503
|
+
$lt: any;
|
|
504
|
+
$lte: any;
|
|
505
|
+
}, "strip", z.ZodTypeAny, {
|
|
506
|
+
$eq?: any;
|
|
507
|
+
$ne?: any;
|
|
508
|
+
$in?: any;
|
|
509
|
+
$nin?: any;
|
|
510
|
+
$like?: any;
|
|
511
|
+
$ilike?: any;
|
|
512
|
+
$re?: any;
|
|
513
|
+
$contains?: any;
|
|
514
|
+
$gt?: any;
|
|
515
|
+
$gte?: any;
|
|
516
|
+
$lt?: any;
|
|
517
|
+
$lte?: any;
|
|
518
|
+
}, {
|
|
519
|
+
$eq?: any;
|
|
520
|
+
$ne?: any;
|
|
521
|
+
$in?: any;
|
|
522
|
+
$nin?: any;
|
|
523
|
+
$like?: any;
|
|
524
|
+
$ilike?: any;
|
|
525
|
+
$re?: any;
|
|
526
|
+
$contains?: any;
|
|
527
|
+
$gt?: any;
|
|
528
|
+
$gte?: any;
|
|
529
|
+
$lt?: any;
|
|
530
|
+
$lte?: any;
|
|
531
|
+
}>]>>;
|
|
532
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
533
|
+
$eq: any;
|
|
534
|
+
$ne: any;
|
|
535
|
+
$in: any;
|
|
536
|
+
$nin: any;
|
|
537
|
+
$like: any;
|
|
538
|
+
$ilike: any;
|
|
539
|
+
$re: any;
|
|
540
|
+
$contains: any;
|
|
541
|
+
$gt: any;
|
|
542
|
+
$gte: any;
|
|
543
|
+
$lt: any;
|
|
544
|
+
$lte: any;
|
|
545
|
+
}, "strip", z.ZodTypeAny, {
|
|
546
|
+
$eq?: any;
|
|
547
|
+
$ne?: any;
|
|
548
|
+
$in?: any;
|
|
549
|
+
$nin?: any;
|
|
550
|
+
$like?: any;
|
|
551
|
+
$ilike?: any;
|
|
552
|
+
$re?: any;
|
|
553
|
+
$contains?: any;
|
|
554
|
+
$gt?: any;
|
|
555
|
+
$gte?: any;
|
|
556
|
+
$lt?: any;
|
|
557
|
+
$lte?: any;
|
|
558
|
+
}, {
|
|
559
|
+
$eq?: any;
|
|
560
|
+
$ne?: any;
|
|
561
|
+
$in?: any;
|
|
562
|
+
$nin?: any;
|
|
563
|
+
$like?: any;
|
|
564
|
+
$ilike?: any;
|
|
565
|
+
$re?: any;
|
|
566
|
+
$contains?: any;
|
|
567
|
+
$gt?: any;
|
|
568
|
+
$gte?: any;
|
|
569
|
+
$lt?: any;
|
|
570
|
+
$lte?: any;
|
|
571
|
+
}>]>>;
|
|
572
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
573
|
+
$eq: any;
|
|
574
|
+
$ne: any;
|
|
575
|
+
$in: any;
|
|
576
|
+
$nin: any;
|
|
577
|
+
$like: any;
|
|
578
|
+
$ilike: any;
|
|
579
|
+
$re: any;
|
|
580
|
+
$contains: any;
|
|
581
|
+
$gt: any;
|
|
582
|
+
$gte: any;
|
|
583
|
+
$lt: any;
|
|
584
|
+
$lte: any;
|
|
585
|
+
}, "strip", z.ZodTypeAny, {
|
|
586
|
+
$eq?: any;
|
|
587
|
+
$ne?: any;
|
|
588
|
+
$in?: any;
|
|
589
|
+
$nin?: any;
|
|
590
|
+
$like?: any;
|
|
591
|
+
$ilike?: any;
|
|
592
|
+
$re?: any;
|
|
593
|
+
$contains?: any;
|
|
594
|
+
$gt?: any;
|
|
595
|
+
$gte?: any;
|
|
596
|
+
$lt?: any;
|
|
597
|
+
$lte?: any;
|
|
598
|
+
}, {
|
|
599
|
+
$eq?: any;
|
|
600
|
+
$ne?: any;
|
|
601
|
+
$in?: any;
|
|
602
|
+
$nin?: any;
|
|
603
|
+
$like?: any;
|
|
604
|
+
$ilike?: any;
|
|
605
|
+
$re?: any;
|
|
606
|
+
$contains?: any;
|
|
607
|
+
$gt?: any;
|
|
608
|
+
$gte?: any;
|
|
609
|
+
$lt?: any;
|
|
610
|
+
$lte?: any;
|
|
611
|
+
}>]>>;
|
|
612
|
+
}, "q">, "strip", z.ZodTypeAny, {
|
|
613
|
+
id?: string | string[] | undefined;
|
|
614
|
+
created_at?: any;
|
|
615
|
+
updated_at?: any;
|
|
616
|
+
deleted_at?: any;
|
|
617
|
+
barcode?: string | string[] | undefined;
|
|
618
|
+
allow_backorder?: boolean | undefined;
|
|
619
|
+
ean?: string | string[] | undefined;
|
|
620
|
+
upc?: string | string[] | undefined;
|
|
621
|
+
manage_inventory?: boolean | undefined;
|
|
622
|
+
}, {
|
|
623
|
+
id?: string | string[] | undefined;
|
|
624
|
+
created_at?: any;
|
|
625
|
+
updated_at?: any;
|
|
626
|
+
deleted_at?: any;
|
|
627
|
+
barcode?: string | string[] | undefined;
|
|
628
|
+
allow_backorder?: string | boolean | undefined;
|
|
629
|
+
ean?: string | string[] | undefined;
|
|
630
|
+
upc?: string | string[] | undefined;
|
|
631
|
+
manage_inventory?: string | boolean | undefined;
|
|
632
|
+
}>, "many">>>;
|
|
633
|
+
}, "strip", z.ZodTypeAny, {
|
|
634
|
+
[x: string]: any;
|
|
635
|
+
$and?: unknown;
|
|
636
|
+
$or?: unknown;
|
|
637
|
+
}, {
|
|
638
|
+
[x: string]: any;
|
|
639
|
+
$and?: unknown;
|
|
640
|
+
$or?: unknown;
|
|
641
|
+
}>>;
|
|
642
|
+
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof import("@medusajs/utils").ProductStatus>, "many">>;
|
|
643
|
+
}, "strip", z.ZodTypeAny, {
|
|
644
|
+
variants?: {
|
|
645
|
+
[x: string]: any;
|
|
646
|
+
$and?: unknown;
|
|
647
|
+
$or?: unknown;
|
|
648
|
+
} | undefined;
|
|
649
|
+
status?: import("@medusajs/utils").ProductStatus[] | undefined;
|
|
650
|
+
}, {
|
|
651
|
+
variants?: {
|
|
652
|
+
[x: string]: any;
|
|
653
|
+
$and?: unknown;
|
|
654
|
+
$or?: unknown;
|
|
655
|
+
} | undefined;
|
|
656
|
+
status?: import("@medusajs/utils").ProductStatus[] | undefined;
|
|
657
|
+
}>, "many">>>;
|
|
8
658
|
sales_channel_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
9
659
|
q: z.ZodOptional<z.ZodString>;
|
|
10
660
|
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
@@ -75,129 +725,7 @@ export declare const VendorGetProductParams: z.ZodEffects<z.ZodObject<{
|
|
|
75
725
|
$in?: any;
|
|
76
726
|
$nin?: any;
|
|
77
727
|
$like?: any;
|
|
78
|
-
$ilike
|
|
79
|
-
/**
|
|
80
|
-
* @schema CreateProduct
|
|
81
|
-
* type: object
|
|
82
|
-
* required:
|
|
83
|
-
* - title
|
|
84
|
-
* properties:
|
|
85
|
-
* title:
|
|
86
|
-
* type: string
|
|
87
|
-
* description: The title of the product.
|
|
88
|
-
* subtitle:
|
|
89
|
-
* type: string
|
|
90
|
-
* description: The subtitle of the product.
|
|
91
|
-
* description:
|
|
92
|
-
* type: string
|
|
93
|
-
* description: The description of the product.
|
|
94
|
-
* is_giftcard:
|
|
95
|
-
* type: boolean
|
|
96
|
-
* description: Whether the product is a gift card.
|
|
97
|
-
* default: false
|
|
98
|
-
* discountable:
|
|
99
|
-
* type: boolean
|
|
100
|
-
* description: Whether the product can be discounted.
|
|
101
|
-
* default: true
|
|
102
|
-
* images:
|
|
103
|
-
* type: array
|
|
104
|
-
* description: Images of the product.
|
|
105
|
-
* items:
|
|
106
|
-
* type: object
|
|
107
|
-
* required:
|
|
108
|
-
* - url
|
|
109
|
-
* properties:
|
|
110
|
-
* url:
|
|
111
|
-
* type: string
|
|
112
|
-
* thumbnail:
|
|
113
|
-
* type: string
|
|
114
|
-
* description: The thumbnail of the product.
|
|
115
|
-
* handle:
|
|
116
|
-
* type: string
|
|
117
|
-
* description: A unique handle to identify the product.
|
|
118
|
-
* status:
|
|
119
|
-
* type: string
|
|
120
|
-
* enum: [draft, proposed]
|
|
121
|
-
* description: The status of the product.
|
|
122
|
-
* default: draft
|
|
123
|
-
* external_id:
|
|
124
|
-
* type: string
|
|
125
|
-
* description: The external ID of the product.
|
|
126
|
-
* type_id:
|
|
127
|
-
* type: string
|
|
128
|
-
* description: The ID of the product type.
|
|
129
|
-
* collection_id:
|
|
130
|
-
* type: string
|
|
131
|
-
* description: The ID of the collection the product belongs to.
|
|
132
|
-
* categories:
|
|
133
|
-
* type: array
|
|
134
|
-
* description: Categories the product belongs to.
|
|
135
|
-
* items:
|
|
136
|
-
* type: object
|
|
137
|
-
* required:
|
|
138
|
-
* - id
|
|
139
|
-
* properties:
|
|
140
|
-
* id:
|
|
141
|
-
* type: string
|
|
142
|
-
* tags:
|
|
143
|
-
* type: array
|
|
144
|
-
* description: Tags associated with the product.
|
|
145
|
-
* items:
|
|
146
|
-
* type: object
|
|
147
|
-
* required:
|
|
148
|
-
* - id
|
|
149
|
-
* properties:
|
|
150
|
-
* id:
|
|
151
|
-
* type: string
|
|
152
|
-
* options:
|
|
153
|
-
* type: array
|
|
154
|
-
* description: Product options.
|
|
155
|
-
* items:
|
|
156
|
-
* $ref: "#/components/schemas/CreateProductOption"
|
|
157
|
-
* variants:
|
|
158
|
-
* type: array
|
|
159
|
-
* description: Product variants.
|
|
160
|
-
* items:
|
|
161
|
-
* $ref: "#/components/schemas/CreateProductVariant"
|
|
162
|
-
* weight:
|
|
163
|
-
* type: number
|
|
164
|
-
* description: The weight of the product.
|
|
165
|
-
* length:
|
|
166
|
-
* type: number
|
|
167
|
-
* description: The length of the product.
|
|
168
|
-
* height:
|
|
169
|
-
* type: number
|
|
170
|
-
* description: The height of the product.
|
|
171
|
-
* width:
|
|
172
|
-
* type: number
|
|
173
|
-
* description: The width of the product.
|
|
174
|
-
* hs_code:
|
|
175
|
-
* type: string
|
|
176
|
-
* description: The HS code of the product.
|
|
177
|
-
* mid_code:
|
|
178
|
-
* type: string
|
|
179
|
-
* description: The MID code of the product.
|
|
180
|
-
* origin_country:
|
|
181
|
-
* type: string
|
|
182
|
-
* description: The country of origin of the product.
|
|
183
|
-
* material:
|
|
184
|
-
* type: string
|
|
185
|
-
* description: The material composition of the product.
|
|
186
|
-
* metadata:
|
|
187
|
-
* type: object
|
|
188
|
-
* description: Additional metadata for the product.
|
|
189
|
-
* sales_channels:
|
|
190
|
-
* type: array
|
|
191
|
-
* description: Sales channels to associate the product with.
|
|
192
|
-
* items:
|
|
193
|
-
* type: object
|
|
194
|
-
* required:
|
|
195
|
-
* - id
|
|
196
|
-
* properties:
|
|
197
|
-
* id:
|
|
198
|
-
* type: string
|
|
199
|
-
*/
|
|
200
|
-
?: any;
|
|
728
|
+
$ilike?: any;
|
|
201
729
|
$re?: any;
|
|
202
730
|
$contains?: any;
|
|
203
731
|
$gt?: any;
|
|
@@ -260,58 +788,58 @@ export declare const VendorGetProductParams: z.ZodEffects<z.ZodObject<{
|
|
|
260
788
|
}>]>>;
|
|
261
789
|
}, "strip", z.ZodTypeAny, {
|
|
262
790
|
[x: string]: any;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
sales_channel_id?:
|
|
266
|
-
q?:
|
|
267
|
-
id?:
|
|
268
|
-
title?:
|
|
269
|
-
handle?:
|
|
270
|
-
is_giftcard?:
|
|
271
|
-
category_id?:
|
|
272
|
-
external_id?:
|
|
273
|
-
collection_id?:
|
|
274
|
-
tag_id?:
|
|
275
|
-
type_id?:
|
|
276
|
-
created_at?:
|
|
277
|
-
updated_at?:
|
|
278
|
-
deleted_at?:
|
|
791
|
+
$and?: unknown;
|
|
792
|
+
$or?: unknown;
|
|
793
|
+
sales_channel_id?: unknown;
|
|
794
|
+
q?: unknown;
|
|
795
|
+
id?: unknown;
|
|
796
|
+
title?: unknown;
|
|
797
|
+
handle?: unknown;
|
|
798
|
+
is_giftcard?: unknown;
|
|
799
|
+
category_id?: unknown;
|
|
800
|
+
external_id?: unknown;
|
|
801
|
+
collection_id?: unknown;
|
|
802
|
+
tag_id?: unknown;
|
|
803
|
+
type_id?: unknown;
|
|
804
|
+
created_at?: unknown;
|
|
805
|
+
updated_at?: unknown;
|
|
806
|
+
deleted_at?: unknown;
|
|
279
807
|
}, {
|
|
280
808
|
[x: string]: any;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
sales_channel_id?:
|
|
284
|
-
q?:
|
|
285
|
-
id?:
|
|
286
|
-
title?:
|
|
287
|
-
handle?:
|
|
288
|
-
is_giftcard?:
|
|
289
|
-
category_id?:
|
|
290
|
-
external_id?:
|
|
291
|
-
collection_id?:
|
|
292
|
-
tag_id?:
|
|
293
|
-
type_id?:
|
|
294
|
-
created_at?:
|
|
295
|
-
updated_at?:
|
|
296
|
-
deleted_at?:
|
|
297
|
-
}>,
|
|
809
|
+
$and?: unknown;
|
|
810
|
+
$or?: unknown;
|
|
811
|
+
sales_channel_id?: unknown;
|
|
812
|
+
q?: unknown;
|
|
813
|
+
id?: unknown;
|
|
814
|
+
title?: unknown;
|
|
815
|
+
handle?: unknown;
|
|
816
|
+
is_giftcard?: unknown;
|
|
817
|
+
category_id?: unknown;
|
|
818
|
+
external_id?: unknown;
|
|
819
|
+
collection_id?: unknown;
|
|
820
|
+
tag_id?: unknown;
|
|
821
|
+
type_id?: unknown;
|
|
822
|
+
created_at?: unknown;
|
|
823
|
+
updated_at?: unknown;
|
|
824
|
+
deleted_at?: unknown;
|
|
825
|
+
}>, unknown, {
|
|
298
826
|
[x: string]: any;
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
sales_channel_id?:
|
|
302
|
-
q?:
|
|
303
|
-
id?:
|
|
304
|
-
title?:
|
|
305
|
-
handle?:
|
|
306
|
-
is_giftcard?:
|
|
307
|
-
category_id?:
|
|
308
|
-
external_id?:
|
|
309
|
-
collection_id?:
|
|
310
|
-
tag_id?:
|
|
311
|
-
type_id?:
|
|
312
|
-
created_at?:
|
|
313
|
-
updated_at?:
|
|
314
|
-
deleted_at?:
|
|
827
|
+
$and?: unknown;
|
|
828
|
+
$or?: unknown;
|
|
829
|
+
sales_channel_id?: unknown;
|
|
830
|
+
q?: unknown;
|
|
831
|
+
id?: unknown;
|
|
832
|
+
title?: unknown;
|
|
833
|
+
handle?: unknown;
|
|
834
|
+
is_giftcard?: unknown;
|
|
835
|
+
category_id?: unknown;
|
|
836
|
+
external_id?: unknown;
|
|
837
|
+
collection_id?: unknown;
|
|
838
|
+
tag_id?: unknown;
|
|
839
|
+
type_id?: unknown;
|
|
840
|
+
created_at?: unknown;
|
|
841
|
+
updated_at?: unknown;
|
|
842
|
+
deleted_at?: unknown;
|
|
315
843
|
}>;
|
|
316
844
|
/**
|
|
317
845
|
* @schema CreateProductOption
|
|
@@ -362,13 +890,13 @@ export declare const UpdateProductOption: z.ZodObject<{
|
|
|
362
890
|
title: z.ZodOptional<z.ZodString>;
|
|
363
891
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
364
892
|
}, "strip", z.ZodTypeAny, {
|
|
893
|
+
values?: string[] | undefined;
|
|
365
894
|
id?: string | undefined;
|
|
366
895
|
title?: string | undefined;
|
|
367
|
-
values?: string[] | undefined;
|
|
368
896
|
}, {
|
|
897
|
+
values?: string[] | undefined;
|
|
369
898
|
id?: string | undefined;
|
|
370
899
|
title?: string | undefined;
|
|
371
|
-
values?: string[] | undefined;
|
|
372
900
|
}>;
|
|
373
901
|
/**
|
|
374
902
|
* @schema CreateProductVariant
|
|
@@ -506,21 +1034,21 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
506
1034
|
}[];
|
|
507
1035
|
allow_backorder: false;
|
|
508
1036
|
manage_inventory: true;
|
|
509
|
-
sku?: string | undefined;
|
|
510
|
-
ean?: string | undefined;
|
|
511
|
-
upc?: string | undefined;
|
|
512
|
-
barcode?: string | undefined;
|
|
513
|
-
hs_code?: string | undefined;
|
|
514
|
-
mid_code?: string | undefined;
|
|
515
|
-
variant_rank?: number | undefined;
|
|
516
|
-
weight?: number | undefined;
|
|
517
1037
|
length?: number | undefined;
|
|
518
|
-
|
|
1038
|
+
options?: Record<string, string> | undefined;
|
|
519
1039
|
width?: number | undefined;
|
|
1040
|
+
weight?: number | undefined;
|
|
1041
|
+
height?: number | undefined;
|
|
520
1042
|
origin_country?: string | undefined;
|
|
1043
|
+
hs_code?: string | undefined;
|
|
1044
|
+
mid_code?: string | undefined;
|
|
521
1045
|
material?: string | undefined;
|
|
522
1046
|
metadata?: Record<string, unknown> | undefined;
|
|
523
|
-
|
|
1047
|
+
sku?: string | undefined;
|
|
1048
|
+
ean?: string | undefined;
|
|
1049
|
+
upc?: string | undefined;
|
|
1050
|
+
barcode?: string | undefined;
|
|
1051
|
+
variant_rank?: number | undefined;
|
|
524
1052
|
inventory_items?: {
|
|
525
1053
|
inventory_item_id: string;
|
|
526
1054
|
required_quantity: number;
|
|
@@ -534,23 +1062,23 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
534
1062
|
max_quantity?: number | null | undefined;
|
|
535
1063
|
rules?: Record<string, string> | undefined;
|
|
536
1064
|
}[];
|
|
1065
|
+
length?: number | undefined;
|
|
1066
|
+
options?: Record<string, string> | undefined;
|
|
1067
|
+
width?: number | undefined;
|
|
1068
|
+
weight?: number | undefined;
|
|
1069
|
+
height?: number | undefined;
|
|
1070
|
+
origin_country?: string | undefined;
|
|
1071
|
+
hs_code?: string | undefined;
|
|
1072
|
+
mid_code?: string | undefined;
|
|
1073
|
+
material?: string | undefined;
|
|
1074
|
+
metadata?: Record<string, unknown> | undefined;
|
|
537
1075
|
sku?: string | undefined;
|
|
538
1076
|
ean?: string | undefined;
|
|
539
1077
|
upc?: string | undefined;
|
|
540
1078
|
barcode?: string | undefined;
|
|
541
|
-
hs_code?: string | undefined;
|
|
542
|
-
mid_code?: string | undefined;
|
|
543
1079
|
allow_backorder?: false | undefined;
|
|
544
1080
|
manage_inventory?: true | undefined;
|
|
545
1081
|
variant_rank?: number | undefined;
|
|
546
|
-
weight?: number | undefined;
|
|
547
|
-
length?: number | undefined;
|
|
548
|
-
height?: number | undefined;
|
|
549
|
-
width?: number | undefined;
|
|
550
|
-
origin_country?: string | undefined;
|
|
551
|
-
material?: string | undefined;
|
|
552
|
-
metadata?: Record<string, unknown> | undefined;
|
|
553
|
-
options?: Record<string, string> | undefined;
|
|
554
1082
|
inventory_items?: {
|
|
555
1083
|
inventory_item_id: string;
|
|
556
1084
|
required_quantity: number;
|
|
@@ -682,8 +1210,19 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
682
1210
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
683
1211
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
684
1212
|
}, "strict", z.ZodTypeAny, {
|
|
1213
|
+
length?: number | null | undefined;
|
|
1214
|
+
options?: Record<string, string> | undefined;
|
|
685
1215
|
id?: string | undefined;
|
|
686
1216
|
title?: string | undefined;
|
|
1217
|
+
width?: number | null | undefined;
|
|
1218
|
+
weight?: number | null | undefined;
|
|
1219
|
+
height?: number | null | undefined;
|
|
1220
|
+
origin_country?: string | null | undefined;
|
|
1221
|
+
hs_code?: string | null | undefined;
|
|
1222
|
+
mid_code?: string | null | undefined;
|
|
1223
|
+
material?: string | null | undefined;
|
|
1224
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1225
|
+
sku?: string | null | undefined;
|
|
687
1226
|
prices?: {
|
|
688
1227
|
id?: string | undefined;
|
|
689
1228
|
currency_code?: string | undefined;
|
|
@@ -692,26 +1231,26 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
692
1231
|
max_quantity?: number | null | undefined;
|
|
693
1232
|
rules?: Record<string, string> | undefined;
|
|
694
1233
|
}[] | undefined;
|
|
695
|
-
sku?: string | null | undefined;
|
|
696
1234
|
ean?: string | null | undefined;
|
|
697
1235
|
upc?: string | null | undefined;
|
|
698
1236
|
barcode?: string | null | undefined;
|
|
699
|
-
hs_code?: string | null | undefined;
|
|
700
|
-
mid_code?: string | null | undefined;
|
|
701
1237
|
allow_backorder?: boolean | undefined;
|
|
702
1238
|
manage_inventory?: boolean | undefined;
|
|
703
1239
|
variant_rank?: number | undefined;
|
|
704
|
-
|
|
1240
|
+
}, {
|
|
705
1241
|
length?: number | null | undefined;
|
|
706
|
-
|
|
1242
|
+
options?: Record<string, string> | undefined;
|
|
1243
|
+
id?: string | undefined;
|
|
1244
|
+
title?: string | undefined;
|
|
707
1245
|
width?: number | null | undefined;
|
|
1246
|
+
weight?: number | null | undefined;
|
|
1247
|
+
height?: number | null | undefined;
|
|
708
1248
|
origin_country?: string | null | undefined;
|
|
1249
|
+
hs_code?: string | null | undefined;
|
|
1250
|
+
mid_code?: string | null | undefined;
|
|
709
1251
|
material?: string | null | undefined;
|
|
710
1252
|
metadata?: Record<string, unknown> | null | undefined;
|
|
711
|
-
|
|
712
|
-
}, {
|
|
713
|
-
id?: string | undefined;
|
|
714
|
-
title?: string | undefined;
|
|
1253
|
+
sku?: string | null | undefined;
|
|
715
1254
|
prices?: {
|
|
716
1255
|
id?: string | undefined;
|
|
717
1256
|
currency_code?: string | undefined;
|
|
@@ -720,23 +1259,12 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
720
1259
|
max_quantity?: number | null | undefined;
|
|
721
1260
|
rules?: Record<string, string> | undefined;
|
|
722
1261
|
}[] | undefined;
|
|
723
|
-
sku?: string | null | undefined;
|
|
724
1262
|
ean?: string | null | undefined;
|
|
725
1263
|
upc?: string | null | undefined;
|
|
726
1264
|
barcode?: string | null | undefined;
|
|
727
|
-
hs_code?: string | null | undefined;
|
|
728
|
-
mid_code?: string | null | undefined;
|
|
729
1265
|
allow_backorder?: boolean | undefined;
|
|
730
1266
|
manage_inventory?: boolean | undefined;
|
|
731
1267
|
variant_rank?: number | undefined;
|
|
732
|
-
weight?: number | null | undefined;
|
|
733
|
-
length?: number | null | undefined;
|
|
734
|
-
height?: number | null | undefined;
|
|
735
|
-
width?: number | null | undefined;
|
|
736
|
-
origin_country?: string | null | undefined;
|
|
737
|
-
material?: string | null | undefined;
|
|
738
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
739
|
-
options?: Record<string, string> | undefined;
|
|
740
1268
|
}>;
|
|
741
1269
|
/**
|
|
742
1270
|
* @schema CreateProduct
|
|
@@ -962,21 +1490,21 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
962
1490
|
}[];
|
|
963
1491
|
allow_backorder: false;
|
|
964
1492
|
manage_inventory: true;
|
|
965
|
-
sku?: string | undefined;
|
|
966
|
-
ean?: string | undefined;
|
|
967
|
-
upc?: string | undefined;
|
|
968
|
-
barcode?: string | undefined;
|
|
969
|
-
hs_code?: string | undefined;
|
|
970
|
-
mid_code?: string | undefined;
|
|
971
|
-
variant_rank?: number | undefined;
|
|
972
|
-
weight?: number | undefined;
|
|
973
1493
|
length?: number | undefined;
|
|
974
|
-
|
|
1494
|
+
options?: Record<string, string> | undefined;
|
|
975
1495
|
width?: number | undefined;
|
|
1496
|
+
weight?: number | undefined;
|
|
1497
|
+
height?: number | undefined;
|
|
976
1498
|
origin_country?: string | undefined;
|
|
1499
|
+
hs_code?: string | undefined;
|
|
1500
|
+
mid_code?: string | undefined;
|
|
977
1501
|
material?: string | undefined;
|
|
978
1502
|
metadata?: Record<string, unknown> | undefined;
|
|
979
|
-
|
|
1503
|
+
sku?: string | undefined;
|
|
1504
|
+
ean?: string | undefined;
|
|
1505
|
+
upc?: string | undefined;
|
|
1506
|
+
barcode?: string | undefined;
|
|
1507
|
+
variant_rank?: number | undefined;
|
|
980
1508
|
inventory_items?: {
|
|
981
1509
|
inventory_item_id: string;
|
|
982
1510
|
required_quantity: number;
|
|
@@ -990,23 +1518,23 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
990
1518
|
max_quantity?: number | null | undefined;
|
|
991
1519
|
rules?: Record<string, string> | undefined;
|
|
992
1520
|
}[];
|
|
1521
|
+
length?: number | undefined;
|
|
1522
|
+
options?: Record<string, string> | undefined;
|
|
1523
|
+
width?: number | undefined;
|
|
1524
|
+
weight?: number | undefined;
|
|
1525
|
+
height?: number | undefined;
|
|
1526
|
+
origin_country?: string | undefined;
|
|
1527
|
+
hs_code?: string | undefined;
|
|
1528
|
+
mid_code?: string | undefined;
|
|
1529
|
+
material?: string | undefined;
|
|
1530
|
+
metadata?: Record<string, unknown> | undefined;
|
|
993
1531
|
sku?: string | undefined;
|
|
994
1532
|
ean?: string | undefined;
|
|
995
1533
|
upc?: string | undefined;
|
|
996
1534
|
barcode?: string | undefined;
|
|
997
|
-
hs_code?: string | undefined;
|
|
998
|
-
mid_code?: string | undefined;
|
|
999
1535
|
allow_backorder?: false | undefined;
|
|
1000
1536
|
manage_inventory?: true | undefined;
|
|
1001
1537
|
variant_rank?: number | undefined;
|
|
1002
|
-
weight?: number | undefined;
|
|
1003
|
-
length?: number | undefined;
|
|
1004
|
-
height?: number | undefined;
|
|
1005
|
-
width?: number | undefined;
|
|
1006
|
-
origin_country?: string | undefined;
|
|
1007
|
-
material?: string | undefined;
|
|
1008
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1009
|
-
options?: Record<string, string> | undefined;
|
|
1010
1538
|
inventory_items?: {
|
|
1011
1539
|
inventory_item_id: string;
|
|
1012
1540
|
required_quantity: number;
|
|
@@ -1033,26 +1561,13 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1033
1561
|
title: string;
|
|
1034
1562
|
is_giftcard: boolean;
|
|
1035
1563
|
discountable: boolean;
|
|
1036
|
-
|
|
1037
|
-
description?: string | undefined;
|
|
1038
|
-
images?: {
|
|
1039
|
-
url: string;
|
|
1040
|
-
}[] | undefined;
|
|
1041
|
-
thumbnail?: string | undefined;
|
|
1042
|
-
handle?: string | undefined;
|
|
1043
|
-
external_id?: string | undefined;
|
|
1044
|
-
type_id?: string | undefined;
|
|
1045
|
-
collection_id?: string | undefined;
|
|
1046
|
-
categories?: {
|
|
1047
|
-
id: string;
|
|
1048
|
-
}[] | undefined;
|
|
1049
|
-
tags?: {
|
|
1050
|
-
id: string;
|
|
1051
|
-
}[] | undefined;
|
|
1564
|
+
length?: number | undefined;
|
|
1052
1565
|
options?: {
|
|
1053
1566
|
values: string[];
|
|
1054
1567
|
title: string;
|
|
1055
1568
|
}[] | undefined;
|
|
1569
|
+
handle?: string | undefined;
|
|
1570
|
+
description?: string | undefined;
|
|
1056
1571
|
variants?: {
|
|
1057
1572
|
title: string;
|
|
1058
1573
|
prices: {
|
|
@@ -1064,63 +1579,61 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1064
1579
|
}[];
|
|
1065
1580
|
allow_backorder: false;
|
|
1066
1581
|
manage_inventory: true;
|
|
1067
|
-
sku?: string | undefined;
|
|
1068
|
-
ean?: string | undefined;
|
|
1069
|
-
upc?: string | undefined;
|
|
1070
|
-
barcode?: string | undefined;
|
|
1071
|
-
hs_code?: string | undefined;
|
|
1072
|
-
mid_code?: string | undefined;
|
|
1073
|
-
variant_rank?: number | undefined;
|
|
1074
|
-
weight?: number | undefined;
|
|
1075
1582
|
length?: number | undefined;
|
|
1076
|
-
|
|
1583
|
+
options?: Record<string, string> | undefined;
|
|
1077
1584
|
width?: number | undefined;
|
|
1585
|
+
weight?: number | undefined;
|
|
1586
|
+
height?: number | undefined;
|
|
1078
1587
|
origin_country?: string | undefined;
|
|
1588
|
+
hs_code?: string | undefined;
|
|
1589
|
+
mid_code?: string | undefined;
|
|
1079
1590
|
material?: string | undefined;
|
|
1080
1591
|
metadata?: Record<string, unknown> | undefined;
|
|
1081
|
-
|
|
1592
|
+
sku?: string | undefined;
|
|
1593
|
+
ean?: string | undefined;
|
|
1594
|
+
upc?: string | undefined;
|
|
1595
|
+
barcode?: string | undefined;
|
|
1596
|
+
variant_rank?: number | undefined;
|
|
1082
1597
|
inventory_items?: {
|
|
1083
1598
|
inventory_item_id: string;
|
|
1084
1599
|
required_quantity: number;
|
|
1085
1600
|
}[] | undefined;
|
|
1086
1601
|
}[] | undefined;
|
|
1602
|
+
subtitle?: string | undefined;
|
|
1603
|
+
thumbnail?: string | undefined;
|
|
1604
|
+
width?: number | undefined;
|
|
1087
1605
|
weight?: number | undefined;
|
|
1088
|
-
length?: number | undefined;
|
|
1089
1606
|
height?: number | undefined;
|
|
1090
|
-
|
|
1607
|
+
origin_country?: string | undefined;
|
|
1091
1608
|
hs_code?: string | undefined;
|
|
1092
1609
|
mid_code?: string | undefined;
|
|
1093
|
-
origin_country?: string | undefined;
|
|
1094
1610
|
material?: string | undefined;
|
|
1095
|
-
|
|
1096
|
-
|
|
1611
|
+
collection_id?: string | undefined;
|
|
1612
|
+
categories?: {
|
|
1613
|
+
id: string;
|
|
1614
|
+
}[] | undefined;
|
|
1615
|
+
type_id?: string | undefined;
|
|
1616
|
+
tags?: {
|
|
1097
1617
|
id: string;
|
|
1098
1618
|
}[] | undefined;
|
|
1099
|
-
}, {
|
|
1100
|
-
title: string;
|
|
1101
|
-
subtitle?: string | undefined;
|
|
1102
|
-
description?: string | undefined;
|
|
1103
|
-
is_giftcard?: boolean | undefined;
|
|
1104
|
-
discountable?: boolean | undefined;
|
|
1105
1619
|
images?: {
|
|
1106
1620
|
url: string;
|
|
1107
1621
|
}[] | undefined;
|
|
1108
|
-
thumbnail?: string | undefined;
|
|
1109
|
-
handle?: string | undefined;
|
|
1110
|
-
status?: "draft" | "proposed" | undefined;
|
|
1111
1622
|
external_id?: string | undefined;
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
categories?: {
|
|
1115
|
-
id: string;
|
|
1116
|
-
}[] | undefined;
|
|
1117
|
-
tags?: {
|
|
1623
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1624
|
+
sales_channels?: {
|
|
1118
1625
|
id: string;
|
|
1119
1626
|
}[] | undefined;
|
|
1627
|
+
}, {
|
|
1628
|
+
title: string;
|
|
1629
|
+
status?: "draft" | "proposed" | undefined;
|
|
1630
|
+
length?: number | undefined;
|
|
1120
1631
|
options?: {
|
|
1121
1632
|
values: string[];
|
|
1122
1633
|
title: string;
|
|
1123
1634
|
}[] | undefined;
|
|
1635
|
+
handle?: string | undefined;
|
|
1636
|
+
description?: string | undefined;
|
|
1124
1637
|
variants?: {
|
|
1125
1638
|
title: string;
|
|
1126
1639
|
prices: {
|
|
@@ -1130,36 +1643,51 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1130
1643
|
max_quantity?: number | null | undefined;
|
|
1131
1644
|
rules?: Record<string, string> | undefined;
|
|
1132
1645
|
}[];
|
|
1646
|
+
length?: number | undefined;
|
|
1647
|
+
options?: Record<string, string> | undefined;
|
|
1648
|
+
width?: number | undefined;
|
|
1649
|
+
weight?: number | undefined;
|
|
1650
|
+
height?: number | undefined;
|
|
1651
|
+
origin_country?: string | undefined;
|
|
1652
|
+
hs_code?: string | undefined;
|
|
1653
|
+
mid_code?: string | undefined;
|
|
1654
|
+
material?: string | undefined;
|
|
1655
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1133
1656
|
sku?: string | undefined;
|
|
1134
1657
|
ean?: string | undefined;
|
|
1135
1658
|
upc?: string | undefined;
|
|
1136
1659
|
barcode?: string | undefined;
|
|
1137
|
-
hs_code?: string | undefined;
|
|
1138
|
-
mid_code?: string | undefined;
|
|
1139
1660
|
allow_backorder?: false | undefined;
|
|
1140
1661
|
manage_inventory?: true | undefined;
|
|
1141
1662
|
variant_rank?: number | undefined;
|
|
1142
|
-
weight?: number | undefined;
|
|
1143
|
-
length?: number | undefined;
|
|
1144
|
-
height?: number | undefined;
|
|
1145
|
-
width?: number | undefined;
|
|
1146
|
-
origin_country?: string | undefined;
|
|
1147
|
-
material?: string | undefined;
|
|
1148
|
-
metadata?: Record<string, unknown> | undefined;
|
|
1149
|
-
options?: Record<string, string> | undefined;
|
|
1150
1663
|
inventory_items?: {
|
|
1151
1664
|
inventory_item_id: string;
|
|
1152
1665
|
required_quantity: number;
|
|
1153
1666
|
}[] | undefined;
|
|
1154
1667
|
}[] | undefined;
|
|
1668
|
+
subtitle?: string | undefined;
|
|
1669
|
+
is_giftcard?: boolean | undefined;
|
|
1670
|
+
thumbnail?: string | undefined;
|
|
1671
|
+
width?: number | undefined;
|
|
1155
1672
|
weight?: number | undefined;
|
|
1156
|
-
length?: number | undefined;
|
|
1157
1673
|
height?: number | undefined;
|
|
1158
|
-
|
|
1674
|
+
origin_country?: string | undefined;
|
|
1159
1675
|
hs_code?: string | undefined;
|
|
1160
1676
|
mid_code?: string | undefined;
|
|
1161
|
-
origin_country?: string | undefined;
|
|
1162
1677
|
material?: string | undefined;
|
|
1678
|
+
collection_id?: string | undefined;
|
|
1679
|
+
categories?: {
|
|
1680
|
+
id: string;
|
|
1681
|
+
}[] | undefined;
|
|
1682
|
+
type_id?: string | undefined;
|
|
1683
|
+
tags?: {
|
|
1684
|
+
id: string;
|
|
1685
|
+
}[] | undefined;
|
|
1686
|
+
images?: {
|
|
1687
|
+
url: string;
|
|
1688
|
+
}[] | undefined;
|
|
1689
|
+
discountable?: boolean | undefined;
|
|
1690
|
+
external_id?: string | undefined;
|
|
1163
1691
|
metadata?: Record<string, unknown> | undefined;
|
|
1164
1692
|
sales_channels?: {
|
|
1165
1693
|
id: string;
|
|
@@ -1319,13 +1847,13 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1319
1847
|
title: z.ZodOptional<z.ZodString>;
|
|
1320
1848
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1321
1849
|
}, "strip", z.ZodTypeAny, {
|
|
1850
|
+
values?: string[] | undefined;
|
|
1322
1851
|
id?: string | undefined;
|
|
1323
1852
|
title?: string | undefined;
|
|
1324
|
-
values?: string[] | undefined;
|
|
1325
1853
|
}, {
|
|
1854
|
+
values?: string[] | undefined;
|
|
1326
1855
|
id?: string | undefined;
|
|
1327
1856
|
title?: string | undefined;
|
|
1328
|
-
values?: string[] | undefined;
|
|
1329
1857
|
}>, "many">>;
|
|
1330
1858
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1331
1859
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1370,8 +1898,19 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1370
1898
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1371
1899
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1372
1900
|
}, "strict", z.ZodTypeAny, {
|
|
1901
|
+
length?: number | null | undefined;
|
|
1902
|
+
options?: Record<string, string> | undefined;
|
|
1373
1903
|
id?: string | undefined;
|
|
1374
1904
|
title?: string | undefined;
|
|
1905
|
+
width?: number | null | undefined;
|
|
1906
|
+
weight?: number | null | undefined;
|
|
1907
|
+
height?: number | null | undefined;
|
|
1908
|
+
origin_country?: string | null | undefined;
|
|
1909
|
+
hs_code?: string | null | undefined;
|
|
1910
|
+
mid_code?: string | null | undefined;
|
|
1911
|
+
material?: string | null | undefined;
|
|
1912
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1913
|
+
sku?: string | null | undefined;
|
|
1375
1914
|
prices?: {
|
|
1376
1915
|
id?: string | undefined;
|
|
1377
1916
|
currency_code?: string | undefined;
|
|
@@ -1380,26 +1919,26 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1380
1919
|
max_quantity?: number | null | undefined;
|
|
1381
1920
|
rules?: Record<string, string> | undefined;
|
|
1382
1921
|
}[] | undefined;
|
|
1383
|
-
sku?: string | null | undefined;
|
|
1384
1922
|
ean?: string | null | undefined;
|
|
1385
1923
|
upc?: string | null | undefined;
|
|
1386
1924
|
barcode?: string | null | undefined;
|
|
1387
|
-
hs_code?: string | null | undefined;
|
|
1388
|
-
mid_code?: string | null | undefined;
|
|
1389
1925
|
allow_backorder?: boolean | undefined;
|
|
1390
1926
|
manage_inventory?: boolean | undefined;
|
|
1391
1927
|
variant_rank?: number | undefined;
|
|
1392
|
-
|
|
1928
|
+
}, {
|
|
1393
1929
|
length?: number | null | undefined;
|
|
1394
|
-
|
|
1930
|
+
options?: Record<string, string> | undefined;
|
|
1931
|
+
id?: string | undefined;
|
|
1932
|
+
title?: string | undefined;
|
|
1395
1933
|
width?: number | null | undefined;
|
|
1934
|
+
weight?: number | null | undefined;
|
|
1935
|
+
height?: number | null | undefined;
|
|
1396
1936
|
origin_country?: string | null | undefined;
|
|
1937
|
+
hs_code?: string | null | undefined;
|
|
1938
|
+
mid_code?: string | null | undefined;
|
|
1397
1939
|
material?: string | null | undefined;
|
|
1398
1940
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1399
|
-
|
|
1400
|
-
}, {
|
|
1401
|
-
id?: string | undefined;
|
|
1402
|
-
title?: string | undefined;
|
|
1941
|
+
sku?: string | null | undefined;
|
|
1403
1942
|
prices?: {
|
|
1404
1943
|
id?: string | undefined;
|
|
1405
1944
|
currency_code?: string | undefined;
|
|
@@ -1408,23 +1947,12 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1408
1947
|
max_quantity?: number | null | undefined;
|
|
1409
1948
|
rules?: Record<string, string> | undefined;
|
|
1410
1949
|
}[] | undefined;
|
|
1411
|
-
sku?: string | null | undefined;
|
|
1412
1950
|
ean?: string | null | undefined;
|
|
1413
1951
|
upc?: string | null | undefined;
|
|
1414
1952
|
barcode?: string | null | undefined;
|
|
1415
|
-
hs_code?: string | null | undefined;
|
|
1416
|
-
mid_code?: string | null | undefined;
|
|
1417
1953
|
allow_backorder?: boolean | undefined;
|
|
1418
1954
|
manage_inventory?: boolean | undefined;
|
|
1419
1955
|
variant_rank?: number | undefined;
|
|
1420
|
-
weight?: number | null | undefined;
|
|
1421
|
-
length?: number | null | undefined;
|
|
1422
|
-
height?: number | null | undefined;
|
|
1423
|
-
width?: number | null | undefined;
|
|
1424
|
-
origin_country?: string | null | undefined;
|
|
1425
|
-
material?: string | null | undefined;
|
|
1426
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1427
|
-
options?: Record<string, string> | undefined;
|
|
1428
1956
|
}>, "many">>;
|
|
1429
1957
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1430
1958
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1471,17 +1999,28 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1471
1999
|
id: string;
|
|
1472
2000
|
}>, "many">>;
|
|
1473
2001
|
}, "strict", z.ZodTypeAny, {
|
|
1474
|
-
|
|
1475
|
-
discountable?: boolean | undefined;
|
|
1476
|
-
is_giftcard?: boolean | undefined;
|
|
2002
|
+
length?: number | null | undefined;
|
|
1477
2003
|
options?: {
|
|
2004
|
+
values?: string[] | undefined;
|
|
1478
2005
|
id?: string | undefined;
|
|
1479
2006
|
title?: string | undefined;
|
|
1480
|
-
values?: string[] | undefined;
|
|
1481
2007
|
}[] | undefined;
|
|
2008
|
+
handle?: string | null | undefined;
|
|
2009
|
+
description?: string | null | undefined;
|
|
1482
2010
|
variants?: {
|
|
2011
|
+
length?: number | null | undefined;
|
|
2012
|
+
options?: Record<string, string> | undefined;
|
|
1483
2013
|
id?: string | undefined;
|
|
1484
2014
|
title?: string | undefined;
|
|
2015
|
+
width?: number | null | undefined;
|
|
2016
|
+
weight?: number | null | undefined;
|
|
2017
|
+
height?: number | null | undefined;
|
|
2018
|
+
origin_country?: string | null | undefined;
|
|
2019
|
+
hs_code?: string | null | undefined;
|
|
2020
|
+
mid_code?: string | null | undefined;
|
|
2021
|
+
material?: string | null | undefined;
|
|
2022
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2023
|
+
sku?: string | null | undefined;
|
|
1485
2024
|
prices?: {
|
|
1486
2025
|
id?: string | undefined;
|
|
1487
2026
|
currency_code?: string | undefined;
|
|
@@ -1490,64 +2029,64 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1490
2029
|
max_quantity?: number | null | undefined;
|
|
1491
2030
|
rules?: Record<string, string> | undefined;
|
|
1492
2031
|
}[] | undefined;
|
|
1493
|
-
sku?: string | null | undefined;
|
|
1494
2032
|
ean?: string | null | undefined;
|
|
1495
2033
|
upc?: string | null | undefined;
|
|
1496
2034
|
barcode?: string | null | undefined;
|
|
1497
|
-
hs_code?: string | null | undefined;
|
|
1498
|
-
mid_code?: string | null | undefined;
|
|
1499
2035
|
allow_backorder?: boolean | undefined;
|
|
1500
2036
|
manage_inventory?: boolean | undefined;
|
|
1501
2037
|
variant_rank?: number | undefined;
|
|
1502
|
-
weight?: number | null | undefined;
|
|
1503
|
-
length?: number | null | undefined;
|
|
1504
|
-
height?: number | null | undefined;
|
|
1505
|
-
width?: number | null | undefined;
|
|
1506
|
-
origin_country?: string | null | undefined;
|
|
1507
|
-
material?: string | null | undefined;
|
|
1508
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1509
|
-
options?: Record<string, string> | undefined;
|
|
1510
2038
|
}[] | undefined;
|
|
2039
|
+
title?: string | undefined;
|
|
1511
2040
|
subtitle?: string | null | undefined;
|
|
1512
|
-
|
|
1513
|
-
images?: {
|
|
1514
|
-
url: string;
|
|
1515
|
-
}[] | undefined;
|
|
2041
|
+
is_giftcard?: boolean | undefined;
|
|
1516
2042
|
thumbnail?: string | null | undefined;
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
2043
|
+
width?: number | null | undefined;
|
|
2044
|
+
weight?: number | null | undefined;
|
|
2045
|
+
height?: number | null | undefined;
|
|
2046
|
+
origin_country?: string | null | undefined;
|
|
2047
|
+
hs_code?: string | null | undefined;
|
|
2048
|
+
mid_code?: string | null | undefined;
|
|
2049
|
+
material?: string | null | undefined;
|
|
1520
2050
|
collection_id?: string | null | undefined;
|
|
1521
2051
|
categories?: {
|
|
1522
2052
|
id: string;
|
|
1523
2053
|
}[] | undefined;
|
|
2054
|
+
type_id?: string | null | undefined;
|
|
1524
2055
|
tags?: {
|
|
1525
2056
|
id: string;
|
|
1526
2057
|
}[] | undefined;
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
mid_code?: string | null | undefined;
|
|
1533
|
-
origin_country?: string | null | undefined;
|
|
1534
|
-
material?: string | null | undefined;
|
|
2058
|
+
images?: {
|
|
2059
|
+
url: string;
|
|
2060
|
+
}[] | undefined;
|
|
2061
|
+
discountable?: boolean | undefined;
|
|
2062
|
+
external_id?: string | null | undefined;
|
|
1535
2063
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1536
2064
|
sales_channels?: {
|
|
1537
2065
|
id: string;
|
|
1538
2066
|
}[] | undefined;
|
|
1539
2067
|
}, {
|
|
1540
|
-
|
|
1541
|
-
discountable?: boolean | undefined;
|
|
1542
|
-
is_giftcard?: boolean | undefined;
|
|
2068
|
+
length?: number | null | undefined;
|
|
1543
2069
|
options?: {
|
|
2070
|
+
values?: string[] | undefined;
|
|
1544
2071
|
id?: string | undefined;
|
|
1545
2072
|
title?: string | undefined;
|
|
1546
|
-
values?: string[] | undefined;
|
|
1547
2073
|
}[] | undefined;
|
|
2074
|
+
handle?: string | null | undefined;
|
|
2075
|
+
description?: string | null | undefined;
|
|
1548
2076
|
variants?: {
|
|
2077
|
+
length?: number | null | undefined;
|
|
2078
|
+
options?: Record<string, string> | undefined;
|
|
1549
2079
|
id?: string | undefined;
|
|
1550
2080
|
title?: string | undefined;
|
|
2081
|
+
width?: number | null | undefined;
|
|
2082
|
+
weight?: number | null | undefined;
|
|
2083
|
+
height?: number | null | undefined;
|
|
2084
|
+
origin_country?: string | null | undefined;
|
|
2085
|
+
hs_code?: string | null | undefined;
|
|
2086
|
+
mid_code?: string | null | undefined;
|
|
2087
|
+
material?: string | null | undefined;
|
|
2088
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2089
|
+
sku?: string | null | undefined;
|
|
1551
2090
|
prices?: {
|
|
1552
2091
|
id?: string | undefined;
|
|
1553
2092
|
currency_code?: string | undefined;
|
|
@@ -1556,48 +2095,37 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1556
2095
|
max_quantity?: number | null | undefined;
|
|
1557
2096
|
rules?: Record<string, string> | undefined;
|
|
1558
2097
|
}[] | undefined;
|
|
1559
|
-
sku?: string | null | undefined;
|
|
1560
2098
|
ean?: string | null | undefined;
|
|
1561
2099
|
upc?: string | null | undefined;
|
|
1562
2100
|
barcode?: string | null | undefined;
|
|
1563
|
-
hs_code?: string | null | undefined;
|
|
1564
|
-
mid_code?: string | null | undefined;
|
|
1565
2101
|
allow_backorder?: boolean | undefined;
|
|
1566
2102
|
manage_inventory?: boolean | undefined;
|
|
1567
2103
|
variant_rank?: number | undefined;
|
|
1568
|
-
weight?: number | null | undefined;
|
|
1569
|
-
length?: number | null | undefined;
|
|
1570
|
-
height?: number | null | undefined;
|
|
1571
|
-
width?: number | null | undefined;
|
|
1572
|
-
origin_country?: string | null | undefined;
|
|
1573
|
-
material?: string | null | undefined;
|
|
1574
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
1575
|
-
options?: Record<string, string> | undefined;
|
|
1576
2104
|
}[] | undefined;
|
|
2105
|
+
title?: string | undefined;
|
|
1577
2106
|
subtitle?: string | null | undefined;
|
|
1578
|
-
|
|
1579
|
-
images?: {
|
|
1580
|
-
url: string;
|
|
1581
|
-
}[] | undefined;
|
|
2107
|
+
is_giftcard?: boolean | undefined;
|
|
1582
2108
|
thumbnail?: string | null | undefined;
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
2109
|
+
width?: number | null | undefined;
|
|
2110
|
+
weight?: number | null | undefined;
|
|
2111
|
+
height?: number | null | undefined;
|
|
2112
|
+
origin_country?: string | null | undefined;
|
|
2113
|
+
hs_code?: string | null | undefined;
|
|
2114
|
+
mid_code?: string | null | undefined;
|
|
2115
|
+
material?: string | null | undefined;
|
|
1586
2116
|
collection_id?: string | null | undefined;
|
|
1587
2117
|
categories?: {
|
|
1588
2118
|
id: string;
|
|
1589
2119
|
}[] | undefined;
|
|
2120
|
+
type_id?: string | null | undefined;
|
|
1590
2121
|
tags?: {
|
|
1591
2122
|
id: string;
|
|
1592
2123
|
}[] | undefined;
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
mid_code?: string | null | undefined;
|
|
1599
|
-
origin_country?: string | null | undefined;
|
|
1600
|
-
material?: string | null | undefined;
|
|
2124
|
+
images?: {
|
|
2125
|
+
url: string;
|
|
2126
|
+
}[] | undefined;
|
|
2127
|
+
discountable?: boolean | undefined;
|
|
2128
|
+
external_id?: string | null | undefined;
|
|
1601
2129
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1602
2130
|
sales_channels?: {
|
|
1603
2131
|
id: string;
|