@unchainedshop/api 4.3.5 → 4.3.6

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 (192) hide show
  1. package/lib/chat/generateImageHandler.js +1 -1
  2. package/lib/chat/generateImageHandler.js.map +1 -1
  3. package/lib/chat/utils.js +1 -1
  4. package/lib/chat/utils.js.map +1 -1
  5. package/lib/express/chatHandler.d.ts.map +1 -1
  6. package/lib/express/chatHandler.js +7 -3
  7. package/lib/express/chatHandler.js.map +1 -1
  8. package/lib/express/createMCPMiddleware.d.ts +1 -1
  9. package/lib/express/createMCPMiddleware.d.ts.map +1 -1
  10. package/lib/express/createMCPMiddleware.js +21 -4
  11. package/lib/express/createMCPMiddleware.js.map +1 -1
  12. package/lib/fastify/chatHandler.d.ts.map +1 -1
  13. package/lib/fastify/chatHandler.js +7 -3
  14. package/lib/fastify/chatHandler.js.map +1 -1
  15. package/lib/fastify/index.d.ts.map +1 -1
  16. package/lib/fastify/index.js +1 -4
  17. package/lib/fastify/index.js.map +1 -1
  18. package/lib/fastify/mcpHandler.d.ts +1 -1
  19. package/lib/fastify/mcpHandler.d.ts.map +1 -1
  20. package/lib/fastify/mcpHandler.js +20 -5
  21. package/lib/fastify/mcpHandler.js.map +1 -1
  22. package/lib/mcp/index.d.ts +2 -2
  23. package/lib/mcp/index.d.ts.map +1 -1
  24. package/lib/mcp/index.js +1 -6
  25. package/lib/mcp/index.js.map +1 -1
  26. package/lib/mcp/resources/localization.d.ts +2 -2
  27. package/lib/mcp/resources/localization.d.ts.map +1 -1
  28. package/lib/mcp/tools/assortment/index.d.ts +2 -2
  29. package/lib/mcp/tools/assortment/index.d.ts.map +1 -1
  30. package/lib/mcp/tools/assortment/schemas.d.ts +167 -724
  31. package/lib/mcp/tools/assortment/schemas.d.ts.map +1 -1
  32. package/lib/mcp/tools/assortment/schemas.js +1 -1
  33. package/lib/mcp/tools/assortment/schemas.js.map +1 -1
  34. package/lib/mcp/tools/filter/index.d.ts +2 -2
  35. package/lib/mcp/tools/filter/index.d.ts.map +1 -1
  36. package/lib/mcp/tools/filter/schemas.d.ts +100 -413
  37. package/lib/mcp/tools/filter/schemas.d.ts.map +1 -1
  38. package/lib/mcp/tools/localization/index.d.ts +2 -2
  39. package/lib/mcp/tools/localization/index.d.ts.map +1 -1
  40. package/lib/mcp/tools/localization/schemas.d.ts +85 -224
  41. package/lib/mcp/tools/localization/schemas.d.ts.map +1 -1
  42. package/lib/mcp/tools/localization/schemas.js +3 -3
  43. package/lib/mcp/tools/localization/schemas.js.map +1 -1
  44. package/lib/mcp/tools/order/index.d.ts +1 -1
  45. package/lib/mcp/tools/order/index.d.ts.map +1 -1
  46. package/lib/mcp/tools/order/schemas.d.ts +160 -290
  47. package/lib/mcp/tools/order/schemas.d.ts.map +1 -1
  48. package/lib/mcp/tools/order/schemas.js +16 -10
  49. package/lib/mcp/tools/order/schemas.js.map +1 -1
  50. package/lib/mcp/tools/product/index.d.ts +1 -1
  51. package/lib/mcp/tools/product/index.d.ts.map +1 -1
  52. package/lib/mcp/tools/product/schemas.d.ts +373 -2153
  53. package/lib/mcp/tools/product/schemas.d.ts.map +1 -1
  54. package/lib/mcp/tools/product/schemas.js +5 -2
  55. package/lib/mcp/tools/product/schemas.js.map +1 -1
  56. package/lib/mcp/tools/provider/index.d.ts +1 -1
  57. package/lib/mcp/tools/provider/index.d.ts.map +1 -1
  58. package/lib/mcp/tools/provider/schemas.d.ts +193 -194
  59. package/lib/mcp/tools/provider/schemas.d.ts.map +1 -1
  60. package/lib/mcp/tools/provider/schemas.js +4 -4
  61. package/lib/mcp/tools/provider/schemas.js.map +1 -1
  62. package/lib/mcp/tools/quotation/index.d.ts +1 -1
  63. package/lib/mcp/tools/quotation/index.d.ts.map +1 -1
  64. package/lib/mcp/tools/quotation/schemas.d.ts +78 -172
  65. package/lib/mcp/tools/quotation/schemas.d.ts.map +1 -1
  66. package/lib/mcp/tools/quotation/schemas.js +4 -4
  67. package/lib/mcp/tools/quotation/schemas.js.map +1 -1
  68. package/lib/mcp/tools/system/index.d.ts +1 -1
  69. package/lib/mcp/tools/system/index.d.ts.map +1 -1
  70. package/lib/mcp/tools/system/schemas.d.ts +96 -346
  71. package/lib/mcp/tools/system/schemas.d.ts.map +1 -1
  72. package/lib/mcp/tools/users/index.d.ts +1 -1
  73. package/lib/mcp/tools/users/index.d.ts.map +1 -1
  74. package/lib/mcp/tools/users/schemas.d.ts +125 -789
  75. package/lib/mcp/tools/users/schemas.d.ts.map +1 -1
  76. package/lib/mcp/utils/sharedSchemas.d.ts +21 -29
  77. package/lib/mcp/utils/sharedSchemas.d.ts.map +1 -1
  78. package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.map +1 -1
  79. package/package.json +6 -6
  80. package/src/chat/generateImageHandler.ts +1 -1
  81. package/src/chat/utils.ts +1 -1
  82. package/src/express/chatHandler.ts +12 -3
  83. package/src/express/createMCPMiddleware.ts +36 -8
  84. package/src/fastify/chatHandler.ts +10 -3
  85. package/src/fastify/index.ts +2 -4
  86. package/src/fastify/mcpHandler.ts +33 -9
  87. package/src/mcp/index.ts +3 -9
  88. package/src/mcp/resources/localization.ts +2 -2
  89. package/src/mcp/tools/assortment/index.ts +2 -2
  90. package/src/mcp/tools/assortment/schemas.ts +1 -1
  91. package/src/mcp/tools/filter/index.ts +2 -2
  92. package/src/mcp/tools/localization/index.ts +2 -2
  93. package/src/mcp/tools/localization/schemas.ts +4 -3
  94. package/src/mcp/tools/order/index.ts +1 -1
  95. package/src/mcp/tools/order/schemas.ts +18 -10
  96. package/src/mcp/tools/product/index.ts +1 -1
  97. package/src/mcp/tools/product/schemas.ts +5 -2
  98. package/src/mcp/tools/provider/index.ts +1 -1
  99. package/src/mcp/tools/provider/schemas.ts +5 -4
  100. package/src/mcp/tools/quotation/index.ts +1 -1
  101. package/src/mcp/tools/quotation/schemas.ts +4 -4
  102. package/src/mcp/tools/system/index.ts +1 -1
  103. package/src/mcp/tools/users/index.ts +1 -1
  104. package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +3 -3
  105. package/lib/express/createApolloMiddleware.d.ts +0 -4
  106. package/lib/express/createApolloMiddleware.d.ts.map +0 -1
  107. package/lib/express/createApolloMiddleware.js +0 -36
  108. package/lib/express/createApolloMiddleware.js.map +0 -1
  109. package/lib/express/createSingleSignOnMiddleware.d.ts +0 -5
  110. package/lib/express/createSingleSignOnMiddleware.d.ts.map +0 -1
  111. package/lib/express/createSingleSignOnMiddleware.js +0 -71
  112. package/lib/express/createSingleSignOnMiddleware.js.map +0 -1
  113. package/lib/hashPassword.d.ts +0 -2
  114. package/lib/hashPassword.d.ts.map +0 -1
  115. package/lib/hashPassword.js +0 -5
  116. package/lib/hashPassword.js.map +0 -1
  117. package/lib/loaders/productLoaderBySKU.d.ts +0 -10
  118. package/lib/loaders/productLoaderBySKU.d.ts.map +0 -1
  119. package/lib/loaders/productLoaderBySKU.js +0 -16
  120. package/lib/loaders/productLoaderBySKU.js.map +0 -1
  121. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts +0 -3
  122. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.d.ts.map +0 -1
  123. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js +0 -6
  124. package/lib/resolvers/mutations/accounts/buildSecretTOTPAuthURL.js.map +0 -1
  125. package/lib/resolvers/mutations/accounts/disableTOTP.d.ts +0 -6
  126. package/lib/resolvers/mutations/accounts/disableTOTP.d.ts.map +0 -1
  127. package/lib/resolvers/mutations/accounts/disableTOTP.js +0 -27
  128. package/lib/resolvers/mutations/accounts/disableTOTP.js.map +0 -1
  129. package/lib/resolvers/mutations/accounts/enableTOTP.d.ts +0 -6
  130. package/lib/resolvers/mutations/accounts/enableTOTP.d.ts.map +0 -1
  131. package/lib/resolvers/mutations/accounts/enableTOTP.js +0 -20
  132. package/lib/resolvers/mutations/accounts/enableTOTP.js.map +0 -1
  133. package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts +0 -7
  134. package/lib/resolvers/mutations/accounts/linkOAuthAccount.d.ts.map +0 -1
  135. package/lib/resolvers/mutations/accounts/linkOAuthAccount.js +0 -30
  136. package/lib/resolvers/mutations/accounts/linkOAuthAccount.js.map +0 -1
  137. package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts +0 -8
  138. package/lib/resolvers/mutations/accounts/loginWithOAuth.d.ts.map +0 -1
  139. package/lib/resolvers/mutations/accounts/loginWithOAuth.js +0 -25
  140. package/lib/resolvers/mutations/accounts/loginWithOAuth.js.map +0 -1
  141. package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts +0 -5
  142. package/lib/resolvers/mutations/accounts/logoutAllSessions.d.ts.map +0 -1
  143. package/lib/resolvers/mutations/accounts/logoutAllSessions.js +0 -20
  144. package/lib/resolvers/mutations/accounts/logoutAllSessions.js.map +0 -1
  145. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts +0 -6
  146. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.d.ts.map +0 -1
  147. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js +0 -13
  148. package/lib/resolvers/mutations/accounts/unlinkOAuthAccount.js.map +0 -1
  149. package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts +0 -6
  150. package/lib/resolvers/mutations/assortments/addAssortmentMedia.d.ts.map +0 -1
  151. package/lib/resolvers/mutations/assortments/addAssortmentMedia.js +0 -18
  152. package/lib/resolvers/mutations/assortments/addAssortmentMedia.js.map +0 -1
  153. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +0 -6
  154. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +0 -1
  155. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +0 -26
  156. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +0 -1
  157. package/lib/resolvers/mutations/products/addProductMedia.d.ts +0 -6
  158. package/lib/resolvers/mutations/products/addProductMedia.d.ts.map +0 -1
  159. package/lib/resolvers/mutations/products/addProductMedia.js +0 -18
  160. package/lib/resolvers/mutations/products/addProductMedia.js.map +0 -1
  161. package/lib/resolvers/mutations/users/updateUserAvatar.d.ts +0 -6
  162. package/lib/resolvers/mutations/users/updateUserAvatar.d.ts.map +0 -1
  163. package/lib/resolvers/mutations/users/updateUserAvatar.js +0 -22
  164. package/lib/resolvers/mutations/users/updateUserAvatar.js.map +0 -1
  165. package/lib/resolvers/mutations/utils/getOrderCart.d.ts +0 -7
  166. package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +0 -1
  167. package/lib/resolvers/mutations/utils/getOrderCart.js +0 -13
  168. package/lib/resolvers/mutations/utils/getOrderCart.js.map +0 -1
  169. package/lib/resolvers/type/color-types.d.ts +0 -18
  170. package/lib/resolvers/type/color-types.d.ts.map +0 -1
  171. package/lib/resolvers/type/color-types.js +0 -31
  172. package/lib/resolvers/type/color-types.js.map +0 -1
  173. package/lib/resolvers/type/dispatch-types.d.ts +0 -15
  174. package/lib/resolvers/type/dispatch-types.d.ts.map +0 -1
  175. package/lib/resolvers/type/dispatch-types.js +0 -16
  176. package/lib/resolvers/type/dispatch-types.js.map +0 -1
  177. package/lib/resolvers/type/oauth-account.d.ts +0 -6
  178. package/lib/resolvers/type/oauth-account.d.ts.map +0 -1
  179. package/lib/resolvers/type/oauth-account.js +0 -7
  180. package/lib/resolvers/type/oauth-account.js.map +0 -1
  181. package/lib/resolvers/type/oauth-provider.d.ts +0 -6
  182. package/lib/resolvers/type/oauth-provider.d.ts.map +0 -1
  183. package/lib/resolvers/type/oauth-provider.js +0 -6
  184. package/lib/resolvers/type/oauth-provider.js.map +0 -1
  185. package/lib/resolvers/type/stock-types.d.ts +0 -14
  186. package/lib/resolvers/type/stock-types.d.ts.map +0 -1
  187. package/lib/resolvers/type/stock-types.js +0 -15
  188. package/lib/resolvers/type/stock-types.js.map +0 -1
  189. package/lib/user-context.d.ts +0 -7
  190. package/lib/user-context.d.ts.map +0 -1
  191. package/lib/user-context.js +0 -76
  192. package/lib/user-context.js.map +0 -1
