@spree/sdk 0.4.0 → 0.6.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 +2 -2
- package/dist/index.cjs +25 -37
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -30
- package/dist/index.d.ts +27 -30
- package/dist/index.js +25 -37
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +299 -20
- package/dist/types/index.d.ts +299 -20
- package/dist/zod/index.cjs +307 -39
- package/dist/zod/index.cjs.map +1 -1
- package/dist/zod/index.d.cts +362 -53
- package/dist/zod/index.d.ts +362 -53
- package/dist/zod/index.js +285 -39
- package/dist/zod/index.js.map +1 -1
- package/package.json +1 -1
package/dist/zod/index.cjs
CHANGED
|
@@ -3,23 +3,6 @@
|
|
|
3
3
|
var zod = require('zod');
|
|
4
4
|
|
|
5
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
6
|
var StoreDigitalLinkSchema = zod.z.object({
|
|
24
7
|
id: zod.z.string(),
|
|
25
8
|
access_counter: zod.z.number(),
|
|
@@ -42,8 +25,8 @@ var StoreOptionValueSchema = zod.z.object({
|
|
|
42
25
|
option_type_presentation: zod.z.string()
|
|
43
26
|
});
|
|
44
27
|
|
|
45
|
-
// src/zod/generated/
|
|
46
|
-
var
|
|
28
|
+
// src/zod/generated/AdminLineItem.ts
|
|
29
|
+
var AdminLineItemSchema = zod.z.object({
|
|
47
30
|
id: zod.z.string(),
|
|
48
31
|
variant_id: zod.z.string(),
|
|
49
32
|
quantity: zod.z.number(),
|
|
@@ -73,7 +56,25 @@ var StoreLineItemSchema = zod.z.object({
|
|
|
73
56
|
compare_at_amount: zod.z.string().nullable(),
|
|
74
57
|
thumbnail_url: zod.z.string().nullable(),
|
|
75
58
|
option_values: zod.z.array(StoreOptionValueSchema),
|
|
76
|
-
digital_links: zod.z.array(StoreDigitalLinkSchema)
|
|
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({
|
|
63
|
+
id: zod.z.string(),
|
|
64
|
+
firstname: zod.z.string().nullable(),
|
|
65
|
+
lastname: zod.z.string().nullable(),
|
|
66
|
+
full_name: zod.z.string(),
|
|
67
|
+
address1: zod.z.string().nullable(),
|
|
68
|
+
address2: zod.z.string().nullable(),
|
|
69
|
+
city: zod.z.string().nullable(),
|
|
70
|
+
zipcode: zod.z.string().nullable(),
|
|
71
|
+
phone: zod.z.string().nullable(),
|
|
72
|
+
company: zod.z.string().nullable(),
|
|
73
|
+
country_name: zod.z.string(),
|
|
74
|
+
country_iso: zod.z.string(),
|
|
75
|
+
state_text: zod.z.string().nullable(),
|
|
76
|
+
state_abbr: zod.z.string().nullable(),
|
|
77
|
+
state_name: zod.z.string().nullable()
|
|
77
78
|
});
|
|
78
79
|
var StoreOrderPromotionSchema = zod.z.object({
|
|
79
80
|
id: zod.z.string(),
|
|
@@ -160,6 +161,7 @@ var AdminOrderSchema = zod.z.object({
|
|
|
160
161
|
email: zod.z.string().nullable(),
|
|
161
162
|
special_instructions: zod.z.string().nullable(),
|
|
162
163
|
currency: zod.z.string(),
|
|
164
|
+
locale: zod.z.string().nullable(),
|
|
163
165
|
item_count: zod.z.number(),
|
|
164
166
|
shipment_state: zod.z.string().nullable(),
|
|
165
167
|
payment_state: zod.z.string().nullable(),
|
|
@@ -183,7 +185,7 @@ var AdminOrderSchema = zod.z.object({
|
|
|
183
185
|
created_at: zod.z.string(),
|
|
184
186
|
updated_at: zod.z.string(),
|
|
185
187
|
order_promotions: zod.z.array(StoreOrderPromotionSchema),
|
|
186
|
-
line_items: zod.z.array(
|
|
188
|
+
line_items: zod.z.array(AdminLineItemSchema),
|
|
187
189
|
shipments: zod.z.array(StoreShipmentSchema),
|
|
188
190
|
payments: zod.z.array(StorePaymentSchema),
|
|
189
191
|
bill_address: StoreAddressSchema.nullable(),
|
|
@@ -198,6 +200,7 @@ var AdminOrderSchema = zod.z.object({
|
|
|
198
200
|
approver_id: zod.z.string().nullable(),
|
|
199
201
|
canceled_at: zod.z.string().nullable(),
|
|
200
202
|
approved_at: zod.z.string().nullable(),
|
|
203
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable(),
|
|
201
204
|
canceler_id: zod.z.string().nullable(),
|
|
202
205
|
created_by_id: zod.z.string().nullable(),
|
|
203
206
|
user: zod.z.lazy(() => AdminCustomerSchema).optional()
|
|
@@ -250,9 +253,10 @@ var AdminPriceSchema = zod.z.object({
|
|
|
250
253
|
var StoreImageSchema = zod.z.object({
|
|
251
254
|
id: zod.z.string(),
|
|
252
255
|
viewable_id: zod.z.string(),
|
|
253
|
-
|
|
254
|
-
alt: zod.z.string().nullable(),
|
|
256
|
+
type: zod.z.string().nullable(),
|
|
255
257
|
viewable_type: zod.z.string(),
|
|
258
|
+
position: zod.z.number().nullable(),
|
|
259
|
+
alt: zod.z.string().nullable(),
|
|
256
260
|
created_at: zod.z.string(),
|
|
257
261
|
updated_at: zod.z.string(),
|
|
258
262
|
original_url: zod.z.string().nullable(),
|
|
@@ -423,6 +427,16 @@ var AdminTaxonomySchema = zod.z.object({
|
|
|
423
427
|
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
424
428
|
metafields: zod.z.array(AdminMetafieldSchema).optional()
|
|
425
429
|
});
|
|
430
|
+
var StoreAssetSchema = zod.z.object({
|
|
431
|
+
id: zod.z.string(),
|
|
432
|
+
viewable_id: zod.z.string(),
|
|
433
|
+
type: zod.z.string().nullable(),
|
|
434
|
+
viewable_type: zod.z.string(),
|
|
435
|
+
position: zod.z.number().nullable(),
|
|
436
|
+
alt: zod.z.string().nullable(),
|
|
437
|
+
created_at: zod.z.string(),
|
|
438
|
+
updated_at: zod.z.string()
|
|
439
|
+
});
|
|
426
440
|
var StoreBaseSchema = zod.z.object({
|
|
427
441
|
id: zod.z.string()
|
|
428
442
|
});
|
|
@@ -438,6 +452,9 @@ var StoreCountrySchema = zod.z.object({
|
|
|
438
452
|
name: zod.z.string(),
|
|
439
453
|
states_required: zod.z.boolean(),
|
|
440
454
|
zipcode_required: zod.z.boolean(),
|
|
455
|
+
currency: zod.z.string().nullable(),
|
|
456
|
+
default_locale: zod.z.string().nullable(),
|
|
457
|
+
supported_locales: zod.z.array(zod.z.string()),
|
|
441
458
|
states: zod.z.array(StoreStateSchema).optional()
|
|
442
459
|
});
|
|
443
460
|
var StoreCreditCardSchema = zod.z.object({
|
|
@@ -450,6 +467,11 @@ var StoreCreditCardSchema = zod.z.object({
|
|
|
450
467
|
default: zod.z.boolean(),
|
|
451
468
|
gateway_payment_profile_id: zod.z.string().nullable()
|
|
452
469
|
});
|
|
470
|
+
var StoreCurrencySchema = zod.z.object({
|
|
471
|
+
iso_code: zod.z.string(),
|
|
472
|
+
name: zod.z.string(),
|
|
473
|
+
symbol: zod.z.string()
|
|
474
|
+
});
|
|
453
475
|
var StoreCustomerSchema = zod.z.object({
|
|
454
476
|
id: zod.z.string(),
|
|
455
477
|
email: zod.z.string(),
|
|
@@ -461,6 +483,28 @@ var StoreCustomerSchema = zod.z.object({
|
|
|
461
483
|
default_billing_address: StoreAddressSchema.nullable(),
|
|
462
484
|
default_shipping_address: StoreAddressSchema.nullable()
|
|
463
485
|
});
|
|
486
|
+
var StoreCustomerReturnSchema = zod.z.object({
|
|
487
|
+
id: zod.z.string(),
|
|
488
|
+
number: zod.z.string(),
|
|
489
|
+
created_at: zod.z.string(),
|
|
490
|
+
updated_at: zod.z.string(),
|
|
491
|
+
stock_location_id: zod.z.string().nullable()
|
|
492
|
+
});
|
|
493
|
+
var StoreDigitalSchema = zod.z.object({
|
|
494
|
+
id: zod.z.string(),
|
|
495
|
+
created_at: zod.z.string(),
|
|
496
|
+
updated_at: zod.z.string(),
|
|
497
|
+
variant_id: zod.z.string().nullable()
|
|
498
|
+
});
|
|
499
|
+
var StoreExportSchema = zod.z.object({
|
|
500
|
+
id: zod.z.string(),
|
|
501
|
+
number: zod.z.string(),
|
|
502
|
+
type: zod.z.string().nullable(),
|
|
503
|
+
format: zod.z.string().nullable(),
|
|
504
|
+
created_at: zod.z.string(),
|
|
505
|
+
updated_at: zod.z.string(),
|
|
506
|
+
user_id: zod.z.string().nullable()
|
|
507
|
+
});
|
|
464
508
|
var StoreGiftCardSchema = zod.z.object({
|
|
465
509
|
id: zod.z.string(),
|
|
466
510
|
code: zod.z.string(),
|
|
@@ -480,15 +524,100 @@ var StoreGiftCardSchema = zod.z.object({
|
|
|
480
524
|
created_at: zod.z.string(),
|
|
481
525
|
updated_at: zod.z.string()
|
|
482
526
|
});
|
|
483
|
-
var
|
|
527
|
+
var StoreGiftCardBatchSchema = zod.z.object({
|
|
484
528
|
id: zod.z.string(),
|
|
485
|
-
|
|
529
|
+
codes_count: zod.z.number(),
|
|
530
|
+
currency: zod.z.string().nullable(),
|
|
531
|
+
prefix: zod.z.string().nullable(),
|
|
532
|
+
created_at: zod.z.string(),
|
|
533
|
+
updated_at: zod.z.string(),
|
|
534
|
+
amount: zod.z.string().nullable(),
|
|
535
|
+
expires_at: zod.z.string().nullable(),
|
|
536
|
+
created_by_id: zod.z.string().nullable()
|
|
537
|
+
});
|
|
538
|
+
var StoreImportSchema = zod.z.object({
|
|
539
|
+
id: zod.z.string(),
|
|
540
|
+
number: zod.z.string(),
|
|
541
|
+
type: zod.z.string().nullable(),
|
|
542
|
+
rows_count: zod.z.number(),
|
|
543
|
+
created_at: zod.z.string(),
|
|
544
|
+
updated_at: zod.z.string(),
|
|
545
|
+
status: zod.z.string(),
|
|
546
|
+
owner_type: zod.z.string().nullable(),
|
|
547
|
+
owner_id: zod.z.string().nullable(),
|
|
548
|
+
user_id: zod.z.string().nullable()
|
|
549
|
+
});
|
|
550
|
+
var StoreImportRowSchema = zod.z.object({
|
|
551
|
+
id: zod.z.string(),
|
|
552
|
+
row_number: zod.z.number(),
|
|
553
|
+
status: zod.z.string(),
|
|
554
|
+
validation_errors: zod.z.any(),
|
|
555
|
+
item_type: zod.z.string().nullable(),
|
|
556
|
+
created_at: zod.z.string(),
|
|
557
|
+
updated_at: zod.z.string(),
|
|
558
|
+
import_id: zod.z.string().nullable(),
|
|
559
|
+
item_id: zod.z.string().nullable()
|
|
560
|
+
});
|
|
561
|
+
var StoreInvitationSchema = zod.z.object({
|
|
562
|
+
id: zod.z.string(),
|
|
563
|
+
email: zod.z.string(),
|
|
564
|
+
resource_type: zod.z.string().nullable(),
|
|
565
|
+
inviter_type: zod.z.string().nullable(),
|
|
566
|
+
invitee_type: zod.z.string().nullable(),
|
|
567
|
+
created_at: zod.z.string(),
|
|
568
|
+
updated_at: zod.z.string(),
|
|
569
|
+
status: zod.z.string(),
|
|
570
|
+
resource_id: zod.z.string().nullable(),
|
|
571
|
+
inviter_id: zod.z.string().nullable(),
|
|
572
|
+
invitee_id: zod.z.string().nullable(),
|
|
573
|
+
role_id: zod.z.string().nullable(),
|
|
574
|
+
expires_at: zod.z.string().nullable(),
|
|
575
|
+
accepted_at: zod.z.string().nullable()
|
|
576
|
+
});
|
|
577
|
+
var StoreLineItemSchema = zod.z.object({
|
|
578
|
+
id: zod.z.string(),
|
|
579
|
+
variant_id: zod.z.string(),
|
|
580
|
+
quantity: zod.z.number(),
|
|
486
581
|
currency: zod.z.string(),
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
582
|
+
name: zod.z.string(),
|
|
583
|
+
slug: zod.z.string(),
|
|
584
|
+
options_text: zod.z.string(),
|
|
585
|
+
price: zod.z.string(),
|
|
586
|
+
display_price: zod.z.string(),
|
|
587
|
+
total: zod.z.string(),
|
|
588
|
+
display_total: zod.z.string(),
|
|
589
|
+
adjustment_total: zod.z.string(),
|
|
590
|
+
display_adjustment_total: zod.z.string(),
|
|
591
|
+
additional_tax_total: zod.z.string(),
|
|
592
|
+
display_additional_tax_total: zod.z.string(),
|
|
593
|
+
included_tax_total: zod.z.string(),
|
|
594
|
+
display_included_tax_total: zod.z.string(),
|
|
595
|
+
promo_total: zod.z.string(),
|
|
596
|
+
display_promo_total: zod.z.string(),
|
|
597
|
+
pre_tax_amount: zod.z.string(),
|
|
598
|
+
display_pre_tax_amount: zod.z.string(),
|
|
599
|
+
discounted_amount: zod.z.string(),
|
|
600
|
+
display_discounted_amount: zod.z.string(),
|
|
601
|
+
display_compare_at_amount: zod.z.string().nullable(),
|
|
602
|
+
created_at: zod.z.string(),
|
|
603
|
+
updated_at: zod.z.string(),
|
|
604
|
+
compare_at_amount: zod.z.string().nullable(),
|
|
605
|
+
thumbnail_url: zod.z.string().nullable(),
|
|
606
|
+
option_values: zod.z.array(StoreOptionValueSchema),
|
|
607
|
+
digital_links: zod.z.array(StoreDigitalLinkSchema)
|
|
608
|
+
});
|
|
609
|
+
var StoreLocaleSchema = zod.z.object({
|
|
610
|
+
code: zod.z.string(),
|
|
611
|
+
name: zod.z.string()
|
|
612
|
+
});
|
|
613
|
+
var StoreNewsletterSubscriberSchema = zod.z.object({
|
|
614
|
+
id: zod.z.string(),
|
|
615
|
+
email: zod.z.string(),
|
|
616
|
+
created_at: zod.z.string(),
|
|
617
|
+
updated_at: zod.z.string(),
|
|
618
|
+
verified: zod.z.boolean(),
|
|
619
|
+
verified_at: zod.z.string().nullable(),
|
|
620
|
+
user_id: zod.z.string().nullable()
|
|
492
621
|
});
|
|
493
622
|
var StoreOrderSchema = zod.z.object({
|
|
494
623
|
id: zod.z.string(),
|
|
@@ -498,6 +627,7 @@ var StoreOrderSchema = zod.z.object({
|
|
|
498
627
|
email: zod.z.string().nullable(),
|
|
499
628
|
special_instructions: zod.z.string().nullable(),
|
|
500
629
|
currency: zod.z.string(),
|
|
630
|
+
locale: zod.z.string().nullable(),
|
|
501
631
|
item_count: zod.z.number(),
|
|
502
632
|
shipment_state: zod.z.string().nullable(),
|
|
503
633
|
payment_state: zod.z.string().nullable(),
|
|
@@ -560,8 +690,26 @@ var StorePaymentSetupSessionSchema = zod.z.object({
|
|
|
560
690
|
});
|
|
561
691
|
var StorePaymentSourceSchema = zod.z.object({
|
|
562
692
|
id: zod.z.string(),
|
|
563
|
-
gateway_payment_profile_id: zod.z.string().nullable()
|
|
564
|
-
|
|
693
|
+
gateway_payment_profile_id: zod.z.string().nullable()
|
|
694
|
+
});
|
|
695
|
+
var StorePostSchema = zod.z.object({
|
|
696
|
+
id: zod.z.string(),
|
|
697
|
+
title: zod.z.string(),
|
|
698
|
+
slug: zod.z.string(),
|
|
699
|
+
meta_title: zod.z.string().nullable(),
|
|
700
|
+
meta_description: zod.z.string().nullable(),
|
|
701
|
+
published_at: zod.z.string().nullable(),
|
|
702
|
+
created_at: zod.z.string(),
|
|
703
|
+
updated_at: zod.z.string(),
|
|
704
|
+
author_id: zod.z.string().nullable(),
|
|
705
|
+
post_category_id: zod.z.string().nullable()
|
|
706
|
+
});
|
|
707
|
+
var StorePostCategorySchema = zod.z.object({
|
|
708
|
+
id: zod.z.string(),
|
|
709
|
+
title: zod.z.string(),
|
|
710
|
+
slug: zod.z.string(),
|
|
711
|
+
created_at: zod.z.string(),
|
|
712
|
+
updated_at: zod.z.string()
|
|
565
713
|
});
|
|
566
714
|
var StoreVariantSchema = zod.z.object({
|
|
567
715
|
id: zod.z.string(),
|
|
@@ -617,6 +765,110 @@ var StoreProductSchema = zod.z.object({
|
|
|
617
765
|
taxons: zod.z.array(zod.z.lazy(() => StoreTaxonSchema)).optional(),
|
|
618
766
|
metafields: zod.z.array(StoreMetafieldSchema).optional()
|
|
619
767
|
});
|
|
768
|
+
var StorePromotionSchema = zod.z.object({
|
|
769
|
+
id: zod.z.string(),
|
|
770
|
+
name: zod.z.string(),
|
|
771
|
+
description: zod.z.string().nullable(),
|
|
772
|
+
code: zod.z.string().nullable(),
|
|
773
|
+
type: zod.z.string().nullable(),
|
|
774
|
+
kind: zod.z.string().nullable(),
|
|
775
|
+
path: zod.z.string().nullable(),
|
|
776
|
+
match_policy: zod.z.string().nullable(),
|
|
777
|
+
usage_limit: zod.z.number().nullable(),
|
|
778
|
+
advertise: zod.z.boolean(),
|
|
779
|
+
multi_codes: zod.z.boolean(),
|
|
780
|
+
code_prefix: zod.z.string().nullable(),
|
|
781
|
+
number_of_codes: zod.z.number().nullable(),
|
|
782
|
+
starts_at: zod.z.string().nullable(),
|
|
783
|
+
expires_at: zod.z.string().nullable(),
|
|
784
|
+
created_at: zod.z.string(),
|
|
785
|
+
updated_at: zod.z.string(),
|
|
786
|
+
promotion_category_id: zod.z.string().nullable()
|
|
787
|
+
});
|
|
788
|
+
var StoreRefundSchema = zod.z.object({
|
|
789
|
+
id: zod.z.string(),
|
|
790
|
+
transaction_id: zod.z.string().nullable(),
|
|
791
|
+
created_at: zod.z.string(),
|
|
792
|
+
updated_at: zod.z.string(),
|
|
793
|
+
amount: zod.z.string().nullable(),
|
|
794
|
+
payment_id: zod.z.string().nullable(),
|
|
795
|
+
refund_reason_id: zod.z.string().nullable(),
|
|
796
|
+
reimbursement_id: zod.z.string().nullable()
|
|
797
|
+
});
|
|
798
|
+
var StoreReimbursementSchema = zod.z.object({
|
|
799
|
+
id: zod.z.string(),
|
|
800
|
+
number: zod.z.string(),
|
|
801
|
+
reimbursement_status: zod.z.string().nullable(),
|
|
802
|
+
created_at: zod.z.string(),
|
|
803
|
+
updated_at: zod.z.string(),
|
|
804
|
+
total: zod.z.string().nullable(),
|
|
805
|
+
order_id: zod.z.string().nullable(),
|
|
806
|
+
customer_return_id: zod.z.string().nullable()
|
|
807
|
+
});
|
|
808
|
+
var StoreReportSchema = zod.z.object({
|
|
809
|
+
id: zod.z.string(),
|
|
810
|
+
type: zod.z.string().nullable(),
|
|
811
|
+
currency: zod.z.string().nullable(),
|
|
812
|
+
created_at: zod.z.string(),
|
|
813
|
+
updated_at: zod.z.string(),
|
|
814
|
+
user_id: zod.z.string().nullable(),
|
|
815
|
+
date_from: zod.z.string().nullable(),
|
|
816
|
+
date_to: zod.z.string().nullable()
|
|
817
|
+
});
|
|
818
|
+
var StoreReturnAuthorizationSchema = zod.z.object({
|
|
819
|
+
id: zod.z.string(),
|
|
820
|
+
number: zod.z.string(),
|
|
821
|
+
created_at: zod.z.string(),
|
|
822
|
+
updated_at: zod.z.string(),
|
|
823
|
+
state: zod.z.string(),
|
|
824
|
+
order_id: zod.z.string().nullable(),
|
|
825
|
+
stock_location_id: zod.z.string().nullable(),
|
|
826
|
+
return_authorization_reason_id: zod.z.string().nullable()
|
|
827
|
+
});
|
|
828
|
+
var StoreReturnItemSchema = zod.z.object({
|
|
829
|
+
id: zod.z.string(),
|
|
830
|
+
reception_status: zod.z.string().nullable(),
|
|
831
|
+
acceptance_status: zod.z.string().nullable(),
|
|
832
|
+
created_at: zod.z.string(),
|
|
833
|
+
updated_at: zod.z.string(),
|
|
834
|
+
pre_tax_amount: zod.z.string().nullable(),
|
|
835
|
+
included_tax_total: zod.z.string().nullable(),
|
|
836
|
+
additional_tax_total: zod.z.string().nullable(),
|
|
837
|
+
inventory_unit_id: zod.z.string().nullable(),
|
|
838
|
+
return_authorization_id: zod.z.string().nullable(),
|
|
839
|
+
customer_return_id: zod.z.string().nullable(),
|
|
840
|
+
reimbursement_id: zod.z.string().nullable(),
|
|
841
|
+
exchange_variant_id: zod.z.string().nullable()
|
|
842
|
+
});
|
|
843
|
+
var StoreStockItemSchema = zod.z.object({
|
|
844
|
+
id: zod.z.string(),
|
|
845
|
+
count_on_hand: zod.z.number(),
|
|
846
|
+
backorderable: zod.z.boolean(),
|
|
847
|
+
created_at: zod.z.string(),
|
|
848
|
+
updated_at: zod.z.string(),
|
|
849
|
+
stock_location_id: zod.z.string().nullable(),
|
|
850
|
+
variant_id: zod.z.string().nullable()
|
|
851
|
+
});
|
|
852
|
+
var StoreStockMovementSchema = zod.z.object({
|
|
853
|
+
id: zod.z.string(),
|
|
854
|
+
quantity: zod.z.number(),
|
|
855
|
+
action: zod.z.string().nullable(),
|
|
856
|
+
originator_type: zod.z.string().nullable(),
|
|
857
|
+
created_at: zod.z.string(),
|
|
858
|
+
updated_at: zod.z.string(),
|
|
859
|
+
originator_id: zod.z.string().nullable(),
|
|
860
|
+
stock_item_id: zod.z.string().nullable()
|
|
861
|
+
});
|
|
862
|
+
var StoreStockTransferSchema = zod.z.object({
|
|
863
|
+
id: zod.z.string(),
|
|
864
|
+
number: zod.z.string().nullable(),
|
|
865
|
+
type: zod.z.string().nullable(),
|
|
866
|
+
reference: zod.z.string().nullable(),
|
|
867
|
+
created_at: zod.z.string(),
|
|
868
|
+
updated_at: zod.z.string(),
|
|
869
|
+
source_location_id: zod.z.string().nullable(),
|
|
870
|
+
destination_location_id: zod.z.string().nullable()
|
|
871
|
+
});
|
|
620
872
|
var StoreStoreSchema = zod.z.object({
|
|
621
873
|
id: zod.z.string(),
|
|
622
874
|
name: zod.z.string(),
|
|
@@ -624,22 +876,16 @@ var StoreStoreSchema = zod.z.object({
|
|
|
624
876
|
meta_description: zod.z.string().nullable(),
|
|
625
877
|
meta_keywords: zod.z.string().nullable(),
|
|
626
878
|
seo_title: zod.z.string().nullable(),
|
|
627
|
-
default_currency: zod.z.string(),
|
|
628
879
|
code: zod.z.string(),
|
|
629
|
-
default: zod.z.boolean(),
|
|
630
880
|
facebook: zod.z.string().nullable(),
|
|
631
881
|
twitter: zod.z.string().nullable(),
|
|
632
882
|
instagram: zod.z.string().nullable(),
|
|
633
883
|
customer_support_email: zod.z.string().nullable(),
|
|
634
|
-
default_locale: zod.z.string(),
|
|
635
884
|
created_at: zod.z.string(),
|
|
636
885
|
updated_at: zod.z.string(),
|
|
637
|
-
default_country_iso: zod.z.string().nullable(),
|
|
638
|
-
supported_currencies: zod.z.array(zod.z.string()),
|
|
639
886
|
favicon_image_url: zod.z.string().nullable(),
|
|
640
887
|
logo_image_url: zod.z.string().nullable(),
|
|
641
888
|
social_image_url: zod.z.string().nullable(),
|
|
642
|
-
supported_locales: zod.z.array(zod.z.string()),
|
|
643
889
|
payment_methods: zod.z.array(StorePaymentMethodSchema)
|
|
644
890
|
});
|
|
645
891
|
var StoreStoreCreditSchema = zod.z.object({
|
|
@@ -684,6 +930,7 @@ var StoreWishlistSchema = zod.z.object({
|
|
|
684
930
|
});
|
|
685
931
|
|
|
686
932
|
exports.AdminCustomerSchema = AdminCustomerSchema;
|
|
933
|
+
exports.AdminLineItemSchema = AdminLineItemSchema;
|
|
687
934
|
exports.AdminMetafieldSchema = AdminMetafieldSchema;
|
|
688
935
|
exports.AdminOrderSchema = AdminOrderSchema;
|
|
689
936
|
exports.AdminPriceSchema = AdminPriceSchema;
|
|
@@ -692,16 +939,26 @@ exports.AdminTaxonSchema = AdminTaxonSchema;
|
|
|
692
939
|
exports.AdminTaxonomySchema = AdminTaxonomySchema;
|
|
693
940
|
exports.AdminVariantSchema = AdminVariantSchema;
|
|
694
941
|
exports.StoreAddressSchema = StoreAddressSchema;
|
|
942
|
+
exports.StoreAssetSchema = StoreAssetSchema;
|
|
695
943
|
exports.StoreBaseSchema = StoreBaseSchema;
|
|
696
944
|
exports.StoreCountrySchema = StoreCountrySchema;
|
|
697
945
|
exports.StoreCreditCardSchema = StoreCreditCardSchema;
|
|
946
|
+
exports.StoreCurrencySchema = StoreCurrencySchema;
|
|
947
|
+
exports.StoreCustomerReturnSchema = StoreCustomerReturnSchema;
|
|
698
948
|
exports.StoreCustomerSchema = StoreCustomerSchema;
|
|
699
949
|
exports.StoreDigitalLinkSchema = StoreDigitalLinkSchema;
|
|
950
|
+
exports.StoreDigitalSchema = StoreDigitalSchema;
|
|
951
|
+
exports.StoreExportSchema = StoreExportSchema;
|
|
952
|
+
exports.StoreGiftCardBatchSchema = StoreGiftCardBatchSchema;
|
|
700
953
|
exports.StoreGiftCardSchema = StoreGiftCardSchema;
|
|
701
954
|
exports.StoreImageSchema = StoreImageSchema;
|
|
955
|
+
exports.StoreImportRowSchema = StoreImportRowSchema;
|
|
956
|
+
exports.StoreImportSchema = StoreImportSchema;
|
|
957
|
+
exports.StoreInvitationSchema = StoreInvitationSchema;
|
|
702
958
|
exports.StoreLineItemSchema = StoreLineItemSchema;
|
|
703
|
-
exports.
|
|
959
|
+
exports.StoreLocaleSchema = StoreLocaleSchema;
|
|
704
960
|
exports.StoreMetafieldSchema = StoreMetafieldSchema;
|
|
961
|
+
exports.StoreNewsletterSubscriberSchema = StoreNewsletterSubscriberSchema;
|
|
705
962
|
exports.StoreOptionTypeSchema = StoreOptionTypeSchema;
|
|
706
963
|
exports.StoreOptionValueSchema = StoreOptionValueSchema;
|
|
707
964
|
exports.StoreOrderPromotionSchema = StoreOrderPromotionSchema;
|
|
@@ -711,13 +968,24 @@ exports.StorePaymentSchema = StorePaymentSchema;
|
|
|
711
968
|
exports.StorePaymentSessionSchema = StorePaymentSessionSchema;
|
|
712
969
|
exports.StorePaymentSetupSessionSchema = StorePaymentSetupSessionSchema;
|
|
713
970
|
exports.StorePaymentSourceSchema = StorePaymentSourceSchema;
|
|
971
|
+
exports.StorePostCategorySchema = StorePostCategorySchema;
|
|
972
|
+
exports.StorePostSchema = StorePostSchema;
|
|
714
973
|
exports.StorePriceSchema = StorePriceSchema;
|
|
715
974
|
exports.StoreProductSchema = StoreProductSchema;
|
|
975
|
+
exports.StorePromotionSchema = StorePromotionSchema;
|
|
976
|
+
exports.StoreRefundSchema = StoreRefundSchema;
|
|
977
|
+
exports.StoreReimbursementSchema = StoreReimbursementSchema;
|
|
978
|
+
exports.StoreReportSchema = StoreReportSchema;
|
|
979
|
+
exports.StoreReturnAuthorizationSchema = StoreReturnAuthorizationSchema;
|
|
980
|
+
exports.StoreReturnItemSchema = StoreReturnItemSchema;
|
|
716
981
|
exports.StoreShipmentSchema = StoreShipmentSchema;
|
|
717
982
|
exports.StoreShippingMethodSchema = StoreShippingMethodSchema;
|
|
718
983
|
exports.StoreShippingRateSchema = StoreShippingRateSchema;
|
|
719
984
|
exports.StoreStateSchema = StoreStateSchema;
|
|
985
|
+
exports.StoreStockItemSchema = StoreStockItemSchema;
|
|
720
986
|
exports.StoreStockLocationSchema = StoreStockLocationSchema;
|
|
987
|
+
exports.StoreStockMovementSchema = StoreStockMovementSchema;
|
|
988
|
+
exports.StoreStockTransferSchema = StoreStockTransferSchema;
|
|
721
989
|
exports.StoreStoreCreditSchema = StoreStoreCreditSchema;
|
|
722
990
|
exports.StoreStoreSchema = StoreStoreSchema;
|
|
723
991
|
exports.StoreTaxonSchema = StoreTaxonSchema;
|