@spree/sdk 0.6.8 → 0.7.0
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/README.md +118 -120
- package/dist/index.cjs +51 -242
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -124
- package/dist/index.d.ts +87 -124
- package/dist/index.js +39 -230
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +129 -418
- package/dist/types/index.d.ts +129 -418
- package/dist/zod/index.cjs +311 -550
- package/dist/zod/index.cjs.map +1 -1
- package/dist/zod/index.d.cts +120 -713
- package/dist/zod/index.d.ts +120 -713
- package/dist/zod/index.js +257 -489
- package/dist/zod/index.js.map +1 -1
- package/package.json +5 -2
package/dist/zod/index.cjs
CHANGED
|
@@ -2,64 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
|
-
// src/zod/generated/
|
|
6
|
-
var
|
|
7
|
-
id: zod.z.string(),
|
|
8
|
-
access_counter: zod.z.number(),
|
|
9
|
-
filename: zod.z.string(),
|
|
10
|
-
content_type: zod.z.string(),
|
|
11
|
-
created_at: zod.z.string(),
|
|
12
|
-
updated_at: zod.z.string(),
|
|
13
|
-
download_url: zod.z.string(),
|
|
14
|
-
authorizable: zod.z.boolean(),
|
|
15
|
-
expired: zod.z.boolean(),
|
|
16
|
-
access_limit_exceeded: zod.z.boolean()
|
|
17
|
-
});
|
|
18
|
-
var StoreOptionValueSchema = zod.z.object({
|
|
19
|
-
id: zod.z.string(),
|
|
20
|
-
option_type_id: zod.z.string(),
|
|
21
|
-
name: zod.z.string(),
|
|
22
|
-
presentation: zod.z.string(),
|
|
23
|
-
position: zod.z.number(),
|
|
24
|
-
option_type_name: zod.z.string(),
|
|
25
|
-
option_type_presentation: zod.z.string()
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
// src/zod/generated/AdminLineItem.ts
|
|
29
|
-
var AdminLineItemSchema = zod.z.object({
|
|
30
|
-
id: zod.z.string(),
|
|
31
|
-
variant_id: zod.z.string(),
|
|
32
|
-
quantity: zod.z.number(),
|
|
33
|
-
currency: zod.z.string(),
|
|
34
|
-
name: zod.z.string(),
|
|
35
|
-
slug: zod.z.string(),
|
|
36
|
-
options_text: zod.z.string(),
|
|
37
|
-
price: zod.z.string(),
|
|
38
|
-
display_price: zod.z.string(),
|
|
39
|
-
total: zod.z.string(),
|
|
40
|
-
display_total: zod.z.string(),
|
|
41
|
-
adjustment_total: zod.z.string(),
|
|
42
|
-
display_adjustment_total: zod.z.string(),
|
|
43
|
-
additional_tax_total: zod.z.string(),
|
|
44
|
-
display_additional_tax_total: zod.z.string(),
|
|
45
|
-
included_tax_total: zod.z.string(),
|
|
46
|
-
display_included_tax_total: zod.z.string(),
|
|
47
|
-
promo_total: zod.z.string(),
|
|
48
|
-
display_promo_total: zod.z.string(),
|
|
49
|
-
pre_tax_amount: zod.z.string(),
|
|
50
|
-
display_pre_tax_amount: zod.z.string(),
|
|
51
|
-
discounted_amount: zod.z.string(),
|
|
52
|
-
display_discounted_amount: zod.z.string(),
|
|
53
|
-
display_compare_at_amount: zod.z.string().nullable(),
|
|
54
|
-
created_at: zod.z.string(),
|
|
55
|
-
updated_at: zod.z.string(),
|
|
56
|
-
compare_at_amount: zod.z.string().nullable(),
|
|
57
|
-
thumbnail_url: zod.z.string().nullable(),
|
|
58
|
-
option_values: zod.z.array(StoreOptionValueSchema),
|
|
59
|
-
digital_links: zod.z.array(StoreDigitalLinkSchema),
|
|
60
|
-
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable()
|
|
61
|
-
});
|
|
62
|
-
var StoreAddressSchema = zod.z.object({
|
|
5
|
+
// src/zod/generated/Address.ts
|
|
6
|
+
var AddressSchema = zod.z.object({
|
|
63
7
|
id: zod.z.string(),
|
|
64
8
|
firstname: zod.z.string().nullable(),
|
|
65
9
|
lastname: zod.z.string().nullable(),
|
|
@@ -77,359 +21,7 @@ var StoreAddressSchema = zod.z.object({
|
|
|
77
21
|
quick_checkout: zod.z.boolean(),
|
|
78
22
|
state_name: zod.z.string().nullable()
|
|
79
23
|
});
|
|
80
|
-
var
|
|
81
|
-
id: zod.z.string(),
|
|
82
|
-
promotion_id: zod.z.string(),
|
|
83
|
-
name: zod.z.string(),
|
|
84
|
-
description: zod.z.string().nullable(),
|
|
85
|
-
code: zod.z.string().nullable(),
|
|
86
|
-
amount: zod.z.string(),
|
|
87
|
-
display_amount: zod.z.string()
|
|
88
|
-
});
|
|
89
|
-
var StorePaymentMethodSchema = zod.z.object({
|
|
90
|
-
id: zod.z.string(),
|
|
91
|
-
name: zod.z.string(),
|
|
92
|
-
description: zod.z.string().nullable(),
|
|
93
|
-
type: zod.z.string(),
|
|
94
|
-
session_required: zod.z.boolean()
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
// src/zod/generated/StorePayment.ts
|
|
98
|
-
var StorePaymentSchema = zod.z.object({
|
|
99
|
-
id: zod.z.string(),
|
|
100
|
-
payment_method_id: zod.z.string(),
|
|
101
|
-
state: zod.z.string(),
|
|
102
|
-
response_code: zod.z.string().nullable(),
|
|
103
|
-
number: zod.z.string(),
|
|
104
|
-
amount: zod.z.string(),
|
|
105
|
-
display_amount: zod.z.string(),
|
|
106
|
-
created_at: zod.z.string(),
|
|
107
|
-
updated_at: zod.z.string(),
|
|
108
|
-
source_type: zod.z.string().nullable(),
|
|
109
|
-
source_id: zod.z.string().nullable(),
|
|
110
|
-
source: zod.z.any(),
|
|
111
|
-
payment_method: StorePaymentMethodSchema
|
|
112
|
-
});
|
|
113
|
-
var StoreShippingMethodSchema = zod.z.object({
|
|
114
|
-
id: zod.z.string(),
|
|
115
|
-
name: zod.z.string(),
|
|
116
|
-
code: zod.z.string().nullable()
|
|
117
|
-
});
|
|
118
|
-
var StoreShippingRateSchema = zod.z.object({
|
|
119
|
-
id: zod.z.string(),
|
|
120
|
-
shipping_method_id: zod.z.string(),
|
|
121
|
-
name: zod.z.string(),
|
|
122
|
-
selected: zod.z.boolean(),
|
|
123
|
-
cost: zod.z.string(),
|
|
124
|
-
display_cost: zod.z.string(),
|
|
125
|
-
shipping_method: StoreShippingMethodSchema
|
|
126
|
-
});
|
|
127
|
-
var StoreStockLocationSchema = zod.z.object({
|
|
128
|
-
id: zod.z.string(),
|
|
129
|
-
state_abbr: zod.z.string().nullable(),
|
|
130
|
-
name: zod.z.string(),
|
|
131
|
-
address1: zod.z.string().nullable(),
|
|
132
|
-
city: zod.z.string().nullable(),
|
|
133
|
-
zipcode: zod.z.string().nullable(),
|
|
134
|
-
country_iso: zod.z.string().nullable(),
|
|
135
|
-
country_name: zod.z.string().nullable(),
|
|
136
|
-
state_text: zod.z.string().nullable()
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
// src/zod/generated/StoreShipment.ts
|
|
140
|
-
var StoreShipmentSchema = zod.z.object({
|
|
141
|
-
id: zod.z.string(),
|
|
142
|
-
number: zod.z.string(),
|
|
143
|
-
state: zod.z.string(),
|
|
144
|
-
tracking: zod.z.string().nullable(),
|
|
145
|
-
tracking_url: zod.z.string().nullable(),
|
|
146
|
-
cost: zod.z.string(),
|
|
147
|
-
display_cost: zod.z.string(),
|
|
148
|
-
shipped_at: zod.z.string().nullable(),
|
|
149
|
-
created_at: zod.z.string(),
|
|
150
|
-
updated_at: zod.z.string(),
|
|
151
|
-
shipping_method: StoreShippingMethodSchema,
|
|
152
|
-
stock_location: StoreStockLocationSchema,
|
|
153
|
-
shipping_rates: zod.z.array(StoreShippingRateSchema)
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
// src/zod/generated/AdminOrder.ts
|
|
157
|
-
var AdminOrderSchema = zod.z.object({
|
|
158
|
-
id: zod.z.string(),
|
|
159
|
-
number: zod.z.string(),
|
|
160
|
-
state: zod.z.string(),
|
|
161
|
-
token: zod.z.string(),
|
|
162
|
-
email: zod.z.string().nullable(),
|
|
163
|
-
special_instructions: zod.z.string().nullable(),
|
|
164
|
-
currency: zod.z.string(),
|
|
165
|
-
locale: zod.z.string().nullable(),
|
|
166
|
-
item_count: zod.z.number(),
|
|
167
|
-
state_lock_version: zod.z.number(),
|
|
168
|
-
shipment_state: zod.z.string().nullable(),
|
|
169
|
-
payment_state: zod.z.string().nullable(),
|
|
170
|
-
item_total: zod.z.string(),
|
|
171
|
-
display_item_total: zod.z.string(),
|
|
172
|
-
ship_total: zod.z.string(),
|
|
173
|
-
display_ship_total: zod.z.string(),
|
|
174
|
-
adjustment_total: zod.z.string(),
|
|
175
|
-
display_adjustment_total: zod.z.string(),
|
|
176
|
-
promo_total: zod.z.string(),
|
|
177
|
-
display_promo_total: zod.z.string(),
|
|
178
|
-
tax_total: zod.z.string(),
|
|
179
|
-
display_tax_total: zod.z.string(),
|
|
180
|
-
included_tax_total: zod.z.string(),
|
|
181
|
-
display_included_tax_total: zod.z.string(),
|
|
182
|
-
additional_tax_total: zod.z.string(),
|
|
183
|
-
display_additional_tax_total: zod.z.string(),
|
|
184
|
-
total: zod.z.string(),
|
|
185
|
-
display_total: zod.z.string(),
|
|
186
|
-
completed_at: zod.z.string().nullable(),
|
|
187
|
-
created_at: zod.z.string(),
|
|
188
|
-
updated_at: zod.z.string(),
|
|
189
|
-
order_promotions: zod.z.array(StoreOrderPromotionSchema),
|
|
190
|
-
line_items: zod.z.array(AdminLineItemSchema),
|
|
191
|
-
shipments: zod.z.array(StoreShipmentSchema),
|
|
192
|
-
payments: zod.z.array(StorePaymentSchema),
|
|
193
|
-
bill_address: StoreAddressSchema.nullable(),
|
|
194
|
-
ship_address: StoreAddressSchema.nullable(),
|
|
195
|
-
payment_methods: zod.z.array(StorePaymentMethodSchema),
|
|
196
|
-
channel: zod.z.string().nullable(),
|
|
197
|
-
last_ip_address: zod.z.string().nullable(),
|
|
198
|
-
considered_risky: zod.z.boolean(),
|
|
199
|
-
confirmation_delivered: zod.z.boolean(),
|
|
200
|
-
store_owner_notification_delivered: zod.z.boolean(),
|
|
201
|
-
internal_note: zod.z.string().nullable(),
|
|
202
|
-
approver_id: zod.z.string().nullable(),
|
|
203
|
-
canceled_at: zod.z.string().nullable(),
|
|
204
|
-
approved_at: zod.z.string().nullable(),
|
|
205
|
-
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
|
|
206
|
-
canceler_id: zod.z.string().nullable(),
|
|
207
|
-
created_by_id: zod.z.string().nullable(),
|
|
208
|
-
user: zod.z.lazy(() => AdminCustomerSchema).optional()
|
|
209
|
-
});
|
|
210
|
-
|
|
211
|
-
// src/zod/generated/AdminCustomer.ts
|
|
212
|
-
var AdminCustomerSchema = zod.z.object({
|
|
213
|
-
id: zod.z.string(),
|
|
214
|
-
email: zod.z.string(),
|
|
215
|
-
first_name: zod.z.string().nullable(),
|
|
216
|
-
last_name: zod.z.string().nullable(),
|
|
217
|
-
created_at: zod.z.string(),
|
|
218
|
-
updated_at: zod.z.string(),
|
|
219
|
-
addresses: zod.z.array(StoreAddressSchema),
|
|
220
|
-
default_billing_address: StoreAddressSchema.nullable(),
|
|
221
|
-
default_shipping_address: StoreAddressSchema.nullable(),
|
|
222
|
-
phone: zod.z.string().nullable(),
|
|
223
|
-
login: zod.z.string().nullable(),
|
|
224
|
-
accepts_email_marketing: zod.z.boolean(),
|
|
225
|
-
last_sign_in_at: zod.z.string().nullable(),
|
|
226
|
-
current_sign_in_at: zod.z.string().nullable(),
|
|
227
|
-
sign_in_count: zod.z.number(),
|
|
228
|
-
failed_attempts: zod.z.number(),
|
|
229
|
-
last_sign_in_ip: zod.z.string().nullable(),
|
|
230
|
-
current_sign_in_ip: zod.z.string().nullable(),
|
|
231
|
-
orders: zod.z.array(zod.z.lazy(() => AdminOrderSchema)).optional()
|
|
232
|
-
});
|
|
233
|
-
var AdminMetafieldSchema = zod.z.object({
|
|
234
|
-
id: zod.z.string(),
|
|
235
|
-
name: zod.z.string(),
|
|
236
|
-
type: zod.z.string(),
|
|
237
|
-
key: zod.z.string(),
|
|
238
|
-
value: zod.z.any(),
|
|
239
|
-
display_on: zod.z.string()
|
|
240
|
-
});
|
|
241
|
-
var AdminPriceSchema = zod.z.object({
|
|
242
|
-
id: zod.z.string(),
|
|
243
|
-
amount: zod.z.string().nullable(),
|
|
244
|
-
amount_in_cents: zod.z.number().nullable(),
|
|
245
|
-
compare_at_amount: zod.z.string().nullable(),
|
|
246
|
-
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
247
|
-
currency: zod.z.string().nullable(),
|
|
248
|
-
display_amount: zod.z.string().nullable(),
|
|
249
|
-
display_compare_at_amount: zod.z.string().nullable(),
|
|
250
|
-
price_list_id: zod.z.string().nullable(),
|
|
251
|
-
variant_id: zod.z.string().nullable(),
|
|
252
|
-
created_at: zod.z.string(),
|
|
253
|
-
updated_at: zod.z.string()
|
|
254
|
-
});
|
|
255
|
-
var StoreImageSchema = zod.z.object({
|
|
256
|
-
id: zod.z.string(),
|
|
257
|
-
viewable_id: zod.z.string(),
|
|
258
|
-
type: zod.z.string().nullable(),
|
|
259
|
-
viewable_type: zod.z.string(),
|
|
260
|
-
position: zod.z.number().nullable(),
|
|
261
|
-
alt: zod.z.string().nullable(),
|
|
262
|
-
created_at: zod.z.string(),
|
|
263
|
-
updated_at: zod.z.string(),
|
|
264
|
-
original_url: zod.z.string().nullable(),
|
|
265
|
-
mini_url: zod.z.string().nullable(),
|
|
266
|
-
small_url: zod.z.string().nullable(),
|
|
267
|
-
medium_url: zod.z.string().nullable(),
|
|
268
|
-
large_url: zod.z.string().nullable(),
|
|
269
|
-
xlarge_url: zod.z.string().nullable(),
|
|
270
|
-
og_image_url: zod.z.string().nullable()
|
|
271
|
-
});
|
|
272
|
-
var StorePriceSchema = zod.z.object({
|
|
273
|
-
id: zod.z.string(),
|
|
274
|
-
amount: zod.z.string().nullable(),
|
|
275
|
-
amount_in_cents: zod.z.number().nullable(),
|
|
276
|
-
compare_at_amount: zod.z.string().nullable(),
|
|
277
|
-
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
278
|
-
currency: zod.z.string().nullable(),
|
|
279
|
-
display_amount: zod.z.string().nullable(),
|
|
280
|
-
display_compare_at_amount: zod.z.string().nullable(),
|
|
281
|
-
price_list_id: zod.z.string().nullable()
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
// src/zod/generated/AdminVariant.ts
|
|
285
|
-
var AdminVariantSchema = zod.z.object({
|
|
286
|
-
id: zod.z.string(),
|
|
287
|
-
product_id: zod.z.string(),
|
|
288
|
-
sku: zod.z.string().nullable(),
|
|
289
|
-
is_master: zod.z.boolean(),
|
|
290
|
-
options_text: zod.z.string(),
|
|
291
|
-
track_inventory: zod.z.boolean(),
|
|
292
|
-
image_count: zod.z.number(),
|
|
293
|
-
created_at: zod.z.string(),
|
|
294
|
-
updated_at: zod.z.string(),
|
|
295
|
-
thumbnail: zod.z.string().nullable(),
|
|
296
|
-
purchasable: zod.z.boolean(),
|
|
297
|
-
in_stock: zod.z.boolean(),
|
|
298
|
-
backorderable: zod.z.boolean(),
|
|
299
|
-
weight: zod.z.number().nullable(),
|
|
300
|
-
height: zod.z.number().nullable(),
|
|
301
|
-
width: zod.z.number().nullable(),
|
|
302
|
-
depth: zod.z.number().nullable(),
|
|
303
|
-
price: StorePriceSchema,
|
|
304
|
-
original_price: StorePriceSchema.nullable(),
|
|
305
|
-
images: zod.z.array(StoreImageSchema).optional(),
|
|
306
|
-
option_values: zod.z.array(StoreOptionValueSchema),
|
|
307
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
308
|
-
position: zod.z.number(),
|
|
309
|
-
tax_category_id: zod.z.string().nullable(),
|
|
310
|
-
cost_price: zod.z.string().nullable(),
|
|
311
|
-
cost_currency: zod.z.string().nullable(),
|
|
312
|
-
deleted_at: zod.z.string().nullable(),
|
|
313
|
-
total_on_hand: zod.z.number().nullable(),
|
|
314
|
-
prices: zod.z.array(AdminPriceSchema).optional()
|
|
315
|
-
});
|
|
316
|
-
var StoreOptionTypeSchema = zod.z.object({
|
|
317
|
-
id: zod.z.string(),
|
|
318
|
-
name: zod.z.string(),
|
|
319
|
-
presentation: zod.z.string(),
|
|
320
|
-
position: zod.z.number()
|
|
321
|
-
});
|
|
322
|
-
var StoreMetafieldSchema = zod.z.object({
|
|
323
|
-
id: zod.z.string(),
|
|
324
|
-
name: zod.z.string(),
|
|
325
|
-
type: zod.z.string(),
|
|
326
|
-
key: zod.z.string(),
|
|
327
|
-
value: zod.z.any()
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
// src/zod/generated/StoreTaxon.ts
|
|
331
|
-
var StoreTaxonSchema = zod.z.object({
|
|
332
|
-
id: zod.z.string(),
|
|
333
|
-
name: zod.z.string(),
|
|
334
|
-
permalink: zod.z.string(),
|
|
335
|
-
position: zod.z.number(),
|
|
336
|
-
depth: zod.z.number(),
|
|
337
|
-
meta_title: zod.z.string().nullable(),
|
|
338
|
-
meta_description: zod.z.string().nullable(),
|
|
339
|
-
meta_keywords: zod.z.string().nullable(),
|
|
340
|
-
children_count: zod.z.number(),
|
|
341
|
-
created_at: zod.z.string(),
|
|
342
|
-
updated_at: zod.z.string(),
|
|
343
|
-
parent_id: zod.z.string().nullable(),
|
|
344
|
-
taxonomy_id: zod.z.string(),
|
|
345
|
-
description: zod.z.string(),
|
|
346
|
-
description_html: zod.z.string(),
|
|
347
|
-
image_url: zod.z.string().nullable(),
|
|
348
|
-
square_image_url: zod.z.string().nullable(),
|
|
349
|
-
is_root: zod.z.boolean(),
|
|
350
|
-
is_child: zod.z.boolean(),
|
|
351
|
-
is_leaf: zod.z.boolean(),
|
|
352
|
-
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
353
|
-
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
354
|
-
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
355
|
-
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
// src/zod/generated/AdminProduct.ts
|
|
359
|
-
var AdminProductSchema = zod.z.object({
|
|
360
|
-
id: zod.z.string(),
|
|
361
|
-
name: zod.z.string(),
|
|
362
|
-
description: zod.z.string().nullable(),
|
|
363
|
-
slug: zod.z.string(),
|
|
364
|
-
meta_description: zod.z.string().nullable(),
|
|
365
|
-
meta_keywords: zod.z.string().nullable(),
|
|
366
|
-
variant_count: zod.z.number(),
|
|
367
|
-
available_on: zod.z.string().nullable(),
|
|
368
|
-
created_at: zod.z.string(),
|
|
369
|
-
updated_at: zod.z.string(),
|
|
370
|
-
purchasable: zod.z.boolean(),
|
|
371
|
-
in_stock: zod.z.boolean(),
|
|
372
|
-
backorderable: zod.z.boolean(),
|
|
373
|
-
available: zod.z.boolean(),
|
|
374
|
-
default_variant_id: zod.z.string(),
|
|
375
|
-
thumbnail_url: zod.z.string().nullable(),
|
|
376
|
-
tags: zod.z.array(zod.z.string()),
|
|
377
|
-
price: StorePriceSchema,
|
|
378
|
-
original_price: StorePriceSchema.nullable(),
|
|
379
|
-
images: zod.z.array(StoreImageSchema).optional(),
|
|
380
|
-
variants: zod.z.array(AdminVariantSchema).optional(),
|
|
381
|
-
default_variant: AdminVariantSchema.optional(),
|
|
382
|
-
master_variant: AdminVariantSchema.optional(),
|
|
383
|
-
option_types: zod.z.array(StoreOptionTypeSchema).optional(),
|
|
384
|
-
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
385
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
386
|
-
status: zod.z.string(),
|
|
387
|
-
make_active_at: zod.z.string().nullable(),
|
|
388
|
-
discontinue_on: zod.z.string().nullable(),
|
|
389
|
-
deleted_at: zod.z.string().nullable(),
|
|
390
|
-
cost_price: zod.z.string().nullable(),
|
|
391
|
-
cost_currency: zod.z.string().nullable()
|
|
392
|
-
});
|
|
393
|
-
var AdminTaxonSchema = zod.z.object({
|
|
394
|
-
id: zod.z.string(),
|
|
395
|
-
name: zod.z.string(),
|
|
396
|
-
permalink: zod.z.string(),
|
|
397
|
-
position: zod.z.number(),
|
|
398
|
-
depth: zod.z.number(),
|
|
399
|
-
meta_title: zod.z.string().nullable(),
|
|
400
|
-
meta_description: zod.z.string().nullable(),
|
|
401
|
-
meta_keywords: zod.z.string().nullable(),
|
|
402
|
-
children_count: zod.z.number(),
|
|
403
|
-
created_at: zod.z.string(),
|
|
404
|
-
updated_at: zod.z.string(),
|
|
405
|
-
parent_id: zod.z.string().nullable(),
|
|
406
|
-
taxonomy_id: zod.z.string(),
|
|
407
|
-
description: zod.z.string(),
|
|
408
|
-
description_html: zod.z.string(),
|
|
409
|
-
image_url: zod.z.string().nullable(),
|
|
410
|
-
square_image_url: zod.z.string().nullable(),
|
|
411
|
-
is_root: zod.z.boolean(),
|
|
412
|
-
is_child: zod.z.boolean(),
|
|
413
|
-
is_leaf: zod.z.boolean(),
|
|
414
|
-
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
415
|
-
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
416
|
-
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
417
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
418
|
-
lft: zod.z.number(),
|
|
419
|
-
rgt: zod.z.number()
|
|
420
|
-
});
|
|
421
|
-
var AdminTaxonomySchema = zod.z.object({
|
|
422
|
-
id: zod.z.string(),
|
|
423
|
-
name: zod.z.string(),
|
|
424
|
-
position: zod.z.number(),
|
|
425
|
-
created_at: zod.z.string(),
|
|
426
|
-
updated_at: zod.z.string(),
|
|
427
|
-
root_id: zod.z.string().nullable(),
|
|
428
|
-
root: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
429
|
-
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
430
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional()
|
|
431
|
-
});
|
|
432
|
-
var StoreAssetSchema = zod.z.object({
|
|
24
|
+
var AssetSchema = zod.z.object({
|
|
433
25
|
id: zod.z.string(),
|
|
434
26
|
viewable_id: zod.z.string(),
|
|
435
27
|
type: zod.z.string().nullable(),
|
|
@@ -439,10 +31,10 @@ var StoreAssetSchema = zod.z.object({
|
|
|
439
31
|
created_at: zod.z.string(),
|
|
440
32
|
updated_at: zod.z.string()
|
|
441
33
|
});
|
|
442
|
-
var
|
|
34
|
+
var BaseSchema = zod.z.object({
|
|
443
35
|
id: zod.z.string()
|
|
444
36
|
});
|
|
445
|
-
var
|
|
37
|
+
var MarketSchema = zod.z.object({
|
|
446
38
|
id: zod.z.string(),
|
|
447
39
|
name: zod.z.string(),
|
|
448
40
|
currency: zod.z.string(),
|
|
@@ -450,24 +42,24 @@ var StoreMarketSchema = zod.z.object({
|
|
|
450
42
|
tax_inclusive: zod.z.boolean(),
|
|
451
43
|
default: zod.z.boolean(),
|
|
452
44
|
supported_locales: zod.z.array(zod.z.string()),
|
|
453
|
-
countries: zod.z.array(zod.z.lazy(() =>
|
|
45
|
+
countries: zod.z.array(zod.z.lazy(() => CountrySchema)).optional()
|
|
454
46
|
});
|
|
455
|
-
var
|
|
47
|
+
var StateSchema = zod.z.object({
|
|
456
48
|
abbr: zod.z.string(),
|
|
457
49
|
name: zod.z.string()
|
|
458
50
|
});
|
|
459
51
|
|
|
460
|
-
// src/zod/generated/
|
|
461
|
-
var
|
|
52
|
+
// src/zod/generated/Country.ts
|
|
53
|
+
var CountrySchema = zod.z.object({
|
|
462
54
|
iso: zod.z.string(),
|
|
463
55
|
iso3: zod.z.string(),
|
|
464
56
|
name: zod.z.string(),
|
|
465
57
|
states_required: zod.z.boolean(),
|
|
466
58
|
zipcode_required: zod.z.boolean(),
|
|
467
|
-
states: zod.z.array(
|
|
468
|
-
market: zod.z.lazy(() =>
|
|
59
|
+
states: zod.z.array(StateSchema).optional(),
|
|
60
|
+
market: zod.z.lazy(() => MarketSchema).nullable().optional()
|
|
469
61
|
});
|
|
470
|
-
var
|
|
62
|
+
var CreditCardSchema = zod.z.object({
|
|
471
63
|
id: zod.z.string(),
|
|
472
64
|
cc_type: zod.z.string(),
|
|
473
65
|
last_digits: zod.z.string(),
|
|
@@ -477,36 +69,48 @@ var StoreCreditCardSchema = zod.z.object({
|
|
|
477
69
|
default: zod.z.boolean(),
|
|
478
70
|
gateway_payment_profile_id: zod.z.string().nullable()
|
|
479
71
|
});
|
|
480
|
-
var
|
|
72
|
+
var CurrencySchema = zod.z.object({
|
|
481
73
|
iso_code: zod.z.string(),
|
|
482
74
|
name: zod.z.string(),
|
|
483
75
|
symbol: zod.z.string()
|
|
484
76
|
});
|
|
485
|
-
var
|
|
77
|
+
var CustomerSchema = zod.z.object({
|
|
486
78
|
id: zod.z.string(),
|
|
487
79
|
email: zod.z.string(),
|
|
488
80
|
first_name: zod.z.string().nullable(),
|
|
489
81
|
last_name: zod.z.string().nullable(),
|
|
490
82
|
created_at: zod.z.string(),
|
|
491
83
|
updated_at: zod.z.string(),
|
|
492
|
-
addresses: zod.z.array(
|
|
493
|
-
default_billing_address:
|
|
494
|
-
default_shipping_address:
|
|
84
|
+
addresses: zod.z.array(AddressSchema),
|
|
85
|
+
default_billing_address: AddressSchema.nullable(),
|
|
86
|
+
default_shipping_address: AddressSchema.nullable()
|
|
495
87
|
});
|
|
496
|
-
var
|
|
88
|
+
var CustomerReturnSchema = zod.z.object({
|
|
497
89
|
id: zod.z.string(),
|
|
498
90
|
number: zod.z.string(),
|
|
499
91
|
created_at: zod.z.string(),
|
|
500
92
|
updated_at: zod.z.string(),
|
|
501
93
|
stock_location_id: zod.z.string().nullable()
|
|
502
94
|
});
|
|
503
|
-
var
|
|
95
|
+
var DigitalSchema = zod.z.object({
|
|
504
96
|
id: zod.z.string(),
|
|
505
97
|
created_at: zod.z.string(),
|
|
506
98
|
updated_at: zod.z.string(),
|
|
507
99
|
variant_id: zod.z.string().nullable()
|
|
508
100
|
});
|
|
509
|
-
var
|
|
101
|
+
var DigitalLinkSchema = zod.z.object({
|
|
102
|
+
id: zod.z.string(),
|
|
103
|
+
access_counter: zod.z.number(),
|
|
104
|
+
filename: zod.z.string(),
|
|
105
|
+
content_type: zod.z.string(),
|
|
106
|
+
created_at: zod.z.string(),
|
|
107
|
+
updated_at: zod.z.string(),
|
|
108
|
+
download_url: zod.z.string(),
|
|
109
|
+
authorizable: zod.z.boolean(),
|
|
110
|
+
expired: zod.z.boolean(),
|
|
111
|
+
access_limit_exceeded: zod.z.boolean()
|
|
112
|
+
});
|
|
113
|
+
var ExportSchema = zod.z.object({
|
|
510
114
|
id: zod.z.string(),
|
|
511
115
|
number: zod.z.string(),
|
|
512
116
|
type: zod.z.string().nullable(),
|
|
@@ -515,7 +119,7 @@ var StoreExportSchema = zod.z.object({
|
|
|
515
119
|
updated_at: zod.z.string(),
|
|
516
120
|
user_id: zod.z.string().nullable()
|
|
517
121
|
});
|
|
518
|
-
var
|
|
122
|
+
var GiftCardSchema = zod.z.object({
|
|
519
123
|
id: zod.z.string(),
|
|
520
124
|
code: zod.z.string(),
|
|
521
125
|
state: zod.z.string(),
|
|
@@ -534,7 +138,7 @@ var StoreGiftCardSchema = zod.z.object({
|
|
|
534
138
|
created_at: zod.z.string(),
|
|
535
139
|
updated_at: zod.z.string()
|
|
536
140
|
});
|
|
537
|
-
var
|
|
141
|
+
var GiftCardBatchSchema = zod.z.object({
|
|
538
142
|
id: zod.z.string(),
|
|
539
143
|
codes_count: zod.z.number(),
|
|
540
144
|
currency: zod.z.string().nullable(),
|
|
@@ -545,7 +149,24 @@ var StoreGiftCardBatchSchema = zod.z.object({
|
|
|
545
149
|
expires_at: zod.z.string().nullable(),
|
|
546
150
|
created_by_id: zod.z.string().nullable()
|
|
547
151
|
});
|
|
548
|
-
var
|
|
152
|
+
var ImageSchema = zod.z.object({
|
|
153
|
+
id: zod.z.string(),
|
|
154
|
+
viewable_id: zod.z.string(),
|
|
155
|
+
type: zod.z.string().nullable(),
|
|
156
|
+
viewable_type: zod.z.string(),
|
|
157
|
+
position: zod.z.number().nullable(),
|
|
158
|
+
alt: zod.z.string().nullable(),
|
|
159
|
+
created_at: zod.z.string(),
|
|
160
|
+
updated_at: zod.z.string(),
|
|
161
|
+
original_url: zod.z.string().nullable(),
|
|
162
|
+
mini_url: zod.z.string().nullable(),
|
|
163
|
+
small_url: zod.z.string().nullable(),
|
|
164
|
+
medium_url: zod.z.string().nullable(),
|
|
165
|
+
large_url: zod.z.string().nullable(),
|
|
166
|
+
xlarge_url: zod.z.string().nullable(),
|
|
167
|
+
og_image_url: zod.z.string().nullable()
|
|
168
|
+
});
|
|
169
|
+
var ImportSchema = zod.z.object({
|
|
549
170
|
id: zod.z.string(),
|
|
550
171
|
number: zod.z.string(),
|
|
551
172
|
type: zod.z.string().nullable(),
|
|
@@ -557,7 +178,7 @@ var StoreImportSchema = zod.z.object({
|
|
|
557
178
|
owner_id: zod.z.string().nullable(),
|
|
558
179
|
user_id: zod.z.string().nullable()
|
|
559
180
|
});
|
|
560
|
-
var
|
|
181
|
+
var ImportRowSchema = zod.z.object({
|
|
561
182
|
id: zod.z.string(),
|
|
562
183
|
row_number: zod.z.number(),
|
|
563
184
|
status: zod.z.string(),
|
|
@@ -568,7 +189,7 @@ var StoreImportRowSchema = zod.z.object({
|
|
|
568
189
|
import_id: zod.z.string().nullable(),
|
|
569
190
|
item_id: zod.z.string().nullable()
|
|
570
191
|
});
|
|
571
|
-
var
|
|
192
|
+
var InvitationSchema = zod.z.object({
|
|
572
193
|
id: zod.z.string(),
|
|
573
194
|
email: zod.z.string(),
|
|
574
195
|
resource_type: zod.z.string().nullable(),
|
|
@@ -584,7 +205,18 @@ var StoreInvitationSchema = zod.z.object({
|
|
|
584
205
|
expires_at: zod.z.string().nullable(),
|
|
585
206
|
accepted_at: zod.z.string().nullable()
|
|
586
207
|
});
|
|
587
|
-
var
|
|
208
|
+
var OptionValueSchema = zod.z.object({
|
|
209
|
+
id: zod.z.string(),
|
|
210
|
+
option_type_id: zod.z.string(),
|
|
211
|
+
name: zod.z.string(),
|
|
212
|
+
presentation: zod.z.string(),
|
|
213
|
+
position: zod.z.number(),
|
|
214
|
+
option_type_name: zod.z.string(),
|
|
215
|
+
option_type_presentation: zod.z.string()
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
// src/zod/generated/LineItem.ts
|
|
219
|
+
var LineItemSchema = zod.z.object({
|
|
588
220
|
id: zod.z.string(),
|
|
589
221
|
variant_id: zod.z.string(),
|
|
590
222
|
quantity: zod.z.number(),
|
|
@@ -613,14 +245,21 @@ var StoreLineItemSchema = zod.z.object({
|
|
|
613
245
|
updated_at: zod.z.string(),
|
|
614
246
|
compare_at_amount: zod.z.string().nullable(),
|
|
615
247
|
thumbnail_url: zod.z.string().nullable(),
|
|
616
|
-
option_values: zod.z.array(
|
|
617
|
-
digital_links: zod.z.array(
|
|
248
|
+
option_values: zod.z.array(OptionValueSchema),
|
|
249
|
+
digital_links: zod.z.array(DigitalLinkSchema)
|
|
618
250
|
});
|
|
619
|
-
var
|
|
251
|
+
var LocaleSchema = zod.z.object({
|
|
620
252
|
code: zod.z.string(),
|
|
621
253
|
name: zod.z.string()
|
|
622
254
|
});
|
|
623
|
-
var
|
|
255
|
+
var MetafieldSchema = zod.z.object({
|
|
256
|
+
id: zod.z.string(),
|
|
257
|
+
name: zod.z.string(),
|
|
258
|
+
type: zod.z.string(),
|
|
259
|
+
key: zod.z.string(),
|
|
260
|
+
value: zod.z.any()
|
|
261
|
+
});
|
|
262
|
+
var NewsletterSubscriberSchema = zod.z.object({
|
|
624
263
|
id: zod.z.string(),
|
|
625
264
|
email: zod.z.string(),
|
|
626
265
|
created_at: zod.z.string(),
|
|
@@ -629,10 +268,94 @@ var StoreNewsletterSubscriberSchema = zod.z.object({
|
|
|
629
268
|
verified_at: zod.z.string().nullable(),
|
|
630
269
|
user_id: zod.z.string().nullable()
|
|
631
270
|
});
|
|
632
|
-
var
|
|
271
|
+
var OptionTypeSchema = zod.z.object({
|
|
272
|
+
id: zod.z.string(),
|
|
273
|
+
name: zod.z.string(),
|
|
274
|
+
presentation: zod.z.string(),
|
|
275
|
+
position: zod.z.number()
|
|
276
|
+
});
|
|
277
|
+
var OrderPromotionSchema = zod.z.object({
|
|
278
|
+
id: zod.z.string(),
|
|
279
|
+
promotion_id: zod.z.string(),
|
|
280
|
+
name: zod.z.string(),
|
|
281
|
+
description: zod.z.string().nullable(),
|
|
282
|
+
code: zod.z.string().nullable(),
|
|
283
|
+
amount: zod.z.string(),
|
|
284
|
+
display_amount: zod.z.string()
|
|
285
|
+
});
|
|
286
|
+
var PaymentMethodSchema = zod.z.object({
|
|
287
|
+
id: zod.z.string(),
|
|
288
|
+
name: zod.z.string(),
|
|
289
|
+
description: zod.z.string().nullable(),
|
|
290
|
+
type: zod.z.string(),
|
|
291
|
+
session_required: zod.z.boolean()
|
|
292
|
+
});
|
|
293
|
+
|
|
294
|
+
// src/zod/generated/Payment.ts
|
|
295
|
+
var PaymentSchema = zod.z.object({
|
|
296
|
+
id: zod.z.string(),
|
|
297
|
+
payment_method_id: zod.z.string(),
|
|
298
|
+
state: zod.z.string(),
|
|
299
|
+
response_code: zod.z.string().nullable(),
|
|
300
|
+
number: zod.z.string(),
|
|
301
|
+
amount: zod.z.string(),
|
|
302
|
+
display_amount: zod.z.string(),
|
|
303
|
+
created_at: zod.z.string(),
|
|
304
|
+
updated_at: zod.z.string(),
|
|
305
|
+
source_type: zod.z.string().nullable(),
|
|
306
|
+
source_id: zod.z.string().nullable(),
|
|
307
|
+
source: zod.z.any(),
|
|
308
|
+
payment_method: PaymentMethodSchema
|
|
309
|
+
});
|
|
310
|
+
var ShippingMethodSchema = zod.z.object({
|
|
311
|
+
id: zod.z.string(),
|
|
312
|
+
name: zod.z.string(),
|
|
313
|
+
code: zod.z.string().nullable()
|
|
314
|
+
});
|
|
315
|
+
var ShippingRateSchema = zod.z.object({
|
|
316
|
+
id: zod.z.string(),
|
|
317
|
+
shipping_method_id: zod.z.string(),
|
|
318
|
+
name: zod.z.string(),
|
|
319
|
+
selected: zod.z.boolean(),
|
|
320
|
+
cost: zod.z.string(),
|
|
321
|
+
display_cost: zod.z.string(),
|
|
322
|
+
shipping_method: ShippingMethodSchema
|
|
323
|
+
});
|
|
324
|
+
var StockLocationSchema = zod.z.object({
|
|
325
|
+
id: zod.z.string(),
|
|
326
|
+
state_abbr: zod.z.string().nullable(),
|
|
327
|
+
name: zod.z.string(),
|
|
328
|
+
address1: zod.z.string().nullable(),
|
|
329
|
+
city: zod.z.string().nullable(),
|
|
330
|
+
zipcode: zod.z.string().nullable(),
|
|
331
|
+
country_iso: zod.z.string().nullable(),
|
|
332
|
+
country_name: zod.z.string().nullable(),
|
|
333
|
+
state_text: zod.z.string().nullable()
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
// src/zod/generated/Shipment.ts
|
|
337
|
+
var ShipmentSchema = zod.z.object({
|
|
338
|
+
id: zod.z.string(),
|
|
339
|
+
number: zod.z.string(),
|
|
340
|
+
state: zod.z.string(),
|
|
341
|
+
tracking: zod.z.string().nullable(),
|
|
342
|
+
tracking_url: zod.z.string().nullable(),
|
|
343
|
+
cost: zod.z.string(),
|
|
344
|
+
display_cost: zod.z.string(),
|
|
345
|
+
shipped_at: zod.z.string().nullable(),
|
|
346
|
+
created_at: zod.z.string(),
|
|
347
|
+
updated_at: zod.z.string(),
|
|
348
|
+
shipping_method: ShippingMethodSchema,
|
|
349
|
+
stock_location: StockLocationSchema,
|
|
350
|
+
shipping_rates: zod.z.array(ShippingRateSchema)
|
|
351
|
+
});
|
|
352
|
+
|
|
353
|
+
// src/zod/generated/Order.ts
|
|
354
|
+
var OrderSchema = zod.z.object({
|
|
633
355
|
id: zod.z.string(),
|
|
634
356
|
number: zod.z.string(),
|
|
635
357
|
state: zod.z.string(),
|
|
358
|
+
checkout_steps: zod.z.array(zod.z.string()),
|
|
636
359
|
token: zod.z.string(),
|
|
637
360
|
email: zod.z.string().nullable(),
|
|
638
361
|
special_instructions: zod.z.string().nullable(),
|
|
@@ -661,15 +384,15 @@ var StoreOrderSchema = zod.z.object({
|
|
|
661
384
|
completed_at: zod.z.string().nullable(),
|
|
662
385
|
created_at: zod.z.string(),
|
|
663
386
|
updated_at: zod.z.string(),
|
|
664
|
-
order_promotions: zod.z.array(
|
|
665
|
-
line_items: zod.z.array(
|
|
666
|
-
shipments: zod.z.array(
|
|
667
|
-
payments: zod.z.array(
|
|
668
|
-
bill_address:
|
|
669
|
-
ship_address:
|
|
670
|
-
payment_methods: zod.z.array(
|
|
387
|
+
order_promotions: zod.z.array(OrderPromotionSchema),
|
|
388
|
+
line_items: zod.z.array(LineItemSchema),
|
|
389
|
+
shipments: zod.z.array(ShipmentSchema),
|
|
390
|
+
payments: zod.z.array(PaymentSchema),
|
|
391
|
+
bill_address: AddressSchema.nullable(),
|
|
392
|
+
ship_address: AddressSchema.nullable(),
|
|
393
|
+
payment_methods: zod.z.array(PaymentMethodSchema)
|
|
671
394
|
});
|
|
672
|
-
var
|
|
395
|
+
var PaymentSessionSchema = zod.z.object({
|
|
673
396
|
id: zod.z.string(),
|
|
674
397
|
status: zod.z.string(),
|
|
675
398
|
currency: zod.z.string(),
|
|
@@ -682,10 +405,10 @@ var StorePaymentSessionSchema = zod.z.object({
|
|
|
682
405
|
amount: zod.z.string(),
|
|
683
406
|
payment_method_id: zod.z.string(),
|
|
684
407
|
order_id: zod.z.string(),
|
|
685
|
-
payment_method:
|
|
686
|
-
payment:
|
|
408
|
+
payment_method: PaymentMethodSchema,
|
|
409
|
+
payment: PaymentSchema.optional()
|
|
687
410
|
});
|
|
688
|
-
var
|
|
411
|
+
var PaymentSetupSessionSchema = zod.z.object({
|
|
689
412
|
id: zod.z.string(),
|
|
690
413
|
status: zod.z.string(),
|
|
691
414
|
external_id: zod.z.string().nullable(),
|
|
@@ -697,13 +420,50 @@ var StorePaymentSetupSessionSchema = zod.z.object({
|
|
|
697
420
|
payment_source_id: zod.z.string().nullable(),
|
|
698
421
|
payment_source_type: zod.z.string().nullable(),
|
|
699
422
|
customer_id: zod.z.string().nullable(),
|
|
700
|
-
payment_method:
|
|
423
|
+
payment_method: PaymentMethodSchema
|
|
701
424
|
});
|
|
702
|
-
var
|
|
425
|
+
var PaymentSourceSchema = zod.z.object({
|
|
703
426
|
id: zod.z.string(),
|
|
704
427
|
gateway_payment_profile_id: zod.z.string().nullable()
|
|
705
428
|
});
|
|
706
|
-
var
|
|
429
|
+
var PriceSchema = zod.z.object({
|
|
430
|
+
id: zod.z.string(),
|
|
431
|
+
amount: zod.z.string().nullable(),
|
|
432
|
+
amount_in_cents: zod.z.number().nullable(),
|
|
433
|
+
compare_at_amount: zod.z.string().nullable(),
|
|
434
|
+
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
435
|
+
currency: zod.z.string().nullable(),
|
|
436
|
+
display_amount: zod.z.string().nullable(),
|
|
437
|
+
display_compare_at_amount: zod.z.string().nullable(),
|
|
438
|
+
price_list_id: zod.z.string().nullable()
|
|
439
|
+
});
|
|
440
|
+
var TaxonSchema = zod.z.object({
|
|
441
|
+
id: zod.z.string(),
|
|
442
|
+
name: zod.z.string(),
|
|
443
|
+
permalink: zod.z.string(),
|
|
444
|
+
position: zod.z.number(),
|
|
445
|
+
depth: zod.z.number(),
|
|
446
|
+
meta_title: zod.z.string().nullable(),
|
|
447
|
+
meta_description: zod.z.string().nullable(),
|
|
448
|
+
meta_keywords: zod.z.string().nullable(),
|
|
449
|
+
children_count: zod.z.number(),
|
|
450
|
+
created_at: zod.z.string(),
|
|
451
|
+
updated_at: zod.z.string(),
|
|
452
|
+
parent_id: zod.z.string().nullable(),
|
|
453
|
+
taxonomy_id: zod.z.string(),
|
|
454
|
+
description: zod.z.string(),
|
|
455
|
+
description_html: zod.z.string(),
|
|
456
|
+
image_url: zod.z.string().nullable(),
|
|
457
|
+
square_image_url: zod.z.string().nullable(),
|
|
458
|
+
is_root: zod.z.boolean(),
|
|
459
|
+
is_child: zod.z.boolean(),
|
|
460
|
+
is_leaf: zod.z.boolean(),
|
|
461
|
+
parent: zod.z.lazy(() => TaxonSchema).optional(),
|
|
462
|
+
children: zod.z.array(zod.z.lazy(() => TaxonSchema)).optional(),
|
|
463
|
+
ancestors: zod.z.array(zod.z.lazy(() => TaxonSchema)).optional(),
|
|
464
|
+
metafields: zod.z.array(MetafieldSchema).optional()
|
|
465
|
+
});
|
|
466
|
+
var VariantSchema = zod.z.object({
|
|
707
467
|
id: zod.z.string(),
|
|
708
468
|
product_id: zod.z.string(),
|
|
709
469
|
sku: zod.z.string().nullable(),
|
|
@@ -721,15 +481,15 @@ var StoreVariantSchema = zod.z.object({
|
|
|
721
481
|
height: zod.z.number().nullable(),
|
|
722
482
|
width: zod.z.number().nullable(),
|
|
723
483
|
depth: zod.z.number().nullable(),
|
|
724
|
-
price:
|
|
725
|
-
original_price:
|
|
726
|
-
images: zod.z.array(
|
|
727
|
-
option_values: zod.z.array(
|
|
728
|
-
metafields: zod.z.array(
|
|
484
|
+
price: PriceSchema,
|
|
485
|
+
original_price: PriceSchema.nullable(),
|
|
486
|
+
images: zod.z.array(ImageSchema).optional(),
|
|
487
|
+
option_values: zod.z.array(OptionValueSchema),
|
|
488
|
+
metafields: zod.z.array(MetafieldSchema).optional()
|
|
729
489
|
});
|
|
730
490
|
|
|
731
|
-
// src/zod/generated/
|
|
732
|
-
var
|
|
491
|
+
// src/zod/generated/Product.ts
|
|
492
|
+
var ProductSchema = zod.z.object({
|
|
733
493
|
id: zod.z.string(),
|
|
734
494
|
name: zod.z.string(),
|
|
735
495
|
description: zod.z.string().nullable(),
|
|
@@ -747,17 +507,17 @@ var StoreProductSchema = zod.z.object({
|
|
|
747
507
|
default_variant_id: zod.z.string(),
|
|
748
508
|
thumbnail_url: zod.z.string().nullable(),
|
|
749
509
|
tags: zod.z.array(zod.z.string()),
|
|
750
|
-
price:
|
|
751
|
-
original_price:
|
|
752
|
-
images: zod.z.array(
|
|
753
|
-
variants: zod.z.array(
|
|
754
|
-
default_variant:
|
|
755
|
-
master_variant:
|
|
756
|
-
option_types: zod.z.array(
|
|
757
|
-
taxons: zod.z.array(zod.z.lazy(() =>
|
|
758
|
-
metafields: zod.z.array(
|
|
759
|
-
});
|
|
760
|
-
var
|
|
510
|
+
price: PriceSchema,
|
|
511
|
+
original_price: PriceSchema.nullable(),
|
|
512
|
+
images: zod.z.array(ImageSchema).optional(),
|
|
513
|
+
variants: zod.z.array(VariantSchema).optional(),
|
|
514
|
+
default_variant: VariantSchema.optional(),
|
|
515
|
+
master_variant: VariantSchema.optional(),
|
|
516
|
+
option_types: zod.z.array(OptionTypeSchema).optional(),
|
|
517
|
+
taxons: zod.z.array(zod.z.lazy(() => TaxonSchema)).optional(),
|
|
518
|
+
metafields: zod.z.array(MetafieldSchema).optional()
|
|
519
|
+
});
|
|
520
|
+
var PromotionSchema = zod.z.object({
|
|
761
521
|
id: zod.z.string(),
|
|
762
522
|
name: zod.z.string(),
|
|
763
523
|
description: zod.z.string().nullable(),
|
|
@@ -777,7 +537,7 @@ var StorePromotionSchema = zod.z.object({
|
|
|
777
537
|
updated_at: zod.z.string(),
|
|
778
538
|
promotion_category_id: zod.z.string().nullable()
|
|
779
539
|
});
|
|
780
|
-
var
|
|
540
|
+
var RefundSchema = zod.z.object({
|
|
781
541
|
id: zod.z.string(),
|
|
782
542
|
transaction_id: zod.z.string().nullable(),
|
|
783
543
|
created_at: zod.z.string(),
|
|
@@ -787,7 +547,7 @@ var StoreRefundSchema = zod.z.object({
|
|
|
787
547
|
refund_reason_id: zod.z.string().nullable(),
|
|
788
548
|
reimbursement_id: zod.z.string().nullable()
|
|
789
549
|
});
|
|
790
|
-
var
|
|
550
|
+
var ReimbursementSchema = zod.z.object({
|
|
791
551
|
id: zod.z.string(),
|
|
792
552
|
number: zod.z.string(),
|
|
793
553
|
reimbursement_status: zod.z.string().nullable(),
|
|
@@ -797,7 +557,7 @@ var StoreReimbursementSchema = zod.z.object({
|
|
|
797
557
|
order_id: zod.z.string().nullable(),
|
|
798
558
|
customer_return_id: zod.z.string().nullable()
|
|
799
559
|
});
|
|
800
|
-
var
|
|
560
|
+
var ReportSchema = zod.z.object({
|
|
801
561
|
id: zod.z.string(),
|
|
802
562
|
type: zod.z.string().nullable(),
|
|
803
563
|
currency: zod.z.string().nullable(),
|
|
@@ -807,7 +567,7 @@ var StoreReportSchema = zod.z.object({
|
|
|
807
567
|
date_from: zod.z.string().nullable(),
|
|
808
568
|
date_to: zod.z.string().nullable()
|
|
809
569
|
});
|
|
810
|
-
var
|
|
570
|
+
var ReturnAuthorizationSchema = zod.z.object({
|
|
811
571
|
id: zod.z.string(),
|
|
812
572
|
number: zod.z.string(),
|
|
813
573
|
created_at: zod.z.string(),
|
|
@@ -817,7 +577,7 @@ var StoreReturnAuthorizationSchema = zod.z.object({
|
|
|
817
577
|
stock_location_id: zod.z.string().nullable(),
|
|
818
578
|
return_authorization_reason_id: zod.z.string().nullable()
|
|
819
579
|
});
|
|
820
|
-
var
|
|
580
|
+
var ReturnItemSchema = zod.z.object({
|
|
821
581
|
id: zod.z.string(),
|
|
822
582
|
reception_status: zod.z.string().nullable(),
|
|
823
583
|
acceptance_status: zod.z.string().nullable(),
|
|
@@ -832,7 +592,11 @@ var StoreReturnItemSchema = zod.z.object({
|
|
|
832
592
|
reimbursement_id: zod.z.string().nullable(),
|
|
833
593
|
exchange_variant_id: zod.z.string().nullable()
|
|
834
594
|
});
|
|
835
|
-
var
|
|
595
|
+
var ShippingCategorySchema = zod.z.object({
|
|
596
|
+
id: zod.z.string(),
|
|
597
|
+
name: zod.z.string()
|
|
598
|
+
});
|
|
599
|
+
var StockItemSchema = zod.z.object({
|
|
836
600
|
id: zod.z.string(),
|
|
837
601
|
count_on_hand: zod.z.number(),
|
|
838
602
|
backorderable: zod.z.boolean(),
|
|
@@ -841,7 +605,7 @@ var StoreStockItemSchema = zod.z.object({
|
|
|
841
605
|
stock_location_id: zod.z.string().nullable(),
|
|
842
606
|
variant_id: zod.z.string().nullable()
|
|
843
607
|
});
|
|
844
|
-
var
|
|
608
|
+
var StockMovementSchema = zod.z.object({
|
|
845
609
|
id: zod.z.string(),
|
|
846
610
|
quantity: zod.z.number(),
|
|
847
611
|
action: zod.z.string().nullable(),
|
|
@@ -851,7 +615,7 @@ var StoreStockMovementSchema = zod.z.object({
|
|
|
851
615
|
originator_id: zod.z.string().nullable(),
|
|
852
616
|
stock_item_id: zod.z.string().nullable()
|
|
853
617
|
});
|
|
854
|
-
var
|
|
618
|
+
var StockTransferSchema = zod.z.object({
|
|
855
619
|
id: zod.z.string(),
|
|
856
620
|
number: zod.z.string().nullable(),
|
|
857
621
|
type: zod.z.string().nullable(),
|
|
@@ -861,7 +625,7 @@ var StoreStockTransferSchema = zod.z.object({
|
|
|
861
625
|
source_location_id: zod.z.string().nullable(),
|
|
862
626
|
destination_location_id: zod.z.string().nullable()
|
|
863
627
|
});
|
|
864
|
-
var
|
|
628
|
+
var StoreCreditSchema = zod.z.object({
|
|
865
629
|
id: zod.z.string(),
|
|
866
630
|
amount: zod.z.string(),
|
|
867
631
|
amount_used: zod.z.string(),
|
|
@@ -871,27 +635,31 @@ var StoreStoreCreditSchema = zod.z.object({
|
|
|
871
635
|
display_amount_remaining: zod.z.string(),
|
|
872
636
|
currency: zod.z.string()
|
|
873
637
|
});
|
|
874
|
-
var
|
|
638
|
+
var TaxCategorySchema = zod.z.object({
|
|
639
|
+
id: zod.z.string(),
|
|
640
|
+
name: zod.z.string()
|
|
641
|
+
});
|
|
642
|
+
var TaxonomySchema = zod.z.object({
|
|
875
643
|
id: zod.z.string(),
|
|
876
644
|
name: zod.z.string(),
|
|
877
645
|
position: zod.z.number(),
|
|
878
646
|
created_at: zod.z.string(),
|
|
879
647
|
updated_at: zod.z.string(),
|
|
880
648
|
root_id: zod.z.string().nullable(),
|
|
881
|
-
root: zod.z.lazy(() =>
|
|
882
|
-
taxons: zod.z.array(zod.z.lazy(() =>
|
|
883
|
-
metafields: zod.z.array(
|
|
649
|
+
root: zod.z.lazy(() => TaxonSchema).optional(),
|
|
650
|
+
taxons: zod.z.array(zod.z.lazy(() => TaxonSchema)).optional(),
|
|
651
|
+
metafields: zod.z.array(MetafieldSchema).optional()
|
|
884
652
|
});
|
|
885
|
-
var
|
|
653
|
+
var WishedItemSchema = zod.z.object({
|
|
886
654
|
id: zod.z.string(),
|
|
887
655
|
variant_id: zod.z.string(),
|
|
888
656
|
wishlist_id: zod.z.string(),
|
|
889
657
|
quantity: zod.z.number(),
|
|
890
658
|
created_at: zod.z.string(),
|
|
891
659
|
updated_at: zod.z.string(),
|
|
892
|
-
variant:
|
|
660
|
+
variant: VariantSchema
|
|
893
661
|
});
|
|
894
|
-
var
|
|
662
|
+
var WishlistSchema = zod.z.object({
|
|
895
663
|
id: zod.z.string(),
|
|
896
664
|
name: zod.z.string(),
|
|
897
665
|
token: zod.z.string(),
|
|
@@ -899,70 +667,63 @@ var StoreWishlistSchema = zod.z.object({
|
|
|
899
667
|
updated_at: zod.z.string(),
|
|
900
668
|
is_default: zod.z.boolean(),
|
|
901
669
|
is_private: zod.z.boolean(),
|
|
902
|
-
items: zod.z.array(
|
|
670
|
+
items: zod.z.array(WishedItemSchema).optional()
|
|
903
671
|
});
|
|
904
672
|
|
|
905
|
-
exports.
|
|
906
|
-
exports.
|
|
907
|
-
exports.
|
|
908
|
-
exports.
|
|
909
|
-
exports.
|
|
910
|
-
exports.
|
|
911
|
-
exports.
|
|
912
|
-
exports.
|
|
913
|
-
exports.
|
|
914
|
-
exports.
|
|
915
|
-
exports.
|
|
916
|
-
exports.
|
|
917
|
-
exports.
|
|
918
|
-
exports.
|
|
919
|
-
exports.
|
|
920
|
-
exports.
|
|
921
|
-
exports.
|
|
922
|
-
exports.
|
|
923
|
-
exports.
|
|
924
|
-
exports.
|
|
925
|
-
exports.
|
|
926
|
-
exports.
|
|
927
|
-
exports.
|
|
928
|
-
exports.
|
|
929
|
-
exports.
|
|
930
|
-
exports.
|
|
931
|
-
exports.
|
|
932
|
-
exports.
|
|
933
|
-
exports.
|
|
934
|
-
exports.
|
|
935
|
-
exports.
|
|
936
|
-
exports.
|
|
937
|
-
exports.
|
|
938
|
-
exports.
|
|
939
|
-
exports.
|
|
940
|
-
exports.
|
|
941
|
-
exports.
|
|
942
|
-
exports.
|
|
943
|
-
exports.
|
|
944
|
-
exports.
|
|
945
|
-
exports.
|
|
946
|
-
exports.
|
|
947
|
-
exports.
|
|
948
|
-
exports.
|
|
949
|
-
exports.
|
|
950
|
-
exports.
|
|
951
|
-
exports.
|
|
952
|
-
exports.
|
|
953
|
-
exports.
|
|
954
|
-
exports.
|
|
955
|
-
exports.
|
|
956
|
-
exports.
|
|
957
|
-
exports.
|
|
958
|
-
exports.
|
|
959
|
-
exports.
|
|
960
|
-
exports.StoreStockTransferSchema = StoreStockTransferSchema;
|
|
961
|
-
exports.StoreStoreCreditSchema = StoreStoreCreditSchema;
|
|
962
|
-
exports.StoreTaxonSchema = StoreTaxonSchema;
|
|
963
|
-
exports.StoreTaxonomySchema = StoreTaxonomySchema;
|
|
964
|
-
exports.StoreVariantSchema = StoreVariantSchema;
|
|
965
|
-
exports.StoreWishedItemSchema = StoreWishedItemSchema;
|
|
966
|
-
exports.StoreWishlistSchema = StoreWishlistSchema;
|
|
673
|
+
exports.AddressSchema = AddressSchema;
|
|
674
|
+
exports.AssetSchema = AssetSchema;
|
|
675
|
+
exports.BaseSchema = BaseSchema;
|
|
676
|
+
exports.CountrySchema = CountrySchema;
|
|
677
|
+
exports.CreditCardSchema = CreditCardSchema;
|
|
678
|
+
exports.CurrencySchema = CurrencySchema;
|
|
679
|
+
exports.CustomerReturnSchema = CustomerReturnSchema;
|
|
680
|
+
exports.CustomerSchema = CustomerSchema;
|
|
681
|
+
exports.DigitalLinkSchema = DigitalLinkSchema;
|
|
682
|
+
exports.DigitalSchema = DigitalSchema;
|
|
683
|
+
exports.ExportSchema = ExportSchema;
|
|
684
|
+
exports.GiftCardBatchSchema = GiftCardBatchSchema;
|
|
685
|
+
exports.GiftCardSchema = GiftCardSchema;
|
|
686
|
+
exports.ImageSchema = ImageSchema;
|
|
687
|
+
exports.ImportRowSchema = ImportRowSchema;
|
|
688
|
+
exports.ImportSchema = ImportSchema;
|
|
689
|
+
exports.InvitationSchema = InvitationSchema;
|
|
690
|
+
exports.LineItemSchema = LineItemSchema;
|
|
691
|
+
exports.LocaleSchema = LocaleSchema;
|
|
692
|
+
exports.MarketSchema = MarketSchema;
|
|
693
|
+
exports.MetafieldSchema = MetafieldSchema;
|
|
694
|
+
exports.NewsletterSubscriberSchema = NewsletterSubscriberSchema;
|
|
695
|
+
exports.OptionTypeSchema = OptionTypeSchema;
|
|
696
|
+
exports.OptionValueSchema = OptionValueSchema;
|
|
697
|
+
exports.OrderPromotionSchema = OrderPromotionSchema;
|
|
698
|
+
exports.OrderSchema = OrderSchema;
|
|
699
|
+
exports.PaymentMethodSchema = PaymentMethodSchema;
|
|
700
|
+
exports.PaymentSchema = PaymentSchema;
|
|
701
|
+
exports.PaymentSessionSchema = PaymentSessionSchema;
|
|
702
|
+
exports.PaymentSetupSessionSchema = PaymentSetupSessionSchema;
|
|
703
|
+
exports.PaymentSourceSchema = PaymentSourceSchema;
|
|
704
|
+
exports.PriceSchema = PriceSchema;
|
|
705
|
+
exports.ProductSchema = ProductSchema;
|
|
706
|
+
exports.PromotionSchema = PromotionSchema;
|
|
707
|
+
exports.RefundSchema = RefundSchema;
|
|
708
|
+
exports.ReimbursementSchema = ReimbursementSchema;
|
|
709
|
+
exports.ReportSchema = ReportSchema;
|
|
710
|
+
exports.ReturnAuthorizationSchema = ReturnAuthorizationSchema;
|
|
711
|
+
exports.ReturnItemSchema = ReturnItemSchema;
|
|
712
|
+
exports.ShipmentSchema = ShipmentSchema;
|
|
713
|
+
exports.ShippingCategorySchema = ShippingCategorySchema;
|
|
714
|
+
exports.ShippingMethodSchema = ShippingMethodSchema;
|
|
715
|
+
exports.ShippingRateSchema = ShippingRateSchema;
|
|
716
|
+
exports.StateSchema = StateSchema;
|
|
717
|
+
exports.StockItemSchema = StockItemSchema;
|
|
718
|
+
exports.StockLocationSchema = StockLocationSchema;
|
|
719
|
+
exports.StockMovementSchema = StockMovementSchema;
|
|
720
|
+
exports.StockTransferSchema = StockTransferSchema;
|
|
721
|
+
exports.StoreCreditSchema = StoreCreditSchema;
|
|
722
|
+
exports.TaxCategorySchema = TaxCategorySchema;
|
|
723
|
+
exports.TaxonSchema = TaxonSchema;
|
|
724
|
+
exports.TaxonomySchema = TaxonomySchema;
|
|
725
|
+
exports.VariantSchema = VariantSchema;
|
|
726
|
+
exports.WishedItemSchema = WishedItemSchema;
|
|
727
|
+
exports.WishlistSchema = WishlistSchema;
|
|
967
728
|
//# sourceMappingURL=index.cjs.map
|
|
968
729
|
//# sourceMappingURL=index.cjs.map
|