@esb-market-contracts/admin-backend 1.8.8 → 1.8.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 (2) hide show
  1. package/api.d.ts +30 -1
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -70,6 +70,17 @@ export type VariablesWithActor = {
70
70
  declare const managementRouter: import("hono/hono-base").HonoBase<{
71
71
  Variables: VariablesWithActor;
72
72
  }, {
73
+ "/iam/management/existing-grants": {
74
+ $get: {
75
+ input: {};
76
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
77
+ grants: string[];
78
+ }>;
79
+ outputFormat: "json";
80
+ status: 200;
81
+ };
82
+ };
83
+ } & {
73
84
  "/iam/management/employees/many": {
74
85
  $get: {
75
86
  input: {
@@ -92,7 +103,25 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
92
103
  status: 200;
93
104
  };
94
105
  };
95
- }, "/iam/management", "/iam/management/employees/many">;
106
+ } & {
107
+ "/iam/management/employees/insert": {
108
+ $post: {
109
+ input: {
110
+ json: {
111
+ email: string;
112
+ fullName: string;
113
+ password: string;
114
+ grants: ("employee.create" | "employee.read" | "employee.update")[];
115
+ };
116
+ };
117
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
118
+ [x: string]: never;
119
+ }>;
120
+ outputFormat: "json";
121
+ status: 201;
122
+ };
123
+ };
124
+ }, "/iam/management", "/iam/management/employees/insert">;
96
125
  export type ManagementRouter = typeof managementRouter;
97
126
 
98
127
  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.8",
4
+ "version": "1.8.10",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,