@esb-market-contracts/admin-backend 1.8.6 → 1.8.8
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 +3 -3
- package/package.json +1 -1
- package/types.d.ts +27 -0
package/api.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export type SessionPayload = z.infer<typeof sessionPayloadSchema>;
|
|
|
67
67
|
export type VariablesWithActor = {
|
|
68
68
|
actorSession: SessionPayload;
|
|
69
69
|
};
|
|
70
|
-
declare const
|
|
70
|
+
declare const managementRouter: import("hono/hono-base").HonoBase<{
|
|
71
71
|
Variables: VariablesWithActor;
|
|
72
72
|
}, {
|
|
73
73
|
"/iam/management/employees/many": {
|
|
@@ -75,7 +75,7 @@ declare const employeesRouter: import("hono/hono-base").HonoBase<{
|
|
|
75
75
|
input: {
|
|
76
76
|
query: {
|
|
77
77
|
status?: "active" | "suspended" | undefined;
|
|
78
|
-
};
|
|
78
|
+
} | undefined;
|
|
79
79
|
};
|
|
80
80
|
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
81
81
|
employees: {
|
|
@@ -93,6 +93,6 @@ declare const employeesRouter: import("hono/hono-base").HonoBase<{
|
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
}, "/iam/management", "/iam/management/employees/many">;
|
|
96
|
-
export type
|
|
96
|
+
export type ManagementRouter = typeof managementRouter;
|
|
97
97
|
|
|
98
98
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -29,5 +29,32 @@ declare const sessionPayloadSchema: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
export type SigninPayload = z.infer<typeof signinPayloadSchema>;
|
|
31
31
|
export type SessionPayload = z.infer<typeof sessionPayloadSchema>;
|
|
32
|
+
declare const employeeSafeSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodInt;
|
|
34
|
+
email: z.ZodString;
|
|
35
|
+
fullName: z.ZodString;
|
|
36
|
+
status: z.ZodEnum<{
|
|
37
|
+
active: "active";
|
|
38
|
+
suspended: "suspended";
|
|
39
|
+
}>;
|
|
40
|
+
updatedAt: z.ZodNullable<z.ZodDate>;
|
|
41
|
+
createdAt: z.ZodDate;
|
|
42
|
+
grants: z.ZodArray<z.ZodEnum<{
|
|
43
|
+
"employee.create": "employee.create";
|
|
44
|
+
"employee.read": "employee.read";
|
|
45
|
+
"employee.update": "employee.update";
|
|
46
|
+
}>>;
|
|
47
|
+
}, {
|
|
48
|
+
out: {};
|
|
49
|
+
in: {};
|
|
50
|
+
}>;
|
|
51
|
+
declare const employeeFindManyQuerySchema: z.ZodOptional<z.ZodObject<{
|
|
52
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
53
|
+
active: "active";
|
|
54
|
+
suspended: "suspended";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strict>>;
|
|
57
|
+
export type EmployeeSafe = z.infer<typeof employeeSafeSchema>;
|
|
58
|
+
export type EmployeeFindManyQuery = z.infer<typeof employeeFindManyQuerySchema>;
|
|
32
59
|
|
|
33
60
|
export {};
|