@esb-market-contracts/admin-backend 1.8.14 → 1.8.16
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 +17 -1
- package/package.json +1 -1
- package/types.d.ts +22 -0
package/api.d.ts
CHANGED
|
@@ -137,7 +137,23 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
|
|
|
137
137
|
status: 200;
|
|
138
138
|
};
|
|
139
139
|
};
|
|
140
|
-
}
|
|
140
|
+
} & {
|
|
141
|
+
"/iam/management/employees/update-password": {
|
|
142
|
+
$post: {
|
|
143
|
+
input: {
|
|
144
|
+
json: {
|
|
145
|
+
employeeId: number;
|
|
146
|
+
password: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
150
|
+
[x: string]: never;
|
|
151
|
+
}>;
|
|
152
|
+
outputFormat: "json";
|
|
153
|
+
status: 200;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
}, "/iam/management", "/iam/management/employees/update-password">;
|
|
141
157
|
export type ManagementRouter = typeof managementRouter;
|
|
142
158
|
|
|
143
159
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -64,8 +64,30 @@ declare const employeeCreatePayloadSchema: z.ZodObject<{
|
|
|
64
64
|
"employee.update": "employee.update";
|
|
65
65
|
}>>;
|
|
66
66
|
}, z.core.$strict>;
|
|
67
|
+
declare const employeeSwitchStatusPayloadSchema: z.ZodObject<{
|
|
68
|
+
employeeId: z.ZodInt;
|
|
69
|
+
status: z.ZodEnum<{
|
|
70
|
+
active: "active";
|
|
71
|
+
suspended: "suspended";
|
|
72
|
+
}>;
|
|
73
|
+
}, z.core.$strict>;
|
|
74
|
+
declare const employeeUpdatePasswordPayloadSchema: z.ZodObject<{
|
|
75
|
+
employeeId: z.ZodInt;
|
|
76
|
+
password: z.ZodString;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
declare const employeeUpdateGrantsPayloadSchema: z.ZodObject<{
|
|
79
|
+
employeeId: z.ZodInt;
|
|
80
|
+
grants: z.ZodArray<z.ZodEnum<{
|
|
81
|
+
"employee.create": "employee.create";
|
|
82
|
+
"employee.read": "employee.read";
|
|
83
|
+
"employee.update": "employee.update";
|
|
84
|
+
}>>;
|
|
85
|
+
}, z.core.$strict>;
|
|
67
86
|
export type EmployeeSafe = z.infer<typeof employeeSafeSchema>;
|
|
68
87
|
export type EmployeeFindManyQuery = z.infer<typeof employeeFindManyQuerySchema>;
|
|
69
88
|
export type EmployeeCreatePayload = z.infer<typeof employeeCreatePayloadSchema>;
|
|
89
|
+
export type EmployeeSwitchStatusPayload = z.infer<typeof employeeSwitchStatusPayloadSchema>;
|
|
90
|
+
export type EmployeeUpdatePasswordPayload = z.infer<typeof employeeUpdatePasswordPayloadSchema>;
|
|
91
|
+
export type EmployeeUpdateGrantsPayload = z.infer<typeof employeeUpdateGrantsPayloadSchema>;
|
|
70
92
|
|
|
71
93
|
export {};
|