@esb-market-contracts/backend 1.0.41 → 1.0.43
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 +7 -7
- package/package.json +1 -1
- package/types.d.ts +34 -6
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;
|
|
@@ -985,7 +985,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
985
985
|
id: number;
|
|
986
986
|
deliveryId: number;
|
|
987
987
|
productVariantId: number;
|
|
988
|
-
quantity: number;
|
|
988
|
+
quantity: number | null;
|
|
989
989
|
unitCost: string | null;
|
|
990
990
|
unitCostBase: string | null;
|
|
991
991
|
updatedAt: Date | null;
|
|
@@ -1013,7 +1013,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1013
1013
|
status: 200;
|
|
1014
1014
|
input: {
|
|
1015
1015
|
json: {
|
|
1016
|
-
quantity?: number | undefined;
|
|
1016
|
+
quantity?: number | null | undefined;
|
|
1017
1017
|
unitCost?: string | null | undefined;
|
|
1018
1018
|
deliveryItemId: number;
|
|
1019
1019
|
};
|
|
@@ -1028,7 +1028,7 @@ declare const deliveriesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1028
1028
|
id: number;
|
|
1029
1029
|
deliveryId: number;
|
|
1030
1030
|
productVariantId: number;
|
|
1031
|
-
quantity: number;
|
|
1031
|
+
quantity: number | null;
|
|
1032
1032
|
unitCost: string | null;
|
|
1033
1033
|
unitCostBase: string | null;
|
|
1034
1034
|
updatedAt: Date | null;
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -527,7 +527,7 @@ declare const deliveryItemAddPayloadSchema: z.ZodObject<{
|
|
|
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
|
}, {
|
|
@@ -537,11 +537,38 @@ declare const deliveryItemUpdatePayloadSchema: z.ZodObject<{
|
|
|
537
537
|
declare const deliveryItemDeletePayloadSchema: z.ZodObject<{
|
|
538
538
|
deliveryItemId: z.ZodInt;
|
|
539
539
|
}, z.core.$strip>;
|
|
540
|
+
declare const deliveryItemCatalogDetailsSchema: z.ZodObject<{
|
|
541
|
+
product: z.ZodObject<{
|
|
542
|
+
id: z.ZodInt;
|
|
543
|
+
model: z.ZodNullable<z.ZodString>;
|
|
544
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
545
|
+
en: "en";
|
|
546
|
+
ka: "ka";
|
|
547
|
+
ru: "ru";
|
|
548
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
productVariant: z.ZodObject<{
|
|
551
|
+
id: z.ZodInt;
|
|
552
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
553
|
+
barcode: z.ZodNullable<z.ZodString>;
|
|
554
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
555
|
+
en: "en";
|
|
556
|
+
ka: "ka";
|
|
557
|
+
ru: "ru";
|
|
558
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
measurementUnit: z.ZodObject<{
|
|
561
|
+
id: z.ZodInt;
|
|
562
|
+
code: z.ZodString;
|
|
563
|
+
name: z.ZodString;
|
|
564
|
+
decimalPlaces: z.ZodInt;
|
|
565
|
+
}, z.core.$strip>;
|
|
566
|
+
}, z.core.$strip>;
|
|
540
567
|
declare const deliveryItemDetailsSchema: z.ZodObject<{
|
|
541
568
|
id: z.ZodInt;
|
|
542
569
|
deliveryId: z.ZodInt;
|
|
543
570
|
productVariantId: z.ZodInt;
|
|
544
|
-
quantity: z.ZodNumber
|
|
571
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
545
572
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
546
573
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
547
574
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -582,7 +609,7 @@ declare const deliveryItemScanResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
582
609
|
id: z.ZodInt;
|
|
583
610
|
deliveryId: z.ZodInt;
|
|
584
611
|
productVariantId: z.ZodInt;
|
|
585
|
-
quantity: z.ZodNumber
|
|
612
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
586
613
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
587
614
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
588
615
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -639,7 +666,7 @@ declare const deliveryDetailsSchema: z.ZodObject<{
|
|
|
639
666
|
id: z.ZodInt;
|
|
640
667
|
deliveryId: z.ZodInt;
|
|
641
668
|
productVariantId: z.ZodInt;
|
|
642
|
-
quantity: z.ZodNumber
|
|
669
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
643
670
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
644
671
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
645
672
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -678,6 +705,7 @@ type DeliveryItemUpdatePayload = z.infer<typeof deliveryItemUpdatePayloadSchema>
|
|
|
678
705
|
type DeliveryItemDeletePayload = z.infer<typeof deliveryItemDeletePayloadSchema>;
|
|
679
706
|
type DeliveryItemScanPayload = z.infer<typeof deliveryItemScanPayloadSchema>;
|
|
680
707
|
type DeliveryItemScanResult = z.infer<typeof deliveryItemScanResultSchema>;
|
|
708
|
+
type DeliveryItemCatalogDetails = z.infer<typeof deliveryItemCatalogDetailsSchema>;
|
|
681
709
|
type DeliveryItemDetails = z.infer<typeof deliveryItemDetailsSchema>;
|
|
682
710
|
type DeliveryItemResult = {
|
|
683
711
|
deliveryItem: DeliveryItemDetails;
|
|
@@ -1163,7 +1191,7 @@ declare const deliveryItemSchema: z.ZodObject<{
|
|
|
1163
1191
|
id: z.ZodInt;
|
|
1164
1192
|
deliveryId: z.ZodInt;
|
|
1165
1193
|
productVariantId: z.ZodInt;
|
|
1166
|
-
quantity: z.ZodNumber
|
|
1194
|
+
quantity: z.ZodNullable<z.ZodNumber>;
|
|
1167
1195
|
unitCost: z.ZodNullable<z.ZodString>;
|
|
1168
1196
|
unitCostBase: z.ZodNullable<z.ZodString>;
|
|
1169
1197
|
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
@@ -1193,4 +1221,4 @@ declare const deliverySchema: z.ZodObject<{
|
|
|
1193
1221
|
}, z.core.$strip>;
|
|
1194
1222
|
type Delivery = z.infer<typeof deliverySchema>;
|
|
1195
1223
|
//#endregion
|
|
1196
|
-
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, 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 };
|
|
1224
|
+
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 };
|