@reactionary/core 0.0.53 → 0.0.55
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/package.json +1 -1
- package/schemas/models/cost.model.js +1 -1
- package/schemas/models/profile.model.js +1 -1
- package/schemas/models/shipping-method.model.js +1 -1
- package/schemas/mutations/checkout.mutation.js +7 -7
- package/schemas/queries/category.query.js +1 -1
- package/src/schemas/models/cost.model.d.ts +13 -13
- package/src/schemas/models/profile.model.d.ts +21 -21
- package/src/schemas/models/shipping-method.model.d.ts +15 -15
- package/src/schemas/mutations/checkout.mutation.d.ts +32 -32
- package/src/schemas/queries/category.query.d.ts +11 -11
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { MonetaryAmountSchema } from "./price.model.js";
|
|
3
3
|
const CostBreakDownSchema = z.looseObject({
|
|
4
4
|
totalTax: MonetaryAmountSchema.default(() => MonetaryAmountSchema.parse({})).describe("The amount of tax paid on the cart. This may include VAT, GST, sales tax, etc."),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { CartIdentifierSchema, AddressSchema, PaymentInstructionIdentifierSchema, PaymentInstructionSchema, ShippingInstructionSchema } from "../models/index.js";
|
|
3
3
|
import { BaseMutationSchema } from "./base.mutation.js";
|
|
4
4
|
const CheckoutMutationInitiateCheckoutSchema = BaseMutationSchema.extend({
|
|
@@ -14,23 +14,23 @@ const CheckoutMutationSetShippingAddressSchema = BaseMutationSchema.extend({
|
|
|
14
14
|
const CheckoutMutationFinalizeCheckoutSchema = BaseMutationSchema.extend({
|
|
15
15
|
checkout: CartIdentifierSchema.required()
|
|
16
16
|
});
|
|
17
|
-
const
|
|
17
|
+
const CheckoutMutationAddPaymentInstructionSchema = BaseMutationSchema.extend({
|
|
18
18
|
paymentInstruction: PaymentInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
|
|
19
19
|
checkout: CartIdentifierSchema.required()
|
|
20
20
|
});
|
|
21
|
-
const
|
|
21
|
+
const CheckoutMutationRemovePaymentInstructionSchema = BaseMutationSchema.extend({
|
|
22
22
|
paymentInstruction: PaymentInstructionIdentifierSchema.required(),
|
|
23
23
|
checkout: CartIdentifierSchema.required()
|
|
24
24
|
});
|
|
25
|
-
const
|
|
25
|
+
const CheckoutMutationSetShippingInstructionSchema = BaseMutationSchema.extend({
|
|
26
26
|
shippingInstruction: ShippingInstructionSchema.omit({ meta: true, status: true, identifier: true }).required(),
|
|
27
27
|
checkout: CartIdentifierSchema.required()
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
CheckoutMutationAddPaymentInstructionSchema,
|
|
31
31
|
CheckoutMutationFinalizeCheckoutSchema,
|
|
32
32
|
CheckoutMutationInitiateCheckoutSchema,
|
|
33
|
-
|
|
33
|
+
CheckoutMutationRemovePaymentInstructionSchema,
|
|
34
34
|
CheckoutMutationSetShippingAddressSchema,
|
|
35
|
-
|
|
35
|
+
CheckoutMutationSetShippingInstructionSchema
|
|
36
36
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const CostBreakDownSchema: z.ZodObject<{
|
|
3
3
|
totalTax: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
value: z.ZodDefault<z.ZodNumber>;
|
|
@@ -185,7 +185,7 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
185
185
|
ZMW: "ZMW";
|
|
186
186
|
ZWL: "ZWL";
|
|
187
187
|
}>>;
|
|
188
|
-
}, z.
|
|
188
|
+
}, z.core.$loose>>;
|
|
189
189
|
totalDiscount: z.ZodDefault<z.ZodObject<{
|
|
190
190
|
value: z.ZodDefault<z.ZodNumber>;
|
|
191
191
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -371,7 +371,7 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
371
371
|
ZMW: "ZMW";
|
|
372
372
|
ZWL: "ZWL";
|
|
373
373
|
}>>;
|
|
374
|
-
}, z.
|
|
374
|
+
}, z.core.$loose>>;
|
|
375
375
|
totalSurcharge: z.ZodDefault<z.ZodObject<{
|
|
376
376
|
value: z.ZodDefault<z.ZodNumber>;
|
|
377
377
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -557,7 +557,7 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
557
557
|
ZMW: "ZMW";
|
|
558
558
|
ZWL: "ZWL";
|
|
559
559
|
}>>;
|
|
560
|
-
}, z.
|
|
560
|
+
}, z.core.$loose>>;
|
|
561
561
|
totalShipping: z.ZodDefault<z.ZodObject<{
|
|
562
562
|
value: z.ZodDefault<z.ZodNumber>;
|
|
563
563
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -743,7 +743,7 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
743
743
|
ZMW: "ZMW";
|
|
744
744
|
ZWL: "ZWL";
|
|
745
745
|
}>>;
|
|
746
|
-
}, z.
|
|
746
|
+
}, z.core.$loose>>;
|
|
747
747
|
totalProductPrice: z.ZodDefault<z.ZodObject<{
|
|
748
748
|
value: z.ZodDefault<z.ZodNumber>;
|
|
749
749
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -929,7 +929,7 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
929
929
|
ZMW: "ZMW";
|
|
930
930
|
ZWL: "ZWL";
|
|
931
931
|
}>>;
|
|
932
|
-
}, z.
|
|
932
|
+
}, z.core.$loose>>;
|
|
933
933
|
grandTotal: z.ZodDefault<z.ZodObject<{
|
|
934
934
|
value: z.ZodDefault<z.ZodNumber>;
|
|
935
935
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1115,8 +1115,8 @@ export declare const CostBreakDownSchema: z.ZodObject<{
|
|
|
1115
1115
|
ZMW: "ZMW";
|
|
1116
1116
|
ZWL: "ZWL";
|
|
1117
1117
|
}>>;
|
|
1118
|
-
}, z.
|
|
1119
|
-
}, z.
|
|
1118
|
+
}, z.core.$loose>>;
|
|
1119
|
+
}, z.core.$loose>;
|
|
1120
1120
|
export declare const ItemCostBreakdownSchema: z.ZodObject<{
|
|
1121
1121
|
unitPrice: z.ZodDefault<z.ZodObject<{
|
|
1122
1122
|
value: z.ZodDefault<z.ZodNumber>;
|
|
@@ -1303,7 +1303,7 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
|
|
|
1303
1303
|
ZMW: "ZMW";
|
|
1304
1304
|
ZWL: "ZWL";
|
|
1305
1305
|
}>>;
|
|
1306
|
-
}, z.
|
|
1306
|
+
}, z.core.$loose>>;
|
|
1307
1307
|
unitDiscount: z.ZodDefault<z.ZodObject<{
|
|
1308
1308
|
value: z.ZodDefault<z.ZodNumber>;
|
|
1309
1309
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1489,7 +1489,7 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
|
|
|
1489
1489
|
ZMW: "ZMW";
|
|
1490
1490
|
ZWL: "ZWL";
|
|
1491
1491
|
}>>;
|
|
1492
|
-
}, z.
|
|
1492
|
+
}, z.core.$loose>>;
|
|
1493
1493
|
totalPrice: z.ZodDefault<z.ZodObject<{
|
|
1494
1494
|
value: z.ZodDefault<z.ZodNumber>;
|
|
1495
1495
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1675,7 +1675,7 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
|
|
|
1675
1675
|
ZMW: "ZMW";
|
|
1676
1676
|
ZWL: "ZWL";
|
|
1677
1677
|
}>>;
|
|
1678
|
-
}, z.
|
|
1678
|
+
}, z.core.$loose>>;
|
|
1679
1679
|
totalDiscount: z.ZodDefault<z.ZodObject<{
|
|
1680
1680
|
value: z.ZodDefault<z.ZodNumber>;
|
|
1681
1681
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -1861,7 +1861,7 @@ export declare const ItemCostBreakdownSchema: z.ZodObject<{
|
|
|
1861
1861
|
ZMW: "ZMW";
|
|
1862
1862
|
ZWL: "ZWL";
|
|
1863
1863
|
}>>;
|
|
1864
|
-
}, z.
|
|
1865
|
-
}, z.
|
|
1864
|
+
}, z.core.$loose>>;
|
|
1865
|
+
}, z.core.$loose>;
|
|
1866
1866
|
export type CostBreakDown = z.infer<typeof CostBreakDownSchema>;
|
|
1867
1867
|
export type ItemCostBreakdown = z.infer<typeof ItemCostBreakdownSchema>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const AddressSchema: z.ZodObject<{
|
|
3
3
|
meta: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
cache: z.ZodDefault<z.ZodObject<{
|
|
5
5
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
6
6
|
key: z.ZodDefault<z.ZodString>;
|
|
7
|
-
}, z.
|
|
7
|
+
}, z.core.$loose>>;
|
|
8
8
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
9
|
-
}, z.
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
10
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
11
11
|
nickName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
12
|
-
}, z.
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
firstName: z.ZodDefault<z.ZodString>;
|
|
14
14
|
lastName: z.ZodDefault<z.ZodString>;
|
|
15
15
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -18,18 +18,18 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
18
18
|
region: z.ZodDefault<z.ZodString>;
|
|
19
19
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
20
20
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
21
|
-
}, z.
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
export declare const ProfileSchema: z.ZodObject<{
|
|
23
23
|
meta: z.ZodDefault<z.ZodObject<{
|
|
24
24
|
cache: z.ZodDefault<z.ZodObject<{
|
|
25
25
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
26
26
|
key: z.ZodDefault<z.ZodString>;
|
|
27
|
-
}, z.
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
29
|
-
}, z.
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
30
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
31
31
|
userId: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
32
|
-
}, z.
|
|
32
|
+
}, z.core.$loose>>;
|
|
33
33
|
email: z.ZodDefault<z.ZodString>;
|
|
34
34
|
phone: z.ZodDefault<z.ZodString>;
|
|
35
35
|
emailVerified: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -41,12 +41,12 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
41
41
|
cache: z.ZodDefault<z.ZodObject<{
|
|
42
42
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
43
43
|
key: z.ZodDefault<z.ZodString>;
|
|
44
|
-
}, z.
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
46
|
-
}, z.
|
|
46
|
+
}, z.core.$loose>>;
|
|
47
47
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
48
48
|
nickName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
49
|
-
}, z.
|
|
49
|
+
}, z.core.$loose>>;
|
|
50
50
|
firstName: z.ZodDefault<z.ZodString>;
|
|
51
51
|
lastName: z.ZodDefault<z.ZodString>;
|
|
52
52
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -55,18 +55,18 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
55
55
|
region: z.ZodDefault<z.ZodString>;
|
|
56
56
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
57
57
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
58
|
-
}, z.
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
59
|
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
60
60
|
meta: z.ZodDefault<z.ZodObject<{
|
|
61
61
|
cache: z.ZodDefault<z.ZodObject<{
|
|
62
62
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
63
63
|
key: z.ZodDefault<z.ZodString>;
|
|
64
|
-
}, z.
|
|
64
|
+
}, z.core.$loose>>;
|
|
65
65
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
66
|
-
}, z.
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
67
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
68
68
|
nickName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
69
|
-
}, z.
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
70
|
firstName: z.ZodDefault<z.ZodString>;
|
|
71
71
|
lastName: z.ZodDefault<z.ZodString>;
|
|
72
72
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -75,18 +75,18 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
75
75
|
region: z.ZodDefault<z.ZodString>;
|
|
76
76
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
77
77
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
78
|
-
}, z.
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
79
|
alternateShippingAddresses: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
80
80
|
meta: z.ZodDefault<z.ZodObject<{
|
|
81
81
|
cache: z.ZodDefault<z.ZodObject<{
|
|
82
82
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
83
83
|
key: z.ZodDefault<z.ZodString>;
|
|
84
|
-
}, z.
|
|
84
|
+
}, z.core.$loose>>;
|
|
85
85
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
86
|
-
}, z.
|
|
86
|
+
}, z.core.$loose>>;
|
|
87
87
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
88
88
|
nickName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
89
|
-
}, z.
|
|
89
|
+
}, z.core.$loose>>;
|
|
90
90
|
firstName: z.ZodDefault<z.ZodString>;
|
|
91
91
|
lastName: z.ZodDefault<z.ZodString>;
|
|
92
92
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -95,7 +95,7 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
95
95
|
region: z.ZodDefault<z.ZodString>;
|
|
96
96
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
97
97
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
98
|
-
}, z.
|
|
99
|
-
}, z.
|
|
98
|
+
}, z.core.$loose>>>;
|
|
99
|
+
}, z.core.$loose>;
|
|
100
100
|
export type Address = z.infer<typeof AddressSchema>;
|
|
101
101
|
export type Profile = z.infer<typeof ProfileSchema>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const PickupPointSchema: z.ZodObject<{
|
|
3
3
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
5
|
-
}, z.
|
|
5
|
+
}, z.core.$strip>>;
|
|
6
6
|
name: z.ZodDefault<z.ZodString>;
|
|
7
7
|
description: z.ZodDefault<z.ZodString>;
|
|
8
8
|
address: z.ZodDefault<z.ZodObject<{
|
|
@@ -10,12 +10,12 @@ export declare const PickupPointSchema: z.ZodObject<{
|
|
|
10
10
|
cache: z.ZodDefault<z.ZodObject<{
|
|
11
11
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
12
12
|
key: z.ZodDefault<z.ZodString>;
|
|
13
|
-
}, z.
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
15
|
-
}, z.
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
17
17
|
nickName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
18
|
-
}, z.
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
firstName: z.ZodDefault<z.ZodString>;
|
|
20
20
|
lastName: z.ZodDefault<z.ZodString>;
|
|
21
21
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -24,16 +24,16 @@ export declare const PickupPointSchema: z.ZodObject<{
|
|
|
24
24
|
region: z.ZodDefault<z.ZodString>;
|
|
25
25
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
26
26
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
27
|
-
}, z.
|
|
27
|
+
}, z.core.$loose>>;
|
|
28
28
|
openingHours: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
29
29
|
contactPhone: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
30
30
|
contactEmail: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
31
31
|
instructions: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
32
|
-
}, z.
|
|
32
|
+
}, z.core.$loose>;
|
|
33
33
|
export declare const ShippingMethodSchema: z.ZodObject<{
|
|
34
34
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
35
35
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
36
|
-
}, z.
|
|
36
|
+
}, z.core.$loose>>;
|
|
37
37
|
name: z.ZodDefault<z.ZodString>;
|
|
38
38
|
description: z.ZodDefault<z.ZodString>;
|
|
39
39
|
logo: z.ZodOptional<z.ZodObject<{
|
|
@@ -41,7 +41,7 @@ export declare const ShippingMethodSchema: z.ZodObject<{
|
|
|
41
41
|
altText: z.ZodDefault<z.ZodString>;
|
|
42
42
|
width: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
height: z.ZodOptional<z.ZodNumber>;
|
|
44
|
-
}, z.
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
45
|
price: z.ZodDefault<z.ZodObject<{
|
|
46
46
|
value: z.ZodDefault<z.ZodNumber>;
|
|
47
47
|
currency: z.ZodDefault<z.ZodEnum<{
|
|
@@ -227,25 +227,25 @@ export declare const ShippingMethodSchema: z.ZodObject<{
|
|
|
227
227
|
ZMW: "ZMW";
|
|
228
228
|
ZWL: "ZWL";
|
|
229
229
|
}>>;
|
|
230
|
-
}, z.
|
|
230
|
+
}, z.core.$loose>>;
|
|
231
231
|
deliveryTime: z.ZodDefault<z.ZodString>;
|
|
232
232
|
carrier: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
233
|
-
}, z.
|
|
233
|
+
}, z.core.$loose>;
|
|
234
234
|
export declare const ShippingInstructionSchema: z.ZodObject<{
|
|
235
235
|
meta: z.ZodDefault<z.ZodObject<{
|
|
236
236
|
cache: z.ZodDefault<z.ZodObject<{
|
|
237
237
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
238
238
|
key: z.ZodDefault<z.ZodString>;
|
|
239
|
-
}, z.
|
|
239
|
+
}, z.core.$loose>>;
|
|
240
240
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
241
|
-
}, z.
|
|
241
|
+
}, z.core.$loose>>;
|
|
242
242
|
shippingMethod: z.ZodDefault<z.ZodObject<{
|
|
243
243
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
244
|
-
}, z.
|
|
244
|
+
}, z.core.$loose>>;
|
|
245
245
|
pickupPoint: z.ZodDefault<z.ZodString>;
|
|
246
246
|
instructions: z.ZodDefault<z.ZodString>;
|
|
247
247
|
consentForUnattendedDelivery: z.ZodDefault<z.ZodBoolean>;
|
|
248
|
-
}, z.
|
|
248
|
+
}, z.core.$loose>;
|
|
249
249
|
export type ShippingMethod = z.infer<typeof ShippingMethodSchema>;
|
|
250
250
|
export type PickupPoint = z.infer<typeof PickupPointSchema>;
|
|
251
251
|
export type ShippingInstruction = z.infer<typeof ShippingInstructionSchema>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
|
|
3
3
|
cart: z.ZodObject<{
|
|
4
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
5
|
-
}, z.
|
|
5
|
+
}, z.core.$loose>;
|
|
6
6
|
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
7
7
|
meta: z.ZodDefault<z.ZodObject<{
|
|
8
8
|
cache: z.ZodDefault<z.ZodObject<{
|
|
9
9
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
10
10
|
key: z.ZodDefault<z.ZodString>;
|
|
11
|
-
}, z.
|
|
11
|
+
}, z.core.$loose>>;
|
|
12
12
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
13
|
-
}, z.
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
firstName: z.ZodDefault<z.ZodString>;
|
|
15
15
|
lastName: z.ZodDefault<z.ZodString>;
|
|
16
16
|
streetAddress: z.ZodDefault<z.ZodString>;
|
|
@@ -19,22 +19,22 @@ export declare const CheckoutMutationInitiateCheckoutSchema: z.ZodObject<{
|
|
|
19
19
|
region: z.ZodDefault<z.ZodString>;
|
|
20
20
|
postalCode: z.ZodDefault<z.ZodString>;
|
|
21
21
|
countryCode: z.ZodDefault<z.ZodString>;
|
|
22
|
-
}, z.
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
notificationEmail: z.ZodOptional<z.ZodString>;
|
|
24
24
|
notificationPhone: z.ZodOptional<z.ZodString>;
|
|
25
|
-
}, z.
|
|
25
|
+
}, z.core.$loose>;
|
|
26
26
|
export declare const CheckoutMutationSetShippingAddressSchema: z.ZodObject<{
|
|
27
27
|
checkout: z.ZodObject<{
|
|
28
28
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
29
|
-
}, z.
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
shippingAddress: z.ZodObject<{
|
|
31
31
|
meta: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
32
32
|
cache: z.ZodDefault<z.ZodObject<{
|
|
33
33
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
34
34
|
key: z.ZodDefault<z.ZodString>;
|
|
35
|
-
}, z.
|
|
35
|
+
}, z.core.$loose>>;
|
|
36
36
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
37
|
-
}, z.
|
|
37
|
+
}, z.core.$loose>>>;
|
|
38
38
|
firstName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
39
39
|
lastName: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
40
40
|
streetAddress: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
@@ -43,14 +43,14 @@ export declare const CheckoutMutationSetShippingAddressSchema: z.ZodObject<{
|
|
|
43
43
|
region: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
44
44
|
postalCode: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
45
45
|
countryCode: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
46
|
-
}, z.
|
|
47
|
-
}, z.
|
|
46
|
+
}, z.core.$loose>;
|
|
47
|
+
}, z.core.$loose>;
|
|
48
48
|
export declare const CheckoutMutationFinalizeCheckoutSchema: z.ZodObject<{
|
|
49
49
|
checkout: z.ZodObject<{
|
|
50
50
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
51
|
-
}, z.
|
|
52
|
-
}, z.
|
|
53
|
-
export declare const
|
|
51
|
+
}, z.core.$loose>;
|
|
52
|
+
}, z.core.$loose>;
|
|
53
|
+
export declare const CheckoutMutationAddPaymentInstructionSchema: z.ZodObject<{
|
|
54
54
|
paymentInstruction: z.ZodObject<{
|
|
55
55
|
amount: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
56
56
|
value: z.ZodDefault<z.ZodNumber>;
|
|
@@ -237,45 +237,45 @@ export declare const CheckoutMutationAddPaymentInstruction: z.ZodObject<{
|
|
|
237
237
|
ZMW: "ZMW";
|
|
238
238
|
ZWL: "ZWL";
|
|
239
239
|
}>>;
|
|
240
|
-
}, z.
|
|
240
|
+
}, z.core.$loose>>>;
|
|
241
241
|
paymentMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
242
242
|
method: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
243
243
|
name: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
244
244
|
paymentProcessor: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
245
|
-
}, z.
|
|
245
|
+
}, z.core.$loose>>>;
|
|
246
246
|
protocolData: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
247
247
|
key: z.ZodDefault<z.ZodString>;
|
|
248
248
|
value: z.ZodDefault<z.ZodString>;
|
|
249
|
-
}, z.
|
|
250
|
-
}, z.
|
|
249
|
+
}, z.core.$loose>>>>;
|
|
250
|
+
}, z.core.$loose>;
|
|
251
251
|
checkout: z.ZodObject<{
|
|
252
252
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
253
|
-
}, z.
|
|
254
|
-
}, z.
|
|
255
|
-
export declare const
|
|
253
|
+
}, z.core.$loose>;
|
|
254
|
+
}, z.core.$loose>;
|
|
255
|
+
export declare const CheckoutMutationRemovePaymentInstructionSchema: z.ZodObject<{
|
|
256
256
|
paymentInstruction: z.ZodObject<{
|
|
257
257
|
key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
|
|
258
|
-
}, z.
|
|
258
|
+
}, z.core.$loose>;
|
|
259
259
|
checkout: z.ZodObject<{
|
|
260
260
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
261
|
-
}, z.
|
|
262
|
-
}, z.
|
|
263
|
-
export declare const
|
|
261
|
+
}, z.core.$loose>;
|
|
262
|
+
}, z.core.$loose>;
|
|
263
|
+
export declare const CheckoutMutationSetShippingInstructionSchema: z.ZodObject<{
|
|
264
264
|
shippingInstruction: z.ZodObject<{
|
|
265
265
|
instructions: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
266
266
|
shippingMethod: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
267
267
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
268
|
-
}, z.
|
|
268
|
+
}, z.core.$loose>>>;
|
|
269
269
|
pickupPoint: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
270
270
|
consentForUnattendedDelivery: z.ZodNonOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
271
|
-
}, z.
|
|
271
|
+
}, z.core.$loose>;
|
|
272
272
|
checkout: z.ZodObject<{
|
|
273
273
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
274
|
-
}, z.
|
|
275
|
-
}, z.
|
|
274
|
+
}, z.core.$loose>;
|
|
275
|
+
}, z.core.$loose>;
|
|
276
276
|
export type CheckoutMutationInitiateCheckout = z.infer<typeof CheckoutMutationInitiateCheckoutSchema>;
|
|
277
277
|
export type CheckoutMutationSetShippingAddress = z.infer<typeof CheckoutMutationSetShippingAddressSchema>;
|
|
278
278
|
export type CheckoutMutationFinalizeCheckout = z.infer<typeof CheckoutMutationFinalizeCheckoutSchema>;
|
|
279
|
-
export type CheckoutMutationAddPaymentInstruction = z.infer<typeof
|
|
280
|
-
export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof
|
|
281
|
-
export type CheckoutMutationSetShippingInstruction = z.infer<typeof
|
|
279
|
+
export type CheckoutMutationAddPaymentInstruction = z.infer<typeof CheckoutMutationAddPaymentInstructionSchema>;
|
|
280
|
+
export type CheckoutMutationRemovePaymentInstruction = z.infer<typeof CheckoutMutationRemovePaymentInstructionSchema>;
|
|
281
|
+
export type CheckoutMutationSetShippingInstruction = z.infer<typeof CheckoutMutationSetShippingInstructionSchema>;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import z from "zod";
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
export declare const CategoryQueryById: z.ZodObject<{
|
|
3
3
|
id: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
5
|
-
}, z.
|
|
6
|
-
}, z.
|
|
5
|
+
}, z.core.$loose>>;
|
|
6
|
+
}, z.core.$loose>;
|
|
7
7
|
export declare const CategoryQueryBySlug: z.ZodObject<{
|
|
8
8
|
slug: z.ZodDefault<z.ZodString>;
|
|
9
|
-
}, z.
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
export declare const CategoryQueryForBreadcrumb: z.ZodObject<{
|
|
11
11
|
id: z.ZodDefault<z.ZodObject<{
|
|
12
12
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
-
}, z.
|
|
14
|
-
}, z.
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
15
|
export declare const CategoryQueryForChildCategories: z.ZodObject<{
|
|
16
16
|
parentId: z.ZodDefault<z.ZodObject<{
|
|
17
17
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
18
|
-
}, z.
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
paginationOptions: z.ZodDefault<z.ZodObject<{
|
|
20
20
|
pageNumber: z.ZodDefault<z.ZodNumber>;
|
|
21
21
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
22
|
-
}, z.
|
|
23
|
-
}, z.
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
export declare const CategoryQueryForTopCategories: z.ZodObject<{
|
|
25
25
|
paginationOptions: z.ZodDefault<z.ZodObject<{
|
|
26
26
|
pageNumber: z.ZodDefault<z.ZodNumber>;
|
|
27
27
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
28
|
-
}, z.
|
|
29
|
-
}, z.
|
|
28
|
+
}, z.core.$loose>>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
export type CategoryQueryById = z.infer<typeof CategoryQueryById>;
|
|
31
31
|
export type CategoryQueryBySlug = z.infer<typeof CategoryQueryBySlug>;
|
|
32
32
|
export type CategoryQueryForBreadcrumb = z.infer<typeof CategoryQueryForBreadcrumb>;
|