@esb-market-contracts/backend 1.0.49 → 1.0.51
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/api.d.ts +17 -4
- package/enums.d.ts +1 -2
- package/enums.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +18 -11
package/api.d.ts
CHANGED
|
@@ -704,7 +704,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
704
704
|
supplierId: number;
|
|
705
705
|
warehouseId: number;
|
|
706
706
|
currencyId: number;
|
|
707
|
-
status: "draft" | "posted"
|
|
707
|
+
status: "draft" | "posted";
|
|
708
708
|
exchangeRateId: number | null;
|
|
709
709
|
exchangeRate: string | null;
|
|
710
710
|
exchangeRateValidFromDate: string | null;
|
|
@@ -720,6 +720,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
720
720
|
unitCostBase: string | null;
|
|
721
721
|
supplierLotNumber: string | null;
|
|
722
722
|
expiresOn: string | null;
|
|
723
|
+
revision: number;
|
|
723
724
|
updatedAt: Date | null;
|
|
724
725
|
createdAt: Date;
|
|
725
726
|
product: {
|
|
@@ -765,7 +766,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
765
766
|
supplierId: number;
|
|
766
767
|
warehouseId: number;
|
|
767
768
|
currencyId: number;
|
|
768
|
-
status: "draft" | "posted"
|
|
769
|
+
status: "draft" | "posted";
|
|
769
770
|
exchangeRateId: number | null;
|
|
770
771
|
exchangeRate: string | null;
|
|
771
772
|
exchangeRateValidFromDate: string | null;
|
|
@@ -781,6 +782,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
781
782
|
unitCostBase: string | null;
|
|
782
783
|
supplierLotNumber: string | null;
|
|
783
784
|
expiresOn: string | null;
|
|
785
|
+
revision: number;
|
|
784
786
|
updatedAt: Date | null;
|
|
785
787
|
createdAt: Date;
|
|
786
788
|
product: {
|
|
@@ -829,7 +831,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
829
831
|
supplierId: number;
|
|
830
832
|
warehouseId: number;
|
|
831
833
|
currencyId: number;
|
|
832
|
-
status: "draft" | "posted"
|
|
834
|
+
status: "draft" | "posted";
|
|
833
835
|
exchangeRateId: number | null;
|
|
834
836
|
exchangeRate: string | null;
|
|
835
837
|
exchangeRateValidFromDate: string | null;
|
|
@@ -850,7 +852,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
850
852
|
supplierId?: number | undefined;
|
|
851
853
|
warehouseId?: number | undefined;
|
|
852
854
|
currencyId?: number | undefined;
|
|
853
|
-
status?: "draft" | "posted" |
|
|
855
|
+
status?: "draft" | "posted" | undefined;
|
|
854
856
|
createdAtFrom?: unknown;
|
|
855
857
|
createdAtTo?: unknown;
|
|
856
858
|
} | undefined;
|
|
@@ -919,6 +921,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
919
921
|
unitCostBase: string | null;
|
|
920
922
|
supplierLotNumber: string | null;
|
|
921
923
|
expiresOn: string | null;
|
|
924
|
+
revision: number;
|
|
922
925
|
updatedAt: Date | null;
|
|
923
926
|
createdAt: Date;
|
|
924
927
|
product: {
|
|
@@ -972,6 +975,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
972
975
|
unitCostBase: string | null;
|
|
973
976
|
supplierLotNumber: string | null;
|
|
974
977
|
expiresOn: string | null;
|
|
978
|
+
revision: number;
|
|
975
979
|
updatedAt: Date | null;
|
|
976
980
|
createdAt: Date;
|
|
977
981
|
product: {
|
|
@@ -1007,6 +1011,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1007
1011
|
unitCostBase: string | null;
|
|
1008
1012
|
supplierLotNumber: string | null;
|
|
1009
1013
|
expiresOn: string | null;
|
|
1014
|
+
revision: number;
|
|
1010
1015
|
updatedAt: Date | null;
|
|
1011
1016
|
createdAt: Date;
|
|
1012
1017
|
product: {
|
|
@@ -1058,6 +1063,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1058
1063
|
unitCostBase: string | null;
|
|
1059
1064
|
supplierLotNumber: string | null;
|
|
1060
1065
|
expiresOn: string | null;
|
|
1066
|
+
revision: number;
|
|
1061
1067
|
updatedAt: Date | null;
|
|
1062
1068
|
createdAt: Date;
|
|
1063
1069
|
product: {
|
|
@@ -1092,6 +1098,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1092
1098
|
supplierLotNumber?: string | null | undefined;
|
|
1093
1099
|
expiresOn?: string | null | undefined;
|
|
1094
1100
|
deliveryItemId: number;
|
|
1101
|
+
expectedRevision: number;
|
|
1095
1102
|
};
|
|
1096
1103
|
};
|
|
1097
1104
|
};
|
|
@@ -1109,6 +1116,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1109
1116
|
unitCostBase: string | null;
|
|
1110
1117
|
supplierLotNumber: string | null;
|
|
1111
1118
|
expiresOn: string | null;
|
|
1119
|
+
revision: number;
|
|
1112
1120
|
updatedAt: Date | null;
|
|
1113
1121
|
createdAt: Date;
|
|
1114
1122
|
product: {
|
|
@@ -1460,6 +1468,11 @@ declare const stockBalancesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1460
1468
|
updatedAt: Date | null;
|
|
1461
1469
|
createdAt: Date;
|
|
1462
1470
|
available: number;
|
|
1471
|
+
warehouse: {
|
|
1472
|
+
id: number;
|
|
1473
|
+
code: string;
|
|
1474
|
+
name: string;
|
|
1475
|
+
};
|
|
1463
1476
|
product: {
|
|
1464
1477
|
id: number;
|
|
1465
1478
|
model: string | null;
|
package/enums.d.ts
CHANGED
|
@@ -19,11 +19,10 @@ declare const entityStatusesRecord: Readonly<{
|
|
|
19
19
|
type EntityStatus = (typeof entityStatusesArray)[number];
|
|
20
20
|
//#endregion
|
|
21
21
|
//#region src/app/domain/(procurement)/deliveries/deliveries.enums.d.ts
|
|
22
|
-
declare const deliveryStatusesArray: readonly ['draft', 'posted'
|
|
22
|
+
declare const deliveryStatusesArray: readonly ['draft', 'posted'];
|
|
23
23
|
declare const deliveryStatusesRecord: Readonly<{
|
|
24
24
|
DRAFT: "draft";
|
|
25
25
|
POSTED: "posted";
|
|
26
|
-
REVERSED: "reversed";
|
|
27
26
|
}>;
|
|
28
27
|
type DeliveryStatus = (typeof deliveryStatusesArray)[number];
|
|
29
28
|
//#endregion
|
package/enums.js
CHANGED
|
@@ -21,7 +21,7 @@ var entityStatusesRecord = createStringEnumRecord2(entityStatusesArray);
|
|
|
21
21
|
// src/app/domain/(procurement)/deliveries/deliveries.enums.ts
|
|
22
22
|
import { createStringEnumRecord as createStringEnumRecord3 } from "@kalutskii/foundation";
|
|
23
23
|
import { pgEnum as pgEnum2 } from "drizzle-orm/pg-core";
|
|
24
|
-
var deliveryStatusesArray = ["draft", "posted"
|
|
24
|
+
var deliveryStatusesArray = ["draft", "posted"];
|
|
25
25
|
var deliveryStatusPGEnum = pgEnum2("delivery_status", deliveryStatusesArray);
|
|
26
26
|
var deliveryStatusesRecord = createStringEnumRecord3(deliveryStatusesArray);
|
|
27
27
|
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -420,7 +420,6 @@ declare const deliverySearchOptionsSchema: z.ZodObject<{
|
|
|
420
420
|
status: z.ZodOptional<z.ZodEnum<{
|
|
421
421
|
draft: "draft";
|
|
422
422
|
posted: "posted";
|
|
423
|
-
reversed: "reversed";
|
|
424
423
|
}>>;
|
|
425
424
|
createdAtFrom: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
426
425
|
createdAtTo: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -428,49 +427,49 @@ declare const deliverySearchOptionsSchema: z.ZodObject<{
|
|
|
428
427
|
supplierId?: number | undefined;
|
|
429
428
|
warehouseId?: number | undefined;
|
|
430
429
|
currencyId?: number | undefined;
|
|
431
|
-
status?: "draft" | "posted" |
|
|
430
|
+
status?: "draft" | "posted" | undefined;
|
|
432
431
|
createdAtFrom: Date;
|
|
433
432
|
createdAtTo?: Date | undefined;
|
|
434
433
|
} | {
|
|
435
434
|
supplierId?: number | undefined;
|
|
436
435
|
warehouseId?: number | undefined;
|
|
437
436
|
currencyId?: number | undefined;
|
|
438
|
-
status?: "draft" | "posted" |
|
|
437
|
+
status?: "draft" | "posted" | undefined;
|
|
439
438
|
createdAtFrom?: Date | undefined;
|
|
440
439
|
createdAtTo: Date;
|
|
441
440
|
} | {
|
|
442
441
|
supplierId?: number | undefined;
|
|
443
442
|
warehouseId?: number | undefined;
|
|
444
443
|
currencyId: number;
|
|
445
|
-
status?: "draft" | "posted" |
|
|
444
|
+
status?: "draft" | "posted" | undefined;
|
|
446
445
|
createdAtFrom?: Date | undefined;
|
|
447
446
|
createdAtTo?: Date | undefined;
|
|
448
447
|
} | {
|
|
449
448
|
supplierId?: number | undefined;
|
|
450
449
|
warehouseId?: number | undefined;
|
|
451
450
|
currencyId?: number | undefined;
|
|
452
|
-
status: "draft" | "posted"
|
|
451
|
+
status: "draft" | "posted";
|
|
453
452
|
createdAtFrom?: Date | undefined;
|
|
454
453
|
createdAtTo?: Date | undefined;
|
|
455
454
|
} | {
|
|
456
455
|
supplierId: number;
|
|
457
456
|
warehouseId?: number | undefined;
|
|
458
457
|
currencyId?: number | undefined;
|
|
459
|
-
status?: "draft" | "posted" |
|
|
458
|
+
status?: "draft" | "posted" | undefined;
|
|
460
459
|
createdAtFrom?: Date | undefined;
|
|
461
460
|
createdAtTo?: Date | undefined;
|
|
462
461
|
} | {
|
|
463
462
|
supplierId?: number | undefined;
|
|
464
463
|
warehouseId: number;
|
|
465
464
|
currencyId?: number | undefined;
|
|
466
|
-
status?: "draft" | "posted" |
|
|
465
|
+
status?: "draft" | "posted" | undefined;
|
|
467
466
|
createdAtFrom?: Date | undefined;
|
|
468
467
|
createdAtTo?: Date | undefined;
|
|
469
468
|
}, {
|
|
470
469
|
supplierId?: number | undefined;
|
|
471
470
|
warehouseId?: number | undefined;
|
|
472
471
|
currencyId?: number | undefined;
|
|
473
|
-
status?: "draft" | "posted" |
|
|
472
|
+
status?: "draft" | "posted" | undefined;
|
|
474
473
|
createdAtFrom?: Date | undefined;
|
|
475
474
|
createdAtTo?: Date | undefined;
|
|
476
475
|
}>>>;
|
|
@@ -489,7 +488,6 @@ declare const deliverySearchItemSchema: z.ZodObject<{
|
|
|
489
488
|
status: z.ZodEnum<{
|
|
490
489
|
draft: "draft";
|
|
491
490
|
posted: "posted";
|
|
492
|
-
reversed: "reversed";
|
|
493
491
|
}>;
|
|
494
492
|
exchangeRateId: z.ZodNullable<z.ZodInt>;
|
|
495
493
|
exchangeRate: z.ZodNullable<z.ZodString>;
|
|
@@ -533,6 +531,7 @@ declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
|
|
|
533
531
|
supplierLotNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
534
532
|
expiresOn: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
|
|
535
533
|
deliveryItemId: z.ZodInt;
|
|
534
|
+
expectedRevision: z.ZodInt;
|
|
536
535
|
}, {
|
|
537
536
|
out: {};
|
|
538
537
|
in: {};
|
|
@@ -580,6 +579,7 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
|
|
|
580
579
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
581
580
|
supplierLotNumber: z.ZodNullable<z.ZodString>;
|
|
582
581
|
expiresOn: z.ZodNullable<z.ZodISODate>;
|
|
582
|
+
revision: z.ZodInt;
|
|
583
583
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
584
584
|
createdAt: z.ZodDate;
|
|
585
585
|
product: z.ZodObject<{
|
|
@@ -627,6 +627,7 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
627
627
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
628
628
|
supplierLotNumber: z.ZodNullable<z.ZodString>;
|
|
629
629
|
expiresOn: z.ZodNullable<z.ZodISODate>;
|
|
630
|
+
revision: z.ZodInt;
|
|
630
631
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
631
632
|
createdAt: z.ZodDate;
|
|
632
633
|
product: z.ZodObject<{
|
|
@@ -670,6 +671,7 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
670
671
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
671
672
|
supplierLotNumber: z.ZodNullable<z.ZodString>;
|
|
672
673
|
expiresOn: z.ZodNullable<z.ZodISODate>;
|
|
674
|
+
revision: z.ZodInt;
|
|
673
675
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
674
676
|
createdAt: z.ZodDate;
|
|
675
677
|
product: z.ZodObject<{
|
|
@@ -715,7 +717,6 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
715
717
|
status: z.ZodEnum<{
|
|
716
718
|
draft: "draft";
|
|
717
719
|
posted: "posted";
|
|
718
|
-
reversed: "reversed";
|
|
719
720
|
}>;
|
|
720
721
|
exchangeRateId: z.ZodNullable<z.ZodInt>;
|
|
721
722
|
exchangeRate: z.ZodNullable<z.ZodString>;
|
|
@@ -732,6 +733,7 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
732
733
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
733
734
|
supplierLotNumber: z.ZodNullable<z.ZodString>;
|
|
734
735
|
expiresOn: z.ZodNullable<z.ZodISODate>;
|
|
736
|
+
revision: z.ZodInt;
|
|
735
737
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
736
738
|
createdAt: z.ZodDate;
|
|
737
739
|
product: z.ZodObject<{
|
|
@@ -904,6 +906,11 @@ declare const stockBalanceSearchItemSchema: z.ZodObject<{
|
|
|
904
906
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
905
907
|
createdAt: z.ZodDate;
|
|
906
908
|
available: z.ZodNumber;
|
|
909
|
+
warehouse: z.ZodObject<{
|
|
910
|
+
id: z.ZodInt;
|
|
911
|
+
code: z.ZodString;
|
|
912
|
+
name: z.ZodString;
|
|
913
|
+
}, z.core.$strip>;
|
|
907
914
|
product: z.ZodObject<{
|
|
908
915
|
id: z.ZodInt;
|
|
909
916
|
model: z.ZodNullable<z.ZodString>;
|
|
@@ -1337,6 +1344,7 @@ declare const deliveryItemSchema: z.ZodObject<{
|
|
|
1337
1344
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
1338
1345
|
supplierLotNumber: z.ZodNullable<z.ZodString>;
|
|
1339
1346
|
expiresOn: z.ZodNullable<z.ZodISODate>;
|
|
1347
|
+
revision: z.ZodInt;
|
|
1340
1348
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1341
1349
|
createdAt: z.ZodDate;
|
|
1342
1350
|
}, z.core.$strip>;
|
|
@@ -1352,7 +1360,6 @@ declare const deliverySchema: z.ZodObject<{
|
|
|
1352
1360
|
status: z.ZodEnum<{
|
|
1353
1361
|
draft: "draft";
|
|
1354
1362
|
posted: "posted";
|
|
1355
|
-
reversed: "reversed";
|
|
1356
1363
|
}>;
|
|
1357
1364
|
exchangeRateId: z.ZodNullable<z.ZodInt>;
|
|
1358
1365
|
exchangeRate: z.ZodNullable<z.ZodString>;
|