@reactionary/core 0.0.80 → 0.0.82

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.
Files changed (86) hide show
  1. package/decorators/reactionary.decorator.js +2 -2
  2. package/initialization.js +0 -17
  3. package/package.json +1 -1
  4. package/providers/base.provider.js +1 -29
  5. package/providers/cart.provider.js +36 -3
  6. package/providers/inventory.provider.js +3 -2
  7. package/providers/order.provider.js +39 -3
  8. package/providers/price.provider.js +19 -12
  9. package/providers/product.provider.js +34 -11
  10. package/schemas/models/identifiers.model.js +35 -37
  11. package/schemas/models/identity.model.js +5 -5
  12. package/schemas/models/inventory.model.js +7 -5
  13. package/schemas/models/order.model.js +16 -16
  14. package/schemas/models/payment.model.js +10 -10
  15. package/schemas/models/price.model.js +7 -7
  16. package/schemas/models/product-search.model.js +15 -15
  17. package/schemas/models/product.model.js +32 -32
  18. package/schemas/models/profile.model.js +16 -16
  19. package/schemas/models/shipping-method.model.js +19 -19
  20. package/schemas/models/store.model.js +7 -4
  21. package/schemas/mutations/analytics.mutation.js +3 -3
  22. package/schemas/mutations/cart.mutation.js +19 -19
  23. package/schemas/mutations/checkout.mutation.js +10 -10
  24. package/schemas/mutations/profile.mutation.js +2 -2
  25. package/schemas/queries/cart.query.js +1 -1
  26. package/schemas/queries/category.query.js +6 -6
  27. package/schemas/queries/checkout.query.js +3 -3
  28. package/schemas/queries/inventory.query.js +3 -3
  29. package/schemas/queries/order.query.js +1 -1
  30. package/schemas/queries/price.query.js +2 -2
  31. package/schemas/queries/product-search.query.js +1 -1
  32. package/schemas/queries/product.query.js +4 -4
  33. package/schemas/queries/store.query.js +4 -4
  34. package/src/providers/analytics.provider.d.ts +1 -2
  35. package/src/providers/base.provider.d.ts +3 -22
  36. package/src/providers/cart.provider.d.ts +10 -10
  37. package/src/providers/category.provider.d.ts +7 -7
  38. package/src/providers/checkout.provider.d.ts +8 -8
  39. package/src/providers/identity.provider.d.ts +5 -5
  40. package/src/providers/inventory.provider.d.ts +3 -3
  41. package/src/providers/order.provider.d.ts +6 -6
  42. package/src/providers/price.provider.d.ts +5 -5
  43. package/src/providers/product-search.provider.d.ts +2 -2
  44. package/src/providers/product.provider.d.ts +5 -12
  45. package/src/providers/profile.provider.d.ts +3 -3
  46. package/src/providers/store.provider.d.ts +2 -2
  47. package/src/schemas/capabilities.schema.d.ts +2 -1
  48. package/src/schemas/models/analytics.model.d.ts +2 -1
  49. package/src/schemas/models/base.model.d.ts +6 -5
  50. package/src/schemas/models/cart.model.d.ts +53 -52
  51. package/src/schemas/models/category.model.d.ts +7 -6
  52. package/src/schemas/models/checkout.model.d.ts +94 -93
  53. package/src/schemas/models/cost.model.d.ts +33 -32
  54. package/src/schemas/models/currency.model.d.ts +2 -1
  55. package/src/schemas/models/identifiers.model.d.ts +80 -79
  56. package/src/schemas/models/identity.model.d.ts +23 -22
  57. package/src/schemas/models/inventory.model.d.ts +21 -12
  58. package/src/schemas/models/order.model.d.ts +140 -137
  59. package/src/schemas/models/payment.model.d.ts +31 -30
  60. package/src/schemas/models/price.model.d.ts +31 -30
  61. package/src/schemas/models/product-search.model.d.ts +118 -117
  62. package/src/schemas/models/product.model.d.ts +137 -136
  63. package/src/schemas/models/profile.model.d.ts +50 -49
  64. package/src/schemas/models/shipping-method.model.d.ts +42 -41
  65. package/src/schemas/models/store.model.d.ts +9 -8
  66. package/src/schemas/mutations/analytics.mutation.d.ts +48 -47
  67. package/src/schemas/mutations/base.mutation.d.ts +2 -1
  68. package/src/schemas/mutations/cart.mutation.d.ts +73 -72
  69. package/src/schemas/mutations/checkout.mutation.d.ts +96 -95
  70. package/src/schemas/mutations/identity.mutation.d.ts +4 -3
  71. package/src/schemas/mutations/profile.mutation.d.ts +4 -3
  72. package/src/schemas/queries/base.query.d.ts +2 -1
  73. package/src/schemas/queries/cart.query.d.ts +7 -7
  74. package/src/schemas/queries/category.query.d.ts +20 -19
  75. package/src/schemas/queries/checkout.query.d.ts +7 -6
  76. package/src/schemas/queries/identity.query.d.ts +2 -1
  77. package/src/schemas/queries/inventory.query.d.ts +8 -7
  78. package/src/schemas/queries/order.query.d.ts +3 -2
  79. package/src/schemas/queries/price.query.d.ts +5 -4
  80. package/src/schemas/queries/product-search.query.d.ts +12 -11
  81. package/src/schemas/queries/product.query.d.ts +14 -13
  82. package/src/schemas/queries/profile.query.d.ts +2 -1
  83. package/src/schemas/queries/store.query.d.ts +6 -5
  84. package/src/schemas/session.schema.d.ts +1 -1
  85. package/src/zod-utils.d.ts +5 -0
  86. package/zod-utils.js +0 -0
