@flink-app/management-api-plugin 0.6.0 → 0.7.0-alpha.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.
@@ -1,14 +1,11 @@
1
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
1
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
2
2
  import { autoRegisteredHandlers, HttpMethod } from "@flink-app/flink";
3
- import * as GetManagement_0 from "../src/handlers/Management/GetManagement";
4
3
  import * as DeleteByUserid_0 from "../src/handlers/User/DeleteByUserid";
5
- import * as GetByUserid_1 from "../src/handlers/User/GetByUserid";
6
- import * as GetList_2 from "../src/handlers/User/GetList";
7
- import * as GetMe_2 from "../src/handlers/User/GetMe";
8
- import * as Post_2 from "../src/handlers/User/Post";
9
- import * as PostLogin_3 from "../src/handlers/User/PostLogin";
10
- import * as PutByUserid_4 from "../src/handlers/User/PutByUserid";
4
+ import * as GetByUserid_0 from "../src/handlers/User/GetByUserid";
5
+ import * as Post_0 from "../src/handlers/User/Post";
6
+ import * as PostLogin_0 from "../src/handlers/User/PostLogin";
7
+ import * as PutByUserid_0 from "../src/handlers/User/PutByUserid";
11
8
 
12
- export const handlers = [{handler: DeleteByUserid_0, assumedHttpMethod: HttpMethod.delete}, {handler: GetByUserid_1, assumedHttpMethod: HttpMethod.get}, {handler: Post_2, assumedHttpMethod: HttpMethod.post}, {handler: PostLogin_3, assumedHttpMethod: HttpMethod.post}, {handler: PutByUserid_4, assumedHttpMethod: HttpMethod.put}];
9
+ export const handlers = [{"importName":"DeleteByUserid_0","moduleSpecifier":"../src/handlers/User/DeleteByUserid","schemasToGenerate":{"reqSchemaType":"DeleteByUserid_15_ReqSchema","resSchemaType":"DeleteByUserid_15_ResSchema"},"__file":"DeleteByUserid.ts","__query":[],"__params":[],"__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":{}}},"assumedHttpMethod":HttpMethod.delete,"handler":DeleteByUserid_0,"Route":DeleteByUserid_0.Route}, {"importName":"GetByUserid_0","moduleSpecifier":"../src/handlers/User/GetByUserid","schemasToGenerate":{"reqSchemaType":"GetByUserid_15_ReqSchema","resSchemaType":"GetByUserid_15_ResSchema"},"__file":"GetByUserid.ts","__query":[],"__params":[],"__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":{}}},"assumedHttpMethod":HttpMethod.get,"handler":GetByUserid_0,"Route":GetByUserid_0.Route}, {"importName":"Post_0","moduleSpecifier":"../src/handlers/User/Post","schemasToGenerate":{"reqSchemaType":"Post_15_ReqSchema","resSchemaType":"Post_15_ResSchema"},"__file":"Post.ts","__query":[],"__params":[],"__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":{}}},"assumedHttpMethod":HttpMethod.post,"handler":Post_0,"Route":Post_0.Route}, {"importName":"PostLogin_0","moduleSpecifier":"../src/handlers/User/PostLogin","schemasToGenerate":{"reqSchemaType":"PostLogin_21_ReqSchema","resSchemaType":"PostLogin_21_ResSchema"},"__file":"PostLogin.ts","__query":[],"__params":[],"__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":{}}},"assumedHttpMethod":HttpMethod.post,"handler":PostLogin_0,"Route":PostLogin_0.Route}, {"importName":"PutByUserid_0","moduleSpecifier":"../src/handlers/User/PutByUserid","schemasToGenerate":{"reqSchemaType":"PutByUserid_24_ReqSchema","resSchemaType":"PutByUserid_24_ResSchema"},"__file":"PutByUserid.ts","__query":[],"__params":[],"__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":{}}},"assumedHttpMethod":HttpMethod.put,"handler":PutByUserid_0,"Route":PutByUserid_0.Route}];
13
10
  autoRegisteredHandlers.push(...handlers);
14
11
 
@@ -1,4 +1,4 @@
1
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
1
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
2
2
  import { autoRegisteredJobs } from "@flink-app/flink";
3
3
  export const jobs = [];
