@reactionary/core 0.0.27

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.
Files changed (43) hide show
  1. package/README.md +11 -0
  2. package/index.js +647 -0
  3. package/package.json +8 -0
  4. package/src/cache/caching-strategy.d.ts +13 -0
  5. package/src/cache/redis-cache.d.ts +13 -0
  6. package/src/client/client.d.ts +18 -0
  7. package/src/index.d.ts +36 -0
  8. package/src/providers/analytics.provider.d.ts +6 -0
  9. package/src/providers/base.provider.d.ts +46 -0
  10. package/src/providers/cart.provider.d.ts +6 -0
  11. package/src/providers/identity.provider.d.ts +6 -0
  12. package/src/providers/inventory.provider.d.ts +6 -0
  13. package/src/providers/price.provider.d.ts +6 -0
  14. package/src/providers/product.provider.d.ts +6 -0
  15. package/src/providers/search.provider.d.ts +6 -0
  16. package/src/schemas/capabilities.schema.d.ts +15 -0
  17. package/src/schemas/models/analytics.model.d.ts +27 -0
  18. package/src/schemas/models/base.model.d.ts +48 -0
  19. package/src/schemas/models/cart.model.d.ts +78 -0
  20. package/src/schemas/models/currency.model.d.ts +185 -0
  21. package/src/schemas/models/identifiers.model.d.ts +93 -0
  22. package/src/schemas/models/identity.model.d.ts +43 -0
  23. package/src/schemas/models/inventory.model.d.ts +29 -0
  24. package/src/schemas/models/price.model.d.ts +422 -0
  25. package/src/schemas/models/product.model.d.ts +86 -0
  26. package/src/schemas/models/search.model.d.ts +184 -0
  27. package/src/schemas/mutations/analytics.mutation.d.ts +177 -0
  28. package/src/schemas/mutations/base.mutation.d.ts +9 -0
  29. package/src/schemas/mutations/cart.mutation.d.ts +169 -0
  30. package/src/schemas/mutations/identity.mutation.d.ts +59 -0
  31. package/src/schemas/mutations/inventory.mutation.d.ts +3 -0
  32. package/src/schemas/mutations/price.mutation.d.ts +3 -0
  33. package/src/schemas/mutations/product.mutation.d.ts +3 -0
  34. package/src/schemas/mutations/search.mutation.d.ts +3 -0
  35. package/src/schemas/queries/analytics.query.d.ts +3 -0
  36. package/src/schemas/queries/base.query.d.ts +9 -0
  37. package/src/schemas/queries/cart.query.d.ts +43 -0
  38. package/src/schemas/queries/identity.query.d.ts +29 -0
  39. package/src/schemas/queries/inventory.query.d.ts +16 -0
  40. package/src/schemas/queries/price.query.d.ts +43 -0
  41. package/src/schemas/queries/product.query.d.ts +59 -0
  42. package/src/schemas/queries/search.query.d.ts +75 -0
  43. package/src/schemas/session.schema.d.ts +42 -0
