@esb-market-contracts/backend 1.0.48 → 1.0.50
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 +67 -1
- package/package.json +1 -1
- package/types.d.ts +87 -1
package/api.d.ts
CHANGED
|
@@ -1443,6 +1443,72 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1443
1443
|
}, "/operations/suppliers", "/operations/suppliers/switch-status">;
|
|
1444
1444
|
type SuppliersRouter = typeof suppliersRouter;
|
|
1445
1445
|
//#endregion
|
|
1446
|
+
//#region src/app/routes/(warehouse)/stock-balances.routes.d.ts
|
|
1447
|
+
declare const stockBalancesRouter: import("hono/hono-base").HonoBase<{
|
|
1448
|
+
Variables: VariablesWithActor;
|
|
1449
|
+
}, {
|
|
1450
|
+
"/operations/stock-balances/search": {
|
|
1451
|
+
$post: {
|
|
1452
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
1453
|
+
stockBalances: {
|
|
1454
|
+
id: number;
|
|
1455
|
+
warehouseId: number;
|
|
1456
|
+
productVariantId: number;
|
|
1457
|
+
onHand: number;
|
|
1458
|
+
reserved: number;
|
|
1459
|
+
averageUnitCostBase: string | null;
|
|
1460
|
+
updatedAt: Date | null;
|
|
1461
|
+
createdAt: Date;
|
|
1462
|
+
available: number;
|
|
1463
|
+
warehouse: {
|
|
1464
|
+
id: number;
|
|
1465
|
+
code: string;
|
|
1466
|
+
name: string;
|
|
1467
|
+
};
|
|
1468
|
+
product: {
|
|
1469
|
+
id: number;
|
|
1470
|
+
model: string | null;
|
|
1471
|
+
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1472
|
+
image: {
|
|
1473
|
+
src: string;
|
|
1474
|
+
isBanner: boolean;
|
|
1475
|
+
} | null;
|
|
1476
|
+
};
|
|
1477
|
+
productVariant: {
|
|
1478
|
+
id: number;
|
|
1479
|
+
sku: string | null;
|
|
1480
|
+
barcode: string | null;
|
|
1481
|
+
name: Partial<Record<"en" | "ka" | "ru", string>> | null;
|
|
1482
|
+
};
|
|
1483
|
+
measurementUnit: {
|
|
1484
|
+
id: number;
|
|
1485
|
+
code: string;
|
|
1486
|
+
name: string;
|
|
1487
|
+
decimalPlaces: number;
|
|
1488
|
+
};
|
|
1489
|
+
}[];
|
|
1490
|
+
total: number;
|
|
1491
|
+
}>;
|
|
1492
|
+
outputFormat: "json";
|
|
1493
|
+
status: 200;
|
|
1494
|
+
input: {
|
|
1495
|
+
json: {
|
|
1496
|
+
where?: {
|
|
1497
|
+
warehouseId?: number | undefined;
|
|
1498
|
+
productVariantId?: number | undefined;
|
|
1499
|
+
} | undefined;
|
|
1500
|
+
query?: string | undefined;
|
|
1501
|
+
pagination: {
|
|
1502
|
+
offset?: unknown;
|
|
1503
|
+
limit?: unknown;
|
|
1504
|
+
};
|
|
1505
|
+
};
|
|
1506
|
+
};
|
|
1507
|
+
};
|
|
1508
|
+
};
|
|
1509
|
+
}, "/operations/stock-balances", "/operations/stock-balances/search">;
|
|
1510
|
+
type StockBalancesRouter = typeof stockBalancesRouter;
|
|
1511
|
+
//#endregion
|
|
1446
1512
|
//#region src/app/routes/(warehouse)/warehouses.routes.d.ts
|
|
1447
1513
|
declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
1448
1514
|
Variables: VariablesWithActor;
|
|
@@ -1553,4 +1619,4 @@ declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
|
1553
1619
|
}, "/operations/warehouses", "/operations/warehouses/switch-status">;
|
|
1554
1620
|
type WarehousesRouter = typeof warehousesRouter;
|
|
1555
1621
|
//#endregion
|
|
1556
|
-
export type { AuditLogsRouter, BrandsRouter, CategoriesRouter, CountriesRouter, CustomersRouter, DeliveriesRouter, ExchangeRatesRouter, MeasurementUnitsRouter, ProductVariantsRouter, ProductsRouter, SuppliersRouter, WarehousesRouter };
|
|
1622
|
+
export type { AuditLogsRouter, BrandsRouter, CategoriesRouter, CountriesRouter, CustomersRouter, DeliveriesRouter, ExchangeRatesRouter, MeasurementUnitsRouter, ProductVariantsRouter, ProductsRouter, StockBalancesRouter, SuppliersRouter, WarehousesRouter };
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -873,6 +873,79 @@ type SupplierCreatePayload = z.infer<typeof supplierCreatePayloadSchema>;
|
|
|
873
873
|
type SupplierUpdatePayload = z.infer<typeof supplierUpdatePayloadSchema>;
|
|
874
874
|
type SupplierSwitchStatusPayload = z.infer<typeof supplierSwitchStatusPayloadSchema>;
|
|
875
875
|
//#endregion
|
|
876
|
+
//#region src/app/flows/(warehouse)/stock-balance/stock-balance.schemas.d.ts
|
|
877
|
+
declare const stockBalanceSearchOptionsSchema: z.ZodObject<{
|
|
878
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
879
|
+
warehouseId: z.ZodOptional<z.ZodInt>;
|
|
880
|
+
productVariantId: z.ZodOptional<z.ZodInt>;
|
|
881
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
882
|
+
warehouseId?: number | undefined;
|
|
883
|
+
productVariantId: number;
|
|
884
|
+
} | {
|
|
885
|
+
warehouseId: number;
|
|
886
|
+
productVariantId?: number | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
warehouseId?: number | undefined;
|
|
889
|
+
productVariantId?: number | undefined;
|
|
890
|
+
}>>>;
|
|
891
|
+
query: z.ZodOptional<z.ZodString>;
|
|
892
|
+
pagination: z.ZodObject<{
|
|
893
|
+
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
894
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
895
|
+
}, z.core.$strip>;
|
|
896
|
+
}, z.core.$strict>;
|
|
897
|
+
declare const stockBalanceSearchItemSchema: z.ZodObject<{
|
|
898
|
+
id: z.ZodInt;
|
|
899
|
+
warehouseId: z.ZodInt;
|
|
900
|
+
productVariantId: z.ZodInt;
|
|
901
|
+
onHand: z.ZodNumber;
|
|
902
|
+
reserved: z.ZodNumber;
|
|
903
|
+
averageUnitCostBase: z.ZodNullable<z.ZodString>;
|
|
904
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
905
|
+
createdAt: z.ZodDate;
|
|
906
|
+
available: z.ZodNumber;
|
|
907
|
+
warehouse: z.ZodObject<{
|
|
908
|
+
id: z.ZodInt;
|
|
909
|
+
code: z.ZodString;
|
|
910
|
+
name: z.ZodString;
|
|
911
|
+
}, z.core.$strip>;
|
|
912
|
+
product: z.ZodObject<{
|
|
913
|
+
id: z.ZodInt;
|
|
914
|
+
model: z.ZodNullable<z.ZodString>;
|
|
915
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
916
|
+
en: "en";
|
|
917
|
+
ka: "ka";
|
|
918
|
+
ru: "ru";
|
|
919
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
920
|
+
image: z.ZodNullable<z.ZodObject<{
|
|
921
|
+
src: z.ZodURL;
|
|
922
|
+
isBanner: z.ZodBoolean;
|
|
923
|
+
}, z.core.$strip>>;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
productVariant: z.ZodObject<{
|
|
926
|
+
id: z.ZodInt;
|
|
927
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
928
|
+
barcode: z.ZodNullable<z.ZodString>;
|
|
929
|
+
name: z.ZodNullable<z.ZodRecord<z.ZodEnum<{
|
|
930
|
+
en: "en";
|
|
931
|
+
ka: "ka";
|
|
932
|
+
ru: "ru";
|
|
933
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
934
|
+
}, z.core.$strip>;
|
|
935
|
+
measurementUnit: z.ZodObject<{
|
|
936
|
+
id: z.ZodInt;
|
|
937
|
+
code: z.ZodString;
|
|
938
|
+
name: z.ZodString;
|
|
939
|
+
decimalPlaces: z.ZodInt;
|
|
940
|
+
}, z.core.$strip>;
|
|
941
|
+
}, z.core.$strip>;
|
|
942
|
+
type StockBalanceSearchOptions = z.infer<typeof stockBalanceSearchOptionsSchema>;
|
|
943
|
+
type StockBalanceSearchItem = z.infer<typeof stockBalanceSearchItemSchema>;
|
|
944
|
+
type StockBalanceSearchResult = {
|
|
945
|
+
stockBalances: StockBalanceSearchItem[];
|
|
946
|
+
total: number;
|
|
947
|
+
};
|
|
948
|
+
//#endregion
|
|
876
949
|
//#region src/app/domain/(warehouse)/warehouses/warehouses.schemas.d.ts
|
|
877
950
|
declare const warehouseSchema: z.ZodObject<{
|
|
878
951
|
id: z.ZodInt;
|
|
@@ -1295,4 +1368,17 @@ declare const deliverySchema: z.ZodObject<{
|
|
|
1295
1368
|
}, z.core.$strip>;
|
|
1296
1369
|
type Delivery = z.infer<typeof deliverySchema>;
|
|
1297
1370
|
//#endregion
|
|
1298
|
-
|
|
1371
|
+
//#region src/app/domain/(warehouse)/stock/stock-balances/stock-balances.schemas.d.ts
|
|
1372
|
+
declare const stockBalanceSchema: z.ZodObject<{
|
|
1373
|
+
id: z.ZodInt;
|
|
1374
|
+
warehouseId: z.ZodInt;
|
|
1375
|
+
productVariantId: z.ZodInt;
|
|
1376
|
+
onHand: z.ZodNumber;
|
|
1377
|
+
reserved: z.ZodNumber;
|
|
1378
|
+
averageUnitCostBase: z.ZodNullable<z.ZodString>;
|
|
1379
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
1380
|
+
createdAt: z.ZodDate;
|
|
1381
|
+
}, z.core.$strip>;
|
|
1382
|
+
type StockBalance = z.infer<typeof stockBalanceSchema>;
|
|
1383
|
+
//#endregion
|
|
1384
|
+
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, StockBalance, StockBalanceSearchItem, StockBalanceSearchOptions, StockBalanceSearchResult, Supplier, SupplierCreatePayload, SupplierSearchOptions, SupplierSearchResult, SupplierSelectOneQuery, SupplierSwitchStatusPayload, SupplierUpdatePayload, Warehouse, WarehouseCreatePayload, WarehouseSearchOptions, WarehouseSearchResult, WarehouseSelectOneQuery, WarehouseSwitchStatusPayload, WarehouseUpdatePayload };
|