@@ -1,34 +1,35 @@
1
1
  import { z } from "zod";
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
3
4
  cart: z.ZodObject<{
4
- meta: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
5
+ meta: z.ZodDefault<z.ZodObject<{
5
6
  cache: z.ZodDefault<z.ZodObject<{
6
7
  hit: z.ZodDefault<z.ZodBoolean>;
7
8
  key: z.ZodDefault<z.ZodString>;
8
9
  }, z.core.$loose>>;
9
10
  placeholder: z.ZodDefault<z.ZodBoolean>;
10
- }, z.core.$loose>>>;
11
- identifier: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
12
- key: z.ZodDefault<z.ZodString>;
13
- }, z.core.$loose>>>;
14
- userId: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
15
- userId: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
16
- }, z.core.$loose>>>;
17
- items: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
11
+ }, z.core.$loose>>;
12
+ identifier: z.ZodDefault<z.ZodObject<{
13
+ key: z.ZodString;
14
+ }, z.core.$loose>>;
15
+ userId: z.ZodDefault<z.ZodObject<{
16
+ userId: z.ZodString;
17
+ }, z.core.$loose>>;
18
+ items: z.ZodDefault<z.ZodArray<z.ZodObject<{
18
19
  identifier: z.ZodDefault<z.ZodObject<{
19
- key: z.ZodDefault<z.ZodString>;
20
+ key: z.ZodString;
20
21
  }, z.core.$loose>>;
21
22
  product: z.ZodDefault<z.ZodObject<{
22
- key: z.ZodDefault<z.ZodString>;
23
+ key: z.ZodString;
23
24
  }, z.core.$loose>>;
24
25
  variant: z.ZodDefault<z.ZodObject<{
25
- sku: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
26
+ sku: z.ZodString;
26
27
  }, z.core.$loose>>;
27
28
  quantity: z.ZodDefault<z.ZodNumber>;
28
29
  price: z.ZodDefault<z.ZodObject<{
29
30
  unitPrice: z.ZodDefault<z.ZodObject<{
30
- value: z.ZodDefault<z.ZodNumber>;
31
- currency: z.ZodDefault<z.ZodEnum<{
31
+ value: z.ZodNumber;
32
+ currency: z.ZodEnum<{
32
33
  AED: "AED";
33
34
  AFN: "AFN";
34
35
  ALL: "ALL";
@@ -210,11 +211,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
210
211
  ZAR: "ZAR";
211
212
  ZMW: "ZMW";
212
213
  ZWL: "ZWL";
213
- }>>;
214
+ }>;
214
215
  }, z.core.$loose>>;
215
216
  unitDiscount: z.ZodDefault<z.ZodObject<{
216
- value: z.ZodDefault<z.ZodNumber>;
217
- currency: z.ZodDefault<z.ZodEnum<{
217
+ value: z.ZodNumber;
218
+ currency: z.ZodEnum<{
218
219
  AED: "AED";
219
220
  AFN: "AFN";
220
221
  ALL: "ALL";
@@ -396,11 +397,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
396
397
  ZAR: "ZAR";
397
398
  ZMW: "ZMW";
398
399
  ZWL: "ZWL";
399
- }>>;
400
+ }>;
400
401
  }, z.core.$loose>>;
401
402
  totalPrice: z.ZodDefault<z.ZodObject<{
402
- value: z.ZodDefault<z.ZodNumber>;
403
- currency: z.ZodDefault<z.ZodEnum<{
403
+ value: z.ZodNumber;
404
+ currency: z.ZodEnum<{
404
405
  AED: "AED";
405
406
  AFN: "AFN";
406
407
  ALL: "ALL";
@@ -582,11 +583,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
582
583
  ZAR: "ZAR";
583
584
  ZMW: "ZMW";
584
585
  ZWL: "ZWL";
585
- }>>;
586
+ }>;
586
587
  }, z.core.$loose>>;
587
588
  totalDiscount: z.ZodDefault<z.ZodObject<{
588
- value: z.ZodDefault<z.ZodNumber>;
589
- currency: z.ZodDefault<z.ZodEnum<{
589
+ value: z.ZodNumber;
590
+ currency: z.ZodEnum<{
590
591
  AED: "AED";
591
592
  AFN: "AFN";
592
593
  ALL: "ALL";
@@ -768,14 +769,14 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
768
769
  ZAR: "ZAR";
769
770
  ZMW: "ZMW";
770
771
  ZWL: "ZWL";
771
- }>>;
772
+ }>;
772
773
  }, z.core.$loose>>;
773
774
  }, z.core.$loose>>;
774
- }, z.core.$loose>>>>;
775
- price: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
775
+ }, z.core.$loose>>>;
776
+ price: z.ZodDefault<z.ZodObject<{
776
777
  totalTax: z.ZodDefault<z.ZodObject<{
777
- value: z.ZodDefault<z.ZodNumber>;
778
- currency: z.ZodDefault<z.ZodEnum<{
778
+ value: z.ZodNumber;
779
+ currency: z.ZodEnum<{
779
780
  AED: "AED";
780
781
  AFN: "AFN";
781
782
  ALL: "ALL";
@@ -957,11 +958,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
957
958
  ZAR: "ZAR";
958
959
  ZMW: "ZMW";
959
960
  ZWL: "ZWL";
960
- }>>;
961
+ }>;
961
962
  }, z.core.$loose>>;
962
963
  totalDiscount: z.ZodDefault<z.ZodObject<{
963
- value: z.ZodDefault<z.ZodNumber>;
964
- currency: z.ZodDefault<z.ZodEnum<{
964
+ value: z.ZodNumber;
965
+ currency: z.ZodEnum<{
965
966
  AED: "AED";
966
967
  AFN: "AFN";
967
968
  ALL: "ALL";
@@ -1143,11 +1144,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1143
1144
  ZAR: "ZAR";
1144
1145
  ZMW: "ZMW";
1145
1146
  ZWL: "ZWL";
1146
- }>>;
1147
+ }>;
1147
1148
  }, z.core.$loose>>;
1148
1149
  totalSurcharge: z.ZodDefault<z.ZodObject<{
1149
- value: z.ZodDefault<z.ZodNumber>;
1150
- currency: z.ZodDefault<z.ZodEnum<{
1150
+ value: z.ZodNumber;
1151
+ currency: z.ZodEnum<{
1151
1152
  AED: "AED";
1152
1153
  AFN: "AFN";
1153
1154
  ALL: "ALL";
@@ -1329,11 +1330,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1329
1330
  ZAR: "ZAR";
1330
1331
  ZMW: "ZMW";
1331
1332
  ZWL: "ZWL";
1332
- }>>;
1333
+ }>;
1333
1334
  }, z.core.$loose>>;
1334
1335
  totalShipping: z.ZodDefault<z.ZodObject<{
1335
- value: z.ZodDefault<z.ZodNumber>;
1336
- currency: z.ZodDefault<z.ZodEnum<{
1336
+ value: z.ZodNumber;
1337
+ currency: z.ZodEnum<{
1337
1338
  AED: "AED";
1338
1339
  AFN: "AFN";
1339
1340
  ALL: "ALL";
@@ -1515,11 +1516,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1515
1516
  ZAR: "ZAR";
1516
1517
  ZMW: "ZMW";
1517
1518
  ZWL: "ZWL";
1518
- }>>;
1519
+ }>;
1519
1520
  }, z.core.$loose>>;
1520
1521
  totalProductPrice: z.ZodDefault<z.ZodObject<{
1521
- value: z.ZodDefault<z.ZodNumber>;
1522
- currency: z.ZodDefault<z.ZodEnum<{
1522
+ value: z.ZodNumber;
1523
+ currency: z.ZodEnum<{
1523
1524
  AED: "AED";
1524
1525
  AFN: "AFN";
1525
1526
  ALL: "ALL";
@@ -1701,11 +1702,11 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1701
1702
  ZAR: "ZAR";
1702
1703
  ZMW: "ZMW";
1703
1704
  ZWL: "ZWL";
1704
- }>>;
1705
+ }>;
1705
1706
  }, z.core.$loose>>;
1706
1707
  grandTotal: z.ZodDefault<z.ZodObject<{
1707
- value: z.ZodDefault<z.ZodNumber>;
1708
- currency: z.ZodDefault<z.ZodEnum<{
1708
+ value: z.ZodNumber;
1709
+ currency: z.ZodEnum<{
1709
1710
  AED: "AED";
1710
1711
  AFN: "AFN";
1711
1712
  ALL: "ALL";
@@ -1887,50 +1888,50 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
1887
1888
  ZAR: "ZAR";
1888
1889
  ZMW: "ZMW";
1889
1890
  ZWL: "ZWL";
1890
- }>>;
1891
+ }>;
1891
1892
  }, z.core.$loose>>;
1892
- }, z.core.$loose>>>;
1893
- name: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1894
- description: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1893
+ }, z.core.$loose>>;
1894
+ name: z.ZodDefault<z.ZodString>;
1895
+ description: z.ZodDefault<z.ZodString>;
1895
1896
  }, z.core.$loose>;