@@ -0,0 +1,177 @@
1
+ import { z } from 'zod';
2
+ export declare const AnalyticsMutationSearchEventSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ mutation: z.ZodLiteral<"search">;
10
+ search: z.ZodInterface<{
11
+ term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
12
+ page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
13
+ pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
14
+ facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodInterface<{
15
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
16
+ facet: z.ZodNonOptional<z.ZodDefault<z.ZodInterface<{
17
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
18
+ }, {
19
+ optional: never;
20
+ defaulted: never;
21
+ extra: Record<string, unknown>;
22
+ }>>>;
23
+ }, {
24
+ optional: never;
25
+ defaulted: never;
26
+ extra: Record<string, unknown>;
27
+ }>>>>;
28
+ }, {
29
+ optional: never;
30
+ defaulted: never;
31
+ extra: Record<string, unknown>;
32
+ }>;
33
+ products: z.ZodArray<z.ZodInterface<{
34
+ key: z.ZodDefault<z.ZodString>;
35
+ }, {
36
+ optional: never;
37
+ defaulted: never;
38
+ extra: Record<string, unknown>;
39
+ }>>;
40
+ }, {
41
+ optional: never;
42
+ defaulted: never;
43
+ extra: {};
44
+ }>>;
45
+ export declare const AnalyticsMutationSearchProductClickEventSchema: z.MergeInterfaces<z.ZodInterface<{
46
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
47
+ }, {
48
+ optional: never;
49
+ defaulted: never;
50
+ extra: Record<string, unknown>;
51
+ }>, z.ZodInterface<{
52
+ mutation: z.ZodLiteral<"product-search-click">;
53
+ search: z.ZodInterface<{
54
+ term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
55
+ page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
56
+ pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
57
+ facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodInterface<{
58
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
59
+ facet: z.ZodNonOptional<z.ZodDefault<z.ZodInterface<{
60
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
61
+ }, {
62
+ optional: never;
63
+ defaulted: never;
64
+ extra: Record<string, unknown>;
65
+ }>>>;
66
+ }, {
67
+ optional: never;
68
+ defaulted: never;
69
+ extra: Record<string, unknown>;
70
+ }>>>>;
71
+ }, {
72
+ optional: never;
73
+ defaulted: never;
74
+ extra: Record<string, unknown>;
75
+ }>;
76
+ product: z.ZodInterface<{
77
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
78
+ }, {
79
+ optional: never;
80
+ defaulted: never;
81
+ extra: Record<string, unknown>;
82
+ }>;
83
+ position: z.ZodNumber;
84
+ }, {
85
+ optional: never;
86
+ defaulted: never;
87
+ extra: {};
88
+ }>>;
89
+ export declare const AnalyticsMutationSchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
90
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
91
+ }, {
92
+ optional: never;
93
+ defaulted: never;
94
+ extra: Record<string, unknown>;
95
+ }>, z.ZodInterface<{
96
+ mutation: z.ZodLiteral<"search">;
97
+ search: z.ZodInterface<{
98
+ term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
99
+ page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
100
+ pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
101
+ facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodInterface<{
102
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
103
+ facet: z.ZodNonOptional<z.ZodDefault<z.ZodInterface<{
104
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
105
+ }, {
106
+ optional: never;
107
+ defaulted: never;
108
+ extra: Record<string, unknown>;
109
+ }>>>;
110
+ }, {
111
+ optional: never;
112
+ defaulted: never;
113
+ extra: Record<string, unknown>;
114
+ }>>>>;
115
+ }, {
116
+ optional: never;
117
+ defaulted: never;
118
+ extra: Record<string, unknown>;
119
+ }>;
120
+ products: z.ZodArray<z.ZodInterface<{
121
+ key: z.ZodDefault<z.ZodString>;
122
+ }, {
123
+ optional: never;
124
+ defaulted: never;
125
+ extra: Record<string, unknown>;
126
+ }>>;
127
+ }, {
128
+ optional: never;
129
+ defaulted: never;
130
+ extra: {};
131
+ }>>, z.MergeInterfaces<z.ZodInterface<{
132
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
133
+ }, {
134
+ optional: never;
135
+ defaulted: never;
136
+ extra: Record<string, unknown>;
137
+ }>, z.ZodInterface<{
138
+ mutation: z.ZodLiteral<"product-search-click">;
139
+ search: z.ZodInterface<{
140
+ term: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
141
+ page: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
142
+ pageSize: z.ZodNonOptional<z.ZodDefault<z.ZodNumber>>;
143
+ facets: z.ZodNonOptional<z.ZodDefault<z.ZodArray<z.ZodInterface<{
144
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
145
+ facet: z.ZodNonOptional<z.ZodDefault<z.ZodInterface<{
146
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
147
+ }, {
148
+ optional: never;
149
+ defaulted: never;
150
+ extra: Record<string, unknown>;
151
+ }>>>;
152
+ }, {
153
+ optional: never;
154
+ defaulted: never;
155
+ extra: Record<string, unknown>;
156
+ }>>>>;
157
+ }, {
158
+ optional: never;
159
+ defaulted: never;
160
+ extra: Record<string, unknown>;
161
+ }>;
162
+ product: z.ZodInterface<{
163
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
164
+ }, {
165
+ optional: never;
166
+ defaulted: never;
167
+ extra: Record<string, unknown>;
168
+ }>;
169
+ position: z.ZodNumber;
170
+ }, {
171
+ optional: never;
172
+ defaulted: never;
173
+ extra: {};
174
+ }>>]>;
175
+ export type AnalyticsMutation = z.infer<typeof AnalyticsMutationSchema>;
176
+ export type AnalyticsMutationSearchEvent = z.infer<typeof AnalyticsMutationSearchEventSchema>;
177
+ export type AnalyticsMutationSearchProductClickEvent = z.infer<typeof AnalyticsMutationSearchProductClickEventSchema>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const BaseMutationSchema: z.ZodInterface<{
3
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>;
9
+ export type BaseMutation = z.infer<typeof BaseMutationSchema>;
@@ -0,0 +1,169 @@
1
+ import { z } from 'zod';
2
+ export declare const CartMutationItemAddSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ mutation: z.ZodLiteral<"add">;
10
+ cart: z.ZodInterface<{
11
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
12
+ }, {
13
+ optional: never;
14
+ defaulted: never;
15
+ extra: Record<string, unknown>;
16
+ }>;
17
+ product: z.ZodInterface<{
18
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
19
+ }, {
20
+ optional: never;
21
+ defaulted: never;
22
+ extra: Record<string, unknown>;
23
+ }>;
24
+ quantity: z.ZodNumber;
25
+ }, {
26
+ optional: never;
27
+ defaulted: never;
28
+ extra: {};
29
+ }>>;
30
+ export declare const CartMutationItemRemoveSchema: z.MergeInterfaces<z.ZodInterface<{
31
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
32
+ }, {
33
+ optional: never;
34
+ defaulted: never;
35
+ extra: Record<string, unknown>;
36
+ }>, z.ZodInterface<{
37
+ mutation: z.ZodLiteral<"remove">;
38
+ cart: z.ZodInterface<{
39
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
40
+ }, {
41
+ optional: never;
42
+ defaulted: never;
43
+ extra: Record<string, unknown>;
44
+ }>;
45
+ item: z.ZodInterface<{
46
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
47
+ }, {
48
+ optional: never;
49
+ defaulted: never;
50
+ extra: Record<string, unknown>;
51
+ }>;
52
+ }, {
53
+ optional: never;
54
+ defaulted: never;
55
+ extra: {};
56
+ }>>;
57
+ export declare const CartMutationItemQuantityChangeSchema: z.MergeInterfaces<z.ZodInterface<{
58
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
59
+ }, {
60
+ optional: never;
61
+ defaulted: never;
62
+ extra: Record<string, unknown>;
63
+ }>, z.ZodInterface<{
64
+ mutation: z.ZodLiteral<"adjustQuantity">;
65
+ cart: z.ZodInterface<{
66
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
67
+ }, {
68
+ optional: never;
69
+ defaulted: never;
70
+ extra: Record<string, unknown>;
71
+ }>;
72
+ item: z.ZodInterface<{
73
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
74
+ }, {
75
+ optional: never;
76
+ defaulted: never;
77
+ extra: Record<string, unknown>;
78
+ }>;
79
+ quantity: z.ZodNumber;
80
+ }, {
81
+ optional: never;
82
+ defaulted: never;
83
+ extra: {};
84
+ }>>;
85
+ export declare const CartMutationSchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
86
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
87
+ }, {
88
+ optional: never;
89
+ defaulted: never;
90
+ extra: Record<string, unknown>;
91
+ }>, z.ZodInterface<{
92
+ mutation: z.ZodLiteral<"add">;
93
+ cart: z.ZodInterface<{
94
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
95
+ }, {
96
+ optional: never;
97
+ defaulted: never;
98
+ extra: Record<string, unknown>;
99
+ }>;
100
+ product: z.ZodInterface<{
101
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
102
+ }, {
103
+ optional: never;
104
+ defaulted: never;
105
+ extra: Record<string, unknown>;
106
+ }>;
107
+ quantity: z.ZodNumber;
108
+ }, {
109
+ optional: never;
110
+ defaulted: never;
111
+ extra: {};
112
+ }>>, z.MergeInterfaces<z.ZodInterface<{
113
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
114
+ }, {
115
+ optional: never;
116
+ defaulted: never;
117
+ extra: Record<string, unknown>;
118
+ }>, z.ZodInterface<{
119
+ mutation: z.ZodLiteral<"remove">;
120
+ cart: z.ZodInterface<{
121
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
122
+ }, {
123
+ optional: never;
124
+ defaulted: never;
125
+ extra: Record<string, unknown>;
126
+ }>;
127
+ item: z.ZodInterface<{
128
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
129
+ }, {
130
+ optional: never;
131
+ defaulted: never;
132
+ extra: Record<string, unknown>;
133
+ }>;
134
+ }, {
135
+ optional: never;
136
+ defaulted: never;
137
+ extra: {};
138
+ }>>, z.MergeInterfaces<z.ZodInterface<{
139
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
140
+ }, {
141
+ optional: never;
142
+ defaulted: never;
143
+ extra: Record<string, unknown>;
144
+ }>, z.ZodInterface<{
145
+ mutation: z.ZodLiteral<"adjustQuantity">;
146
+ cart: z.ZodInterface<{
147
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
148
+ }, {
149
+ optional: never;
150
+ defaulted: never;
151
+ extra: Record<string, unknown>;
152
+ }>;
153
+ item: z.ZodInterface<{
154
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
155
+ }, {
156
+ optional: never;
157
+ defaulted: never;
158
+ extra: Record<string, unknown>;
159
+ }>;
160
+ quantity: z.ZodNumber;
161
+ }, {
162
+ optional: never;
163
+ defaulted: never;
164
+ extra: {};
165
+ }>>]>;
166
+ export type CartMutation = z.infer<typeof CartMutationSchema>;
167
+ export type CartMutationItemAdd = z.infer<typeof CartMutationItemAddSchema>;
168
+ export type CartMutationItemRemove = z.infer<typeof CartMutationItemRemoveSchema>;
169
+ export type CartMutationItemQuantityChange = z.infer<typeof CartMutationItemQuantityChangeSchema>;
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ export declare const IdentityMutationLoginSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ mutation: z.ZodLiteral<"login">;
10
+ username: z.ZodString;
11
+ password: z.ZodString;
12
+ }, {
13
+ optional: never;
14
+ defaulted: never;
15
+ extra: {};
16
+ }>>;
17
+ export declare const IdentityMutationLogoutSchema: z.MergeInterfaces<z.ZodInterface<{
18
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
19
+ }, {
20
+ optional: never;
21
+ defaulted: never;
22
+ extra: Record<string, unknown>;
23
+ }>, z.ZodInterface<{
24
+ mutation: z.ZodLiteral<"logout">;
25
+ }, {
26
+ optional: never;
27
+ defaulted: never;
28
+ extra: {};
29
+ }>>;
30
+ export declare const IdentityMutationSchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
31
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
32
+ }, {
33
+ optional: never;
34
+ defaulted: never;
35
+ extra: Record<string, unknown>;
36
+ }>, z.ZodInterface<{
37
+ mutation: z.ZodLiteral<"login">;
38
+ username: z.ZodString;
39
+ password: z.ZodString;
40
+ }, {
41
+ optional: never;
42
+ defaulted: never;
43
+ extra: {};
44
+ }>>, z.MergeInterfaces<z.ZodInterface<{
45
+ mutation: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
46
+ }, {
47
+ optional: never;
48
+ defaulted: never;
49
+ extra: Record<string, unknown>;
50
+ }>, z.ZodInterface<{
51
+ mutation: z.ZodLiteral<"logout">;
52
+ }, {
53
+ optional: never;
54
+ defaulted: never;
55
+ extra: {};
56
+ }>>]>;
57
+ export type IdentityMutation = z.infer<typeof IdentityMutationSchema>;
58
+ export type IdentityMutationLogin = z.infer<typeof IdentityMutationLoginSchema>;
59
+ export type IdentityMutationLogout = z.infer<typeof IdentityMutationLogoutSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const InventoryMutationSchema: z.ZodUnion<readonly []>;
3
+ export type InventoryMutation = z.infer<typeof InventoryMutationSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const PriceMutationSchema: z.ZodUnion<readonly []>;
3
+ export type PriceMutation = z.infer<typeof PriceMutationSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const ProductMutationSchema: z.ZodUnion<readonly []>;
3
+ export type ProductMutation = z.infer<typeof ProductMutationSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const SearchMutationSchema: z.ZodUnion<readonly []>;
3
+ export type SearchMutation = z.infer<typeof SearchMutationSchema>;
@@ -0,0 +1,3 @@
1
+ import { z } from 'zod';
2
+ export declare const AnalyticsQuerySchema: z.ZodUnion<readonly []>;
3
+ export type AnalyticsQuery = z.infer<typeof AnalyticsQuerySchema>;
@@ -0,0 +1,9 @@
1
+ import { z } from 'zod';
2
+ export declare const BaseQuerySchema: z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>;
9
+ export type BaseQuery = z.infer<typeof BaseQuerySchema>;
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare const CartQueryByIdSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ query: z.ZodLiteral<"id">;
10
+ cart: z.ZodInterface<{
11
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
12
+ }, {
13
+ optional: never;
14
+ defaulted: never;
15
+ extra: Record<string, unknown>;
16
+ }>;
17
+ }, {
18
+ optional: never;
19
+ defaulted: never;
20
+ extra: {};
21
+ }>>;
22
+ export declare const CartQuerySchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
23
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
24
+ }, {
25
+ optional: never;
26
+ defaulted: never;
27
+ extra: Record<string, unknown>;
28
+ }>, z.ZodInterface<{
29
+ query: z.ZodLiteral<"id">;
30
+ cart: z.ZodInterface<{
31
+ key: z.ZodNonOptional<z.ZodDefault<z.ZodString>>;
32
+ }, {
33
+ optional: never;
34
+ defaulted: never;
35
+ extra: Record<string, unknown>;
36
+ }>;
37
+ }, {
38
+ optional: never;
39
+ defaulted: never;
40
+ extra: {};
41
+ }>>]>;
42
+ export type CartQueryById = z.infer<typeof CartQueryByIdSchema>;
43
+ export type CartQuery = z.infer<typeof CartQuerySchema>;
@@ -0,0 +1,29 @@
1
+ import { z } from 'zod';
2
+ export declare const IdentityQuerySelfSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ query: z.ZodLiteral<"self">;
10
+ }, {
11
+ optional: never;
12
+ defaulted: never;
13
+ extra: {};
14
+ }>>;
15
+ export declare const IdentityQuerySchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
16
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
17
+ }, {
18
+ optional: never;
19
+ defaulted: never;
20
+ extra: Record<string, unknown>;
21
+ }>, z.ZodInterface<{
22
+ query: z.ZodLiteral<"self">;
23
+ }, {
24
+ optional: never;
25
+ defaulted: never;
26
+ extra: {};
27
+ }>>]>;
28
+ export type IdentityQuery = z.infer<typeof IdentityQuerySchema>;
29
+ export type IdentityQuerySelf = z.infer<typeof IdentityQuerySelfSchema>;
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ export declare const InventoryQuerySchema: z.MergeInterfaces<z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ query: z.ZodLiteral<"sku">;
10
+ sku: z.ZodString;
11
+ }, {
12
+ optional: never;
13
+ defaulted: never;
14
+ extra: {};
15
+ }>>;
16
+ export type InventoryQuery = z.infer<typeof InventoryQuerySchema>;
@@ -0,0 +1,43 @@
1
+ import { z } from 'zod';
2
+ export declare const PriceQueryBySkuSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ query: z.ZodLiteral<"sku">;
10
+ sku: z.ZodInterface<{
11
+ key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
12
+ }, {
13
+ optional: never;
14
+ defaulted: never;
15
+ extra: Record<string, unknown>;
16
+ }>;
17
+ }, {
18
+ optional: never;
19
+ defaulted: never;
20
+ extra: {};
21
+ }>>;
22
+ export declare const PriceQuerySchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
23
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
24
+ }, {
25
+ optional: never;
26
+ defaulted: never;
27
+ extra: Record<string, unknown>;
28
+ }>, z.ZodInterface<{
29
+ query: z.ZodLiteral<"sku">;
30
+ sku: z.ZodInterface<{
31
+ key: z.ZodNonOptional<z.ZodNonOptional<z.ZodDefault<z.ZodString>>>;
32
+ }, {
33
+ optional: never;
34
+ defaulted: never;
35
+ extra: Record<string, unknown>;
36
+ }>;
37
+ }, {
38
+ optional: never;
39
+ defaulted: never;
40
+ extra: {};
41
+ }>>]>;
42
+ export type PriceQueryBySku = z.infer<typeof PriceQueryBySkuSchema>;
43
+ export type PriceQuery = z.infer<typeof PriceQuerySchema>;
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ export declare const ProductQueryBySlugSchema: z.MergeInterfaces<z.ZodInterface<{
3
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
4
+ }, {
5
+ optional: never;
6
+ defaulted: never;
7
+ extra: Record<string, unknown>;
8
+ }>, z.ZodInterface<{
9
+ query: z.ZodLiteral<"slug">;
10
+ slug: z.ZodString;
11
+ }, {
12
+ optional: never;
13
+ defaulted: never;
14
+ extra: {};
15
+ }>>;
16
+ export declare const ProductQueryByIdSchema: z.MergeInterfaces<z.ZodInterface<{
17
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
18
+ }, {
19
+ optional: never;
20
+ defaulted: never;
21
+ extra: Record<string, unknown>;
22
+ }>, z.ZodInterface<{
23
+ query: z.ZodLiteral<"id">;
24
+ id: z.ZodString;
25
+ }, {
26
+ optional: never;
27
+ defaulted: never;
28
+ extra: {};
29
+ }>>;
30
+ export declare const ProductQuerySchema: z.ZodUnion<readonly [z.MergeInterfaces<z.ZodInterface<{
31
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
32
+ }, {
33
+ optional: never;
34
+ defaulted: never;
35
+ extra: Record<string, unknown>;
36
+ }>, z.ZodInterface<{
37
+ query: z.ZodLiteral<"slug">;
38
+ slug: z.ZodString;
39
+ }, {
40
+ optional: never;
41
+ defaulted: never;
42
+ extra: {};
43
+ }>>, z.MergeInterfaces<z.ZodInterface<{
44
+ query: z.core.$constructor<z.ZodLiteral<z.core.util.Primitive>, z.core.$ZodLiteralDef>;
45
+ }, {
46
+ optional: never;
47
+ defaulted: never;
48
+ extra: Record<string, unknown>;
49
+ }>, z.ZodInterface<{
50
+ query: z.ZodLiteral<"id">;
51
+ id: z.ZodString;
52
+ }, {
53
+ optional: never;
54
+ defaulted: never;
55
+ extra: {};
56
+ }>>]>;
57
+ export type ProductQueryBySlug = z.infer<typeof ProductQueryBySlugSchema>;
58
+ export type ProductQueryById = z.infer<typeof ProductQueryByIdSchema>;
59
+ export type ProductQuery = z.infer<typeof ProductQuerySchema>;