@reactionary/core 0.0.39 → 0.0.40
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 +2 -2
- package/schemas/capabilities.schema.js +1 -1
- package/schemas/models/base.model.js +5 -5
- package/schemas/models/cart.model.js +1 -1
- package/schemas/models/identifiers.model.js +12 -12
- package/schemas/models/price.model.js +1 -1
- package/schemas/models/product.model.js +2 -2
- package/schemas/models/search.model.js +3 -3
- package/schemas/mutations/base.mutation.js +1 -1
- package/schemas/mutations/inventory.mutation.js +0 -5
- package/schemas/mutations/price.mutation.js +0 -5
- package/schemas/mutations/product.mutation.js +0 -5
- package/schemas/mutations/search.mutation.js +0 -5
- package/schemas/queries/analytics.query.js +0 -5
- package/schemas/queries/base.query.js +1 -1
- package/schemas/queries/cart.query.js +1 -4
- package/schemas/queries/inventory.query.js +1 -3
- package/src/schemas/capabilities.schema.d.ts +2 -6
- package/src/schemas/models/analytics.model.d.ts +6 -22
- package/src/schemas/models/base.model.d.ts +21 -61
- package/src/schemas/models/cart.model.d.ts +73 -224
- package/src/schemas/models/category.model.d.ts +29 -95
- package/src/schemas/models/identifiers.model.d.ts +37 -109
- package/src/schemas/models/identity.model.d.ts +8 -25
- package/src/schemas/models/inventory.model.d.ts +12 -41
- package/src/schemas/models/price.model.d.ts +20 -65
- package/src/schemas/models/product.model.d.ts +20 -65
- package/src/schemas/models/search.model.d.ts +47 -144
- package/src/schemas/mutations/analytics.mutation.d.ts +47 -143
- package/src/schemas/mutations/base.mutation.d.ts +1 -5
- package/src/schemas/mutations/cart.mutation.d.ts +18 -66
- package/src/schemas/mutations/identity.mutation.d.ts +3 -19
- package/src/schemas/mutations/inventory.mutation.d.ts +1 -3
- package/src/schemas/mutations/price.mutation.d.ts +1 -3
- package/src/schemas/mutations/product.mutation.d.ts +1 -3
- package/src/schemas/mutations/search.mutation.d.ts +1 -3
- package/src/schemas/queries/analytics.query.d.ts +1 -3
- package/src/schemas/queries/base.query.d.ts +1 -5
- package/src/schemas/queries/cart.query.d.ts +4 -33
- package/src/schemas/queries/category.query.d.ts +20 -80
- package/src/schemas/queries/identity.query.d.ts +1 -9
- package/src/schemas/queries/inventory.query.d.ts +4 -34
- package/src/schemas/queries/price.query.d.ts +4 -16
- package/src/schemas/queries/product.query.d.ts +4 -20
- package/src/schemas/queries/search.query.d.ts +10 -30
- package/src/schemas/session.schema.d.ts +13 -40
|
@@ -1,183 +1,86 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SearchResultProductSchema: z.
|
|
3
|
-
identifier: z.ZodDefault<z.
|
|
2
|
+
export declare const SearchResultProductSchema: z.ZodObject<{
|
|
3
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
4
4
|
key: z.ZodDefault<z.ZodString>;
|
|
5
|
-
},
|
|
6
|
-
optional: never;
|
|
7
|
-
defaulted: never;
|
|
8
|
-
extra: Record<string, unknown>;
|
|
9
|
-
}>>;
|
|
5
|
+
}, z.core.$loose>>;
|
|
10
6
|
name: z.ZodDefault<z.ZodString>;
|
|
11
7
|
image: z.ZodDefault<z.ZodString>;
|
|
12
8
|
slug: z.ZodDefault<z.ZodString>;
|
|
13
|
-
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}>;
|
|
18
|
-
export declare const SearchResultFacetValueSchema: z.ZodInterface<{
|
|
19
|
-
identifier: z.ZodDefault<z.ZodInterface<{
|
|
20
|
-
facet: z.ZodDefault<z.ZodInterface<{
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
export declare const SearchResultFacetValueSchema: z.ZodObject<{
|
|
11
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
12
|
+
facet: z.ZodDefault<z.ZodObject<{
|
|
21
13
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
22
|
-
},
|
|
23
|
-
optional: never;
|
|
24
|
-
defaulted: never;
|
|
25
|
-
extra: Record<string, unknown>;
|
|
26
|
-
}>>;
|
|
14
|
+
}, z.core.$loose>>;
|
|
27
15
|
key: z.ZodDefault<z.ZodString>;
|
|
28
|
-
},
|
|
29
|
-
optional: never;
|
|
30
|
-
defaulted: never;
|
|
31
|
-
extra: Record<string, unknown>;
|
|
32
|
-
}>>;
|
|
16
|
+
}, z.core.$loose>>;
|
|
33
17
|
name: z.ZodDefault<z.ZodString>;
|
|
34
18
|
count: z.ZodDefault<z.ZodNumber>;
|
|
35
19
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
extra: Record<string, unknown>;
|
|
40
|
-
}>;
|
|
41
|
-
export declare const SearchResultFacetSchema: z.ZodInterface<{
|
|
42
|
-
identifier: z.ZodDefault<z.ZodInterface<{
|
|
20
|
+
}, z.core.$loose>;
|
|
21
|
+
export declare const SearchResultFacetSchema: z.ZodObject<{
|
|
22
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
43
23
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
44
|
-
},
|
|
45
|
-
optional: never;
|
|
46
|
-
defaulted: never;
|
|
47
|
-
extra: Record<string, unknown>;
|
|
48
|
-
}>>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
49
25
|
name: z.ZodDefault<z.ZodString>;
|
|
50
|
-
values: z.ZodDefault<z.ZodArray<z.
|
|
51
|
-
identifier: z.ZodDefault<z.
|
|
52
|
-
facet: z.ZodDefault<z.
|
|
26
|
+
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
27
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
28
|
+
facet: z.ZodDefault<z.ZodObject<{
|
|
53
29
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
54
|
-
},
|
|
55
|
-
optional: never;
|
|
56
|
-
defaulted: never;
|
|
57
|
-
extra: Record<string, unknown>;
|
|
58
|
-
}>>;
|
|
30
|
+
}, z.core.$loose>>;
|
|
59
31
|
key: z.ZodDefault<z.ZodString>;
|
|
60
|
-
},
|
|
61
|
-
optional: never;
|
|
62
|
-
defaulted: never;
|
|
63
|
-
extra: Record<string, unknown>;
|
|
64
|
-
}>>;
|
|
32
|
+
}, z.core.$loose>>;
|
|
65
33
|
name: z.ZodDefault<z.ZodString>;
|
|
66
34
|
count: z.ZodDefault<z.ZodNumber>;
|
|
67
35
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}, {
|
|
74
|
-
optional: never;
|
|
75
|
-
defaulted: never;
|
|
76
|
-
extra: Record<string, unknown>;
|
|
77
|
-
}>;
|
|
78
|
-
export declare const SearchResultSchema: z.MergeInterfaces<z.ZodInterface<{
|
|
79
|
-
meta: z.ZodDefault<z.ZodInterface<{
|
|
80
|
-
cache: z.ZodDefault<z.ZodInterface<{
|
|
36
|
+
}, z.core.$loose>>>;
|
|
37
|
+
}, z.core.$loose>;
|
|
38
|
+
export declare const SearchResultSchema: z.ZodObject<{
|
|
39
|
+
meta: z.ZodDefault<z.ZodObject<{
|
|
40
|
+
cache: z.ZodDefault<z.ZodObject<{
|
|
81
41
|
hit: z.ZodDefault<z.ZodBoolean>;
|
|
82
42
|
key: z.ZodDefault<z.ZodString>;
|
|
83
|
-
},
|
|
84
|
-
optional: never;
|
|
85
|
-
defaulted: never;
|
|
86
|
-
extra: Record<string, unknown>;
|
|
87
|
-
}>>;
|
|
43
|
+
}, z.core.$loose>>;
|
|
88
44
|
placeholder: z.ZodDefault<z.ZodBoolean>;
|
|
89
|
-
},
|
|
90
|
-
|
|
91
|
-
defaulted: never;
|
|
92
|
-
extra: Record<string, unknown>;
|
|
93
|
-
}>>;
|
|
94
|
-
}, {
|
|
95
|
-
optional: never;
|
|
96
|
-
defaulted: never;
|
|
97
|
-
extra: Record<string, unknown>;
|
|
98
|
-
}>, z.ZodInterface<{
|
|
99
|
-
identifier: z.ZodDefault<z.ZodInterface<{
|
|
45
|
+
}, z.core.$loose>>;
|
|
46
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
100
47
|
term: z.ZodDefault<z.ZodString>;
|
|
101
48
|
page: z.ZodDefault<z.ZodNumber>;
|
|
102
49
|
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
103
|
-
facets: z.ZodDefault<z.ZodArray<z.
|
|
104
|
-
|
|
105
|
-
facet: z.ZodNonOptional<z.ZodDefault<z.ZodInterface<{
|
|
50
|
+
facets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
51
|
+
facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
106
52
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
optional: never;
|
|
114
|
-
defaulted: never;
|
|
115
|
-
extra: Record<string, unknown>;
|
|
116
|
-
}>>>;
|
|
117
|
-
}, {
|
|
118
|
-
optional: never;
|
|
119
|
-
defaulted: never;
|
|
120
|
-
extra: Record<string, unknown>;
|
|
121
|
-
}>>;
|
|
122
|
-
products: z.ZodDefault<z.ZodArray<z.ZodInterface<{
|
|
123
|
-
identifier: z.ZodDefault<z.ZodInterface<{
|
|
53
|
+
}, z.core.$loose>>>;
|
|
54
|
+
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
products: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
58
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
124
59
|
key: z.ZodDefault<z.ZodString>;
|
|
125
|
-
},
|
|
126
|
-
optional: never;
|
|
127
|
-
defaulted: never;
|
|
128
|
-
extra: Record<string, unknown>;
|
|
129
|
-
}>>;
|
|
60
|
+
}, z.core.$loose>>;
|
|
130
61
|
name: z.ZodDefault<z.ZodString>;
|
|
131
62
|
image: z.ZodDefault<z.ZodString>;
|
|
132
63
|
slug: z.ZodDefault<z.ZodString>;
|
|
133
|
-
},
|
|
134
|
-
optional: never;
|
|
135
|
-
defaulted: never;
|
|
136
|
-
extra: Record<string, unknown>;
|
|
137
|
-
}>>>;
|
|
64
|
+
}, z.core.$loose>>>;
|
|
138
65
|
pages: z.ZodDefault<z.ZodNumber>;
|
|
139
|
-
facets: z.ZodDefault<z.ZodArray<z.
|
|
140
|
-
identifier: z.ZodDefault<z.
|
|
66
|
+
facets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
67
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
141
68
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
142
|
-
},
|
|
143
|
-
optional: never;
|
|
144
|
-
defaulted: never;
|
|
145
|
-
extra: Record<string, unknown>;
|
|
146
|
-
}>>;
|
|
69
|
+
}, z.core.$loose>>;
|
|
147
70
|
name: z.ZodDefault<z.ZodString>;
|
|
148
|
-
values: z.ZodDefault<z.ZodArray<z.
|
|
149
|
-
identifier: z.ZodDefault<z.
|
|
150
|
-
facet: z.ZodDefault<z.
|
|
71
|
+
values: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
72
|
+
identifier: z.ZodDefault<z.ZodObject<{
|
|
73
|
+
facet: z.ZodDefault<z.ZodObject<{
|
|
151
74
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
152
|
-
},
|
|
153
|
-
optional: never;
|
|
154
|
-
defaulted: never;
|
|
155
|
-
extra: Record<string, unknown>;
|
|
156
|
-
}>>;
|
|
75
|
+
}, z.core.$loose>>;
|
|
157
76
|
key: z.ZodDefault<z.ZodString>;
|
|
158
|
-
},
|
|
159
|
-
optional: never;
|
|
160
|
-
defaulted: never;
|
|
161
|
-
extra: Record<string, unknown>;
|
|
162
|
-
}>>;
|
|
77
|
+
}, z.core.$loose>>;
|
|
163
78
|
name: z.ZodDefault<z.ZodString>;
|
|
164
79
|
count: z.ZodDefault<z.ZodNumber>;
|
|
165
80
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
166
|
-
},
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
extra: Record<string, unknown>;
|
|
170
|
-
}>>>;
|
|
171
|
-
}, {
|
|
172
|
-
optional: never;
|
|
173
|
-
defaulted: never;
|
|
174
|
-
extra: Record<string, unknown>;
|
|
175
|
-
}>>>;
|
|
176
|
-
}, {
|
|
177
|
-
optional: never;
|
|
178
|
-
defaulted: never;
|
|
179
|
-
extra: {};
|
|
180
|
-
}>>;
|
|
81
|
+
}, z.core.$loose>>>;
|
|
82
|
+
}, z.core.$loose>>>;
|
|
83
|
+
}, z.core.$loose>;
|
|
181
84
|
export type SearchResultProduct = z.infer<typeof SearchResultProductSchema>;
|
|
182
85
|
export type SearchResult = z.infer<typeof SearchResultSchema>;
|
|
183
86
|
export type SearchResultFacet = z.infer<typeof SearchResultFacetSchema>;
|
|
@@ -1,169 +1,73 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const AnalyticsMutationSearchEventSchema: z.
|
|
3
|
-
optional: never;
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>, z.ZodInterface<{
|
|
2
|
+
export declare const AnalyticsMutationSearchEventSchema: z.ZodObject<{
|
|
7
3
|
mutation: z.ZodLiteral<"search">;
|
|
8
|
-
search: z.
|
|
9
|
-
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
4
|
+
search: z.ZodObject<{
|
|
10
5
|
term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
11
6
|
page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
facet: z.ZodNonOptional<z.ZodDefault<z.
|
|
7
|
+
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
9
|
+
facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
15
10
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, {
|
|
22
|
-
optional: never;
|
|
23
|
-
defaulted: never;
|
|
24
|
-
extra: Record<string, unknown>;
|
|
25
|
-
}>>>>;
|
|
26
|
-
}, {
|
|
27
|
-
optional: never;
|
|
28
|
-
defaulted: never;
|
|
29
|
-
extra: Record<string, unknown>;
|
|
30
|
-
}>;
|
|
31
|
-
products: z.ZodArray<z.ZodInterface<{
|
|
11
|
+
}, z.core.$loose>>>;
|
|
12
|
+
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>>>>;
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
products: z.ZodArray<z.ZodObject<{
|
|
32
16
|
key: z.ZodDefault<z.ZodString>;
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
extra: Record<string, unknown>;
|
|
37
|
-
}>>;
|
|
38
|
-
}, {
|
|
39
|
-
optional: never;
|
|
40
|
-
defaulted: never;
|
|
41
|
-
extra: {};
|
|
42
|
-
}>>;
|
|
43
|
-
export declare const AnalyticsMutationSearchProductClickEventSchema: z.MergeInterfaces<z.ZodInterface<{}, {
|
|
44
|
-
optional: never;
|
|
45
|
-
defaulted: never;
|
|
46
|
-
extra: Record<string, unknown>;
|
|
47
|
-
}>, z.ZodInterface<{
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
export declare const AnalyticsMutationSearchProductClickEventSchema: z.ZodObject<{
|
|
48
20
|
mutation: z.ZodLiteral<"product-search-click">;
|
|
49
|
-
search: z.
|
|
50
|
-
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
21
|
+
search: z.ZodObject<{
|
|
51
22
|
term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
52
23
|
page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
facet: z.ZodNonOptional<z.ZodDefault<z.
|
|
24
|
+
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
25
|
+
facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
26
|
+
facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
56
27
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, {
|
|
63
|
-
optional: never;
|
|
64
|
-
defaulted: never;
|
|
65
|
-
extra: Record<string, unknown>;
|
|
66
|
-
}>>>>;
|
|
67
|
-
}, {
|
|
68
|
-
optional: never;
|
|
69
|
-
defaulted: never;
|
|
70
|
-
extra: Record<string, unknown>;
|
|
71
|
-
}>;
|
|
72
|
-
product: z.ZodInterface<{
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
|
+
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
30
|
+
}, z.core.$loose>>>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
product: z.ZodObject<{
|
|
73
33
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
74
|
-
},
|
|
75
|
-
optional: never;
|
|
76
|
-
defaulted: never;
|
|
77
|
-
extra: Record<string, unknown>;
|
|
78
|
-
}>;
|
|
34
|
+
}, z.core.$loose>;
|
|
79
35
|
position: z.ZodNumber;
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
defaulted: never;
|
|
83
|
-
extra: {};
|
|
84
|
-
}>>;
|
|
85
|
-
export declare const AnalyticsMutationSchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{}, {
|
|
86
|
-
optional: never;
|
|
87
|
-
defaulted: never;
|
|
88
|
-
extra: Record<string, unknown>;
|
|
89
|
-
}>, z.ZodInterface<{
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
export declare const AnalyticsMutationSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
90
38
|
mutation: z.ZodLiteral<"search">;
|
|
91
|
-
search: z.
|
|
92
|
-
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
39
|
+
search: z.ZodObject<{
|
|
93
40
|
term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
94
41
|
page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
facet: z.ZodNonOptional<z.ZodDefault<z.
|
|
42
|
+
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
43
|
+
facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
44
|
+
facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
98
45
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}, {
|
|
105
|
-
optional: never;
|
|
106
|
-
defaulted: never;
|
|
107
|
-
extra: Record<string, unknown>;
|
|
108
|
-
}>>>>;
|
|
109
|
-
}, {
|
|
110
|
-
optional: never;
|
|
111
|
-
defaulted: never;
|
|
112
|
-
extra: Record<string, unknown>;
|
|
113
|
-
}>;
|
|
114
|
-
products: z.ZodArray<z.ZodInterface<{
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
48
|
+
}, z.core.$loose>>>>;
|
|
49
|
+
}, z.core.$loose>;
|
|
50
|
+
products: z.ZodArray<z.ZodObject<{
|
|
115
51
|
key: z.ZodDefault<z.ZodString>;
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
defaulted: never;
|
|
119
|
-
extra: Record<string, unknown>;
|
|
120
|
-
}>>;
|
|
121
|
-
}, {
|
|
122
|
-
optional: never;
|
|
123
|
-
defaulted: never;
|
|
124
|
-
extra: {};
|
|
125
|
-
}>>, z.MergeInterfaces<z.ZodInterface<{}, {
|
|
126
|
-
optional: never;
|
|
127
|
-
defaulted: never;
|
|
128
|
-
extra: Record<string, unknown>;
|
|
129
|
-
}>, z.ZodInterface<{
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
130
54
|
mutation: z.ZodLiteral<"product-search-click">;
|
|
131
|
-
search: z.
|
|
132
|
-
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
55
|
+
search: z.ZodObject<{
|
|
133
56
|
term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
134
57
|
page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
facet: z.ZodNonOptional<z.ZodDefault<z.
|
|
58
|
+
pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
|
|
59
|
+
facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
60
|
+
facet: z.ZodNonOptional<z.ZodDefault<z.ZodObject<{
|
|
138
61
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}, {
|
|
145
|
-
optional: never;
|
|
146
|
-
defaulted: never;
|
|
147
|
-
extra: Record<string, unknown>;
|
|
148
|
-
}>>>>;
|
|
149
|
-
}, {
|
|
150
|
-
optional: never;
|
|
151
|
-
defaulted: never;
|
|
152
|
-
extra: Record<string, unknown>;
|
|
153
|
-
}>;
|
|
154
|
-
product: z.ZodInterface<{
|
|
62
|
+
}, z.core.$loose>>>;
|
|
63
|
+
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
64
|
+
}, z.core.$loose>>>>;
|
|
65
|
+
}, z.core.$loose>;
|
|
66
|
+
product: z.ZodObject<{
|
|
155
67
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
156
|
-
},
|
|
157
|
-
optional: never;
|
|
158
|
-
defaulted: never;
|
|
159
|
-
extra: Record<string, unknown>;
|
|
160
|
-
}>;
|
|
68
|
+
}, z.core.$loose>;
|
|
161
69
|
position: z.ZodNumber;
|
|
162
|
-
},
|
|
163
|
-
optional: never;
|
|
164
|
-
defaulted: never;
|
|
165
|
-
extra: {};
|
|
166
|
-
}>>]>;
|
|
70
|
+
}, z.core.$loose>]>;
|
|
167
71
|
export type AnalyticsMutation = z.infer<typeof AnalyticsMutationSchema>;
|
|
168
72
|
export type AnalyticsMutationSearchEvent = z.infer<typeof AnalyticsMutationSearchEventSchema>;
|
|
169
73
|
export type AnalyticsMutationSearchProductClickEvent = z.infer<typeof AnalyticsMutationSearchProductClickEventSchema>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const BaseMutationSchema: z.
|
|
3
|
-
optional: never;
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>;
|
|
2
|
+
export declare const BaseMutationSchema: z.ZodObject<{}, z.core.$loose>;
|
|
7
3
|
export type BaseMutation = z.infer<typeof BaseMutationSchema>;
|
|
@@ -1,78 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const CartMutationItemAddSchema: z.
|
|
3
|
-
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>, z.ZodInterface<{
|
|
7
|
-
cart: z.ZodInterface<{
|
|
2
|
+
export declare const CartMutationItemAddSchema: z.ZodObject<{
|
|
3
|
+
cart: z.ZodObject<{
|
|
8
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
defaulted: never;
|
|
12
|
-
extra: Record<string, unknown>;
|
|
13
|
-
}>;
|
|
14
|
-
product: z.ZodInterface<{
|
|
5
|
+
}, z.core.$loose>;
|
|
6
|
+
product: z.ZodObject<{
|
|
15
7
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
16
|
-
},
|
|
17
|
-
optional: never;
|
|
18
|
-
defaulted: never;
|
|
19
|
-
extra: Record<string, unknown>;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$loose>;
|
|
21
9
|
quantity: z.ZodNumber;
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
extra: {};
|
|
26
|
-
}>>;
|
|
27
|
-
export declare const CartMutationItemRemoveSchema: z.MergeInterfaces<z.ZodInterface<{}, {
|
|
28
|
-
optional: never;
|
|
29
|
-
defaulted: never;
|
|
30
|
-
extra: Record<string, unknown>;
|
|
31
|
-
}>, z.ZodInterface<{
|
|
32
|
-
cart: z.ZodInterface<{
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
export declare const CartMutationItemRemoveSchema: z.ZodObject<{
|
|
12
|
+
cart: z.ZodObject<{
|
|
33
13
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
defaulted: never;
|
|
37
|
-
extra: Record<string, unknown>;
|
|
38
|
-
}>;
|
|
39
|
-
item: z.ZodInterface<{
|
|
14
|
+
}, z.core.$loose>;
|
|
15
|
+
item: z.ZodObject<{
|
|
40
16
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
41
|
-
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}>;
|
|
46
|
-
}, {
|
|
47
|
-
optional: never;
|
|
48
|
-
defaulted: never;
|
|
49
|
-
extra: {};
|
|
50
|
-
}>>;
|
|
51
|
-
export declare const CartMutationItemQuantityChangeSchema: z.MergeInterfaces<z.ZodInterface<{}, {
|
|
52
|
-
optional: never;
|
|
53
|
-
defaulted: never;
|
|
54
|
-
extra: Record<string, unknown>;
|
|
55
|
-
}>, z.ZodInterface<{
|
|
56
|
-
cart: z.ZodInterface<{
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
export declare const CartMutationItemQuantityChangeSchema: z.ZodObject<{
|
|
20
|
+
cart: z.ZodObject<{
|
|
57
21
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
defaulted: never;
|
|
61
|
-
extra: Record<string, unknown>;
|
|
62
|
-
}>;
|
|
63
|
-
item: z.ZodInterface<{
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
item: z.ZodObject<{
|
|
64
24
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
65
|
-
},
|
|
66
|
-
optional: never;
|
|
67
|
-
defaulted: never;
|
|
68
|
-
extra: Record<string, unknown>;
|
|
69
|
-
}>;
|
|
25
|
+
}, z.core.$loose>;
|
|
70
26
|
quantity: z.ZodNumber;
|
|
71
|
-
},
|
|
72
|
-
optional: never;
|
|
73
|
-
defaulted: never;
|
|
74
|
-
extra: {};
|
|
75
|
-
}>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
76
28
|
export type CartMutationItemAdd = z.infer<typeof CartMutationItemAddSchema>;
|
|
77
29
|
export type CartMutationItemRemove = z.infer<typeof CartMutationItemRemoveSchema>;
|
|
78
30
|
export type CartMutationItemQuantityChange = z.infer<typeof CartMutationItemQuantityChangeSchema>;
|
|
@@ -1,24 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const IdentityMutationLoginSchema: z.
|
|
3
|
-
optional: never;
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>, z.ZodInterface<{
|
|
2
|
+
export declare const IdentityMutationLoginSchema: z.ZodObject<{
|
|
7
3
|
username: z.ZodString;
|
|
8
4
|
password: z.ZodString;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
defaulted: never;
|
|
12
|
-
extra: {};
|
|
13
|
-
}>>;
|
|
14
|
-
export declare const IdentityMutationLogoutSchema: z.MergeInterfaces<z.ZodInterface<{}, {
|
|
15
|
-
optional: never;
|
|
16
|
-
defaulted: never;
|
|
17
|
-
extra: Record<string, unknown>;
|
|
18
|
-
}>, z.ZodInterface<{}, {
|
|
19
|
-
optional: never;
|
|
20
|
-
defaulted: never;
|
|
21
|
-
extra: {};
|
|
22
|
-
}>>;
|
|
5
|
+
}, z.core.$loose>;
|
|
6
|
+
export declare const IdentityMutationLogoutSchema: z.ZodObject<{}, z.core.$loose>;
|
|
23
7
|
export type IdentityMutationLogin = z.infer<typeof IdentityMutationLoginSchema>;
|
|
24
8
|
export type IdentityMutationLogout = z.infer<typeof IdentityMutationLogoutSchema>;
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const BaseQuerySchema: z.
|
|
3
|
-
optional: never;
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>;
|
|
2
|
+
export declare const BaseQuerySchema: z.ZodObject<{}, z.core.$loose>;
|
|
7
3
|
export type BaseQuery = z.infer<typeof BaseQuerySchema>;
|
|
@@ -1,36 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const CartQueryByIdSchema: z.
|
|
3
|
-
|
|
4
|
-
defaulted: never;
|
|
5
|
-
extra: Record<string, unknown>;
|
|
6
|
-
}>, z.ZodInterface<{
|
|
7
|
-
cart: z.ZodInterface<{
|
|
2
|
+
export declare const CartQueryByIdSchema: z.ZodObject<{
|
|
3
|
+
cart: z.ZodObject<{
|
|
8
4
|
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
defaulted: never;
|
|
12
|
-
extra: Record<string, unknown>;
|
|
13
|
-
}>;
|
|
14
|
-
}, {
|
|
15
|
-
optional: never;
|
|
16
|
-
defaulted: never;
|
|
17
|
-
extra: {};
|
|
18
|
-
}>>;
|
|
19
|
-
export declare const CartQuerySchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{}, {
|
|
20
|
-
optional: never;
|
|
21
|
-
defaulted: never;
|
|
22
|
-
extra: Record<string, unknown>;
|
|
23
|
-
}>, z.ZodInterface<{
|
|
24
|
-
cart: z.ZodInterface<{
|
|
25
|
-
key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
|
|
26
|
-
}, {
|
|
27
|
-
optional: never;
|
|
28
|
-
defaulted: never;
|
|
29
|
-
extra: Record<string, unknown>;
|
|
30
|
-
}>;
|
|
31
|
-
}, {
|
|
32
|
-
optional: never;
|
|
33
|
-
defaulted: never;
|
|
34
|
-
extra: {};
|
|
35
|
-
}>>]>;
|
|
5
|
+
}, z.core.$loose>;
|
|
6
|
+
}, z.core.$loose>;
|
|
36
7
|
export type CartQueryById = z.infer<typeof CartQueryByIdSchema>;
|