@@ -4,684 +4,269 @@ export declare const AssortmentTextInputSchema: z.ZodObject<{
4
4
  locale: z.ZodString;
5
5
  title: z.ZodString;
6
6
  subtitle: z.ZodOptional<z.ZodString>;
7
- } & {
8
7
  slug: z.ZodOptional<z.ZodString>;
9
8
  description: z.ZodOptional<z.ZodString>;
10
- }, "strip", z.ZodTypeAny, {
11
- locale: string;
12
- title: string;
13
- description?: string | undefined;
14
- subtitle?: string | undefined;
15
- slug?: string | undefined;
16
- }, {
17
- locale: string;
18
- title: string;
19
- description?: string | undefined;
20
- subtitle?: string | undefined;
21
- slug?: string | undefined;
22
- }>;
9
+ }, z.core.$strip>;
23
10
  export declare const AssortmentMediaTextInputSchema: z.ZodObject<{
24
11
  locale: z.ZodString;
25
12
  title: z.ZodString;
26
13
  subtitle: z.ZodOptional<z.ZodString>;
27
- }, "strip", z.ZodTypeAny, {
28
- locale: string;
29
- title: string;
30
- subtitle?: string | undefined;
31
- }, {
32
- locale: string;
33
- title: string;
34
- subtitle?: string | undefined;
35
- }>;
14
+ }, z.core.$strip>;
36
15
  export declare const AssortmentSchema: z.ZodObject<{
37
16
  isRoot: z.ZodOptional<z.ZodBoolean>;
38
17
  isActive: z.ZodOptional<z.ZodBoolean>;
39
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
40
19
  sequence: z.ZodOptional<z.ZodNumber>;
41
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
42
- }, "strip", z.ZodTypeAny, {
43
- isActive?: boolean | undefined;
44
- isRoot?: boolean | undefined;
45
- meta?: Record<string, unknown> | undefined;
46
- sequence?: number | undefined;
47
- tags?: string[] | undefined;
48
- }, {
49
- isActive?: boolean | undefined;
50
- isRoot?: boolean | undefined;
51
- meta?: Record<string, unknown> | undefined;
52
- sequence?: number | undefined;
53
- tags?: string[] | undefined;
54
- }>;
20
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
21
+ }, z.core.$strip>;
55
22
  export declare const actionValidators: {
56
23
  readonly CREATE: z.ZodObject<{
57
24
  assortment: z.ZodObject<{
58
25
  isRoot: z.ZodOptional<z.ZodBoolean>;
59
26
  isActive: z.ZodOptional<z.ZodBoolean>;
60
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
61
28
  sequence: z.ZodOptional<z.ZodNumber>;
62
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
63
- }, "strip", z.ZodTypeAny, {
64
- isActive?: boolean | undefined;
65
- isRoot?: boolean | undefined;
66
- meta?: Record<string, unknown> | undefined;
67
- sequence?: number | undefined;
68
- tags?: string[] | undefined;
69
- }, {
70
- isActive?: boolean | undefined;
71
- isRoot?: boolean | undefined;
72
- meta?: Record<string, unknown> | undefined;
73
- sequence?: number | undefined;
74
- tags?: string[] | undefined;
75
- }>;
29
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
30
+ }, z.core.$strip>;
76
31
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
77
32
  locale: z.ZodString;
78
33
  title: z.ZodString;
79
34
  subtitle: z.ZodOptional<z.ZodString>;
80
- } & {
81
35
  slug: z.ZodOptional<z.ZodString>;
82
36
  description: z.ZodOptional<z.ZodString>;
83
- }, "strip", z.ZodTypeAny, {
84
- locale: string;
85
- title: string;
86
- description?: string | undefined;
87
- subtitle?: string | undefined;
88
- slug?: string | undefined;
89
- }, {
90
- locale: string;
91
- title: string;
92
- description?: string | undefined;
93
- subtitle?: string | undefined;
94
- slug?: string | undefined;
95
- }>, "many">>;
96
- }, "strip", z.ZodTypeAny, {
97
- assortment: {
98
- isActive?: boolean | undefined;
99
- isRoot?: boolean | undefined;
100
- meta?: Record<string, unknown> | undefined;
101
- sequence?: number | undefined;
102
- tags?: string[] | undefined;
103
- };
104
- texts?: {
105
- locale: string;
106
- title: string;
107
- description?: string | undefined;
108
- subtitle?: string | undefined;
109
- slug?: string | undefined;
110
- }[] | undefined;
111
- }, {
112
- assortment: {
113
- isActive?: boolean | undefined;
114
- isRoot?: boolean | undefined;
115
- meta?: Record<string, unknown> | undefined;
116
- sequence?: number | undefined;
117
- tags?: string[] | undefined;
118
- };
119
- texts?: {
120
- locale: string;
121
- title: string;
122
- description?: string | undefined;
123
- subtitle?: string | undefined;
124
- slug?: string | undefined;
125
- }[] | undefined;
126
- }>;
37
+ }, z.core.$strip>>>;
38
+ }, z.core.$strip>;
127
39
  readonly UPDATE: z.ZodObject<{
128
40
  assortmentId: z.ZodString;
129
41
  assortment: z.ZodObject<{
130
42
  isRoot: z.ZodOptional<z.ZodBoolean>;
131
43
  isActive: z.ZodOptional<z.ZodBoolean>;
132
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
133
45
  sequence: z.ZodOptional<z.ZodNumber>;
134
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
135
- }, "strip", z.ZodTypeAny, {
136
- isActive?: boolean | undefined;
137
- isRoot?: boolean | undefined;
138
- meta?: Record<string, unknown> | undefined;
139
- sequence?: number | undefined;
140
- tags?: string[] | undefined;
141
- }, {
142
- isActive?: boolean | undefined;
143
- isRoot?: boolean | undefined;
144
- meta?: Record<string, unknown> | undefined;
145
- sequence?: number | undefined;
146
- tags?: string[] | undefined;
147
- }>;
148
- }, "strip", z.ZodTypeAny, {
149
- assortmentId: string;
150
- assortment: {
151
- isActive?: boolean | undefined;
152
- isRoot?: boolean | undefined;
153
- meta?: Record<string, unknown> | undefined;
154
- sequence?: number | undefined;
155
- tags?: string[] | undefined;
156
- };
157
- }, {
158
- assortmentId: string;
159
- assortment: {
160
- isActive?: boolean | undefined;
161
- isRoot?: boolean | undefined;
162
- meta?: Record<string, unknown> | undefined;
163
- sequence?: number | undefined;
164
- tags?: string[] | undefined;
165
- };
166
- }>;
46
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
47
+ }, z.core.$strip>;
48
+ }, z.core.$strip>;
167
49
  readonly REMOVE: z.ZodObject<{
168
50
  assortmentId: z.ZodString;
169
- }, "strip", z.ZodTypeAny, {
170
- assortmentId: string;
171
- }, {
172
- assortmentId: string;
173
- }>;
174
- readonly GET: z.ZodEffects<z.ZodObject<{
51
+ }, z.core.$strip>;
52
+ readonly GET: z.ZodObject<{
175
53
  assortmentId: z.ZodOptional<z.ZodString>;
176
54
  slug: z.ZodOptional<z.ZodString>;
177
- }, "strip", z.ZodTypeAny, {
178
- assortmentId?: string | undefined;
179
- slug?: string | undefined;
180
- }, {
181
- assortmentId?: string | undefined;
182
- slug?: string | undefined;
183
- }>, {
184
- assortmentId?: string | undefined;
185
- slug?: string | undefined;
186
- }, {
187
- assortmentId?: string | undefined;
188
- slug?: string | undefined;
189
- }>;
55
+ }, z.core.$strip>;
190
56
  readonly LIST: z.ZodObject<{
191
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
192
- slugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
58
+ slugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
193
59
  includeLeaves: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
194
60
  queryString: z.ZodOptional<z.ZodString>;
195
61
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
196
62
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
63
  key: z.ZodString;
198
- value: z.ZodEnum<[string, ...string[]]>;
199
- }, "strip", z.ZodTypeAny, {
200
- key: string;
201
- value: string;
202
- }, {
203
- key: string;
204
- value: string;
205
- }>, "many">>;
64
+ value: z.ZodEnum<{
65
+ [x: string]: string;
66
+ }>;
67
+ }, z.core.$strip>>>;
206
68
  limit: z.ZodOptional<z.ZodNumber>;