1896
1897
  billingAddress: z.ZodOptional<z.ZodObject<{
1897
- firstName: z.ZodDefault<z.ZodString>;
1898
- lastName: z.ZodDefault<z.ZodString>;
1899
- streetAddress: z.ZodDefault<z.ZodString>;
1900
- streetNumber: z.ZodDefault<z.ZodString>;
1901
- city: z.ZodDefault<z.ZodString>;
1902
- region: z.ZodDefault<z.ZodString>;
1903
- postalCode: z.ZodDefault<z.ZodString>;
1904
- countryCode: z.ZodDefault<z.ZodString>;
1898
+ firstName: z.ZodString;
1899
+ lastName: z.ZodString;
1900
+ streetAddress: z.ZodString;
1901
+ streetNumber: z.ZodString;
1902
+ city: z.ZodString;
1903
+ region: z.ZodString;
1904
+ postalCode: z.ZodString;
1905
+ countryCode: z.ZodString;
1905
1906
  }, z.core.$loose>>;
1906
1907
  notificationEmail: z.ZodOptional<z.ZodString>;
1907
1908
  notificationPhone: z.ZodOptional<z.ZodString>;
1908
1909
  }, z.core.$loose>;
1909
1910
  export declare const CheckoutMutationSetShippingAddressSchema: z.ZodObject<{
1910
1911
  checkout: z.ZodObject<{
1911
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1912
+ key: z.ZodString;
1912
1913
  }, z.core.$loose>;
1913
1914
  shippingAddress: z.ZodObject<{
1914
- firstName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1915
- lastName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1916
- streetAddress: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1917
- streetNumber: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1918
- city: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1919
- region: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1920
- postalCode: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1921
- countryCode: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1915
+ firstName: z.ZodString;
1916
+ lastName: z.ZodString;
1917
+ streetAddress: z.ZodString;
1918
+ streetNumber: z.ZodString;
1919
+ city: z.ZodString;
1920
+ region: z.ZodString;
1921
+ postalCode: z.ZodString;
1922
+ countryCode: z.ZodString;
1922
1923
  }, z.core.$loose>;
1923
1924
  }, z.core.$loose>;