4
4
  autoRegisteredJobs.push(...jobs);
@@ -1,4 +1,4 @@
1
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
1
+ // Generated Mon Jul 10 2023 18:13:32 GMT+0200 (Central European Summer Time)
2
2
  import { autoRegisteredRepos } from "@flink-app/flink";
3
3
  import ManagementUserRepo from "../src/repos/ManagementUserRepo";
4
4
 
@@ -2,82 +2,6 @@
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
- },
81
5
  "DeleteByUserid_15_ReqSchema": {
82
6
  "$schema": "http://json-schema.org/draft-07/schema#",
83
7
  "type": "object",
@@ -117,81 +41,6 @@
117
41
  ],
118
42
  "definitions": {}
119
43
  },
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
- },
195
44
  "Post_15_ReqSchema": {
196
45
  "$schema": "http://json-schema.org/draft-07/schema#",
197
46
  "type": "object",
@@ -15,7 +15,7 @@ import { PostUserLoginRes } from "../../src/schemas/User/PostLoginRes";
15
15
  import { PutUserByUseridReq } from "../../src/schemas/User/PutByUseridReq";
16
16
  import { PutUserByUseridRes } from "../../src/schemas/User/PutByUseridRes";
17
17
 
18
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
18
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
19
19
  export interface GetManagement_9_ReqSchema extends GetManagementReq {}
20
20
 
21
21
  export interface GetManagement_9_ResSchema extends GetManagementRes {}
package/.flink/start.ts CHANGED
@@ -1,4 +1,4 @@
1
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
1
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
2
2
  import "./generatedHandlers";
3
3
  import "./generatedRepos";
4
4
  import "./generatedJobs";
@@ -1,22 +1,240 @@
1
1
  import { HttpMethod } from "@flink-app/flink";
2
2
  import * as DeleteByUserid_0 from "../src/handlers/User/DeleteByUserid";
3
- import * as GetByUserid_1 from "../src/handlers/User/GetByUserid";
4
- import * as Post_2 from "../src/handlers/User/Post";
5
- import * as PostLogin_3 from "../src/handlers/User/PostLogin";
6
- import * as PutByUserid_4 from "../src/handlers/User/PutByUserid";
3
+ import * as GetByUserid_0 from "../src/handlers/User/GetByUserid";
4
+ import * as Post_0 from "../src/handlers/User/Post";
5
+ import * as PostLogin_0 from "../src/handlers/User/PostLogin";
6
+ import * as PutByUserid_0 from "../src/handlers/User/PutByUserid";
7
7
  export declare const handlers: ({
8
- handler: typeof DeleteByUserid_0;
8
+ importName: string;
9
+ moduleSpecifier: string;
10
+ schemasToGenerate: {
11
+ reqSchemaType: string;
12
+ resSchemaType: string;
13
+ };
14
+ __file: string;
15
+ __query: never[];
16
+ __params: never[];
17
+ __schemas: {
18
+ reqSchema: {
19
+ $schema: string;
20
+ type: string;
21
+ additionalProperties: boolean;
22
+ properties: {
23
+ username?: undefined;
24
+ password?: undefined;
25
+ };
26
+ definitions: {};
27
+ required?: undefined;
28
+ };
29
+ resSchema: {
30
+ $schema: string;
31
+ type: string;
32
+ additionalProperties: boolean;
33
+ properties: {
34
+ _id?: undefined;
35
+ username?: undefined;
36
+ user?: undefined;
37
+ token?: undefined;
38
+ };
39
+ definitions: {};
40
+ required?: undefined;
41
+ };
42
+ };
9
43
  assumedHttpMethod: HttpMethod;
44
+ handler: typeof DeleteByUserid_0;
45
+ Route: import("@flink-app/flink").RouteProps;
10
46
  } | {
11
- handler: typeof GetByUserid_1;
47
+ importName: string;
48
+ moduleSpecifier: string;
49
+ schemasToGenerate: {
50
+ reqSchemaType: string;
51
+ resSchemaType: string;
52
+ };
53
+ __file: string;
54
+ __query: never[];
55
+ __params: never[];
56
+ __schemas: {
57
+ reqSchema: {
58
+ $schema: string;
59
+ type: string;
60
+ additionalProperties: boolean;
61
+ properties: {
62
+ username?: undefined;
63
+ password?: undefined;
64
+ };
65
+ definitions: {};
66
+ required?: undefined;
67
+ };
68
+ resSchema: {
69
+ $schema: string;
70
+ type: string;
71
+ additionalProperties: boolean;
72
+ properties: {
73
+ _id: {
74
+ type: string;
75
+ };
76
+ username: {
77
+ type: string;
78
+ };
79
+ user?: undefined;
80
+ token?: undefined;
81
+ };
82
+ required: string[];
83
+ definitions: {};
84
+ };
85
+ };
12
86
  assumedHttpMethod: HttpMethod;
87
+ handler: typeof GetByUserid_0;
88
+ Route: import("@flink-app/flink").RouteProps;
13
89
  } | {
14
- handler: typeof Post_2;
90
+ importName: string;
91
+ moduleSpecifier: string;
92
+ schemasToGenerate: {
93
+ reqSchemaType: string;
94
+ resSchemaType: string;
95
+ };
96
+ __file: string;
97
+ __query: never[];
98
+ __params: never[];
99
+ __schemas: {
100
+ reqSchema: {
101
+ $schema: string;
102
+ type: string;
103
+ additionalProperties: boolean;
104
+ properties: {
105
+ username: {
106
+ type: string;
107
+ };
108
+ password: {
109
+ type: string;
110
+ };
111
+ };
112
+ required: string[];
113
+ definitions: {};
114
+ };
115
+ resSchema: {
116
+ $schema: string;
117
+ type: string;
118
+ additionalProperties: boolean;
119
+ properties: {
120
+ _id: {
121
+ type: string;
122
+ };
123
+ username: {
124
+ type: string;
125
+ };
126
+ user?: undefined;
127
+ token?: undefined;
128
+ };
129
+ required: string[];
130
+ definitions: {};
131
+ };
132
+ };
15
133
  assumedHttpMethod: HttpMethod;
134
+ handler: typeof Post_0;
135
+ Route: import("@flink-app/flink").RouteProps;
16
136
  } | {
17
- handler: typeof PostLogin_3;
137
+ importName: string;
138
+ moduleSpecifier: string;
139
+ schemasToGenerate: {
140
+ reqSchemaType: string;
141
+ resSchemaType: string;
142
+ };
143
+ __file: string;
144
+ __query: never[];
145
+ __params: never[];
146
+ __schemas: {
147
+ reqSchema: {
148
+ $schema: string;
149
+ type: string;
150
+ additionalProperties: boolean;
151
+ properties: {
152
+ username: {
153
+ type: string;
154
+ };
155
+ password: {
156
+ type: string;
157
+ };
158
+ };
159
+ required: string[];
160
+ definitions: {};
161
+ };
162
+ resSchema: {
163
+ $schema: string;
164
+ type: string;
165
+ additionalProperties: boolean;
166
+ properties: {
167
+ user: {
168
+ type: string;
169
+ additionalProperties: boolean;
170
+ properties: {
171
+ _id: {
172
+ type: string;
173
+ };
174
+ username: {
175
+ type: string;
176
+ };
177
+ };
178
+ required: string[];
179
+ };
180
+ token: {
181
+ type: string;
182
+ };
183
+ _id?: undefined;
184
+ username?: undefined;
185
+ };
186
+ required: string[];
187
+ definitions: {};
188
+ };
189
+ };
18
190
  assumedHttpMethod: HttpMethod;
191
+ handler: typeof PostLogin_0;
192
+ Route: import("@flink-app/flink").RouteProps;
19
193
  } | {
20
- handler: typeof PutByUserid_4;
194
+ importName: string;
195
+ moduleSpecifier: string;
196
+ schemasToGenerate: {
197
+ reqSchemaType: string;
198
+ resSchemaType: string;
199
+ };
200
+ __file: string;
201
+ __query: never[];
202
+ __params: never[];
203
+ __schemas: {
204
+ reqSchema: {
205
+ $schema: string;
206
+ type: string;
207
+ additionalProperties: boolean;
208
+ properties: {
209
+ username: {
210
+ type: string;
211
+ };
212
+ password: {
213
+ type: string;
214
+ };
215
+ };
216
+ definitions: {};
217
+ required?: undefined;
218
+ };
219
+ resSchema: {
220
+ $schema: string;
221
+ type: string;
222
+ additionalProperties: boolean;
223
+ properties: {
224
+ _id: {
225
+ type: string;
226
+ };
227
+ username: {
228
+ type: string;
229
+ };
230
+ user?: undefined;
231
+ token?: undefined;
232
+ };
233
+ required: string[];
234
+ definitions: {};
235
+ };
236
+ };
21
237
  assumedHttpMethod: HttpMethod;
238
+ handler: typeof PutByUserid_0;
239
+ Route: import("@flink-app/flink").RouteProps;
22
240
  })[];
@@ -20,12 +20,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
20
20
  };
