@spree/sdk 0.2.3 → 0.2.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.
@@ -594,6 +594,7 @@ declare const StoreCreditCardSchema: z.ZodObject<{
594
594
  year: z.ZodNumber;
595
595
  name: z.ZodNullable<z.ZodString>;
596
596
  default: z.ZodBoolean;
597
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
597
598
  }, z.core.$strip>;
598
599
  type StoreCreditCard = z.infer<typeof StoreCreditCardSchema>;
599
600
 
@@ -714,6 +715,7 @@ declare const StoreLineItemSchema: z.ZodObject<{
714
715
  id: z.ZodString;
715
716
  variant_id: z.ZodString;
716
717
  quantity: z.ZodNumber;
718
+ currency: z.ZodString;
717
719
  name: z.ZodString;
718
720
  slug: z.ZodString;
719
721
  options_text: z.ZodString;
@@ -819,7 +821,7 @@ declare const StoreOrderSchema: z.ZodObject<{
819
821
  completed_at: z.ZodNullable<z.ZodString>;
820
822
  created_at: z.ZodString;
821
823
  updated_at: z.ZodString;
822
- order_promotions: z.ZodOptional<z.ZodArray<z.ZodObject<{
824
+ order_promotions: z.ZodArray<z.ZodObject<{
823
825
  id: z.ZodString;
824
826
  promotion_id: z.ZodString;
825
827
  name: z.ZodString;
@@ -827,11 +829,12 @@ declare const StoreOrderSchema: z.ZodObject<{
827
829
  code: z.ZodNullable<z.ZodString>;
828
830
  amount: z.ZodString;
829
831
  display_amount: z.ZodString;
830
- }, z.core.$strip>>>;
831
- line_items: z.ZodOptional<z.ZodArray<z.ZodObject<{
832
+ }, z.core.$strip>>;
833
+ line_items: z.ZodArray<z.ZodObject<{
832
834
  id: z.ZodString;
833
835
  variant_id: z.ZodString;
834
836
  quantity: z.ZodNumber;
837
+ currency: z.ZodString;
835
838
  name: z.ZodString;
836
839
  slug: z.ZodString;
837
840
  options_text: z.ZodString;
@@ -876,8 +879,8 @@ declare const StoreOrderSchema: z.ZodObject<{
876
879
  expired: z.ZodBoolean;
877
880
  access_limit_exceeded: z.ZodBoolean;
878
881
  }, z.core.$strip>>;
879
- }, z.core.$strip>>>;
880
- shipments: z.ZodOptional<z.ZodArray<z.ZodObject<{
882
+ }, z.core.$strip>>;
883
+ shipments: z.ZodArray<z.ZodObject<{
881
884
  id: z.ZodString;
882
885
  number: z.ZodString;
883
886
  state: z.ZodString;
@@ -917,8 +920,8 @@ declare const StoreOrderSchema: z.ZodObject<{
917
920
  code: z.ZodNullable<z.ZodString>;
918
921
  }, z.core.$strip>;
919
922
  }, z.core.$strip>>;
920
- }, z.core.$strip>>>;
921
- payments: z.ZodOptional<z.ZodArray<z.ZodObject<{
923
+ }, z.core.$strip>>;
924
+ payments: z.ZodArray<z.ZodObject<{
922
925
  id: z.ZodString;
923
926
  payment_method_id: z.ZodString;
924
927
  state: z.ZodString;
@@ -928,14 +931,18 @@ declare const StoreOrderSchema: z.ZodObject<{
928
931
  display_amount: z.ZodString;
929
932
  created_at: z.ZodString;
930
933
  updated_at: z.ZodString;
934
+ source_type: z.ZodNullable<z.ZodString>;
935
+ source_id: z.ZodNullable<z.ZodString>;
936
+ source: z.ZodAny;
931
937
  payment_method: z.ZodObject<{
932
938
  id: z.ZodString;
933
939
  name: z.ZodString;
934
940
  description: z.ZodNullable<z.ZodString>;
935
941
  type: z.ZodString;
942
+ session_required: z.ZodBoolean;
936
943
  }, z.core.$strip>;
937
- }, z.core.$strip>>>;
938
- bill_address: z.ZodOptional<z.ZodObject<{
944
+ }, z.core.$strip>>;
945
+ bill_address: z.ZodNullable<z.ZodObject<{
939
946
  id: z.ZodString;
940
947
  firstname: z.ZodNullable<z.ZodString>;
941
948
  lastname: z.ZodNullable<z.ZodString>;
@@ -952,7 +959,7 @@ declare const StoreOrderSchema: z.ZodObject<{
952
959
  state_abbr: z.ZodNullable<z.ZodString>;
953
960
  state_name: z.ZodNullable<z.ZodString>;
954
961
  }, z.core.$strip>>;
955
- ship_address: z.ZodOptional<z.ZodObject<{
962
+ ship_address: z.ZodNullable<z.ZodObject<{
956
963
  id: z.ZodString;
957
964
  firstname: z.ZodNullable<z.ZodString>;
958
965
  lastname: z.ZodNullable<z.ZodString>;
@@ -974,6 +981,7 @@ declare const StoreOrderSchema: z.ZodObject<{
974
981
  name: z.ZodString;
975
982
  description: z.ZodNullable<z.ZodString>;
976
983
  type: z.ZodString;
984
+ session_required: z.ZodBoolean;
977
985
  }, z.core.$strip>>;
978
986
  }, z.core.$strip>;
979
987
  type StoreOrder = z.infer<typeof StoreOrderSchema>;
@@ -999,11 +1007,15 @@ declare const StorePaymentSchema: z.ZodObject<{
999
1007
  display_amount: z.ZodString;
1000
1008
  created_at: z.ZodString;
1001
1009
  updated_at: z.ZodString;
1010
+ source_type: z.ZodNullable<z.ZodString>;
1011
+ source_id: z.ZodNullable<z.ZodString>;
1012
+ source: z.ZodAny;
1002
1013
  payment_method: z.ZodObject<{
1003
1014
  id: z.ZodString;
1004
1015
  name: z.ZodString;
1005
1016
  description: z.ZodNullable<z.ZodString>;
1006
1017
  type: z.ZodString;
1018
+ session_required: z.ZodBoolean;
1007
1019
  }, z.core.$strip>;
1008
1020
  }, z.core.$strip>;
1009
1021
  type StorePayment = z.infer<typeof StorePaymentSchema>;
@@ -1013,9 +1025,61 @@ declare const StorePaymentMethodSchema: z.ZodObject<{
1013
1025
  name: z.ZodString;
1014
1026
  description: z.ZodNullable<z.ZodString>;
1015
1027
  type: z.ZodString;
1028
+ session_required: z.ZodBoolean;
1016
1029
  }, z.core.$strip>;
1017
1030
  type StorePaymentMethod = z.infer<typeof StorePaymentMethodSchema>;
1018
1031
 
1032
+ declare const StorePaymentSessionSchema: z.ZodObject<{
1033
+ id: z.ZodString;
1034
+ status: z.ZodString;
1035
+ currency: z.ZodString;
1036
+ external_id: z.ZodString;
1037
+ external_data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1038
+ customer_external_id: z.ZodNullable<z.ZodString>;
1039
+ expires_at: z.ZodNullable<z.ZodString>;
1040
+ created_at: z.ZodString;
1041
+ updated_at: z.ZodString;
1042
+ amount: z.ZodString;
1043
+ payment_method_id: z.ZodString;
1044
+ order_id: z.ZodString;
1045
+ payment_method: z.ZodObject<{
1046
+ id: z.ZodString;
1047
+ name: z.ZodString;
1048
+ description: z.ZodNullable<z.ZodString>;
1049
+ type: z.ZodString;
1050
+ session_required: z.ZodBoolean;
1051
+ }, z.core.$strip>;
1052
+ payment: z.ZodOptional<z.ZodObject<{
1053
+ id: z.ZodString;
1054
+ payment_method_id: z.ZodString;
1055
+ state: z.ZodString;
1056
+ response_code: z.ZodNullable<z.ZodString>;
1057
+ number: z.ZodString;
1058
+ amount: z.ZodString;
1059
+ display_amount: z.ZodString;
1060
+ created_at: z.ZodString;
1061
+ updated_at: z.ZodString;
1062
+ source_type: z.ZodNullable<z.ZodString>;
1063
+ source_id: z.ZodNullable<z.ZodString>;
1064
+ source: z.ZodAny;
1065
+ payment_method: z.ZodObject<{
1066
+ id: z.ZodString;
1067
+ name: z.ZodString;
1068
+ description: z.ZodNullable<z.ZodString>;
1069
+ type: z.ZodString;
1070
+ session_required: z.ZodBoolean;
1071
+ }, z.core.$strip>;
1072
+ }, z.core.$strip>>;
1073
+ }, z.core.$strip>;
1074
+ type StorePaymentSession = z.infer<typeof StorePaymentSessionSchema>;
1075
+
1076
+ declare const StorePaymentSourceSchema: z.ZodObject<{
1077
+ id: z.ZodString;
1078
+ gateway_payment_profile_id: z.ZodNullable<z.ZodString>;
1079
+ public_metadata: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1080
+ }, z.core.$strip>;
1081
+ type StorePaymentSource = z.infer<typeof StorePaymentSourceSchema>;
1082
+
1019
1083
  declare const StorePriceSchema: z.ZodObject<{
1020
1084
  id: z.ZodString;
1021
1085
  amount: z.ZodNullable<z.ZodString>;
@@ -1433,10 +1497,23 @@ declare const StoreStoreSchema: z.ZodObject<{
1433
1497
  name: z.ZodString;
1434
1498
  description: z.ZodNullable<z.ZodString>;
1435
1499
  type: z.ZodString;
1500
+ session_required: z.ZodBoolean;
1436
1501
  }, z.core.$strip>>;
1437
1502
  }, z.core.$strip>;
1438
1503
  type StoreStore = z.infer<typeof StoreStoreSchema>;
1439
1504
 
1505
+ declare const StoreStoreCreditSchema: z.ZodObject<{
1506
+ id: z.ZodString;
1507
+ amount: z.ZodString;
1508
+ amount_used: z.ZodString;
1509
+ amount_remaining: z.ZodString;
1510
+ display_amount: z.ZodString;
1511
+ display_amount_used: z.ZodString;
1512
+ display_amount_remaining: z.ZodString;
1513
+ currency: z.ZodString;
1514
+ }, z.core.$strip>;
1515
+ type StoreStoreCredit = z.infer<typeof StoreStoreCreditSchema>;
1516
+
1440
1517
  declare const StoreTaxonSchema: z.ZodObject<any>;
1441
1518
  type StoreTaxon = z.infer<typeof StoreTaxonSchema>;
1442
1519
 
@@ -1709,4 +1786,4 @@ declare const StoreWishlistSchema: z.ZodObject<{
1709
1786
  }, z.core.$strip>;
1710
1787
  type StoreWishlist = z.infer<typeof StoreWishlistSchema>;
1711
1788
 
1712
- export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
1789
+ export { type AdminCustomer, AdminCustomerSchema, type AdminMetafield, AdminMetafieldSchema, type AdminOrder, AdminOrderSchema, type AdminPrice, AdminPriceSchema, type AdminProduct, AdminProductSchema, type AdminTaxon, AdminTaxonSchema, type AdminTaxonomy, AdminTaxonomySchema, type AdminVariant, AdminVariantSchema, type StoreAddress, StoreAddressSchema, type StoreBase, StoreBaseSchema, type StoreCountry, StoreCountrySchema, type StoreCreditCard, StoreCreditCardSchema, type StoreCustomer, StoreCustomerSchema, type StoreDigitalLink, StoreDigitalLinkSchema, type StoreGiftCard, StoreGiftCardSchema, type StoreImage, StoreImageSchema, type StoreLineItem, StoreLineItemSchema, type StoreMetafield, StoreMetafieldSchema, type StoreOptionType, StoreOptionTypeSchema, type StoreOptionValue, StoreOptionValueSchema, type StoreOrder, type StoreOrderPromotion, StoreOrderPromotionSchema, StoreOrderSchema, type StorePayment, type StorePaymentMethod, StorePaymentMethodSchema, StorePaymentSchema, type StorePaymentSession, StorePaymentSessionSchema, type StorePaymentSource, StorePaymentSourceSchema, type StorePrice, StorePriceSchema, type StoreProduct, StoreProductSchema, type StoreShipment, StoreShipmentSchema, type StoreShippingMethod, StoreShippingMethodSchema, type StoreShippingRate, StoreShippingRateSchema, type StoreState, StoreStateSchema, type StoreStockLocation, StoreStockLocationSchema, type StoreStore, type StoreStoreCredit, StoreStoreCreditSchema, StoreStoreSchema, type StoreTaxon, StoreTaxonSchema, type StoreTaxonomy, StoreTaxonomySchema, type StoreVariant, StoreVariantSchema, type StoreWishedItem, StoreWishedItemSchema, type StoreWishlist, StoreWishlistSchema };
package/dist/zod/index.js CHANGED
@@ -18,15 +18,6 @@ var StoreAddressSchema = z.object({
18
18
  state_abbr: z.string().nullable(),
19
19
  state_name: z.string().nullable()
20
20
  });
21
- var StoreOptionValueSchema = z.object({
22
- id: z.string(),
23
- option_type_id: z.string(),
24
- name: z.string(),
25
- presentation: z.string(),
26
- position: z.number(),
27
- option_type_name: z.string(),
28
- option_type_presentation: z.string()
29
- });
30
21
  var StoreDigitalLinkSchema = z.object({
31
22
  id: z.string(),
32
23
  access_counter: z.number(),
@@ -38,12 +29,22 @@ var StoreDigitalLinkSchema = z.object({
38
29
  expired: z.boolean(),
39
30
  access_limit_exceeded: z.boolean()
40
31
  });
32
+ var StoreOptionValueSchema = z.object({
33
+ id: z.string(),
34
+ option_type_id: z.string(),
35
+ name: z.string(),
36
+ presentation: z.string(),
37
+ position: z.number(),
38
+ option_type_name: z.string(),
39
+ option_type_presentation: z.string()
40
+ });
41
41
 
42
42
  // src/zod/generated/StoreLineItem.ts
43
43
  var StoreLineItemSchema = z.object({
44
44
  id: z.string(),
45
45
  variant_id: z.string(),
46
46
  quantity: z.number(),
47
+ currency: z.string(),
47
48
  name: z.string(),
48
49
  slug: z.string(),
49
50
  options_text: z.string(),
@@ -84,7 +85,8 @@ var StorePaymentMethodSchema = z.object({
84
85
  id: z.string(),
85
86
  name: z.string(),
86
87
  description: z.string().nullable(),
87
- type: z.string()
88
+ type: z.string(),
89
+ session_required: z.boolean()
88
90
  });
89
91
 
90
92
  // src/zod/generated/StorePayment.ts
@@ -98,6 +100,9 @@ var StorePaymentSchema = z.object({
98
100
  display_amount: z.string(),
99
101
  created_at: z.string(),
100
102
  updated_at: z.string(),
103
+ source_type: z.string().nullable(),
104
+ source_id: z.string().nullable(),
105
+ source: z.any(),
101
106
  payment_method: StorePaymentMethodSchema
102
107
  });
103
108
  var StoreShippingMethodSchema = z.object({
@@ -174,12 +179,12 @@ var AdminOrderSchema = z.object({
174
179
  completed_at: z.string().nullable(),
175
180
  created_at: z.string(),
176
181
  updated_at: z.string(),
177
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
178
- line_items: z.array(StoreLineItemSchema).optional(),
179
- shipments: z.array(StoreShipmentSchema).optional(),
180
- payments: z.array(StorePaymentSchema).optional(),
181
- bill_address: StoreAddressSchema.optional(),
182
- ship_address: StoreAddressSchema.optional(),
182
+ order_promotions: z.array(StoreOrderPromotionSchema),
183
+ line_items: z.array(StoreLineItemSchema),
184
+ shipments: z.array(StoreShipmentSchema),
185
+ payments: z.array(StorePaymentSchema),
186
+ bill_address: StoreAddressSchema.nullable(),
187
+ ship_address: StoreAddressSchema.nullable(),
183
188
  payment_methods: z.array(StorePaymentMethodSchema),
184
189
  channel: z.string().nullable(),
185
190
  last_ip_address: z.string().nullable(),
@@ -441,7 +446,8 @@ var StoreCreditCardSchema = z.object({
441
446
  month: z.number(),
442
447
  year: z.number(),
443
448
  name: z.string().nullable(),
444
- default: z.boolean()
449
+ default: z.boolean(),
450
+ gateway_payment_profile_id: z.string().nullable()
445
451
  });
446
452
  var StoreCustomerSchema = z.object({
447
453
  id: z.string(),
@@ -503,14 +509,35 @@ var StoreOrderSchema = z.object({
503
509
  completed_at: z.string().nullable(),
504
510
  created_at: z.string(),
505
511
  updated_at: z.string(),
506
- order_promotions: z.array(StoreOrderPromotionSchema).optional(),
507
- line_items: z.array(StoreLineItemSchema).optional(),
508
- shipments: z.array(StoreShipmentSchema).optional(),
509
- payments: z.array(StorePaymentSchema).optional(),
510
- bill_address: StoreAddressSchema.optional(),
511
- ship_address: StoreAddressSchema.optional(),
512
+ order_promotions: z.array(StoreOrderPromotionSchema),
513
+ line_items: z.array(StoreLineItemSchema),
514
+ shipments: z.array(StoreShipmentSchema),
515
+ payments: z.array(StorePaymentSchema),
516
+ bill_address: StoreAddressSchema.nullable(),
517
+ ship_address: StoreAddressSchema.nullable(),
512
518
  payment_methods: z.array(StorePaymentMethodSchema)
513
519
  });
520
+ var StorePaymentSessionSchema = z.object({
521
+ id: z.string(),
522
+ status: z.string(),
523
+ currency: z.string(),
524
+ external_id: z.string(),
525
+ external_data: z.record(z.string(), z.unknown()),
526
+ customer_external_id: z.string().nullable(),
527
+ expires_at: z.string().nullable(),
528
+ created_at: z.string(),
529
+ updated_at: z.string(),
530
+ amount: z.string(),
531
+ payment_method_id: z.string(),
532
+ order_id: z.string(),
533
+ payment_method: StorePaymentMethodSchema,
534
+ payment: StorePaymentSchema.optional()
535
+ });
536
+ var StorePaymentSourceSchema = z.object({
537
+ id: z.string(),
538
+ gateway_payment_profile_id: z.string().nullable(),
539
+ public_metadata: z.record(z.string(), z.unknown()).nullable()
540
+ });
514
541
  var StoreVariantSchema = z.object({
515
542
  id: z.string(),
516
543
  product_id: z.string(),
@@ -590,6 +617,16 @@ var StoreStoreSchema = z.object({
590
617
  supported_locales: z.array(z.string()),
591
618
  payment_methods: z.array(StorePaymentMethodSchema)
592
619
  });
620
+ var StoreStoreCreditSchema = z.object({
621
+ id: z.string(),
622
+ amount: z.string(),
623
+ amount_used: z.string(),
624
+ amount_remaining: z.string(),
625
+ display_amount: z.string(),
626
+ display_amount_used: z.string(),
627
+ display_amount_remaining: z.string(),
628
+ currency: z.string()
629
+ });
593
630
  var StoreTaxonomySchema = z.object({
594
631
  id: z.string(),
595
632
  name: z.string(),
@@ -621,6 +658,6 @@ var StoreWishlistSchema = z.object({
621
658
  items: z.array(StoreWishedItemSchema).optional()
622
659
  });
623
660
 
624
- export { AdminCustomerSchema, AdminMetafieldSchema, AdminOrderSchema, AdminPriceSchema, AdminProductSchema, AdminTaxonSchema, AdminTaxonomySchema, AdminVariantSchema, StoreAddressSchema, StoreBaseSchema, StoreCountrySchema, StoreCreditCardSchema, StoreCustomerSchema, StoreDigitalLinkSchema, StoreGiftCardSchema, StoreImageSchema, StoreLineItemSchema, StoreMetafieldSchema, StoreOptionTypeSchema, StoreOptionValueSchema, StoreOrderPromotionSchema, StoreOrderSchema, StorePaymentMethodSchema, StorePaymentSchema, StorePriceSchema, StoreProductSchema, StoreShipmentSchema, StoreShippingMethodSchema, StoreShippingRateSchema, StoreStateSchema, StoreStockLocationSchema, StoreStoreSchema, StoreTaxonSchema, StoreTaxonomySchema, StoreVariantSchema, StoreWishedItemSchema, StoreWishlistSchema };
661
+ export { AdminCustomerSchema, AdminMetafieldSchema, AdminOrderSchema, AdminPriceSchema, AdminProductSchema, AdminTaxonSchema, AdminTaxonomySchema, AdminVariantSchema, StoreAddressSchema, StoreBaseSchema, StoreCountrySchema, StoreCreditCardSchema, StoreCustomerSchema, StoreDigitalLinkSchema, StoreGiftCardSchema, StoreImageSchema, StoreLineItemSchema, StoreMetafieldSchema, StoreOptionTypeSchema, StoreOptionValueSchema, StoreOrderPromotionSchema, StoreOrderSchema, StorePaymentMethodSchema, StorePaymentSchema, StorePaymentSessionSchema, StorePaymentSourceSchema, StorePriceSchema, StoreProductSchema, StoreShipmentSchema, StoreShippingMethodSchema, StoreShippingRateSchema, StoreStateSchema, StoreStockLocationSchema, StoreStoreCreditSchema, StoreStoreSchema, StoreTaxonSchema, StoreTaxonomySchema, StoreVariantSchema, StoreWishedItemSchema, StoreWishlistSchema };
625
662
  //# sourceMappingURL=index.js.map
626
663
  //# sourceMappingURL=index.js.map