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

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 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/enums.d.ts CHANGED
@@ -12,4 +12,8 @@ export declare const pbacPermissions: {
12
12
  };
13
13
  export type PBACPermission = (typeof pbacPermissionsArray)[number];
14
14
 
15
+ export {
16
+ pbacPermissions as permissions,
17
+ };
18
+
15
19
  export {};
package/enums.js CHANGED
@@ -7,5 +7,6 @@ function createStringEnumRecord(values) {
7
7
  var pbacPermissionsArray = ["employee.create", "employee.read", "employee.update"];
8
8
  var pbacPermissions = createStringEnumRecord(pbacPermissionsArray);
9
9
  export {
10
- pbacPermissions
10
+ pbacPermissions,
11
+ pbacPermissions as permissions
11
12
  };
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.11",
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