21
21
  Object.defineProperty(exports, "__esModule", { value: true });
22
22
  exports.handlers = void 0;
23
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
23
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
24
24
  var flink_1 = require("@flink-app/flink");
25
25
  var DeleteByUserid_0 = __importStar(require("../src/handlers/User/DeleteByUserid"));
26
- var GetByUserid_1 = __importStar(require("../src/handlers/User/GetByUserid"));
27
- var Post_2 = __importStar(require("../src/handlers/User/Post"));
28
- var PostLogin_3 = __importStar(require("../src/handlers/User/PostLogin"));
29
- var PutByUserid_4 = __importStar(require("../src/handlers/User/PutByUserid"));
30
- exports.handlers = [{ handler: DeleteByUserid_0, assumedHttpMethod: flink_1.HttpMethod.delete }, { handler: GetByUserid_1, assumedHttpMethod: flink_1.HttpMethod.get }, { handler: Post_2, assumedHttpMethod: flink_1.HttpMethod.post }, { handler: PostLogin_3, assumedHttpMethod: flink_1.HttpMethod.post }, { handler: PutByUserid_4, assumedHttpMethod: flink_1.HttpMethod.put }];
26
+ var GetByUserid_0 = __importStar(require("../src/handlers/User/GetByUserid"));
27
+ var Post_0 = __importStar(require("../src/handlers/User/Post"));
28
+ var PostLogin_0 = __importStar(require("../src/handlers/User/PostLogin"));
29
+ var PutByUserid_0 = __importStar(require("../src/handlers/User/PutByUserid"));
30
+ exports.handlers = [{ "importName": "DeleteByUserid_0", "moduleSpecifier": "../src/handlers/User/DeleteByUserid", "schemasToGenerate": { "reqSchemaType": "DeleteByUserid_15_ReqSchema", "resSchemaType": "DeleteByUserid_15_ResSchema" }, "__file": "DeleteByUserid.ts", "__query": [], "__params": [], "__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": {} } }, "assumedHttpMethod": flink_1.HttpMethod.delete, "handler": DeleteByUserid_0, "Route": DeleteByUserid_0.Route }, { "importName": "GetByUserid_0", "moduleSpecifier": "../src/handlers/User/GetByUserid", "schemasToGenerate": { "reqSchemaType": "GetByUserid_15_ReqSchema", "resSchemaType": "GetByUserid_15_ResSchema" }, "__file": "GetByUserid.ts", "__query": [], "__params": [], "__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": {} } }, "assumedHttpMethod": flink_1.HttpMethod.get, "handler": GetByUserid_0, "Route": GetByUserid_0.Route }, { "importName": "Post_0", "moduleSpecifier": "../src/handlers/User/Post", "schemasToGenerate": { "reqSchemaType": "Post_15_ReqSchema", "resSchemaType": "Post_15_ResSchema" }, "__file": "Post.ts", "__query": [], "__params": [], "__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": {} } }, "assumedHttpMethod": flink_1.HttpMethod.post, "handler": Post_0, "Route": Post_0.Route }, { "importName": "PostLogin_0", "moduleSpecifier": "../src/handlers/User/PostLogin", "schemasToGenerate": { "reqSchemaType": "PostLogin_21_ReqSchema", "resSchemaType": "PostLogin_21_ResSchema" }, "__file": "PostLogin.ts", "__query": [], "__params": [], "__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": {} } }, "assumedHttpMethod": flink_1.HttpMethod.post, "handler": PostLogin_0, "Route": PostLogin_0.Route }, { "importName": "PutByUserid_0", "moduleSpecifier": "../src/handlers/User/PutByUserid", "schemasToGenerate": { "reqSchemaType": "PutByUserid_24_ReqSchema", "resSchemaType": "PutByUserid_24_ResSchema" }, "__file": "PutByUserid.ts", "__query": [], "__params": [], "__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": {} } }, "assumedHttpMethod": flink_1.HttpMethod.put, "handler": PutByUserid_0, "Route": PutByUserid_0.Route }];
31
31
  flink_1.autoRegisteredHandlers.push.apply(flink_1.autoRegisteredHandlers, exports.handlers);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.jobs = void 0;
