@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,7 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const MonetaryAmountSchema: z.ZodObject<{
|
|
3
|
-
value: z.
|
|
4
|
-
currency: z.
|
|
4
|
+
value: z.ZodNumber;
|
|
5
|
+
currency: z.ZodEnum<{
|
|
5
6
|
AED: "AED";
|
|
6
7
|
AFN: "AFN";
|
|
7
8
|
ALL: "ALL";
|
|
@@ -183,13 +184,13 @@ export declare const MonetaryAmountSchema: z.ZodObject<{
|
|
|
183
184
|
ZAR: "ZAR";
|
|
184
185
|
ZMW: "ZMW";
|
|
185
186
|
ZWL: "ZWL";
|
|
186
|
-
}
|
|
187
|
+
}>;
|
|
187
188
|
}, z.core.$loose>;
|
|
188
189
|
export declare const TieredPriceSchema: z.ZodObject<{
|
|
189
|
-
minimumQuantity: z.
|
|
190
|
-
price: z.
|
|
191
|
-
value: z.
|
|
192
|
-
currency: z.
|
|
190
|
+
minimumQuantity: z.ZodNumber;
|
|
191
|
+
price: z.ZodObject<{
|
|
192
|
+
value: z.ZodNumber;
|
|
193
|
+
currency: z.ZodEnum<{
|
|
193
194
|
AED: "AED";
|
|
194
195
|
AFN: "AFN";
|
|
195
196
|
ALL: "ALL";
|
|
@@ -371,8 +372,8 @@ export declare const TieredPriceSchema: z.ZodObject<{
|
|
|
371
372
|
ZAR: "ZAR";
|
|
372
373
|
ZMW: "ZMW";
|
|
373
374
|
ZWL: "ZWL";
|
|
374
|
-
}
|
|
375
|
-
}, z.core.$loose
|
|
375
|
+
}>;
|
|
376
|
+
}, z.core.$loose>;
|
|
376
377
|
}, z.core.$loose>;
|
|
377
378
|
export declare const PriceSchema: z.ZodObject<{
|
|
378
379
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -382,14 +383,14 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
382
383
|
}, z.core.$loose>>;
|
|
383
384
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
384
385
|
}, z.core.$loose>>;
|
|
385
|
-
identifier: z.
|
|
386
|
-
variant: z.
|
|
387
|
-
sku: z.
|
|
388
|
-
}, z.core.$loose
|
|
389
|
-
}, z.core.$loose
|
|
390
|
-
unitPrice: z.
|
|
391
|
-
value: z.
|
|
392
|
-
currency: z.
|
|
386
|
+
identifier: z.ZodObject<{
|
|
387
|
+
variant: z.ZodObject<{
|
|
388
|
+
sku: z.ZodString;
|
|
389
|
+
}, z.core.$loose>;
|
|
390
|
+
}, z.core.$loose>;
|
|
391
|
+
unitPrice: z.ZodObject<{
|
|
392
|
+
value: z.ZodNumber;
|
|
393
|
+
currency: z.ZodEnum<{
|
|
393
394
|
AED: "AED";
|
|
394
395
|
AFN: "AFN";
|
|
395
396
|
ALL: "ALL";
|
|
@@ -571,13 +572,13 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
571
572
|
ZAR: "ZAR";
|
|
572
573
|
ZMW: "ZMW";
|
|
573
574
|
ZWL: "ZWL";
|
|
574
|
-
}
|
|
575
|
-
}, z.core.$loose
|
|
576
|
-
tieredPrices: z.
|
|
577
|
-
minimumQuantity: z.
|
|
578
|
-
price: z.
|
|
579
|
-
value: z.
|
|
580
|
-
currency: z.
|
|
575
|
+
}>;
|
|
576
|
+
}, z.core.$loose>;
|
|
577
|
+
tieredPrices: z.ZodArray<z.ZodObject<{
|
|
578
|
+
minimumQuantity: z.ZodNumber;
|
|
579
|
+
price: z.ZodObject<{
|
|
580
|
+
value: z.ZodNumber;
|
|
581
|
+
currency: z.ZodEnum<{
|
|
581
582
|
AED: "AED";
|
|
582
583
|
AFN: "AFN";
|
|
583
584
|
ALL: "ALL";
|
|
@@ -759,10 +760,10 @@ export declare const PriceSchema: z.ZodObject<{
|
|
|
759
760
|
ZAR: "ZAR";
|
|
760
761
|
ZMW: "ZMW";
|
|
761
762
|
ZWL: "ZWL";
|
|
762
|
-
}
|
|
763
|
-
}, z.core.$loose
|
|
764
|
-
}, z.core.$loose
|
|
763
|
+
}>;
|
|
764
|
+
}, z.core.$loose>;
|
|
765
|
+
}, z.core.$loose>>;
|
|
765
766
|
}, z.core.$loose>;
|
|
766
|
-
export type MonetaryAmount =
|
|
767
|
-
export type Price =
|
|
768
|
-
export type TieredPrice =
|
|
767
|
+
export type MonetaryAmount = InferType<typeof MonetaryAmountSchema>;
|
|
768
|
+
export type Price = InferType<typeof PriceSchema>;
|
|
769
|
+
export type TieredPrice = InferType<typeof TieredPriceSchema>;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { InferType } from '../../zod-utils.js';
|
|
2
3
|
export declare const ProductSearchResultItemVariantSchema: z.ZodObject<{
|
|
3
|
-
variant: z.
|
|
4
|
-
sku: z.
|
|
5
|
-
}, z.core.$loose
|
|
6
|
-
image: z.
|
|
4
|
+
variant: z.ZodObject<{
|
|
5
|
+
sku: z.ZodString;
|
|
6
|
+
}, z.core.$loose>;
|
|
7
|
+
image: z.ZodObject<{
|
|
7
8
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
8
9
|
altText: z.ZodDefault<z.ZodString>;
|
|
9
10
|
width: z.ZodOptional<z.ZodNumber>;
|
|
10
11
|
height: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
}, z.core.$loose
|
|
12
|
+
}, z.core.$loose>;
|
|
12
13
|
options: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
identifier: z.
|
|
14
|
-
key: z.
|
|
15
|
-
}, z.core.$loose
|
|
14
|
+
identifier: z.ZodObject<{
|
|
15
|
+
key: z.ZodString;
|
|
16
|
+
}, z.core.$loose>;
|
|
16
17
|
name: z.ZodString;
|
|
17
|
-
value: z.
|
|
18
|
-
identifier: z.
|
|
19
|
-
option: z.
|
|
20
|
-
key: z.
|
|
21
|
-
}, z.core.$loose
|
|
22
|
-
key: z.
|
|
23
|
-
}, z.core.$loose
|
|
18
|
+
value: z.ZodObject<{
|
|
19
|
+
identifier: z.ZodObject<{
|
|
20
|
+
option: z.ZodObject<{
|
|
21
|
+
key: z.ZodString;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
key: z.ZodString;
|
|
24
|
+
}, z.core.$loose>;
|
|
24
25
|
label: z.ZodString;
|
|
25
|
-
}, z.core.$loose
|
|
26
|
+
}, z.core.$loose>;
|
|
26
27
|
}, z.core.$loose>>;
|
|
27
28
|
}, z.core.$loose>;
|
|
28
29
|
export declare const ProductSearchResultItemSchema: z.ZodObject<{
|
|
@@ -33,65 +34,65 @@ export declare const ProductSearchResultItemSchema: z.ZodObject<{
|
|
|
33
34
|
}, z.core.$loose>>;
|
|
34
35
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
35
36
|
}, z.core.$loose>>;
|
|
36
|
-
identifier: z.
|
|
37
|
-
key: z.
|
|
38
|
-
}, z.core.$loose
|
|
39
|
-
name: z.
|
|
40
|
-
slug: z.
|
|
41
|
-
variants: z.
|
|
42
|
-
variant: z.
|
|
43
|
-
sku: z.
|
|
44
|
-
}, z.core.$loose
|
|
45
|
-
image: z.
|
|
37
|
+
identifier: z.ZodObject<{
|
|
38
|
+
key: z.ZodString;
|
|
39
|
+
}, z.core.$loose>;
|
|
40
|
+
name: z.ZodString;
|
|
41
|
+
slug: z.ZodString;
|
|
42
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
43
|
+
variant: z.ZodObject<{
|
|
44
|
+
sku: z.ZodString;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
|
+
image: z.ZodObject<{
|
|
46
47
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
47
48
|
altText: z.ZodDefault<z.ZodString>;
|
|
48
49
|
width: z.ZodOptional<z.ZodNumber>;
|
|
49
50
|
height: z.ZodOptional<z.ZodNumber>;
|
|
50
|
-
}, z.core.$loose
|
|
51
|
+
}, z.core.$loose>;
|
|
51
52
|
options: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
identifier: z.
|
|
53
|
-
key: z.
|
|
54
|
-
}, z.core.$loose
|
|
53
|
+
identifier: z.ZodObject<{
|
|
54
|
+
key: z.ZodString;
|
|
55
|
+
}, z.core.$loose>;
|
|
55
56
|
name: z.ZodString;
|
|
56
|
-
value: z.
|
|
57
|
-
identifier: z.
|
|
58
|
-
option: z.
|
|
59
|
-
key: z.
|
|
60
|
-
}, z.core.$loose
|
|
61
|
-
key: z.
|
|
62
|
-
}, z.core.$loose
|
|
57
|
+
value: z.ZodObject<{
|
|
58
|
+
identifier: z.ZodObject<{
|
|
59
|
+
option: z.ZodObject<{
|
|
60
|
+
key: z.ZodString;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
key: z.ZodString;
|
|
63
|
+
}, z.core.$loose>;
|
|
63
64
|
label: z.ZodString;
|
|
64
|
-
}, z.core.$loose
|
|
65
|
+
}, z.core.$loose>;
|
|
65
66
|
}, z.core.$loose>>;
|
|
66
|
-
}, z.core.$loose
|
|
67
|
+
}, z.core.$loose>>;
|
|
67
68
|
}, z.core.$loose>;
|
|
68
69
|
export declare const ProductSearchResultFacetValueSchema: z.ZodObject<{
|
|
69
|
-
identifier: z.
|
|
70
|
-
facet: z.
|
|
71
|
-
key: z.
|
|
72
|
-
}, z.core.$loose
|
|
73
|
-
key: z.
|
|
74
|
-
}, z.core.$strip
|
|
75
|
-
name: z.
|
|
76
|
-
count: z.
|
|
77
|
-
active: z.
|
|
70
|
+
identifier: z.ZodObject<{
|
|
71
|
+
facet: z.ZodObject<{
|
|
72
|
+
key: z.ZodString;
|
|
73
|
+
}, z.core.$loose>;
|
|
74
|
+
key: z.ZodString;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
count: z.ZodNumber;
|
|
78
|
+
active: z.ZodBoolean;
|
|
78
79
|
}, z.core.$loose>;
|
|
79
80
|
export declare const ProductSearchResultFacetSchema: z.ZodObject<{
|
|
80
|
-
identifier: z.
|
|
81
|
-
key: z.
|
|
81
|
+
identifier: z.ZodObject<{
|
|
82
|
+
key: z.ZodString;
|
|
83
|
+
}, z.core.$loose>;
|
|
84
|
+
name: z.ZodString;
|
|
85
|
+
values: z.ZodArray<z.ZodObject<{
|
|
86
|
+
identifier: z.ZodObject<{
|
|
87
|
+
facet: z.ZodObject<{
|
|
88
|
+
key: z.ZodString;
|
|
89
|
+
}, z.core.$loose>;
|
|
90
|
+
key: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
count: z.ZodNumber;
|
|
94
|
+
active: z.ZodBoolean;
|
|
82
95
|
}, z.core.$loose>>;
|
|
83
|
-
name: z.ZodDefault<z.ZodString>;
|
|
84
|
-
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
85
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
86
|
-
facet: z.ZodDefault<z.ZodObject<{
|
|
87
|
-
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
88
|
-
}, z.core.$loose>>;
|
|
89
|
-
key: z.ZodDefault<z.ZodString>;
|
|
90
|
-
}, z.core.$strip>>;
|
|
91
|
-
name: z.ZodDefault<z.ZodString>;
|
|
92
|
-
count: z.ZodDefault<z.ZodNumber>;
|
|
93
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
-
}, z.core.$loose>>>;
|
|
95
96
|
}, z.core.$loose>;
|
|
96
97
|
export declare const ProductSearchResultSchema: z.ZodObject<{
|
|
97
98
|
meta: z.ZodDefault<z.ZodObject<{
|
|
@@ -113,72 +114,72 @@ export declare const ProductSearchResultSchema: z.ZodObject<{
|
|
|
113
114
|
}, z.core.$loose>>;
|
|
114
115
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
115
116
|
}, z.core.$loose>>;
|
|
116
|
-
identifier: z.
|
|
117
|
-
key: z.
|
|
118
|
-
}, z.core.$loose
|
|
119
|
-
name: z.
|
|
120
|
-
slug: z.
|
|
121
|
-
variants: z.
|
|
122
|
-
variant: z.
|
|
123
|
-
sku: z.
|
|
124
|
-
}, z.core.$loose
|
|
125
|
-
image: z.
|
|
117
|
+
identifier: z.ZodObject<{
|
|
118
|
+
key: z.ZodString;
|
|
119
|
+
}, z.core.$loose>;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
slug: z.ZodString;
|
|
122
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
123
|
+
variant: z.ZodObject<{
|
|
124
|
+
sku: z.ZodString;
|
|
125
|
+
}, z.core.$loose>;
|
|
126
|
+
image: z.ZodObject<{
|
|
126
127
|
sourceUrl: z.ZodDefault<z.ZodString>;
|
|
127
128
|
altText: z.ZodDefault<z.ZodString>;
|
|
128
129
|
width: z.ZodOptional<z.ZodNumber>;
|
|
129
130
|
height: z.ZodOptional<z.ZodNumber>;
|
|
130
|
-
}, z.core.$loose
|
|
131
|
+
}, z.core.$loose>;
|
|
131
132
|
options: z.ZodOptional<z.ZodObject<{
|
|
132
|
-
identifier: z.
|
|
133
|
-
key: z.
|
|
134
|
-
}, z.core.$loose
|
|
133
|
+
identifier: z.ZodObject<{
|
|
134
|
+
key: z.ZodString;
|
|
135
|
+
}, z.core.$loose>;
|
|
135
136
|
name: z.ZodString;
|
|
136
|
-
value: z.
|
|
137
|
-
identifier: z.
|
|
138
|
-
option: z.
|
|
139
|
-
key: z.
|
|
140
|
-
}, z.core.$loose
|
|
141
|
-
key: z.
|
|
142
|
-
}, z.core.$loose
|
|
137
|
+
value: z.ZodObject<{
|
|
138
|
+
identifier: z.ZodObject<{
|
|
139
|
+
option: z.ZodObject<{
|
|
140
|
+
key: z.ZodString;
|
|
141
|
+
}, z.core.$loose>;
|
|
142
|
+
key: z.ZodString;
|
|
143
|
+
}, z.core.$loose>;
|
|
143
144
|
label: z.ZodString;
|
|
144
|
-
}, z.core.$loose
|
|
145
|
+
}, z.core.$loose>;
|
|
145
146
|
}, z.core.$loose>>;
|
|
146
|
-
}, z.core.$loose
|
|
147
|
+
}, z.core.$loose>>;
|
|
147
148
|
}, z.core.$loose>>;
|
|
148
|
-
identifier: z.
|
|
149
|
-
term: z.
|
|
150
|
-
facets: z.
|
|
151
|
-
facet: z.
|
|
152
|
-
key: z.
|
|
153
|
-
}, z.core.$loose
|
|
154
|
-
key: z.
|
|
155
|
-
}, z.core.$strip
|
|
156
|
-
filters: z.
|
|
157
|
-
paginationOptions: z.
|
|
149
|
+
identifier: z.ZodObject<{
|
|
150
|
+
term: z.ZodString;
|
|
151
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
152
|
+
facet: z.ZodObject<{
|
|
153
|
+
key: z.ZodString;
|
|
154
|
+
}, z.core.$loose>;
|
|
155
|
+
key: z.ZodString;
|
|
156
|
+
}, z.core.$strip>>;
|
|
157
|
+
filters: z.ZodArray<z.ZodString>;
|
|
158
|
+
paginationOptions: z.ZodObject<{
|
|
158
159
|
pageNumber: z.ZodDefault<z.ZodNumber>;
|
|
159
160
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
161
|
+
}, z.core.$loose>;
|
|
162
|
+
}, z.core.$loose>;
|
|
163
|
+
facets: z.ZodArray<z.ZodObject<{
|
|
164
|
+
identifier: z.ZodObject<{
|
|
165
|
+
key: z.ZodString;
|
|
166
|
+
}, z.core.$loose>;
|
|
167
|
+
name: z.ZodString;
|
|
168
|
+
values: z.ZodArray<z.ZodObject<{
|
|
169
|
+
identifier: z.ZodObject<{
|
|
170
|
+
facet: z.ZodObject<{
|
|
171
|
+
key: z.ZodString;
|
|
172
|
+
}, z.core.$loose>;
|
|
173
|
+
key: z.ZodString;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
name: z.ZodString;
|
|
176
|
+
count: z.ZodNumber;
|
|
177
|
+
active: z.ZodBoolean;
|
|
160
178
|
}, z.core.$loose>>;
|
|
161
179
|
}, z.core.$loose>>;
|
|
162
|
-
facets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
163
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
164
|
-
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
165
|
-
}, z.core.$loose>>;
|
|
166
|
-
name: z.ZodDefault<z.ZodString>;
|
|
167
|
-
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
168
|
-
identifier: z.ZodDefault<z.ZodObject<{
|
|
169
|
-
facet: z.ZodDefault<z.ZodObject<{
|
|
170
|
-
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
171
|
-
}, z.core.$loose>>;
|
|
172
|
-
key: z.ZodDefault<z.ZodString>;
|
|
173
|
-
}, z.core.$strip>>;
|
|
174
|
-
name: z.ZodDefault<z.ZodString>;
|
|
175
|
-
count: z.ZodDefault<z.ZodNumber>;
|
|
176
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
177
|
-
}, z.core.$loose>>>;
|
|
178
|
-
}, z.core.$loose>>>;
|
|
179
180
|
}, z.core.$strip>;
|
|
180
|
-
export type ProductSearchResultItemVariant =
|
|
181
|
-
export type ProductSearchResultItem =
|
|
182
|
-
export type ProductSearchResult =
|
|
183
|
-
export type ProductSearchResultFacet =
|
|
184
|
-
export type ProductSearchResultFacetValue =
|
|
181
|
+
export type ProductSearchResultItemVariant = InferType<typeof ProductSearchResultItemVariantSchema>;
|
|
182
|
+
export type ProductSearchResultItem = InferType<typeof ProductSearchResultItemSchema>;
|
|
183
|
+
export type ProductSearchResult = InferType<typeof ProductSearchResultSchema>;
|
|
184
|
+
export type ProductSearchResultFacet = InferType<typeof ProductSearchResultFacetSchema>;
|
|
185
|
+
export type ProductSearchResultFacetValue = InferType<typeof ProductSearchResultFacetValueSchema>;
|