@arascreative/erp-client 0.0.0-stage → 1.1.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/dist/generated/api.d.ts +2282 -0
- package/dist/generated/api.d.ts.map +1 -0
- package/dist/generated/api.js +961 -0
- package/dist/generated/zod.d.ts +1087 -0
- package/dist/generated/zod.d.ts.map +1 -0
- package/dist/generated/zod.js +404 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2 -0
- package/dist/index.test.d.ts +2 -0
- package/dist/index.test.d.ts.map +1 -0
- package/dist/index.test.js +13 -0
- package/package.json +57 -3
- package/README.md +0 -3
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v7.21.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* TSNX API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import * as zod from 'zod';
|
|
8
|
+
/**
|
|
9
|
+
* Stores an HttpOnly antiforgery cookie and returns the request token and header name. Send both on subsequent identity requests that change data.
|
|
10
|
+
* @summary Get an antiforgery token
|
|
11
|
+
*/
|
|
12
|
+
export declare const getAntiforgeryTokenResponse: zod.ZodObject<{
|
|
13
|
+
requestToken: zod.ZodString;
|
|
14
|
+
headerName: zod.ZodString;
|
|
15
|
+
}, "strip", zod.ZodTypeAny, {
|
|
16
|
+
requestToken: string;
|
|
17
|
+
headerName: string;
|
|
18
|
+
}, {
|
|
19
|
+
requestToken: string;
|
|
20
|
+
headerName: string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Creates a new server-side session with the configured absolute lifetime and rotates the antiforgery token. Use the returned requestToken for subsequent requests.
|
|
24
|
+
* @summary Sign in with email and password
|
|
25
|
+
*/
|
|
26
|
+
export declare const loginBody: zod.ZodObject<{
|
|
27
|
+
email: zod.ZodString;
|
|
28
|
+
passwordPlain: zod.ZodString;
|
|
29
|
+
}, "strip", zod.ZodTypeAny, {
|
|
30
|
+
email: string;
|
|
31
|
+
passwordPlain: string;
|
|
32
|
+
}, {
|
|
33
|
+
email: string;
|
|
34
|
+
passwordPlain: string;
|
|
35
|
+
}>;
|
|
36
|
+
export declare const loginResponse: zod.ZodObject<{
|
|
37
|
+
user: zod.ZodObject<{
|
|
38
|
+
id: zod.ZodString;
|
|
39
|
+
email: zod.ZodString;
|
|
40
|
+
username: zod.ZodString;
|
|
41
|
+
kind: zod.ZodString;
|
|
42
|
+
}, "strip", zod.ZodTypeAny, {
|
|
43
|
+
id: string;
|
|
44
|
+
email: string;
|
|
45
|
+
username: string;
|
|
46
|
+
kind: string;
|
|
47
|
+
}, {
|
|
48
|
+
id: string;
|
|
49
|
+
email: string;
|
|
50
|
+
username: string;
|
|
51
|
+
kind: string;
|
|
52
|
+
}>;
|
|
53
|
+
expiresAt: zod.ZodString;
|
|
54
|
+
requestToken: zod.ZodString;
|
|
55
|
+
headerName: zod.ZodString;
|
|
56
|
+
}, "strip", zod.ZodTypeAny, {
|
|
57
|
+
user: {
|
|
58
|
+
id: string;
|
|
59
|
+
email: string;
|
|
60
|
+
username: string;
|
|
61
|
+
kind: string;
|
|
62
|
+
};
|
|
63
|
+
expiresAt: string;
|
|
64
|
+
requestToken: string;
|
|
65
|
+
headerName: string;
|
|
66
|
+
}, {
|
|
67
|
+
user: {
|
|
68
|
+
id: string;
|
|
69
|
+
email: string;
|
|
70
|
+
username: string;
|
|
71
|
+
kind: string;
|
|
72
|
+
};
|
|
73
|
+
expiresAt: string;
|
|
74
|
+
requestToken: string;
|
|
75
|
+
headerName: string;
|
|
76
|
+
}>;
|
|
77
|
+
/**
|
|
78
|
+
* @summary Get the current signed-in user
|
|
79
|
+
*/
|
|
80
|
+
export declare const getCurrentUserResponse: zod.ZodObject<{
|
|
81
|
+
user: zod.ZodObject<{
|
|
82
|
+
id: zod.ZodString;
|
|
83
|
+
email: zod.ZodString;
|
|
84
|
+
username: zod.ZodString;
|
|
85
|
+
kind: zod.ZodString;
|
|
86
|
+
}, "strip", zod.ZodTypeAny, {
|
|
87
|
+
id: string;
|
|
88
|
+
email: string;
|
|
89
|
+
username: string;
|
|
90
|
+
kind: string;
|
|
91
|
+
}, {
|
|
92
|
+
id: string;
|
|
93
|
+
email: string;
|
|
94
|
+
username: string;
|
|
95
|
+
kind: string;
|
|
96
|
+
}>;
|
|
97
|
+
}, "strip", zod.ZodTypeAny, {
|
|
98
|
+
user: {
|
|
99
|
+
id: string;
|
|
100
|
+
email: string;
|
|
101
|
+
username: string;
|
|
102
|
+
kind: string;
|
|
103
|
+
};
|
|
104
|
+
}, {
|
|
105
|
+
user: {
|
|
106
|
+
id: string;
|
|
107
|
+
email: string;
|
|
108
|
+
username: string;
|
|
109
|
+
kind: string;
|
|
110
|
+
};
|
|
111
|
+
}>;
|
|
112
|
+
/**
|
|
113
|
+
* @summary Revoke the current session and clear its cookie
|
|
114
|
+
*/
|
|
115
|
+
export declare const logoutResponse: zod.ZodObject<{
|
|
116
|
+
requestToken: zod.ZodString;
|
|
117
|
+
headerName: zod.ZodString;
|
|
118
|
+
}, "strip", zod.ZodTypeAny, {
|
|
119
|
+
requestToken: string;
|
|
120
|
+
headerName: string;
|
|
121
|
+
}, {
|
|
122
|
+
requestToken: string;
|
|
123
|
+
headerName: string;
|
|
124
|
+
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates the single owner account for the tenant. Use this endpoint only once per deployment.
|
|
127
|
+
* @summary Create the owner account
|
|
128
|
+
*/
|
|
129
|
+
export declare const createOwnerBody: zod.ZodObject<{
|
|
130
|
+
email: zod.ZodString;
|
|
131
|
+
username: zod.ZodString;
|
|
132
|
+
passwordPlain: zod.ZodString;
|
|
133
|
+
}, "strip", zod.ZodTypeAny, {
|
|
134
|
+
email: string;
|
|
135
|
+
passwordPlain: string;
|
|
136
|
+
username: string;
|
|
137
|
+
}, {
|
|
138
|
+
email: string;
|
|
139
|
+
passwordPlain: string;
|
|
140
|
+
username: string;
|
|
141
|
+
}>;
|
|
142
|
+
/**
|
|
143
|
+
* @summary Search addresses by keyword
|
|
144
|
+
*/
|
|
145
|
+
export declare const searchAddressesQueryParams: zod.ZodObject<{
|
|
146
|
+
keyword: zod.ZodString;
|
|
147
|
+
limit: zod.ZodOptional<zod.ZodNumber>;
|
|
148
|
+
}, "strip", zod.ZodTypeAny, {
|
|
149
|
+
keyword: string;
|
|
150
|
+
limit?: number | undefined;
|
|
151
|
+
}, {
|
|
152
|
+
keyword: string;
|
|
153
|
+
limit?: number | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
export declare const searchAddressesResponseItem: zod.ZodObject<{
|
|
156
|
+
addressId: zod.ZodString;
|
|
157
|
+
externalId: zod.ZodNullable<zod.ZodString>;
|
|
158
|
+
destinationCode: zod.ZodString;
|
|
159
|
+
originCode: zod.ZodString;
|
|
160
|
+
provinceName: zod.ZodString;
|
|
161
|
+
cityName: zod.ZodString;
|
|
162
|
+
districtName: zod.ZodString;
|
|
163
|
+
subDistrictName: zod.ZodString;
|
|
164
|
+
zipCode: zod.ZodString;
|
|
165
|
+
}, "strip", zod.ZodTypeAny, {
|
|
166
|
+
addressId: string;
|
|
167
|
+
externalId: string | null;
|
|
168
|
+
destinationCode: string;
|
|
169
|
+
originCode: string;
|
|
170
|
+
provinceName: string;
|
|
171
|
+
cityName: string;
|
|
172
|
+
districtName: string;
|
|
173
|
+
subDistrictName: string;
|
|
174
|
+
zipCode: string;
|
|
175
|
+
}, {
|
|
176
|
+
addressId: string;
|
|
177
|
+
externalId: string | null;
|
|
178
|
+
destinationCode: string;
|
|
179
|
+
originCode: string;
|
|
180
|
+
provinceName: string;
|
|
181
|
+
cityName: string;
|
|
182
|
+
districtName: string;
|
|
183
|
+
subDistrictName: string;
|
|
184
|
+
zipCode: string;
|
|
185
|
+
}>;
|
|
186
|
+
export declare const searchAddressesResponse: zod.ZodArray<zod.ZodObject<{
|
|
187
|
+
addressId: zod.ZodString;
|
|
188
|
+
externalId: zod.ZodNullable<zod.ZodString>;
|
|
189
|
+
destinationCode: zod.ZodString;
|
|
190
|
+
originCode: zod.ZodString;
|
|
191
|
+
provinceName: zod.ZodString;
|
|
192
|
+
cityName: zod.ZodString;
|
|
193
|
+
districtName: zod.ZodString;
|
|
194
|
+
subDistrictName: zod.ZodString;
|
|
195
|
+
zipCode: zod.ZodString;
|
|
196
|
+
}, "strip", zod.ZodTypeAny, {
|
|
197
|
+
addressId: string;
|
|
198
|
+
externalId: string | null;
|
|
199
|
+
destinationCode: string;
|
|
200
|
+
originCode: string;
|
|
201
|
+
provinceName: string;
|
|
202
|
+
cityName: string;
|
|
203
|
+
districtName: string;
|
|
204
|
+
subDistrictName: string;
|
|
205
|
+
zipCode: string;
|
|
206
|
+
}, {
|
|
207
|
+
addressId: string;
|
|
208
|
+
externalId: string | null;
|
|
209
|
+
destinationCode: string;
|
|
210
|
+
originCode: string;
|
|
211
|
+
provinceName: string;
|
|
212
|
+
cityName: string;
|
|
213
|
+
districtName: string;
|
|
214
|
+
subDistrictName: string;
|
|
215
|
+
zipCode: string;
|
|
216
|
+
}>, "many">;
|
|
217
|
+
/**
|
|
218
|
+
* Creates a pending file metadata record and generates a presigned S3 upload URL for direct client-to-storage upload.
|
|
219
|
+
* @summary Initiate direct file upload to storage
|
|
220
|
+
*/
|
|
221
|
+
export declare const initiateUploadBody: zod.ZodObject<{
|
|
222
|
+
originalName: zod.ZodString;
|
|
223
|
+
mimeType: zod.ZodString;
|
|
224
|
+
sizeBytes: zod.ZodNumber;
|
|
225
|
+
checksum: zod.ZodString;
|
|
226
|
+
purpose: zod.ZodString;
|
|
227
|
+
expiresInSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
228
|
+
}, "strip", zod.ZodTypeAny, {
|
|
229
|
+
originalName: string;
|
|
230
|
+
mimeType: string;
|
|
231
|
+
sizeBytes: number;
|
|
232
|
+
checksum: string;
|
|
233
|
+
purpose: string;
|
|
234
|
+
expiresInSeconds?: number | undefined;
|
|
235
|
+
}, {
|
|
236
|
+
originalName: string;
|
|
237
|
+
mimeType: string;
|
|
238
|
+
sizeBytes: number;
|
|
239
|
+
checksum: string;
|
|
240
|
+
purpose: string;
|
|
241
|
+
expiresInSeconds?: number | undefined;
|
|
242
|
+
}>;
|
|
243
|
+
/**
|
|
244
|
+
* Uploads a file directly with base64 encoded content, verifies against purpose policy, stores to S3, and activates immediately.
|
|
245
|
+
* @summary Direct upload file
|
|
246
|
+
*/
|
|
247
|
+
export declare const uploadFileBody: zod.ZodObject<{
|
|
248
|
+
originalName: zod.ZodString;
|
|
249
|
+
mimeType: zod.ZodString;
|
|
250
|
+
contentBase64: zod.ZodString;
|
|
251
|
+
purpose: zod.ZodString;
|
|
252
|
+
uploadedBy: zod.ZodOptional<zod.ZodString>;
|
|
253
|
+
}, "strip", zod.ZodTypeAny, {
|
|
254
|
+
originalName: string;
|
|
255
|
+
mimeType: string;
|
|
256
|
+
purpose: string;
|
|
257
|
+
contentBase64: string;
|
|
258
|
+
uploadedBy?: string | undefined;
|
|
259
|
+
}, {
|
|
260
|
+
originalName: string;
|
|
261
|
+
mimeType: string;
|
|
262
|
+
purpose: string;
|
|
263
|
+
contentBase64: string;
|
|
264
|
+
uploadedBy?: string | undefined;
|
|
265
|
+
}>;
|
|
266
|
+
/**
|
|
267
|
+
* Toggles the active state of a warehouse. Soft-deleted warehouses cannot be toggled.
|
|
268
|
+
* @summary Toggle warehouse active status
|
|
269
|
+
*/
|
|
270
|
+
export declare const toggleWarehouseStatusParams: zod.ZodObject<{
|
|
271
|
+
id: zod.ZodString;
|
|
272
|
+
}, "strip", zod.ZodTypeAny, {
|
|
273
|
+
id: string;
|
|
274
|
+
}, {
|
|
275
|
+
id: string;
|
|
276
|
+
}>;
|
|
277
|
+
export declare const toggleWarehouseStatusResponse: zod.ZodObject<{
|
|
278
|
+
isActive: zod.ZodBoolean;
|
|
279
|
+
}, "strip", zod.ZodTypeAny, {
|
|
280
|
+
isActive: boolean;
|
|
281
|
+
}, {
|
|
282
|
+
isActive: boolean;
|
|
283
|
+
}>;
|
|
284
|
+
/**
|
|
285
|
+
* Activates or deactivates a stock item.
|
|
286
|
+
* @summary Change stock item active status
|
|
287
|
+
*/
|
|
288
|
+
export declare const changeStockItemStatusParams: zod.ZodObject<{
|
|
289
|
+
id: zod.ZodString;
|
|
290
|
+
}, "strip", zod.ZodTypeAny, {
|
|
291
|
+
id: string;
|
|
292
|
+
}, {
|
|
293
|
+
id: string;
|
|
294
|
+
}>;
|
|
295
|
+
export declare const changeStockItemStatusBody: zod.ZodObject<{
|
|
296
|
+
status: zod.ZodString;
|
|
297
|
+
}, "strip", zod.ZodTypeAny, {
|
|
298
|
+
status: string;
|
|
299
|
+
}, {
|
|
300
|
+
status: string;
|
|
301
|
+
}>;
|
|
302
|
+
export declare const changeStockItemStatusResponse: zod.ZodObject<{
|
|
303
|
+
status: zod.ZodString;
|
|
304
|
+
}, "strip", zod.ZodTypeAny, {
|
|
305
|
+
status: string;
|
|
306
|
+
}, {
|
|
307
|
+
status: string;
|
|
308
|
+
}>;
|
|
309
|
+
/**
|
|
310
|
+
* Verifies that physical object was written to storage provider, verifies checksum, and transitions file to ACTIVE.
|
|
311
|
+
* @summary Complete direct file upload
|
|
312
|
+
*/
|
|
313
|
+
export declare const completeUploadParams: zod.ZodObject<{
|
|
314
|
+
id: zod.ZodString;
|
|
315
|
+
}, "strip", zod.ZodTypeAny, {
|
|
316
|
+
id: string;
|
|
317
|
+
}, {
|
|
318
|
+
id: string;
|
|
319
|
+
}>;
|
|
320
|
+
export declare const completeUploadBody: zod.ZodObject<{
|
|
321
|
+
actualChecksum: zod.ZodOptional<zod.ZodString>;
|
|
322
|
+
}, "strip", zod.ZodTypeAny, {
|
|
323
|
+
actualChecksum?: string | undefined;
|
|
324
|
+
}, {
|
|
325
|
+
actualChecksum?: string | undefined;
|
|
326
|
+
}>;
|
|
327
|
+
export declare const completeUploadResponse: zod.ZodObject<{
|
|
328
|
+
id: zod.ZodString;
|
|
329
|
+
status: zod.ZodString;
|
|
330
|
+
activatedAt: zod.ZodString;
|
|
331
|
+
}, "strip", zod.ZodTypeAny, {
|
|
332
|
+
status: string;
|
|
333
|
+
id: string;
|
|
334
|
+
activatedAt: string;
|
|
335
|
+
}, {
|
|
336
|
+
status: string;
|
|
337
|
+
id: string;
|
|
338
|
+
activatedAt: string;
|
|
339
|
+
}>;
|
|
340
|
+
/**
|
|
341
|
+
* Generates a public CDN URL (for public files) or a time-limited signed download URL (for private files).
|
|
342
|
+
* @summary Get file download or CDN access URL
|
|
343
|
+
*/
|
|
344
|
+
export declare const getFileAccessUrlParams: zod.ZodObject<{
|
|
345
|
+
id: zod.ZodString;
|
|
346
|
+
}, "strip", zod.ZodTypeAny, {
|
|
347
|
+
id: string;
|
|
348
|
+
}, {
|
|
349
|
+
id: string;
|
|
350
|
+
}>;
|
|
351
|
+
export declare const getFileAccessUrlQueryParams: zod.ZodObject<{
|
|
352
|
+
expiresInSeconds: zod.ZodOptional<zod.ZodNumber>;
|
|
353
|
+
}, "strip", zod.ZodTypeAny, {
|
|
354
|
+
expiresInSeconds?: number | undefined;
|
|
355
|
+
}, {
|
|
356
|
+
expiresInSeconds?: number | undefined;
|
|
357
|
+
}>;
|
|
358
|
+
export declare const getFileAccessUrlResponse: zod.ZodObject<{
|
|
359
|
+
fileId: zod.ZodString;
|
|
360
|
+
url: zod.ZodString;
|
|
361
|
+
isPublic: zod.ZodBoolean;
|
|
362
|
+
expiresAt: zod.ZodString;
|
|
363
|
+
}, "strip", zod.ZodTypeAny, {
|
|
364
|
+
expiresAt: string;
|
|
365
|
+
fileId: string;
|
|
366
|
+
url: string;
|
|
367
|
+
isPublic: boolean;
|
|
368
|
+
}, {
|
|
369
|
+
expiresAt: string;
|
|
370
|
+
fileId: string;
|
|
371
|
+
url: string;
|
|
372
|
+
isPublic: boolean;
|
|
373
|
+
}>;
|
|
374
|
+
/**
|
|
375
|
+
* Retrieves warehouse details by its identifier. Returns 404 if not found or soft-deleted.
|
|
376
|
+
* @summary Get warehouse by ID
|
|
377
|
+
*/
|
|
378
|
+
export declare const getWarehouseByIdParams: zod.ZodObject<{
|
|
379
|
+
id: zod.ZodString;
|
|
380
|
+
}, "strip", zod.ZodTypeAny, {
|
|
381
|
+
id: string;
|
|
382
|
+
}, {
|
|
383
|
+
id: string;
|
|
384
|
+
}>;
|
|
385
|
+
export declare const getWarehouseByIdResponse: zod.ZodObject<{
|
|
386
|
+
id: zod.ZodString;
|
|
387
|
+
name: zod.ZodString;
|
|
388
|
+
pic: zod.ZodObject<{
|
|
389
|
+
name: zod.ZodString;
|
|
390
|
+
phone: zod.ZodString;
|
|
391
|
+
}, "strip", zod.ZodTypeAny, {
|
|
392
|
+
name: string;
|
|
393
|
+
phone: string;
|
|
394
|
+
}, {
|
|
395
|
+
name: string;
|
|
396
|
+
phone: string;
|
|
397
|
+
}>;
|
|
398
|
+
address: zod.ZodObject<{
|
|
399
|
+
addressId: zod.ZodString;
|
|
400
|
+
destinationCode: zod.ZodNullable<zod.ZodString>;
|
|
401
|
+
provinceName: zod.ZodNullable<zod.ZodString>;
|
|
402
|
+
cityName: zod.ZodNullable<zod.ZodString>;
|
|
403
|
+
districtName: zod.ZodNullable<zod.ZodString>;
|
|
404
|
+
subDistrictName: zod.ZodNullable<zod.ZodString>;
|
|
405
|
+
zipCode: zod.ZodNullable<zod.ZodString>;
|
|
406
|
+
}, "strip", zod.ZodTypeAny, {
|
|
407
|
+
addressId: string;
|
|
408
|
+
destinationCode: string | null;
|
|
409
|
+
provinceName: string | null;
|
|
410
|
+
cityName: string | null;
|
|
411
|
+
districtName: string | null;
|
|
412
|
+
subDistrictName: string | null;
|
|
413
|
+
zipCode: string | null;
|
|
414
|
+
}, {
|
|
415
|
+
addressId: string;
|
|
416
|
+
destinationCode: string | null;
|
|
417
|
+
provinceName: string | null;
|
|
418
|
+
cityName: string | null;
|
|
419
|
+
districtName: string | null;
|
|
420
|
+
subDistrictName: string | null;
|
|
421
|
+
zipCode: string | null;
|
|
422
|
+
}>;
|
|
423
|
+
fullAddressText: zod.ZodNullable<zod.ZodString>;
|
|
424
|
+
isActive: zod.ZodBoolean;
|
|
425
|
+
createdAt: zod.ZodString;
|
|
426
|
+
updatedAt: zod.ZodString;
|
|
427
|
+
}, "strip", zod.ZodTypeAny, {
|
|
428
|
+
id: string;
|
|
429
|
+
isActive: boolean;
|
|
430
|
+
name: string;
|
|
431
|
+
pic: {
|
|
432
|
+
name: string;
|
|
433
|
+
phone: string;
|
|
434
|
+
};
|
|
435
|
+
address: {
|
|
436
|
+
addressId: string;
|
|
437
|
+
destinationCode: string | null;
|
|
438
|
+
provinceName: string | null;
|
|
439
|
+
cityName: string | null;
|
|
440
|
+
districtName: string | null;
|
|
441
|
+
subDistrictName: string | null;
|
|
442
|
+
zipCode: string | null;
|
|
443
|
+
};
|
|
444
|
+
fullAddressText: string | null;
|
|
445
|
+
createdAt: string;
|
|
446
|
+
updatedAt: string;
|
|
447
|
+
}, {
|
|
448
|
+
id: string;
|
|
449
|
+
isActive: boolean;
|
|
450
|
+
name: string;
|
|
451
|
+
pic: {
|
|
452
|
+
name: string;
|
|
453
|
+
phone: string;
|
|
454
|
+
};
|
|
455
|
+
address: {
|
|
456
|
+
addressId: string;
|
|
457
|
+
destinationCode: string | null;
|
|
458
|
+
provinceName: string | null;
|
|
459
|
+
cityName: string | null;
|
|
460
|
+
districtName: string | null;
|
|
461
|
+
subDistrictName: string | null;
|
|
462
|
+
zipCode: string | null;
|
|
463
|
+
};
|
|
464
|
+
fullAddressText: string | null;
|
|
465
|
+
createdAt: string;
|
|
466
|
+
updatedAt: string;
|
|
467
|
+
}>;
|
|
468
|
+
/**
|
|
469
|
+
* Updates warehouse name, person in charge, and address. Increments version on update.
|
|
470
|
+
* @summary Update warehouse
|
|
471
|
+
*/
|
|
472
|
+
export declare const updateWarehouseParams: zod.ZodObject<{
|
|
473
|
+
id: zod.ZodString;
|
|
474
|
+
}, "strip", zod.ZodTypeAny, {
|
|
475
|
+
id: string;
|
|
476
|
+
}, {
|
|
477
|
+
id: string;
|
|
478
|
+
}>;
|
|
479
|
+
export declare const updateWarehouseBody: zod.ZodObject<{
|
|
480
|
+
name: zod.ZodString;
|
|
481
|
+
picName: zod.ZodString;
|
|
482
|
+
picPhone: zod.ZodString;
|
|
483
|
+
addressId: zod.ZodString;
|
|
484
|
+
fullAddressText: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
485
|
+
}, "strip", zod.ZodTypeAny, {
|
|
486
|
+
name: string;
|
|
487
|
+
addressId: string;
|
|
488
|
+
picName: string;
|
|
489
|
+
picPhone: string;
|
|
490
|
+
fullAddressText?: string | null | undefined;
|
|
491
|
+
}, {
|
|
492
|
+
name: string;
|
|
493
|
+
addressId: string;
|
|
494
|
+
picName: string;
|
|
495
|
+
picPhone: string;
|
|
496
|
+
fullAddressText?: string | null | undefined;
|
|
497
|
+
}>;
|
|
498
|
+
/**
|
|
499
|
+
* Soft-deletes a warehouse by setting its deletedAt timestamp. Cannot delete active warehouses.
|
|
500
|
+
* @summary Delete warehouse
|
|
501
|
+
*/
|
|
502
|
+
export declare const deleteWarehouseParams: zod.ZodObject<{
|
|
503
|
+
id: zod.ZodString;
|
|
504
|
+
}, "strip", zod.ZodTypeAny, {
|
|
505
|
+
id: string;
|
|
506
|
+
}, {
|
|
507
|
+
id: string;
|
|
508
|
+
}>;
|
|
509
|
+
/**
|
|
510
|
+
* Updates a stock item name, SKU, or image. Increments version on update.
|
|
511
|
+
* @summary Update stock item
|
|
512
|
+
*/
|
|
513
|
+
export declare const updateStockItemParams: zod.ZodObject<{
|
|
514
|
+
id: zod.ZodString;
|
|
515
|
+
}, "strip", zod.ZodTypeAny, {
|
|
516
|
+
id: string;
|
|
517
|
+
}, {
|
|
518
|
+
id: string;
|
|
519
|
+
}>;
|
|
520
|
+
export declare const updateStockItemBody: zod.ZodObject<{
|
|
521
|
+
name: zod.ZodString;
|
|
522
|
+
sku: zod.ZodString;
|
|
523
|
+
imageFileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
524
|
+
}, "strip", zod.ZodTypeAny, {
|
|
525
|
+
name: string;
|
|
526
|
+
sku: string;
|
|
527
|
+
imageFileId?: string | null | undefined;
|
|
528
|
+
}, {
|
|
529
|
+
name: string;
|
|
530
|
+
sku: string;
|
|
531
|
+
imageFileId?: string | null | undefined;
|
|
532
|
+
}>;
|
|
533
|
+
/**
|
|
534
|
+
* Soft-deletes a stock item by setting its deletedAt timestamp. Cannot delete active stock items.
|
|
535
|
+
* @summary Delete stock item
|
|
536
|
+
*/
|
|
537
|
+
export declare const deleteStockItemParams: zod.ZodObject<{
|
|
538
|
+
id: zod.ZodString;
|
|
539
|
+
}, "strip", zod.ZodTypeAny, {
|
|
540
|
+
id: string;
|
|
541
|
+
}, {
|
|
542
|
+
id: string;
|
|
543
|
+
}>;
|
|
544
|
+
/**
|
|
545
|
+
* Retrieves active stored file metadata by its ID.
|
|
546
|
+
* @summary Get stored file by ID
|
|
547
|
+
*/
|
|
548
|
+
export declare const getStoredFileByIdParams: zod.ZodObject<{
|
|
549
|
+
id: zod.ZodString;
|
|
550
|
+
}, "strip", zod.ZodTypeAny, {
|
|
551
|
+
id: string;
|
|
552
|
+
}, {
|
|
553
|
+
id: string;
|
|
554
|
+
}>;
|
|
555
|
+
export declare const getStoredFileByIdResponse: zod.ZodObject<{
|
|
556
|
+
id: zod.ZodString;
|
|
557
|
+
originalName: zod.ZodString;
|
|
558
|
+
mimeType: zod.ZodString;
|
|
559
|
+
sizeBytes: zod.ZodNumber;
|
|
560
|
+
checksum: zod.ZodString;
|
|
561
|
+
storageKey: zod.ZodString;
|
|
562
|
+
status: zod.ZodString;
|
|
563
|
+
visibility: zod.ZodString;
|
|
564
|
+
purpose: zod.ZodString;
|
|
565
|
+
uploadedBy: zod.ZodString;
|
|
566
|
+
expiresAt: zod.ZodString;
|
|
567
|
+
createdAt: zod.ZodString;
|
|
568
|
+
activatedAt: zod.ZodString;
|
|
569
|
+
deletedAt: zod.ZodString;
|
|
570
|
+
}, "strip", zod.ZodTypeAny, {
|
|
571
|
+
expiresAt: string;
|
|
572
|
+
status: string;
|
|
573
|
+
id: string;
|
|
574
|
+
storageKey: string;
|
|
575
|
+
originalName: string;
|
|
576
|
+
mimeType: string;
|
|
577
|
+
sizeBytes: number;
|
|
578
|
+
checksum: string;
|
|
579
|
+
visibility: string;
|
|
580
|
+
purpose: string;
|
|
581
|
+
activatedAt: string;
|
|
582
|
+
createdAt: string;
|
|
583
|
+
uploadedBy: string;
|
|
584
|
+
deletedAt: string;
|
|
585
|
+
}, {
|
|
586
|
+
expiresAt: string;
|
|
587
|
+
status: string;
|
|
588
|
+
id: string;
|
|
589
|
+
storageKey: string;
|
|
590
|
+
originalName: string;
|
|
591
|
+
mimeType: string;
|
|
592
|
+
sizeBytes: number;
|
|
593
|
+
checksum: string;
|
|
594
|
+
visibility: string;
|
|
595
|
+
purpose: string;
|
|
596
|
+
activatedAt: string;
|
|
597
|
+
createdAt: string;
|
|
598
|
+
uploadedBy: string;
|
|
599
|
+
deletedAt: string;
|
|
600
|
+
}>;
|
|
601
|
+
/**
|
|
602
|
+
* Marks a stored file as DELETED. Files in active use by other modules cannot be deleted.
|
|
603
|
+
* @summary Soft delete stored file
|
|
604
|
+
*/
|
|
605
|
+
export declare const deleteStoredFileParams: zod.ZodObject<{
|
|
606
|
+
id: zod.ZodString;
|
|
607
|
+
}, "strip", zod.ZodTypeAny, {
|
|
608
|
+
id: string;
|
|
609
|
+
}, {
|
|
610
|
+
id: string;
|
|
611
|
+
}>;
|
|
612
|
+
/**
|
|
613
|
+
* @summary Health check
|
|
614
|
+
*/
|
|
615
|
+
export declare const getHealthResponse: zod.ZodObject<{
|
|
616
|
+
status: zod.ZodString;
|
|
617
|
+
timestamp: zod.ZodString;
|
|
618
|
+
}, "strip", zod.ZodTypeAny, {
|
|
619
|
+
status: string;
|
|
620
|
+
timestamp: string;
|
|
621
|
+
}, {
|
|
622
|
+
status: string;
|
|
623
|
+
timestamp: string;
|
|
624
|
+
}>;
|
|
625
|
+
/**
|
|
626
|
+
* Creates a new warehouse with an address resolved from the Address service and an initial active state.
|
|
627
|
+
* @summary Create a new warehouse
|
|
628
|
+
*/
|
|
629
|
+
export declare const createWarehouseBody: zod.ZodObject<{
|
|
630
|
+
name: zod.ZodString;
|
|
631
|
+
picName: zod.ZodString;
|
|
632
|
+
picPhone: zod.ZodString;
|
|
633
|
+
addressId: zod.ZodString;
|
|
634
|
+
fullAddressText: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
635
|
+
}, "strip", zod.ZodTypeAny, {
|
|
636
|
+
name: string;
|
|
637
|
+
addressId: string;
|
|
638
|
+
picName: string;
|
|
639
|
+
picPhone: string;
|
|
640
|
+
fullAddressText?: string | null | undefined;
|
|
641
|
+
}, {
|
|
642
|
+
name: string;
|
|
643
|
+
addressId: string;
|
|
644
|
+
picName: string;
|
|
645
|
+
picPhone: string;
|
|
646
|
+
fullAddressText?: string | null | undefined;
|
|
647
|
+
}>;
|
|
648
|
+
/**
|
|
649
|
+
* Retrieves a filtered list of warehouses. Excludes soft-deleted warehouses.
|
|
650
|
+
* @summary List all warehouses
|
|
651
|
+
*/
|
|
652
|
+
export declare const listWarehousesQueryParams: zod.ZodObject<{
|
|
653
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
654
|
+
isActive: zod.ZodOptional<zod.ZodBoolean>;
|
|
655
|
+
}, "strip", zod.ZodTypeAny, {
|
|
656
|
+
isActive?: boolean | undefined;
|
|
657
|
+
search?: string | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
isActive?: boolean | undefined;
|
|
660
|
+
search?: string | undefined;
|
|
661
|
+
}>;
|
|
662
|
+
export declare const listWarehousesResponse: zod.ZodObject<{
|
|
663
|
+
"0": zod.ZodObject<{
|
|
664
|
+
id: zod.ZodString;
|
|
665
|
+
name: zod.ZodString;
|
|
666
|
+
pic: zod.ZodObject<{
|
|
667
|
+
name: zod.ZodString;
|
|
668
|
+
phone: zod.ZodString;
|
|
669
|
+
}, "strip", zod.ZodTypeAny, {
|
|
670
|
+
name: string;
|
|
671
|
+
phone: string;
|
|
672
|
+
}, {
|
|
673
|
+
name: string;
|
|
674
|
+
phone: string;
|
|
675
|
+
}>;
|
|
676
|
+
address: zod.ZodObject<{
|
|
677
|
+
addressId: zod.ZodString;
|
|
678
|
+
destinationCode: zod.ZodNullable<zod.ZodString>;
|
|
679
|
+
provinceName: zod.ZodNullable<zod.ZodString>;
|
|
680
|
+
cityName: zod.ZodNullable<zod.ZodString>;
|
|
681
|
+
districtName: zod.ZodNullable<zod.ZodString>;
|
|
682
|
+
subDistrictName: zod.ZodNullable<zod.ZodString>;
|
|
683
|
+
zipCode: zod.ZodNullable<zod.ZodString>;
|
|
684
|
+
}, "strip", zod.ZodTypeAny, {
|
|
685
|
+
addressId: string;
|
|
686
|
+
destinationCode: string | null;
|
|
687
|
+
provinceName: string | null;
|
|
688
|
+
cityName: string | null;
|
|
689
|
+
districtName: string | null;
|
|
690
|
+
subDistrictName: string | null;
|
|
691
|
+
zipCode: string | null;
|
|
692
|
+
}, {
|
|
693
|
+
addressId: string;
|
|
694
|
+
destinationCode: string | null;
|
|
695
|
+
provinceName: string | null;
|
|
696
|
+
cityName: string | null;
|
|
697
|
+
districtName: string | null;
|
|
698
|
+
subDistrictName: string | null;
|
|
699
|
+
zipCode: string | null;
|
|
700
|
+
}>;
|
|
701
|
+
fullAddressText: zod.ZodNullable<zod.ZodString>;
|
|
702
|
+
isActive: zod.ZodBoolean;
|
|
703
|
+
createdAt: zod.ZodString;
|
|
704
|
+
updatedAt: zod.ZodString;
|
|
705
|
+
}, "strip", zod.ZodTypeAny, {
|
|
706
|
+
id: string;
|
|
707
|
+
isActive: boolean;
|
|
708
|
+
name: string;
|
|
709
|
+
pic: {
|
|
710
|
+
name: string;
|
|
711
|
+
phone: string;
|
|
712
|
+
};
|
|
713
|
+
address: {
|
|
714
|
+
addressId: string;
|
|
715
|
+
destinationCode: string | null;
|
|
716
|
+
provinceName: string | null;
|
|
717
|
+
cityName: string | null;
|
|
718
|
+
districtName: string | null;
|
|
719
|
+
subDistrictName: string | null;
|
|
720
|
+
zipCode: string | null;
|
|
721
|
+
};
|
|
722
|
+
fullAddressText: string | null;
|
|
723
|
+
createdAt: string;
|
|
724
|
+
updatedAt: string;
|
|
725
|
+
}, {
|
|
726
|
+
id: string;
|
|
727
|
+
isActive: boolean;
|
|
728
|
+
name: string;
|
|
729
|
+
pic: {
|
|
730
|
+
name: string;
|
|
731
|
+
phone: string;
|
|
732
|
+
};
|
|
733
|
+
address: {
|
|
734
|
+
addressId: string;
|
|
735
|
+
destinationCode: string | null;
|
|
736
|
+
provinceName: string | null;
|
|
737
|
+
cityName: string | null;
|
|
738
|
+
districtName: string | null;
|
|
739
|
+
subDistrictName: string | null;
|
|
740
|
+
zipCode: string | null;
|
|
741
|
+
};
|
|
742
|
+
fullAddressText: string | null;
|
|
743
|
+
createdAt: string;
|
|
744
|
+
updatedAt: string;
|
|
745
|
+
}>;
|
|
746
|
+
}, "strip", zod.ZodTypeAny, {
|
|
747
|
+
"0": {
|
|
748
|
+
id: string;
|
|
749
|
+
isActive: boolean;
|
|
750
|
+
name: string;
|
|
751
|
+
pic: {
|
|
752
|
+
name: string;
|
|
753
|
+
phone: string;
|
|
754
|
+
};
|
|
755
|
+
address: {
|
|
756
|
+
addressId: string;
|
|
757
|
+
destinationCode: string | null;
|
|
758
|
+
provinceName: string | null;
|
|
759
|
+
cityName: string | null;
|
|
760
|
+
districtName: string | null;
|
|
761
|
+
subDistrictName: string | null;
|
|
762
|
+
zipCode: string | null;
|
|
763
|
+
};
|
|
764
|
+
fullAddressText: string | null;
|
|
765
|
+
createdAt: string;
|
|
766
|
+
updatedAt: string;
|
|
767
|
+
};
|
|
768
|
+
}, {
|
|
769
|
+
"0": {
|
|
770
|
+
id: string;
|
|
771
|
+
isActive: boolean;
|
|
772
|
+
name: string;
|
|
773
|
+
pic: {
|
|
774
|
+
name: string;
|
|
775
|
+
phone: string;
|
|
776
|
+
};
|
|
777
|
+
address: {
|
|
778
|
+
addressId: string;
|
|
779
|
+
destinationCode: string | null;
|
|
780
|
+
provinceName: string | null;
|
|
781
|
+
cityName: string | null;
|
|
782
|
+
districtName: string | null;
|
|
783
|
+
subDistrictName: string | null;
|
|
784
|
+
zipCode: string | null;
|
|
785
|
+
};
|
|
786
|
+
fullAddressText: string | null;
|
|
787
|
+
createdAt: string;
|
|
788
|
+
updatedAt: string;
|
|
789
|
+
};
|
|
790
|
+
}>;
|
|
791
|
+
/**
|
|
792
|
+
* Lists paginated stock movements with optional filtering by itemId, batchId, warehouseId, and sorting.
|
|
793
|
+
* @summary List stock movements
|
|
794
|
+
*/
|
|
795
|
+
export declare const listStockMovementsQueryParams: zod.ZodObject<{
|
|
796
|
+
itemId: zod.ZodOptional<zod.ZodString>;
|
|
797
|
+
batchId: zod.ZodOptional<zod.ZodString>;
|
|
798
|
+
warehouseId: zod.ZodOptional<zod.ZodString>;
|
|
799
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
800
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
801
|
+
orderBy: zod.ZodOptional<zod.ZodString>;
|
|
802
|
+
descending: zod.ZodOptional<zod.ZodBoolean>;
|
|
803
|
+
}, "strip", zod.ZodTypeAny, {
|
|
804
|
+
itemId?: string | undefined;
|
|
805
|
+
batchId?: string | undefined;
|
|
806
|
+
warehouseId?: string | undefined;
|
|
807
|
+
page?: number | undefined;
|
|
808
|
+
pageSize?: number | undefined;
|
|
809
|
+
orderBy?: string | undefined;
|
|
810
|
+
descending?: boolean | undefined;
|
|
811
|
+
}, {
|
|
812
|
+
itemId?: string | undefined;
|
|
813
|
+
batchId?: string | undefined;
|
|
814
|
+
warehouseId?: string | undefined;
|
|
815
|
+
page?: number | undefined;
|
|
816
|
+
pageSize?: number | undefined;
|
|
817
|
+
orderBy?: string | undefined;
|
|
818
|
+
descending?: boolean | undefined;
|
|
819
|
+
}>;
|
|
820
|
+
export declare const listStockMovementsResponse: zod.ZodObject<{
|
|
821
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
822
|
+
id: zod.ZodString;
|
|
823
|
+
itemId: zod.ZodString;
|
|
824
|
+
itemName: zod.ZodString;
|
|
825
|
+
warehouseId: zod.ZodString;
|
|
826
|
+
warehouseName: zod.ZodString;
|
|
827
|
+
batchId: zod.ZodNullable<zod.ZodString>;
|
|
828
|
+
direction: zod.ZodString;
|
|
829
|
+
quantity: zod.ZodNumber;
|
|
830
|
+
sourceType: zod.ZodString;
|
|
831
|
+
sourceReferenceId: zod.ZodNullable<zod.ZodString>;
|
|
832
|
+
externalReferenceNo: zod.ZodNullable<zod.ZodString>;
|
|
833
|
+
note: zod.ZodNullable<zod.ZodString>;
|
|
834
|
+
createdAt: zod.ZodString;
|
|
835
|
+
recordedBy: zod.ZodNullable<zod.ZodString>;
|
|
836
|
+
receivedBy: zod.ZodNullable<zod.ZodString>;
|
|
837
|
+
}, "strip", zod.ZodTypeAny, {
|
|
838
|
+
id: string;
|
|
839
|
+
createdAt: string;
|
|
840
|
+
itemId: string;
|
|
841
|
+
batchId: string | null;
|
|
842
|
+
warehouseId: string;
|
|
843
|
+
itemName: string;
|
|
844
|
+
warehouseName: string;
|
|
845
|
+
direction: string;
|
|
846
|
+
quantity: number;
|
|
847
|
+
sourceType: string;
|
|
848
|
+
sourceReferenceId: string | null;
|
|
849
|
+
externalReferenceNo: string | null;
|
|
850
|
+
note: string | null;
|
|
851
|
+
recordedBy: string | null;
|
|
852
|
+
receivedBy: string | null;
|
|
853
|
+
}, {
|
|
854
|
+
id: string;
|
|
855
|
+
createdAt: string;
|
|
856
|
+
itemId: string;
|
|
857
|
+
batchId: string | null;
|
|
858
|
+
warehouseId: string;
|
|
859
|
+
itemName: string;
|
|
860
|
+
warehouseName: string;
|
|
861
|
+
direction: string;
|
|
862
|
+
quantity: number;
|
|
863
|
+
sourceType: string;
|
|
864
|
+
sourceReferenceId: string | null;
|
|
865
|
+
externalReferenceNo: string | null;
|
|
866
|
+
note: string | null;
|
|
867
|
+
recordedBy: string | null;
|
|
868
|
+
receivedBy: string | null;
|
|
869
|
+
}>, "many">;
|
|
870
|
+
page: zod.ZodNumber;
|
|
871
|
+
pageSize: zod.ZodNumber;
|
|
872
|
+
totalCount: zod.ZodNumber;
|
|
873
|
+
totalPages: zod.ZodNumber;
|
|
874
|
+
hasNextPage: zod.ZodBoolean;
|
|
875
|
+
hasPreviousPage: zod.ZodBoolean;
|
|
876
|
+
}, "strip", zod.ZodTypeAny, {
|
|
877
|
+
page: number;
|
|
878
|
+
pageSize: number;
|
|
879
|
+
items: {
|
|
880
|
+
id: string;
|
|
881
|
+
createdAt: string;
|
|
882
|
+
itemId: string;
|
|
883
|
+
batchId: string | null;
|
|
884
|
+
warehouseId: string;
|
|
885
|
+
itemName: string;
|
|
886
|
+
warehouseName: string;
|
|
887
|
+
direction: string;
|
|
888
|
+
quantity: number;
|
|
889
|
+
sourceType: string;
|
|
890
|
+
sourceReferenceId: string | null;
|
|
891
|
+
externalReferenceNo: string | null;
|
|
892
|
+
note: string | null;
|
|
893
|
+
recordedBy: string | null;
|
|
894
|
+
receivedBy: string | null;
|
|
895
|
+
}[];
|
|
896
|
+
totalCount: number;
|
|
897
|
+
totalPages: number;
|
|
898
|
+
hasNextPage: boolean;
|
|
899
|
+
hasPreviousPage: boolean;
|
|
900
|
+
}, {
|
|
901
|
+
page: number;
|
|
902
|
+
pageSize: number;
|
|
903
|
+
items: {
|
|
904
|
+
id: string;
|
|
905
|
+
createdAt: string;
|
|
906
|
+
itemId: string;
|
|
907
|
+
batchId: string | null;
|
|
908
|
+
warehouseId: string;
|
|
909
|
+
itemName: string;
|
|
910
|
+
warehouseName: string;
|
|
911
|
+
direction: string;
|
|
912
|
+
quantity: number;
|
|
913
|
+
sourceType: string;
|
|
914
|
+
sourceReferenceId: string | null;
|
|
915
|
+
externalReferenceNo: string | null;
|
|
916
|
+
note: string | null;
|
|
917
|
+
recordedBy: string | null;
|
|
918
|
+
receivedBy: string | null;
|
|
919
|
+
}[];
|
|
920
|
+
totalCount: number;
|
|
921
|
+
totalPages: number;
|
|
922
|
+
hasNextPage: boolean;
|
|
923
|
+
hasPreviousPage: boolean;
|
|
924
|
+
}>;
|
|
925
|
+
/**
|
|
926
|
+
* Creates a new stock item with a unique SKU and name.
|
|
927
|
+
* @summary Create a new stock item
|
|
928
|
+
*/
|
|
929
|
+
export declare const createStockItemBody: zod.ZodObject<{
|
|
930
|
+
name: zod.ZodString;
|
|
931
|
+
sku: zod.ZodString;
|
|
932
|
+
imageFileId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
933
|
+
}, "strip", zod.ZodTypeAny, {
|
|
934
|
+
name: string;
|
|
935
|
+
sku: string;
|
|
936
|
+
imageFileId?: string | null | undefined;
|
|
937
|
+
}, {
|
|
938
|
+
name: string;
|
|
939
|
+
sku: string;
|
|
940
|
+
imageFileId?: string | null | undefined;
|
|
941
|
+
}>;
|
|
942
|
+
/**
|
|
943
|
+
* Lists paginated stock items with aggregate on-hand, reserved, and available stock levels. Optionally filters by warehouseId, search, and isActive status.
|
|
944
|
+
* @summary List stock items
|
|
945
|
+
*/
|
|
946
|
+
export declare const listStockItemsQueryParams: zod.ZodObject<{
|
|
947
|
+
warehouseId: zod.ZodOptional<zod.ZodString>;
|
|
948
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
949
|
+
isActive: zod.ZodOptional<zod.ZodBoolean>;
|
|
950
|
+
page: zod.ZodOptional<zod.ZodNumber>;
|
|
951
|
+
pageSize: zod.ZodOptional<zod.ZodNumber>;
|
|
952
|
+
orderBy: zod.ZodOptional<zod.ZodString>;
|
|
953
|
+
descending: zod.ZodOptional<zod.ZodBoolean>;
|
|
954
|
+
}, "strip", zod.ZodTypeAny, {
|
|
955
|
+
isActive?: boolean | undefined;
|
|
956
|
+
search?: string | undefined;
|
|
957
|
+
warehouseId?: string | undefined;
|
|
958
|
+
page?: number | undefined;
|
|
959
|
+
pageSize?: number | undefined;
|
|
960
|
+
orderBy?: string | undefined;
|
|
961
|
+
descending?: boolean | undefined;
|
|
962
|
+
}, {
|
|
963
|
+
isActive?: boolean | undefined;
|
|
964
|
+
search?: string | undefined;
|
|
965
|
+
warehouseId?: string | undefined;
|
|
966
|
+
page?: number | undefined;
|
|
967
|
+
pageSize?: number | undefined;
|
|
968
|
+
orderBy?: string | undefined;
|
|
969
|
+
descending?: boolean | undefined;
|
|
970
|
+
}>;
|
|
971
|
+
export declare const listStockItemsResponse: zod.ZodObject<{
|
|
972
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
973
|
+
id: zod.ZodString;
|
|
974
|
+
sku: zod.ZodString;
|
|
975
|
+
name: zod.ZodString;
|
|
976
|
+
isActive: zod.ZodBoolean;
|
|
977
|
+
onHandQty: zod.ZodNumber;
|
|
978
|
+
reservedQty: zod.ZodNumber;
|
|
979
|
+
availableQty: zod.ZodNumber;
|
|
980
|
+
}, "strip", zod.ZodTypeAny, {
|
|
981
|
+
id: string;
|
|
982
|
+
isActive: boolean;
|
|
983
|
+
name: string;
|
|
984
|
+
sku: string;
|
|
985
|
+
onHandQty: number;
|
|
986
|
+
reservedQty: number;
|
|
987
|
+
availableQty: number;
|
|
988
|
+
}, {
|
|
989
|
+
id: string;
|
|
990
|
+
isActive: boolean;
|
|
991
|
+
name: string;
|
|
992
|
+
sku: string;
|
|
993
|
+
onHandQty: number;
|
|
994
|
+
reservedQty: number;
|
|
995
|
+
availableQty: number;
|
|
996
|
+
}>, "many">;
|
|
997
|
+
page: zod.ZodNumber;
|
|
998
|
+
pageSize: zod.ZodNumber;
|
|
999
|
+
totalCount: zod.ZodNumber;
|
|
1000
|
+
totalPages: zod.ZodNumber;
|
|
1001
|
+
hasNextPage: zod.ZodBoolean;
|
|
1002
|
+
hasPreviousPage: zod.ZodBoolean;
|
|
1003
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1004
|
+
page: number;
|
|
1005
|
+
pageSize: number;
|
|
1006
|
+
items: {
|
|
1007
|
+
id: string;
|
|
1008
|
+
isActive: boolean;
|
|
1009
|
+
name: string;
|
|
1010
|
+
sku: string;
|
|
1011
|
+
onHandQty: number;
|
|
1012
|
+
reservedQty: number;
|
|
1013
|
+
availableQty: number;
|
|
1014
|
+
}[];
|
|
1015
|
+
totalCount: number;
|
|
1016
|
+
totalPages: number;
|
|
1017
|
+
hasNextPage: boolean;
|
|
1018
|
+
hasPreviousPage: boolean;
|
|
1019
|
+
}, {
|
|
1020
|
+
page: number;
|
|
1021
|
+
pageSize: number;
|
|
1022
|
+
items: {
|
|
1023
|
+
id: string;
|
|
1024
|
+
isActive: boolean;
|
|
1025
|
+
name: string;
|
|
1026
|
+
sku: string;
|
|
1027
|
+
onHandQty: number;
|
|
1028
|
+
reservedQty: number;
|
|
1029
|
+
availableQty: number;
|
|
1030
|
+
}[];
|
|
1031
|
+
totalCount: number;
|
|
1032
|
+
totalPages: number;
|
|
1033
|
+
hasNextPage: boolean;
|
|
1034
|
+
hasPreviousPage: boolean;
|
|
1035
|
+
}>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Records a new batch receipt into a warehouse and updates stock levels atomically.
|
|
1038
|
+
* @summary Create a new stock batch
|
|
1039
|
+
*/
|
|
1040
|
+
export declare const createBatchBody: zod.ZodObject<{
|
|
1041
|
+
itemId: zod.ZodString;
|
|
1042
|
+
warehouseId: zod.ZodString;
|
|
1043
|
+
receivedAt: zod.ZodString;
|
|
1044
|
+
receivedQty: zod.ZodNumber;
|
|
1045
|
+
sourceType: zod.ZodString;
|
|
1046
|
+
unitCost: zod.ZodNumber;
|
|
1047
|
+
expiresOn: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1048
|
+
externalReferenceNo: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1049
|
+
note: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1050
|
+
receivedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1051
|
+
recordedBy: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
1052
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1053
|
+
itemId: string;
|
|
1054
|
+
warehouseId: string;
|
|
1055
|
+
sourceType: string;
|
|
1056
|
+
receivedAt: string;
|
|
1057
|
+
receivedQty: number;
|
|
1058
|
+
unitCost: number;
|
|
1059
|
+
externalReferenceNo?: string | null | undefined;
|
|
1060
|
+
note?: string | null | undefined;
|
|
1061
|
+
recordedBy?: string | null | undefined;
|
|
1062
|
+
receivedBy?: string | null | undefined;
|
|
1063
|
+
expiresOn?: string | null | undefined;
|
|
1064
|
+
}, {
|
|
1065
|
+
itemId: string;
|
|
1066
|
+
warehouseId: string;
|
|
1067
|
+
sourceType: string;
|
|
1068
|
+
receivedAt: string;
|
|
1069
|
+
receivedQty: number;
|
|
1070
|
+
unitCost: number;
|
|
1071
|
+
externalReferenceNo?: string | null | undefined;
|
|
1072
|
+
note?: string | null | undefined;
|
|
1073
|
+
recordedBy?: string | null | undefined;
|
|
1074
|
+
receivedBy?: string | null | undefined;
|
|
1075
|
+
expiresOn?: string | null | undefined;
|
|
1076
|
+
}>;
|
|
1077
|
+
/**
|
|
1078
|
+
* @summary API welcome message
|
|
1079
|
+
*/
|
|
1080
|
+
export declare const getResponse: zod.ZodObject<{
|
|
1081
|
+
message: zod.ZodString;
|
|
1082
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1083
|
+
message: string;
|
|
1084
|
+
}, {
|
|
1085
|
+
message: string;
|
|
1086
|
+
}>;
|
|
1087
|
+
//# sourceMappingURL=zod.d.ts.map
|