207
69
  offset: z.ZodOptional<z.ZodNumber>;
208
- }, "strip", z.ZodTypeAny, {
209
- includeInactive: boolean;
210
- slugs?: string[] | undefined;
211
- tags?: string[] | undefined;
212
- sort?: {
213
- key: string;
214
- value: string;
215
- }[] | undefined;
216
- queryString?: string | undefined;
217
- includeLeaves?: boolean | undefined;
218
- limit?: number | undefined;
219
- offset?: number | undefined;
220
- }, {
221
- slugs?: string[] | undefined;
222
- tags?: string[] | undefined;
223
- sort?: {
224
- key: string;
225
- value: string;
226
- }[] | undefined;
227
- includeInactive?: boolean | undefined;
228
- queryString?: string | undefined;
229
- includeLeaves?: boolean | undefined;
230
- limit?: number | undefined;
231
- offset?: number | undefined;
232
- }>;
70
+ }, z.core.$strip>;
233
71
  readonly COUNT: z.ZodObject<{
234
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
- slugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
72
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
73
+ slugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
236
74
  includeLeaves: z.ZodOptional<z.ZodBoolean>;
237
75
  queryString: z.ZodOptional<z.ZodString>;
238
76
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
239
- }, "strip", z.ZodTypeAny, {
240
- includeInactive: boolean;
241
- slugs?: string[] | undefined;
242
- tags?: string[] | undefined;
243
- queryString?: string | undefined;
244
- includeLeaves?: boolean | undefined;
245
- }, {
246
- slugs?: string[] | undefined;
247
- tags?: string[] | undefined;
248
- includeInactive?: boolean | undefined;
249
- queryString?: string | undefined;
250
- includeLeaves?: boolean | undefined;
251
- }>;
77
+ }, z.core.$strip>;
252
78
  readonly UPDATE_STATUS: z.ZodObject<{
253
79
  assortmentId: z.ZodString;
254
- statusAction: z.ZodEnum<["ACTIVATE", "DEACTIVATE"]>;
255
- }, "strip", z.ZodTypeAny, {
256
- assortmentId: string;
257
- statusAction: "ACTIVATE" | "DEACTIVATE";
258
- }, {
259
- assortmentId: string;
260
- statusAction: "ACTIVATE" | "DEACTIVATE";
261
- }>;
80
+ statusAction: z.ZodEnum<{
81
+ ACTIVATE: "ACTIVATE";
82
+ DEACTIVATE: "DEACTIVATE";
83
+ }>;
84
+ }, z.core.$strip>;
262
85
  readonly ADD_MEDIA: z.ZodObject<{
263
86
  assortmentId: z.ZodString;
264
87
  mediaId: z.ZodString;
265
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
266
- }, "strip", z.ZodTypeAny, {
267
- mediaId: string;
268
- assortmentId: string;
269
- tags?: string[] | undefined;
270
- }, {
271
- mediaId: string;
272
- assortmentId: string;
273
- tags?: string[] | undefined;
274
- }>;
88
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
+ }, z.core.$strip>;
275
90
  readonly REMOVE_MEDIA: z.ZodObject<{
276
91
  mediaId: z.ZodString;
277
- }, "strip", z.ZodTypeAny, {
278
- mediaId: string;
279
- }, {
280
- mediaId: string;
281
- }>;
92
+ }, z.core.$strip>;
282
93
  readonly REORDER_MEDIA: z.ZodObject<{
283
94
  sortKeys: z.ZodArray<z.ZodObject<{
284
95
  assortmentMediaId: z.ZodString;
285
96
  sortKey: z.ZodNumber;
286
- }, "strip", z.ZodTypeAny, {
287
- sortKey: number;
288
- assortmentMediaId: string;
289
- }, {
290
- sortKey: number;
291
- assortmentMediaId: string;
292
- }>, "atleastone">;
293
- }, "strip", z.ZodTypeAny, {
294
- sortKeys: [{
295
- sortKey: number;
296
- assortmentMediaId: string;
297
- }, ...{
298
- sortKey: number;
299
- assortmentMediaId: string;
300
- }[]];
301
- }, {
302
- sortKeys: [{
303
- sortKey: number;
304
- assortmentMediaId: string;
305
- }, ...{
306
- sortKey: number;
307
- assortmentMediaId: string;
308
- }[]];
309
- }>;
97
+ }, z.core.$strip>>;
98
+ }, z.core.$strip>;
310
99
  readonly GET_MEDIA: z.ZodObject<{
311
100
  limit: z.ZodOptional<z.ZodNumber>;
312
101
  offset: z.ZodOptional<z.ZodNumber>;
313
102
  assortmentId: z.ZodString;
314
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
- }, "strip", z.ZodTypeAny, {
316
- assortmentId: string;
317
- tags?: string[] | undefined;
318
- limit?: number | undefined;
319
- offset?: number | undefined;
320
- }, {
321
- assortmentId: string;
322
- tags?: string[] | undefined;
323
- limit?: number | undefined;
324
- offset?: number | undefined;
325
- }>;
103
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
104
+ }, z.core.$strip>;
326
105
  readonly UPDATE_MEDIA_TEXTS: z.ZodObject<{
327
106
  assortmentMediaId: z.ZodString;
328
107
  mediaTexts: z.ZodArray<z.ZodObject<{
329
108
  locale: z.ZodString;
330
109
  title: z.ZodString;
331
110
  subtitle: z.ZodOptional<z.ZodString>;
332
- }, "strip", z.ZodTypeAny, {
333
- locale: string;
334
- title: string;
335
- subtitle?: string | undefined;
336
- }, {
337
- locale: string;
338
- title: string;
339
- subtitle?: string | undefined;
340
- }>, "many">;
341
- }, "strip", z.ZodTypeAny, {
342
- assortmentMediaId: string;
343
- mediaTexts: {
344
- locale: string;
345
- title: string;
346
- subtitle?: string | undefined;
347
- }[];
348
- }, {
349
- assortmentMediaId: string;
350
- mediaTexts: {
351
- locale: string;
352
- title: string;
353
- subtitle?: string | undefined;
354
- }[];
355
- }>;
111
+ }, z.core.$strip>>;
112
+ }, z.core.$strip>;
356
113
  readonly ADD_PRODUCT: z.ZodObject<{
357
114
  assortmentId: z.ZodString;
358
115
  productId: z.ZodString;
359
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
360
- }, "strip", z.ZodTypeAny, {
361
- assortmentId: string;
362
- productId: string;
363
- tags?: string[] | undefined;
364
- }, {
365
- assortmentId: string;
366
- productId: string;
367
- tags?: string[] | undefined;
368
- }>;
116
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
117
+ }, z.core.$strip>;
369
118
  readonly REMOVE_PRODUCT: z.ZodObject<{
370
119
  assortmentProductId: z.ZodString;
371
- }, "strip", z.ZodTypeAny, {
372
- assortmentProductId: string;
373
- }, {
374
- assortmentProductId: string;
375
- }>;
120
+ }, z.core.$strip>;
376
121
  readonly GET_PRODUCTS: z.ZodObject<{
377
122
  assortmentId: z.ZodString;
378
- }, "strip", z.ZodTypeAny, {
379
- assortmentId: string;
380
- }, {
381
- assortmentId: string;
382
- }>;
123
+ }, z.core.$strip>;
383
124
  readonly REORDER_PRODUCTS: z.ZodObject<{
384
125
  sortKeys: z.ZodArray<z.ZodObject<{
385
126
  assortmentProductId: z.ZodString;
386
127
  sortKey: z.ZodNumber;
387
- }, "strip", z.ZodTypeAny, {
388
- sortKey: number;
389
- assortmentProductId: string;
390
- }, {
391
- sortKey: number;
392
- assortmentProductId: string;
393
- }>, "atleastone">;
394
- }, "strip", z.ZodTypeAny, {
395
- sortKeys: [{
396
- sortKey: number;
397
- assortmentProductId: string;
398
- }, ...{
399
- sortKey: number;
400
- assortmentProductId: string;
401
- }[]];
402
- }, {
403
- sortKeys: [{
404
- sortKey: number;
405
- assortmentProductId: string;
406
- }, ...{
407
- sortKey: number;
408
- assortmentProductId: string;
409
- }[]];
410
- }>;
128
+ }, z.core.$strip>>;
129
+ }, z.core.$strip>;
411
130
  readonly ADD_FILTER: z.ZodObject<{
412
131
  assortmentId: z.ZodString;
413
132
  filterId: z.ZodString;
414
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
415
- }, "strip", z.ZodTypeAny, {
416
- assortmentId: string;
417
- filterId: string;
418
- tags?: string[] | undefined;
419
- }, {
420
- assortmentId: string;
421
- filterId: string;
422
- tags?: string[] | undefined;
423
- }>;
133
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
134
+ }, z.core.$strip>;
424
135
  readonly REMOVE_FILTER: z.ZodObject<{
425
136
  assortmentFilterId: z.ZodString;
426
- }, "strip", z.ZodTypeAny, {
427
- assortmentFilterId: string;
428
- }, {
429
- assortmentFilterId: string;
430
- }>;
137
+ }, z.core.$strip>;
431
138
  readonly GET_FILTERS: z.ZodObject<{
432
139
  assortmentId: z.ZodString;
433
- }, "strip", z.ZodTypeAny, {
434
- assortmentId: string;
435
- }, {
436
- assortmentId: string;
437
- }>;
140
+ }, z.core.$strip>;
438
141
  readonly REORDER_FILTERS: z.ZodObject<{
439
142
  sortKeys: z.ZodArray<z.ZodObject<{
440
143
  assortmentFilterId: z.ZodString;
441
144
  sortKey: z.ZodNumber;
442
- }, "strip", z.ZodTypeAny, {
443
- sortKey: number;
444
- assortmentFilterId: string;
445
- }, {
446
- sortKey: number;
447
- assortmentFilterId: string;
448
- }>, "atleastone">;
449
- }, "strip", z.ZodTypeAny, {
450
- sortKeys: [{
451
- sortKey: number;
452
- assortmentFilterId: string;
453
- }, ...{
454
- sortKey: number;
455
- assortmentFilterId: string;
456
- }[]];
457
- }, {
458
- sortKeys: [{
459
- sortKey: number;
460
- assortmentFilterId: string;
461
- }, ...{
462
- sortKey: number;
463
- assortmentFilterId: string;
464
- }[]];
465
- }>;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>;
466
147
  readonly ADD_LINK: z.ZodObject<{
467
148
  parentAssortmentId: z.ZodString;
468
149
  childAssortmentId: z.ZodString;
469
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
470
- }, "strip", z.ZodTypeAny, {
471
- childAssortmentId: string;
472
- parentAssortmentId: string;
473
- tags?: string[] | undefined;
474
- }, {
475
- childAssortmentId: string;
476
- parentAssortmentId: string;
477
- tags?: string[] | undefined;
478
- }>;
150
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
151
+ }, z.core.$strip>;
479
152
  readonly REMOVE_LINK: z.ZodObject<{
480
153
  assortmentLinkId: z.ZodString;
481
- }, "strip", z.ZodTypeAny, {
482
- assortmentLinkId: string;
483
- }, {
484
- assortmentLinkId: string;
485
- }>;
154
+ }, z.core.$strip>;
486
155
  readonly GET_LINKS: z.ZodObject<{
487
156
  assortmentId: z.ZodString;
488
- }, "strip", z.ZodTypeAny, {
489
- assortmentId: string;
490
- }, {
491
- assortmentId: string;
492
- }>;
157
+ }, z.core.$strip>;
493
158
  readonly REORDER_LINKS: z.ZodObject<{
494
159
  sortKeys: z.ZodArray<z.ZodObject<{
495
160
  assortmentLinkId: z.ZodString;
496
161
  sortKey: z.ZodNumber;
497
- }, "strip", z.ZodTypeAny, {
498
- sortKey: number;
499
- assortmentLinkId: string;
500
- }, {
501
- sortKey: number;
502
- assortmentLinkId: string;
503
- }>, "atleastone">;
504
- }, "strip", z.ZodTypeAny, {
505
- sortKeys: [{
506
- sortKey: number;
507
- assortmentLinkId: string;
508
- }, ...{
509
- sortKey: number;
510
- assortmentLinkId: string;
511
- }[]];
512
- }, {
513
- sortKeys: [{
514
- sortKey: number;
515
- assortmentLinkId: string;
516
- }, ...{
517
- sortKey: number;
518
- assortmentLinkId: string;
519
- }[]];
520
- }>;
162
+ }, z.core.$strip>>;
163
+ }, z.core.$strip>;
521
164
  readonly GET_CHILDREN: z.ZodObject<{
522
165
  assortmentId: z.ZodString;
523
166
  includeInactive: z.ZodOptional<z.ZodBoolean>;
524
- }, "strip", z.ZodTypeAny, {
525
- assortmentId: string;
526
- includeInactive?: boolean | undefined;
527
- }, {
528
- assortmentId: string;
529
- includeInactive?: boolean | undefined;
530
- }>;
167
+ }, z.core.$strip>;
531
168
  readonly SET_BASE: z.ZodObject<{
532
169
  assortmentId: z.ZodString;
533
- }, "strip", z.ZodTypeAny, {
534
- assortmentId: string;
535
- }, {
536
- assortmentId: string;
537
- }>;
170
+ }, z.core.$strip>;
538
171
  readonly SEARCH_PRODUCTS: z.ZodObject<{
539
172
  queryString: z.ZodOptional<z.ZodString>;
540
173
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
541
174
  limit: z.ZodOptional<z.ZodNumber>;
542
175
  offset: z.ZodOptional<z.ZodNumber>;
543
176
  assortmentId: z.ZodString;
544
- }, "strip", z.ZodTypeAny, {
545
- assortmentId: string;
546
- includeInactive: boolean;
547
- queryString?: string | undefined;
548
- limit?: number | undefined;
549
- offset?: number | undefined;
550
- }, {
551
- assortmentId: string;
552
- includeInactive?: boolean | undefined;
553
- queryString?: string | undefined;
554
- limit?: number | undefined;
555
- offset?: number | undefined;
556
- }>;
177
+ }, z.core.$strip>;
557
178
  readonly GET_TEXTS: z.ZodObject<{
558
179
  assortmentId: z.ZodString;
559
- }, "strip", z.ZodTypeAny, {
560
- assortmentId: string;
561
- }, {
562
- assortmentId: string;
563
- }>;
180
+ }, z.core.$strip>;
564
181
  readonly GET_MEDIA_TEXTS: z.ZodObject<{
565
182
  assortmentMediaId: z.ZodString;
566
- }, "strip", z.ZodTypeAny, {
567
- assortmentMediaId: string;
568
- }, {
569
- assortmentMediaId: string;
570
- }>;
183
+ }, z.core.$strip>;
571
184
  };
