@esb-market-contracts/backend 1.0.33 → 1.0.34
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/enums.d.ts +2 -2
- package/enums.js +2 -2
- package/package.json +1 -1
- package/types.d.ts +9 -9
package/api.d.ts
CHANGED
|
@@ -680,11 +680,11 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
680
680
|
}, "/finance/exchange-rates", "/finance/exchange-rates/search">;
|
|
681
681
|
type ExchangeRatesRouter = typeof exchangeRatesRouter;
|
|
682
682
|
//#endregion
|
|
683
|
-
//#region src/app/flows/(
|
|
683
|
+
//#region src/app/flows/(audit)/audit/audit.enums.d.ts
|
|
684
684
|
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
685
685
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
686
686
|
//#endregion
|
|
687
|
-
//#region src/app/domain/(
|
|
687
|
+
//#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
|
|
688
688
|
declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
689
689
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgSerialBuilder>, {
|
|
690
690
|
name: string;
|
|
@@ -763,12 +763,12 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
763
763
|
}>;
|
|
764
764
|
}, undefined, undefined>;
|
|
765
765
|
//#endregion
|
|
766
|
-
//#region src/app/flows/(
|
|
766
|
+
//#region src/app/flows/(audit)/audit/audit.schemas.d.ts
|
|
767
767
|
type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
768
768
|
source: AuditLogSource;
|
|
769
769
|
};
|
|
770
770
|
//#endregion
|
|
771
|
-
//#region src/app/routes/(
|
|
771
|
+
//#region src/app/routes/(audit)/audit-logs.routes.d.ts
|
|
772
772
|
declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
773
773
|
Variables: VariablesWithActor;
|
|
774
774
|
}, {
|
|
@@ -825,7 +825,7 @@ declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
|
825
825
|
}, "/operations/audit-logs", "/operations/audit-logs/search">;
|
|
826
826
|
type AuditLogsRouter = typeof auditLogsRouter;
|
|
827
827
|
//#endregion
|
|
828
|
-
//#region src/app/routes/(
|
|
828
|
+
//#region src/app/routes/(sales)/customers.routes.d.ts
|
|
829
829
|
declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
830
830
|
Variables: VariablesWithActor;
|
|
831
831
|
}, {
|
|
@@ -925,7 +925,7 @@ declare const customersRouter: import("hono/hono-base").HonoBase<{
|
|
|
925
925
|
}, "/operations/customers", "/operations/customers/update">;
|
|
926
926
|
type CustomersRouter = typeof customersRouter;
|
|
927
927
|
//#endregion
|
|
928
|
-
//#region src/app/routes/(
|
|
928
|
+
//#region src/app/routes/(procurement)/suppliers.routes.d.ts
|
|
929
929
|
declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
930
930
|
Variables: VariablesWithActor;
|
|
931
931
|
}, {
|
|
@@ -1047,7 +1047,7 @@ declare const suppliersRouter: import("hono/hono-base").HonoBase<{
|
|
|
1047
1047
|
}, "/operations/suppliers", "/operations/suppliers/switch-status">;
|
|
1048
1048
|
type SuppliersRouter = typeof suppliersRouter;
|
|
1049
1049
|
//#endregion
|
|
1050
|
-
//#region src/app/routes/(
|
|
1050
|
+
//#region src/app/routes/(warehouse)/warehouses.routes.d.ts
|
|
1051
1051
|
declare const warehousesRouter: import("hono/hono-base").HonoBase<{
|
|
1052
1052
|
Variables: VariablesWithActor;
|
|
1053
1053
|
}, {
|
package/enums.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare const entityStatusesRecord: Readonly<{
|
|
|
18
18
|
}>;
|
|
19
19
|
type EntityStatus = (typeof entityStatusesArray)[number];
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region src/app/flows/(
|
|
21
|
+
//#region src/app/flows/(audit)/audit/audit.enums.d.ts
|
|
22
22
|
export declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
23
23
|
declare const auditLogSourcesRecord: Readonly<{
|
|
24
24
|
ADMIN: "admin";
|
|
@@ -26,7 +26,7 @@ declare const auditLogSourcesRecord: Readonly<{
|
|
|
26
26
|
}>;
|
|
27
27
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
28
28
|
//#endregion
|
|
29
|
-
//#region src/app/domain/(
|
|
29
|
+
//#region src/app/domain/(sales)/customers/customers.enums.d.ts
|
|
30
30
|
export declare const customerTypesArray: readonly ['individual', 'individual_entrepreneur', 'legal_entity'];
|
|
31
31
|
declare const customerTypesRecord: Readonly<{
|
|
32
32
|
INDIVIDUAL: "individual";
|
package/enums.js
CHANGED
|
@@ -18,14 +18,14 @@ var entityStatusesArray = ["active", "archived"];
|
|
|
18
18
|
var entityStatusPGEnum = pgEnum("entity_status", entityStatusesArray);
|
|
19
19
|
var entityStatusesRecord = createStringEnumRecord2(entityStatusesArray);
|
|
20
20
|
|
|
21
|
-
// src/app/flows/(
|
|
21
|
+
// src/app/flows/(audit)/audit/audit.enums.ts
|
|
22
22
|
import { createStringEnumRecord as createStringEnumRecord3 } from "@kalutskii/foundation";
|
|
23
23
|
import { z as z2 } from "zod";
|
|
24
24
|
var auditLogSourcesArray = ["admin", "backend"];
|
|
25
25
|
var auditLogSourcesRecord = createStringEnumRecord3(auditLogSourcesArray);
|
|
26
26
|
var auditLogSourceSchema = z2.enum(auditLogSourcesArray);
|
|
27
27
|
|
|
28
|
-
// src/app/domain/(
|
|
28
|
+
// src/app/domain/(sales)/customers/customers.enums.ts
|
|
29
29
|
import { createStringEnumRecord as createStringEnumRecord4 } from "@kalutskii/foundation";
|
|
30
30
|
import { pgEnum as pgEnum2 } from "drizzle-orm/pg-core";
|
|
31
31
|
var customerTypesArray = ["individual", "individual_entrepreneur", "legal_entity"];
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -263,7 +263,7 @@ type MeasurementUnitListResult = {
|
|
|
263
263
|
measurementUnits: MeasurementUnit[];
|
|
264
264
|
};
|
|
265
265
|
//#endregion
|
|
266
|
-
//#region src/app/domain/(
|
|
266
|
+
//#region src/app/domain/(audit)/audit-logs/audit-logs.schemas.d.ts
|
|
267
267
|
declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
268
268
|
id: import("drizzle-orm/pg-core").PgBuildColumn<"audit_logs", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgSerialBuilder>, {
|
|
269
269
|
name: string;
|
|
@@ -342,11 +342,11 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
342
342
|
}>;
|
|
343
343
|
}, undefined, undefined>;
|
|
344
344
|
//#endregion
|
|
345
|
-
//#region src/app/flows/(
|
|
345
|
+
//#region src/app/flows/(audit)/audit/audit.enums.d.ts
|
|
346
346
|
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
347
347
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
348
348
|
//#endregion
|
|
349
|
-
//#region src/app/flows/(
|
|
349
|
+
//#region src/app/flows/(audit)/audit/audit.schemas.d.ts
|
|
350
350
|
declare const auditLogSearchPayloadSchema: z.ZodObject<{
|
|
351
351
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
352
352
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -387,7 +387,7 @@ type AuditLogSearchResult = {
|
|
|
387
387
|
total: number;
|
|
388
388
|
};
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region src/app/domain/(
|
|
390
|
+
//#region src/app/domain/(sales)/customers/customers.schemas.d.ts
|
|
391
391
|
declare const customerSchema: z.ZodObject<{
|
|
392
392
|
id: z.ZodInt;
|
|
393
393
|
type: z.ZodEnum<{
|
|
@@ -405,7 +405,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
405
405
|
}, z.core.$strip>;
|
|
406
406
|
type Customer = z.infer<typeof customerSchema>;
|
|
407
407
|
//#endregion
|
|
408
|
-
//#region src/app/flows/(
|
|
408
|
+
//#region src/app/flows/(sales)/customer/customer.schemas.d.ts
|
|
409
409
|
declare const customerSearchOptionsSchema: z.ZodObject<{
|
|
410
410
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
411
411
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -462,7 +462,7 @@ type CustomerSelectOneQuery = z.infer<typeof customerSelectOneQuerySchema>;
|
|
|
462
462
|
type CustomerCreatePayload = z.infer<typeof customerCreatePayloadSchema>;
|
|
463
463
|
type CustomerUpdatePayload = z.infer<typeof customerUpdatePayloadSchema>;
|
|
464
464
|
//#endregion
|
|
465
|
-
//#region src/app/domain/(
|
|
465
|
+
//#region src/app/domain/(procurement)/suppliers/suppliers.schemas.d.ts
|
|
466
466
|
declare const supplierSchema: z.ZodObject<{
|
|
467
467
|
id: z.ZodInt;
|
|
468
468
|
status: z.ZodEnum<{
|
|
@@ -481,7 +481,7 @@ declare const supplierSchema: z.ZodObject<{
|
|
|
481
481
|
}, z.core.$strip>;
|
|
482
482
|
type Supplier = z.infer<typeof supplierSchema>;
|
|
483
483
|
//#endregion
|
|
484
|
-
//#region src/app/flows/(
|
|
484
|
+
//#region src/app/flows/(procurement)/supplier/supplier.schemas.d.ts
|
|
485
485
|
declare const supplierSearchOptionsSchema: z.ZodObject<{
|
|
486
486
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
487
487
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -550,7 +550,7 @@ type SupplierCreatePayload = z.infer<typeof supplierCreatePayloadSchema>;
|
|
|
550
550
|
type SupplierUpdatePayload = z.infer<typeof supplierUpdatePayloadSchema>;
|
|
551
551
|
type SupplierSwitchStatusPayload = z.infer<typeof supplierSwitchStatusPayloadSchema>;
|
|
552
552
|
//#endregion
|
|
553
|
-
//#region src/app/domain/(
|
|
553
|
+
//#region src/app/domain/(warehouse)/warehouses/warehouses.schemas.d.ts
|
|
554
554
|
declare const warehouseSchema: z.ZodObject<{
|
|
555
555
|
id: z.ZodInt;
|
|
556
556
|
code: z.ZodString;
|
|
@@ -566,7 +566,7 @@ declare const warehouseSchema: z.ZodObject<{
|
|
|
566
566
|
}, z.core.$strip>;
|
|
567
567
|
type Warehouse = z.infer<typeof warehouseSchema>;
|
|
568
568
|
//#endregion
|
|
569
|
-
//#region src/app/flows/(
|
|
569
|
+
//#region src/app/flows/(warehouse)/warehouse/warehouse.schemas.d.ts
|
|
570
570
|
declare const warehouseSearchOptionsSchema: z.ZodObject<{
|
|
571
571
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
572
572
|
status: z.ZodOptional<z.ZodEnum<{
|