@flink-app/management-api-plugin 0.7.0-alpha.0 → 0.11.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/.flink/generatedHandlers.ts +9 -6
- package/.flink/generatedJobs.ts +1 -1
- package/.flink/generatedRepos.ts +1 -1
- package/.flink/schemas/schemas.json +151 -0
- package/.flink/schemas/schemas.ts +1 -1
- package/.flink/start.ts +1 -1
- package/dist/.flink/generatedHandlers.d.ts +9 -227
- package/dist/.flink/generatedHandlers.js +6 -6
- package/dist/.flink/generatedJobs.js +1 -1
- package/dist/.flink/generatedRepos.js +1 -1
- package/dist/.flink/schemas/schemas.json +151 -0
- package/dist/.flink/start.js +1 -1
- package/dist/src/handlers/Management/GetManagement.d.ts +2 -0
- package/dist/src/handlers/Management/GetManagement.js +3 -0
- package/dist/src/handlers/User/DeleteByUserid.d.ts +2 -0
- package/dist/src/handlers/User/DeleteByUserid.js +3 -1
- package/dist/src/handlers/User/GetByUserid.d.ts +2 -0
- package/dist/src/handlers/User/GetByUserid.js +3 -1
- package/dist/src/handlers/User/GetList.d.ts +2 -0
- package/dist/src/handlers/User/GetList.js +3 -0
- package/dist/src/handlers/User/GetMe.d.ts +2 -0
- package/dist/src/handlers/User/GetMe.js +3 -0
- package/dist/src/handlers/User/Post.d.ts +2 -0
- package/dist/src/handlers/User/Post.js +3 -1
- package/dist/src/handlers/User/PostLogin.d.ts +2 -0
- package/dist/src/handlers/User/PostLogin.js +3 -1
- package/dist/src/handlers/User/PutByUserid.d.ts +2 -0
- package/dist/src/handlers/User/PutByUserid.js +3 -1
- package/package.json +3 -3
- package/dist/.flink/generated-schemas.json +0 -270
- package/dist/.flink/schemas.json +0 -722
- package/dist/src/handlers/Management/Get.d.ts +0 -7
- package/dist/src/handlers/Management/Get.js +0 -53
- package/dist/src/schemas/ManagementApi.d.ts +0 -25
- package/dist/src/schemas/ManagementApi.js +0 -8
|
@@ -2,6 +2,82 @@
|
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
3
|
"$ref": "#/definitions/Schemas",
|
|
4
4
|
"definitions": {
|
|
5
|
+
"GetManagement_9_ReqSchema": {
|
|
6
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7
|
+
"type": "object",
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"properties": {},
|
|
10
|
+
"definitions": {}
|
|
11
|
+
},
|
|
12
|
+
"GetManagement_9_ResSchema": {
|
|
13
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
14
|
+
"type": "object",
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"properties": {
|
|
17
|
+
"modules": {
|
|
18
|
+
"type": "array",
|
|
19
|
+
"items": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"properties": {
|
|
22
|
+
"id": {
|
|
23
|
+
"type": "string"
|
|
24
|
+
},
|
|
25
|
+
"type": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"features": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"title": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"ui": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"data": {
|
|
41
|
+
"type": "object"
|
|
42
|
+
},
|
|
43
|
+
"endpoints": {
|
|
44
|
+
"type": "array",
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"properties": {
|
|
48
|
+
"method": {
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
"url": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"method",
|
|
57
|
+
"url"
|
|
58
|
+
],
|
|
59
|
+
"additionalProperties": false
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"required": [
|
|
64
|
+
"id",
|
|
65
|
+
"type",
|
|
66
|
+
"features",
|
|
67
|
+
"title",
|
|
68
|
+
"ui",
|
|
69
|
+
"data",
|
|
70
|
+
"endpoints"
|
|
71
|
+
],
|
|
72
|
+
"additionalProperties": false
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"modules"
|
|
78
|
+
],
|
|
79
|
+
"definitions": {}
|
|
80
|
+
},
|
|
5
81
|
"DeleteByUserid_15_ReqSchema": {
|
|
6
82
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7
83
|
"type": "object",
|
|
@@ -41,6 +117,81 @@
|
|
|
41
117
|
],
|
|
42
118
|
"definitions": {}
|
|
43
119
|
},
|
|
120
|
+
"GetList_10_ReqSchema": {
|
|
121
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
122
|
+
"type": "object",
|
|
123
|
+
"additionalProperties": false,
|
|
124
|
+
"properties": {},
|
|
125
|
+
"definitions": {}
|
|
126
|
+
},
|
|
127
|
+
"GetList_10_ResSchema": {
|
|
128
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
129
|
+
"type": "object",
|
|
130
|
+
"additionalProperties": false,
|
|
131
|
+
"properties": {
|
|
132
|
+
"users": {
|
|
133
|
+
"type": "array",
|
|
134
|
+
"items": {
|
|
135
|
+
"type": "object",
|
|
136
|
+
"additionalProperties": false,
|
|
137
|
+
"properties": {
|
|
138
|
+
"_id": {
|
|
139
|
+
"type": "string"
|
|
140
|
+
},
|
|
141
|
+
"username": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"required": [
|
|
146
|
+
"_id",
|
|
147
|
+
"username"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"required": [
|
|
153
|
+
"users"
|
|
154
|
+
],
|
|
155
|
+
"definitions": {}
|
|
156
|
+
},
|
|
157
|
+
"GetMe_8_ReqSchema": {
|
|
158
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
159
|
+
"type": "object",
|
|
160
|
+
"additionalProperties": false,
|
|
161
|
+
"properties": {},
|
|
162
|
+
"definitions": {}
|
|
163
|
+
},
|
|
164
|
+
"GetMe_8_ResSchema": {
|
|
165
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
166
|
+
"type": "object",
|
|
167
|
+
"additionalProperties": false,
|
|
168
|
+
"properties": {
|
|
169
|
+
"user": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"additionalProperties": false,
|
|
172
|
+
"properties": {
|
|
173
|
+
"_id": {
|
|
174
|
+
"type": "string"
|
|
175
|
+
},
|
|
176
|
+
"username": {
|
|
177
|
+
"type": "string"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"required": [
|
|
181
|
+
"_id",
|
|
182
|
+
"username"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"token": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"required": [
|
|
190
|
+
"token",
|
|
191
|
+
"user"
|
|
192
|
+
],
|
|
193
|
+
"definitions": {}
|
|
194
|
+
},
|
|
44
195
|
"Post_15_ReqSchema": {
|
|
45
196
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
46
197
|
"type": "object",
|
package/dist/.flink/start.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// Generated
|
|
3
|
+
// Generated Tue Jun 18 2024 09:50:45 GMT+0200 (Central European Summer Time)
|
|
4
4
|
require("./generatedHandlers");
|
|
5
5
|
require("./generatedRepos");
|
|
6
6
|
require("./generatedJobs");
|
|
@@ -4,3 +4,5 @@ import { GetManagementReq } from "../../schemas/Management/GetReq";
|
|
|
4
4
|
import { GetManagementRes } from "../../schemas/Management/GetRes";
|
|
5
5
|
declare const GetManagement: Handler<Ctx, GetManagementReq, GetManagementRes>;
|
|
6
6
|
export default GetManagement;
|
|
7
|
+
export declare const __assumedHttpMethod = "get", __file = "GetManagement.ts", __query: never[], __params: never[];
|
|
8
|
+
export declare const __schemas: any;
|
|
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
|
|
39
40
|
var GetManagement = function (_a) {
|
|
40
41
|
var ctx = _a.ctx, req = _a.req;
|
|
41
42
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -48,3 +49,5 @@ var GetManagement = function (_a) {
|
|
|
48
49
|
});
|
|
49
50
|
};
|
|
50
51
|
exports.default = GetManagement;
|
|
52
|
+
exports.__assumedHttpMethod = "get", exports.__file = "GetManagement.ts", exports.__query = [], exports.__params = [];
|
|
53
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "modules": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "type": { "type": "string" }, "features": { "type": "array", "items": { "type": "string" } }, "title": { "type": "string" }, "ui": { "type": "string" }, "data": { "type": "object" }, "endpoints": { "type": "array", "items": { "type": "object", "properties": { "method": { "type": "string" }, "url": { "type": "string" } }, "required": ["method", "url"], "additionalProperties": false } } }, "required": ["id", "type", "features", "title", "ui", "data", "endpoints"], "additionalProperties": false } } }, "required": ["modules"], "definitions": {} } };
|
|
@@ -5,3 +5,5 @@ import { DeleteUserByUseridRes } from "../../schemas/User/DeleteByUseridRes";
|
|
|
5
5
|
export declare const Route: RouteProps;
|
|
6
6
|
declare const DeleteUserByUserid: Handler<Ctx, DeleteUserByUseridReq, DeleteUserByUseridRes>;
|
|
7
7
|
export default DeleteUserByUserid;
|
|
8
|
+
export declare const __assumedHttpMethod = "delete", __file = "DeleteByUserid.ts", __query: never[], __params: never[];
|
|
9
|
+
export declare const __schemas: any;
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Route = void 0;
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
|
|
40
40
|
var flink_1 = require("@flink-app/flink");
|
|
41
41
|
exports.Route = {
|
|
42
42
|
path: "/user/:userid",
|
|
@@ -66,3 +66,5 @@ var DeleteUserByUserid = function (_a) {
|
|
|
66
66
|
});
|
|
67
67
|
};
|
|
68
68
|
exports.default = DeleteUserByUserid;
|
|
69
|
+
exports.__assumedHttpMethod = "delete", exports.__file = "DeleteByUserid.ts", exports.__query = [], exports.__params = [];
|
|
70
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} } };
|
|
@@ -5,3 +5,5 @@ import { Ctx } from "../../Ctx";
|
|
|
5
5
|
export declare const Route: RouteProps;
|
|
6
6
|
declare const GetUserByUserid: Handler<Ctx, GetUserByUseridReq, GetUserByUseridRes>;
|
|
7
7
|
export default GetUserByUserid;
|
|
8
|
+
export declare const __assumedHttpMethod = "get", __file = "GetByUserid.ts", __query: never[], __params: never[];
|
|
9
|
+
export declare const __schemas: any;
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Route = void 0;
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
|
|
40
40
|
var flink_1 = require("@flink-app/flink");
|
|
41
41
|
var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
|
|
42
42
|
exports.Route = {
|
|
@@ -67,3 +67,5 @@ var GetUserByUserid = function (_a) {
|
|
|
67
67
|
});
|
|
68
68
|
};
|
|
69
69
|
exports.default = GetUserByUserid;
|
|
70
|
+
exports.__assumedHttpMethod = "get", exports.__file = "GetByUserid.ts", exports.__query = [], exports.__params = [];
|
|
71
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"], "definitions": {} } };
|
|
@@ -5,3 +5,5 @@ import { Ctx } from "../../Ctx";
|
|
|
5
5
|
declare type Params = {};
|
|
6
6
|
declare const GetUserList: Handler<Ctx, GetUserListReq, GetUserListRes, Params>;
|
|
7
7
|
export default GetUserList;
|
|
8
|
+
export declare const __assumedHttpMethod = "get", __file = "GetList.ts", __query: never[], __params: never[];
|
|
9
|
+
export declare const __schemas: any;
|
|
@@ -36,6 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
|
|
39
40
|
var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
|
|
40
41
|
var GetUserList = function (_a) {
|
|
41
42
|
var ctx = _a.ctx, req = _a.req;
|
|
@@ -59,3 +60,5 @@ var GetUserList = function (_a) {
|
|
|
59
60
|
});
|
|
60
61
|
};
|
|
61
62
|
exports.default = GetUserList;
|
|
63
|
+
exports.__assumedHttpMethod = "get", exports.__file = "GetList.ts", exports.__query = [], exports.__params = [];
|
|
64
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "users": { "type": "array", "items": { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] } } }, "required": ["users"], "definitions": {} } };
|
|
@@ -4,3 +4,5 @@ import { GetUserMeReq } from "../../schemas/User/GetMeReq";
|
|
|
4
4
|
import { GetUserMeRes } from "../../schemas/User/GetMeRes";
|
|
5
5
|
declare const GetUserMe: Handler<Ctx, GetUserMeReq, GetUserMeRes>;
|
|
6
6
|
export default GetUserMe;
|
|
7
|
+
export declare const __assumedHttpMethod = "get", __file = "GetMe.ts", __query: never[], __params: never[];
|
|
8
|
+
export declare const __schemas: any;
|
|
@@ -50,6 +50,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
50
50
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
51
|
};
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
|
|
53
54
|
var flink_1 = require("@flink-app/flink");
|
|
54
55
|
var jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
55
56
|
var GetUserMe = function (_a) {
|
|
@@ -76,3 +77,5 @@ var GetUserMe = function (_a) {
|
|
|
76
77
|
});
|
|
77
78
|
};
|
|
78
79
|
exports.default = GetUserMe;
|
|
80
|
+
exports.__assumedHttpMethod = "get", exports.__file = "GetMe.ts", exports.__query = [], exports.__params = [];
|
|
81
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": {}, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "user": { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] }, "token": { "type": "string" } }, "required": ["token", "user"], "definitions": {} } };
|
|
@@ -6,3 +6,5 @@ export declare const Route: RouteProps;
|
|
|
6
6
|
declare type Params = {};
|
|
7
7
|
declare const PostUser: Handler<Ctx, PostUserReq, PostUserRes, Params>;
|
|
8
8
|
export default PostUser;
|
|
9
|
+
export declare const __assumedHttpMethod = "post", __file = "Post.ts", __query: never[], __params: never[];
|
|
10
|
+
export declare const __schemas: any;
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Route = void 0;
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
|
|
40
40
|
var flink_1 = require("@flink-app/flink");
|
|
41
41
|
var bcrypt_1 = require("../../utils/bcrypt");
|
|
42
42
|
var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
|
|
@@ -83,3 +83,5 @@ var PostUser = function (_a) {
|
|
|
83
83
|
});
|
|
84
84
|
};
|
|
85
85
|
exports.default = PostUser;
|
|
86
|
+
exports.__assumedHttpMethod = "post", exports.__file = "Post.ts", exports.__query = [], exports.__params = [];
|
|
87
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["password", "username"], "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"], "definitions": {} } };
|
|
@@ -6,3 +6,5 @@ export declare const Route: RouteProps;
|
|
|
6
6
|
declare type Params = {};
|
|
7
7
|
declare const PostUserLogin: Handler<Ctx, PostUserLoginReq, PostUserLoginRes, Params>;
|
|
8
8
|
export default PostUserLogin;
|
|
9
|
+
export declare const __assumedHttpMethod = "post", __file = "PostLogin.ts", __query: never[], __params: never[];
|
|
10
|
+
export declare const __schemas: any;
|
|
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
exports.Route = void 0;
|
|
42
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
|
|
43
43
|
var flink_1 = require("@flink-app/flink");
|
|
44
44
|
var jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
|
|
45
45
|
var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
|
|
@@ -82,3 +82,5 @@ var PostUserLogin = function (_a) {
|
|
|
82
82
|
});
|
|
83
83
|
};
|
|
84
84
|
exports.default = PostUserLogin;
|
|
85
|
+
exports.__assumedHttpMethod = "post", exports.__file = "PostLogin.ts", exports.__query = [], exports.__params = [];
|
|
86
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["password", "username"], "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "user": { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] }, "token": { "type": "string" } }, "required": ["token", "user"], "definitions": {} } };
|
|
@@ -5,3 +5,5 @@ import { PutUserByUseridRes } from "../../schemas/User/PutByUseridRes";
|
|
|
5
5
|
export declare const Route: RouteProps;
|
|
6
6
|
declare const PutUserByUserid: Handler<Ctx, PutUserByUseridReq, PutUserByUseridRes>;
|
|
7
7
|
export default PutUserByUserid;
|
|
8
|
+
export declare const __assumedHttpMethod = "put", __file = "PutByUserid.ts", __query: never[], __params: never[];
|
|
9
|
+
export declare const __schemas: any;
|
|
@@ -36,7 +36,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.Route = void 0;
|
|
39
|
+
exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
|
|
40
40
|
var flink_1 = require("@flink-app/flink");
|
|
41
41
|
var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
|
|
42
42
|
var bcrypt_1 = require("../../utils/bcrypt");
|
|
@@ -93,3 +93,5 @@ var PutUserByUserid = function (_a) {
|
|
|
93
93
|
});
|
|
94
94
|
};
|
|
95
95
|
exports.default = PutUserByUserid;
|
|
96
|
+
exports.__assumedHttpMethod = "put", exports.__file = "PutByUserid.ts", exports.__query = [], exports.__params = [];
|
|
97
|
+
exports.__schemas = { reqSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "definitions": {} }, resSchema: { "$schema": "http://json-schema.org/draft-07/schema#", "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"], "definitions": {} } };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flink-app/management-api-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Flink plugin that makes it possible to expose management api:s for other plugins",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\"",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"jsonwebtoken": "^8.5.1"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@flink-app/flink": "^0.
|
|
26
|
+
"@flink-app/flink": "^0.11.0",
|
|
27
27
|
"@types/bcrypt": "^5.0.0",
|
|
28
28
|
"@types/express": "4.17.11",
|
|
29
29
|
"@types/express-fileupload": "^1.1.7",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"ts-node": "^9.1.1",
|
|
33
33
|
"typescript": "^4.2.4"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "3869def3e7e7e7105373ad31bc23a8ed68108015"
|
|
36
36
|
}
|
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$ref": "#/definitions/Schemas",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"ManagementUser": {
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"_id": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"username": {
|
|
12
|
-
"type": "string"
|
|
13
|
-
},
|
|
14
|
-
"password": {
|
|
15
|
-
"type": "string"
|
|
16
|
-
},
|
|
17
|
-
"salt": {
|
|
18
|
-
"type": "string"
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": [
|
|
22
|
-
"_id",
|
|
23
|
-
"username",
|
|
24
|
-
"password",
|
|
25
|
-
"salt"
|
|
26
|
-
],
|
|
27
|
-
"additionalProperties": false
|
|
28
|
-
},
|
|
29
|
-
"ManagementUserViewModel": {
|
|
30
|
-
"type": "object",
|
|
31
|
-
"additionalProperties": false,
|
|
32
|
-
"properties": {
|
|
33
|
-
"_id": {
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
"username": {
|
|
37
|
-
"type": "string"
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"required": [
|
|
41
|
-
"_id",
|
|
42
|
-
"username"
|
|
43
|
-
]
|
|
44
|
-
},
|
|
45
|
-
"ModuleList": {
|
|
46
|
-
"type": "object",
|
|
47
|
-
"properties": {
|
|
48
|
-
"modules": {
|
|
49
|
-
"type": "array",
|
|
50
|
-
"items": {
|
|
51
|
-
"$ref": "#/definitions/Module"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"required": [
|
|
56
|
-
"modules"
|
|
57
|
-
],
|
|
58
|
-
"additionalProperties": false
|
|
59
|
-
},
|
|
60
|
-
"Module": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"properties": {
|
|
63
|
-
"id": {
|
|
64
|
-
"type": "string"
|
|
65
|
-
},
|
|
66
|
-
"type": {
|
|
67
|
-
"type": "string"
|
|
68
|
-
},
|
|
69
|
-
"features": {
|
|
70
|
-
"type": "array",
|
|
71
|
-
"items": {
|
|
72
|
-
"type": "string"
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"title": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
"ui": {
|
|
79
|
-
"type": "string"
|
|
80
|
-
}
|
|
81
|
-
},
|
|
82
|
-
"required": [
|
|
83
|
-
"id",
|
|
84
|
-
"type",
|
|
85
|
-
"features",
|
|
86
|
-
"title",
|
|
87
|
-
"ui"
|
|
88
|
-
],
|
|
89
|
-
"additionalProperties": false
|
|
90
|
-
},
|
|
91
|
-
"GetManagementReq": {
|
|
92
|
-
"type": "object",
|
|
93
|
-
"additionalProperties": false
|
|
94
|
-
},
|
|
95
|
-
"GetManagementRes": {
|
|
96
|
-
"type": "object",
|
|
97
|
-
"additionalProperties": false,
|
|
98
|
-
"properties": {
|
|
99
|
-
"modules": {
|
|
100
|
-
"type": "array",
|
|
101
|
-
"items": {
|
|
102
|
-
"$ref": "#/definitions/Module"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
"required": [
|
|
107
|
-
"modules"
|
|
108
|
-
]
|
|
109
|
-
},
|
|
110
|
-
"DeleteUserByUseridReq": {
|
|
111
|
-
"type": "object",
|
|
112
|
-
"additionalProperties": false
|
|
113
|
-
},
|
|
114
|
-
"DeleteUserByUseridRes": {
|
|
115
|
-
"type": "object",
|
|
116
|
-
"additionalProperties": false
|
|
117
|
-
},
|
|
118
|
-
"GetUserByUseridReq": {
|
|
119
|
-
"type": "object",
|
|
120
|
-
"additionalProperties": false
|
|
121
|
-
},
|
|
122
|
-
"GetUserByUseridRes": {
|
|
123
|
-
"type": "object",
|
|
124
|
-
"additionalProperties": false,
|
|
125
|
-
"properties": {
|
|
126
|
-
"_id": {
|
|
127
|
-
"type": "string"
|
|
128
|
-
},
|
|
129
|
-
"username": {
|
|
130
|
-
"type": "string"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"required": [
|
|
134
|
-
"_id",
|
|
135
|
-
"username"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"GetUserListReq": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"additionalProperties": false
|
|
141
|
-
},
|
|
142
|
-
"GetUserListRes": {
|
|
143
|
-
"type": "object",
|
|
144
|
-
"properties": {
|
|
145
|
-
"users": {
|
|
146
|
-
"type": "array",
|
|
147
|
-
"items": {
|
|
148
|
-
"$ref": "#/definitions/ManagementUserViewModel"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
"required": [
|
|
153
|
-
"users"
|
|
154
|
-
],
|
|
155
|
-
"additionalProperties": false
|
|
156
|
-
},
|
|
157
|
-
"GetUserMeReq": {
|
|
158
|
-
"type": "object",
|
|
159
|
-
"additionalProperties": false
|
|
160
|
-
},
|
|
161
|
-
"GetUserMeRes": {
|
|
162
|
-
"type": "object",
|
|
163
|
-
"additionalProperties": false,
|
|
164
|
-
"properties": {
|
|
165
|
-
"user": {
|
|
166
|
-
"$ref": "#/definitions/ManagementUserViewModel"
|
|
167
|
-
},
|
|
168
|
-
"token": {
|
|
169
|
-
"type": "string"
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
"required": [
|
|
173
|
-
"token",
|
|
174
|
-
"user"
|
|
175
|
-
]
|
|
176
|
-
},
|
|
177
|
-
"PostUserLoginReq": {
|
|
178
|
-
"type": "object",
|
|
179
|
-
"properties": {
|
|
180
|
-
"username": {
|
|
181
|
-
"type": "string"
|
|
182
|
-
},
|
|
183
|
-
"password": {
|
|
184
|
-
"type": "string"
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"required": [
|
|
188
|
-
"username",
|
|
189
|
-
"password"
|
|
190
|
-
],
|
|
191
|
-
"additionalProperties": false
|
|
192
|
-
},
|
|
193
|
-
"PostUserLoginRes": {
|
|
194
|
-
"type": "object",
|
|
195
|
-
"properties": {
|
|
196
|
-
"user": {
|
|
197
|
-
"$ref": "#/definitions/ManagementUserViewModel"
|
|
198
|
-
},
|
|
199
|
-
"token": {
|
|
200
|
-
"type": "string"
|
|
201
|
-
}
|
|
202
|
-
},
|
|
203
|
-
"required": [
|
|
204
|
-
"user",
|
|
205
|
-
"token"
|
|
206
|
-
],
|
|
207
|
-
"additionalProperties": false
|
|
208
|
-
},
|
|
209
|
-
"PostUserReq": {
|
|
210
|
-
"type": "object",
|
|
211
|
-
"additionalProperties": false,
|
|
212
|
-
"properties": {
|
|
213
|
-
"username": {
|
|
214
|
-
"type": "string"
|
|
215
|
-
},
|
|
216
|
-
"password": {
|
|
217
|
-
"type": "string"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
"required": [
|
|
221
|
-
"password",
|
|
222
|
-
"username"
|
|
223
|
-
]
|
|
224
|
-
},
|
|
225
|
-
"PostUserRes": {
|
|
226
|
-
"type": "object",
|
|
227
|
-
"additionalProperties": false,
|
|
228
|
-
"properties": {
|
|
229
|
-
"_id": {
|
|
230
|
-
"type": "string"
|
|
231
|
-
},
|
|
232
|
-
"username": {
|
|
233
|
-
"type": "string"
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
"required": [
|
|
237
|
-
"_id",
|
|
238
|
-
"username"
|
|
239
|
-
]
|
|
240
|
-
},
|
|
241
|
-
"PutUserByUseridReq": {
|
|
242
|
-
"type": "object",
|
|
243
|
-
"additionalProperties": false,
|
|
244
|
-
"properties": {
|
|
245
|
-
"username": {
|
|
246
|
-
"type": "string"
|
|
247
|
-
},
|
|
248
|
-
"password": {
|
|
249
|
-
"type": "string"
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
"PutUserByUseridRes": {
|
|
254
|
-
"type": "object",
|
|
255
|
-
"additionalProperties": false,
|
|
256
|
-
"properties": {
|
|
257
|
-
"_id": {
|
|
258
|
-
"type": "string"
|
|
259
|
-
},
|
|
260
|
-
"username": {
|
|
261
|
-
"type": "string"
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
"required": [
|
|
265
|
-
"_id",
|
|
266
|
-
"username"
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|