@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.
- package/decorators/reactionary.decorator.js +2 -2
- package/initialization.js +0 -17
- package/package.json +1 -1
- package/providers/base.provider.js +1 -29
- package/providers/cart.provider.js +36 -3
- package/providers/inventory.provider.js +3 -2
- package/providers/order.provider.js +39 -3
- package/providers/price.provider.js +19 -12
- package/providers/product.provider.js +34 -11
- package/schemas/models/identifiers.model.js +35 -37
- package/schemas/models/identity.model.js +5 -5
- package/schemas/models/inventory.model.js +7 -5
- package/schemas/models/order.model.js +16 -16
- package/schemas/models/payment.model.js +10 -10
- package/schemas/models/price.model.js +7 -7
- package/schemas/models/product-search.model.js +15 -15
- package/schemas/models/product.model.js +32 -32
- package/schemas/models/profile.model.js +16 -16
- package/schemas/models/shipping-method.model.js +19 -19
- package/schemas/models/store.model.js +7 -4
- package/schemas/mutations/analytics.mutation.js +3 -3
- package/schemas/mutations/cart.mutation.js +19 -19
- package/schemas/mutations/checkout.mutation.js +10 -10
- package/schemas/mutations/profile.mutation.js +2 -2
- package/schemas/queries/cart.query.js +1 -1
- package/schemas/queries/category.query.js +6 -6
- package/schemas/queries/checkout.query.js +3 -3
- package/schemas/queries/inventory.query.js +3 -3
- package/schemas/queries/order.query.js +1 -1
- package/schemas/queries/price.query.js +2 -2
- package/schemas/queries/product-search.query.js +1 -1
- package/schemas/queries/product.query.js +4 -4
- package/schemas/queries/store.query.js +4 -4
- package/src/providers/analytics.provider.d.ts +1 -2
- package/src/providers/base.provider.d.ts +3 -22
- package/src/providers/cart.provider.d.ts +10 -10
- package/src/providers/category.provider.d.ts +7 -7
- package/src/providers/checkout.provider.d.ts +8 -8
- package/src/providers/identity.provider.d.ts +5 -5
- package/src/providers/inventory.provider.d.ts +3 -3
- package/src/providers/order.provider.d.ts +6 -6
- package/src/providers/price.provider.d.ts +5 -5
- package/src/providers/product-search.provider.d.ts +2 -2
- package/src/providers/product.provider.d.ts +5 -12
- package/src/providers/profile.provider.d.ts +3 -3
- package/src/providers/store.provider.d.ts +2 -2
- package/src/schemas/capabilities.schema.d.ts +2 -1
- package/src/schemas/models/analytics.model.d.ts +2 -1
- package/src/schemas/models/base.model.d.ts +6 -5
- package/src/schemas/models/cart.model.d.ts +53 -52
- package/src/schemas/models/category.model.d.ts +7 -6
- package/src/schemas/models/checkout.model.d.ts +94 -93
- package/src/schemas/models/cost.model.d.ts +33 -32
- package/src/schemas/models/currency.model.d.ts +2 -1
- package/src/schemas/models/identifiers.model.d.ts +80 -79
- package/src/schemas/models/identity.model.d.ts +23 -22
- package/src/schemas/models/inventory.model.d.ts +21 -12
- package/src/schemas/models/order.model.d.ts +140 -137
- package/src/schemas/models/payment.model.d.ts +31 -30
- package/src/schemas/models/price.model.d.ts +31 -30
- package/src/schemas/models/product-search.model.d.ts +118 -117
- package/src/schemas/models/product.model.d.ts +137 -136
- package/src/schemas/models/profile.model.d.ts +50 -49
- package/src/schemas/models/shipping-method.model.d.ts +42 -41
- package/src/schemas/models/store.model.d.ts +9 -8
- package/src/schemas/mutations/analytics.mutation.d.ts +48 -47
- package/src/schemas/mutations/base.mutation.d.ts +2 -1
- package/src/schemas/mutations/cart.mutation.d.ts +73 -72
- package/src/schemas/mutations/checkout.mutation.d.ts +96 -95
- package/src/schemas/mutations/identity.mutation.d.ts +4 -3
- package/src/schemas/mutations/profile.mutation.d.ts +4 -3
- package/src/schemas/queries/base.query.d.ts +2 -1
- package/src/schemas/queries/cart.query.d.ts +7 -7
- package/src/schemas/queries/category.query.d.ts +20 -19
- package/src/schemas/queries/checkout.query.d.ts +7 -6
- package/src/schemas/queries/identity.query.d.ts +2 -1
- package/src/schemas/queries/inventory.query.d.ts +8 -7
- package/src/schemas/queries/order.query.d.ts +3 -2
- package/src/schemas/queries/price.query.d.ts +5 -4
- package/src/schemas/queries/product-search.query.d.ts +12 -11
- package/src/schemas/queries/product.query.d.ts +14 -13
- package/src/schemas/queries/profile.query.d.ts +2 -1
- package/src/schemas/queries/store.query.d.ts +6 -5
- package/src/schemas/session.schema.d.ts +1 -1
- package/src/zod-utils.d.ts +5 -0
- 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.
|
|
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.
|
|
12
|
-
key: z.
|
|
13
|
-
}, z.core.$loose
|
|
14
|
-
userId: z.
|
|
15
|
-
userId: z.
|
|
16
|
-
}, z.core.$loose
|
|
17
|
-
items: z.
|
|
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.
|
|
20
|
+
key: z.ZodString;
|
|
20
21
|
}, z.core.$loose>>;
|
|
21
22
|
product: z.ZodDefault<z.ZodObject<{
|
|
22
|
-
key: z.
|
|
23
|
+
key: z.ZodString;
|
|
23
24
|
}, z.core.$loose>>;
|
|
24
25
|
variant: z.ZodDefault<z.ZodObject<{
|
|
25
|
-
sku: z.
|
|
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.
|
|
31
|
-
currency: z.
|
|
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.
|
|
217
|
-
currency: z.
|
|
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.
|
|
403
|
-
currency: z.
|
|
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.
|
|
589
|
-
currency: z.
|
|
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.
|
|
775
|
+
}, z.core.$loose>>>;
|
|
776
|
+
price: z.ZodDefault<z.ZodObject<{
|
|
776
777
|
totalTax: z.ZodDefault<z.ZodObject<{
|
|
777
|
-
value: z.
|
|
778
|
-
currency: z.
|
|
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.
|
|
964
|
-
currency: z.
|
|
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.
|
|
1150
|
-
currency: z.
|
|
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.
|
|
1336
|
-
currency: z.
|
|
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.
|
|
1522
|
-
currency: z.
|
|
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.
|
|
1708
|
-
currency: z.
|
|
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.
|
|
1894
|
-
description: z.
|
|
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.
|
|
1898
|
-
lastName: z.
|
|
1899
|
-
streetAddress: z.
|
|
1900
|
-
streetNumber: z.
|
|
1901
|
-
city: z.
|
|
1902
|
-
region: z.
|
|
1903
|
-
postalCode: z.
|
|
1904
|
-
countryCode: z.
|
|
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.
|
|
1912
|
+
key: z.ZodString;
|
|
1912
1913
|
}, z.core.$loose>;
|
|
1913
1914
|
shippingAddress: z.ZodObject<{
|
|
1914
|
-
firstName: z.
|
|
1915
|
-
lastName: z.
|
|
1916
|
-
streetAddress: z.
|
|
1917
|
-
streetNumber: z.
|
|
1918
|
-
city: z.
|
|
1919
|
-
region: z.
|
|
1920
|
-
postalCode: z.
|
|
1921
|
-
countryCode: z.
|
|
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.
|
|
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.
|
|
1932
|
-
value: z.
|
|
1933
|
-
currency: z.
|
|
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.
|
|
2118
|
-
method: z.
|
|
2119
|
-
name: z.
|
|
2120
|
-
paymentProcessor: z.
|
|
2121
|
-
}, z.core.$loose
|
|
2122
|
-
protocolData: z.
|
|
2123
|
-
key: z.
|
|
2124
|
-
value: z.
|
|
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.
|
|
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.
|
|
2134
|
+
key: z.ZodString;
|
|
2134
2135
|
}, z.core.$loose>;
|
|
2135
2136
|
checkout: z.ZodObject<{
|
|
2136
|
-
key: z.
|
|
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.
|
|
2142
|
-
shippingMethod: z.
|
|
2143
|
-
key: z.
|
|
2144
|
-
}, z.core.$loose
|
|
2145
|
-
pickupPoint: z.
|
|
2146
|
-
consentForUnattendedDelivery: z.
|
|
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.
|
|
2150
|
+
key: z.ZodString;
|
|
2150
2151
|
}, z.core.$loose>;
|
|
2151
2152
|
}, z.core.$loose>;
|
|
2152
|
-
export type CheckoutMutationInitiateCheckout =
|
|
2153
|
-
export type CheckoutMutationSetShippingAddress =
|
|
2154
|
-
export type CheckoutMutationFinalizeCheckout =
|
|
2155
|
-
export type CheckoutMutationAddPaymentInstruction =
|
|
2156
|
-
export type CheckoutMutationRemovePaymentInstruction =
|
|
2157
|
-
export type CheckoutMutationSetShippingInstruction =
|
|
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 =
|
|
12
|
-
export type IdentityMutationLogout =
|
|
13
|
-
export type IdentityMutationRegister =
|
|
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.
|
|
4
|
-
phone: z.
|
|
4
|
+
email: z.ZodEmail;
|
|
5
|
+
phone: z.ZodString;
|
|
5
6
|
}, z.core.$loose>;
|
|
6
|
-
export type ProfileMutationUpdate =
|
|
7
|
+
export type ProfileMutationUpdate = InferType<typeof ProfileMutationUpdateSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const CartQueryByIdSchema:
|
|
3
|
-
cart:
|
|
4
|
-
key:
|
|
5
|
-
},
|
|
6
|
-
},
|
|
7
|
-
export type CartQueryById =
|
|
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.
|
|
4
|
-
key: z.
|
|
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.
|
|
9
|
+
slug: z.ZodString;
|
|
9
10
|
}, z.core.$loose>;
|
|
10
11
|
export declare const CategoryQueryForBreadcrumbSchema: z.ZodObject<{
|
|
11
|
-
id: z.
|
|
12
|
-
key: z.
|
|
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.
|
|
17
|
-
key: z.
|
|
18
|
-
}, z.core.$loose
|
|
19
|
-
paginationOptions: z.
|
|
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.
|
|
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 =
|
|
31
|
-
export type CategoryQueryBySlug =
|
|
32
|
-
export type CategoryQueryForBreadcrumb =
|
|
33
|
-
export type CategoryQueryForChildCategories =
|
|
34
|
-
export type CategoryQueryForTopCategories =
|
|
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.
|
|
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.
|
|
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.
|
|
15
|
+
key: z.ZodString;
|
|
15
16
|
}, z.core.$loose>;
|
|
16
17
|
}, z.core.$loose>;
|
|
17
|
-
export type CheckoutQueryForAvailableShippingMethods =
|
|
18
|
-
export type CheckoutQueryForAvailablePaymentMethods =
|
|
19
|
-
export type CheckoutQueryById =
|
|
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 =
|
|
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.
|
|
4
|
-
sku: z.
|
|
5
|
-
}, z.core.$loose
|
|
6
|
-
fulfilmentCenter: z.
|
|
7
|
-
key: z.
|
|
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 =
|
|
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.
|
|
5
|
+
key: z.ZodString;
|
|
5
6
|
}, z.core.$loose>;
|
|
6
7
|
}, z.core.$loose>;
|
|
7
|
-
export type OrderQueryById =
|
|
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.
|
|
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.
|
|
10
|
+
sku: z.ZodString;
|
|
10
11
|
}, z.core.$loose>;
|
|
11
12
|
}, z.core.$loose>;
|
|
12
|
-
export type ListPriceQuery =
|
|
13
|
-
export type CustomerPriceQuery =
|
|
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.
|
|
5
|
-
facets: z.
|
|
6
|
-
facet: z.
|
|
7
|
-
key: z.
|
|
8
|
-
}, z.core.$loose
|
|
9
|
-
key: z.
|
|
10
|
-
}, z.core.$strip
|
|
11
|
-
filters: z.
|
|
12
|
-
paginationOptions: z.
|
|
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 =
|
|
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.
|
|
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.
|
|
12
|
-
sku: z.
|
|
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.
|
|
17
|
-
key: z.
|
|
18
|
-
}, z.core.$loose
|
|
19
|
-
paginationOptions: z.
|
|
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 =
|
|
25
|
-
export type ProductQueryById =
|
|
26
|
-
export type ProductQueryBySKU =
|
|
27
|
-
export type ProductQueryVariants =
|
|
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 =
|
|
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.
|
|
4
|
-
latitude: z.
|
|
5
|
-
distance: z.
|
|
6
|
-
limit: z.
|
|
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 =
|
|
9
|
+
export type StoreQueryByProximity = InferType<typeof StoreQueryByProximitySchema>;
|