@esb-market-contracts/backend 1.0.30 → 1.0.31
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 +5 -4
- package/enums.d.ts +1 -1
- package/enums.js +1 -1
- package/package.json +1 -1
- package/types.d.ts +13 -13
package/api.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import "hono";
|
|
|
3
3
|
import "ky";
|
|
4
4
|
import "hono/http-exception";
|
|
5
5
|
import { z } from "zod";
|
|
6
|
-
|
|
6
|
+
import "drizzle-orm";
|
|
7
|
+
//#region src/app/flows/global/authentication/authentication.middleware.d.ts
|
|
7
8
|
type VariablesWithActor = {
|
|
8
9
|
actorSession: SessionPayload;
|
|
9
10
|
};
|
|
@@ -649,7 +650,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
649
650
|
exchangeRates: {
|
|
650
651
|
id: number;
|
|
651
652
|
currencyId: number;
|
|
652
|
-
rate:
|
|
653
|
+
rate: string;
|
|
653
654
|
validFromDate: Date;
|
|
654
655
|
}[];
|
|
655
656
|
total: number;
|
|
@@ -673,7 +674,7 @@ declare const exchangeRatesRouter: import("hono/hono-base").HonoBase<{
|
|
|
673
674
|
}, "/finance/exchange-rates", "/finance/exchange-rates/search">;
|
|
674
675
|
type ExchangeRatesRouter = typeof exchangeRatesRouter;
|
|
675
676
|
//#endregion
|
|
676
|
-
//#region src/app/flows/audit/audit.enums.d.ts
|
|
677
|
+
//#region src/app/flows/(operations)/audit/audit.enums.d.ts
|
|
677
678
|
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
678
679
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
679
680
|
//#endregion
|
|
@@ -756,7 +757,7 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
756
757
|
}>;
|
|
757
758
|
}, undefined, undefined>;
|
|
758
759
|
//#endregion
|
|
759
|
-
//#region src/app/flows/audit/audit.schemas.d.ts
|
|
760
|
+
//#region src/app/flows/(operations)/audit/audit.schemas.d.ts
|
|
760
761
|
type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
761
762
|
source: AuditLogSource;
|
|
762
763
|
};
|
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/audit/audit.enums.d.ts
|
|
21
|
+
//#region src/app/flows/(operations)/audit/audit.enums.d.ts
|
|
22
22
|
export declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
23
23
|
declare const auditLogSourcesRecord: Readonly<{
|
|
24
24
|
ADMIN: "admin";
|
package/enums.js
CHANGED
|
@@ -18,7 +18,7 @@ var entityStatusesArray = ["active", "archived"];
|
|
|
18
18
|
var entityStatusPGEnum = pgEnum("entity_status", entityStatusesArray);
|
|
19
19
|
var entityStatusesRecord = createStringEnumRecord2(entityStatusesArray);
|
|
20
20
|
|
|
21
|
-
// src/app/flows/audit/audit.enums.ts
|
|
21
|
+
// src/app/flows/(operations)/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"];
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import "hono/http-exception";
|
|
3
|
-
import "postgres";
|
|
4
3
|
import "drizzle-orm";
|
|
4
|
+
import "postgres";
|
|
5
5
|
//#region src/app/domain/(catalog)/brands/brands.schemas.d.ts
|
|
6
6
|
declare const brandSchema: z.ZodObject<{
|
|
7
7
|
id: z.ZodInt;
|
|
@@ -20,7 +20,7 @@ declare const brandSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
type Brand = z.infer<typeof brandSchema>;
|
|
22
22
|
//#endregion
|
|
23
|
-
//#region src/app/flows/brand/brand.schemas.d.ts
|
|
23
|
+
//#region src/app/flows/(catalog)/brand/brand.schemas.d.ts
|
|
24
24
|
declare const brandSearchOptionsSchema: z.ZodObject<{
|
|
25
25
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
26
26
|
countryId: z.ZodOptional<z.ZodInt>;
|
|
@@ -101,7 +101,7 @@ declare const categorySchema: z.ZodObject<{
|
|
|
101
101
|
}, z.core.$strip>;
|
|
102
102
|
type Category = z.infer<typeof categorySchema>;
|
|
103
103
|
//#endregion
|
|
104
|
-
//#region src/app/flows/category/category.schemas.d.ts
|
|
104
|
+
//#region src/app/flows/(catalog)/category/category.schemas.d.ts
|
|
105
105
|
declare const categorySearchOptionsSchema: z.ZodObject<{
|
|
106
106
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
107
107
|
parentId: z.ZodOptional<z.ZodNullable<z.ZodInt>>;
|
|
@@ -185,7 +185,7 @@ declare const countrySchema: z.ZodObject<{
|
|
|
185
185
|
}, z.core.$strip>;
|
|
186
186
|
type Country = z.infer<typeof countrySchema>;
|
|
187
187
|
//#endregion
|
|
188
|
-
//#region src/app/flows/country/country.schemas.d.ts
|
|
188
|
+
//#region src/app/flows/(catalog)/country/country.schemas.d.ts
|
|
189
189
|
declare const countrySearchOptionsSchema: z.ZodObject<{
|
|
190
190
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
191
191
|
code: z.ZodOptional<z.ZodString>;
|
|
@@ -240,7 +240,7 @@ declare const measurementUnitSchema: z.ZodObject<{
|
|
|
240
240
|
}, z.core.$strip>;
|
|
241
241
|
type MeasurementUnit = z.infer<typeof measurementUnitSchema>;
|
|
242
242
|
//#endregion
|
|
243
|
-
//#region src/app/flows/measurement-unit/measurement-unit.schemas.d.ts
|
|
243
|
+
//#region src/app/flows/(catalog)/measurement-unit/measurement-unit.schemas.d.ts
|
|
244
244
|
type MeasurementUnitListResult = {
|
|
245
245
|
measurementUnits: MeasurementUnit[];
|
|
246
246
|
};
|
|
@@ -324,11 +324,11 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
324
324
|
}>;
|
|
325
325
|
}, undefined, undefined>;
|
|
326
326
|
//#endregion
|
|
327
|
-
//#region src/app/flows/audit/audit.enums.d.ts
|
|
327
|
+
//#region src/app/flows/(operations)/audit/audit.enums.d.ts
|
|
328
328
|
declare const auditLogSourcesArray: readonly ['admin', 'backend'];
|
|
329
329
|
type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
330
330
|
//#endregion
|
|
331
|
-
//#region src/app/flows/audit/audit.schemas.d.ts
|
|
331
|
+
//#region src/app/flows/(operations)/audit/audit.schemas.d.ts
|
|
332
332
|
declare const auditLogSearchPayloadSchema: z.ZodObject<{
|
|
333
333
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
334
334
|
event: z.ZodOptional<z.ZodString>;
|
|
@@ -387,7 +387,7 @@ declare const customerSchema: z.ZodObject<{
|
|
|
387
387
|
}, z.core.$strip>;
|
|
388
388
|
type Customer = z.infer<typeof customerSchema>;
|
|
389
389
|
//#endregion
|
|
390
|
-
//#region src/app/flows/customer/customer.schemas.d.ts
|
|
390
|
+
//#region src/app/flows/(operations)/customer/customer.schemas.d.ts
|
|
391
391
|
declare const customerSearchOptionsSchema: z.ZodObject<{
|
|
392
392
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
393
393
|
type: z.ZodOptional<z.ZodEnum<{
|
|
@@ -454,7 +454,7 @@ declare const warehouseSchema: z.ZodObject<{
|
|
|
454
454
|
}, z.core.$strip>;
|
|
455
455
|
type Warehouse = z.infer<typeof warehouseSchema>;
|
|
456
456
|
//#endregion
|
|
457
|
-
//#region src/app/flows/warehouse/warehouse.schemas.d.ts
|
|
457
|
+
//#region src/app/flows/(operations)/warehouse/warehouse.schemas.d.ts
|
|
458
458
|
declare const warehouseSearchOptionsSchema: z.ZodObject<{
|
|
459
459
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
460
460
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -524,12 +524,12 @@ type Currency = z.infer<typeof currencySchema>;
|
|
|
524
524
|
declare const exchangeRateSchema: z.ZodObject<{
|
|
525
525
|
id: z.ZodInt;
|
|
526
526
|
currencyId: z.ZodInt;
|
|
527
|
-
rate: z.
|
|
527
|
+
rate: z.ZodString;
|
|
528
528
|
validFromDate: z.ZodDate;
|
|
529
529
|
}, z.core.$strip>;
|
|
530
530
|
type ExchangeRate = z.infer<typeof exchangeRateSchema>;
|
|
531
531
|
//#endregion
|
|
532
|
-
//#region src/app/flows/exchange-rate/exchange-rate.schemas.d.ts
|
|
532
|
+
//#region src/app/flows/(finance)/exchange-rate/exchange-rate.schemas.d.ts
|
|
533
533
|
declare const exchangeRateSearchOptionsSchema: z.ZodObject<{
|
|
534
534
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
535
535
|
currencyId: z.ZodOptional<z.ZodInt>;
|
|
@@ -627,7 +627,7 @@ declare const productSchema: z.ZodObject<{
|
|
|
627
627
|
}, z.core.$strip>;
|
|
628
628
|
type Product = z.infer<typeof productSchema>;
|
|
629
629
|
//#endregion
|
|
630
|
-
//#region src/app/flows/product/product.schemas.d.ts
|
|
630
|
+
//#region src/app/flows/(catalog)/product/product.schemas.d.ts
|
|
631
631
|
declare const productSearchOptionsSchema: z.ZodObject<{
|
|
632
632
|
where: z.ZodOptional<z.ZodPipe<z.ZodObject<{
|
|
633
633
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -731,7 +731,7 @@ type ProductCreateResult = {
|
|
|
731
731
|
};
|
|
732
732
|
type ProductUpdatePayload = z.infer<typeof productUpdatePayloadSchema>;
|
|
733
733
|
//#endregion
|
|
734
|
-
//#region src/app/flows/product-variant/product-variant.schemas.d.ts
|
|
734
|
+
//#region src/app/flows/(catalog)/product-variant/product-variant.schemas.d.ts
|
|
735
735
|
declare const productVariantSearchOptionsSchema: z.ZodObject<{
|
|
736
736
|
where: z.ZodNonOptional<z.ZodOptional<z.ZodObject<{
|
|
737
737
|
productId: z.ZodInt;
|