@esb-market-contracts/admin-backend 1.5.0 → 1.5.1

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 +14 -2
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -40,11 +40,12 @@ declare const authRouter: import("hono/hono-base").HonoBase<{}, {
40
40
  };
41
41
  }, "/iam/authentication", "/iam/authentication/refresh">;
42
42
  export type AuthRouter = typeof authRouter;
43
- declare const managementRouter: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
43
+ declare const managementRouter: import("hono/hono-base").HonoBase<{}, {
44
44
  "/iam/management/employees": {
45
45
  $get: {
46
46
  input: {};
47
47
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
48
+ timestamp: number;
48
49
  employees: ({
49
50
  id: number;
50
51
  email: string;
@@ -59,7 +60,18 @@ declare const managementRouter: import("hono/hono-base").HonoBase<import("hono/t
59
60
  status: 200;
60
61
  };
61
62
  };
62
- }, "/iam/management", "/iam/management/employees">;
63
+ } & {
64
+ "/iam/management/available-permissions": {
65
+ $get: {
66
+ input: {};
67
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
68
+ availablePermissions: readonly ("employee.create" | "employee.read" | "employee.update")[];
69
+ }>;
70
+ outputFormat: "json";
71
+ status: 200;
72
+ };
73
+ };
74
+ }, "/iam/management", "/iam/management/available-permissions">;
63
75
  export type ManagementRouter = typeof managementRouter;
64
76
 
65
77
  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.0",
4
+ "version": "1.5.1",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,