@esb-market-contracts/admin-backend 1.5.9 → 1.5.10

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.
Files changed (3) hide show
  1. package/api.d.ts +31 -1
  2. package/package.json +1 -1
  3. package/types.d.ts +2 -2
package/api.d.ts CHANGED
@@ -137,7 +137,37 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
137
137
  status: 201;
138
138
  };
139
139
  };
140
- }, "/iam/management", "/iam/management/employees/create">;
140
+ } & {
141
+ "/iam/management/employees/suspend": {
142
+ $post: {
143
+ input: {
144
+ json: {
145
+ id: unknown;
146
+ };
147
+ };
148
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
149
+ [x: string]: never;
150
+ }>;
151
+ outputFormat: "json";
152
+ status: 200;
153
+ };
154
+ };
155
+ } & {
156
+ "/iam/management/employees/reactivate": {
157
+ $post: {
158
+ input: {
159
+ json: {
160
+ id: unknown;
161
+ };
162
+ };
163
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
164
+ [x: string]: never;
165
+ }>;
166
+ outputFormat: "json";
167
+ status: 200;
168
+ };
169
+ };
170
+ }, "/iam/management", "/iam/management/employees/reactivate">;
141
171
  export type ManagementRouter = typeof managementRouter;
142
172
 
143
173
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@esb-market-contracts/admin-backend",
3
3
  "description": "Shared TypeScript contract definitions for admin-backend.",
4
- "version": "1.5.9",
4
+ "version": "1.5.10",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,
package/types.d.ts CHANGED
@@ -25,7 +25,7 @@ declare const accessTokenPayloadSchema: z.ZodObject<{
25
25
  }, z.core.$strip>;
26
26
  export type AuthorizeRequest = z.infer<typeof authorizeRequestSchema>;
27
27
  export type AccessTokenPayload = z.infer<typeof accessTokenPayloadSchema>;
28
- declare const getEmployeeRequestSchema: z.ZodObject<{
28
+ declare const selectEmployeeRequestSchema: z.ZodObject<{
29
29
  id: z.ZodPreprocess<z.ZodNumber>;
30
30
  }, z.core.$strip>;
31
31
  declare const safeEmployeeResponseSchema: z.ZodObject<{
@@ -57,7 +57,7 @@ declare const createEmployeeRequestSchema: z.ZodObject<{
57
57
  "employee.update": "employee.update";
58
58
  }>>;
59
59
  }, z.core.$strip>;
60
- export type GetEmployeeRequest = z.infer<typeof getEmployeeRequestSchema>;
60
+ export type SelectEmployeeRequest = z.infer<typeof selectEmployeeRequestSchema>;
61
61
  export type SafeEmployeeResponse = SerializeDates<z.infer<typeof safeEmployeeResponseSchema>>;
62
62
  export type CreateEmployeeRequest = z.infer<typeof createEmployeeRequestSchema>;
63
63