1924
1925
  export declare const CheckoutMutationFinalizeCheckoutSchema: z.ZodObject<{
1925
1926
  checkout: z.ZodObject<{
1926
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
1927
+ key: z.ZodString;
1927
1928
  }, z.core.$loose>;
1928
1929
  }, z.core.$loose>;
1929
1930
  export declare const CheckoutMutationAddPaymentInstructionSchema: z.ZodObject<{
1930
1931
  paymentInstruction: z.ZodObject<{
1931
- amount: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
1932
- value: z.ZodDefault<z.ZodNumber>;
1933
- currency: z.ZodDefault<z.ZodEnum<{
1932
+ amount: z.ZodObject<{
1933
+ value: z.ZodNumber;
1934
+ currency: z.ZodEnum<{
1934
1935
  AED: "AED";
1935
1936
  AFN: "AFN";
1936
1937
  ALL: "ALL";
@@ -2112,46 +2113,46 @@ export declare const CheckoutMutationAddPaymentInstructionSchema: z.ZodObject<{
2112
2113
  ZAR: "ZAR";
2113
2114
  ZMW: "ZMW";
2114
2115
  ZWL: "ZWL";
2115
- }>>;
2116
- }, z.core.$loose>>>;
2117
- paymentMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
2118
- method: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2119
- name: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2120
- paymentProcessor: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2121
- }, z.core.$loose>>>;
2122
- protocolData: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
2123
- key: z.ZodDefault<z.ZodString>;
2124
- value: z.ZodDefault<z.ZodString>;
2125
- }, z.core.$loose>>>>;
2116
+ }>;
2117
+ }, z.core.$loose>;
2118
+ paymentMethod: z.ZodObject<{
2119
+ method: z.ZodString;
2120
+ name: z.ZodString;
2121
+ paymentProcessor: z.ZodString;
2122
+ }, z.core.$loose>;
2123
+ protocolData: z.ZodArray<z.ZodObject<{
2124
+ key: z.ZodString;
2125
+ value: z.ZodString;
2126
+ }, z.core.$loose>>;
2126
2127
  }, z.core.$loose>;