572
185
  export declare const AssortmentManagementSchema: {
573
186
  includeLeaves: z.ZodOptional<z.ZodBoolean>;
574
- slugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
187
+ slugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
575
188
  queryString: z.ZodOptional<z.ZodString>;
576
189
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
577
190
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
578
191
  key: z.ZodString;
579
- value: z.ZodEnum<[string, ...string[]]>;
580
- }, "strip", z.ZodTypeAny, {
581
- key: string;
582
- value: string;
583
- }, {
584
- key: string;
585
- value: string;
586
- }>, "many">>;
192
+ value: z.ZodEnum<{
193
+ [x: string]: string;
194
+ }>;
195
+ }, z.core.$strip>>>;
587
196
  limit: z.ZodOptional<z.ZodNumber>;
588
197
  offset: z.ZodOptional<z.ZodNumber>;
589
- action: z.ZodEnum<["CREATE", "UPDATE", "REMOVE", "GET", "LIST", "COUNT", "UPDATE_STATUS", "ADD_MEDIA", "REMOVE_MEDIA", "REORDER_MEDIA", "GET_MEDIA", "UPDATE_MEDIA_TEXTS", "ADD_PRODUCT", "REMOVE_PRODUCT", "GET_PRODUCTS", "REORDER_PRODUCTS", "ADD_FILTER", "REMOVE_FILTER", "GET_FILTERS", "REORDER_FILTERS", "ADD_LINK", "REMOVE_LINK", "GET_LINKS", "REORDER_LINKS", "GET_CHILDREN", "SET_BASE", "SEARCH_PRODUCTS", "GET_TEXTS", "GET_MEDIA_TEXTS"]>;
198
+ action: z.ZodEnum<{
199
+ GET: "GET";
200
+ CREATE: "CREATE";
201
+ UPDATE: "UPDATE";
202
+ REMOVE: "REMOVE";
203
+ LIST: "LIST";
204
+ COUNT: "COUNT";
205
+ GET_TEXTS: "GET_TEXTS";
206
+ UPDATE_STATUS: "UPDATE_STATUS";
207
+ ADD_MEDIA: "ADD_MEDIA";
208
+ REMOVE_MEDIA: "REMOVE_MEDIA";
209
+ REORDER_MEDIA: "REORDER_MEDIA";
210
+ GET_MEDIA: "GET_MEDIA";
211
+ UPDATE_MEDIA_TEXTS: "UPDATE_MEDIA_TEXTS";
212
+ GET_MEDIA_TEXTS: "GET_MEDIA_TEXTS";
213
+ ADD_PRODUCT: "ADD_PRODUCT";
214
+ REMOVE_PRODUCT: "REMOVE_PRODUCT";
215
+ GET_PRODUCTS: "GET_PRODUCTS";
216
+ REORDER_PRODUCTS: "REORDER_PRODUCTS";
217
+ ADD_FILTER: "ADD_FILTER";
218
+ REMOVE_FILTER: "REMOVE_FILTER";
219
+ GET_FILTERS: "GET_FILTERS";
220
+ REORDER_FILTERS: "REORDER_FILTERS";
221
+ ADD_LINK: "ADD_LINK";
222
+ REMOVE_LINK: "REMOVE_LINK";
223
+ GET_LINKS: "GET_LINKS";
224
+ REORDER_LINKS: "REORDER_LINKS";
225
+ GET_CHILDREN: "GET_CHILDREN";
226
+ SET_BASE: "SET_BASE";
227
+ SEARCH_PRODUCTS: "SEARCH_PRODUCTS";
228
+ }>;
590
229
  assortmentId: z.ZodOptional<z.ZodString>;
