@esb-market-contracts/backend 1.0.42 → 1.0.44
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 +36 -26
- package/enums.d.ts +2 -2
- package/enums.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +41 -59
package/api.d.ts
CHANGED
|
@@ -706,7 +706,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
706
706
|
id: number;
|
|
707
707
|
deliveryId: number;
|
|
708
708
|
productVariantId: number;
|
|
709
|
-
quantity: number;
|
|
709
|
+
quantity: number | null;
|
|
710
710
|
unitCost: string | null;
|
|
711
711
|
unitCostBase: string | null;
|
|
712
712
|
updatedAt: Date | null;
|
|
@@ -762,7 +762,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
762
762
|
id: number;
|
|
763
763
|
deliveryId: number;
|
|
764
764
|
productVariantId: number;
|
|
765
|
-
quantity: number;
|
|
765
|
+
quantity: number | null;
|
|
766
766
|
unitCost: string | null;
|
|
767
767
|
unitCostBase: string | null;
|
|
768
768
|
updatedAt: Date | null;
|
|
@@ -895,7 +895,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
895
895
|
id: number;
|
|
896
896
|
deliveryId: number;
|
|
897
897
|
productVariantId: number;
|
|
898
|
-
quantity: number;
|
|
898
|
+
quantity: number | null;
|
|
899
899
|
unitCost: string | null;
|
|
900
900
|
unitCostBase: string | null;
|
|
901
901
|
updatedAt: Date | null;
|
|
@@ -940,7 +940,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
940
940
|
id: number;
|
|
941
941
|
deliveryId: number;
|
|
942
942
|
productVariantId: number;
|
|
943
|
-
quantity: number;
|
|
943
|
+
quantity: number | null;
|
|
944
944
|
unitCost: string | null;
|
|
945
945
|
unitCostBase: string | null;
|
|
946
946
|
updatedAt: Date | null;
|
|
@@ -964,27 +964,37 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
964
964
|
};
|
|
965
965
|
};
|
|
966
966
|
} | {
|
|
967
|
-
outcome: "
|
|
968
|
-
|
|
969
|
-
} | {
|
|
970
|
-
product: {
|
|
971
|
-
id: number;
|
|
972
|
-
model: string | null;
|
|
973
|
-
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
974
|
-
};
|
|
975
|
-
measurementUnit: {
|
|
976
|
-
id: number;
|
|
977
|
-
code: string;
|
|
978
|
-
name: string;
|
|
979
|
-
decimalPlaces: number;
|
|
980
|
-
};
|
|
981
|
-
productVariant: {
|
|
967
|
+
outcome: "unchanged";
|
|
968
|
+
deliveryItem: {
|
|
982
969
|
id: number;
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
970
|
+
deliveryId: number;
|
|
971
|
+
productVariantId: number;
|
|
972
|
+
quantity: number | null;
|
|
973
|
+
unitCost: string | null;
|
|
974
|
+
unitCostBase: string | null;
|
|
975
|
+
updatedAt: Date | null;
|
|
976
|
+
createdAt: Date;
|
|
977
|
+
product: {
|
|
978
|
+
id: number;
|
|
979
|
+
model: string | null;
|
|
980
|
+
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
981
|
+
};
|
|
982
|
+
productVariant: {
|
|
983
|
+
id: number;
|
|
984
|
+
sku: string | null;
|
|
985
|
+
barcode: string | null;
|
|
986
|
+
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
987
|
+
};
|
|
988
|
+
measurementUnit: {
|
|
989
|
+
id: number;
|
|
990
|
+
code: string;
|
|
991
|
+
name: string;
|
|
992
|
+
decimalPlaces: number;
|
|
993
|
+
};
|
|
986
994
|
};
|
|
987
|
-
|
|
995
|
+
} | {
|
|
996
|
+
outcome: "product-variant-not-found";
|
|
997
|
+
barcode: string;
|
|
988
998
|
}>;
|
|
989
999
|
outputFormat: "json";
|
|
990
1000
|
status: 200;
|
|
@@ -1004,7 +1014,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1004
1014
|
id: number;
|
|
1005
1015
|
deliveryId: number;
|
|
1006
1016
|
productVariantId: number;
|
|
1007
|
-
quantity: number;
|
|
1017
|
+
quantity: number | null;
|
|
1008
1018
|
unitCost: string | null;
|
|
1009
1019
|
unitCostBase: string | null;
|
|
1010
1020
|
updatedAt: Date | null;
|
|
@@ -1032,7 +1042,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1032
1042
|
status: 200;
|
|
1033
1043
|
input: {
|
|
1034
1044
|
json: {
|
|
1035
|
-
quantity?: number | undefined;
|
|
1045
|
+
quantity?: number | null | undefined;
|
|
1036
1046
|
unitCost?: string | null | undefined;
|
|
1037
1047
|
deliveryItemId: number;
|
|
1038
1048
|
};
|
|
@@ -1047,7 +1057,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1047
1057
|
id: number;
|
|
1048
1058
|
deliveryId: number;
|
|
1049
1059
|
productVariantId: number;
|
|
1050
|
-
quantity: number;
|
|
1060
|
+
quantity: number | null;
|
|
1051
1061
|
unitCost: string | null;
|
|
1052
1062
|
unitCostBase: string | null;
|
|
1053
1063
|
updatedAt: Date | null;
|
package/enums.d.ts
CHANGED
|
@@ -28,11 +28,11 @@ declare const deliveryStatusesRecord: Readonly<{
|
|
|
28
28
|
type DeliveryStatus = (typeof deliveryStatusesArray)[number];
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/app/flows/(procurement)/delivery/delivery.enums.d.ts
|
|
31
|
-
export declare const deliveryItemScanOutcomesArray: readonly ['added', '
|
|
31
|
+
export declare const deliveryItemScanOutcomesArray: readonly ['added', 'unchanged', 'product-variant-not-found'];
|
|
32
32
|
declare const deliveryItemScanOutcomesRecord: Readonly<{
|
|
33
33
|
ADDED: "added";
|
|
34
34
|
PRODUCT_VARIANT_NOT_FOUND: "product-variant-not-found";
|
|
35
|
-
|
|
35
|
+
UNCHANGED: "unchanged";
|
|
36
36
|
}>;
|
|
37
37
|
type DeliveryItemScanOutcome = (typeof deliveryItemScanOutcomesArray)[number];
|
|
38
38
|
//#endregion
|
package/enums.js
CHANGED
|
@@ -28,7 +28,7 @@ var deliveryStatusesRecord = createStringEnumRecord3(deliveryStatusesArray);
|
|
|
28
28
|
// src/app/flows/(procurement)/delivery/delivery.enums.ts
|
|
29
29
|
import { createStringEnumRecord as createStringEnumRecord4 } from "@kalutskii/foundation";
|
|
30
30
|
import { z as z2 } from "zod";
|
|
31
|
-
var deliveryItemScanOutcomesArray = ["added", "
|
|
31
|
+
var deliveryItemScanOutcomesArray = ["added", "unchanged", "product-variant-not-found"];
|
|
32
32
|
var deliveryItemScanOutcomesRecord = createStringEnumRecord4(deliveryItemScanOutcomesArray);
|
|
33
33
|
var deliveryItemScanOutcomeSchema = z2.enum(deliveryItemScanOutcomesArray);
|
|
34
34
|
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -521,13 +521,13 @@ declare const deliveryItemAddPayloadSchema: z.ZodObject<{
|
|
|
521
521
|
deliveryId: z.ZodInt;
|
|
522
522
|
productVariantId: z.ZodInt;
|
|
523
523
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
524
|
-
quantity: z.
|
|
524
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
525
525
|
}, {
|
|
526
526
|
out: {};
|
|
527
527
|
in: {};
|
|
528
528
|
}>;
|
|
529
529
|
declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
|
|
530
|
-
quantity: z.ZodOptional<z.ZodNumber
|
|
530
|
+
quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
531
531
|
unitCost: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
532
532
|
deliveryItemId: z.ZodInt;
|
|
533
533
|
}, {
|
|
@@ -568,7 +568,7 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
|
|
|
568
568
|
id: z.ZodInt;
|
|
569
569
|
deliveryId: z.ZodInt;
|
|
570
570
|
productVariantId: z.ZodInt;
|
|
571
|
-
quantity: z.ZodNumber
|
|
571
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
572
572
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
573
573
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
574
574
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -599,33 +599,6 @@ declare const deliveryItemDetailsSchema: z.ZodObject<{
|
|
|
599
599
|
decimalPlaces: z.ZodInt;
|
|
600
600
|
}, z.core.$strip>;
|
|
601
601
|
}, z.core.$strip>;
|
|
602
|
-
declare const deliveryItemScanMatchSchema: z.ZodObject<{
|
|
603
|
-
product: z.ZodObject<{
|
|
604
|
-
id: z.ZodInt;
|
|
605
|
-
model: z.ZodNullable<z.ZodString>;
|
|
606
|
-
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
607
|
-
en: "en";
|
|
608
|
-
ka: "ka";
|
|
609
|
-
ru: "ru";
|
|
610
|
-
}> & z.core.$partial, z.ZodString>>;
|
|
611
|
-
}, z.core.$strip>;
|
|
612
|
-
measurementUnit: z.ZodObject<{
|
|
613
|
-
id: z.ZodInt;
|
|
614
|
-
code: z.ZodString;
|
|
615
|
-
name: z.ZodString;
|
|
616
|
-
decimalPlaces: z.ZodInt;
|
|
617
|
-
}, z.core.$strip>;
|
|
618
|
-
productVariant: z.ZodObject<{
|
|
619
|
-
id: z.ZodInt;
|
|
620
|
-
sku: z.ZodNullable<z.ZodString>;
|
|
621
|
-
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
622
|
-
en: "en";
|
|
623
|
-
ka: "ka";
|
|
624
|
-
ru: "ru";
|
|
625
|
-
}> & z.core.$partial, z.ZodString>>;
|
|
626
|
-
barcode: z.ZodString;
|
|
627
|
-
}, z.core.$strip>;
|
|
628
|
-
}, z.core.$strip>;
|
|
629
602
|
declare const deliveryItemScanPayloadSchema: z.ZodObject<{
|
|
630
603
|
deliveryId: z.ZodInt;
|
|
631
604
|
barcode: z.ZodString;
|
|
@@ -636,7 +609,7 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
636
609
|
id: z.ZodInt;
|
|
637
610
|
deliveryId: z.ZodInt;
|
|
638
611
|
productVariantId: z.ZodInt;
|
|
639
|
-
quantity: z.ZodNumber
|
|
612
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
640
613
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
641
614
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
642
615
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -668,32 +641,42 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
668
641
|
}, z.core.$strip>;
|
|
669
642
|
}, z.core.$strip>;
|
|
670
643
|
}, z.core.$strip>, z.ZodObject<{
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
model: z.ZodNullable<z.ZodString>;
|
|
674
|
-
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
675
|
-
en: "en";
|
|
676
|
-
ka: "ka";
|
|
677
|
-
ru: "ru";
|
|
678
|
-
}> & z.core.$partial, z.ZodString>>;
|
|
679
|
-
}, z.core.$strip>;
|
|
680
|
-
measurementUnit: z.ZodObject<{
|
|
681
|
-
id: z.ZodInt;
|
|
682
|
-
code: z.ZodString;
|
|
683
|
-
name: z.ZodString;
|
|
684
|
-
decimalPlaces: z.ZodInt;
|
|
685
|
-
}, z.core.$strip>;
|
|
686
|
-
productVariant: z.ZodObject<{
|
|
644
|
+
outcome: z.ZodLiteral<"unchanged">;
|
|
645
|
+
deliveryItem: z.ZodObject<{
|
|
687
646
|
id: z.ZodInt;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
647
|
+
deliveryId: z.ZodInt;
|
|
648
|
+
productVariantId: z.ZodInt;
|
|
649
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
650
|
+
unitCost: z.ZodNullable<z.ZodString>;
|
|
651
|
+
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
652
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
653
|
+
createdAt: z.ZodDate;
|
|
654
|
+
product: z.ZodObject<{
|
|
655
|
+
id: z.ZodInt;
|
|
656
|
+
model: z.ZodNullable<z.ZodString>;
|
|
657
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
658
|
+
en: "en";
|
|
659
|
+
ka: "ka";
|
|
660
|
+
ru: "ru";
|
|
661
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
productVariant: z.ZodObject<{
|
|
664
|
+
id: z.ZodInt;
|
|
665
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
666
|
+
barcode: z.ZodNullable<z.ZodString>;
|
|
667
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
668
|
+
en: "en";
|
|
669
|
+
ka: "ka";
|
|
670
|
+
ru: "ru";
|
|
671
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
672
|
+
}, z.core.$strip>;
|
|
673
|
+
measurementUnit: z.ZodObject<{
|
|
674
|
+
id: z.ZodInt;
|
|
675
|
+
code: z.ZodString;
|
|
676
|
+
name: z.ZodString;
|
|
677
|
+
decimalPlaces: z.ZodInt;
|
|
678
|
+
}, z.core.$strip>;
|
|
695
679
|
}, z.core.$strip>;
|
|
696
|
-
outcome: z.ZodLiteral<"quantity-required">;
|
|
697
680
|
}, z.core.$strip>, z.ZodObject<{
|
|
698
681
|
outcome: z.ZodLiteral<"product-variant-not-found">;
|
|
699
682
|
barcode: z.ZodString;
|
|
@@ -720,7 +703,7 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
720
703
|
id: z.ZodInt;
|
|
721
704
|
deliveryId: z.ZodInt;
|
|
722
705
|
productVariantId: z.ZodInt;
|
|
723
|
-
quantity: z.ZodNumber
|
|
706
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
724
707
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
725
708
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
726
709
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -761,7 +744,6 @@ type DeliveryItemScanPayload = z.infer<typeof deliveryItemScanPayloadSchema>;
|
|
|
761
744
|
type DeliveryItemScanResult = z.infer<typeof deliveryItemScanResultSchema>;
|
|
762
745
|
type DeliveryItemCatalogDetails = z.infer<typeof deliveryItemCatalogDetailsSchema>;
|
|
763
746
|
type DeliveryItemDetails = z.infer<typeof deliveryItemDetailsSchema>;
|
|
764
|
-
type DeliveryItemScanMatch = z.infer<typeof deliveryItemScanMatchSchema>;
|
|
765
747
|
type DeliveryItemResult = {
|
|
766
748
|
deliveryItem: DeliveryItemDetails;
|
|
767
749
|
};
|
|
@@ -1246,7 +1228,7 @@ declare const deliveryItemSchema: z.ZodObject<{
|
|
|
1246
1228
|
id: z.ZodInt;
|
|
1247
1229
|
deliveryId: z.ZodInt;
|
|
1248
1230
|
productVariantId: z.ZodInt;
|
|
1249
|
-
quantity: z.ZodNumber
|
|
1231
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
1250
1232
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
1251
1233
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
1252
1234
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -1276,4 +1258,4 @@ declare const deliverySchema: z.ZodObject<{
|
|
|
1276
1258
|
}, z.core.$strip>;
|
|
1277
1259
|
type Delivery = z.infer<typeof deliverySchema>;
|
|
1278
1260
|
//#endregion
|
|
1279
|
-
export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandUpdatePayload, Category, CategoryCreatePayload, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategoryUpdatePayload, Country, CountryCreatePayload, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyListResult, Customer, CustomerCreatePayload, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemResult,
|
|
1261
|
+
export type { AuditLogResult, AuditLogSearchPayload, AuditLogSearchResult, AuditLogSelectOneQuery, Brand, BrandCreatePayload, BrandSearchOptions, BrandSearchResult, BrandSelectOneQuery, BrandUpdatePayload, Category, CategoryCreatePayload, CategorySearchOptions, CategorySearchResult, CategorySelectOneQuery, CategoryUpdatePayload, Country, CountryCreatePayload, CountrySearchOptions, CountrySearchResult, CountrySelectOneQuery, CountryUpdatePayload, Currency, CurrencyListResult, Customer, CustomerCreatePayload, CustomerSearchOptions, CustomerSearchResult, CustomerSelectOneQuery, CustomerUpdatePayload, Delivery, DeliveryCreatePayload, DeliveryCreateResult, DeliveryDeletePayload, DeliveryDetails, DeliveryItem, DeliveryItemAddPayload, DeliveryItemCatalogDetails, DeliveryItemDeletePayload, DeliveryItemDetails, DeliveryItemResult, DeliveryItemScanPayload, DeliveryItemScanResult, DeliveryItemUpdatePayload, DeliveryPostPayload, DeliverySearchItem, DeliverySearchOptions, DeliverySearchResult, DeliverySelectOneQuery, DeliverySelectOneResult, DeliveryUpdatePayload, ExchangeRate, ExchangeRateDateSearchResult, ExchangeRateSearchOptions, ExchangeRateSearchResult, MeasurementUnit, MeasurementUnitListResult, Product, ProductCreatePayload, ProductCreateResult, ProductDeletePayload, ProductImage, ProductImages, ProductSearchOptions, ProductSearchResult, ProductSelectOneQuery, ProductUpdatePayload, ProductVariant, ProductVariantCreatePayload, ProductVariantCreateResult, ProductVariantDeletePayload, ProductVariantSearchOptions, ProductVariantSearchResult, ProductVariantSelectOneQuery, ProductVariantUpdatePayload, Supplier, SupplierCreatePayload, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|