2127
2128
  checkout: z.ZodObject<{
2128
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2129
+ key: z.ZodString;
2129
2130
  }, z.core.$loose>;
2130
2131
  }, z.core.$loose>;
2131
2132
  export declare const CheckoutMutationRemovePaymentInstructionSchema: z.ZodObject<{
2132
2133
  paymentInstruction: z.ZodObject<{
2133
- key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
2134
+ key: z.ZodString;
2134
2135
  }, z.core.$loose>;
2135
2136
  checkout: z.ZodObject<{
2136
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2137
+ key: z.ZodString;
2137
2138
  }, z.core.$loose>;
2138
2139
  }, z.core.$loose>;
2139
2140
  export declare const CheckoutMutationSetShippingInstructionSchema: z.ZodObject<{
2140
2141
  shippingInstruction: z.ZodObject<{
2141
- instructions: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2142
- shippingMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
2143
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2144
- }, z.core.$loose>>>;
2145
- pickupPoint: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2146
- consentForUnattendedDelivery: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
2142
+ instructions: z.ZodString;
2143
+ shippingMethod: z.ZodObject<{
2144
+ key: z.ZodString;
2145
+ }, z.core.$loose>;
2146
+ pickupPoint: z.ZodString;
2147
+ consentForUnattendedDelivery: z.ZodBoolean;
2147
2148
  }, z.core.$loose>;
2148
2149
  checkout: z.ZodObject<{
2149
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
2150
+ key: z.ZodString;
2150
2151
  }, z.core.$loose>;
2151
2152
  }, z.core.$loose>;