591
230
  slug: z.ZodOptional<z.ZodString>;
592
231
  assortmentMediaId: z.ZodOptional<z.ZodString>;
593
232
  assortment: z.ZodOptional<z.ZodObject<{
594
233
  isRoot: z.ZodOptional<z.ZodBoolean>;
595
234
  isActive: z.ZodOptional<z.ZodBoolean>;
596
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
235
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
597
236
  sequence: z.ZodOptional<z.ZodNumber>;
598
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
599
- }, "strip", z.ZodTypeAny, {
600
- isActive?: boolean | undefined;
601
- isRoot?: boolean | undefined;
602
- meta?: Record<string, unknown> | undefined;
603
- sequence?: number | undefined;
604
- tags?: string[] | undefined;
605
- }, {
606
- isActive?: boolean | undefined;
607
- isRoot?: boolean | undefined;
608
- meta?: Record<string, unknown> | undefined;
609
- sequence?: number | undefined;
610
- tags?: string[] | undefined;
611
- }>>;
237
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
238
+ }, z.core.$strip>>;
612
239
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
613
240
  locale: z.ZodString;
614
241
  title: z.ZodString;
615
242
  subtitle: z.ZodOptional<z.ZodString>;
616
- } & {
617
243
  slug: z.ZodOptional<z.ZodString>;
618
244
  description: z.ZodOptional<z.ZodString>;
619
- }, "strip", z.ZodTypeAny, {
620
- locale: string;
621
- title: string;
622
- description?: string | undefined;
623
- subtitle?: string | undefined;
624
- slug?: string | undefined;
625
- }, {
626
- locale: string;
627
- title: string;
628
- description?: string | undefined;
629
- subtitle?: string | undefined;
630
- slug?: string | undefined;
631
- }>, "many">>;
632
- statusAction: z.ZodOptional<z.ZodEnum<["ACTIVATE", "DEACTIVATE"]>>;
245
+ }, z.core.$strip>>>;
246
+ statusAction: z.ZodOptional<z.ZodEnum<{
247
+ ACTIVATE: "ACTIVATE";
248
+ DEACTIVATE: "DEACTIVATE";
249
+ }>>;
633
250
  mediaId: z.ZodOptional<z.ZodString>;
