@esb-market-contracts/admin-backend 1.0.8 → 1.1.0
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 +171 -0
- package/index.d.ts +1 -1
- package/package.json +7 -6
- package/hono.d.ts +0 -42
- /package/{hono.js → api.js} +0 -0
package/api.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
+
|
|
3
|
+
declare const sessionsRouter: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
4
|
+
"/iam/sessions/create": {
|
|
5
|
+
$post: {
|
|
6
|
+
input: {
|
|
7
|
+
json: {
|
|
8
|
+
userId: number;
|
|
9
|
+
tokenHash: string;
|
|
10
|
+
expiresAt: unknown;
|
|
11
|
+
ipAddress?: string | null | undefined;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
output: {
|
|
15
|
+
kind: "error";
|
|
16
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
17
|
+
error: string;
|
|
18
|
+
};
|
|
19
|
+
outputFormat: "json";
|
|
20
|
+
status: 400;
|
|
21
|
+
} | {
|
|
22
|
+
input: {
|
|
23
|
+
json: {
|
|
24
|
+
userId: number;
|
|
25
|
+
tokenHash: string;
|
|
26
|
+
expiresAt: unknown;
|
|
27
|
+
ipAddress?: string | null | undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
output: {
|
|
31
|
+
kind: "error";
|
|
32
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
33
|
+
error: string;
|
|
34
|
+
} | {
|
|
35
|
+
kind: "data";
|
|
36
|
+
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
37
|
+
data: {
|
|
38
|
+
id: number;
|
|
39
|
+
createdAt: string;
|
|
40
|
+
userId: number;
|
|
41
|
+
tokenHash: string;
|
|
42
|
+
ipAddress: string | null;
|
|
43
|
+
revokedAt: string | null;
|
|
44
|
+
expiresAt: string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
outputFormat: "json";
|
|
48
|
+
status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
} & {
|
|
52
|
+
"/iam/sessions/get": {
|
|
53
|
+
$get: {
|
|
54
|
+
input: {
|
|
55
|
+
query: {
|
|
56
|
+
tokenHash: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
output: {
|
|
60
|
+
kind: "error";
|
|
61
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
62
|
+
error: string;
|
|
63
|
+
};
|
|
64
|
+
outputFormat: "json";
|
|
65
|
+
status: 400;
|
|
66
|
+
} | {
|
|
67
|
+
input: {
|
|
68
|
+
query: {
|
|
69
|
+
tokenHash: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
output: {
|
|
73
|
+
kind: "error";
|
|
74
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
75
|
+
error: string;
|
|
76
|
+
} | {
|
|
77
|
+
kind: "data";
|
|
78
|
+
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
79
|
+
data: {
|
|
80
|
+
id: number;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
userId: number;
|
|
83
|
+
tokenHash: string;
|
|
84
|
+
ipAddress: string | null;
|
|
85
|
+
revokedAt: string | null;
|
|
86
|
+
expiresAt: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
outputFormat: "json";
|
|
90
|
+
status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
"/iam/sessions/get-active": {
|
|
95
|
+
$get: {
|
|
96
|
+
input: {
|
|
97
|
+
query: {
|
|
98
|
+
tokenHash: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
output: {
|
|
102
|
+
kind: "error";
|
|
103
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
104
|
+
error: string;
|
|
105
|
+
};
|
|
106
|
+
outputFormat: "json";
|
|
107
|
+
status: 400;
|
|
108
|
+
} | {
|
|
109
|
+
input: {
|
|
110
|
+
query: {
|
|
111
|
+
tokenHash: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
output: {
|
|
115
|
+
kind: "error";
|
|
116
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
117
|
+
error: string;
|
|
118
|
+
} | {
|
|
119
|
+
kind: "data";
|
|
120
|
+
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
121
|
+
data: {
|
|
122
|
+
id: number;
|
|
123
|
+
createdAt: string;
|
|
124
|
+
userId: number;
|
|
125
|
+
tokenHash: string;
|
|
126
|
+
ipAddress: string | null;
|
|
127
|
+
revokedAt: string | null;
|
|
128
|
+
expiresAt: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
outputFormat: "json";
|
|
132
|
+
status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
} & {
|
|
136
|
+
"/iam/sessions/revoke": {
|
|
137
|
+
$post: {
|
|
138
|
+
input: {
|
|
139
|
+
json: {
|
|
140
|
+
id: number;
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
output: {
|
|
144
|
+
kind: "error";
|
|
145
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
146
|
+
error: string;
|
|
147
|
+
};
|
|
148
|
+
outputFormat: "json";
|
|
149
|
+
status: 400;
|
|
150
|
+
} | {
|
|
151
|
+
input: {
|
|
152
|
+
json: {
|
|
153
|
+
id: number;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
output: {
|
|
157
|
+
kind: "error";
|
|
158
|
+
status: import("@esb-market-contracts/core").ExceptionStatusCode;
|
|
159
|
+
error: string;
|
|
160
|
+
} | {
|
|
161
|
+
kind: "void";
|
|
162
|
+
status: import("@esb-market-contracts/core").SuccessStatusCode;
|
|
163
|
+
};
|
|
164
|
+
outputFormat: "json";
|
|
165
|
+
status: 400 | 401 | 403 | 404 | 405 | 409 | 500 | 200 | 201 | 202 | 307;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
}, "/iam/sessions", "/iam/sessions/revoke">;
|
|
169
|
+
export type SessionsRouter = typeof sessionsRouter;
|
|
170
|
+
|
|
171
|
+
export {};
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type * from './
|
|
1
|
+
export type * from './api';
|
|
2
2
|
export type * from './types';
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esb-market-contracts/admin-backend",
|
|
3
|
-
"
|
|
3
|
+
"description": "Shared TypeScript contract definitions for admin-backend.",
|
|
4
|
+
"version": "1.1.0",
|
|
4
5
|
"private": false,
|
|
5
6
|
"type": "module",
|
|
6
7
|
"sideEffects": false,
|
|
7
8
|
"files": [
|
|
8
9
|
"index.d.ts",
|
|
9
10
|
"index.js",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
11
|
+
"api.d.ts",
|
|
12
|
+
"api.js",
|
|
12
13
|
"types.d.ts",
|
|
13
14
|
"types.js"
|
|
14
15
|
],
|
|
@@ -17,9 +18,9 @@
|
|
|
17
18
|
"types": "./index.d.ts",
|
|
18
19
|
"default": "./index.js"
|
|
19
20
|
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./
|
|
22
|
-
"default": "./
|
|
21
|
+
"./api": {
|
|
22
|
+
"types": "./api.d.ts",
|
|
23
|
+
"default": "./api.js"
|
|
23
24
|
},
|
|
24
25
|
"./types": {
|
|
25
26
|
"types": "./types.d.ts",
|
package/hono.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v9.5.1
|
|
2
|
-
|
|
3
|
-
declare const SUCCESS_STATUS_CODES: readonly [
|
|
4
|
-
200,
|
|
5
|
-
201,
|
|
6
|
-
202,
|
|
7
|
-
307
|
|
8
|
-
];
|
|
9
|
-
declare const EXCEPTION_STATUS_CODES: readonly [
|
|
10
|
-
400,
|
|
11
|
-
401,
|
|
12
|
-
403,
|
|
13
|
-
404,
|
|
14
|
-
405,
|
|
15
|
-
409,
|
|
16
|
-
500
|
|
17
|
-
];
|
|
18
|
-
export type SuccessStatusCode = (typeof SUCCESS_STATUS_CODES)[number];
|
|
19
|
-
export type ExceptionStatusCode = (typeof EXCEPTION_STATUS_CODES)[number];
|
|
20
|
-
declare const playgroundRouter: import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
|
|
21
|
-
"/playground": {
|
|
22
|
-
$get: {
|
|
23
|
-
input: {};
|
|
24
|
-
output: {
|
|
25
|
-
kind: "error";
|
|
26
|
-
status: ExceptionStatusCode;
|
|
27
|
-
error: string;
|
|
28
|
-
} | {
|
|
29
|
-
kind: "data";
|
|
30
|
-
status: SuccessStatusCode;
|
|
31
|
-
data: {
|
|
32
|
-
message: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
outputFormat: "json";
|
|
36
|
-
status: 200 | 201 | 202 | 307 | 400 | 401 | 403 | 404 | 405 | 409 | 500;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}, "/playground", "/playground">;
|
|
40
|
-
export type PlaygroundRouter = typeof playgroundRouter;
|
|
41
|
-
|
|
42
|
-
export {};
|
/package/{hono.js → api.js}
RENAMED
|
File without changes
|