aivilife-contracts 4.2.0 → 4.4.0
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/README.md +29 -1
- package/dist/auth/index.js +4 -5
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +4 -5
- package/dist/auth/index.mjs.map +1 -1
- package/dist/catalog/index.d.mts +565 -0
- package/dist/catalog/index.d.ts +565 -0
- package/dist/catalog/index.js +311 -0
- package/dist/catalog/index.js.map +1 -0
- package/dist/catalog/index.mjs +282 -0
- package/dist/catalog/index.mjs.map +1 -0
- package/dist/index.d.mts +4 -25
- package/dist/index.d.ts +4 -25
- package/dist/index.js +650 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +588 -6
- package/dist/index.mjs.map +1 -1
- package/dist/pagination.types-BRhyN9z6.d.mts +27 -0
- package/dist/pagination.types-BRhyN9z6.d.ts +27 -0
- package/dist/warehouse/index.d.mts +635 -0
- package/dist/warehouse/index.d.ts +635 -0
- package/dist/warehouse/index.js +405 -0
- package/dist/warehouse/index.js.map +1 -0
- package/dist/warehouse/index.mjs +369 -0
- package/dist/warehouse/index.mjs.map +1 -0
- package/package.json +11 -1
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as PaginatedResponse } from '../pagination.types-BRhyN9z6.mjs';
|
|
3
|
+
|
|
4
|
+
declare const ProductStatus: {
|
|
5
|
+
readonly DRAFT: "DRAFT";
|
|
6
|
+
readonly ACTIVE: "ACTIVE";
|
|
7
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
8
|
+
};
|
|
9
|
+
type ProductStatus = (typeof ProductStatus)[keyof typeof ProductStatus];
|
|
10
|
+
declare const ProductUnit: {
|
|
11
|
+
readonly CAPSULE: "CAPSULE";
|
|
12
|
+
readonly GRAM: "GRAM";
|
|
13
|
+
readonly MILLILITER: "MILLILITER";
|
|
14
|
+
readonly PIECE: "PIECE";
|
|
15
|
+
};
|
|
16
|
+
type ProductUnit = (typeof ProductUnit)[keyof typeof ProductUnit];
|
|
17
|
+
declare const ProductMediaType: {
|
|
18
|
+
readonly IMAGE: "IMAGE";
|
|
19
|
+
readonly UPLOADED_VIDEO: "UPLOADED_VIDEO";
|
|
20
|
+
readonly EXTERNAL_VIDEO: "EXTERNAL_VIDEO";
|
|
21
|
+
};
|
|
22
|
+
type ProductMediaType = (typeof ProductMediaType)[keyof typeof ProductMediaType];
|
|
23
|
+
declare const ProductMediaRole: {
|
|
24
|
+
readonly COVER: "COVER";
|
|
25
|
+
readonly GALLERY: "GALLERY";
|
|
26
|
+
};
|
|
27
|
+
type ProductMediaRole = (typeof ProductMediaRole)[keyof typeof ProductMediaRole];
|
|
28
|
+
|
|
29
|
+
declare const ProductCategoryTranslationInputSchema: z.ZodObject<{
|
|
30
|
+
locale: z.ZodEnum<{
|
|
31
|
+
readonly RU: "ru";
|
|
32
|
+
readonly KK: "kk";
|
|
33
|
+
readonly UZ: "uz";
|
|
34
|
+
readonly EN: "en";
|
|
35
|
+
}>;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
declare const ProductTranslationInputSchema: z.ZodObject<{
|
|
40
|
+
locale: z.ZodEnum<{
|
|
41
|
+
readonly RU: "ru";
|
|
42
|
+
readonly KK: "kk";
|
|
43
|
+
readonly UZ: "uz";
|
|
44
|
+
readonly EN: "en";
|
|
45
|
+
}>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
shortDescription: z.ZodString;
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
composition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
usageInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
contraindications: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
shelfLife: z.ZodString;
|
|
54
|
+
packageContents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
declare const CreateProductCategoryRequestSchema: z.ZodObject<{
|
|
57
|
+
code: z.ZodString;
|
|
58
|
+
slug: z.ZodString;
|
|
59
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
60
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
61
|
+
locale: z.ZodEnum<{
|
|
62
|
+
readonly RU: "ru";
|
|
63
|
+
readonly KK: "kk";
|
|
64
|
+
readonly UZ: "uz";
|
|
65
|
+
readonly EN: "en";
|
|
66
|
+
}>;
|
|
67
|
+
name: z.ZodString;
|
|
68
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
}, z.core.$strip>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
declare const UpdateProductCategoryRequestSchema: z.ZodObject<{
|
|
72
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
73
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
74
|
+
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
locale: z.ZodEnum<{
|
|
76
|
+
readonly RU: "ru";
|
|
77
|
+
readonly KK: "kk";
|
|
78
|
+
readonly UZ: "uz";
|
|
79
|
+
readonly EN: "en";
|
|
80
|
+
}>;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>>>;
|
|
84
|
+
version: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
declare const ProductVariantInputSchema: z.ZodObject<{
|
|
87
|
+
sku: z.ZodString;
|
|
88
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
quantity: z.ZodString;
|
|
90
|
+
unit: z.ZodEnum<{
|
|
91
|
+
readonly CAPSULE: "CAPSULE";
|
|
92
|
+
readonly GRAM: "GRAM";
|
|
93
|
+
readonly MILLILITER: "MILLILITER";
|
|
94
|
+
readonly PIECE: "PIECE";
|
|
95
|
+
}>;
|
|
96
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
97
|
+
priceUsd: z.ZodString;
|
|
98
|
+
pv: z.ZodString;
|
|
99
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
100
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
104
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
declare const CreateProductRequestSchema: z.ZodObject<{
|
|
108
|
+
code: z.ZodString;
|
|
109
|
+
slug: z.ZodString;
|
|
110
|
+
manufacturerCountryCode: z.ZodString;
|
|
111
|
+
manufacturerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
|
+
sgr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
113
|
+
isFeatured: z.ZodDefault<z.ZodBoolean>;
|
|
114
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
116
|
+
locale: z.ZodEnum<{
|
|
117
|
+
readonly RU: "ru";
|
|
118
|
+
readonly KK: "kk";
|
|
119
|
+
readonly UZ: "uz";
|
|
120
|
+
readonly EN: "en";
|
|
121
|
+
}>;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
shortDescription: z.ZodString;
|
|
124
|
+
description: z.ZodString;
|
|
125
|
+
composition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
usageInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
contraindications: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
129
|
+
shelfLife: z.ZodString;
|
|
130
|
+
packageContents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
}, z.core.$strip>>;
|
|
132
|
+
categoryPublicIds: z.ZodArray<z.ZodUUID>;
|
|
133
|
+
primaryCategoryPublicId: z.ZodUUID;
|
|
134
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
135
|
+
sku: z.ZodString;
|
|
136
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
137
|
+
quantity: z.ZodString;
|
|
138
|
+
unit: z.ZodEnum<{
|
|
139
|
+
readonly CAPSULE: "CAPSULE";
|
|
140
|
+
readonly GRAM: "GRAM";
|
|
141
|
+
readonly MILLILITER: "MILLILITER";
|
|
142
|
+
readonly PIECE: "PIECE";
|
|
143
|
+
}>;
|
|
144
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
145
|
+
priceUsd: z.ZodString;
|
|
146
|
+
pv: z.ZodString;
|
|
147
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
148
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
149
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
150
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
152
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
153
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
declare const UpdateProductRequestSchema: z.ZodObject<{
|
|
157
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
158
|
+
manufacturerCountryCode: z.ZodOptional<z.ZodString>;
|
|
159
|
+
manufacturerName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
160
|
+
sgr: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
161
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
162
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
164
|
+
locale: z.ZodEnum<{
|
|
165
|
+
readonly RU: "ru";
|
|
166
|
+
readonly KK: "kk";
|
|
167
|
+
readonly UZ: "uz";
|
|
168
|
+
readonly EN: "en";
|
|
169
|
+
}>;
|
|
170
|
+
name: z.ZodString;
|
|
171
|
+
shortDescription: z.ZodString;
|
|
172
|
+
description: z.ZodString;
|
|
173
|
+
composition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
usageInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
176
|
+
contraindications: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
177
|
+
shelfLife: z.ZodString;
|
|
178
|
+
packageContents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
180
|
+
categoryPublicIds: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
181
|
+
primaryCategoryPublicId: z.ZodOptional<z.ZodUUID>;
|
|
182
|
+
version: z.ZodNonOptional<z.ZodOptional<z.ZodNumber>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
declare const CreateProductVariantRequestSchema: z.ZodObject<{
|
|
185
|
+
sku: z.ZodString;
|
|
186
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
187
|
+
quantity: z.ZodString;
|
|
188
|
+
unit: z.ZodEnum<{
|
|
189
|
+
readonly CAPSULE: "CAPSULE";
|
|
190
|
+
readonly GRAM: "GRAM";
|
|
191
|
+
readonly MILLILITER: "MILLILITER";
|
|
192
|
+
readonly PIECE: "PIECE";
|
|
193
|
+
}>;
|
|
194
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
|
+
priceUsd: z.ZodString;
|
|
196
|
+
pv: z.ZodString;
|
|
197
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
201
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
202
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
203
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
declare const UpdateProductVariantRequestSchema: z.ZodObject<{
|
|
206
|
+
sku: z.ZodOptional<z.ZodString>;
|
|
207
|
+
barcode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
208
|
+
quantity: z.ZodOptional<z.ZodString>;
|
|
209
|
+
unit: z.ZodOptional<z.ZodEnum<{
|
|
210
|
+
readonly CAPSULE: "CAPSULE";
|
|
211
|
+
readonly GRAM: "GRAM";
|
|
212
|
+
readonly MILLILITER: "MILLILITER";
|
|
213
|
+
readonly PIECE: "PIECE";
|
|
214
|
+
}>>;
|
|
215
|
+
netWeightGrams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
216
|
+
priceUsd: z.ZodOptional<z.ZodString>;
|
|
217
|
+
pv: z.ZodOptional<z.ZodString>;
|
|
218
|
+
shippingWeightGrams: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
219
|
+
lengthMm: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
220
|
+
widthMm: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
221
|
+
heightMm: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
222
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
+
isActive: z.ZodOptional<z.ZodBoolean>;
|
|
224
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
225
|
+
version: z.ZodNumber;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
declare const ProductPublicIdParamSchema: z.ZodObject<{
|
|
228
|
+
publicId: z.ZodUUID;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
declare const ProductSlugParamSchema: z.ZodObject<{
|
|
231
|
+
slug: z.ZodString;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
declare const ProductVariantPublicIdParamSchema: z.ZodObject<{
|
|
234
|
+
publicId: z.ZodUUID;
|
|
235
|
+
variantPublicId: z.ZodUUID;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
declare const ProductMediaPublicIdParamSchema: z.ZodObject<{
|
|
238
|
+
publicId: z.ZodUUID;
|
|
239
|
+
mediaPublicId: z.ZodUUID;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
declare const ProductListQuerySchema: z.ZodObject<{
|
|
242
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
243
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
244
|
+
search: z.ZodOptional<z.ZodString>;
|
|
245
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
246
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
247
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
248
|
+
asc: "asc";
|
|
249
|
+
desc: "desc";
|
|
250
|
+
}>>>;
|
|
251
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
readonly DRAFT: "DRAFT";
|
|
253
|
+
readonly ACTIVE: "ACTIVE";
|
|
254
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
255
|
+
}>>;
|
|
256
|
+
category: z.ZodOptional<z.ZodString>;
|
|
257
|
+
featured: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
258
|
+
true: "true";
|
|
259
|
+
false: "false";
|
|
260
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
declare const CreateExternalProductVideoRequestSchema: z.ZodObject<{
|
|
263
|
+
url: z.ZodURL;
|
|
264
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
declare const UploadProductImageRequestSchema: z.ZodObject<{
|
|
267
|
+
role: z.ZodDefault<z.ZodEnum<{
|
|
268
|
+
readonly COVER: "COVER";
|
|
269
|
+
readonly GALLERY: "GALLERY";
|
|
270
|
+
}>>;
|
|
271
|
+
sortOrder: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
declare const UploadProductVideoRequestSchema: z.ZodObject<{
|
|
274
|
+
sortOrder: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
declare const UpdateProductMediaRequestSchema: z.ZodObject<{
|
|
277
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
278
|
+
readonly COVER: "COVER";
|
|
279
|
+
readonly GALLERY: "GALLERY";
|
|
280
|
+
}>>;
|
|
281
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
declare const ProductCategorySchema: z.ZodObject<{
|
|
284
|
+
publicId: z.ZodUUID;
|
|
285
|
+
code: z.ZodString;
|
|
286
|
+
slug: z.ZodString;
|
|
287
|
+
status: z.ZodEnum<{
|
|
288
|
+
readonly DRAFT: "DRAFT";
|
|
289
|
+
readonly ACTIVE: "ACTIVE";
|
|
290
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
291
|
+
}>;
|
|
292
|
+
sortOrder: z.ZodNumber;
|
|
293
|
+
version: z.ZodNumber;
|
|
294
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
295
|
+
locale: z.ZodEnum<{
|
|
296
|
+
readonly RU: "ru";
|
|
297
|
+
readonly KK: "kk";
|
|
298
|
+
readonly UZ: "uz";
|
|
299
|
+
readonly EN: "en";
|
|
300
|
+
}>;
|
|
301
|
+
name: z.ZodString;
|
|
302
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
createdAt: z.ZodString;
|
|
305
|
+
updatedAt: z.ZodString;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
declare const ProductVariantSchema: z.ZodObject<{
|
|
308
|
+
sku: z.ZodString;
|
|
309
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
310
|
+
quantity: z.ZodString;
|
|
311
|
+
unit: z.ZodEnum<{
|
|
312
|
+
readonly CAPSULE: "CAPSULE";
|
|
313
|
+
readonly GRAM: "GRAM";
|
|
314
|
+
readonly MILLILITER: "MILLILITER";
|
|
315
|
+
readonly PIECE: "PIECE";
|
|
316
|
+
}>;
|
|
317
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
318
|
+
priceUsd: z.ZodString;
|
|
319
|
+
pv: z.ZodString;
|
|
320
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
321
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
322
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
323
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
324
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
325
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
326
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
327
|
+
publicId: z.ZodUUID;
|
|
328
|
+
version: z.ZodNumber;
|
|
329
|
+
createdAt: z.ZodString;
|
|
330
|
+
updatedAt: z.ZodString;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
declare const ProductMediaSchema: z.ZodObject<{
|
|
333
|
+
publicId: z.ZodUUID;
|
|
334
|
+
type: z.ZodEnum<{
|
|
335
|
+
readonly IMAGE: "IMAGE";
|
|
336
|
+
readonly UPLOADED_VIDEO: "UPLOADED_VIDEO";
|
|
337
|
+
readonly EXTERNAL_VIDEO: "EXTERNAL_VIDEO";
|
|
338
|
+
}>;
|
|
339
|
+
role: z.ZodEnum<{
|
|
340
|
+
readonly COVER: "COVER";
|
|
341
|
+
readonly GALLERY: "GALLERY";
|
|
342
|
+
}>;
|
|
343
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
344
|
+
contentUrl: z.ZodNullable<z.ZodString>;
|
|
345
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
346
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
347
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
348
|
+
sortOrder: z.ZodNumber;
|
|
349
|
+
createdAt: z.ZodString;
|
|
350
|
+
updatedAt: z.ZodString;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
declare const ProductSchema: z.ZodObject<{
|
|
353
|
+
publicId: z.ZodUUID;
|
|
354
|
+
code: z.ZodString;
|
|
355
|
+
slug: z.ZodString;
|
|
356
|
+
status: z.ZodEnum<{
|
|
357
|
+
readonly DRAFT: "DRAFT";
|
|
358
|
+
readonly ACTIVE: "ACTIVE";
|
|
359
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
360
|
+
}>;
|
|
361
|
+
manufacturerCountryCode: z.ZodString;
|
|
362
|
+
manufacturerName: z.ZodNullable<z.ZodString>;
|
|
363
|
+
sgr: z.ZodNullable<z.ZodString>;
|
|
364
|
+
isFeatured: z.ZodBoolean;
|
|
365
|
+
sortOrder: z.ZodNumber;
|
|
366
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
367
|
+
version: z.ZodNumber;
|
|
368
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
369
|
+
locale: z.ZodEnum<{
|
|
370
|
+
readonly RU: "ru";
|
|
371
|
+
readonly KK: "kk";
|
|
372
|
+
readonly UZ: "uz";
|
|
373
|
+
readonly EN: "en";
|
|
374
|
+
}>;
|
|
375
|
+
name: z.ZodString;
|
|
376
|
+
shortDescription: z.ZodString;
|
|
377
|
+
description: z.ZodString;
|
|
378
|
+
composition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
379
|
+
usageInstructions: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
380
|
+
features: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
381
|
+
contraindications: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
382
|
+
shelfLife: z.ZodString;
|
|
383
|
+
packageContents: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
384
|
+
}, z.core.$strip>>;
|
|
385
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
386
|
+
publicId: z.ZodUUID;
|
|
387
|
+
code: z.ZodString;
|
|
388
|
+
slug: z.ZodString;
|
|
389
|
+
status: z.ZodEnum<{
|
|
390
|
+
readonly DRAFT: "DRAFT";
|
|
391
|
+
readonly ACTIVE: "ACTIVE";
|
|
392
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
393
|
+
}>;
|
|
394
|
+
sortOrder: z.ZodNumber;
|
|
395
|
+
version: z.ZodNumber;
|
|
396
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
397
|
+
locale: z.ZodEnum<{
|
|
398
|
+
readonly RU: "ru";
|
|
399
|
+
readonly KK: "kk";
|
|
400
|
+
readonly UZ: "uz";
|
|
401
|
+
readonly EN: "en";
|
|
402
|
+
}>;
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
createdAt: z.ZodString;
|
|
407
|
+
updatedAt: z.ZodString;
|
|
408
|
+
}, z.core.$strip>>;
|
|
409
|
+
primaryCategoryPublicId: z.ZodUUID;
|
|
410
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
411
|
+
sku: z.ZodString;
|
|
412
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
413
|
+
quantity: z.ZodString;
|
|
414
|
+
unit: z.ZodEnum<{
|
|
415
|
+
readonly CAPSULE: "CAPSULE";
|
|
416
|
+
readonly GRAM: "GRAM";
|
|
417
|
+
readonly MILLILITER: "MILLILITER";
|
|
418
|
+
readonly PIECE: "PIECE";
|
|
419
|
+
}>;
|
|
420
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
421
|
+
priceUsd: z.ZodString;
|
|
422
|
+
pv: z.ZodString;
|
|
423
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
424
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
425
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
426
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
427
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
428
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
429
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
430
|
+
publicId: z.ZodUUID;
|
|
431
|
+
version: z.ZodNumber;
|
|
432
|
+
createdAt: z.ZodString;
|
|
433
|
+
updatedAt: z.ZodString;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
media: z.ZodArray<z.ZodObject<{
|
|
436
|
+
publicId: z.ZodUUID;
|
|
437
|
+
type: z.ZodEnum<{
|
|
438
|
+
readonly IMAGE: "IMAGE";
|
|
439
|
+
readonly UPLOADED_VIDEO: "UPLOADED_VIDEO";
|
|
440
|
+
readonly EXTERNAL_VIDEO: "EXTERNAL_VIDEO";
|
|
441
|
+
}>;
|
|
442
|
+
role: z.ZodEnum<{
|
|
443
|
+
readonly COVER: "COVER";
|
|
444
|
+
readonly GALLERY: "GALLERY";
|
|
445
|
+
}>;
|
|
446
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
447
|
+
contentUrl: z.ZodNullable<z.ZodString>;
|
|
448
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
449
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
450
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
451
|
+
sortOrder: z.ZodNumber;
|
|
452
|
+
createdAt: z.ZodString;
|
|
453
|
+
updatedAt: z.ZodString;
|
|
454
|
+
}, z.core.$strip>>;
|
|
455
|
+
createdAt: z.ZodString;
|
|
456
|
+
updatedAt: z.ZodString;
|
|
457
|
+
}, z.core.$strip>;
|
|
458
|
+
declare const LocalizedProductCategorySchema: z.ZodObject<{
|
|
459
|
+
publicId: z.ZodUUID;
|
|
460
|
+
code: z.ZodString;
|
|
461
|
+
slug: z.ZodString;
|
|
462
|
+
name: z.ZodString;
|
|
463
|
+
description: z.ZodNullable<z.ZodString>;
|
|
464
|
+
}, z.core.$strip>;
|
|
465
|
+
declare const LocalizedProductSchema: z.ZodObject<{
|
|
466
|
+
sortOrder: z.ZodNumber;
|
|
467
|
+
code: z.ZodString;
|
|
468
|
+
createdAt: z.ZodString;
|
|
469
|
+
updatedAt: z.ZodString;
|
|
470
|
+
status: z.ZodEnum<{
|
|
471
|
+
readonly DRAFT: "DRAFT";
|
|
472
|
+
readonly ACTIVE: "ACTIVE";
|
|
473
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
474
|
+
}>;
|
|
475
|
+
slug: z.ZodString;
|
|
476
|
+
primaryCategoryPublicId: z.ZodUUID;
|
|
477
|
+
manufacturerCountryCode: z.ZodString;
|
|
478
|
+
manufacturerName: z.ZodNullable<z.ZodString>;
|
|
479
|
+
sgr: z.ZodNullable<z.ZodString>;
|
|
480
|
+
isFeatured: z.ZodBoolean;
|
|
481
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
482
|
+
sku: z.ZodString;
|
|
483
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
484
|
+
quantity: z.ZodString;
|
|
485
|
+
unit: z.ZodEnum<{
|
|
486
|
+
readonly CAPSULE: "CAPSULE";
|
|
487
|
+
readonly GRAM: "GRAM";
|
|
488
|
+
readonly MILLILITER: "MILLILITER";
|
|
489
|
+
readonly PIECE: "PIECE";
|
|
490
|
+
}>;
|
|
491
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
492
|
+
priceUsd: z.ZodString;
|
|
493
|
+
pv: z.ZodString;
|
|
494
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
495
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
496
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
497
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
498
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
499
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
500
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
501
|
+
publicId: z.ZodUUID;
|
|
502
|
+
version: z.ZodNumber;
|
|
503
|
+
createdAt: z.ZodString;
|
|
504
|
+
updatedAt: z.ZodString;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
publicId: z.ZodUUID;
|
|
507
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
508
|
+
media: z.ZodArray<z.ZodObject<{
|
|
509
|
+
publicId: z.ZodUUID;
|
|
510
|
+
type: z.ZodEnum<{
|
|
511
|
+
readonly IMAGE: "IMAGE";
|
|
512
|
+
readonly UPLOADED_VIDEO: "UPLOADED_VIDEO";
|
|
513
|
+
readonly EXTERNAL_VIDEO: "EXTERNAL_VIDEO";
|
|
514
|
+
}>;
|
|
515
|
+
role: z.ZodEnum<{
|
|
516
|
+
readonly COVER: "COVER";
|
|
517
|
+
readonly GALLERY: "GALLERY";
|
|
518
|
+
}>;
|
|
519
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
520
|
+
contentUrl: z.ZodNullable<z.ZodString>;
|
|
521
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
522
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
523
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
524
|
+
sortOrder: z.ZodNumber;
|
|
525
|
+
createdAt: z.ZodString;
|
|
526
|
+
updatedAt: z.ZodString;
|
|
527
|
+
}, z.core.$strip>>;
|
|
528
|
+
name: z.ZodString;
|
|
529
|
+
shortDescription: z.ZodString;
|
|
530
|
+
description: z.ZodString;
|
|
531
|
+
composition: z.ZodNullable<z.ZodString>;
|
|
532
|
+
usageInstructions: z.ZodNullable<z.ZodString>;
|
|
533
|
+
features: z.ZodNullable<z.ZodString>;
|
|
534
|
+
contraindications: z.ZodNullable<z.ZodString>;
|
|
535
|
+
shelfLife: z.ZodString;
|
|
536
|
+
packageContents: z.ZodNullable<z.ZodString>;
|
|
537
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
538
|
+
publicId: z.ZodUUID;
|
|
539
|
+
code: z.ZodString;
|
|
540
|
+
slug: z.ZodString;
|
|
541
|
+
name: z.ZodString;
|
|
542
|
+
description: z.ZodNullable<z.ZodString>;
|
|
543
|
+
}, z.core.$strip>>;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
|
|
546
|
+
type CreateProductCategoryRequest = z.infer<typeof CreateProductCategoryRequestSchema>;
|
|
547
|
+
type UpdateProductCategoryRequest = z.infer<typeof UpdateProductCategoryRequestSchema>;
|
|
548
|
+
type CreateProductRequest = z.infer<typeof CreateProductRequestSchema>;
|
|
549
|
+
type UpdateProductRequest = z.infer<typeof UpdateProductRequestSchema>;
|
|
550
|
+
type CreateProductVariantRequest = z.infer<typeof CreateProductVariantRequestSchema>;
|
|
551
|
+
type UpdateProductVariantRequest = z.infer<typeof UpdateProductVariantRequestSchema>;
|
|
552
|
+
type CreateExternalProductVideoRequest = z.infer<typeof CreateExternalProductVideoRequestSchema>;
|
|
553
|
+
type UpdateProductMediaRequest = z.infer<typeof UpdateProductMediaRequestSchema>;
|
|
554
|
+
type ProductListQuery = z.infer<typeof ProductListQuerySchema>;
|
|
555
|
+
type UploadProductImageRequest = z.infer<typeof UploadProductImageRequestSchema>;
|
|
556
|
+
type UploadProductVideoRequest = z.infer<typeof UploadProductVideoRequestSchema>;
|
|
557
|
+
type ProductCategoryResponse = z.infer<typeof ProductCategorySchema>;
|
|
558
|
+
type ProductVariantResponse = z.infer<typeof ProductVariantSchema>;
|
|
559
|
+
type ProductMediaResponse = z.infer<typeof ProductMediaSchema>;
|
|
560
|
+
type ProductResponse = z.infer<typeof ProductSchema>;
|
|
561
|
+
type LocalizedProductResponse = z.infer<typeof LocalizedProductSchema>;
|
|
562
|
+
type ProductListResponse = PaginatedResponse<ProductResponse>;
|
|
563
|
+
type LocalizedProductListResponse = PaginatedResponse<LocalizedProductResponse>;
|
|
564
|
+
|
|
565
|
+
export { type CreateExternalProductVideoRequest, CreateExternalProductVideoRequestSchema, type CreateProductCategoryRequest, CreateProductCategoryRequestSchema, type CreateProductRequest, CreateProductRequestSchema, type CreateProductVariantRequest, CreateProductVariantRequestSchema, LocalizedProductCategorySchema, type LocalizedProductListResponse, type LocalizedProductResponse, LocalizedProductSchema, type ProductCategoryResponse, ProductCategorySchema, ProductCategoryTranslationInputSchema, type ProductListQuery, ProductListQuerySchema, type ProductListResponse, ProductMediaPublicIdParamSchema, type ProductMediaResponse, ProductMediaRole, ProductMediaSchema, ProductMediaType, ProductPublicIdParamSchema, type ProductResponse, ProductSchema, ProductSlugParamSchema, ProductStatus, ProductTranslationInputSchema, ProductUnit, ProductVariantInputSchema, ProductVariantPublicIdParamSchema, type ProductVariantResponse, ProductVariantSchema, type UpdateProductCategoryRequest, UpdateProductCategoryRequestSchema, type UpdateProductMediaRequest, UpdateProductMediaRequestSchema, type UpdateProductRequest, UpdateProductRequestSchema, type UpdateProductVariantRequest, UpdateProductVariantRequestSchema, type UploadProductImageRequest, UploadProductImageRequestSchema, type UploadProductVideoRequest, UploadProductVideoRequestSchema };
|