634
- sortKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
251
+ sortKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
635
252
  assortmentMediaId: z.ZodString;
636
253
  sortKey: z.ZodNumber;
637
- }, "strip", z.ZodTypeAny, {
638
- sortKey: number;
639
- assortmentMediaId: string;
640
- }, {
641
- sortKey: number;
642
- assortmentMediaId: string;
643
- }>, z.ZodObject<{
254
+ }, z.core.$strip>, z.ZodObject<{
644
255
  assortmentProductId: z.ZodString;
645
256
  sortKey: z.ZodNumber;
646
- }, "strip", z.ZodTypeAny, {
647
- sortKey: number;
648
- assortmentProductId: string;
649
- }, {
650
- sortKey: number;
651
- assortmentProductId: string;
652
- }>, z.ZodObject<{
257
+ }, z.core.$strip>, z.ZodObject<{
653
258
  assortmentFilterId: z.ZodString;
654
259
  sortKey: z.ZodNumber;
655
- }, "strip", z.ZodTypeAny, {
656
- sortKey: number;
657
- assortmentFilterId: string;
658
- }, {
659
- sortKey: number;
660
- assortmentFilterId: string;
661
- }>, z.ZodObject<{
260
+ }, z.core.$strip>, z.ZodObject<{
662
261
  assortmentLinkId: z.ZodString;
663
262
  sortKey: z.ZodNumber;
664
- }, "strip", z.ZodTypeAny, {
665
- sortKey: number;
666
- assortmentLinkId: string;
667
- }, {
668
- sortKey: number;
669
- assortmentLinkId: string;
670
- }>]>, "many">>;
263
+ }, z.core.$strip>]>>>;
671
264
  mediaTexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
672
265
  locale: z.ZodString;
673
266
  title: z.ZodString;
674
267
  subtitle: z.ZodOptional<z.ZodString>;
675
- }, "strip", z.ZodTypeAny, {
676
- locale: string;
677
- title: string;
678
- subtitle?: string | undefined;
679
- }, {
680
- locale: string;
681
- title: string;
682
- subtitle?: string | undefined;
683
- }>, "many">>;
684
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
268
+ }, z.core.$strip>>>;
269
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
685
270
  assortmentProductId: z.ZodOptional<z.ZodString>;
