@spree/sdk 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/index.cjs +67 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +24 -5
- package/dist/index.d.ts +24 -5
- package/dist/index.js +67 -12
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +36 -36
- package/dist/types/index.d.ts +36 -36
- package/dist/zod/index.cjs +663 -0
- package/dist/zod/index.cjs.map +1 -0
- package/dist/zod/index.d.cts +1690 -0
- package/dist/zod/index.d.ts +1690 -0
- package/dist/zod/index.js +625 -0
- package/dist/zod/index.js.map +1 -0
- package/package.json +20 -4
|
@@ -0,0 +1,663 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var zod = require('zod');
|
|
4
|
+
|
|
5
|
+
// src/zod/generated/AdminCustomer.ts
|
|
6
|
+
var StoreAddressSchema = zod.z.object({
|
|
7
|
+
id: zod.z.string(),
|
|
8
|
+
firstname: zod.z.string().nullable(),
|
|
9
|
+
lastname: zod.z.string().nullable(),
|
|
10
|
+
full_name: zod.z.string(),
|
|
11
|
+
address1: zod.z.string().nullable(),
|
|
12
|
+
address2: zod.z.string().nullable(),
|
|
13
|
+
city: zod.z.string().nullable(),
|
|
14
|
+
zipcode: zod.z.string().nullable(),
|
|
15
|
+
phone: zod.z.string().nullable(),
|
|
16
|
+
company: zod.z.string().nullable(),
|
|
17
|
+
country_name: zod.z.string(),
|
|
18
|
+
country_iso: zod.z.string(),
|
|
19
|
+
state_text: zod.z.string().nullable(),
|
|
20
|
+
state_abbr: zod.z.string().nullable(),
|
|
21
|
+
state_name: zod.z.string().nullable()
|
|
22
|
+
});
|
|
23
|
+
var StoreOptionValueSchema = zod.z.object({
|
|
24
|
+
id: zod.z.string(),
|
|
25
|
+
option_type_id: zod.z.string(),
|
|
26
|
+
name: zod.z.string(),
|
|
27
|
+
presentation: zod.z.string(),
|
|
28
|
+
position: zod.z.number(),
|
|
29
|
+
option_type_name: zod.z.string(),
|
|
30
|
+
option_type_presentation: zod.z.string()
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
// src/zod/generated/StoreLineItem.ts
|
|
34
|
+
var StoreLineItemSchema = zod.z.object({
|
|
35
|
+
id: zod.z.string(),
|
|
36
|
+
variant_id: zod.z.string(),
|
|
37
|
+
quantity: zod.z.number(),
|
|
38
|
+
name: zod.z.string(),
|
|
39
|
+
slug: zod.z.string(),
|
|
40
|
+
options_text: zod.z.string(),
|
|
41
|
+
price: zod.z.string(),
|
|
42
|
+
display_price: zod.z.string(),
|
|
43
|
+
total: zod.z.string(),
|
|
44
|
+
display_total: zod.z.string(),
|
|
45
|
+
adjustment_total: zod.z.string(),
|
|
46
|
+
display_adjustment_total: zod.z.string(),
|
|
47
|
+
additional_tax_total: zod.z.string(),
|
|
48
|
+
display_additional_tax_total: zod.z.string(),
|
|
49
|
+
included_tax_total: zod.z.string(),
|
|
50
|
+
display_included_tax_total: zod.z.string(),
|
|
51
|
+
promo_total: zod.z.string(),
|
|
52
|
+
display_promo_total: zod.z.string(),
|
|
53
|
+
pre_tax_amount: zod.z.string(),
|
|
54
|
+
display_pre_tax_amount: zod.z.string(),
|
|
55
|
+
discounted_amount: zod.z.string(),
|
|
56
|
+
display_discounted_amount: zod.z.string(),
|
|
57
|
+
display_compare_at_amount: zod.z.string().nullable(),
|
|
58
|
+
created_at: zod.z.string(),
|
|
59
|
+
updated_at: zod.z.string(),
|
|
60
|
+
compare_at_amount: zod.z.string().nullable(),
|
|
61
|
+
thumbnail_url: zod.z.string().nullable(),
|
|
62
|
+
option_values: zod.z.array(StoreOptionValueSchema)
|
|
63
|
+
});
|
|
64
|
+
var StoreOrderPromotionSchema = zod.z.object({
|
|
65
|
+
id: zod.z.string(),
|
|
66
|
+
promotion_id: zod.z.string(),
|
|
67
|
+
name: zod.z.string(),
|
|
68
|
+
description: zod.z.string().nullable(),
|
|
69
|
+
code: zod.z.string().nullable(),
|
|
70
|
+
amount: zod.z.string(),
|
|
71
|
+
display_amount: zod.z.string()
|
|
72
|
+
});
|
|
73
|
+
var StorePaymentMethodSchema = zod.z.object({
|
|
74
|
+
id: zod.z.string(),
|
|
75
|
+
name: zod.z.string(),
|
|
76
|
+
description: zod.z.string().nullable(),
|
|
77
|
+
type: zod.z.string()
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// src/zod/generated/StorePayment.ts
|
|
81
|
+
var StorePaymentSchema = zod.z.object({
|
|
82
|
+
id: zod.z.string(),
|
|
83
|
+
payment_method_id: zod.z.string(),
|
|
84
|
+
state: zod.z.string(),
|
|
85
|
+
response_code: zod.z.string().nullable(),
|
|
86
|
+
number: zod.z.string(),
|
|
87
|
+
amount: zod.z.string(),
|
|
88
|
+
display_amount: zod.z.string(),
|
|
89
|
+
created_at: zod.z.string(),
|
|
90
|
+
updated_at: zod.z.string(),
|
|
91
|
+
payment_method: StorePaymentMethodSchema
|
|
92
|
+
});
|
|
93
|
+
var StoreShippingMethodSchema = zod.z.object({
|
|
94
|
+
id: zod.z.string(),
|
|
95
|
+
name: zod.z.string(),
|
|
96
|
+
code: zod.z.string().nullable()
|
|
97
|
+
});
|
|
98
|
+
var StoreShippingRateSchema = zod.z.object({
|
|
99
|
+
id: zod.z.string(),
|
|
100
|
+
shipping_method_id: zod.z.string(),
|
|
101
|
+
name: zod.z.string(),
|
|
102
|
+
selected: zod.z.boolean(),
|
|
103
|
+
cost: zod.z.number(),
|
|
104
|
+
display_cost: zod.z.string(),
|
|
105
|
+
shipping_method: StoreShippingMethodSchema
|
|
106
|
+
});
|
|
107
|
+
var StoreStockLocationSchema = zod.z.object({
|
|
108
|
+
id: zod.z.string(),
|
|
109
|
+
state_abbr: zod.z.string().nullable(),
|
|
110
|
+
name: zod.z.string(),
|
|
111
|
+
address1: zod.z.string().nullable(),
|
|
112
|
+
city: zod.z.string().nullable(),
|
|
113
|
+
zipcode: zod.z.string().nullable(),
|
|
114
|
+
country_iso: zod.z.string().nullable(),
|
|
115
|
+
country_name: zod.z.string().nullable(),
|
|
116
|
+
state_text: zod.z.string().nullable()
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
// src/zod/generated/StoreShipment.ts
|
|
120
|
+
var StoreShipmentSchema = zod.z.object({
|
|
121
|
+
id: zod.z.string(),
|
|
122
|
+
number: zod.z.string(),
|
|
123
|
+
state: zod.z.string(),
|
|
124
|
+
tracking: zod.z.string().nullable(),
|
|
125
|
+
tracking_url: zod.z.string().nullable(),
|
|
126
|
+
cost: zod.z.string(),
|
|
127
|
+
display_cost: zod.z.string(),
|
|
128
|
+
shipped_at: zod.z.string().nullable(),
|
|
129
|
+
created_at: zod.z.string(),
|
|
130
|
+
updated_at: zod.z.string(),
|
|
131
|
+
shipping_method: StoreShippingMethodSchema,
|
|
132
|
+
stock_location: StoreStockLocationSchema,
|
|
133
|
+
shipping_rates: zod.z.array(StoreShippingRateSchema)
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
// src/zod/generated/AdminOrder.ts
|
|
137
|
+
var AdminOrderSchema = zod.z.object({
|
|
138
|
+
id: zod.z.string(),
|
|
139
|
+
number: zod.z.string(),
|
|
140
|
+
state: zod.z.string(),
|
|
141
|
+
token: zod.z.string(),
|
|
142
|
+
email: zod.z.string().nullable(),
|
|
143
|
+
special_instructions: zod.z.string().nullable(),
|
|
144
|
+
currency: zod.z.string(),
|
|
145
|
+
item_count: zod.z.number(),
|
|
146
|
+
shipment_state: zod.z.string().nullable(),
|
|
147
|
+
payment_state: zod.z.string().nullable(),
|
|
148
|
+
item_total: zod.z.string(),
|
|
149
|
+
display_item_total: zod.z.string(),
|
|
150
|
+
ship_total: zod.z.string(),
|
|
151
|
+
display_ship_total: zod.z.string(),
|
|
152
|
+
adjustment_total: zod.z.string(),
|
|
153
|
+
display_adjustment_total: zod.z.string(),
|
|
154
|
+
promo_total: zod.z.string(),
|
|
155
|
+
display_promo_total: zod.z.string(),
|
|
156
|
+
tax_total: zod.z.string(),
|
|
157
|
+
display_tax_total: zod.z.string(),
|
|
158
|
+
included_tax_total: zod.z.string(),
|
|
159
|
+
display_included_tax_total: zod.z.string(),
|
|
160
|
+
additional_tax_total: zod.z.string(),
|
|
161
|
+
display_additional_tax_total: zod.z.string(),
|
|
162
|
+
total: zod.z.string(),
|
|
163
|
+
display_total: zod.z.string(),
|
|
164
|
+
completed_at: zod.z.string().nullable(),
|
|
165
|
+
created_at: zod.z.string(),
|
|
166
|
+
updated_at: zod.z.string(),
|
|
167
|
+
order_promotions: zod.z.array(StoreOrderPromotionSchema).optional(),
|
|
168
|
+
line_items: zod.z.array(StoreLineItemSchema).optional(),
|
|
169
|
+
shipments: zod.z.array(StoreShipmentSchema).optional(),
|
|
170
|
+
payments: zod.z.array(StorePaymentSchema).optional(),
|
|
171
|
+
bill_address: StoreAddressSchema.optional(),
|
|
172
|
+
ship_address: StoreAddressSchema.optional(),
|
|
173
|
+
payment_methods: zod.z.array(StorePaymentMethodSchema),
|
|
174
|
+
channel: zod.z.string().nullable(),
|
|
175
|
+
last_ip_address: zod.z.string().nullable(),
|
|
176
|
+
considered_risky: zod.z.boolean(),
|
|
177
|
+
confirmation_delivered: zod.z.boolean(),
|
|
178
|
+
store_owner_notification_delivered: zod.z.boolean(),
|
|
179
|
+
internal_note: zod.z.string().nullable(),
|
|
180
|
+
approver_id: zod.z.string().nullable(),
|
|
181
|
+
canceled_at: zod.z.string().nullable(),
|
|
182
|
+
approved_at: zod.z.string().nullable(),
|
|
183
|
+
canceler_id: zod.z.string().nullable(),
|
|
184
|
+
created_by_id: zod.z.string().nullable(),
|
|
185
|
+
user: zod.z.lazy(() => AdminCustomerSchema).optional()
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
// src/zod/generated/AdminCustomer.ts
|
|
189
|
+
var AdminCustomerSchema = zod.z.object({
|
|
190
|
+
id: zod.z.string(),
|
|
191
|
+
email: zod.z.string(),
|
|
192
|
+
first_name: zod.z.string().nullable(),
|
|
193
|
+
last_name: zod.z.string().nullable(),
|
|
194
|
+
created_at: zod.z.string(),
|
|
195
|
+
updated_at: zod.z.string(),
|
|
196
|
+
addresses: zod.z.array(StoreAddressSchema),
|
|
197
|
+
default_billing_address: StoreAddressSchema,
|
|
198
|
+
default_shipping_address: StoreAddressSchema,
|
|
199
|
+
phone: zod.z.string().nullable(),
|
|
200
|
+
login: zod.z.string().nullable(),
|
|
201
|
+
accepts_email_marketing: zod.z.boolean(),
|
|
202
|
+
last_sign_in_at: zod.z.string().nullable(),
|
|
203
|
+
current_sign_in_at: zod.z.string().nullable(),
|
|
204
|
+
sign_in_count: zod.z.number(),
|
|
205
|
+
failed_attempts: zod.z.number(),
|
|
206
|
+
last_sign_in_ip: zod.z.string().nullable(),
|
|
207
|
+
current_sign_in_ip: zod.z.string().nullable(),
|
|
208
|
+
orders: zod.z.array(zod.z.lazy(() => AdminOrderSchema)).optional()
|
|
209
|
+
});
|
|
210
|
+
var AdminMetafieldSchema = zod.z.object({
|
|
211
|
+
id: zod.z.string(),
|
|
212
|
+
name: zod.z.string(),
|
|
213
|
+
type: zod.z.string(),
|
|
214
|
+
key: zod.z.string(),
|
|
215
|
+
value: zod.z.any(),
|
|
216
|
+
display_on: zod.z.string()
|
|
217
|
+
});
|
|
218
|
+
var AdminPriceSchema = zod.z.object({
|
|
219
|
+
id: zod.z.string(),
|
|
220
|
+
amount: zod.z.string().nullable(),
|
|
221
|
+
amount_in_cents: zod.z.number().nullable(),
|
|
222
|
+
compare_at_amount: zod.z.string().nullable(),
|
|
223
|
+
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
224
|
+
currency: zod.z.string().nullable(),
|
|
225
|
+
display_amount: zod.z.string().nullable(),
|
|
226
|
+
display_compare_at_amount: zod.z.string().nullable(),
|
|
227
|
+
price_list_id: zod.z.string().nullable(),
|
|
228
|
+
variant_id: zod.z.string().nullable(),
|
|
229
|
+
created_at: zod.z.string(),
|
|
230
|
+
updated_at: zod.z.string()
|
|
231
|
+
});
|
|
232
|
+
var StoreImageSchema = zod.z.object({
|
|
233
|
+
id: zod.z.string(),
|
|
234
|
+
viewable_id: zod.z.string(),
|
|
235
|
+
position: zod.z.number(),
|
|
236
|
+
alt: zod.z.string().nullable(),
|
|
237
|
+
viewable_type: zod.z.string(),
|
|
238
|
+
created_at: zod.z.string(),
|
|
239
|
+
updated_at: zod.z.string(),
|
|
240
|
+
original_url: zod.z.string().nullable(),
|
|
241
|
+
mini_url: zod.z.string().nullable(),
|
|
242
|
+
small_url: zod.z.string().nullable(),
|
|
243
|
+
medium_url: zod.z.string().nullable(),
|
|
244
|
+
large_url: zod.z.string().nullable(),
|
|
245
|
+
xlarge_url: zod.z.string().nullable(),
|
|
246
|
+
og_image_url: zod.z.string().nullable()
|
|
247
|
+
});
|
|
248
|
+
var StorePriceSchema = zod.z.object({
|
|
249
|
+
id: zod.z.string(),
|
|
250
|
+
amount: zod.z.string().nullable(),
|
|
251
|
+
amount_in_cents: zod.z.number().nullable(),
|
|
252
|
+
compare_at_amount: zod.z.string().nullable(),
|
|
253
|
+
compare_at_amount_in_cents: zod.z.number().nullable(),
|
|
254
|
+
currency: zod.z.string().nullable(),
|
|
255
|
+
display_amount: zod.z.string().nullable(),
|
|
256
|
+
display_compare_at_amount: zod.z.string().nullable(),
|
|
257
|
+
price_list_id: zod.z.string().nullable()
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
// src/zod/generated/AdminVariant.ts
|
|
261
|
+
var AdminVariantSchema = zod.z.object({
|
|
262
|
+
id: zod.z.string(),
|
|
263
|
+
product_id: zod.z.string(),
|
|
264
|
+
sku: zod.z.string().nullable(),
|
|
265
|
+
is_master: zod.z.boolean(),
|
|
266
|
+
options_text: zod.z.string(),
|
|
267
|
+
track_inventory: zod.z.boolean(),
|
|
268
|
+
image_count: zod.z.number(),
|
|
269
|
+
created_at: zod.z.string(),
|
|
270
|
+
updated_at: zod.z.string(),
|
|
271
|
+
thumbnail: zod.z.string().nullable(),
|
|
272
|
+
purchasable: zod.z.boolean(),
|
|
273
|
+
in_stock: zod.z.boolean(),
|
|
274
|
+
backorderable: zod.z.boolean(),
|
|
275
|
+
weight: zod.z.number().nullable(),
|
|
276
|
+
height: zod.z.number().nullable(),
|
|
277
|
+
width: zod.z.number().nullable(),
|
|
278
|
+
depth: zod.z.number().nullable(),
|
|
279
|
+
price: StorePriceSchema,
|
|
280
|
+
original_price: StorePriceSchema.nullable(),
|
|
281
|
+
images: zod.z.array(StoreImageSchema).optional(),
|
|
282
|
+
option_values: zod.z.array(StoreOptionValueSchema),
|
|
283
|
+
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
284
|
+
position: zod.z.number(),
|
|
285
|
+
tax_category_id: zod.z.string().nullable(),
|
|
286
|
+
deleted_at: zod.z.string().nullable(),
|
|
287
|
+
cost_price: zod.z.number().nullable(),
|
|
288
|
+
cost_currency: zod.z.string().nullable(),
|
|
289
|
+
total_on_hand: zod.z.number().nullable(),
|
|
290
|
+
prices: zod.z.array(AdminPriceSchema).optional()
|
|
291
|
+
});
|
|
292
|
+
var StoreOptionTypeSchema = zod.z.object({
|
|
293
|
+
id: zod.z.string(),
|
|
294
|
+
name: zod.z.string(),
|
|
295
|
+
presentation: zod.z.string(),
|
|
296
|
+
position: zod.z.number()
|
|
297
|
+
});
|
|
298
|
+
var StoreMetafieldSchema = zod.z.object({
|
|
299
|
+
id: zod.z.string(),
|
|
300
|
+
name: zod.z.string(),
|
|
301
|
+
type: zod.z.string(),
|
|
302
|
+
key: zod.z.string(),
|
|
303
|
+
value: zod.z.any()
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
// src/zod/generated/StoreTaxon.ts
|
|
307
|
+
var StoreTaxonSchema = zod.z.object({
|
|
308
|
+
id: zod.z.string(),
|
|
309
|
+
name: zod.z.string(),
|
|
310
|
+
permalink: zod.z.string(),
|
|
311
|
+
position: zod.z.number(),
|
|
312
|
+
depth: zod.z.number(),
|
|
313
|
+
meta_title: zod.z.string().nullable(),
|
|
314
|
+
meta_description: zod.z.string().nullable(),
|
|
315
|
+
meta_keywords: zod.z.string().nullable(),
|
|
316
|
+
children_count: zod.z.number(),
|
|
317
|
+
created_at: zod.z.string(),
|
|
318
|
+
updated_at: zod.z.string(),
|
|
319
|
+
parent_id: zod.z.string().nullable(),
|
|
320
|
+
taxonomy_id: zod.z.string(),
|
|
321
|
+
description: zod.z.string(),
|
|
322
|
+
description_html: zod.z.string(),
|
|
323
|
+
image_url: zod.z.string().nullable(),
|
|
324
|
+
square_image_url: zod.z.string().nullable(),
|
|
325
|
+
is_root: zod.z.boolean(),
|
|
326
|
+
is_child: zod.z.boolean(),
|
|
327
|
+
is_leaf: zod.z.boolean(),
|
|
328
|
+
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
329
|
+
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
330
|
+
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
331
|
+
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
// src/zod/generated/AdminProduct.ts
|
|
335
|
+
var AdminProductSchema = zod.z.object({
|
|
336
|
+
id: zod.z.string(),
|
|
337
|
+
name: zod.z.string(),
|
|
338
|
+
description: zod.z.string().nullable(),
|
|
339
|
+
slug: zod.z.string(),
|
|
340
|
+
meta_description: zod.z.string().nullable(),
|
|
341
|
+
meta_keywords: zod.z.string().nullable(),
|
|
342
|
+
variant_count: zod.z.number(),
|
|
343
|
+
available_on: zod.z.string().nullable(),
|
|
344
|
+
created_at: zod.z.string(),
|
|
345
|
+
updated_at: zod.z.string(),
|
|
346
|
+
purchasable: zod.z.boolean(),
|
|
347
|
+
in_stock: zod.z.boolean(),
|
|
348
|
+
backorderable: zod.z.boolean(),
|
|
349
|
+
available: zod.z.boolean(),
|
|
350
|
+
default_variant_id: zod.z.string(),
|
|
351
|
+
thumbnail_url: zod.z.string().nullable(),
|
|
352
|
+
tags: zod.z.array(zod.z.string()),
|
|
353
|
+
price: StorePriceSchema,
|
|
354
|
+
original_price: StorePriceSchema.nullable(),
|
|
355
|
+
images: zod.z.array(StoreImageSchema).optional(),
|
|
356
|
+
variants: zod.z.array(AdminVariantSchema).optional(),
|
|
357
|
+
default_variant: AdminVariantSchema.optional(),
|
|
358
|
+
master_variant: AdminVariantSchema.optional(),
|
|
359
|
+
option_types: zod.z.array(StoreOptionTypeSchema).optional(),
|
|
360
|
+
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
361
|
+
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
362
|
+
status: zod.z.string(),
|
|
363
|
+
make_active_at: zod.z.string().nullable(),
|
|
364
|
+
discontinue_on: zod.z.string().nullable(),
|
|
365
|
+
deleted_at: zod.z.string().nullable(),
|
|
366
|
+
cost_price: zod.z.number().nullable(),
|
|
367
|
+
cost_currency: zod.z.string().nullable()
|
|
368
|
+
});
|
|
369
|
+
var AdminTaxonSchema = zod.z.object({
|
|
370
|
+
id: zod.z.string(),
|
|
371
|
+
name: zod.z.string(),
|
|
372
|
+
permalink: zod.z.string(),
|
|
373
|
+
position: zod.z.number(),
|
|
374
|
+
depth: zod.z.number(),
|
|
375
|
+
meta_title: zod.z.string().nullable(),
|
|
376
|
+
meta_description: zod.z.string().nullable(),
|
|
377
|
+
meta_keywords: zod.z.string().nullable(),
|
|
378
|
+
children_count: zod.z.number(),
|
|
379
|
+
created_at: zod.z.string(),
|
|
380
|
+
updated_at: zod.z.string(),
|
|
381
|
+
parent_id: zod.z.string().nullable(),
|
|
382
|
+
taxonomy_id: zod.z.string(),
|
|
383
|
+
description: zod.z.string(),
|
|
384
|
+
description_html: zod.z.string(),
|
|
385
|
+
image_url: zod.z.string().nullable(),
|
|
386
|
+
square_image_url: zod.z.string().nullable(),
|
|
387
|
+
is_root: zod.z.boolean(),
|
|
388
|
+
is_child: zod.z.boolean(),
|
|
389
|
+
is_leaf: zod.z.boolean(),
|
|
390
|
+
parent: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
391
|
+
children: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
392
|
+
ancestors: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
393
|
+
metafields: zod.z.array(AdminMetafieldSchema).optional(),
|
|
394
|
+
lft: zod.z.number(),
|
|
395
|
+
rgt: zod.z.number()
|
|
396
|
+
});
|
|
397
|
+
var AdminTaxonomySchema = zod.z.object({
|
|
398
|
+
id: zod.z.string(),
|
|
399
|
+
name: zod.z.string(),
|
|
400
|
+
position: zod.z.number(),
|
|
401
|
+
created_at: zod.z.string(),
|
|
402
|
+
updated_at: zod.z.string(),
|
|
403
|
+
root_id: zod.z.string().nullable(),
|
|
404
|
+
root: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
405
|
+
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
406
|
+
metafields: zod.z.array(AdminMetafieldSchema).optional()
|
|
407
|
+
});
|
|
408
|
+
var StoreBaseSchema = zod.z.object({
|
|
409
|
+
id: zod.z.string()
|
|
410
|
+
});
|
|
411
|
+
var StoreStateSchema = zod.z.object({
|
|
412
|
+
abbr: zod.z.string(),
|
|
413
|
+
name: zod.z.string()
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
// src/zod/generated/StoreCountry.ts
|
|
417
|
+
var StoreCountrySchema = zod.z.object({
|
|
418
|
+
iso: zod.z.string(),
|
|
419
|
+
iso3: zod.z.string(),
|
|
420
|
+
name: zod.z.string(),
|
|
421
|
+
states_required: zod.z.boolean(),
|
|
422
|
+
zipcode_required: zod.z.boolean(),
|
|
423
|
+
default_currency: zod.z.string().nullable(),
|
|
424
|
+
default_locale: zod.z.string().nullable(),
|
|
425
|
+
states: zod.z.array(StoreStateSchema).optional()
|
|
426
|
+
});
|
|
427
|
+
var StoreCreditCardSchema = zod.z.object({
|
|
428
|
+
id: zod.z.string(),
|
|
429
|
+
cc_type: zod.z.string(),
|
|
430
|
+
last_digits: zod.z.string(),
|
|
431
|
+
month: zod.z.number(),
|
|
432
|
+
year: zod.z.number(),
|
|
433
|
+
name: zod.z.string().nullable(),
|
|
434
|
+
default: zod.z.boolean()
|
|
435
|
+
});
|
|
436
|
+
var StoreCustomerSchema = zod.z.object({
|
|
437
|
+
id: zod.z.string(),
|
|
438
|
+
email: zod.z.string(),
|
|
439
|
+
first_name: zod.z.string().nullable(),
|
|
440
|
+
last_name: zod.z.string().nullable(),
|
|
441
|
+
created_at: zod.z.string(),
|
|
442
|
+
updated_at: zod.z.string(),
|
|
443
|
+
addresses: zod.z.array(StoreAddressSchema),
|
|
444
|
+
default_billing_address: StoreAddressSchema,
|
|
445
|
+
default_shipping_address: StoreAddressSchema
|
|
446
|
+
});
|
|
447
|
+
var StoreDigitalLinkSchema = zod.z.object({
|
|
448
|
+
id: zod.z.string(),
|
|
449
|
+
access_counter: zod.z.number(),
|
|
450
|
+
filename: zod.z.string(),
|
|
451
|
+
content_type: zod.z.string(),
|
|
452
|
+
created_at: zod.z.string(),
|
|
453
|
+
updated_at: zod.z.string(),
|
|
454
|
+
authorizable: zod.z.boolean(),
|
|
455
|
+
expired: zod.z.boolean(),
|
|
456
|
+
access_limit_exceeded: zod.z.boolean()
|
|
457
|
+
});
|
|
458
|
+
var StoreGiftCardSchema = zod.z.object({
|
|
459
|
+
id: zod.z.string(),
|
|
460
|
+
code: zod.z.string(),
|
|
461
|
+
state: zod.z.string(),
|
|
462
|
+
currency: zod.z.string(),
|
|
463
|
+
amount: zod.z.number(),
|
|
464
|
+
amount_used: zod.z.number(),
|
|
465
|
+
amount_authorized: zod.z.number(),
|
|
466
|
+
amount_remaining: zod.z.number(),
|
|
467
|
+
display_amount: zod.z.string(),
|
|
468
|
+
display_amount_used: zod.z.string(),
|
|
469
|
+
display_amount_remaining: zod.z.string(),
|
|
470
|
+
expires_at: zod.z.string().nullable(),
|
|
471
|
+
redeemed_at: zod.z.string().nullable(),
|
|
472
|
+
expired: zod.z.boolean(),
|
|
473
|
+
active: zod.z.boolean(),
|
|
474
|
+
created_at: zod.z.string(),
|
|
475
|
+
updated_at: zod.z.string()
|
|
476
|
+
});
|
|
477
|
+
var StoreOrderSchema = zod.z.object({
|
|
478
|
+
id: zod.z.string(),
|
|
479
|
+
number: zod.z.string(),
|
|
480
|
+
state: zod.z.string(),
|
|
481
|
+
token: zod.z.string(),
|
|
482
|
+
email: zod.z.string().nullable(),
|
|
483
|
+
special_instructions: zod.z.string().nullable(),
|
|
484
|
+
currency: zod.z.string(),
|
|
485
|
+
item_count: zod.z.number(),
|
|
486
|
+
shipment_state: zod.z.string().nullable(),
|
|
487
|
+
payment_state: zod.z.string().nullable(),
|
|
488
|
+
item_total: zod.z.string(),
|
|
489
|
+
display_item_total: zod.z.string(),
|
|
490
|
+
ship_total: zod.z.string(),
|
|
491
|
+
display_ship_total: zod.z.string(),
|
|
492
|
+
adjustment_total: zod.z.string(),
|
|
493
|
+
display_adjustment_total: zod.z.string(),
|
|
494
|
+
promo_total: zod.z.string(),
|
|
495
|
+
display_promo_total: zod.z.string(),
|
|
496
|
+
tax_total: zod.z.string(),
|
|
497
|
+
display_tax_total: zod.z.string(),
|
|
498
|
+
included_tax_total: zod.z.string(),
|
|
499
|
+
display_included_tax_total: zod.z.string(),
|
|
500
|
+
additional_tax_total: zod.z.string(),
|
|
501
|
+
display_additional_tax_total: zod.z.string(),
|
|
502
|
+
total: zod.z.string(),
|
|
503
|
+
display_total: zod.z.string(),
|
|
504
|
+
completed_at: zod.z.string().nullable(),
|
|
505
|
+
created_at: zod.z.string(),
|
|
506
|
+
updated_at: zod.z.string(),
|
|
507
|
+
order_promotions: zod.z.array(StoreOrderPromotionSchema).optional(),
|
|
508
|
+
line_items: zod.z.array(StoreLineItemSchema).optional(),
|
|
509
|
+
shipments: zod.z.array(StoreShipmentSchema).optional(),
|
|
510
|
+
payments: zod.z.array(StorePaymentSchema).optional(),
|
|
511
|
+
bill_address: StoreAddressSchema.optional(),
|
|
512
|
+
ship_address: StoreAddressSchema.optional(),
|
|
513
|
+
payment_methods: zod.z.array(StorePaymentMethodSchema)
|
|
514
|
+
});
|
|
515
|
+
var StoreVariantSchema = zod.z.object({
|
|
516
|
+
id: zod.z.string(),
|
|
517
|
+
product_id: zod.z.string(),
|
|
518
|
+
sku: zod.z.string().nullable(),
|
|
519
|
+
is_master: zod.z.boolean(),
|
|
520
|
+
options_text: zod.z.string(),
|
|
521
|
+
track_inventory: zod.z.boolean(),
|
|
522
|
+
image_count: zod.z.number(),
|
|
523
|
+
created_at: zod.z.string(),
|
|
524
|
+
updated_at: zod.z.string(),
|
|
525
|
+
thumbnail: zod.z.string().nullable(),
|
|
526
|
+
purchasable: zod.z.boolean(),
|
|
527
|
+
in_stock: zod.z.boolean(),
|
|
528
|
+
backorderable: zod.z.boolean(),
|
|
529
|
+
weight: zod.z.number().nullable(),
|
|
530
|
+
height: zod.z.number().nullable(),
|
|
531
|
+
width: zod.z.number().nullable(),
|
|
532
|
+
depth: zod.z.number().nullable(),
|
|
533
|
+
price: StorePriceSchema,
|
|
534
|
+
original_price: StorePriceSchema.nullable(),
|
|
535
|
+
images: zod.z.array(StoreImageSchema).optional(),
|
|
536
|
+
option_values: zod.z.array(StoreOptionValueSchema),
|
|
537
|
+
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
// src/zod/generated/StoreProduct.ts
|
|
541
|
+
var StoreProductSchema = zod.z.object({
|
|
542
|
+
id: zod.z.string(),
|
|
543
|
+
name: zod.z.string(),
|
|
544
|
+
description: zod.z.string().nullable(),
|
|
545
|
+
slug: zod.z.string(),
|
|
546
|
+
meta_description: zod.z.string().nullable(),
|
|
547
|
+
meta_keywords: zod.z.string().nullable(),
|
|
548
|
+
variant_count: zod.z.number(),
|
|
549
|
+
available_on: zod.z.string().nullable(),
|
|
550
|
+
created_at: zod.z.string(),
|
|
551
|
+
updated_at: zod.z.string(),
|
|
552
|
+
purchasable: zod.z.boolean(),
|
|
553
|
+
in_stock: zod.z.boolean(),
|
|
554
|
+
backorderable: zod.z.boolean(),
|
|
555
|
+
available: zod.z.boolean(),
|
|
556
|
+
default_variant_id: zod.z.string(),
|
|
557
|
+
thumbnail_url: zod.z.string().nullable(),
|
|
558
|
+
tags: zod.z.array(zod.z.string()),
|
|
559
|
+
price: StorePriceSchema,
|
|
560
|
+
original_price: StorePriceSchema.nullable(),
|
|
561
|
+
images: zod.z.array(StoreImageSchema).optional(),
|
|
562
|
+
variants: zod.z.array(StoreVariantSchema).optional(),
|
|
563
|
+
default_variant: StoreVariantSchema.optional(),
|
|
564
|
+
master_variant: StoreVariantSchema.optional(),
|
|
565
|
+
option_types: zod.z.array(StoreOptionTypeSchema).optional(),
|
|
566
|
+
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
567
|
+
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
568
|
+
});
|
|
569
|
+
var StoreStoreSchema = zod.z.object({
|
|
570
|
+
id: zod.z.string(),
|
|
571
|
+
name: zod.z.string(),
|
|
572
|
+
url: zod.z.string(),
|
|
573
|
+
meta_description: zod.z.string().nullable(),
|
|
574
|
+
meta_keywords: zod.z.string().nullable(),
|
|
575
|
+
seo_title: zod.z.string().nullable(),
|
|
576
|
+
default_currency: zod.z.string(),
|
|
577
|
+
code: zod.z.string(),
|
|
578
|
+
default: zod.z.boolean(),
|
|
579
|
+
facebook: zod.z.string().nullable(),
|
|
580
|
+
twitter: zod.z.string().nullable(),
|
|
581
|
+
instagram: zod.z.string().nullable(),
|
|
582
|
+
customer_support_email: zod.z.string().nullable(),
|
|
583
|
+
default_locale: zod.z.string(),
|
|
584
|
+
created_at: zod.z.string(),
|
|
585
|
+
updated_at: zod.z.string(),
|
|
586
|
+
default_country_iso: zod.z.string().nullable(),
|
|
587
|
+
supported_currencies: zod.z.array(zod.z.string()),
|
|
588
|
+
favicon_image_url: zod.z.string().nullable(),
|
|
589
|
+
logo_image_url: zod.z.string().nullable(),
|
|
590
|
+
social_image_url: zod.z.string().nullable(),
|
|
591
|
+
supported_locales: zod.z.array(zod.z.string()),
|
|
592
|
+
payment_methods: zod.z.array(StorePaymentMethodSchema)
|
|
593
|
+
});
|
|
594
|
+
var StoreTaxonomySchema = zod.z.object({
|
|
595
|
+
id: zod.z.string(),
|
|
596
|
+
name: zod.z.string(),
|
|
597
|
+
position: zod.z.number(),
|
|
598
|
+
created_at: zod.z.string(),
|
|
599
|
+
updated_at: zod.z.string(),
|
|
600
|
+
root_id: zod.z.string().nullable(),
|
|
601
|
+
root: zod.z.lazy(() => StoreTaxonSchema).optional(),
|
|
602
|
+
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
603
|
+
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
604
|
+
});
|
|
605
|
+
var StoreWishedItemSchema = zod.z.object({
|
|
606
|
+
id: zod.z.string(),
|
|
607
|
+
variant_id: zod.z.string(),
|
|
608
|
+
wishlist_id: zod.z.string(),
|
|
609
|
+
quantity: zod.z.number(),
|
|
610
|
+
created_at: zod.z.string(),
|
|
611
|
+
updated_at: zod.z.string(),
|
|
612
|
+
variant: StoreVariantSchema
|
|
613
|
+
});
|
|
614
|
+
var StoreWishlistSchema = zod.z.object({
|
|
615
|
+
id: zod.z.string(),
|
|
616
|
+
name: zod.z.string(),
|
|
617
|
+
token: zod.z.string(),
|
|
618
|
+
created_at: zod.z.string(),
|
|
619
|
+
updated_at: zod.z.string(),
|
|
620
|
+
is_default: zod.z.boolean(),
|
|
621
|
+
is_private: zod.z.boolean(),
|
|
622
|
+
items: zod.z.array(StoreWishedItemSchema).optional()
|
|
623
|
+
});
|
|
624
|
+
|
|
625
|
+
exports.AdminCustomerSchema = AdminCustomerSchema;
|
|
626
|
+
exports.AdminMetafieldSchema = AdminMetafieldSchema;
|
|
627
|
+
exports.AdminOrderSchema = AdminOrderSchema;
|
|
628
|
+
exports.AdminPriceSchema = AdminPriceSchema;
|
|
629
|
+
exports.AdminProductSchema = AdminProductSchema;
|
|
630
|
+
exports.AdminTaxonSchema = AdminTaxonSchema;
|
|
631
|
+
exports.AdminTaxonomySchema = AdminTaxonomySchema;
|
|
632
|
+
exports.AdminVariantSchema = AdminVariantSchema;
|
|
633
|
+
exports.StoreAddressSchema = StoreAddressSchema;
|
|
634
|
+
exports.StoreBaseSchema = StoreBaseSchema;
|
|
635
|
+
exports.StoreCountrySchema = StoreCountrySchema;
|
|
636
|
+
exports.StoreCreditCardSchema = StoreCreditCardSchema;
|
|
637
|
+
exports.StoreCustomerSchema = StoreCustomerSchema;
|
|
638
|
+
exports.StoreDigitalLinkSchema = StoreDigitalLinkSchema;
|
|
639
|
+
exports.StoreGiftCardSchema = StoreGiftCardSchema;
|
|
640
|
+
exports.StoreImageSchema = StoreImageSchema;
|
|
641
|
+
exports.StoreLineItemSchema = StoreLineItemSchema;
|
|
642
|
+
exports.StoreMetafieldSchema = StoreMetafieldSchema;
|
|
643
|
+
exports.StoreOptionTypeSchema = StoreOptionTypeSchema;
|
|
644
|
+
exports.StoreOptionValueSchema = StoreOptionValueSchema;
|
|
645
|
+
exports.StoreOrderPromotionSchema = StoreOrderPromotionSchema;
|
|
646
|
+
exports.StoreOrderSchema = StoreOrderSchema;
|
|
647
|
+
exports.StorePaymentMethodSchema = StorePaymentMethodSchema;
|
|
648
|
+
exports.StorePaymentSchema = StorePaymentSchema;
|
|
649
|
+
exports.StorePriceSchema = StorePriceSchema;
|
|
650
|
+
exports.StoreProductSchema = StoreProductSchema;
|
|
651
|
+
exports.StoreShipmentSchema = StoreShipmentSchema;
|
|
652
|
+
exports.StoreShippingMethodSchema = StoreShippingMethodSchema;
|
|
653
|
+
exports.StoreShippingRateSchema = StoreShippingRateSchema;
|
|
654
|
+
exports.StoreStateSchema = StoreStateSchema;
|
|
655
|
+
exports.StoreStockLocationSchema = StoreStockLocationSchema;
|
|
656
|
+
exports.StoreStoreSchema = StoreStoreSchema;
|
|
657
|
+
exports.StoreTaxonSchema = StoreTaxonSchema;
|
|
658
|
+
exports.StoreTaxonomySchema = StoreTaxonomySchema;
|
|
659
|
+
exports.StoreVariantSchema = StoreVariantSchema;
|
|
660
|
+
exports.StoreWishedItemSchema = StoreWishedItemSchema;
|
|
661
|
+
exports.StoreWishlistSchema = StoreWishlistSchema;
|
|
662
|
+
//# sourceMappingURL=index.cjs.map
|
|
663
|
+
//# sourceMappingURL=index.cjs.map
|