2152
- export type CheckoutMutationInitiateCheckout = z.infer<typeof CheckoutMutationInitiateCheckoutSchema>;
2153
- export type CheckoutMutationSetShippingAddress = z.infer<typeof CheckoutMutationSetShippingAddressSchema>;
2154
- export type CheckoutMutationFinalizeCheckout = z.infer<typeof CheckoutMutationFinalizeCheckoutSchema>;
2155
- export type CheckoutMutationAddPaymentInstruction = z.infer<typeof CheckoutMutationAddPaymentInstructionSchema>;
2156
- export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof CheckoutMutationRemovePaymentInstructionSchema>;
2157
- export type CheckoutMutationSetShippingInstruction = z.infer<typeof CheckoutMutationSetShippingInstructionSchema>;
2153
+ export type CheckoutMutationInitiateCheckout = InferType<typeof CheckoutMutationInitiateCheckoutSchema>;
2154
+ export type CheckoutMutationSetShippingAddress = InferType<typeof CheckoutMutationSetShippingAddressSchema>;
2155
+ export type CheckoutMutationFinalizeCheckout = InferType<typeof CheckoutMutationFinalizeCheckoutSchema>;
2156
+ export type CheckoutMutationAddPaymentInstruction = InferType<typeof CheckoutMutationAddPaymentInstructionSchema>;
2157
+ export type CheckoutMutationRemovePaymentInstruction = InferType<typeof CheckoutMutationRemovePaymentInstructionSchema>;
2158
+ export type CheckoutMutationSetShippingInstruction = InferType<typeof CheckoutMutationSetShippingInstructionSchema>;
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const IdentityMutationLoginSchema: z.ZodObject<{
3
4
  username: z.ZodString;
4
5
  password: z.ZodString;
@@ -8,6 +9,6 @@ export declare const IdentityMutationRegisterSchema: z.ZodObject<{
8
9
  username: z.ZodString;
9
10
  password: z.ZodString;
10
11
  }, z.core.$loose>;
11
- export type IdentityMutationLogin = z.infer<typeof IdentityMutationLoginSchema>;
12
- export type IdentityMutationLogout = z.infer<typeof IdentityMutationLogoutSchema>;
13
- export type IdentityMutationRegister = z.infer<typeof IdentityMutationRegisterSchema>;
12
+ export type IdentityMutationLogin = InferType<typeof IdentityMutationLoginSchema>;
13
+ export type IdentityMutationLogout = InferType<typeof IdentityMutationLogoutSchema>;
14
+ export type IdentityMutationRegister = InferType<typeof IdentityMutationRegisterSchema>;
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const ProfileMutationUpdateSchema: z.ZodObject<{
3
- email: z.ZodDefault<z.ZodEmail>;
4
- phone: z.ZodDefault<z.ZodString>;
4
+ email: z.ZodEmail;
5
+ phone: z.ZodString;
5
6
  }, z.core.$loose>;
6
- export type ProfileMutationUpdate = z.infer<typeof ProfileMutationUpdateSchema>;
7
+ export type ProfileMutationUpdate = InferType<typeof ProfileMutationUpdateSchema>;
@@ -1,3 +1,4 @@
1
1
  import { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const BaseQuerySchema: z.ZodObject<{}, z.core.$loose>;
3
- export type BaseQuery = z.infer<typeof BaseQuerySchema>;
4
+ export type BaseQuery = InferType<typeof BaseQuerySchema>;
@@ -1,7 +1,7 @@
1
- import type { z } from 'zod';
2
- export declare const CartQueryByIdSchema: z.ZodObject<{
3
- cart: z.ZodObject<{
4
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
5
- }, z.core.$loose>;
6
- }, z.core.$loose>;
7
- export type CartQueryById = z.infer<typeof CartQueryByIdSchema>;
1
+ import type { InferType } from '../../zod-utils.js';
2
+ export declare const CartQueryByIdSchema: import("zod").ZodObject<{
3
+ cart: import("zod").ZodObject<{
4
+ key: import("zod").ZodString;
5
+ }, import("zod/v4/core").$loose>;
6
+ }, import("zod/v4/core").$loose>;
7
+ export type CartQueryById = InferType<typeof CartQueryByIdSchema>;
@@ -1,34 +1,35 @@
1
1
  import { z } from "zod";
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const CategoryQueryByIdSchema: z.ZodObject<{
3
- id: z.ZodDefault<z.ZodObject<{
4
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
5
- }, z.core.$loose>>;
4
+ id: z.ZodObject<{
5
+ key: z.ZodString;
6
+ }, z.core.$loose>;
6
7
  }, z.core.$loose>;
7
8
  export declare const CategoryQueryBySlugSchema: z.ZodObject<{
8
- slug: z.ZodDefault<z.ZodString>;
9
+ slug: z.ZodString;
9
10
  }, z.core.$loose>;
10
11
  export declare const CategoryQueryForBreadcrumbSchema: z.ZodObject<{
11
- id: z.ZodDefault<z.ZodObject<{
12
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
13
- }, z.core.$loose>>;
12
+ id: z.ZodObject<{
13
+ key: z.ZodString;
14
+ }, z.core.$loose>;
14
15
  }, z.core.$loose>;
15
16
  export declare const CategoryQueryForChildCategoriesSchema: z.ZodObject<{
16
- parentId: z.ZodDefault<z.ZodObject<{
17
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
18
- }, z.core.$loose>>;
19
- paginationOptions: z.ZodDefault<z.ZodObject<{
17
+ parentId: z.ZodObject<{
18
+ key: z.ZodString;
19
+ }, z.core.$loose>;
20
+ paginationOptions: z.ZodObject<{
20
21
  pageNumber: z.ZodDefault<z.ZodNumber>;
21
22
  pageSize: z.ZodDefault<z.ZodNumber>;
22
- }, z.core.$loose>>;
23
+ }, z.core.$loose>;
23
24
  }, z.core.$loose>;
24
25
  export declare const CategoryQueryForTopCategoriesSchema: z.ZodObject<{
25
- paginationOptions: z.ZodDefault<z.ZodObject<{
26
+ paginationOptions: z.ZodObject<{
26
27
  pageNumber: z.ZodDefault<z.ZodNumber>;
27
28
  pageSize: z.ZodDefault<z.ZodNumber>;
28
- }, z.core.$loose>>;
29
+ }, z.core.$loose>;
29
30
  }, z.core.$loose>;
30
- export type CategoryQueryById = z.infer<typeof CategoryQueryByIdSchema>;
31
- export type CategoryQueryBySlug = z.infer<typeof CategoryQueryBySlugSchema>;
32
- export type CategoryQueryForBreadcrumb = z.infer<typeof CategoryQueryForBreadcrumbSchema>;
33
- export type CategoryQueryForChildCategories = z.infer<typeof CategoryQueryForChildCategoriesSchema>;
34
- export type CategoryQueryForTopCategories = z.infer<typeof CategoryQueryForTopCategoriesSchema>;
31
+ export type CategoryQueryById = InferType<typeof CategoryQueryByIdSchema>;
32
+ export type CategoryQueryBySlug = InferType<typeof CategoryQueryBySlugSchema>;
33
+ export type CategoryQueryForBreadcrumb = InferType<typeof CategoryQueryForBreadcrumbSchema>;
34
+ export type CategoryQueryForChildCategories = InferType<typeof CategoryQueryForChildCategoriesSchema>;
35
+ export type CategoryQueryForTopCategories = InferType<typeof CategoryQueryForTopCategoriesSchema>;
@@ -1,19 +1,20 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const CheckoutQueryByIdSchema: z.ZodObject<{
3
4
  identifier: z.ZodObject<{
4
- key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
5
+ key: z.ZodString;
5
6
  }, z.core.$loose>;
6
7
  }, z.core.$loose>;
7
8
  export declare const CheckoutQueryForAvailableShippingMethodsSchema: z.ZodObject<{
8
9
  checkout: z.ZodObject<{
9
- key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
10
+ key: z.ZodString;
10
11
  }, z.core.$loose>;
11
12
  }, z.core.$loose>;
12
13
  export declare const CheckoutQueryForAvailablePaymentMethodsSchema: z.ZodObject<{
13
14
  checkout: z.ZodObject<{
14
- key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
15
+ key: z.ZodString;
15
16
  }, z.core.$loose>;
16
17
  }, z.core.$loose>;
17
- export type CheckoutQueryForAvailableShippingMethods = z.infer<typeof CheckoutQueryForAvailableShippingMethodsSchema>;
18
- export type CheckoutQueryForAvailablePaymentMethods = z.infer<typeof CheckoutQueryForAvailablePaymentMethodsSchema>;
19
- export type CheckoutQueryById = z.infer<typeof CheckoutQueryByIdSchema>;
18
+ export type CheckoutQueryForAvailableShippingMethods = InferType<typeof CheckoutQueryForAvailableShippingMethodsSchema>;
19
+ export type CheckoutQueryForAvailablePaymentMethods = InferType<typeof CheckoutQueryForAvailablePaymentMethodsSchema>;
20
+ export type CheckoutQueryById = InferType<typeof CheckoutQueryByIdSchema>;
@@ -1,3 +1,4 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const IdentityQuerySelfSchema: z.ZodObject<{}, z.core.$loose>;
3
- export type IdentityQuerySelf = z.infer<typeof IdentityQuerySelfSchema>;
4
+ export type IdentityQuerySelf = InferType<typeof IdentityQuerySelfSchema>;
@@ -1,10 +1,11 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const InventoryQueryBySKUSchema: z.ZodObject<{
3
- variant: z.ZodDefault<z.ZodObject<{
4
- sku: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
5
- }, z.core.$loose>>;
6
- fulfilmentCenter: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
7
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
8
- }, z.core.$loose>>>;
4
+ variant: z.ZodObject<{
5
+ sku: z.ZodString;
6
+ }, z.core.$loose>;
7
+ fulfilmentCenter: z.ZodObject<{
8
+ key: z.ZodString;
9
+ }, z.core.$loose>;
9
10
  }, z.core.$loose>;
10
- export type InventoryQueryBySKU = z.infer<typeof InventoryQueryBySKUSchema>;
11
+ export type InventoryQueryBySKU = InferType<typeof InventoryQueryBySKUSchema>;
@@ -1,7 +1,8 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const OrderQueryByIdSchema: z.ZodObject<{
3
4
  order: z.ZodObject<{
4
- key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
5
+ key: z.ZodString;
5
6
  }, z.core.$loose>;
6
7
  }, z.core.$loose>;
7
- export type OrderQueryById = z.infer<typeof OrderQueryByIdSchema>;
8
+ export type OrderQueryById = InferType<typeof OrderQueryByIdSchema>;
@@ -1,13 +1,14 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const ListPriceQuerySchema: z.ZodObject<{
3
4
  variant: z.ZodObject<{
4
- sku: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
5
+ sku: z.ZodString;
5
6
  }, z.core.$loose>;
6
7
  }, z.core.$loose>;
7
8
  export declare const CustomerPriceQuerySchema: z.ZodObject<{
8
9
  variant: z.ZodObject<{
9
- sku: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
10
+ sku: z.ZodString;
10
11
  }, z.core.$loose>;
11
12
  }, z.core.$loose>;
12
- export type ListPriceQuery = z.infer<typeof ListPriceQuerySchema>;
13
- export type CustomerPriceQuery = z.infer<typeof CustomerPriceQuerySchema>;
13
+ export type ListPriceQuery = InferType<typeof ListPriceQuerySchema>;
14
+ export type CustomerPriceQuery = InferType<typeof CustomerPriceQuerySchema>;
@@ -1,18 +1,19 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const ProductSearchQueryByTermSchema: z.ZodObject<{
3
4
  search: z.ZodObject<{
4
- term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
5
- facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
6
- facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
7
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
8
- }, z.core.$loose>>>;
9
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
10
- }, z.core.$strip>>>>;
11
- filters: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
12
- paginationOptions: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
5
+ term: z.ZodString;
6
+ facets: z.ZodArray<z.ZodObject<{
7
+ facet: z.ZodObject<{
8
+ key: z.ZodString;
9
+ }, z.core.$loose>;
10
+ key: z.ZodString;
11
+ }, z.core.$strip>>;
12
+ filters: z.ZodArray<z.ZodString>;
13
+ paginationOptions: z.ZodObject<{
13
14
  pageNumber: z.ZodDefault<z.ZodNumber>;
14
15
  pageSize: z.ZodDefault<z.ZodNumber>;
15
- }, z.core.$loose>>>;
16
+ }, z.core.$loose>;
16
17
  }, z.core.$loose>;