4
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
4
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
5
5
  var flink_1 = require("@flink-app/flink");
6
6
  exports.jobs = [];
7
7
  flink_1.autoRegisteredJobs.push.apply(flink_1.autoRegisteredJobs, exports.jobs);
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.repos = void 0;
7
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
7
+ // Generated Mon Jul 10 2023 18:13:32 GMT+0200 (Central European Summer Time)
8
8
  var flink_1 = require("@flink-app/flink");
9
9
  var ManagementUserRepo_1 = __importDefault(require("../src/repos/ManagementUserRepo"));
10
10
  exports.repos = [{ collectionName: "managementuser", repoInstanceName: "managementUserRepo", Repo: ManagementUserRepo_1.default }];
@@ -2,82 +2,6 @@
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
- },
81
5
  "DeleteByUserid_15_ReqSchema": {
82
6
  "$schema": "http://json-schema.org/draft-07/schema#",
83
7
  "type": "object",
@@ -117,81 +41,6 @@
117
41
  ],
118
42
  "definitions": {}
119
43
  },
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
- },
195
44
  "Post_15_ReqSchema": {
196
45
  "$schema": "http://json-schema.org/draft-07/schema#",
197
46
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Generated Tue May 09 2023 09:38:30 GMT+0200 (Central European Summer Time)
3
+ // Generated Mon Jul 10 2023 18:13:33 GMT+0200 (Central European Summer Time)
4
4
  require("./generatedHandlers");
5
5
  require("./generatedRepos");
6
6
  require("./generatedJobs");
@@ -4,5 +4,3 @@ 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,7 +36,6 @@ 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;
40
39
  var GetManagement = function (_a) {
41
40
  var ctx = _a.ctx, req = _a.req;
42
41
  return __awaiter(void 0, void 0, void 0, function () {
@@ -49,5 +48,3 @@ var GetManagement = function (_a) {
49
48
  });
50
49
  };
51
50
  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,5 +5,3 @@ 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.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
39
+ exports.Route = void 0;
40
40
  var flink_1 = require("@flink-app/flink");
41
41
  exports.Route = {
42
42
  path: "/user/:userid",
@@ -66,5 +66,3 @@ 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,5 +5,3 @@ 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.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
39
+ 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,5 +67,3 @@ 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,5 +5,3 @@ 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,7 +36,6 @@ 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;
40
39
  var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
41
40
  var GetUserList = function (_a) {
42
41
  var ctx = _a.ctx, req = _a.req;
@@ -60,5 +59,3 @@ var GetUserList = function (_a) {
60
59
  });
61
60
  };
62
61
  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,5 +4,3 @@ 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,7 +50,6 @@ 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;
54
53
  var flink_1 = require("@flink-app/flink");
55
54
  var jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
56
55
  var GetUserMe = function (_a) {
@@ -77,5 +76,3 @@ var GetUserMe = function (_a) {
77
76
  });
78
77
  };
79
78
  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,5 +6,3 @@ 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.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
39
+ 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,5 +83,3 @@ 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,5 +6,3 @@ 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.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
42
+ 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,5 +82,3 @@ 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,5 +5,3 @@ 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.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = exports.Route = void 0;
39
+ 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,5 +93,3 @@ 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.6.0",
3
+ "version": "0.7.0-alpha.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.6.0",
26
+ "@flink-app/flink": "^0.7.0-alpha.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": "42ab7a99632d1fba08096d51800dfc0deb4b0222"
35
+ "gitHead": "1e656eeb0e76d6ad8c6cc48200161aa445e365df"
36
36
  }