@esb-market-contracts/admin-backend 1.2.6 → 1.2.8
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 +9 -5
- package/package.json +1 -1
- package/types.d.ts +1 -11
package/api.d.ts
CHANGED
|
@@ -4,15 +4,15 @@ declare const authenticationRouter: import("hono/hono-base").HonoBase<import("ho
|
|
|
4
4
|
"/iam/authentication/session": {
|
|
5
5
|
$get: {
|
|
6
6
|
input: {};
|
|
7
|
-
output: import("@
|
|
7
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
8
8
|
session: {
|
|
9
|
-
expiresAt:
|
|
9
|
+
expiresAt: string;
|
|
10
10
|
user: {
|
|
11
11
|
id: number;
|
|
12
12
|
email: string;
|
|
13
13
|
fullName: string;
|
|
14
14
|
status: "active" | "inactive" | "suspended";
|
|
15
|
-
lastLoginAt:
|
|
15
|
+
lastLoginAt: string | null;
|
|
16
16
|
};
|
|
17
17
|
permissions: string[];
|
|
18
18
|
};
|
|
@@ -30,7 +30,9 @@ declare const authenticationRouter: import("hono/hono-base").HonoBase<import("ho
|
|
|
30
30
|
password: string;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
-
output: import("@
|
|
33
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
34
|
+
[x: string]: never;
|
|
35
|
+
}>;
|
|
34
36
|
outputFormat: "json";
|
|
35
37
|
status: 200;
|
|
36
38
|
};
|
|
@@ -39,7 +41,9 @@ declare const authenticationRouter: import("hono/hono-base").HonoBase<import("ho
|
|
|
39
41
|
"/iam/authentication/logout": {
|
|
40
42
|
$post: {
|
|
41
43
|
input: {};
|
|
42
|
-
output: import("@
|
|
44
|
+
output: import("@kalutskii/foundation").APIError | import("@kalutskii/foundation").APISuccess<{
|
|
45
|
+
[x: string]: never;
|
|
46
|
+
}>;
|
|
43
47
|
outputFormat: "json";
|
|
44
48
|
status: 200;
|
|
45
49
|
};
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -29,19 +29,9 @@ declare const AuthenticationSessionSchema: z.ZodObject<{
|
|
|
29
29
|
in: {};
|
|
30
30
|
}>;
|
|
31
31
|
export type AuthenticationSession = z.infer<typeof AuthenticationSessionSchema>;
|
|
32
|
-
/**
|
|
33
|
-
* Type utility that recursively transforms all Date fields to string, as well as handling arrays and objects.
|
|
34
|
-
* This is necessary for proper typing when working with RPC, as JSON does not support the Date type directly.
|
|
35
|
-
* Example: SerializeDates<{ createdAt: Date; nested: { updatedAt: Date }; tags: Date[] }> \
|
|
36
|
-
* = { createdAt: string; nested: { updatedAt: string }; tags: string[] }
|
|
37
|
-
*/
|
|
38
|
-
export type SerializeDates<T> = T extends Date ? string : T extends (infer U)[] ? SerializeDates<U>[] : T extends readonly (infer U)[] ? readonly SerializeDates<U>[] : T extends object ? {
|
|
39
|
-
[K in keyof T]: SerializeDates<T[K]>;
|
|
40
|
-
} : T;
|
|
41
32
|
export type AuthenticationLoginRequest = AuthenticationLogin;
|
|
42
33
|
export type AuthenticationSessionRequest = Record<string, never>;
|
|
43
|
-
export type
|
|
44
|
-
export type AuthenticationSessionResponse = AuthenticationClientSession;
|
|
34
|
+
export type AuthenticationSessionResponse = AuthenticationSession;
|
|
45
35
|
export type AuthenticationLogoutRequest = Record<string, never>;
|
|
46
36
|
export type AuthenticationLogoutResponse = Record<string, never>;
|
|
47
37
|
|