@esb-market-contracts/backend 1.0.16 → 1.0.18
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 +2 -2
- package/enums.d.ts +10 -0
- package/enums.js +11 -2
- package/package.json +1 -1
- package/types.d.ts +2 -2
package/api.d.ts
CHANGED
|
@@ -376,8 +376,7 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
376
376
|
generated: undefined;
|
|
377
377
|
}>;
|
|
378
378
|
}, undefined, undefined>;
|
|
379
|
-
export type
|
|
380
|
-
export type AuditLogResult = AuditLog & {
|
|
379
|
+
export type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
381
380
|
source: AuditLogSource;
|
|
382
381
|
};
|
|
383
382
|
declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
@@ -422,6 +421,7 @@ declare const auditLogsRouter: import("hono/hono-base").HonoBase<{
|
|
|
422
421
|
event?: string | undefined;
|
|
423
422
|
actorEmployeeId?: number | null | undefined;
|
|
424
423
|
} | undefined;
|
|
424
|
+
query?: string | undefined;
|
|
425
425
|
};
|
|
426
426
|
};
|
|
427
427
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
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,
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -299,7 +299,6 @@ declare const auditLogSchema: import("drizzle-orm/zod").BuildSchema<"select", {
|
|
|
299
299
|
generated: undefined;
|
|
300
300
|
}>;
|
|
301
301
|
}, undefined, undefined>;
|
|
302
|
-
export type AuditLog = z.infer<typeof auditLogSchema>;
|
|
303
302
|
declare const auditLogSourcesArray: readonly [
|
|
304
303
|
"admin",
|
|
305
304
|
"backend"
|
|
@@ -319,6 +318,7 @@ declare const auditLogSearchPayloadSchema: z.ZodObject<{
|
|
|
319
318
|
event?: string | undefined;
|
|
320
319
|
actorEmployeeId?: number | null | undefined;
|
|
321
320
|
}>>>;
|
|
321
|
+
query: z.ZodOptional<z.ZodString>;
|
|
322
322
|
pagination: z.ZodObject<{
|
|
323
323
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
324
324
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -335,7 +335,7 @@ declare const auditLogSelectOneQuerySchema: z.ZodObject<{
|
|
|
335
335
|
in: {};
|
|
336
336
|
}>;
|
|
337
337
|
export type AuditLogSearchPayload = z.infer<typeof auditLogSearchPayloadSchema>;
|
|
338
|
-
export type AuditLogResult =
|
|
338
|
+
export type AuditLogResult = z.infer<typeof auditLogSchema> & {
|
|
339
339
|
source: AuditLogSource;
|
|
340
340
|
};
|
|
341
341
|
export type AuditLogSelectOneQuery = z.infer<typeof auditLogSelectOneQuerySchema>;
|