686
271
  productId: z.ZodOptional<z.ZodString>;
687
272
  filterId: z.ZodOptional<z.ZodString>;
@@ -692,117 +277,89 @@ export declare const AssortmentManagementSchema: {
692
277
  };
693
278
  export declare const AssortmentManagementZodSchema: z.ZodObject<{
694
279
  includeLeaves: z.ZodOptional<z.ZodBoolean>;
695
- slugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
280
+ slugs: z.ZodOptional<z.ZodArray<z.ZodString>>;
696
281
  queryString: z.ZodOptional<z.ZodString>;
697
282
  includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
698
283
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
699
284
  key: z.ZodString;
700
- value: z.ZodEnum<[string, ...string[]]>;
701
- }, "strip", z.ZodTypeAny, {
702
- key: string;
703
- value: string;
704
- }, {
705
- key: string;
706
- value: string;
707
- }>, "many">>;
285
+ value: z.ZodEnum<{
286
+ [x: string]: string;
287
+ }>;
288
+ }, z.core.$strip>>>;
708
289
  limit: z.ZodOptional<z.ZodNumber>;
709
290
  offset: z.ZodOptional<z.ZodNumber>;
710
- action: z.ZodEnum<["CREATE", "UPDATE", "REMOVE", "GET", "LIST", "COUNT", "UPDATE_STATUS", "ADD_MEDIA", "REMOVE_MEDIA", "REORDER_MEDIA", "GET_MEDIA", "UPDATE_MEDIA_TEXTS", "ADD_PRODUCT", "REMOVE_PRODUCT", "GET_PRODUCTS", "REORDER_PRODUCTS", "ADD_FILTER", "REMOVE_FILTER", "GET_FILTERS", "REORDER_FILTERS", "ADD_LINK", "REMOVE_LINK", "GET_LINKS", "REORDER_LINKS", "GET_CHILDREN", "SET_BASE", "SEARCH_PRODUCTS", "GET_TEXTS", "GET_MEDIA_TEXTS"]>;
291
+ action: z.ZodEnum<{
292
+ GET: "GET";
293
+ CREATE: "CREATE";
294
+ UPDATE: "UPDATE";
295
+ REMOVE: "REMOVE";
296
+ LIST: "LIST";
297
+ COUNT: "COUNT";
298
+ GET_TEXTS: "GET_TEXTS";
299
+ UPDATE_STATUS: "UPDATE_STATUS";
300
+ ADD_MEDIA: "ADD_MEDIA";
301
+ REMOVE_MEDIA: "REMOVE_MEDIA";
302
+ REORDER_MEDIA: "REORDER_MEDIA";
303
+ GET_MEDIA: "GET_MEDIA";
304
+ UPDATE_MEDIA_TEXTS: "UPDATE_MEDIA_TEXTS";
305
+ GET_MEDIA_TEXTS: "GET_MEDIA_TEXTS";
306
+ ADD_PRODUCT: "ADD_PRODUCT";
307
+ REMOVE_PRODUCT: "REMOVE_PRODUCT";
308
+ GET_PRODUCTS: "GET_PRODUCTS";
309
+ REORDER_PRODUCTS: "REORDER_PRODUCTS";
310
+ ADD_FILTER: "ADD_FILTER";
311
+ REMOVE_FILTER: "REMOVE_FILTER";
312
+ GET_FILTERS: "GET_FILTERS";
313
+ REORDER_FILTERS: "REORDER_FILTERS";
314
+ ADD_LINK: "ADD_LINK";
315
+ REMOVE_LINK: "REMOVE_LINK";
316
+ GET_LINKS: "GET_LINKS";
317
+ REORDER_LINKS: "REORDER_LINKS";
318
+ GET_CHILDREN: "GET_CHILDREN";
319
+ SET_BASE: "SET_BASE";
320
+ SEARCH_PRODUCTS: "SEARCH_PRODUCTS";
321
+ }>;
711
322
  assortmentId: z.ZodOptional<z.ZodString>;
712
323
  slug: z.ZodOptional<z.ZodString>;
713
324
  assortmentMediaId: z.ZodOptional<z.ZodString>;
714
325
  assortment: z.ZodOptional<z.ZodObject<{
715
326
  isRoot: z.ZodOptional<z.ZodBoolean>;
716
327
  isActive: z.ZodOptional<z.ZodBoolean>;
717
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
328
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
718
329
  sequence: z.ZodOptional<z.ZodNumber>;
719
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
720
- }, "strip", z.ZodTypeAny, {
721
- isActive?: boolean | undefined;
722
- isRoot?: boolean | undefined;
723
- meta?: Record<string, unknown> | undefined;
724
- sequence?: number | undefined;
725
- tags?: string[] | undefined;
726
- }, {
727
- isActive?: boolean | undefined;
728
- isRoot?: boolean | undefined;
729
- meta?: Record<string, unknown> | undefined;
730
- sequence?: number | undefined;
731
- tags?: string[] | undefined;
732
- }>>;
330
+ meta: z.ZodOptional<z.ZodRecord<z.ZodAny, z.ZodAny>>;
331
+ }, z.core.$strip>>;
733
332
  texts: z.ZodOptional<z.ZodArray<z.ZodObject<{
734
333
  locale: z.ZodString;
735
334
  title: z.ZodString;
736
335
  subtitle: z.ZodOptional<z.ZodString>;
737
- } & {
738
336
  slug: z.ZodOptional<z.ZodString>;
739
337
  description: z.ZodOptional<z.ZodString>;
740
- }, "strip", z.ZodTypeAny, {
741
- locale: string;
742
- title: string;
743
- description?: string | undefined;
744
- subtitle?: string | undefined;
745
- slug?: string | undefined;
746
- }, {
747
- locale: string;
748
- title: string;
749
- description?: string | undefined;
750
- subtitle?: string | undefined;
751
- slug?: string | undefined;
752
- }>, "many">>;
753
- statusAction: z.ZodOptional<z.ZodEnum<["ACTIVATE", "DEACTIVATE"]>>;
338
+ }, z.core.$strip>>>;
339
+ statusAction: z.ZodOptional<z.ZodEnum<{
340
+ ACTIVATE: "ACTIVATE";
341
+ DEACTIVATE: "DEACTIVATE";
342
+ }>>;
754
343
  mediaId: z.ZodOptional<z.ZodString>;
755
- sortKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
344
+ sortKeys: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
756
345
  assortmentMediaId: z.ZodString;
757
346
  sortKey: z.ZodNumber;
758
- }, "strip", z.ZodTypeAny, {
759
- sortKey: number;
760
- assortmentMediaId: string;
761
- }, {
762
- sortKey: number;
763
- assortmentMediaId: string;
764
- }>, z.ZodObject<{
347
+ }, z.core.$strip>, z.ZodObject<{
765
348
  assortmentProductId: z.ZodString;
766
349
  sortKey: z.ZodNumber;
767
- }, "strip", z.ZodTypeAny, {
768
- sortKey: number;
769
- assortmentProductId: string;
770
- }, {
771
- sortKey: number;
772
- assortmentProductId: string;
773
- }>, z.ZodObject<{
350
+ }, z.core.$strip>, z.ZodObject<{
774
351
  assortmentFilterId: z.ZodString;
775
352
  sortKey: z.ZodNumber;
776
- }, "strip", z.ZodTypeAny, {
777
- sortKey: number;
778
- assortmentFilterId: string;
779
- }, {
780
- sortKey: number;
781
- assortmentFilterId: string;
782
- }>, z.ZodObject<{
353
+ }, z.core.$strip>, z.ZodObject<{
783
354
  assortmentLinkId: z.ZodString;
784
355
  sortKey: z.ZodNumber;
785
- }, "strip", z.ZodTypeAny, {
786
- sortKey: number;
787
- assortmentLinkId: string;
788
- }, {
789
- sortKey: number;
790
- assortmentLinkId: string;
791
- }>]>, "many">>;
356
+ }, z.core.$strip>]>>>;
792
357
  mediaTexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
