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