@esb-market-contracts/admin-backend 1.8.13 → 1.8.14

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 (2) hide show
  1. package/api.d.ts +17 -1
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -121,7 +121,23 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
121
121
  status: 201;
122
122
  };
123
123
  };
124
- }, "/iam/management", "/iam/management/employees/create">;
124
+ } & {
125
+ "/iam/management/employees/switch-status": {
126
+ $post: {
127
+ input: {
128
+ json: {
129
+ employeeId: number;
130
+ status: "active" | "suspended";
131
+ };
132
+ };
133
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
134
+ [x: string]: never;
135
+ }>;
136
+ outputFormat: "json";
137
+ status: 200;
138
+ };
139
+ };
140
+ }, "/iam/management", "/iam/management/employees/switch-status">;
125
141
  export type ManagementRouter = typeof managementRouter;
126
142
 
127
143
  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.8.13",
4
+ "version": "1.8.14",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,