aivilife-contracts 4.3.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 +18 -0
- package/dist/catalog/index.d.mts +565 -2
- package/dist/catalog/index.d.ts +565 -2
- package/dist/catalog/index.js +17 -8
- package/dist/catalog/index.js.map +1 -1
- package/dist/catalog/index.mjs +17 -8
- package/dist/catalog/index.mjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +394 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +360 -9
- 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 +6 -1
- package/dist/index-_kOAmyGe.d.mts +0 -585
- package/dist/index-_kOAmyGe.d.ts +0 -585
|
@@ -0,0 +1,635 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { a as PaginatedResponse } from '../pagination.types-BRhyN9z6.mjs';
|
|
3
|
+
|
|
4
|
+
declare const WarehouseStatus: {
|
|
5
|
+
readonly DRAFT: "DRAFT";
|
|
6
|
+
readonly ACTIVE: "ACTIVE";
|
|
7
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
8
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
9
|
+
};
|
|
10
|
+
type WarehouseStatus = (typeof WarehouseStatus)[keyof typeof WarehouseStatus];
|
|
11
|
+
declare const WarehouseAssignmentType: {
|
|
12
|
+
readonly STAFF: "STAFF";
|
|
13
|
+
readonly CUSTOMER_DEFAULT: "CUSTOMER_DEFAULT";
|
|
14
|
+
};
|
|
15
|
+
type WarehouseAssignmentType = (typeof WarehouseAssignmentType)[keyof typeof WarehouseAssignmentType];
|
|
16
|
+
declare const WarehouseRequestType: {
|
|
17
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
18
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
19
|
+
readonly TRANSFER: "TRANSFER";
|
|
20
|
+
};
|
|
21
|
+
type WarehouseRequestType = (typeof WarehouseRequestType)[keyof typeof WarehouseRequestType];
|
|
22
|
+
declare const WarehouseRequestStatus: {
|
|
23
|
+
readonly DRAFT: "DRAFT";
|
|
24
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
25
|
+
readonly APPROVED: "APPROVED";
|
|
26
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
27
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
28
|
+
readonly COMPLETED: "COMPLETED";
|
|
29
|
+
readonly REJECTED: "REJECTED";
|
|
30
|
+
readonly CANCELLED: "CANCELLED";
|
|
31
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
32
|
+
readonly FAILED: "FAILED";
|
|
33
|
+
};
|
|
34
|
+
type WarehouseRequestStatus = (typeof WarehouseRequestStatus)[keyof typeof WarehouseRequestStatus];
|
|
35
|
+
declare const WarehouseMovementType: {
|
|
36
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
37
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
38
|
+
readonly TRANSFER_OUT: "TRANSFER_OUT";
|
|
39
|
+
readonly TRANSFER_IN: "TRANSFER_IN";
|
|
40
|
+
readonly ORDER_ISSUE: "ORDER_ISSUE";
|
|
41
|
+
};
|
|
42
|
+
type WarehouseMovementType = (typeof WarehouseMovementType)[keyof typeof WarehouseMovementType];
|
|
43
|
+
declare const WarehouseWriteOffReason: {
|
|
44
|
+
readonly DEFECT: "DEFECT";
|
|
45
|
+
readonly DAMAGED: "DAMAGED";
|
|
46
|
+
readonly EXPIRED: "EXPIRED";
|
|
47
|
+
readonly LOST: "LOST";
|
|
48
|
+
readonly INVENTORY_SHORTAGE: "INVENTORY_SHORTAGE";
|
|
49
|
+
readonly OTHER: "OTHER";
|
|
50
|
+
};
|
|
51
|
+
type WarehouseWriteOffReason = (typeof WarehouseWriteOffReason)[keyof typeof WarehouseWriteOffReason];
|
|
52
|
+
declare const WarehouseWeekday: {
|
|
53
|
+
readonly MONDAY: "MONDAY";
|
|
54
|
+
readonly TUESDAY: "TUESDAY";
|
|
55
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
56
|
+
readonly THURSDAY: "THURSDAY";
|
|
57
|
+
readonly FRIDAY: "FRIDAY";
|
|
58
|
+
readonly SATURDAY: "SATURDAY";
|
|
59
|
+
readonly SUNDAY: "SUNDAY";
|
|
60
|
+
};
|
|
61
|
+
type WarehouseWeekday = (typeof WarehouseWeekday)[keyof typeof WarehouseWeekday];
|
|
62
|
+
|
|
63
|
+
declare const WarehouseDayScheduleSchema: z.ZodObject<{
|
|
64
|
+
isOpen: z.ZodBoolean;
|
|
65
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
66
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
declare const WarehouseWeeklyScheduleSchema: z.ZodRecord<z.ZodEnum<{
|
|
69
|
+
readonly MONDAY: "MONDAY";
|
|
70
|
+
readonly TUESDAY: "TUESDAY";
|
|
71
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
72
|
+
readonly THURSDAY: "THURSDAY";
|
|
73
|
+
readonly FRIDAY: "FRIDAY";
|
|
74
|
+
readonly SATURDAY: "SATURDAY";
|
|
75
|
+
readonly SUNDAY: "SUNDAY";
|
|
76
|
+
}>, z.ZodObject<{
|
|
77
|
+
isOpen: z.ZodBoolean;
|
|
78
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
79
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
declare const CreateWarehouseRequestSchema: z.ZodObject<{
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
countryCode: z.ZodString;
|
|
84
|
+
country: z.ZodString;
|
|
85
|
+
city: z.ZodString;
|
|
86
|
+
address: z.ZodString;
|
|
87
|
+
phoneNumber: z.ZodString;
|
|
88
|
+
mapUrl: z.ZodURL;
|
|
89
|
+
timezone: z.ZodString;
|
|
90
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
91
|
+
readonly MONDAY: "MONDAY";
|
|
92
|
+
readonly TUESDAY: "TUESDAY";
|
|
93
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
94
|
+
readonly THURSDAY: "THURSDAY";
|
|
95
|
+
readonly FRIDAY: "FRIDAY";
|
|
96
|
+
readonly SATURDAY: "SATURDAY";
|
|
97
|
+
readonly SUNDAY: "SUNDAY";
|
|
98
|
+
}>, z.ZodObject<{
|
|
99
|
+
isOpen: z.ZodBoolean;
|
|
100
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
101
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
103
|
+
code: z.ZodString;
|
|
104
|
+
isPickupPoint: z.ZodDefault<z.ZodBoolean>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
declare const UpdateWarehouseRequestSchema: z.ZodObject<{
|
|
107
|
+
name: z.ZodOptional<z.ZodString>;
|
|
108
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
109
|
+
country: z.ZodOptional<z.ZodString>;
|
|
110
|
+
city: z.ZodOptional<z.ZodString>;
|
|
111
|
+
address: z.ZodOptional<z.ZodString>;
|
|
112
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
113
|
+
mapUrl: z.ZodOptional<z.ZodURL>;
|
|
114
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
115
|
+
schedule: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
116
|
+
readonly MONDAY: "MONDAY";
|
|
117
|
+
readonly TUESDAY: "TUESDAY";
|
|
118
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
119
|
+
readonly THURSDAY: "THURSDAY";
|
|
120
|
+
readonly FRIDAY: "FRIDAY";
|
|
121
|
+
readonly SATURDAY: "SATURDAY";
|
|
122
|
+
readonly SUNDAY: "SUNDAY";
|
|
123
|
+
}>, z.ZodObject<{
|
|
124
|
+
isOpen: z.ZodBoolean;
|
|
125
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
126
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>>>;
|
|
128
|
+
isPickupPoint: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
+
version: z.ZodNonOptional<z.ZodNumber>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
declare const WarehousePublicIdParamSchema: z.ZodObject<{
|
|
132
|
+
publicId: z.ZodUUID;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
declare const WarehouseAssignmentParamSchema: z.ZodObject<{
|
|
135
|
+
publicId: z.ZodUUID;
|
|
136
|
+
assignmentPublicId: z.ZodUUID;
|
|
137
|
+
}, z.core.$strip>;
|
|
138
|
+
declare const WarehouseListQuerySchema: z.ZodObject<{
|
|
139
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
140
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
141
|
+
search: z.ZodOptional<z.ZodString>;
|
|
142
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
143
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
144
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
145
|
+
asc: "asc";
|
|
146
|
+
desc: "desc";
|
|
147
|
+
}>>>;
|
|
148
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
149
|
+
readonly DRAFT: "DRAFT";
|
|
150
|
+
readonly ACTIVE: "ACTIVE";
|
|
151
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
152
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
153
|
+
}>>;
|
|
154
|
+
countryCode: z.ZodOptional<z.ZodString>;
|
|
155
|
+
city: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
declare const WarehouseUserSearchQuerySchema: z.ZodObject<{
|
|
158
|
+
search: z.ZodString;
|
|
159
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
160
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
declare const AssignWarehouseUserRequestSchema: z.ZodObject<{
|
|
163
|
+
userUuid: z.ZodString;
|
|
164
|
+
type: z.ZodEnum<{
|
|
165
|
+
readonly STAFF: "STAFF";
|
|
166
|
+
readonly CUSTOMER_DEFAULT: "CUSTOMER_DEFAULT";
|
|
167
|
+
}>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
declare const WarehouseRequestLineInputSchema: z.ZodObject<{
|
|
170
|
+
variantPublicId: z.ZodUUID;
|
|
171
|
+
quantity: z.ZodNumber;
|
|
172
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
173
|
+
batchNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
174
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
declare const CreateWarehouseOperationRequestSchema: z.ZodObject<{
|
|
177
|
+
type: z.ZodEnum<{
|
|
178
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
179
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
180
|
+
readonly TRANSFER: "TRANSFER";
|
|
181
|
+
}>;
|
|
182
|
+
sourceWarehousePublicId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
183
|
+
destinationWarehousePublicId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
184
|
+
writeOffReason: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
185
|
+
readonly DEFECT: "DEFECT";
|
|
186
|
+
readonly DAMAGED: "DAMAGED";
|
|
187
|
+
readonly EXPIRED: "EXPIRED";
|
|
188
|
+
readonly LOST: "LOST";
|
|
189
|
+
readonly INVENTORY_SHORTAGE: "INVENTORY_SHORTAGE";
|
|
190
|
+
readonly OTHER: "OTHER";
|
|
191
|
+
}>>>;
|
|
192
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
193
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
194
|
+
variantPublicId: z.ZodUUID;
|
|
195
|
+
quantity: z.ZodNumber;
|
|
196
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
197
|
+
batchNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
}, z.core.$strip>>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
declare const WarehouseOperationPublicIdParamSchema: z.ZodObject<{
|
|
202
|
+
publicId: z.ZodUUID;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
declare const WarehouseOperationAttachmentParamSchema: z.ZodObject<{
|
|
205
|
+
publicId: z.ZodUUID;
|
|
206
|
+
attachmentPublicId: z.ZodUUID;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
declare const WarehouseOperationListQuerySchema: z.ZodObject<{
|
|
209
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
210
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
211
|
+
search: z.ZodOptional<z.ZodString>;
|
|
212
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
213
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
214
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
215
|
+
asc: "asc";
|
|
216
|
+
desc: "desc";
|
|
217
|
+
}>>>;
|
|
218
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
219
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
220
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
221
|
+
readonly TRANSFER: "TRANSFER";
|
|
222
|
+
}>>;
|
|
223
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
224
|
+
readonly DRAFT: "DRAFT";
|
|
225
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
226
|
+
readonly APPROVED: "APPROVED";
|
|
227
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
228
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
229
|
+
readonly COMPLETED: "COMPLETED";
|
|
230
|
+
readonly REJECTED: "REJECTED";
|
|
231
|
+
readonly CANCELLED: "CANCELLED";
|
|
232
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
233
|
+
readonly FAILED: "FAILED";
|
|
234
|
+
}>>;
|
|
235
|
+
warehousePublicId: z.ZodOptional<z.ZodUUID>;
|
|
236
|
+
createdByUserId: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
declare const WarehouseOperationCommentSchema: z.ZodObject<{
|
|
239
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
declare const RejectWarehouseOperationRequestSchema: z.ZodObject<{
|
|
242
|
+
comment: z.ZodString;
|
|
243
|
+
}, z.core.$strip>;
|
|
244
|
+
declare const ExecuteWarehouseOperationRequestSchema: z.ZodObject<{
|
|
245
|
+
idempotencyKey: z.ZodUUID;
|
|
246
|
+
comment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
declare const ReportWarehouseDiscrepancyRequestSchema: z.ZodObject<{
|
|
249
|
+
comment: z.ZodString;
|
|
250
|
+
}, z.core.$strip>;
|
|
251
|
+
declare const WarehouseStockListQuerySchema: z.ZodObject<{
|
|
252
|
+
page: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
253
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
254
|
+
search: z.ZodOptional<z.ZodString>;
|
|
255
|
+
dateFrom: z.ZodOptional<z.ZodString>;
|
|
256
|
+
dateTo: z.ZodOptional<z.ZodString>;
|
|
257
|
+
sortOrder: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
258
|
+
asc: "asc";
|
|
259
|
+
desc: "desc";
|
|
260
|
+
}>>>;
|
|
261
|
+
warehousePublicId: z.ZodOptional<z.ZodUUID>;
|
|
262
|
+
variantPublicId: z.ZodOptional<z.ZodUUID>;
|
|
263
|
+
expired: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodPipe<z.ZodEnum<{
|
|
264
|
+
true: "true";
|
|
265
|
+
false: "false";
|
|
266
|
+
}>, z.ZodTransform<boolean, "true" | "false">>]>>;
|
|
267
|
+
expiresBefore: z.ZodOptional<z.ZodISODate>;
|
|
268
|
+
}, z.core.$strip>;
|
|
269
|
+
declare const WarehouseSchema: z.ZodObject<{
|
|
270
|
+
publicId: z.ZodUUID;
|
|
271
|
+
code: z.ZodString;
|
|
272
|
+
name: z.ZodString;
|
|
273
|
+
status: z.ZodEnum<{
|
|
274
|
+
readonly DRAFT: "DRAFT";
|
|
275
|
+
readonly ACTIVE: "ACTIVE";
|
|
276
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
277
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
278
|
+
}>;
|
|
279
|
+
countryCode: z.ZodString;
|
|
280
|
+
country: z.ZodString;
|
|
281
|
+
city: z.ZodString;
|
|
282
|
+
address: z.ZodString;
|
|
283
|
+
phoneNumber: z.ZodString;
|
|
284
|
+
mapUrl: z.ZodString;
|
|
285
|
+
timezone: z.ZodString;
|
|
286
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
287
|
+
readonly MONDAY: "MONDAY";
|
|
288
|
+
readonly TUESDAY: "TUESDAY";
|
|
289
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
290
|
+
readonly THURSDAY: "THURSDAY";
|
|
291
|
+
readonly FRIDAY: "FRIDAY";
|
|
292
|
+
readonly SATURDAY: "SATURDAY";
|
|
293
|
+
readonly SUNDAY: "SUNDAY";
|
|
294
|
+
}>, z.ZodObject<{
|
|
295
|
+
isOpen: z.ZodBoolean;
|
|
296
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
297
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>>;
|
|
299
|
+
isPickupPoint: z.ZodBoolean;
|
|
300
|
+
version: z.ZodNumber;
|
|
301
|
+
createdAt: z.ZodISODateTime;
|
|
302
|
+
updatedAt: z.ZodISODateTime;
|
|
303
|
+
}, z.core.$strip>;
|
|
304
|
+
declare const WarehouseUserLookupSchema: z.ZodObject<{
|
|
305
|
+
id: z.ZodNumber;
|
|
306
|
+
uuid: z.ZodString;
|
|
307
|
+
login: z.ZodString;
|
|
308
|
+
firstName: z.ZodString;
|
|
309
|
+
lastName: z.ZodString;
|
|
310
|
+
email: z.ZodEmail;
|
|
311
|
+
role: z.ZodString;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
declare const WarehouseAssignmentSchema: z.ZodObject<{
|
|
314
|
+
publicId: z.ZodUUID;
|
|
315
|
+
warehousePublicId: z.ZodUUID;
|
|
316
|
+
type: z.ZodEnum<{
|
|
317
|
+
readonly STAFF: "STAFF";
|
|
318
|
+
readonly CUSTOMER_DEFAULT: "CUSTOMER_DEFAULT";
|
|
319
|
+
}>;
|
|
320
|
+
user: z.ZodObject<{
|
|
321
|
+
id: z.ZodNumber;
|
|
322
|
+
uuid: z.ZodString;
|
|
323
|
+
login: z.ZodString;
|
|
324
|
+
firstName: z.ZodString;
|
|
325
|
+
lastName: z.ZodString;
|
|
326
|
+
email: z.ZodEmail;
|
|
327
|
+
role: z.ZodString;
|
|
328
|
+
}, z.core.$strip>;
|
|
329
|
+
assignedByLogin: z.ZodString;
|
|
330
|
+
assignedAt: z.ZodISODateTime;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
declare const WarehouseOperationLineSchema: z.ZodObject<{
|
|
333
|
+
publicId: z.ZodUUID;
|
|
334
|
+
variantPublicId: z.ZodUUID;
|
|
335
|
+
sku: z.ZodString;
|
|
336
|
+
quantity: z.ZodNumber;
|
|
337
|
+
expiresAt: z.ZodNullable<z.ZodISODate>;
|
|
338
|
+
batchNumber: z.ZodNullable<z.ZodString>;
|
|
339
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
340
|
+
}, z.core.$strip>;
|
|
341
|
+
declare const WarehouseOperationEventSchema: z.ZodObject<{
|
|
342
|
+
publicId: z.ZodUUID;
|
|
343
|
+
fromStatus: z.ZodNullable<z.ZodEnum<{
|
|
344
|
+
readonly DRAFT: "DRAFT";
|
|
345
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
346
|
+
readonly APPROVED: "APPROVED";
|
|
347
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
348
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
349
|
+
readonly COMPLETED: "COMPLETED";
|
|
350
|
+
readonly REJECTED: "REJECTED";
|
|
351
|
+
readonly CANCELLED: "CANCELLED";
|
|
352
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
353
|
+
readonly FAILED: "FAILED";
|
|
354
|
+
}>>;
|
|
355
|
+
toStatus: z.ZodEnum<{
|
|
356
|
+
readonly DRAFT: "DRAFT";
|
|
357
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
358
|
+
readonly APPROVED: "APPROVED";
|
|
359
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
360
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
361
|
+
readonly COMPLETED: "COMPLETED";
|
|
362
|
+
readonly REJECTED: "REJECTED";
|
|
363
|
+
readonly CANCELLED: "CANCELLED";
|
|
364
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
365
|
+
readonly FAILED: "FAILED";
|
|
366
|
+
}>;
|
|
367
|
+
actorUserId: z.ZodNumber;
|
|
368
|
+
actorLogin: z.ZodString;
|
|
369
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
370
|
+
createdAt: z.ZodISODateTime;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
declare const WarehouseOperationAttachmentSchema: z.ZodObject<{
|
|
373
|
+
publicId: z.ZodUUID;
|
|
374
|
+
mimeType: z.ZodString;
|
|
375
|
+
sizeBytes: z.ZodNumber;
|
|
376
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
377
|
+
uploadedByLogin: z.ZodString;
|
|
378
|
+
contentUrl: z.ZodString;
|
|
379
|
+
createdAt: z.ZodISODateTime;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
declare const WarehouseOperationSchema: z.ZodObject<{
|
|
382
|
+
publicId: z.ZodUUID;
|
|
383
|
+
type: z.ZodEnum<{
|
|
384
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
385
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
386
|
+
readonly TRANSFER: "TRANSFER";
|
|
387
|
+
}>;
|
|
388
|
+
status: z.ZodEnum<{
|
|
389
|
+
readonly DRAFT: "DRAFT";
|
|
390
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
391
|
+
readonly APPROVED: "APPROVED";
|
|
392
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
393
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
394
|
+
readonly COMPLETED: "COMPLETED";
|
|
395
|
+
readonly REJECTED: "REJECTED";
|
|
396
|
+
readonly CANCELLED: "CANCELLED";
|
|
397
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
398
|
+
readonly FAILED: "FAILED";
|
|
399
|
+
}>;
|
|
400
|
+
sourceWarehouse: z.ZodNullable<z.ZodObject<{
|
|
401
|
+
publicId: z.ZodUUID;
|
|
402
|
+
code: z.ZodString;
|
|
403
|
+
name: z.ZodString;
|
|
404
|
+
status: z.ZodEnum<{
|
|
405
|
+
readonly DRAFT: "DRAFT";
|
|
406
|
+
readonly ACTIVE: "ACTIVE";
|
|
407
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
408
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
409
|
+
}>;
|
|
410
|
+
countryCode: z.ZodString;
|
|
411
|
+
country: z.ZodString;
|
|
412
|
+
city: z.ZodString;
|
|
413
|
+
address: z.ZodString;
|
|
414
|
+
phoneNumber: z.ZodString;
|
|
415
|
+
mapUrl: z.ZodString;
|
|
416
|
+
timezone: z.ZodString;
|
|
417
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
418
|
+
readonly MONDAY: "MONDAY";
|
|
419
|
+
readonly TUESDAY: "TUESDAY";
|
|
420
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
421
|
+
readonly THURSDAY: "THURSDAY";
|
|
422
|
+
readonly FRIDAY: "FRIDAY";
|
|
423
|
+
readonly SATURDAY: "SATURDAY";
|
|
424
|
+
readonly SUNDAY: "SUNDAY";
|
|
425
|
+
}>, z.ZodObject<{
|
|
426
|
+
isOpen: z.ZodBoolean;
|
|
427
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
428
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
isPickupPoint: z.ZodBoolean;
|
|
431
|
+
version: z.ZodNumber;
|
|
432
|
+
createdAt: z.ZodISODateTime;
|
|
433
|
+
updatedAt: z.ZodISODateTime;
|
|
434
|
+
}, z.core.$strip>>;
|
|
435
|
+
destinationWarehouse: z.ZodNullable<z.ZodObject<{
|
|
436
|
+
publicId: z.ZodUUID;
|
|
437
|
+
code: z.ZodString;
|
|
438
|
+
name: z.ZodString;
|
|
439
|
+
status: z.ZodEnum<{
|
|
440
|
+
readonly DRAFT: "DRAFT";
|
|
441
|
+
readonly ACTIVE: "ACTIVE";
|
|
442
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
443
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
444
|
+
}>;
|
|
445
|
+
countryCode: z.ZodString;
|
|
446
|
+
country: z.ZodString;
|
|
447
|
+
city: z.ZodString;
|
|
448
|
+
address: z.ZodString;
|
|
449
|
+
phoneNumber: z.ZodString;
|
|
450
|
+
mapUrl: z.ZodString;
|
|
451
|
+
timezone: z.ZodString;
|
|
452
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
453
|
+
readonly MONDAY: "MONDAY";
|
|
454
|
+
readonly TUESDAY: "TUESDAY";
|
|
455
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
456
|
+
readonly THURSDAY: "THURSDAY";
|
|
457
|
+
readonly FRIDAY: "FRIDAY";
|
|
458
|
+
readonly SATURDAY: "SATURDAY";
|
|
459
|
+
readonly SUNDAY: "SUNDAY";
|
|
460
|
+
}>, z.ZodObject<{
|
|
461
|
+
isOpen: z.ZodBoolean;
|
|
462
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
463
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
464
|
+
}, z.core.$strip>>;
|
|
465
|
+
isPickupPoint: z.ZodBoolean;
|
|
466
|
+
version: z.ZodNumber;
|
|
467
|
+
createdAt: z.ZodISODateTime;
|
|
468
|
+
updatedAt: z.ZodISODateTime;
|
|
469
|
+
}, z.core.$strip>>;
|
|
470
|
+
writeOffReason: z.ZodNullable<z.ZodEnum<{
|
|
471
|
+
readonly DEFECT: "DEFECT";
|
|
472
|
+
readonly DAMAGED: "DAMAGED";
|
|
473
|
+
readonly EXPIRED: "EXPIRED";
|
|
474
|
+
readonly LOST: "LOST";
|
|
475
|
+
readonly INVENTORY_SHORTAGE: "INVENTORY_SHORTAGE";
|
|
476
|
+
readonly OTHER: "OTHER";
|
|
477
|
+
}>>;
|
|
478
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
479
|
+
rejectionComment: z.ZodNullable<z.ZodString>;
|
|
480
|
+
createdByUserId: z.ZodNumber;
|
|
481
|
+
createdByLogin: z.ZodString;
|
|
482
|
+
approvedByUserId: z.ZodNullable<z.ZodNumber>;
|
|
483
|
+
approvedByLogin: z.ZodNullable<z.ZodString>;
|
|
484
|
+
approvedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
485
|
+
completedByUserId: z.ZodNullable<z.ZodNumber>;
|
|
486
|
+
completedByLogin: z.ZodNullable<z.ZodString>;
|
|
487
|
+
completedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
488
|
+
version: z.ZodNumber;
|
|
489
|
+
lines: z.ZodArray<z.ZodObject<{
|
|
490
|
+
publicId: z.ZodUUID;
|
|
491
|
+
variantPublicId: z.ZodUUID;
|
|
492
|
+
sku: z.ZodString;
|
|
493
|
+
quantity: z.ZodNumber;
|
|
494
|
+
expiresAt: z.ZodNullable<z.ZodISODate>;
|
|
495
|
+
batchNumber: z.ZodNullable<z.ZodString>;
|
|
496
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
497
|
+
}, z.core.$strip>>;
|
|
498
|
+
events: z.ZodArray<z.ZodObject<{
|
|
499
|
+
publicId: z.ZodUUID;
|
|
500
|
+
fromStatus: z.ZodNullable<z.ZodEnum<{
|
|
501
|
+
readonly DRAFT: "DRAFT";
|
|
502
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
503
|
+
readonly APPROVED: "APPROVED";
|
|
504
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
505
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
506
|
+
readonly COMPLETED: "COMPLETED";
|
|
507
|
+
readonly REJECTED: "REJECTED";
|
|
508
|
+
readonly CANCELLED: "CANCELLED";
|
|
509
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
510
|
+
readonly FAILED: "FAILED";
|
|
511
|
+
}>>;
|
|
512
|
+
toStatus: z.ZodEnum<{
|
|
513
|
+
readonly DRAFT: "DRAFT";
|
|
514
|
+
readonly PENDING_REVIEW: "PENDING_REVIEW";
|
|
515
|
+
readonly APPROVED: "APPROVED";
|
|
516
|
+
readonly READY_TO_SHIP: "READY_TO_SHIP";
|
|
517
|
+
readonly IN_TRANSIT: "IN_TRANSIT";
|
|
518
|
+
readonly COMPLETED: "COMPLETED";
|
|
519
|
+
readonly REJECTED: "REJECTED";
|
|
520
|
+
readonly CANCELLED: "CANCELLED";
|
|
521
|
+
readonly DISCREPANCY_REPORTED: "DISCREPANCY_REPORTED";
|
|
522
|
+
readonly FAILED: "FAILED";
|
|
523
|
+
}>;
|
|
524
|
+
actorUserId: z.ZodNumber;
|
|
525
|
+
actorLogin: z.ZodString;
|
|
526
|
+
comment: z.ZodNullable<z.ZodString>;
|
|
527
|
+
createdAt: z.ZodISODateTime;
|
|
528
|
+
}, z.core.$strip>>;
|
|
529
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
530
|
+
publicId: z.ZodUUID;
|
|
531
|
+
mimeType: z.ZodString;
|
|
532
|
+
sizeBytes: z.ZodNumber;
|
|
533
|
+
originalName: z.ZodNullable<z.ZodString>;
|
|
534
|
+
uploadedByLogin: z.ZodString;
|
|
535
|
+
contentUrl: z.ZodString;
|
|
536
|
+
createdAt: z.ZodISODateTime;
|
|
537
|
+
}, z.core.$strip>>;
|
|
538
|
+
createdAt: z.ZodISODateTime;
|
|
539
|
+
updatedAt: z.ZodISODateTime;
|
|
540
|
+
}, z.core.$strip>;
|
|
541
|
+
declare const WarehouseStockSchema: z.ZodObject<{
|
|
542
|
+
publicId: z.ZodUUID;
|
|
543
|
+
warehouse: z.ZodObject<{
|
|
544
|
+
publicId: z.ZodUUID;
|
|
545
|
+
code: z.ZodString;
|
|
546
|
+
name: z.ZodString;
|
|
547
|
+
status: z.ZodEnum<{
|
|
548
|
+
readonly DRAFT: "DRAFT";
|
|
549
|
+
readonly ACTIVE: "ACTIVE";
|
|
550
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
551
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
552
|
+
}>;
|
|
553
|
+
countryCode: z.ZodString;
|
|
554
|
+
country: z.ZodString;
|
|
555
|
+
city: z.ZodString;
|
|
556
|
+
address: z.ZodString;
|
|
557
|
+
phoneNumber: z.ZodString;
|
|
558
|
+
mapUrl: z.ZodString;
|
|
559
|
+
timezone: z.ZodString;
|
|
560
|
+
schedule: z.ZodRecord<z.ZodEnum<{
|
|
561
|
+
readonly MONDAY: "MONDAY";
|
|
562
|
+
readonly TUESDAY: "TUESDAY";
|
|
563
|
+
readonly WEDNESDAY: "WEDNESDAY";
|
|
564
|
+
readonly THURSDAY: "THURSDAY";
|
|
565
|
+
readonly FRIDAY: "FRIDAY";
|
|
566
|
+
readonly SATURDAY: "SATURDAY";
|
|
567
|
+
readonly SUNDAY: "SUNDAY";
|
|
568
|
+
}>, z.ZodObject<{
|
|
569
|
+
isOpen: z.ZodBoolean;
|
|
570
|
+
opensAt: z.ZodNullable<z.ZodString>;
|
|
571
|
+
closesAt: z.ZodNullable<z.ZodString>;
|
|
572
|
+
}, z.core.$strip>>;
|
|
573
|
+
isPickupPoint: z.ZodBoolean;
|
|
574
|
+
version: z.ZodNumber;
|
|
575
|
+
createdAt: z.ZodISODateTime;
|
|
576
|
+
updatedAt: z.ZodISODateTime;
|
|
577
|
+
}, z.core.$strip>;
|
|
578
|
+
variantPublicId: z.ZodUUID;
|
|
579
|
+
sku: z.ZodString;
|
|
580
|
+
productPublicId: z.ZodUUID;
|
|
581
|
+
productCode: z.ZodString;
|
|
582
|
+
batchNumber: z.ZodNullable<z.ZodString>;
|
|
583
|
+
expiresAt: z.ZodISODate;
|
|
584
|
+
onHand: z.ZodNumber;
|
|
585
|
+
reserved: z.ZodNumber;
|
|
586
|
+
available: z.ZodNumber;
|
|
587
|
+
expired: z.ZodBoolean;
|
|
588
|
+
version: z.ZodNumber;
|
|
589
|
+
updatedAt: z.ZodISODateTime;
|
|
590
|
+
}, z.core.$strip>;
|
|
591
|
+
declare const WarehouseMovementSchema: z.ZodObject<{
|
|
592
|
+
publicId: z.ZodUUID;
|
|
593
|
+
warehousePublicId: z.ZodUUID;
|
|
594
|
+
operationPublicId: z.ZodUUID;
|
|
595
|
+
variantPublicId: z.ZodUUID;
|
|
596
|
+
inventoryBatchPublicId: z.ZodNullable<z.ZodUUID>;
|
|
597
|
+
type: z.ZodEnum<{
|
|
598
|
+
readonly REPLENISHMENT: "REPLENISHMENT";
|
|
599
|
+
readonly WRITE_OFF: "WRITE_OFF";
|
|
600
|
+
readonly TRANSFER_OUT: "TRANSFER_OUT";
|
|
601
|
+
readonly TRANSFER_IN: "TRANSFER_IN";
|
|
602
|
+
readonly ORDER_ISSUE: "ORDER_ISSUE";
|
|
603
|
+
}>;
|
|
604
|
+
quantityDelta: z.ZodNumber;
|
|
605
|
+
balanceAfter: z.ZodNumber;
|
|
606
|
+
actorUserId: z.ZodNumber;
|
|
607
|
+
actorLogin: z.ZodString;
|
|
608
|
+
createdAt: z.ZodISODateTime;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
|
|
611
|
+
type CreateWarehouseRequest = z.infer<typeof CreateWarehouseRequestSchema>;
|
|
612
|
+
type UpdateWarehouseRequest = z.infer<typeof UpdateWarehouseRequestSchema>;
|
|
613
|
+
type WarehouseListQuery = z.infer<typeof WarehouseListQuerySchema>;
|
|
614
|
+
type WarehouseResponse = z.infer<typeof WarehouseSchema>;
|
|
615
|
+
type WarehouseListResponse = PaginatedResponse<WarehouseResponse>;
|
|
616
|
+
type WarehouseUserSearchQuery = z.infer<typeof WarehouseUserSearchQuerySchema>;
|
|
617
|
+
type WarehouseUserLookupResponse = z.infer<typeof WarehouseUserLookupSchema>;
|
|
618
|
+
type WarehouseUserLookupListResponse = PaginatedResponse<WarehouseUserLookupResponse>;
|
|
619
|
+
type AssignWarehouseUserRequest = z.infer<typeof AssignWarehouseUserRequestSchema>;
|
|
620
|
+
type WarehouseAssignmentResponse = z.infer<typeof WarehouseAssignmentSchema>;
|
|
621
|
+
type CreateWarehouseOperationRequest = z.infer<typeof CreateWarehouseOperationRequestSchema>;
|
|
622
|
+
type WarehouseOperationListQuery = z.infer<typeof WarehouseOperationListQuerySchema>;
|
|
623
|
+
type WarehouseOperationComment = z.infer<typeof WarehouseOperationCommentSchema>;
|
|
624
|
+
type RejectWarehouseOperationRequest = z.infer<typeof RejectWarehouseOperationRequestSchema>;
|
|
625
|
+
type ExecuteWarehouseOperationRequest = z.infer<typeof ExecuteWarehouseOperationRequestSchema>;
|
|
626
|
+
type ReportWarehouseDiscrepancyRequest = z.infer<typeof ReportWarehouseDiscrepancyRequestSchema>;
|
|
627
|
+
type WarehouseOperationResponse = z.infer<typeof WarehouseOperationSchema>;
|
|
628
|
+
type WarehouseOperationAttachmentResponse = z.infer<typeof WarehouseOperationAttachmentSchema>;
|
|
629
|
+
type WarehouseOperationListResponse = PaginatedResponse<WarehouseOperationResponse>;
|
|
630
|
+
type WarehouseStockListQuery = z.infer<typeof WarehouseStockListQuerySchema>;
|
|
631
|
+
type WarehouseStockResponse = z.infer<typeof WarehouseStockSchema>;
|
|
632
|
+
type WarehouseStockListResponse = PaginatedResponse<WarehouseStockResponse>;
|
|
633
|
+
type WarehouseMovementResponse = z.infer<typeof WarehouseMovementSchema>;
|
|
634
|
+
|
|
635
|
+
export { type AssignWarehouseUserRequest, AssignWarehouseUserRequestSchema, type CreateWarehouseOperationRequest, CreateWarehouseOperationRequestSchema, type CreateWarehouseRequest, CreateWarehouseRequestSchema, type ExecuteWarehouseOperationRequest, ExecuteWarehouseOperationRequestSchema, type RejectWarehouseOperationRequest, RejectWarehouseOperationRequestSchema, type ReportWarehouseDiscrepancyRequest, ReportWarehouseDiscrepancyRequestSchema, type UpdateWarehouseRequest, UpdateWarehouseRequestSchema, WarehouseAssignmentParamSchema, type WarehouseAssignmentResponse, WarehouseAssignmentSchema, WarehouseAssignmentType, WarehouseDayScheduleSchema, type WarehouseListQuery, WarehouseListQuerySchema, type WarehouseListResponse, type WarehouseMovementResponse, WarehouseMovementSchema, WarehouseMovementType, WarehouseOperationAttachmentParamSchema, type WarehouseOperationAttachmentResponse, WarehouseOperationAttachmentSchema, type WarehouseOperationComment, WarehouseOperationCommentSchema, WarehouseOperationEventSchema, WarehouseOperationLineSchema, type WarehouseOperationListQuery, WarehouseOperationListQuerySchema, type WarehouseOperationListResponse, WarehouseOperationPublicIdParamSchema, type WarehouseOperationResponse, WarehouseOperationSchema, WarehousePublicIdParamSchema, WarehouseRequestLineInputSchema, WarehouseRequestStatus, WarehouseRequestType, type WarehouseResponse, WarehouseSchema, WarehouseStatus, type WarehouseStockListQuery, WarehouseStockListQuerySchema, type WarehouseStockListResponse, type WarehouseStockResponse, WarehouseStockSchema, type WarehouseUserLookupListResponse, type WarehouseUserLookupResponse, WarehouseUserLookupSchema, type WarehouseUserSearchQuery, WarehouseUserSearchQuerySchema, WarehouseWeekday, WarehouseWeeklyScheduleSchema, WarehouseWriteOffReason };
|