@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,94 +1,95 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const ProductOptionValueSchema: z.ZodObject<{
|
|
3
|
-
identifier: z.
|
|
4
|
-
option: z.
|
|
5
|
-
key: z.
|
|
6
|
-
}, z.core.$loose
|
|
7
|
-
key: z.
|
|
8
|
-
}, z.core.$loose
|
|
4
|
+
identifier: z.ZodObject<{
|
|
5
|
+
option: z.ZodObject<{
|
|
6
|
+
key: z.ZodString;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
}, z.core.$loose>;
|
|
9
10
|
label: z.ZodString;
|
|
10
11
|
}, z.core.$loose>;
|
|
11
12
|
export declare const ProductOptionSchema: z.ZodObject<{
|
|
12
|
-
identifier: z.
|
|
13
|
-
key: z.
|
|
14
|
-
}, z.core.$loose
|
|
13
|
+
identifier: z.ZodObject<{
|
|
14
|
+
key: z.ZodString;
|
|
15
|
+
}, z.core.$loose>;
|
|
15
16
|
name: z.ZodString;
|
|
16
|
-
values: z.
|
|
17
|
-
identifier: z.
|
|
18
|
-
option: z.
|
|
19
|
-
key: z.
|
|
20
|
-
}, z.core.$loose
|
|
21
|
-
key: z.
|
|
22
|
-
}, z.core.$loose
|
|
17
|
+
values: z.ZodArray<z.ZodObject<{
|
|
18
|
+
identifier: z.ZodObject<{
|
|
19
|
+
option: z.ZodObject<{
|
|
20
|
+
key: z.ZodString;
|
|
21
|
+
}, z.core.$loose>;
|
|
22
|
+
key: z.ZodString;
|
|
23
|
+
}, z.core.$loose>;
|
|
23
24
|
label: z.ZodString;
|
|
24
|
-
}, z.core.$loose
|
|
25
|
+
}, z.core.$loose>>;
|
|
25
26
|
}, z.core.$loose>;
|
|
26
27
|
export declare const ProductVariantOptionSchema: z.ZodObject<{
|
|
27
|
-
identifier: z.
|
|
28
|
-
key: z.
|
|
29
|
-
}, z.core.$loose
|
|
28
|
+
identifier: z.ZodObject<{
|
|
29
|
+
key: z.ZodString;
|
|
30
|
+
}, z.core.$loose>;
|
|
30
31
|
name: z.ZodString;
|
|
31
|
-
value: z.
|
|
32
|
-
identifier: z.
|
|
33
|
-
option: z.
|
|
34
|
-
key: z.
|
|
35
|
-
}, z.core.$loose
|
|
36
|
-
key: z.
|
|
37
|
-
}, z.core.$loose
|
|
32
|
+
value: z.ZodObject<{
|
|
33
|
+
identifier: z.ZodObject<{
|
|
34
|
+
option: z.ZodObject<{
|
|
35
|
+
key: z.ZodString;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
key: z.ZodString;
|
|
38
|
+
}, z.core.$loose>;
|
|
38
39
|
label: z.ZodString;
|
|
39
|
-
}, z.core.$loose
|
|
40
|
+
}, z.core.$loose>;
|
|
40
41
|
}, z.core.$loose>;
|
|
41
42
|
export declare const ProductVariantSchema: z.ZodObject<{
|
|
42
|
-
identifier: z.
|
|
43
|
-
sku: z.
|
|
44
|
-
}, z.core.$loose
|
|
45
|
-
name: z.
|
|
46
|
-
images: z.
|
|
43
|
+
identifier: z.ZodObject<{
|
|
44
|
+
sku: z.ZodString;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
images: z.ZodArray<z.ZodObject<{
|
|
47
48
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
48
49
|
altText: z.ZodDefault<z.ZodString>;
|
|
49
50
|
width: z.ZodOptional<z.ZodNumber>;
|
|
50
51
|
height: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
}, z.core.$loose
|
|
52
|
-
ean: z.
|
|
53
|
-
gtin: z.
|
|
54
|
-
upc: z.
|
|
55
|
-
barcode: z.
|
|
56
|
-
options: z.
|
|
57
|
-
identifier: z.
|
|
58
|
-
key: z.
|
|
59
|
-
}, z.core.$loose
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
|
+
ean: z.ZodString;
|
|
54
|
+
gtin: z.ZodString;
|
|
55
|
+
upc: z.ZodString;
|
|
56
|
+
barcode: z.ZodString;
|
|
57
|
+
options: z.ZodArray<z.ZodObject<{
|
|
58
|
+
identifier: z.ZodObject<{
|
|
59
|
+
key: z.ZodString;
|
|
60
|
+
}, z.core.$loose>;
|
|
60
61
|
name: z.ZodString;
|
|
61
|
-
value: z.
|
|
62
|
-
identifier: z.
|
|
63
|
-
option: z.
|
|
64
|
-
key: z.
|
|
65
|
-
}, z.core.$loose
|
|
66
|
-
key: z.
|
|
67
|
-
}, z.core.$loose
|
|
62
|
+
value: z.ZodObject<{
|
|
63
|
+
identifier: z.ZodObject<{
|
|
64
|
+
option: z.ZodObject<{
|
|
65
|
+
key: z.ZodString;
|
|
66
|
+
}, z.core.$loose>;
|
|
67
|
+
key: z.ZodString;
|
|
68
|
+
}, z.core.$loose>;
|
|
68
69
|
label: z.ZodString;
|
|
69
|
-
}, z.core.$loose
|
|
70
|
-
}, z.core.$loose
|
|
70
|
+
}, z.core.$loose>;
|
|
71
|
+
}, z.core.$loose>>;
|
|
71
72
|
}, z.core.$loose>;
|
|
72
73
|
export declare const ProductAttributeValueSchema: z.ZodObject<{
|
|
73
|
-
identifier: z.
|
|
74
|
-
key: z.
|
|
75
|
-
}, z.core.$loose
|
|
76
|
-
value: z.
|
|
77
|
-
label: z.
|
|
74
|
+
identifier: z.ZodObject<{
|
|
75
|
+
key: z.ZodString;
|
|
76
|
+
}, z.core.$loose>;
|
|
77
|
+
value: z.ZodString;
|
|
78
|
+
label: z.ZodString;
|
|
78
79
|
}, z.core.$loose>;
|
|
79
80
|
export declare const ProductAttributeSchema: z.ZodObject<{
|
|
80
|
-
identifier: z.
|
|
81
|
-
key: z.
|
|
81
|
+
identifier: z.ZodObject<{
|
|
82
|
+
key: z.ZodString;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
group: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
values: z.ZodArray<z.ZodObject<{
|
|
87
|
+
identifier: z.ZodObject<{
|
|
88
|
+
key: z.ZodString;
|
|
89
|
+
}, z.core.$loose>;
|
|
90
|
+
value: z.ZodString;
|
|
91
|
+
label: z.ZodString;
|
|
82
92
|
}, z.core.$loose>>;
|
|
83
|
-
group: z.ZodDefault<z.ZodString>;
|
|
84
|
-
name: z.ZodDefault<z.ZodString>;
|
|
85
|
-
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
86
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
87
|
-
key: z.ZodDefault<z.ZodString>;
|
|
88
|
-
}, z.core.$loose>>;
|
|
89
|
-
value: z.ZodDefault<z.ZodString>;
|
|
90
|
-
label: z.ZodDefault<z.ZodString>;
|
|
91
|
-
}, z.core.$loose>>>;
|
|
92
93
|
}, z.core.$loose>;
|
|
93
94
|
export declare const ProductSchema: z.ZodObject<{
|
|
94
95
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -98,84 +99,84 @@ export declare const ProductSchema: z.ZodObject<{
|
|
|
98
99
|
}, z.core.$loose>>;
|
|
99
100
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
100
101
|
}, z.core.$loose>>;
|
|
101
|
-
identifier: z.
|
|
102
|
-
key: z.
|
|
102
|
+
identifier: z.ZodObject<{
|
|
103
|
+
key: z.ZodString;
|
|
104
|
+
}, z.core.$loose>;
|
|
105
|
+
name: z.ZodString;
|
|
106
|
+
slug: z.ZodString;
|
|
107
|
+
description: z.ZodString;
|
|
108
|
+
longDescription: z.ZodString;
|
|
109
|
+
brand: z.ZodString;
|
|
110
|
+
manufacturer: z.ZodString;
|
|
111
|
+
parentCategories: z.ZodArray<z.ZodObject<{
|
|
112
|
+
key: z.ZodString;
|
|
103
113
|
}, z.core.$loose>>;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}, z.core.$loose>>;
|
|
118
|
-
group: z.ZodDefault<z.ZodString>;
|
|
119
|
-
name: z.ZodDefault<z.ZodString>;
|
|
120
|
-
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
121
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
122
|
-
key: z.ZodDefault<z.ZodString>;
|
|
123
|
-
}, z.core.$loose>>;
|
|
124
|
-
value: z.ZodDefault<z.ZodString>;
|
|
125
|
-
label: z.ZodDefault<z.ZodString>;
|
|
126
|
-
}, z.core.$loose>>>;
|
|
127
|
-
}, z.core.$loose>>>;
|
|
128
|
-
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
129
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
130
|
-
key: z.ZodDefault<z.ZodString>;
|
|
114
|
+
published: z.ZodBoolean;
|
|
115
|
+
sharedAttributes: z.ZodArray<z.ZodObject<{
|
|
116
|
+
identifier: z.ZodObject<{
|
|
117
|
+
key: z.ZodString;
|
|
118
|
+
}, z.core.$loose>;
|
|
119
|
+
group: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
values: z.ZodArray<z.ZodObject<{
|
|
122
|
+
identifier: z.ZodObject<{
|
|
123
|
+
key: z.ZodString;
|
|
124
|
+
}, z.core.$loose>;
|
|
125
|
+
value: z.ZodString;
|
|
126
|
+
label: z.ZodString;
|
|
131
127
|
}, z.core.$loose>>;
|
|
128
|
+
}, z.core.$loose>>;
|
|
129
|
+
options: z.ZodArray<z.ZodObject<{
|
|
130
|
+
identifier: z.ZodObject<{
|
|
131
|
+
key: z.ZodString;
|
|
132
|
+
}, z.core.$loose>;
|
|
132
133
|
name: z.ZodString;
|
|
133
|
-
values: z.
|
|
134
|
-
identifier: z.
|
|
135
|
-
option: z.
|
|
136
|
-
key: z.
|
|
137
|
-
}, z.core.$loose
|
|
138
|
-
key: z.
|
|
139
|
-
}, z.core.$loose
|
|
134
|
+
values: z.ZodArray<z.ZodObject<{
|
|
135
|
+
identifier: z.ZodObject<{
|
|
136
|
+
option: z.ZodObject<{
|
|
137
|
+
key: z.ZodString;
|
|
138
|
+
}, z.core.$loose>;
|
|
139
|
+
key: z.ZodString;
|
|
140
|
+
}, z.core.$loose>;
|
|
140
141
|
label: z.ZodString;
|
|
141
|
-
}, z.core.$loose>>>;
|
|
142
|
-
}, z.core.$loose>>>;
|
|
143
|
-
mainVariant: z.ZodDefault<z.ZodObject<{
|
|
144
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
145
|
-
sku: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
146
142
|
}, z.core.$loose>>;
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
}, z.core.$loose>>;
|
|
144
|
+
mainVariant: z.ZodObject<{
|
|
145
|
+
identifier: z.ZodObject<{
|
|
146
|
+
sku: z.ZodString;
|
|
147
|
+
}, z.core.$loose>;
|
|
148
|
+
name: z.ZodString;
|
|
149
|
+
images: z.ZodArray<z.ZodObject<{
|
|
149
150
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
150
151
|
altText: z.ZodDefault<z.ZodString>;
|
|
151
152
|
width: z.ZodOptional<z.ZodNumber>;
|
|
152
153
|
height: z.ZodOptional<z.ZodNumber>;
|
|
153
|
-
}, z.core.$loose
|
|
154
|
-
ean: z.
|
|
155
|
-
gtin: z.
|
|
156
|
-
upc: z.
|
|
157
|
-
barcode: z.
|
|
158
|
-
options: z.
|
|
159
|
-
identifier: z.
|
|
160
|
-
key: z.
|
|
161
|
-
}, z.core.$loose
|
|
154
|
+
}, z.core.$loose>>;
|
|
155
|
+
ean: z.ZodString;
|
|
156
|
+
gtin: z.ZodString;
|
|
157
|
+
upc: z.ZodString;
|
|
158
|
+
barcode: z.ZodString;
|
|
159
|
+
options: z.ZodArray<z.ZodObject<{
|
|
160
|
+
identifier: z.ZodObject<{
|
|
161
|
+
key: z.ZodString;
|
|
162
|
+
}, z.core.$loose>;
|
|
162
163
|
name: z.ZodString;
|
|
163
|
-
value: z.
|
|
164
|
-
identifier: z.
|
|
165
|
-
option: z.
|
|
166
|
-
key: z.
|
|
167
|
-
}, z.core.$loose
|
|
168
|
-
key: z.
|
|
169
|
-
}, z.core.$loose
|
|
164
|
+
value: z.ZodObject<{
|
|
165
|
+
identifier: z.ZodObject<{
|
|
166
|
+
option: z.ZodObject<{
|
|
167
|
+
key: z.ZodString;
|
|
168
|
+
}, z.core.$loose>;
|
|
169
|
+
key: z.ZodString;
|
|
170
|
+
}, z.core.$loose>;
|
|
170
171
|
label: z.ZodString;
|
|
171
|
-
}, z.core.$loose
|
|
172
|
-
}, z.core.$loose
|
|
173
|
-
}, z.core.$loose
|
|
172
|
+
}, z.core.$loose>;
|
|
173
|
+
}, z.core.$loose>>;
|
|
174
|
+
}, z.core.$loose>;
|
|
174
175
|
}, z.core.$loose>;
|
|
175
|
-
export type ProductVariant =
|
|
176
|
-
export type Product =
|
|
177
|
-
export type ProductAttribute =
|
|
178
|
-
export type ProductAttributeValue =
|
|
179
|
-
export type ProductOption =
|
|
180
|
-
export type ProductOptionValue =
|
|
181
|
-
export type ProductVariantOption =
|
|
176
|
+
export type ProductVariant = InferType<typeof ProductVariantSchema>;
|
|
177
|
+
export type Product = InferType<typeof ProductSchema>;
|
|
178
|
+
export type ProductAttribute = InferType<typeof ProductAttributeSchema>;
|
|
179
|
+
export type ProductAttributeValue = InferType<typeof ProductAttributeValueSchema>;
|
|
180
|
+
export type ProductOption = InferType<typeof ProductOptionSchema>;
|
|
181
|
+
export type ProductOptionValue = InferType<typeof ProductOptionValueSchema>;
|
|
182
|
+
export type ProductVariantOption = InferType<typeof ProductVariantOptionSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const AddressSchema: z.ZodObject<{
|
|
3
4
|
meta: z.ZodDefault<z.ZodObject<{
|
|
4
5
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -8,16 +9,16 @@ export declare const AddressSchema: z.ZodObject<{
|
|
|
8
9
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
9
10
|
}, z.core.$loose>>;
|
|
10
11
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
11
|
-
nickName: z.
|
|
12
|
+
nickName: z.ZodString;
|
|
12
13
|
}, z.core.$loose>>;
|
|
13
|
-
firstName: z.
|
|
14
|
-
lastName: z.
|
|
15
|
-
streetAddress: z.
|
|
16
|
-
streetNumber: z.
|
|
17
|
-
city: z.
|
|
18
|
-
region: z.
|
|
19
|
-
postalCode: z.
|
|
20
|
-
countryCode: z.
|
|
14
|
+
firstName: z.ZodString;
|
|
15
|
+
lastName: z.ZodString;
|
|
16
|
+
streetAddress: z.ZodString;
|
|
17
|
+
streetNumber: z.ZodString;
|
|
18
|
+
city: z.ZodString;
|
|
19
|
+
region: z.ZodString;
|
|
20
|
+
postalCode: z.ZodString;
|
|
21
|
+
countryCode: z.ZodString;
|
|
21
22
|
}, z.core.$loose>;
|
|
22
23
|
export declare const ProfileSchema: z.ZodObject<{
|
|
23
24
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -27,15 +28,15 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
27
28
|
}, z.core.$loose>>;
|
|
28
29
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
29
30
|
}, z.core.$loose>>;
|
|
30
|
-
identifier: z.
|
|
31
|
-
userId: z.
|
|
32
|
-
}, z.core.$loose
|
|
33
|
-
email: z.
|
|
34
|
-
phone: z.
|
|
35
|
-
emailVerified: z.
|
|
36
|
-
phoneVerified: z.
|
|
37
|
-
createdAt: z.
|
|
38
|
-
updatedAt: z.
|
|
31
|
+
identifier: z.ZodObject<{
|
|
32
|
+
userId: z.ZodString;
|
|
33
|
+
}, z.core.$loose>;
|
|
34
|
+
email: z.ZodEmail;
|
|
35
|
+
phone: z.ZodString;
|
|
36
|
+
emailVerified: z.ZodBoolean;
|
|
37
|
+
phoneVerified: z.ZodBoolean;
|
|
38
|
+
createdAt: z.ZodString;
|
|
39
|
+
updatedAt: z.ZodString;
|
|
39
40
|
shippingAddress: z.ZodOptional<z.ZodObject<{
|
|
40
41
|
meta: z.ZodDefault<z.ZodObject<{
|
|
41
42
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -45,16 +46,16 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
45
46
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
46
47
|
}, z.core.$loose>>;
|
|
47
48
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
48
|
-
nickName: z.
|
|
49
|
+
nickName: z.ZodString;
|
|
49
50
|
}, z.core.$loose>>;
|
|
50
|
-
firstName: z.
|
|
51
|
-
lastName: z.
|
|
52
|
-
streetAddress: z.
|
|
53
|
-
streetNumber: z.
|
|
54
|
-
city: z.
|
|
55
|
-
region: z.
|
|
56
|
-
postalCode: z.
|
|
57
|
-
countryCode: z.
|
|
51
|
+
firstName: z.ZodString;
|
|
52
|
+
lastName: z.ZodString;
|
|
53
|
+
streetAddress: z.ZodString;
|
|
54
|
+
streetNumber: z.ZodString;
|
|
55
|
+
city: z.ZodString;
|
|
56
|
+
region: z.ZodString;
|
|
57
|
+
postalCode: z.ZodString;
|
|
58
|
+
countryCode: z.ZodString;
|
|
58
59
|
}, z.core.$loose>>;
|
|
59
60
|
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
60
61
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -65,18 +66,18 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
65
66
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
66
67
|
}, z.core.$loose>>;
|
|
67
68
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
68
|
-
nickName: z.
|
|
69
|
+
nickName: z.ZodString;
|
|
69
70
|
}, z.core.$loose>>;
|
|
70
|
-
firstName: z.
|
|
71
|
-
lastName: z.
|
|
72
|
-
streetAddress: z.
|
|
73
|
-
streetNumber: z.
|
|
74
|
-
city: z.
|
|
75
|
-
region: z.
|
|
76
|
-
postalCode: z.
|
|
77
|
-
countryCode: z.
|
|
71
|
+
firstName: z.ZodString;
|
|
72
|
+
lastName: z.ZodString;
|
|
73
|
+
streetAddress: z.ZodString;
|
|
74
|
+
streetNumber: z.ZodString;
|
|
75
|
+
city: z.ZodString;
|
|
76
|
+
region: z.ZodString;
|
|
77
|
+
postalCode: z.ZodString;
|
|
78
|
+
countryCode: z.ZodString;
|
|
78
79
|
}, z.core.$loose>>;
|
|
79
|
-
alternateShippingAddresses: z.
|
|
80
|
+
alternateShippingAddresses: z.ZodArray<z.ZodObject<{
|
|
80
81
|
meta: z.ZodDefault<z.ZodObject<{
|
|
81
82
|
cache: z.ZodDefault<z.ZodObject<{
|
|
82
83
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -85,17 +86,17 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
85
86
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
86
87
|
}, z.core.$loose>>;
|
|
87
88
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
88
|
-
nickName: z.
|
|
89
|
+
nickName: z.ZodString;
|
|
89
90
|
}, z.core.$loose>>;
|
|
90
|
-
firstName: z.
|
|
91
|
-
lastName: z.
|
|
92
|
-
streetAddress: z.
|
|
93
|
-
streetNumber: z.
|
|
94
|
-
city: z.
|
|
95
|
-
region: z.
|
|
96
|
-
postalCode: z.
|
|
97
|
-
countryCode: z.
|
|
98
|
-
}, z.core.$loose
|
|
91
|
+
firstName: z.ZodString;
|
|
92
|
+
lastName: z.ZodString;
|
|
93
|
+
streetAddress: z.ZodString;
|
|
94
|
+
streetNumber: z.ZodString;
|
|
95
|
+
city: z.ZodString;
|
|
96
|
+
region: z.ZodString;
|
|
97
|
+
postalCode: z.ZodString;
|
|
98
|
+
countryCode: z.ZodString;
|
|
99
|
+
}, z.core.$loose>>;
|
|
99
100
|
}, z.core.$loose>;
|
|
100
|
-
export type Address =
|
|
101
|
-
export type Profile =
|
|
101
|
+
export type Address = InferType<typeof AddressSchema>;
|
|
102
|
+
export type Profile = InferType<typeof ProfileSchema>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const PickupPointSchema: z.ZodObject<{
|
|
3
|
-
identifier: z.
|
|
4
|
-
key: z.
|
|
5
|
-
}, z.core.$strip
|
|
6
|
-
name: z.
|
|
7
|
-
description: z.
|
|
8
|
-
address: z.
|
|
4
|
+
identifier: z.ZodObject<{
|
|
5
|
+
key: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
description: z.ZodString;
|
|
9
|
+
address: z.ZodObject<{
|
|
9
10
|
meta: z.ZodDefault<z.ZodObject<{
|
|
10
11
|
cache: z.ZodDefault<z.ZodObject<{
|
|
11
12
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -14,37 +15,37 @@ export declare const PickupPointSchema: z.ZodObject<{
|
|
|
14
15
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
15
16
|
}, z.core.$loose>>;
|
|
16
17
|
identifier: z.ZodDefault<z.ZodObject<{
|
|
17
|
-
nickName: z.
|
|
18
|
+
nickName: z.ZodString;
|
|
18
19
|
}, z.core.$loose>>;
|
|
19
|
-
firstName: z.
|
|
20
|
-
lastName: z.
|
|
21
|
-
streetAddress: z.
|
|
22
|
-
streetNumber: z.
|
|
23
|
-
city: z.
|
|
24
|
-
region: z.
|
|
25
|
-
postalCode: z.
|
|
26
|
-
countryCode: z.
|
|
27
|
-
}, z.core.$loose
|
|
28
|
-
openingHours: z.ZodOptional<z.
|
|
29
|
-
contactPhone: z.ZodOptional<z.
|
|
30
|
-
contactEmail: z.ZodOptional<z.
|
|
31
|
-
instructions: z.ZodOptional<z.
|
|
20
|
+
firstName: z.ZodString;
|
|
21
|
+
lastName: z.ZodString;
|
|
22
|
+
streetAddress: z.ZodString;
|
|
23
|
+
streetNumber: z.ZodString;
|
|
24
|
+
city: z.ZodString;
|
|
25
|
+
region: z.ZodString;
|
|
26
|
+
postalCode: z.ZodString;
|
|
27
|
+
countryCode: z.ZodString;
|
|
28
|
+
}, z.core.$loose>;
|
|
29
|
+
openingHours: z.ZodOptional<z.ZodString>;
|
|
30
|
+
contactPhone: z.ZodOptional<z.ZodString>;
|
|
31
|
+
contactEmail: z.ZodOptional<z.ZodString>;
|
|
32
|
+
instructions: z.ZodOptional<z.ZodString>;
|
|
32
33
|
}, z.core.$loose>;
|
|
33
34
|
export declare const ShippingMethodSchema: z.ZodObject<{
|
|
34
|
-
identifier: z.
|
|
35
|
-
key: z.
|
|
36
|
-
}, z.core.$loose
|
|
37
|
-
name: z.
|
|
38
|
-
description: z.
|
|
35
|
+
identifier: z.ZodObject<{
|
|
36
|
+
key: z.ZodString;
|
|
37
|
+
}, z.core.$loose>;
|
|
38
|
+
name: z.ZodString;
|
|
39
|
+
description: z.ZodString;
|
|
39
40
|
logo: z.ZodOptional<z.ZodObject<{
|
|
40
41
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
41
42
|
altText: z.ZodDefault<z.ZodString>;
|
|
42
43
|
width: z.ZodOptional<z.ZodNumber>;
|
|
43
44
|
height: z.ZodOptional<z.ZodNumber>;
|
|
44
45
|
}, z.core.$loose>>;
|
|
45
|
-
price: z.
|
|
46
|
-
value: z.
|
|
47
|
-
currency: z.
|
|
46
|
+
price: z.ZodObject<{
|
|
47
|
+
value: z.ZodNumber;
|
|
48
|
+
currency: z.ZodEnum<{
|
|
48
49
|
AED: "AED";
|
|
49
50
|
AFN: "AFN";
|
|
50
51
|
ALL: "ALL";
|
|
@@ -226,10 +227,10 @@ export declare const ShippingMethodSchema: z.ZodObject<{
|
|
|
226
227
|
ZAR: "ZAR";
|
|
227
228
|
ZMW: "ZMW";
|
|
228
229
|
ZWL: "ZWL";
|
|
229
|
-
}
|
|
230
|
-
}, z.core.$loose
|
|
231
|
-
deliveryTime: z.
|
|
232
|
-
carrier: z.ZodOptional<z.
|
|
230
|
+
}>;
|
|
231
|
+
}, z.core.$loose>;
|
|
232
|
+
deliveryTime: z.ZodString;
|
|
233
|
+
carrier: z.ZodOptional<z.ZodString>;
|
|
233
234
|
}, z.core.$loose>;
|
|
234
235
|
export declare const ShippingInstructionSchema: z.ZodObject<{
|
|
235
236
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -239,13 +240,13 @@ export declare const ShippingInstructionSchema: z.ZodObject<{
|
|
|
239
240
|
}, z.core.$loose>>;
|
|
240
241
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
241
242
|
}, z.core.$loose>>;
|
|
242
|
-
shippingMethod: z.
|
|
243
|
-
key: z.
|
|
244
|
-
}, z.core.$loose
|
|
245
|
-
pickupPoint: z.
|
|
246
|
-
instructions: z.
|
|
247
|
-
consentForUnattendedDelivery: z.
|
|
243
|
+
shippingMethod: z.ZodObject<{
|
|
244
|
+
key: z.ZodString;
|
|
245
|
+
}, z.core.$loose>;
|
|
246
|
+
pickupPoint: z.ZodString;
|
|
247
|
+
instructions: z.ZodString;
|
|
248
|
+
consentForUnattendedDelivery: z.ZodBoolean;
|
|
248
249
|
}, z.core.$loose>;
|
|
249
|
-
export type ShippingMethod =
|
|
250
|
-
export type PickupPoint =
|
|
251
|
-
export type ShippingInstruction =
|
|
250
|
+
export type ShippingMethod = InferType<typeof ShippingMethodSchema>;
|
|
251
|
+
export type PickupPoint = InferType<typeof PickupPointSchema>;
|
|
252
|
+
export type ShippingInstruction = InferType<typeof ShippingInstructionSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const StoreSchema: z.ZodObject<{
|
|
3
4
|
meta: z.ZodDefault<z.ZodObject<{
|
|
4
5
|
cache: z.ZodDefault<z.ZodObject<{
|
|
@@ -7,12 +8,12 @@ export declare const StoreSchema: z.ZodObject<{
|
|
|
7
8
|
}, z.core.$loose>>;
|
|
8
9
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
9
10
|
}, z.core.$loose>>;
|
|
10
|
-
identifier: z.
|
|
11
|
-
key: z.
|
|
12
|
-
}, z.core.$loose
|
|
13
|
-
name: z.
|
|
14
|
-
fulfillmentCenter: z.
|
|
15
|
-
key: z.
|
|
16
|
-
}, z.core.$loose
|
|
11
|
+
identifier: z.ZodObject<{
|
|
12
|
+
key: z.ZodString;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
name: z.ZodString;
|
|
15
|
+
fulfillmentCenter: z.ZodObject<{
|
|
16
|
+
key: z.ZodString;
|
|
17
|
+
}, z.core.$loose>;
|
|
17
18
|
}, z.core.$loose>;
|
|
18
|
-
export type Store =
|
|
19
|
+
export type Store = InferType<typeof StoreSchema>;
|