aivilife-contracts 5.6.0 → 6.0.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 +30 -0
- package/dist/auth/index.d.mts +2 -1
- package/dist/auth/index.d.ts +2 -1
- package/dist/auth/index.js +130 -0
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/index.mjs +130 -0
- package/dist/auth/index.mjs.map +1 -1
- package/dist/box/index.d.mts +437 -0
- package/dist/box/index.d.ts +437 -0
- package/dist/box/index.js +1355 -0
- package/dist/box/index.js.map +1 -0
- package/dist/box/index.mjs +1333 -0
- package/dist/box/index.mjs.map +1 -0
- package/dist/catalog/index.d.mts +5 -1
- package/dist/catalog/index.d.ts +5 -1
- package/dist/catalog/index.js +3 -0
- package/dist/catalog/index.js.map +1 -1
- package/dist/catalog/index.mjs +3 -0
- package/dist/catalog/index.mjs.map +1 -1
- package/dist/{marketing.enums-pV5acC3L.d.mts → index-DC3vBOFB.d.mts} +2 -12
- package/dist/{marketing.enums-pV5acC3L.d.ts → index-mteQAHWO.d.ts} +2 -12
- package/dist/index.d.mts +9 -50
- package/dist/index.d.ts +9 -50
- package/dist/index.js +453 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +419 -98
- package/dist/index.mjs.map +1 -1
- package/dist/marketing/index.d.mts +212 -0
- package/dist/marketing/index.d.ts +212 -0
- package/dist/marketing/index.js +238 -0
- package/dist/marketing/index.js.map +1 -0
- package/dist/marketing/index.mjs +212 -0
- package/dist/marketing/index.mjs.map +1 -0
- package/dist/marketing.enums-CNJ2Ayc_.d.mts +26 -0
- package/dist/marketing.enums-CNJ2Ayc_.d.ts +26 -0
- package/dist/order/index.d.mts +35 -70
- package/dist/order/index.d.ts +35 -70
- package/dist/order/index.js +15 -0
- package/dist/order/index.js.map +1 -1
- package/dist/order/index.mjs +15 -1
- package/dist/order/index.mjs.map +1 -1
- package/dist/order.enums-DdujST4H.d.mts +68 -0
- package/dist/order.enums-DdujST4H.d.ts +68 -0
- package/package.json +11 -1
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { c as OrderPaymentMethod, i as OrderStockAvailability, O as OrderDeliveryMethod } from '../order.enums-DdujST4H.js';
|
|
3
|
+
import { a as PaginatedResponse } from '../pagination.types-BRhyN9z6.js';
|
|
4
|
+
|
|
5
|
+
declare enum BoxStatus {
|
|
6
|
+
DRAFT = "DRAFT",
|
|
7
|
+
ACTIVE = "ACTIVE",
|
|
8
|
+
INACTIVE = "INACTIVE",
|
|
9
|
+
ARCHIVED = "ARCHIVED"
|
|
10
|
+
}
|
|
11
|
+
declare enum BoxPurchaseStatus {
|
|
12
|
+
PENDING_PAYMENT = "PENDING_PAYMENT",
|
|
13
|
+
ACTIVE = "ACTIVE",
|
|
14
|
+
SUPERSEDED = "SUPERSEDED",
|
|
15
|
+
CANCELLED = "CANCELLED"
|
|
16
|
+
}
|
|
17
|
+
declare enum BoxPurchaseKind {
|
|
18
|
+
INITIAL = "INITIAL",
|
|
19
|
+
UPGRADE = "UPGRADE"
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const BoxTranslationInputSchema: z.ZodObject<{
|
|
23
|
+
locale: z.ZodEnum<{
|
|
24
|
+
readonly RU: "ru";
|
|
25
|
+
readonly KK: "kk";
|
|
26
|
+
readonly UZ: "uz";
|
|
27
|
+
readonly EN: "en";
|
|
28
|
+
}>;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const BoxStructureLevelInputSchema: z.ZodObject<{
|
|
33
|
+
level: z.ZodNumber;
|
|
34
|
+
percent: z.ZodNumber;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const CreateBoxRequestSchema: z.ZodObject<{
|
|
37
|
+
code: z.ZodString;
|
|
38
|
+
priceUsd: z.ZodString;
|
|
39
|
+
pvBudget: z.ZodString;
|
|
40
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
41
|
+
locale: z.ZodEnum<{
|
|
42
|
+
readonly RU: "ru";
|
|
43
|
+
readonly KK: "kk";
|
|
44
|
+
readonly UZ: "uz";
|
|
45
|
+
readonly EN: "en";
|
|
46
|
+
}>;
|
|
47
|
+
name: z.ZodString;
|
|
48
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
referralPercent: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
binaryPercent: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
extraBonusPercent: z.ZodDefault<z.ZodNumber>;
|
|
53
|
+
extraStatusVolumePercent: z.ZodDefault<z.ZodNumber>;
|
|
54
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
55
|
+
structureLevels: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
56
|
+
level: z.ZodNumber;
|
|
57
|
+
percent: z.ZodNumber;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const UpdateBoxRequestSchema: z.ZodObject<{
|
|
61
|
+
code: z.ZodOptional<z.ZodString>;
|
|
62
|
+
priceUsd: z.ZodOptional<z.ZodString>;
|
|
63
|
+
pvBudget: z.ZodOptional<z.ZodString>;
|
|
64
|
+
referralPercent: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
binaryPercent: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
extraBonusPercent: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
extraStatusVolumePercent: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
+
locale: z.ZodEnum<{
|
|
71
|
+
readonly RU: "ru";
|
|
72
|
+
readonly KK: "kk";
|
|
73
|
+
readonly UZ: "uz";
|
|
74
|
+
readonly EN: "en";
|
|
75
|
+
}>;
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
structureLevels: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
80
|
+
level: z.ZodNumber;
|
|
81
|
+
percent: z.ZodNumber;
|
|
82
|
+
}, z.core.$strip>>>;
|
|
83
|
+
version: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
declare const BoxPublicIdParamSchema: z.ZodObject<{
|
|
86
|
+
publicId: z.ZodUUID;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
declare const BoxListQuerySchema: z.ZodObject<{
|
|
89
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
90
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
91
|
+
search: z.ZodOptional<z.ZodString>;
|
|
92
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
93
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
94
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
95
|
+
asc: "asc";
|
|
96
|
+
desc: "desc";
|
|
97
|
+
}>>>;
|
|
98
|
+
status: z.ZodOptional<z.ZodEnum<typeof BoxStatus>>;
|
|
99
|
+
}, z.core.$strip>;
|
|
100
|
+
declare const BoxStructureLevelSchema: z.ZodObject<{
|
|
101
|
+
level: z.ZodNumber;
|
|
102
|
+
percent: z.ZodNumber;
|
|
103
|
+
publicId: z.ZodUUID;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
declare const BoxSchema: z.ZodObject<{
|
|
106
|
+
publicId: z.ZodUUID;
|
|
107
|
+
code: z.ZodString;
|
|
108
|
+
status: z.ZodEnum<typeof BoxStatus>;
|
|
109
|
+
priceUsd: z.ZodString;
|
|
110
|
+
pvBudget: z.ZodString;
|
|
111
|
+
referralPercent: z.ZodNumber;
|
|
112
|
+
binaryPercent: z.ZodNumber;
|
|
113
|
+
extraBonusPercent: z.ZodNumber;
|
|
114
|
+
extraStatusVolumePercent: z.ZodNumber;
|
|
115
|
+
sortOrder: z.ZodNumber;
|
|
116
|
+
version: z.ZodNumber;
|
|
117
|
+
purchaseCount: z.ZodNumber;
|
|
118
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
119
|
+
locale: z.ZodEnum<{
|
|
120
|
+
readonly RU: "ru";
|
|
121
|
+
readonly KK: "kk";
|
|
122
|
+
readonly UZ: "uz";
|
|
123
|
+
readonly EN: "en";
|
|
124
|
+
}>;
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
structureLevels: z.ZodArray<z.ZodObject<{
|
|
129
|
+
level: z.ZodNumber;
|
|
130
|
+
percent: z.ZodNumber;
|
|
131
|
+
publicId: z.ZodUUID;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
createdAt: z.ZodISODateTime;
|
|
134
|
+
updatedAt: z.ZodISODateTime;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
declare const LocalizedBoxSchema: z.ZodObject<{
|
|
137
|
+
sortOrder: z.ZodNumber;
|
|
138
|
+
code: z.ZodString;
|
|
139
|
+
createdAt: z.ZodISODateTime;
|
|
140
|
+
updatedAt: z.ZodISODateTime;
|
|
141
|
+
version: z.ZodNumber;
|
|
142
|
+
publicId: z.ZodUUID;
|
|
143
|
+
status: z.ZodEnum<typeof BoxStatus>;
|
|
144
|
+
priceUsd: z.ZodString;
|
|
145
|
+
pvBudget: z.ZodString;
|
|
146
|
+
referralPercent: z.ZodNumber;
|
|
147
|
+
binaryPercent: z.ZodNumber;
|
|
148
|
+
extraBonusPercent: z.ZodNumber;
|
|
149
|
+
extraStatusVolumePercent: z.ZodNumber;
|
|
150
|
+
structureLevels: z.ZodArray<z.ZodObject<{
|
|
151
|
+
level: z.ZodNumber;
|
|
152
|
+
percent: z.ZodNumber;
|
|
153
|
+
publicId: z.ZodUUID;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
description: z.ZodNullable<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
declare const BoxListResponseSchema: z.ZodObject<{
|
|
159
|
+
items: z.ZodArray<z.ZodObject<{
|
|
160
|
+
publicId: z.ZodUUID;
|
|
161
|
+
code: z.ZodString;
|
|
162
|
+
status: z.ZodEnum<typeof BoxStatus>;
|
|
163
|
+
priceUsd: z.ZodString;
|
|
164
|
+
pvBudget: z.ZodString;
|
|
165
|
+
referralPercent: z.ZodNumber;
|
|
166
|
+
binaryPercent: z.ZodNumber;
|
|
167
|
+
extraBonusPercent: z.ZodNumber;
|
|
168
|
+
extraStatusVolumePercent: z.ZodNumber;
|
|
169
|
+
sortOrder: z.ZodNumber;
|
|
170
|
+
version: z.ZodNumber;
|
|
171
|
+
purchaseCount: z.ZodNumber;
|
|
172
|
+
translations: z.ZodArray<z.ZodObject<{
|
|
173
|
+
locale: z.ZodEnum<{
|
|
174
|
+
readonly RU: "ru";
|
|
175
|
+
readonly KK: "kk";
|
|
176
|
+
readonly UZ: "uz";
|
|
177
|
+
readonly EN: "en";
|
|
178
|
+
}>;
|
|
179
|
+
name: z.ZodString;
|
|
180
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
structureLevels: z.ZodArray<z.ZodObject<{
|
|
183
|
+
level: z.ZodNumber;
|
|
184
|
+
percent: z.ZodNumber;
|
|
185
|
+
publicId: z.ZodUUID;
|
|
186
|
+
}, z.core.$strip>>;
|
|
187
|
+
createdAt: z.ZodISODateTime;
|
|
188
|
+
updatedAt: z.ZodISODateTime;
|
|
189
|
+
}, z.core.$strip>>;
|
|
190
|
+
meta: z.ZodObject<{
|
|
191
|
+
page: z.ZodNumber;
|
|
192
|
+
limit: z.ZodNumber;
|
|
193
|
+
total: z.ZodNumber;
|
|
194
|
+
pageCount: z.ZodNumber;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
}, z.core.$strip>;
|
|
197
|
+
declare const LocalizedBoxListResponseSchema: z.ZodObject<{
|
|
198
|
+
items: z.ZodArray<z.ZodObject<{
|
|
199
|
+
sortOrder: z.ZodNumber;
|
|
200
|
+
code: z.ZodString;
|
|
201
|
+
createdAt: z.ZodISODateTime;
|
|
202
|
+
updatedAt: z.ZodISODateTime;
|
|
203
|
+
version: z.ZodNumber;
|
|
204
|
+
publicId: z.ZodUUID;
|
|
205
|
+
status: z.ZodEnum<typeof BoxStatus>;
|
|
206
|
+
priceUsd: z.ZodString;
|
|
207
|
+
pvBudget: z.ZodString;
|
|
208
|
+
referralPercent: z.ZodNumber;
|
|
209
|
+
binaryPercent: z.ZodNumber;
|
|
210
|
+
extraBonusPercent: z.ZodNumber;
|
|
211
|
+
extraStatusVolumePercent: z.ZodNumber;
|
|
212
|
+
structureLevels: z.ZodArray<z.ZodObject<{
|
|
213
|
+
level: z.ZodNumber;
|
|
214
|
+
percent: z.ZodNumber;
|
|
215
|
+
publicId: z.ZodUUID;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
name: z.ZodString;
|
|
218
|
+
description: z.ZodNullable<z.ZodString>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
meta: z.ZodObject<{
|
|
221
|
+
page: z.ZodNumber;
|
|
222
|
+
limit: z.ZodNumber;
|
|
223
|
+
total: z.ZodNumber;
|
|
224
|
+
pageCount: z.ZodNumber;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>;
|
|
227
|
+
declare const BoxSelectionLineSchema: z.ZodObject<{
|
|
228
|
+
variantPublicId: z.ZodUUID;
|
|
229
|
+
quantity: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>;
|
|
231
|
+
declare const BoxSelectionSchema: z.ZodObject<{
|
|
232
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
233
|
+
variantPublicId: z.ZodUUID;
|
|
234
|
+
quantity: z.ZodNumber;
|
|
235
|
+
}, z.core.$strip>>;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
declare const BoxCheckoutWarehouseRequestSchema: z.ZodObject<{
|
|
238
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
239
|
+
variantPublicId: z.ZodUUID;
|
|
240
|
+
quantity: z.ZodNumber;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
countryCode: z.ZodString;
|
|
243
|
+
city: z.ZodString;
|
|
244
|
+
}, z.core.$strip>;
|
|
245
|
+
declare const BoxCheckoutSnapshotSchema: z.ZodObject<{
|
|
246
|
+
box: z.ZodObject<{
|
|
247
|
+
sortOrder: z.ZodNumber;
|
|
248
|
+
code: z.ZodString;
|
|
249
|
+
createdAt: z.ZodISODateTime;
|
|
250
|
+
updatedAt: z.ZodISODateTime;
|
|
251
|
+
version: z.ZodNumber;
|
|
252
|
+
publicId: z.ZodUUID;
|
|
253
|
+
status: z.ZodEnum<typeof BoxStatus>;
|
|
254
|
+
priceUsd: z.ZodString;
|
|
255
|
+
pvBudget: z.ZodString;
|
|
256
|
+
referralPercent: z.ZodNumber;
|
|
257
|
+
binaryPercent: z.ZodNumber;
|
|
258
|
+
extraBonusPercent: z.ZodNumber;
|
|
259
|
+
extraStatusVolumePercent: z.ZodNumber;
|
|
260
|
+
structureLevels: z.ZodArray<z.ZodObject<{
|
|
261
|
+
level: z.ZodNumber;
|
|
262
|
+
percent: z.ZodNumber;
|
|
263
|
+
publicId: z.ZodUUID;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
name: z.ZodString;
|
|
266
|
+
description: z.ZodNullable<z.ZodString>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
products: z.ZodArray<z.ZodObject<{
|
|
269
|
+
sortOrder: z.ZodNumber;
|
|
270
|
+
code: z.ZodString;
|
|
271
|
+
createdAt: z.ZodString;
|
|
272
|
+
updatedAt: z.ZodString;
|
|
273
|
+
publicId: z.ZodUUID;
|
|
274
|
+
status: z.ZodEnum<{
|
|
275
|
+
readonly DRAFT: "DRAFT";
|
|
276
|
+
readonly ACTIVE: "ACTIVE";
|
|
277
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
278
|
+
}>;
|
|
279
|
+
slug: z.ZodString;
|
|
280
|
+
primaryCategoryPublicId: z.ZodUUID;
|
|
281
|
+
manufacturerCountryCode: z.ZodString;
|
|
282
|
+
manufacturerName: z.ZodNullable<z.ZodString>;
|
|
283
|
+
sgr: z.ZodNullable<z.ZodString>;
|
|
284
|
+
isFeatured: z.ZodBoolean;
|
|
285
|
+
isBoxEligible: z.ZodBoolean;
|
|
286
|
+
publishedAt: z.ZodNullable<z.ZodString>;
|
|
287
|
+
media: z.ZodArray<z.ZodObject<{
|
|
288
|
+
publicId: z.ZodUUID;
|
|
289
|
+
type: z.ZodEnum<{
|
|
290
|
+
readonly IMAGE: "IMAGE";
|
|
291
|
+
readonly UPLOADED_VIDEO: "UPLOADED_VIDEO";
|
|
292
|
+
readonly EXTERNAL_VIDEO: "EXTERNAL_VIDEO";
|
|
293
|
+
}>;
|
|
294
|
+
role: z.ZodEnum<{
|
|
295
|
+
readonly COVER: "COVER";
|
|
296
|
+
readonly GALLERY: "GALLERY";
|
|
297
|
+
}>;
|
|
298
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
299
|
+
contentUrl: z.ZodNullable<z.ZodString>;
|
|
300
|
+
mimeType: z.ZodNullable<z.ZodString>;
|
|
301
|
+
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
302
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
303
|
+
sortOrder: z.ZodNumber;
|
|
304
|
+
createdAt: z.ZodString;
|
|
305
|
+
updatedAt: z.ZodString;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
isAvailable: z.ZodBoolean;
|
|
308
|
+
name: z.ZodString;
|
|
309
|
+
shortDescription: z.ZodString;
|
|
310
|
+
description: z.ZodString;
|
|
311
|
+
composition: z.ZodNullable<z.ZodString>;
|
|
312
|
+
usageInstructions: z.ZodNullable<z.ZodString>;
|
|
313
|
+
features: z.ZodNullable<z.ZodString>;
|
|
314
|
+
contraindications: z.ZodNullable<z.ZodString>;
|
|
315
|
+
shelfLife: z.ZodString;
|
|
316
|
+
packageContents: z.ZodNullable<z.ZodString>;
|
|
317
|
+
categories: z.ZodArray<z.ZodObject<{
|
|
318
|
+
publicId: z.ZodUUID;
|
|
319
|
+
code: z.ZodString;
|
|
320
|
+
slug: z.ZodString;
|
|
321
|
+
name: z.ZodString;
|
|
322
|
+
description: z.ZodNullable<z.ZodString>;
|
|
323
|
+
}, z.core.$strip>>;
|
|
324
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
325
|
+
sku: z.ZodString;
|
|
326
|
+
barcode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
327
|
+
quantity: z.ZodString;
|
|
328
|
+
unit: z.ZodEnum<{
|
|
329
|
+
readonly CAPSULE: "CAPSULE";
|
|
330
|
+
readonly GRAM: "GRAM";
|
|
331
|
+
readonly MILLILITER: "MILLILITER";
|
|
332
|
+
readonly PIECE: "PIECE";
|
|
333
|
+
}>;
|
|
334
|
+
netWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
335
|
+
priceUsd: z.ZodString;
|
|
336
|
+
pv: z.ZodString;
|
|
337
|
+
shippingWeightGrams: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
338
|
+
lengthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
339
|
+
widthMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
340
|
+
heightMm: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
341
|
+
isDefault: z.ZodDefault<z.ZodBoolean>;
|
|
342
|
+
isActive: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
+
sortOrder: z.ZodDefault<z.ZodNumber>;
|
|
344
|
+
publicId: z.ZodUUID;
|
|
345
|
+
version: z.ZodNumber;
|
|
346
|
+
createdAt: z.ZodString;
|
|
347
|
+
updatedAt: z.ZodString;
|
|
348
|
+
isAvailable: z.ZodBoolean;
|
|
349
|
+
}, z.core.$strip>>;
|
|
350
|
+
}, z.core.$strip>>;
|
|
351
|
+
locations: z.ZodArray<z.ZodObject<{
|
|
352
|
+
countryCode: z.ZodString;
|
|
353
|
+
country: z.ZodString;
|
|
354
|
+
cities: z.ZodArray<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
mainWallet: z.ZodObject<{
|
|
357
|
+
balanceUsd: z.ZodString;
|
|
358
|
+
availableBalanceUsd: z.ZodString;
|
|
359
|
+
}, z.core.$strip>;
|
|
360
|
+
paymentMethods: z.ZodArray<z.ZodEnum<typeof OrderPaymentMethod>>;
|
|
361
|
+
reserveDurationHours: z.ZodLiteral<24>;
|
|
362
|
+
}, z.core.$strip>;
|
|
363
|
+
declare const BoxCheckoutWarehouseListSchema: z.ZodArray<z.ZodObject<{
|
|
364
|
+
publicId: z.ZodUUID;
|
|
365
|
+
code: z.ZodString;
|
|
366
|
+
name: z.ZodString;
|
|
367
|
+
countryCode: z.ZodString;
|
|
368
|
+
country: z.ZodString;
|
|
369
|
+
city: z.ZodString;
|
|
370
|
+
address: z.ZodString;
|
|
371
|
+
phoneNumber: z.ZodString;
|
|
372
|
+
mapUrl: z.ZodURL;
|
|
373
|
+
timezone: z.ZodString;
|
|
374
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
375
|
+
readonly MONDAY: "MONDAY";
|
|
376
|
+
readonly TUESDAY: "TUESDAY";
|
|
377
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
378
|
+
readonly THURSDAY: "THURSDAY";
|
|
379
|
+
readonly FRIDAY: "FRIDAY";
|
|
380
|
+
readonly SATURDAY: "SATURDAY";
|
|
381
|
+
readonly SUNDAY: "SUNDAY";
|
|
382
|
+
}>, z.ZodObject<{
|
|
383
|
+
isOpen: z.ZodBoolean;
|
|
384
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
385
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
canFulfill: z.ZodBoolean;
|
|
388
|
+
items: z.ZodArray<z.ZodObject<{
|
|
389
|
+
variantPublicId: z.ZodUUID;
|
|
390
|
+
requestedQuantity: z.ZodNumber;
|
|
391
|
+
availableQuantity: z.ZodNumber;
|
|
392
|
+
availability: z.ZodEnum<typeof OrderStockAvailability>;
|
|
393
|
+
}, z.core.$strip>>;
|
|
394
|
+
}, z.core.$strip>>;
|
|
395
|
+
declare const CreateBoxOrderRequestSchema: z.ZodObject<{
|
|
396
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
397
|
+
variantPublicId: z.ZodUUID;
|
|
398
|
+
quantity: z.ZodNumber;
|
|
399
|
+
}, z.core.$strip>>;
|
|
400
|
+
boxPublicId: z.ZodUUID;
|
|
401
|
+
warehousePublicId: z.ZodUUID;
|
|
402
|
+
deliveryMethod: z.ZodLiteral<OrderDeliveryMethod>;
|
|
403
|
+
paymentMethod: z.ZodEnum<typeof OrderPaymentMethod>;
|
|
404
|
+
walletAmountUsd: z.ZodOptional<z.ZodString>;
|
|
405
|
+
idempotencyKey: z.ZodUUID;
|
|
406
|
+
}, z.core.$strip>;
|
|
407
|
+
declare const BoxPurchaseSchema: z.ZodObject<{
|
|
408
|
+
publicId: z.ZodUUID;
|
|
409
|
+
boxPublicId: z.ZodUUID;
|
|
410
|
+
orderPublicId: z.ZodUUID;
|
|
411
|
+
boxCode: z.ZodString;
|
|
412
|
+
boxName: z.ZodString;
|
|
413
|
+
kind: z.ZodEnum<typeof BoxPurchaseKind>;
|
|
414
|
+
status: z.ZodEnum<typeof BoxPurchaseStatus>;
|
|
415
|
+
boxVersion: z.ZodNumber;
|
|
416
|
+
priceUsd: z.ZodString;
|
|
417
|
+
pvBudget: z.ZodString;
|
|
418
|
+
pvDelta: z.ZodString;
|
|
419
|
+
activatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
420
|
+
createdAt: z.ZodISODateTime;
|
|
421
|
+
}, z.core.$strip>;
|
|
422
|
+
|
|
423
|
+
type CreateBoxRequest = z.infer<typeof CreateBoxRequestSchema>;
|
|
424
|
+
type UpdateBoxRequest = z.infer<typeof UpdateBoxRequestSchema>;
|
|
425
|
+
type BoxListQuery = z.infer<typeof BoxListQuerySchema>;
|
|
426
|
+
type BoxResponse = z.infer<typeof BoxSchema>;
|
|
427
|
+
type BoxListResponse = PaginatedResponse<BoxResponse>;
|
|
428
|
+
type LocalizedBoxResponse = z.infer<typeof LocalizedBoxSchema>;
|
|
429
|
+
type LocalizedBoxListResponse = PaginatedResponse<LocalizedBoxResponse>;
|
|
430
|
+
type BoxSelection = z.infer<typeof BoxSelectionSchema>;
|
|
431
|
+
type BoxCheckoutWarehouseRequest = z.infer<typeof BoxCheckoutWarehouseRequestSchema>;
|
|
432
|
+
type BoxCheckoutWarehouseListResponse = z.infer<typeof BoxCheckoutWarehouseListSchema>;
|
|
433
|
+
type BoxCheckoutSnapshotResponse = z.infer<typeof BoxCheckoutSnapshotSchema>;
|
|
434
|
+
type CreateBoxOrderRequest = z.infer<typeof CreateBoxOrderRequestSchema>;
|
|
435
|
+
type BoxPurchaseResponse = z.infer<typeof BoxPurchaseSchema>;
|
|
436
|
+
|
|
437
|
+
export { type BoxCheckoutSnapshotResponse, BoxCheckoutSnapshotSchema, type BoxCheckoutWarehouseListResponse, BoxCheckoutWarehouseListSchema, type BoxCheckoutWarehouseRequest, BoxCheckoutWarehouseRequestSchema, type BoxListQuery, BoxListQuerySchema, type BoxListResponse, BoxListResponseSchema, BoxPublicIdParamSchema, BoxPurchaseKind, type BoxPurchaseResponse, BoxPurchaseSchema, BoxPurchaseStatus, type BoxResponse, BoxSchema, type BoxSelection, BoxSelectionLineSchema, BoxSelectionSchema, BoxStatus, BoxStructureLevelInputSchema, BoxStructureLevelSchema, BoxTranslationInputSchema, type CreateBoxOrderRequest, CreateBoxOrderRequestSchema, type CreateBoxRequest, CreateBoxRequestSchema, type LocalizedBoxListResponse, LocalizedBoxListResponseSchema, type LocalizedBoxResponse, LocalizedBoxSchema, type UpdateBoxRequest, UpdateBoxRequestSchema };
|