17
18
  }, z.core.$loose>;
18
- export type ProductSearchQueryByTerm = z.infer<typeof ProductSearchQueryByTermSchema>;
19
+ export type ProductSearchQueryByTerm = InferType<typeof ProductSearchQueryByTermSchema>;
@@ -1,27 +1,28 @@
1
1
  import { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const ProductQueryBySlugSchema: z.ZodObject<{
3
4
  slug: z.ZodString;
4
5
  }, z.core.$loose>;
5
6
  export declare const ProductQueryByIdSchema: z.ZodObject<{
6
7
  identifier: z.ZodObject<{
7
- key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
8
+ key: z.ZodString;
8
9
  }, z.core.$loose>;
9
10
  }, z.core.$loose>;
10
11
  export declare const ProductQueryBySKUSchema: z.ZodObject<{
11
- variant: z.ZodDefault<z.ZodObject<{
12
- sku: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
13
- }, z.core.$loose>>;
12
+ variant: z.ZodObject<{
13
+ sku: z.ZodString;
14
+ }, z.core.$loose>;
14
15
  }, z.core.$loose>;
15
16
  export declare const ProductQueryVariantsSchema: z.ZodObject<{
16
- parentId: z.ZodDefault<z.ZodObject<{
17
- key: z.ZodDefault<z.ZodString>;
18
- }, z.core.$loose>>;
19
- paginationOptions: z.ZodDefault<z.ZodObject<{
17
+ parentId: z.ZodObject<{
18
+ key: z.ZodString;
19
+ }, z.core.$loose>;
20
+ paginationOptions: z.ZodObject<{
20
21
  pageNumber: z.ZodDefault<z.ZodNumber>;
21
22
  pageSize: z.ZodDefault<z.ZodNumber>;
22
- }, z.core.$loose>>;
23
+ }, z.core.$loose>;
23
24
  }, z.core.$loose>;
24
- export type ProductQueryBySlug = z.infer<typeof ProductQueryBySlugSchema>;
25
- export type ProductQueryById = z.infer<typeof ProductQueryByIdSchema>;
26
- export type ProductQueryBySKU = z.infer<typeof ProductQueryBySKUSchema>;
27
- export type ProductQueryVariants = z.infer<typeof ProductQueryVariantsSchema>;
25
+ export type ProductQueryBySlug = InferType<typeof ProductQueryBySlugSchema>;
26
+ export type ProductQueryById = InferType<typeof ProductQueryByIdSchema>;
27
+ export type ProductQueryBySKU = InferType<typeof ProductQueryBySKUSchema>;
28
+ export type ProductQueryVariants = InferType<typeof ProductQueryVariantsSchema>;
@@ -1,3 +1,4 @@
1
1
  import type { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const ProfileQuerySelfSchema: z.ZodObject<{}, z.core.$loose>;
3
- export type ProfileQuerySelf = z.infer<typeof ProfileQuerySelfSchema>;
4
+ export type ProfileQuerySelf = InferType<typeof ProfileQuerySelfSchema>;
@@ -1,8 +1,9 @@
1
1
  import { z } from 'zod';
2
+ import type { InferType } from '../../zod-utils.js';
2
3
  export declare const StoreQueryByProximitySchema: z.ZodObject<{
3
- longitude: z.ZodDefault<z.ZodNumber>;
4
- latitude: z.ZodDefault<z.ZodNumber>;
5
- distance: z.ZodDefault<z.ZodNumber>;
6
- limit: z.ZodDefault<z.ZodNumber>;
4
+ longitude: z.ZodNumber;
5
+ latitude: z.ZodNumber;
6
+ distance: z.ZodNumber;
7
+ limit: z.ZodNumber;
7
8
  }, z.core.$loose>;
8
- export type StoreQueryByProximity = z.infer<typeof StoreQueryByProximitySchema>;
9
+ export type StoreQueryByProximity = InferType<typeof StoreQueryByProximitySchema>;