793
358
  locale: z.ZodString;
794
359
  title: z.ZodString;
795
360
  subtitle: z.ZodOptional<z.ZodString>;
796
- }, "strip", z.ZodTypeAny, {
797
- locale: string;
798
- title: string;
799
- subtitle?: string | undefined;
800
- }, {
801
- locale: string;
802
- title: string;
803
- subtitle?: string | undefined;
804
- }>, "many">>;
805
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
361
+ }, z.core.$strip>>>;
362
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
806
363
  assortmentProductId: z.ZodOptional<z.ZodString>;
807
364
  productId: z.ZodOptional<z.ZodString>;
808
365
  filterId: z.ZodOptional<z.ZodString>;
@@ -810,121 +367,7 @@ export declare const AssortmentManagementZodSchema: z.ZodObject<{
810
367
  parentAssortmentId: z.ZodOptional<z.ZodString>;
811
368
  childAssortmentId: z.ZodOptional<z.ZodString>;
812
369
  assortmentLinkId: z.ZodOptional<z.ZodString>;
813
- }, "strip", z.ZodTypeAny, {
814
- includeInactive: boolean;
815
- action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT" | "GET_TEXTS" | "UPDATE_STATUS" | "ADD_MEDIA" | "REMOVE_MEDIA" | "REORDER_MEDIA" | "GET_MEDIA" | "UPDATE_MEDIA_TEXTS" | "GET_MEDIA_TEXTS" | "ADD_PRODUCT" | "REMOVE_PRODUCT" | "GET_PRODUCTS" | "REORDER_PRODUCTS" | "ADD_FILTER" | "REMOVE_FILTER" | "GET_FILTERS" | "REORDER_FILTERS" | "ADD_LINK" | "REMOVE_LINK" | "GET_LINKS" | "REORDER_LINKS" | "GET_CHILDREN" | "SET_BASE" | "SEARCH_PRODUCTS";
816
- slugs?: string[] | undefined;
817
- tags?: string[] | undefined;
818
- sort?: {
819
- key: string;
820
- value: string;
821
- }[] | undefined;
822
- mediaId?: string | undefined;
823
- assortmentId?: string | undefined;
824
- assortmentMediaId?: string | undefined;
825
- filterId?: string | undefined;
826
- childAssortmentId?: string | undefined;
827
- parentAssortmentId?: string | undefined;
828
- productId?: string | undefined;
829
- slug?: string | undefined;
830
- queryString?: string | undefined;
831
- includeLeaves?: boolean | undefined;
832
- limit?: number | undefined;
833
- offset?: number | undefined;
834
- texts?: {
835
- locale: string;
836
- title: string;
837
- description?: string | undefined;
838
- subtitle?: string | undefined;
839
- slug?: string | undefined;
840
- }[] | undefined;
841
- sortKeys?: ({
842
- sortKey: number;
843
- assortmentMediaId: string;
844
- } | {
845
- sortKey: number;
846
- assortmentProductId: string;
847
- } | {
848
- sortKey: number;
849
- assortmentFilterId: string;
850
- } | {
851
- sortKey: number;
852
- assortmentLinkId: string;
853
- })[] | undefined;
854
- assortment?: {
855
- isActive?: boolean | undefined;
856
- isRoot?: boolean | undefined;
857
- meta?: Record<string, unknown> | undefined;
858
- sequence?: number | undefined;
859
- tags?: string[] | undefined;
860
- } | undefined;
861
- assortmentProductId?: string | undefined;
862
- assortmentLinkId?: string | undefined;
863
- assortmentFilterId?: string | undefined;
864
- statusAction?: "ACTIVATE" | "DEACTIVATE" | undefined;
865
- mediaTexts?: {
866
- locale: string;
867
- title: string;
868
- subtitle?: string | undefined;
869
- }[] | undefined;
870
- }, {
871
- action: "GET" | "CREATE" | "UPDATE" | "REMOVE" | "LIST" | "COUNT" | "GET_TEXTS" | "UPDATE_STATUS" | "ADD_MEDIA" | "REMOVE_MEDIA" | "REORDER_MEDIA" | "GET_MEDIA" | "UPDATE_MEDIA_TEXTS" | "GET_MEDIA_TEXTS" | "ADD_PRODUCT" | "REMOVE_PRODUCT" | "GET_PRODUCTS" | "REORDER_PRODUCTS" | "ADD_FILTER" | "REMOVE_FILTER" | "GET_FILTERS" | "REORDER_FILTERS" | "ADD_LINK" | "REMOVE_LINK" | "GET_LINKS" | "REORDER_LINKS" | "GET_CHILDREN" | "SET_BASE" | "SEARCH_PRODUCTS";
872
- slugs?: string[] | undefined;
873
- tags?: string[] | undefined;
874
- sort?: {
875
- key: string;
876
- value: string;
877
- }[] | undefined;
878
- mediaId?: string | undefined;
879
- assortmentId?: string | undefined;
880
- assortmentMediaId?: string | undefined;
881
- filterId?: string | undefined;
882
- childAssortmentId?: string | undefined;
883
- parentAssortmentId?: string | undefined;
884
- productId?: string | undefined;
885
- slug?: string | undefined;
886
- includeInactive?: boolean | undefined;
887
- queryString?: string | undefined;
888
- includeLeaves?: boolean | undefined;
889
- limit?: number | undefined;
890
- offset?: number | undefined;
891
- texts?: {
892
- locale: string;
893
- title: string;
894
- description?: string | undefined;
895
- subtitle?: string | undefined;
896
- slug?: string | undefined;
897
- }[] | undefined;
898
- sortKeys?: ({
899
- sortKey: number;
900
- assortmentMediaId: string;
901
- } | {
902
- sortKey: number;
903
- assortmentProductId: string;
904
- } | {
905
- sortKey: number;
906
- assortmentFilterId: string;
907
- } | {
908
- sortKey: number;
909
- assortmentLinkId: string;
910
- })[] | undefined;
911
- assortment?: {
912
- isActive?: boolean | undefined;
913
- isRoot?: boolean | undefined;
914
- meta?: Record<string, unknown> | undefined;
915
- sequence?: number | undefined;
916
- tags?: string[] | undefined;
917
- } | undefined;
918
- assortmentProductId?: string | undefined;
919
- assortmentLinkId?: string | undefined;
920
- assortmentFilterId?: string | undefined;
921
- statusAction?: "ACTIVATE" | "DEACTIVATE" | undefined;
922
- mediaTexts?: {
923
- locale: string;
924
- title: string;
925
- subtitle?: string | undefined;
926
- }[] | undefined;
927
- }>;
370
+ }, z.core.$strip>;
928
371
  export type AssortmentManagementParams = z.infer<typeof AssortmentManagementZodSchema>;
929
372
  export type ActionName = keyof typeof actionValidators;
930
373
  export type Params<T extends ActionName> = z.infer<(typeof actionValidators)[T]>;