@esb-market-contracts/admin-backend 1.8.27 → 1.8.28

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 +26 -44
  2. package/package.json +1 -1
package/api.d.ts CHANGED
@@ -11,9 +11,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<{}, {
11
11
  password: string;
12
12
  };
13
13
  };
14
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
15
- [x: string]: never;
16
- }>;
14
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
17
15
  outputFormat: "json";
18
16
  status: 200;
19
17
  };
@@ -33,9 +31,7 @@ declare const authRouter: import("hono/hono-base").HonoBase<{}, {
33
31
  "/iam/authentication/logout": {
34
32
  $post: {
35
33
  input: {};
36
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
37
- [x: string]: never;
38
- }>;
34
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
39
35
  outputFormat: "json";
40
36
  status: 200;
41
37
  };
@@ -78,7 +74,7 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
78
74
  $get: {
79
75
  input: {};
80
76
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
81
- grants: string[];
77
+ grants: ("employee.create" | "employee.read" | "employee.update" | "inventory.create" | "inventory.read" | "inventory.update" | "inventory.write_off")[];
82
78
  }>;
83
79
  outputFormat: "json";
84
80
  status: 200;
@@ -96,13 +92,13 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
96
92
  };
97
93
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
98
94
  employees: {
99
- id: string;
100
- status: string;
101
- updatedAt: string | null;
102
- createdAt: string;
95
+ id: number;
96
+ status: "active" | "suspended";
97
+ updatedAt: Date | null;
98
+ createdAt: Date;
103
99
  email: string;
104
100
  fullName: string;
105
- grants: string[];
101
+ grants: ("employee.create" | "employee.read" | "employee.update" | "inventory.create" | "inventory.read" | "inventory.update" | "inventory.write_off")[];
106
102
  }[];
107
103
  }>;
108
104
  outputFormat: "json";
@@ -120,9 +116,7 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
120
116
  grants: ("employee.create" | "employee.read" | "employee.update" | "inventory.create" | "inventory.read" | "inventory.update" | "inventory.write_off")[];
121
117
  };
122
118
  };
123
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
124
- [x: string]: never;
125
- }>;
119
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
126
120
  outputFormat: "json";
127
121
  status: 201;
128
122
  };
@@ -136,9 +130,7 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
136
130
  status: "active" | "suspended";
137
131
  };
138
132
  };
139
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
140
- [x: string]: never;
141
- }>;
133
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
142
134
  outputFormat: "json";
143
135
  status: 200;
144
136
  };
@@ -152,9 +144,7 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
152
144
  password: string;
153
145
  };
154
146
  };
155
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
156
- [x: string]: never;
157
- }>;
147
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
158
148
  outputFormat: "json";
159
149
  status: 200;
160
150
  };
@@ -168,9 +158,7 @@ declare const managementRouter: import("hono/hono-base").HonoBase<{
168
158
  grants: ("employee.create" | "employee.read" | "employee.update" | "inventory.create" | "inventory.read" | "inventory.update" | "inventory.write_off")[];
169
159
  };
170
160
  };
171
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
172
- [x: string]: never;
173
- }>;
161
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
174
162
  outputFormat: "json";
175
163
  status: 200;
176
164
  };
@@ -189,16 +177,16 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
189
177
  };
190
178
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
191
179
  asset: {
192
- id: string;
180
+ id: number;
193
181
  name: string;
194
182
  assetCode: string;
195
183
  serialNumber: string | null;
196
184
  notes: string | null;
197
- status: string;
185
+ status: "active" | "written_off";
198
186
  writeOffReason: string | null;
199
- writtenOffAt: string | null;
200
- updatedAt: string | null;
201
- createdAt: string;
187
+ writtenOffAt: Date | null;
188
+ updatedAt: Date | null;
189
+ createdAt: Date;
202
190
  };
203
191
  }>;
204
192
  outputFormat: "json";
@@ -222,18 +210,18 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
222
210
  };
223
211
  output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
224
212
  assets: {
225
- id: string;
213
+ id: number;
226
214
  name: string;
227
215
  assetCode: string;
228
216
  serialNumber: string | null;
229
217
  notes: string | null;
230
- status: string;
218
+ status: "active" | "written_off";
231
219
  writeOffReason: string | null;
232
- writtenOffAt: string | null;
233
- updatedAt: string | null;
234
- createdAt: string;
220
+ writtenOffAt: Date | null;
221
+ updatedAt: Date | null;
222
+ createdAt: Date;
235
223
  }[];
236
- total: string;
224
+ total: number;
237
225
  }>;
238
226
  outputFormat: "json";
239
227
  status: 200;
@@ -249,9 +237,7 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
249
237
  notes?: string | null | undefined;
250
238
  };
251
239
  };
252
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
253
- [x: string]: never;
254
- }>;
240
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
255
241
  outputFormat: "json";
256
242
  status: 201;
257
243
  };
@@ -265,9 +251,7 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
265
251
  writeOffReason: string;
266
252
  };
267
253
  };
268
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
269
- [x: string]: never;
270
- }>;
254
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
271
255
  outputFormat: "json";
272
256
  status: 200;
273
257
  };
@@ -283,9 +267,7 @@ declare const assetsRouter: import("hono/hono-base").HonoBase<{
283
267
  assetId: number;
284
268
  };
285
269
  };
286
- output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
287
- [x: string]: never;
288
- }>;
270
+ output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<Record<string, never>>;
289
271
  outputFormat: "json";
290
272
  status: 200;
291
273
  };
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.27",
4
+ "version": "1.8.28",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "sideEffects": false,