@spree/sdk 0.6.9 → 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 -245
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -124
- package/dist/index.d.ts +80 -124
- package/dist/index.js +32 -226
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +114 -421
- package/dist/types/index.d.ts +114 -421
- package/dist/zod/index.cjs +310 -551
- package/dist/zod/index.cjs.map +1 -1
- package/dist/zod/index.d.cts +119 -713
- package/dist/zod/index.d.ts +119 -713
- package/dist/zod/index.js +256 -490
- 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,360 +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
|
-
checkout_steps: zod.z.array(zod.z.string()),
|
|
162
|
-
token: zod.z.string(),
|
|
163
|
-
email: zod.z.string().nullable(),
|
|
164
|
-
special_instructions: zod.z.string().nullable(),
|
|
165
|
-
currency: zod.z.string(),
|
|
166
|
-
locale: zod.z.string().nullable(),
|
|
167
|
-
item_count: zod.z.number(),
|
|
168
|
-
state_lock_version: zod.z.number(),
|
|
169
|
-
shipment_state: zod.z.string().nullable(),
|
|
170
|
-
payment_state: zod.z.string().nullable(),
|
|
171
|
-
item_total: zod.z.string(),
|
|
172
|
-
display_item_total: zod.z.string(),
|
|
173
|
-
ship_total: zod.z.string(),
|
|
174
|
-
display_ship_total: zod.z.string(),
|
|
175
|
-
adjustment_total: zod.z.string(),
|
|
176
|
-
display_adjustment_total: zod.z.string(),
|
|
177
|
-
promo_total: zod.z.string(),
|
|
178
|
-
display_promo_total: zod.z.string(),
|
|
179
|
-
tax_total: zod.z.string(),
|
|
180
|
-
display_tax_total: zod.z.string(),
|
|
181
|
-
included_tax_total: zod.z.string(),
|
|
182
|
-
display_included_tax_total: zod.z.string(),
|
|
183
|
-
additional_tax_total: zod.z.string(),
|
|
184
|
-
display_additional_tax_total: zod.z.string(),
|
|
185
|
-
total: zod.z.string(),
|
|
186
|
-
display_total: zod.z.string(),
|
|
187
|
-
completed_at: zod.z.string().nullable(),
|
|
188
|
-
created_at: zod.z.string(),
|
|
189
|
-
updated_at: zod.z.string(),
|
|
190
|
-
order_promotions: zod.z.array(StoreOrderPromotionSchema),
|
|
191
|
-
line_items: zod.z.array(AdminLineItemSchema),
|
|
192
|
-
shipments: zod.z.array(StoreShipmentSchema),
|
|
193
|
-
payments: zod.z.array(StorePaymentSchema),
|
|
194
|
-
bill_address: StoreAddressSchema.nullable(),
|
|
195
|
-
ship_address: StoreAddressSchema.nullable(),
|
|
196
|
-
payment_methods: zod.z.array(StorePaymentMethodSchema),
|
|
197
|
-
channel: zod.z.string().nullable(),
|
|
198
|
-
last_ip_address: zod.z.string().nullable(),
|
|
199
|
-
considered_risky: zod.z.boolean(),
|
|
200
|
-
confirmation_delivered: zod.z.boolean(),
|
|
201
|
-
store_owner_notification_delivered: zod.z.boolean(),
|
|
202
|
-
internal_note: zod.z.string().nullable(),
|
|
203
|
-
approver_id: zod.z.string().nullable(),
|
|
204
|
-
canceled_at: zod.z.string().nullable(),
|
|
205
|
-
approved_at: zod.z.string().nullable(),
|
|
206
|
-
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
|
|
207
|
-
canceler_id: zod.z.string().nullable(),
|
|
208
|
-
created_by_id: zod.z.string().nullable(),
|
|
209
|
-
user: zod.z.lazy(() => AdminCustomerSchema).optional()
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
// src/zod/generated/AdminCustomer.ts
|
|
213
|
-
var AdminCustomerSchema = zod.z.object({
|
|
214
|
-
id: zod.z.string(),
|
|
215
|
-
email: zod.z.string(),
|
|
216
|
-
first_name: zod.z.string().nullable(),
|
|
217
|
-
last_name: zod.z.string().nullable(),
|
|
218
|
-
created_at: zod.z.string(),
|
|
219
|
-
updated_at: zod.z.string(),
|
|
220
|
-
addresses: zod.z.array(StoreAddressSchema),
|
|
221
|
-
default_billing_address: StoreAddressSchema.nullable(),
|
|
222
|
-
default_shipping_address: StoreAddressSchema.nullable(),
|
|
223
|
-
phone: zod.z.string().nullable(),
|
|
224
|
-
login: zod.z.string().nullable(),
|
|
225
|
-
accepts_email_marketing: zod.z.boolean(),
|
|
226
|
-
last_sign_in_at: zod.z.string().nullable(),
|
|
227
|
-
current_sign_in_at: zod.z.string().nullable(),
|
|
228
|
-
sign_in_count: zod.z.number(),
|
|
229
|
-
failed_attempts: zod.z.number(),
|
|
230
|
-
last_sign_in_ip: zod.z.string().nullable(),
|
|
231
|
-
current_sign_in_ip: zod.z.string().nullable(),
|
|
232
|
-
orders: zod.z.array(zod.z.lazy(() => AdminOrderSchema)).optional()
|
|
233
|
-
});
|
|
234
|
-
var AdminMetafieldSchema = zod.z.object({
|
|
235
|
-
id: zod.z.string(),
|
|
236
|
-
name: zod.z.string(),
|
|
237
|
-
type: zod.z.string(),
|
|
238
|
-
key: zod.z.string(),
|
|
239
|
-
value: zod.z.any(),
|
|
240
|
-
display_on: zod.z.string()
|
|
241
|
-
});
|
|
242
|
-
var AdminPriceSchema = zod.z.object({
|
|
243
|
-
id: zod.z.string(),
|
|
244
|
-
amount: zod.z.string().nullable(),
|
|
245
|
-
amount_in_cents: zod.z.number().nullable(),
|
|
246
|
-
compare_at_amount: zod.z.string().nullable(),
|
|
247
|
-
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
248
|
-
currency: zod.z.string().nullable(),
|
|
249
|
-
display_amount: zod.z.string().nullable(),
|
|
250
|
-
display_compare_at_amount: zod.z.string().nullable(),
|
|
251
|
-
price_list_id: zod.z.string().nullable(),
|
|
252
|
-
variant_id: zod.z.string().nullable(),
|
|
253
|
-
created_at: zod.z.string(),
|
|
254
|
-
updated_at: zod.z.string()
|
|
255
|
-
});
|
|
256
|
-
var StoreImageSchema = zod.z.object({
|
|
257
|
-
id: zod.z.string(),
|
|
258
|
-
viewable_id: zod.z.string(),
|
|
259
|
-
type: zod.z.string().nullable(),
|
|
260
|
-
viewable_type: zod.z.string(),
|
|
261
|
-
position: zod.z.number().nullable(),
|
|
262
|
-
alt: zod.z.string().nullable(),
|
|
263
|
-
created_at: zod.z.string(),
|
|
264
|
-
updated_at: zod.z.string(),
|
|
265
|
-
original_url: zod.z.string().nullable(),
|
|
266
|
-
mini_url: zod.z.string().nullable(),
|
|
267
|
-
small_url: zod.z.string().nullable(),
|
|
268
|
-
medium_url: zod.z.string().nullable(),
|
|
269
|
-
large_url: zod.z.string().nullable(),
|
|
270
|
-
xlarge_url: zod.z.string().nullable(),
|
|
271
|
-
og_image_url: zod.z.string().nullable()
|
|
272
|
-
});
|
|
273
|
-
var StorePriceSchema = zod.z.object({
|
|
274
|
-
id: zod.z.string(),
|
|
275
|
-
amount: zod.z.string().nullable(),
|
|
276
|
-
amount_in_cents: zod.z.number().nullable(),
|
|
277
|
-
compare_at_amount: zod.z.string().nullable(),
|
|
278
|
-
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
279
|
-
currency: zod.z.string().nullable(),
|
|
280
|
-
display_amount: zod.z.string().nullable(),
|
|
281
|
-
display_compare_at_amount: zod.z.string().nullable(),
|
|
282
|
-
price_list_id: zod.z.string().nullable()
|
|
283
|
-
});
|
|
284
|
-
|
|
285
|
-
// src/zod/generated/AdminVariant.ts
|
|
286
|
-
var AdminVariantSchema = zod.z.object({
|
|
287
|
-
id: zod.z.string(),
|
|
288
|
-
product_id: zod.z.string(),
|
|
289
|
-
sku: zod.z.string().nullable(),
|
|
290
|
-
is_master: zod.z.boolean(),
|
|
291
|
-
options_text: zod.z.string(),
|
|
292
|
-
track_inventory: zod.z.boolean(),
|
|
293
|
-
image_count: zod.z.number(),
|
|
294
|
-
created_at: zod.z.string(),
|
|
295
|
-
updated_at: zod.z.string(),
|
|
296
|
-
thumbnail: zod.z.string().nullable(),
|
|
297
|
-
purchasable: zod.z.boolean(),
|
|
298
|
-
in_stock: zod.z.boolean(),
|
|
299
|
-
backorderable: zod.z.boolean(),
|
|
300
|
-
weight: zod.z.number().nullable(),
|
|
301
|
-
height: zod.z.number().nullable(),
|
|
302
|
-
width: zod.z.number().nullable(),
|
|
303
|
-
depth: zod.z.number().nullable(),
|
|
304
|
-
price: StorePriceSchema,
|
|
305
|
-
original_price: StorePriceSchema.nullable(),
|
|
306
|
-
images: zod.z.array(StoreImageSchema).optional(),
|
|
307
|
-
option_values: zod.z.array(StoreOptionValueSchema),
|
|
308
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
309
|
-
position: zod.z.number(),
|
|
310
|
-
tax_category_id: zod.z.string().nullable(),
|
|
311
|
-
cost_price: zod.z.string().nullable(),
|
|
312
|
-
cost_currency: zod.z.string().nullable(),
|
|
313
|
-
deleted_at: zod.z.string().nullable(),
|
|
314
|
-
total_on_hand: zod.z.number().nullable(),
|
|
315
|
-
prices: zod.z.array(AdminPriceSchema).optional()
|
|
316
|
-
});
|
|
317
|
-
var StoreOptionTypeSchema = zod.z.object({
|
|
318
|
-
id: zod.z.string(),
|
|
319
|
-
name: zod.z.string(),
|
|
320
|
-
presentation: zod.z.string(),
|
|
321
|
-
position: zod.z.number()
|
|
322
|
-
});
|
|
323
|
-
var StoreMetafieldSchema = zod.z.object({
|
|
324
|
-
id: zod.z.string(),
|
|
325
|
-
name: zod.z.string(),
|
|
326
|
-
type: zod.z.string(),
|
|
327
|
-
key: zod.z.string(),
|
|
328
|
-
value: zod.z.any()
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
// src/zod/generated/StoreTaxon.ts
|
|
332
|
-
var StoreTaxonSchema = zod.z.object({
|
|
333
|
-
id: zod.z.string(),
|
|
334
|
-
name: zod.z.string(),
|
|
335
|
-
permalink: zod.z.string(),
|
|
336
|
-
position: zod.z.number(),
|
|
337
|
-
depth: zod.z.number(),
|
|
338
|
-
meta_title: zod.z.string().nullable(),
|
|
339
|
-
meta_description: zod.z.string().nullable(),
|
|
340
|
-
meta_keywords: zod.z.string().nullable(),
|
|
341
|
-
children_count: zod.z.number(),
|
|
342
|
-
created_at: zod.z.string(),
|
|
343
|
-
updated_at: zod.z.string(),
|
|
344
|
-
parent_id: zod.z.string().nullable(),
|
|
345
|
-
taxonomy_id: zod.z.string(),
|
|
346
|
-
description: zod.z.string(),
|
|
347
|
-
description_html: zod.z.string(),
|
|
348
|
-
image_url: zod.z.string().nullable(),
|
|
349
|
-
square_image_url: zod.z.string().nullable(),
|
|
350
|
-
is_root: zod.z.boolean(),
|
|
351
|
-
is_child: zod.z.boolean(),
|
|
352
|
-
is_leaf: zod.z.boolean(),
|
|
353
|
-
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
354
|
-
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
355
|
-
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
356
|
-
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
357
|
-
});
|
|
358
|
-
|
|
359
|
-
// src/zod/generated/AdminProduct.ts
|
|
360
|
-
var AdminProductSchema = zod.z.object({
|
|
361
|
-
id: zod.z.string(),
|
|
362
|
-
name: zod.z.string(),
|
|
363
|
-
description: zod.z.string().nullable(),
|
|
364
|
-
slug: zod.z.string(),
|
|
365
|
-
meta_description: zod.z.string().nullable(),
|
|
366
|
-
meta_keywords: zod.z.string().nullable(),
|
|
367
|
-
variant_count: zod.z.number(),
|
|
368
|
-
available_on: zod.z.string().nullable(),
|
|
369
|
-
created_at: zod.z.string(),
|
|
370
|
-
updated_at: zod.z.string(),
|
|
371
|
-
purchasable: zod.z.boolean(),
|
|
372
|
-
in_stock: zod.z.boolean(),
|
|
373
|
-
backorderable: zod.z.boolean(),
|
|
374
|
-
available: zod.z.boolean(),
|
|
375
|
-
default_variant_id: zod.z.string(),
|
|
376
|
-
thumbnail_url: zod.z.string().nullable(),
|
|
377
|
-
tags: zod.z.array(zod.z.string()),
|
|
378
|
-
price: StorePriceSchema,
|
|
379
|
-
original_price: StorePriceSchema.nullable(),
|
|
380
|
-
images: zod.z.array(StoreImageSchema).optional(),
|
|
381
|
-
variants: zod.z.array(AdminVariantSchema).optional(),
|
|
382
|
-
default_variant: AdminVariantSchema.optional(),
|
|
383
|
-
master_variant: AdminVariantSchema.optional(),
|
|
384
|
-
option_types: zod.z.array(StoreOptionTypeSchema).optional(),
|
|
385
|
-
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
386
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
387
|
-
status: zod.z.string(),
|
|
388
|
-
make_active_at: zod.z.string().nullable(),
|
|
389
|
-
discontinue_on: zod.z.string().nullable(),
|
|
390
|
-
deleted_at: zod.z.string().nullable(),
|
|
391
|
-
cost_price: zod.z.string().nullable(),
|
|
392
|
-
cost_currency: zod.z.string().nullable()
|
|
393
|
-
});
|
|
394
|
-
var AdminTaxonSchema = zod.z.object({
|
|
395
|
-
id: zod.z.string(),
|
|
396
|
-
name: zod.z.string(),
|
|
397
|
-
permalink: zod.z.string(),
|
|
398
|
-
position: zod.z.number(),
|
|
399
|
-
depth: zod.z.number(),
|
|
400
|
-
meta_title: zod.z.string().nullable(),
|
|
401
|
-
meta_description: zod.z.string().nullable(),
|
|
402
|
-
meta_keywords: zod.z.string().nullable(),
|
|
403
|
-
children_count: zod.z.number(),
|
|
404
|
-
created_at: zod.z.string(),
|
|
405
|
-
updated_at: zod.z.string(),
|
|
406
|
-
parent_id: zod.z.string().nullable(),
|
|
407
|
-
taxonomy_id: zod.z.string(),
|
|
408
|
-
description: zod.z.string(),
|
|
409
|
-
description_html: zod.z.string(),
|
|
410
|
-
image_url: zod.z.string().nullable(),
|
|
411
|
-
square_image_url: zod.z.string().nullable(),
|
|
412
|
-
is_root: zod.z.boolean(),
|
|
413
|
-
is_child: zod.z.boolean(),
|
|
414
|
-
is_leaf: zod.z.boolean(),
|
|
415
|
-
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
416
|
-
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
417
|
-
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
418
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
419
|
-
lft: zod.z.number(),
|
|
420
|
-
rgt: zod.z.number()
|
|
421
|
-
});
|
|
422
|
-
var AdminTaxonomySchema = zod.z.object({
|
|
423
|
-
id: zod.z.string(),
|
|
424
|
-
name: zod.z.string(),
|
|
425
|
-
position: zod.z.number(),
|
|
426
|
-
created_at: zod.z.string(),
|
|
427
|
-
updated_at: zod.z.string(),
|
|
428
|
-
root_id: zod.z.string().nullable(),
|
|
429
|
-
root: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
430
|
-
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
431
|
-
metafields: zod.z.array(AdminMetafieldSchema).optional()
|
|
432
|
-
});
|
|
433
|
-
var StoreAssetSchema = zod.z.object({
|
|
24
|
+
var AssetSchema = zod.z.object({
|
|
434
25
|
id: zod.z.string(),
|
|
435
26
|
viewable_id: zod.z.string(),
|
|
436
27
|
type: zod.z.string().nullable(),
|
|
@@ -440,10 +31,10 @@ var StoreAssetSchema = zod.z.object({
|
|
|
440
31
|
created_at: zod.z.string(),
|
|
441
32
|
updated_at: zod.z.string()
|
|
442
33
|
});
|
|
443
|
-
var
|
|
34
|
+
var BaseSchema = zod.z.object({
|
|
444
35
|
id: zod.z.string()
|
|
445
36
|
});
|
|
446
|
-
var
|
|
37
|
+
var MarketSchema = zod.z.object({
|
|
447
38
|
id: zod.z.string(),
|
|
448
39
|
name: zod.z.string(),
|
|
449
40
|
currency: zod.z.string(),
|
|
@@ -451,24 +42,24 @@ var StoreMarketSchema = zod.z.object({
|
|
|
451
42
|
tax_inclusive: zod.z.boolean(),
|
|
452
43
|
default: zod.z.boolean(),
|
|
453
44
|
supported_locales: zod.z.array(zod.z.string()),
|
|
454
|
-
countries: zod.z.array(zod.z.lazy(() =>
|
|
45
|
+
countries: zod.z.array(zod.z.lazy(() => CountrySchema)).optional()
|
|
455
46
|
});
|
|
456
|
-
var
|
|
47
|
+
var StateSchema = zod.z.object({
|
|
457
48
|
abbr: zod.z.string(),
|
|
458
49
|
name: zod.z.string()
|
|
459
50
|
});
|
|
460
51
|
|
|
461
|
-
// src/zod/generated/
|
|
462
|
-
var
|
|
52
|
+
// src/zod/generated/Country.ts
|
|
53
|
+
var CountrySchema = zod.z.object({
|
|
463
54
|
iso: zod.z.string(),
|
|
464
55
|
iso3: zod.z.string(),
|
|
465
56
|
name: zod.z.string(),
|
|
466
57
|
states_required: zod.z.boolean(),
|
|
467
58
|
zipcode_required: zod.z.boolean(),
|
|
468
|
-
states: zod.z.array(
|
|
469
|
-
market: zod.z.lazy(() =>
|
|
59
|
+
states: zod.z.array(StateSchema).optional(),
|
|
60
|
+
market: zod.z.lazy(() => MarketSchema).nullable().optional()
|
|
470
61
|
});
|
|
471
|
-
var
|
|
62
|
+
var CreditCardSchema = zod.z.object({
|
|
472
63
|
id: zod.z.string(),
|
|
473
64
|
cc_type: zod.z.string(),
|
|
474
65
|
last_digits: zod.z.string(),
|
|
@@ -478,36 +69,48 @@ var StoreCreditCardSchema = zod.z.object({
|
|
|
478
69
|
default: zod.z.boolean(),
|
|
479
70
|
gateway_payment_profile_id: zod.z.string().nullable()
|
|
480
71
|
});
|
|
481
|
-
var
|
|
72
|
+
var CurrencySchema = zod.z.object({
|
|
482
73
|
iso_code: zod.z.string(),
|
|
483
74
|
name: zod.z.string(),
|
|
484
75
|
symbol: zod.z.string()
|
|
485
76
|
});
|
|
486
|
-
var
|
|
77
|
+
var CustomerSchema = zod.z.object({
|
|
487
78
|
id: zod.z.string(),
|
|
488
79
|
email: zod.z.string(),
|
|
489
80
|
first_name: zod.z.string().nullable(),
|
|
490
81
|
last_name: zod.z.string().nullable(),
|
|
491
82
|
created_at: zod.z.string(),
|
|
492
83
|
updated_at: zod.z.string(),
|
|
493
|
-
addresses: zod.z.array(
|
|
494
|
-
default_billing_address:
|
|
495
|
-
default_shipping_address:
|
|
84
|
+
addresses: zod.z.array(AddressSchema),
|
|
85
|
+
default_billing_address: AddressSchema.nullable(),
|
|
86
|
+
default_shipping_address: AddressSchema.nullable()
|
|
496
87
|
});
|
|
497
|
-
var
|
|
88
|
+
var CustomerReturnSchema = zod.z.object({
|
|
498
89
|
id: zod.z.string(),
|
|
499
90
|
number: zod.z.string(),
|
|
500
91
|
created_at: zod.z.string(),
|
|
501
92
|
updated_at: zod.z.string(),
|
|
502
93
|
stock_location_id: zod.z.string().nullable()
|
|
503
94
|
});
|
|
504
|
-
var
|
|
95
|
+
var DigitalSchema = zod.z.object({
|
|
505
96
|
id: zod.z.string(),
|
|
506
97
|
created_at: zod.z.string(),
|
|
507
98
|
updated_at: zod.z.string(),
|
|
508
99
|
variant_id: zod.z.string().nullable()
|
|
509
100
|
});
|
|
510
|
-
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({
|
|
511
114
|
id: zod.z.string(),
|
|
512
115
|
number: zod.z.string(),
|
|
513
116
|
type: zod.z.string().nullable(),
|
|
@@ -516,7 +119,7 @@ var StoreExportSchema = zod.z.object({
|
|
|
516
119
|
updated_at: zod.z.string(),
|
|
517
120
|
user_id: zod.z.string().nullable()
|
|
518
121
|
});
|
|
519
|
-
var
|
|
122
|
+
var GiftCardSchema = zod.z.object({
|
|
520
123
|
id: zod.z.string(),
|
|
521
124
|
code: zod.z.string(),
|
|
522
125
|
state: zod.z.string(),
|
|
@@ -535,7 +138,7 @@ var StoreGiftCardSchema = zod.z.object({
|
|
|
535
138
|
created_at: zod.z.string(),
|
|
536
139
|
updated_at: zod.z.string()
|
|
537
140
|
});
|
|
538
|
-
var
|
|
141
|
+
var GiftCardBatchSchema = zod.z.object({
|
|
539
142
|
id: zod.z.string(),
|
|
540
143
|
codes_count: zod.z.number(),
|
|
541
144
|
currency: zod.z.string().nullable(),
|
|
@@ -546,7 +149,24 @@ var StoreGiftCardBatchSchema = zod.z.object({
|
|
|
546
149
|
expires_at: zod.z.string().nullable(),
|
|
547
150
|
created_by_id: zod.z.string().nullable()
|
|
548
151
|
});
|
|
549
|
-
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({
|
|
550
170
|
id: zod.z.string(),
|
|
551
171
|
number: zod.z.string(),
|
|
552
172
|
type: zod.z.string().nullable(),
|
|
@@ -558,7 +178,7 @@ var StoreImportSchema = zod.z.object({
|
|
|
558
178
|
owner_id: zod.z.string().nullable(),
|
|
559
179
|
user_id: zod.z.string().nullable()
|
|
560
180
|
});
|
|
561
|
-
var
|
|
181
|
+
var ImportRowSchema = zod.z.object({
|
|
562
182
|
id: zod.z.string(),
|
|
563
183
|
row_number: zod.z.number(),
|
|
564
184
|
status: zod.z.string(),
|
|
@@ -569,7 +189,7 @@ var StoreImportRowSchema = zod.z.object({
|
|
|
569
189
|
import_id: zod.z.string().nullable(),
|
|
570
190
|
item_id: zod.z.string().nullable()
|
|
571
191
|
});
|
|
572
|
-
var
|
|
192
|
+
var InvitationSchema = zod.z.object({
|
|
573
193
|
id: zod.z.string(),
|
|
574
194
|
email: zod.z.string(),
|
|
575
195
|
resource_type: zod.z.string().nullable(),
|
|
@@ -585,7 +205,18 @@ var StoreInvitationSchema = zod.z.object({
|
|
|
585
205
|
expires_at: zod.z.string().nullable(),
|
|
586
206
|
accepted_at: zod.z.string().nullable()
|
|
587
207
|
});
|
|
588
|
-
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({
|
|
589
220
|
id: zod.z.string(),
|
|
590
221
|
variant_id: zod.z.string(),
|
|
591
222
|
quantity: zod.z.number(),
|
|
@@ -614,14 +245,21 @@ var StoreLineItemSchema = zod.z.object({
|
|
|
614
245
|
updated_at: zod.z.string(),
|
|
615
246
|
compare_at_amount: zod.z.string().nullable(),
|
|
616
247
|
thumbnail_url: zod.z.string().nullable(),
|
|
617
|
-
option_values: zod.z.array(
|
|
618
|
-
digital_links: zod.z.array(
|
|
248
|
+
option_values: zod.z.array(OptionValueSchema),
|
|
249
|
+
digital_links: zod.z.array(DigitalLinkSchema)
|
|
619
250
|
});
|
|
620
|
-
var
|
|
251
|
+
var LocaleSchema = zod.z.object({
|
|
621
252
|
code: zod.z.string(),
|
|
622
253
|
name: zod.z.string()
|
|
623
254
|
});
|
|
624
|
-
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({
|
|
625
263
|
id: zod.z.string(),
|
|
626
264
|
email: zod.z.string(),
|
|
627
265
|
created_at: zod.z.string(),
|
|
@@ -630,7 +268,90 @@ var StoreNewsletterSubscriberSchema = zod.z.object({
|
|
|
630
268
|
verified_at: zod.z.string().nullable(),
|
|
631
269
|
user_id: zod.z.string().nullable()
|
|
632
270
|
});
|
|
633
|
-
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({
|
|
634
355
|
id: zod.z.string(),
|
|
635
356
|
number: zod.z.string(),
|
|
636
357
|
state: zod.z.string(),
|
|
@@ -663,15 +384,15 @@ var StoreOrderSchema = zod.z.object({
|
|
|
663
384
|
completed_at: zod.z.string().nullable(),
|
|
664
385
|
created_at: zod.z.string(),
|
|
665
386
|
updated_at: zod.z.string(),
|
|
666
|
-
order_promotions: zod.z.array(
|
|
667
|
-
line_items: zod.z.array(
|
|
668
|
-
shipments: zod.z.array(
|
|
669
|
-
payments: zod.z.array(
|
|
670
|
-
bill_address:
|
|
671
|
-
ship_address:
|
|
672
|
-
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)
|
|
673
394
|
});
|
|
674
|
-
var
|
|
395
|
+
var PaymentSessionSchema = zod.z.object({
|
|
675
396
|
id: zod.z.string(),
|
|
676
397
|
status: zod.z.string(),
|
|
677
398
|
currency: zod.z.string(),
|
|
@@ -684,10 +405,10 @@ var StorePaymentSessionSchema = zod.z.object({
|
|
|
684
405
|
amount: zod.z.string(),
|
|
685
406
|
payment_method_id: zod.z.string(),
|
|
686
407
|
order_id: zod.z.string(),
|
|
687
|
-
payment_method:
|
|
688
|
-
payment:
|
|
408
|
+
payment_method: PaymentMethodSchema,
|
|
409
|
+
payment: PaymentSchema.optional()
|
|
689
410
|
});
|
|
690
|
-
var
|
|
411
|
+
var PaymentSetupSessionSchema = zod.z.object({
|
|
691
412
|
id: zod.z.string(),
|
|
692
413
|
status: zod.z.string(),
|
|
693
414
|
external_id: zod.z.string().nullable(),
|
|
@@ -699,13 +420,50 @@ var StorePaymentSetupSessionSchema = zod.z.object({
|
|
|
699
420
|
payment_source_id: zod.z.string().nullable(),
|
|
700
421
|
payment_source_type: zod.z.string().nullable(),
|
|
701
422
|
customer_id: zod.z.string().nullable(),
|
|
702
|
-
payment_method:
|
|
423
|
+
payment_method: PaymentMethodSchema
|
|
703
424
|
});
|
|
704
|
-
var
|
|
425
|
+
var PaymentSourceSchema = zod.z.object({
|
|
705
426
|
id: zod.z.string(),
|
|
706
427
|
gateway_payment_profile_id: zod.z.string().nullable()
|
|
707
428
|
});
|
|
708
|
-
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({
|
|
709
467
|
id: zod.z.string(),
|
|
710
468
|
product_id: zod.z.string(),
|
|
711
469
|
sku: zod.z.string().nullable(),
|
|
@@ -723,15 +481,15 @@ var StoreVariantSchema = zod.z.object({
|
|
|
723
481
|
height: zod.z.number().nullable(),
|
|
724
482
|
width: zod.z.number().nullable(),
|
|
725
483
|
depth: zod.z.number().nullable(),
|
|
726
|
-
price:
|
|
727
|
-
original_price:
|
|
728
|
-
images: zod.z.array(
|
|
729
|
-
option_values: zod.z.array(
|
|
730
|
-
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()
|
|
731
489
|
});
|
|
732
490
|
|
|
733
|
-
// src/zod/generated/
|
|
734
|
-
var
|
|
491
|
+
// src/zod/generated/Product.ts
|
|
492
|
+
var ProductSchema = zod.z.object({
|
|
735
493
|
id: zod.z.string(),
|
|
736
494
|
name: zod.z.string(),
|
|
737
495
|
description: zod.z.string().nullable(),
|
|
@@ -749,17 +507,17 @@ var StoreProductSchema = zod.z.object({
|
|
|
749
507
|
default_variant_id: zod.z.string(),
|
|
750
508
|
thumbnail_url: zod.z.string().nullable(),
|
|
751
509
|
tags: zod.z.array(zod.z.string()),
|
|
752
|
-
price:
|
|
753
|
-
original_price:
|
|
754
|
-
images: zod.z.array(
|
|
755
|
-
variants: zod.z.array(
|
|
756
|
-
default_variant:
|
|
757
|
-
master_variant:
|
|
758
|
-
option_types: zod.z.array(
|
|
759
|
-
taxons: zod.z.array(zod.z.lazy(() =>
|
|
760
|
-
metafields: zod.z.array(
|
|
761
|
-
});
|
|
762
|
-
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({
|
|
763
521
|
id: zod.z.string(),
|
|
764
522
|
name: zod.z.string(),
|
|
765
523
|
description: zod.z.string().nullable(),
|
|
@@ -779,7 +537,7 @@ var StorePromotionSchema = zod.z.object({
|
|
|
779
537
|
updated_at: zod.z.string(),
|
|
780
538
|
promotion_category_id: zod.z.string().nullable()
|
|
781
539
|
});
|
|
782
|
-
var
|
|
540
|
+
var RefundSchema = zod.z.object({
|
|
783
541
|
id: zod.z.string(),
|
|
784
542
|
transaction_id: zod.z.string().nullable(),
|
|
785
543
|
created_at: zod.z.string(),
|
|
@@ -789,7 +547,7 @@ var StoreRefundSchema = zod.z.object({
|
|
|
789
547
|
refund_reason_id: zod.z.string().nullable(),
|
|
790
548
|
reimbursement_id: zod.z.string().nullable()
|
|
791
549
|
});
|
|
792
|
-
var
|
|
550
|
+
var ReimbursementSchema = zod.z.object({
|
|
793
551
|
id: zod.z.string(),
|
|
794
552
|
number: zod.z.string(),
|
|
795
553
|
reimbursement_status: zod.z.string().nullable(),
|
|
@@ -799,7 +557,7 @@ var StoreReimbursementSchema = zod.z.object({
|
|
|
799
557
|
order_id: zod.z.string().nullable(),
|
|
800
558
|
customer_return_id: zod.z.string().nullable()
|
|
801
559
|
});
|
|
802
|
-
var
|
|
560
|
+
var ReportSchema = zod.z.object({
|
|
803
561
|
id: zod.z.string(),
|
|
804
562
|
type: zod.z.string().nullable(),
|
|
805
563
|
currency: zod.z.string().nullable(),
|
|
@@ -809,7 +567,7 @@ var StoreReportSchema = zod.z.object({
|
|
|
809
567
|
date_from: zod.z.string().nullable(),
|
|
810
568
|
date_to: zod.z.string().nullable()
|
|
811
569
|
});
|
|
812
|
-
var
|
|
570
|
+
var ReturnAuthorizationSchema = zod.z.object({
|
|
813
571
|
id: zod.z.string(),
|
|
814
572
|
number: zod.z.string(),
|
|
815
573
|
created_at: zod.z.string(),
|
|
@@ -819,7 +577,7 @@ var StoreReturnAuthorizationSchema = zod.z.object({
|
|
|
819
577
|
stock_location_id: zod.z.string().nullable(),
|
|
820
578
|
return_authorization_reason_id: zod.z.string().nullable()
|
|
821
579
|
});
|
|
822
|
-
var
|
|
580
|
+
var ReturnItemSchema = zod.z.object({
|
|
823
581
|
id: zod.z.string(),
|
|
824
582
|
reception_status: zod.z.string().nullable(),
|
|
825
583
|
acceptance_status: zod.z.string().nullable(),
|
|
@@ -834,7 +592,11 @@ var StoreReturnItemSchema = zod.z.object({
|
|
|
834
592
|
reimbursement_id: zod.z.string().nullable(),
|
|
835
593
|
exchange_variant_id: zod.z.string().nullable()
|
|
836
594
|
});
|
|
837
|
-
var
|
|
595
|
+
var ShippingCategorySchema = zod.z.object({
|
|
596
|
+
id: zod.z.string(),
|
|
597
|
+
name: zod.z.string()
|
|
598
|
+
});
|
|
599
|
+
var StockItemSchema = zod.z.object({
|
|
838
600
|
id: zod.z.string(),
|
|
839
601
|
count_on_hand: zod.z.number(),
|
|
840
602
|
backorderable: zod.z.boolean(),
|
|
@@ -843,7 +605,7 @@ var StoreStockItemSchema = zod.z.object({
|
|
|
843
605
|
stock_location_id: zod.z.string().nullable(),
|
|
844
606
|
variant_id: zod.z.string().nullable()
|
|
845
607
|
});
|
|
846
|
-
var
|
|
608
|
+
var StockMovementSchema = zod.z.object({
|
|
847
609
|
id: zod.z.string(),
|
|
848
610
|
quantity: zod.z.number(),
|
|
849
611
|
action: zod.z.string().nullable(),
|
|
@@ -853,7 +615,7 @@ var StoreStockMovementSchema = zod.z.object({
|
|
|
853
615
|
originator_id: zod.z.string().nullable(),
|
|
854
616
|
stock_item_id: zod.z.string().nullable()
|
|
855
617
|
});
|
|
856
|
-
var
|
|
618
|
+
var StockTransferSchema = zod.z.object({
|
|
857
619
|
id: zod.z.string(),
|
|
858
620
|
number: zod.z.string().nullable(),
|
|
859
621
|
type: zod.z.string().nullable(),
|
|
@@ -863,7 +625,7 @@ var StoreStockTransferSchema = zod.z.object({
|
|
|
863
625
|
source_location_id: zod.z.string().nullable(),
|
|
864
626
|
destination_location_id: zod.z.string().nullable()
|
|
865
627
|
});
|
|
866
|
-
var
|
|
628
|
+
var StoreCreditSchema = zod.z.object({
|
|
867
629
|
id: zod.z.string(),
|
|
868
630
|
amount: zod.z.string(),
|
|
869
631
|
amount_used: zod.z.string(),
|
|
@@ -873,27 +635,31 @@ var StoreStoreCreditSchema = zod.z.object({
|
|
|
873
635
|
display_amount_remaining: zod.z.string(),
|
|
874
636
|
currency: zod.z.string()
|
|
875
637
|
});
|
|
876
|
-
var
|
|
638
|
+
var TaxCategorySchema = zod.z.object({
|
|
639
|
+
id: zod.z.string(),
|
|
640
|
+
name: zod.z.string()
|
|
641
|
+
});
|
|
642
|
+
var TaxonomySchema = zod.z.object({
|
|
877
643
|
id: zod.z.string(),
|
|
878
644
|
name: zod.z.string(),
|
|
879
645
|
position: zod.z.number(),
|
|
880
646
|
created_at: zod.z.string(),
|
|
881
647
|
updated_at: zod.z.string(),
|
|
882
648
|
root_id: zod.z.string().nullable(),
|
|
883
|
-
root: zod.z.lazy(() =>
|
|
884
|
-
taxons: zod.z.array(zod.z.lazy(() =>
|
|
885
|
-
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()
|
|
886
652
|
});
|
|
887
|
-
var
|
|
653
|
+
var WishedItemSchema = zod.z.object({
|
|
888
654
|
id: zod.z.string(),
|
|
889
655
|
variant_id: zod.z.string(),
|
|
890
656
|
wishlist_id: zod.z.string(),
|
|
891
657
|
quantity: zod.z.number(),
|
|
892
658
|
created_at: zod.z.string(),
|
|
893
659
|
updated_at: zod.z.string(),
|
|
894
|
-
variant:
|
|
660
|
+
variant: VariantSchema
|
|
895
661
|
});
|
|
896
|
-
var
|
|
662
|
+
var WishlistSchema = zod.z.object({
|
|
897
663
|
id: zod.z.string(),
|
|
898
664
|
name: zod.z.string(),
|
|
899
665
|
token: zod.z.string(),
|
|
@@ -901,70 +667,63 @@ var StoreWishlistSchema = zod.z.object({
|
|
|
901
667
|
updated_at: zod.z.string(),
|
|
902
668
|
is_default: zod.z.boolean(),
|
|
903
669
|
is_private: zod.z.boolean(),
|
|
904
|
-
items: zod.z.array(
|
|
670
|
+
items: zod.z.array(WishedItemSchema).optional()
|
|
905
671
|
});
|
|
906
672
|
|
|
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.
|
|
961
|
-
exports.
|
|
962
|
-
exports.StoreStockTransferSchema = StoreStockTransferSchema;
|
|
963
|
-
exports.StoreStoreCreditSchema = StoreStoreCreditSchema;
|
|
964
|
-
exports.StoreTaxonSchema = StoreTaxonSchema;
|
|
965
|
-
exports.StoreTaxonomySchema = StoreTaxonomySchema;
|
|
966
|
-
exports.StoreVariantSchema = StoreVariantSchema;
|
|
967
|
-
exports.StoreWishedItemSchema = StoreWishedItemSchema;
|
|
968
|
-
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;
|
|
969
728
|
//# sourceMappingURL=index.cjs.map
|
|
970
729
|
//# sourceMappingURL=index.cjs.map
|