@esb-market-contracts/backend 1.0.16 → 1.0.17
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/enums.d.ts +10 -0
- package/enums.js +11 -2
- package/package.json +1 -1
package/enums.d.ts
CHANGED
|
@@ -20,6 +20,15 @@ declare const entityStatusesRecord: Readonly<{
|
|
|
20
20
|
ARCHIVED: "archived";
|
|
21
21
|
}>;
|
|
22
22
|
export type EntityStatus = (typeof entityStatusesArray)[number];
|
|
23
|
+
export declare const auditLogSourcesArray: readonly [
|
|
24
|
+
"admin",
|
|
25
|
+
"backend"
|
|
26
|
+
];
|
|
27
|
+
declare const auditLogSourcesRecord: Readonly<{
|
|
28
|
+
ADMIN: "admin";
|
|
29
|
+
BACKEND: "backend";
|
|
30
|
+
}>;
|
|
31
|
+
export type AuditLogSource = (typeof auditLogSourcesArray)[number];
|
|
23
32
|
export declare const customerTypesArray: readonly [
|
|
24
33
|
"individual",
|
|
25
34
|
"individual_entrepreneur",
|
|
@@ -33,6 +42,7 @@ declare const customerTypesRecord: Readonly<{
|
|
|
33
42
|
export type CustomerType = (typeof customerTypesArray)[number];
|
|
34
43
|
|
|
35
44
|
export {
|
|
45
|
+
auditLogSourcesRecord as auditLogSource,
|
|
36
46
|
customerTypesRecord as customerType,
|
|
37
47
|
entityStatusesRecord as entityStatus,
|
|
38
48
|
};
|
package/enums.js
CHANGED
|
@@ -18,13 +18,22 @@ var entityStatusesArray = ["active", "archived"];
|
|
|
18
18
|
var entityStatusPGEnum = pgEnum("entity_status", entityStatusesArray);
|
|
19
19
|
var entityStatusesRecord = createStringEnumRecord2(entityStatusesArray);
|
|
20
20
|
|
|
21
|
-
// src/app/
|
|
21
|
+
// src/app/flows/audit/audit.enums.ts
|
|
22
22
|
import { createStringEnumRecord as createStringEnumRecord3 } from "@kalutskii/foundation";
|
|
23
|
+
import { z as z2 } from "zod";
|
|
24
|
+
var auditLogSourcesArray = ["admin", "backend"];
|
|
25
|
+
var auditLogSourcesRecord = createStringEnumRecord3(auditLogSourcesArray);
|
|
26
|
+
var auditLogSourceSchema = z2.enum(auditLogSourcesArray);
|
|
27
|
+
|
|
28
|
+
// src/app/domain/(operations)/customers/customers.enums.ts
|
|
29
|
+
import { createStringEnumRecord as createStringEnumRecord4 } from "@kalutskii/foundation";
|
|
23
30
|
import { pgEnum as pgEnum2 } from "drizzle-orm/pg-core";
|
|
24
31
|
var customerTypesArray = ["individual", "individual_entrepreneur", "legal_entity"];
|
|
25
32
|
var customerTypePGEnum = pgEnum2("customer_type", customerTypesArray);
|
|
26
|
-
var customerTypesRecord =
|
|
33
|
+
var customerTypesRecord = createStringEnumRecord4(customerTypesArray);
|
|
27
34
|
export {
|
|
35
|
+
auditLogSourcesRecord as auditLogSource,
|
|
36
|
+
auditLogSourcesArray,
|
|
28
37
|
customerTypesRecord as customerType,
|
|
29
38
|
customerTypesArray,
|
|
30
39
|
entityStatusesRecord as entityStatus,
|