@esb-market-contracts/admin-backend 1.6.1 → 1.6.3
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 +5 -0
package/api.d.ts
CHANGED
|
@@ -167,7 +167,23 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
|
|
|
167
167
|
status: 200;
|
|
168
168
|
};
|
|
169
169
|
};
|
|
170
|
-
}
|
|
170
|
+
} & {
|
|
171
|
+
"/iam/management/employees/update-password": {
|
|
172
|
+
$post: {
|
|
173
|
+
input: {
|
|
174
|
+
json: {
|
|
175
|
+
id: unknown;
|
|
176
|
+
newPassword: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
180
|
+
[x: string]: never;
|
|
181
|
+
}>;
|
|
182
|
+
outputFormat: "json";
|
|
183
|
+
status: 200;
|
|
184
|
+
};
|
|
185
|
+
};
|
|
186
|
+
}, "/iam/management", "/iam/management/employees/update-password">;
|
|
171
187
|
export type ManagementRouter = typeof managementRouter;
|
|
172
188
|
|
|
173
189
|
export {};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -57,8 +57,13 @@ declare const createEmployeeRequestSchema: z.ZodObject<{
|
|
|
57
57
|
"employee.update": "employee.update";
|
|
58
58
|
}>>;
|
|
59
59
|
}, z.core.$strip>;
|
|
60
|
+
declare const updateEmployeePasswordRequestSchema: z.ZodObject<{
|
|
61
|
+
id: z.ZodPreprocess<z.ZodNumber>;
|
|
62
|
+
newPassword: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
60
64
|
export type SelectEmployeeRequest = z.infer<typeof selectEmployeeRequestSchema>;
|
|
61
65
|
export type SafeEmployeeResponse = SerializeDates<z.infer<typeof safeEmployeeResponseSchema>>;
|
|
62
66
|
export type CreateEmployeeRequest = z.infer<typeof createEmployeeRequestSchema>;
|
|
67
|
+
export type UpdateEmployeePasswordRequest = z.infer<typeof updateEmployeePasswordRequestSchema>;
|
|
63
68
|
|
|
64
69
|
export {};
|