@arascreative/erp-client 1.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/api.d.ts +109 -112
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +77 -77
- package/dist/generated/zod.d.ts +166 -129
- package/dist/generated/zod.d.ts.map +1 -1
- package/dist/generated/zod.js +27 -28
- package/package.json +1 -1
package/dist/generated/zod.d.ts
CHANGED
|
@@ -609,19 +609,6 @@ export declare const deleteStoredFileParams: zod.ZodObject<{
|
|
|
609
609
|
}, {
|
|
610
610
|
id: string;
|
|
611
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
612
|
/**
|
|
626
613
|
* Creates a new warehouse with an address resolved from the Address service and an initial active state.
|
|
627
614
|
* @summary Create a new warehouse
|
|
@@ -659,135 +646,172 @@ export declare const listWarehousesQueryParams: zod.ZodObject<{
|
|
|
659
646
|
isActive?: boolean | undefined;
|
|
660
647
|
search?: string | undefined;
|
|
661
648
|
}>;
|
|
662
|
-
export declare const
|
|
663
|
-
|
|
664
|
-
|
|
649
|
+
export declare const listWarehousesResponseItem: zod.ZodObject<{
|
|
650
|
+
id: zod.ZodString;
|
|
651
|
+
name: zod.ZodString;
|
|
652
|
+
pic: zod.ZodObject<{
|
|
665
653
|
name: zod.ZodString;
|
|
666
|
-
|
|
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;
|
|
654
|
+
phone: zod.ZodString;
|
|
705
655
|
}, "strip", zod.ZodTypeAny, {
|
|
706
|
-
id: string;
|
|
707
|
-
isActive: boolean;
|
|
708
656
|
name: string;
|
|
709
|
-
|
|
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;
|
|
657
|
+
phone: string;
|
|
725
658
|
}, {
|
|
726
|
-
id: string;
|
|
727
|
-
isActive: boolean;
|
|
728
659
|
name: string;
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
660
|
+
phone: string;
|
|
661
|
+
}>;
|
|
662
|
+
address: zod.ZodObject<{
|
|
663
|
+
addressId: zod.ZodString;
|
|
664
|
+
destinationCode: zod.ZodNullable<zod.ZodString>;
|
|
665
|
+
provinceName: zod.ZodNullable<zod.ZodString>;
|
|
666
|
+
cityName: zod.ZodNullable<zod.ZodString>;
|
|
667
|
+
districtName: zod.ZodNullable<zod.ZodString>;
|
|
668
|
+
subDistrictName: zod.ZodNullable<zod.ZodString>;
|
|
669
|
+
zipCode: zod.ZodNullable<zod.ZodString>;
|
|
670
|
+
}, "strip", zod.ZodTypeAny, {
|
|
671
|
+
addressId: string;
|
|
672
|
+
destinationCode: string | null;
|
|
673
|
+
provinceName: string | null;
|
|
674
|
+
cityName: string | null;
|
|
675
|
+
districtName: string | null;
|
|
676
|
+
subDistrictName: string | null;
|
|
677
|
+
zipCode: string | null;
|
|
678
|
+
}, {
|
|
679
|
+
addressId: string;
|
|
680
|
+
destinationCode: string | null;
|
|
681
|
+
provinceName: string | null;
|
|
682
|
+
cityName: string | null;
|
|
683
|
+
districtName: string | null;
|
|
684
|
+
subDistrictName: string | null;
|
|
685
|
+
zipCode: string | null;
|
|
745
686
|
}>;
|
|
687
|
+
fullAddressText: zod.ZodNullable<zod.ZodString>;
|
|
688
|
+
isActive: zod.ZodBoolean;
|
|
689
|
+
createdAt: zod.ZodString;
|
|
690
|
+
updatedAt: zod.ZodString;
|
|
746
691
|
}, "strip", zod.ZodTypeAny, {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
692
|
+
id: string;
|
|
693
|
+
isActive: boolean;
|
|
694
|
+
name: string;
|
|
695
|
+
pic: {
|
|
750
696
|
name: string;
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
subDistrictName: string | null;
|
|
762
|
-
zipCode: string | null;
|
|
763
|
-
};
|
|
764
|
-
fullAddressText: string | null;
|
|
765
|
-
createdAt: string;
|
|
766
|
-
updatedAt: string;
|
|
697
|
+
phone: string;
|
|
698
|
+
};
|
|
699
|
+
address: {
|
|
700
|
+
addressId: string;
|
|
701
|
+
destinationCode: string | null;
|
|
702
|
+
provinceName: string | null;
|
|
703
|
+
cityName: string | null;
|
|
704
|
+
districtName: string | null;
|
|
705
|
+
subDistrictName: string | null;
|
|
706
|
+
zipCode: string | null;
|
|
767
707
|
};
|
|
708
|
+
fullAddressText: string | null;
|
|
709
|
+
createdAt: string;
|
|
710
|
+
updatedAt: string;
|
|
768
711
|
}, {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
712
|
+
id: string;
|
|
713
|
+
isActive: boolean;
|
|
714
|
+
name: string;
|
|
715
|
+
pic: {
|
|
772
716
|
name: string;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
subDistrictName: string | null;
|
|
784
|
-
zipCode: string | null;
|
|
785
|
-
};
|
|
786
|
-
fullAddressText: string | null;
|
|
787
|
-
createdAt: string;
|
|
788
|
-
updatedAt: string;
|
|
717
|
+
phone: string;
|
|
718
|
+
};
|
|
719
|
+
address: {
|
|
720
|
+
addressId: string;
|
|
721
|
+
destinationCode: string | null;
|
|
722
|
+
provinceName: string | null;
|
|
723
|
+
cityName: string | null;
|
|
724
|
+
districtName: string | null;
|
|
725
|
+
subDistrictName: string | null;
|
|
726
|
+
zipCode: string | null;
|
|
789
727
|
};
|
|
728
|
+
fullAddressText: string | null;
|
|
729
|
+
createdAt: string;
|
|
730
|
+
updatedAt: string;
|
|
790
731
|
}>;
|
|
732
|
+
export declare const listWarehousesResponse: zod.ZodArray<zod.ZodObject<{
|
|
733
|
+
id: zod.ZodString;
|
|
734
|
+
name: zod.ZodString;
|
|
735
|
+
pic: zod.ZodObject<{
|
|
736
|
+
name: zod.ZodString;
|
|
737
|
+
phone: zod.ZodString;
|
|
738
|
+
}, "strip", zod.ZodTypeAny, {
|
|
739
|
+
name: string;
|
|
740
|
+
phone: string;
|
|
741
|
+
}, {
|
|
742
|
+
name: string;
|
|
743
|
+
phone: string;
|
|
744
|
+
}>;
|
|
745
|
+
address: zod.ZodObject<{
|
|
746
|
+
addressId: zod.ZodString;
|
|
747
|
+
destinationCode: zod.ZodNullable<zod.ZodString>;
|
|
748
|
+
provinceName: zod.ZodNullable<zod.ZodString>;
|
|
749
|
+
cityName: zod.ZodNullable<zod.ZodString>;
|
|
750
|
+
districtName: zod.ZodNullable<zod.ZodString>;
|
|
751
|
+
subDistrictName: zod.ZodNullable<zod.ZodString>;
|
|
752
|
+
zipCode: zod.ZodNullable<zod.ZodString>;
|
|
753
|
+
}, "strip", zod.ZodTypeAny, {
|
|
754
|
+
addressId: string;
|
|
755
|
+
destinationCode: string | null;
|
|
756
|
+
provinceName: string | null;
|
|
757
|
+
cityName: string | null;
|
|
758
|
+
districtName: string | null;
|
|
759
|
+
subDistrictName: string | null;
|
|
760
|
+
zipCode: string | null;
|
|
761
|
+
}, {
|
|
762
|
+
addressId: string;
|
|
763
|
+
destinationCode: string | null;
|
|
764
|
+
provinceName: string | null;
|
|
765
|
+
cityName: string | null;
|
|
766
|
+
districtName: string | null;
|
|
767
|
+
subDistrictName: string | null;
|
|
768
|
+
zipCode: string | null;
|
|
769
|
+
}>;
|
|
770
|
+
fullAddressText: zod.ZodNullable<zod.ZodString>;
|
|
771
|
+
isActive: zod.ZodBoolean;
|
|
772
|
+
createdAt: zod.ZodString;
|
|
773
|
+
updatedAt: zod.ZodString;
|
|
774
|
+
}, "strip", zod.ZodTypeAny, {
|
|
775
|
+
id: string;
|
|
776
|
+
isActive: boolean;
|
|
777
|
+
name: string;
|
|
778
|
+
pic: {
|
|
779
|
+
name: string;
|
|
780
|
+
phone: string;
|
|
781
|
+
};
|
|
782
|
+
address: {
|
|
783
|
+
addressId: string;
|
|
784
|
+
destinationCode: string | null;
|
|
785
|
+
provinceName: string | null;
|
|
786
|
+
cityName: string | null;
|
|
787
|
+
districtName: string | null;
|
|
788
|
+
subDistrictName: string | null;
|
|
789
|
+
zipCode: string | null;
|
|
790
|
+
};
|
|
791
|
+
fullAddressText: string | null;
|
|
792
|
+
createdAt: string;
|
|
793
|
+
updatedAt: string;
|
|
794
|
+
}, {
|
|
795
|
+
id: string;
|
|
796
|
+
isActive: boolean;
|
|
797
|
+
name: string;
|
|
798
|
+
pic: {
|
|
799
|
+
name: string;
|
|
800
|
+
phone: string;
|
|
801
|
+
};
|
|
802
|
+
address: {
|
|
803
|
+
addressId: string;
|
|
804
|
+
destinationCode: string | null;
|
|
805
|
+
provinceName: string | null;
|
|
806
|
+
cityName: string | null;
|
|
807
|
+
districtName: string | null;
|
|
808
|
+
subDistrictName: string | null;
|
|
809
|
+
zipCode: string | null;
|
|
810
|
+
};
|
|
811
|
+
fullAddressText: string | null;
|
|
812
|
+
createdAt: string;
|
|
813
|
+
updatedAt: string;
|
|
814
|
+
}>, "many">;
|
|
791
815
|
/**
|
|
792
816
|
* Lists paginated stock movements with optional filtering by itemId, batchId, warehouseId, and sorting.
|
|
793
817
|
* @summary List stock movements
|
|
@@ -1074,6 +1098,19 @@ export declare const createBatchBody: zod.ZodObject<{
|
|
|
1074
1098
|
receivedBy?: string | null | undefined;
|
|
1075
1099
|
expiresOn?: string | null | undefined;
|
|
1076
1100
|
}>;
|
|
1101
|
+
/**
|
|
1102
|
+
* @summary Health check
|
|
1103
|
+
*/
|
|
1104
|
+
export declare const getHealthResponse: zod.ZodObject<{
|
|
1105
|
+
status: zod.ZodString;
|
|
1106
|
+
timestamp: zod.ZodString;
|
|
1107
|
+
}, "strip", zod.ZodTypeAny, {
|
|
1108
|
+
status: string;
|
|
1109
|
+
timestamp: string;
|
|
1110
|
+
}, {
|
|
1111
|
+
status: string;
|
|
1112
|
+
timestamp: string;
|
|
1113
|
+
}>;
|
|
1077
1114
|
/**
|
|
1078
1115
|
* @summary API welcome message
|
|
1079
1116
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../src/generated/zod.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAE3B;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;EAGtC,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;EAGpB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAA;AAGF;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAA;AAGF;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;;;;;EAGzB,CAAA;AAGF;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAI1B,CAAA;AAGF;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAA;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtC,CAAA;AACF,eAA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ated/zod.js
CHANGED
|
@@ -253,13 +253,6 @@ export const getStoredFileByIdResponse = zod.object({
|
|
|
253
253
|
export const deleteStoredFileParams = zod.object({
|
|
254
254
|
"id": zod.string()
|
|
255
255
|
});
|
|
256
|
-
/**
|
|
257
|
-
* @summary Health check
|
|
258
|
-
*/
|
|
259
|
-
export const getHealthResponse = zod.object({
|
|
260
|
-
"status": zod.string(),
|
|
261
|
-
"timestamp": zod.string()
|
|
262
|
-
});
|
|
263
256
|
/**
|
|
264
257
|
* Creates a new warehouse with an address resolved from the Address service and an initial active state.
|
|
265
258
|
* @summary Create a new warehouse
|
|
@@ -279,29 +272,28 @@ export const listWarehousesQueryParams = zod.object({
|
|
|
279
272
|
"search": zod.string().optional(),
|
|
280
273
|
"isActive": zod.boolean().optional()
|
|
281
274
|
});
|
|
282
|
-
export const
|
|
283
|
-
"
|
|
284
|
-
|
|
275
|
+
export const listWarehousesResponseItem = zod.object({
|
|
276
|
+
"id": zod.string(),
|
|
277
|
+
"name": zod.string(),
|
|
278
|
+
"pic": zod.object({
|
|
285
279
|
"name": zod.string(),
|
|
286
|
-
"
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
"
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
"createdAt": zod.string(),
|
|
302
|
-
"updatedAt": zod.string()
|
|
303
|
-
})
|
|
280
|
+
"phone": zod.string()
|
|
281
|
+
}),
|
|
282
|
+
"address": zod.object({
|
|
283
|
+
"addressId": zod.string(),
|
|
284
|
+
"destinationCode": zod.string().nullable(),
|
|
285
|
+
"provinceName": zod.string().nullable(),
|
|
286
|
+
"cityName": zod.string().nullable(),
|
|
287
|
+
"districtName": zod.string().nullable(),
|
|
288
|
+
"subDistrictName": zod.string().nullable(),
|
|
289
|
+
"zipCode": zod.string().nullable()
|
|
290
|
+
}),
|
|
291
|
+
"fullAddressText": zod.string().nullable(),
|
|
292
|
+
"isActive": zod.boolean(),
|
|
293
|
+
"createdAt": zod.string(),
|
|
294
|
+
"updatedAt": zod.string()
|
|
304
295
|
});
|
|
296
|
+
export const listWarehousesResponse = zod.array(listWarehousesResponseItem);
|
|
305
297
|
/**
|
|
306
298
|
* Lists paginated stock movements with optional filtering by itemId, batchId, warehouseId, and sorting.
|
|
307
299
|
* @summary List stock movements
|
|
@@ -396,6 +388,13 @@ export const createBatchBody = zod.object({
|
|
|
396
388
|
"receivedBy": zod.string().nullish(),
|
|
397
389
|
"recordedBy": zod.string().nullish()
|
|
398
390
|
});
|
|
391
|
+
/**
|
|
392
|
+
* @summary Health check
|
|
393
|
+
*/
|
|
394
|
+
export const getHealthResponse = zod.object({
|
|
395
|
+
"status": zod.string(),
|
|
396
|
+
"timestamp": zod.string()
|
|
397
|
+
});
|
|
399
398
|
/**
|
|
400
399
|
* @summary API welcome message
|
|
401
400
|
*/
|