@flink-app/management-api-plugin 0.2.0-beta.7 → 0.3.2

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,4 +1,4 @@
1
- // Generated Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
1
+ // Generated Thu Jan 20 2022 09:50:49 GMT+0100 (Central European Standard Time)
2
2
  import { autoRegisteredHandlers, HttpMethod } from "@flink-app/flink";
3
3
  import * as GetManagement_0 from "../src/handlers/Management/GetManagement";
4
4
  import * as DeleteByUserid_0 from "../src/handlers/User/DeleteByUserid";
@@ -1,4 +1,4 @@
1
- // Generated Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
1
+ // Generated Thu Jan 20 2022 09:50:49 GMT+0100 (Central European Standard Time)
2
2
  import { autoRegisteredRepos } from "@flink-app/flink";
3
3
  import ManagementUserRepo from "../src/repos/ManagementUserRepo";
4
4
 
@@ -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 Fri Jul 30 2021 09:23:25 GMT+0200 (Central European Summer Time)
18
+ // Generated Thu Jan 20 2022 09:50:51 GMT+0100 (Central European Standard 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 Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
1
+ // Generated Thu Jan 20 2022 09:50:50 GMT+0100 (Central European Standard Time)
2
2
  import "./generatedHandlers";
3
3
  import "./generatedRepos";
4
4
  import "../src/index";
@@ -20,7 +20,7 @@ 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 Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
23
+ // Generated Thu Jan 20 2022 09:50:49 GMT+0100 (Central European Standard Time)
24
24
  var flink_1 = require("@flink-app/flink");
25
25
  var DeleteByUserid_0 = __importStar(require("../src/handlers/User/DeleteByUserid"));
26
26
  var GetByUserid_1 = __importStar(require("../src/handlers/User/GetByUserid"));
@@ -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 Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
7
+ // Generated Thu Jan 20 2022 09:50:49 GMT+0100 (Central European Standard 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 }];
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Generated Fri Jul 30 2021 09:23:24 GMT+0200 (Central European Summer Time)
3
+ // Generated Thu Jan 20 2022 09:50:50 GMT+0100 (Central European Standard Time)
4
4
  require("./generatedHandlers");
5
5
  require("./generatedRepos");
6
6
  require("../src/index");
@@ -4,5 +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";
7
+ export declare const __assumedHttpMethod = "get", __file = "GetManagement.ts", __query: never[], __params: never[];
8
8
  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.__file = exports.__assumedHttpMethod = void 0;
39
+ exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
40
40
  var GetManagement = function (_a) {
41
41
  var ctx = _a.ctx, req = _a.req;
42
42
  return __awaiter(void 0, void 0, void 0, function () {
@@ -49,5 +49,5 @@ var GetManagement = function (_a) {
49
49
  });
50
50
  };
51
51
  exports.default = GetManagement;
52
- exports.__assumedHttpMethod = "get", exports.__file = "GetManagement.ts";
52
+ exports.__assumedHttpMethod = "get", exports.__file = "GetManagement.ts", exports.__query = [], exports.__params = [];
53
53
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": {} }, resSchema: { "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"] } };
@@ -5,5 +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";
8
+ export declare const __assumedHttpMethod = "delete", __file = "DeleteByUserid.ts", __query: never[], __params: never[];
9
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.__file = exports.__assumedHttpMethod = 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,5 +66,5 @@ var DeleteUserByUserid = function (_a) {
66
66
  });
67
67
  };
68
68
  exports.default = DeleteUserByUserid;
69
- exports.__assumedHttpMethod = "delete", exports.__file = "DeleteByUserid.ts";
69
+ exports.__assumedHttpMethod = "delete", exports.__file = "DeleteByUserid.ts", exports.__query = [], exports.__params = [];
70
70
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": {} }, resSchema: { "type": "object", "additionalProperties": false, "properties": {} } };
@@ -5,5 +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";
8
+ export declare const __assumedHttpMethod = "get", __file = "GetByUserid.ts", __query: never[], __params: never[];
9
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.__file = exports.__assumedHttpMethod = 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 = {
@@ -52,7 +52,7 @@ var GetUserByUserid = function (_a) {
52
52
  var user;
53
53
  return __generator(this, function (_b) {
54
54
  switch (_b.label) {
55
- case 0: return [4 /*yield*/, ctx.repos.managementuserRepo.getBydId(req.params.userid)];
55
+ case 0: return [4 /*yield*/, ctx.repos.managementuserRepo.getById(req.params.userid)];
56
56
  case 1:
57
57
  user = _b.sent();
58
58
  if (user == null) {
@@ -60,12 +60,12 @@ var GetUserByUserid = function (_a) {
60
60
  }
61
61
  return [2 /*return*/, {
62
62
  data: ManagementUserViewModel_1.GetManagementUserViewModel(user),
63
- status: 200
63
+ status: 200,
64
64
  }];
65
65
  }
66
66
  });
67
67
  });
68
68
  };
69
69
  exports.default = GetUserByUserid;
70
- exports.__assumedHttpMethod = "get", exports.__file = "GetByUserid.ts";
70
+ exports.__assumedHttpMethod = "get", exports.__file = "GetByUserid.ts", exports.__query = [], exports.__params = [];
71
71
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": {} }, resSchema: { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] } };
@@ -5,5 +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";
8
+ export declare const __assumedHttpMethod = "get", __file = "GetList.ts", __query: never[], __params: never[];
9
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.__file = exports.__assumedHttpMethod = void 0;
39
+ exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
40
40
  var ManagementUserViewModel_1 = require("../../schemas/ManagementUserViewModel");
41
41
  var GetUserList = function (_a) {
42
42
  var ctx = _a.ctx, req = _a.req;
@@ -60,5 +60,5 @@ var GetUserList = function (_a) {
60
60
  });
61
61
  };
62
62
  exports.default = GetUserList;
63
- exports.__assumedHttpMethod = "get", exports.__file = "GetList.ts";
63
+ exports.__assumedHttpMethod = "get", exports.__file = "GetList.ts", exports.__query = [], exports.__params = [];
64
64
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": {} }, resSchema: { "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"] } };
@@ -4,5 +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";
7
+ export declare const __assumedHttpMethod = "get", __file = "GetMe.ts", __query: never[], __params: never[];
8
8
  export declare const __schemas: any;
@@ -50,7 +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.__file = exports.__assumedHttpMethod = void 0;
53
+ exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
54
54
  var flink_1 = require("@flink-app/flink");
55
55
  var jsonwebtoken_1 = __importDefault(require("jsonwebtoken"));
56
56
  var GetUserMe = function (_a) {
@@ -77,5 +77,5 @@ var GetUserMe = function (_a) {
77
77
  });
78
78
  };
79
79
  exports.default = GetUserMe;
80
- exports.__assumedHttpMethod = "get", exports.__file = "GetMe.ts";
80
+ exports.__assumedHttpMethod = "get", exports.__file = "GetMe.ts", exports.__query = [], exports.__params = [];
81
81
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": {} }, resSchema: { "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"] } };
@@ -6,5 +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";
9
+ export declare const __assumedHttpMethod = "post", __file = "Post.ts", __query: never[], __params: never[];
10
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.__file = exports.__assumedHttpMethod = 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,5 +83,5 @@ var PostUser = function (_a) {
83
83
  });
84
84
  };
85
85
  exports.default = PostUser;
86
- exports.__assumedHttpMethod = "post", exports.__file = "Post.ts";
86
+ exports.__assumedHttpMethod = "post", exports.__file = "Post.ts", exports.__query = [], exports.__params = [];
87
87
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["password", "username"] }, resSchema: { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] } };
@@ -6,5 +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";
9
+ export declare const __assumedHttpMethod = "post", __file = "PostLogin.ts", __query: never[], __params: never[];
10
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.__file = exports.__assumedHttpMethod = 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,5 +82,5 @@ var PostUserLogin = function (_a) {
82
82
  });
83
83
  };
84
84
  exports.default = PostUserLogin;
85
- exports.__assumedHttpMethod = "post", exports.__file = "PostLogin.ts";
85
+ exports.__assumedHttpMethod = "post", exports.__file = "PostLogin.ts", exports.__query = [], exports.__params = [];
86
86
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } }, "required": ["password", "username"] }, resSchema: { "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"] } };
@@ -5,5 +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";
8
+ export declare const __assumedHttpMethod = "put", __file = "PutByUserid.ts", __query: never[], __params: never[];
9
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.__file = exports.__assumedHttpMethod = 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,5 +93,5 @@ var PutUserByUserid = function (_a) {
93
93
  });
94
94
  };
95
95
  exports.default = PutUserByUserid;
96
- exports.__assumedHttpMethod = "put", exports.__file = "PutByUserid.ts";
96
+ exports.__assumedHttpMethod = "put", exports.__file = "PutByUserid.ts", exports.__query = [], exports.__params = [];
97
97
  exports.__schemas = { reqSchema: { "type": "object", "additionalProperties": false, "properties": { "username": { "type": "string" }, "password": { "type": "string" } } }, resSchema: { "type": "object", "additionalProperties": false, "properties": { "_id": { "type": "string" }, "username": { "type": "string" } }, "required": ["_id", "username"] } };
@@ -24,5 +24,6 @@ export interface ManagementApiOptions {
24
24
  }
25
25
  export declare enum ManagementApiType {
26
26
  user = "USER",
27
- managementUser = "MANAGEMENT_USER"
27
+ managementUser = "MANAGEMENT_USER",
28
+ action = "ACTION"
28
29
  }
@@ -5,4 +5,5 @@ var ManagementApiType;
5
5
  (function (ManagementApiType) {
6
6
  ManagementApiType["user"] = "USER";
7
7
  ManagementApiType["managementUser"] = "MANAGEMENT_USER";
8
+ ManagementApiType["action"] = "ACTION";
8
9
  })(ManagementApiType = exports.ManagementApiType || (exports.ManagementApiType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/management-api-plugin",
3
- "version": "0.2.0-beta.7",
3
+ "version": "0.3.2",
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.2.0-beta.7",
26
+ "@flink-app/flink": "^0.3.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": "f3f528687caad6f8738ccd53e797bba10fd3d987"
35
+ "gitHead": "b800964996030503e996215713374bfd46fc6c56"
36
36
  }
@@ -5,23 +5,22 @@ import { Ctx } from "../../Ctx";
5
5
  import { GetManagementUserViewModel } from "../../schemas/ManagementUserViewModel";
6
6
  export const Route: RouteProps = {
7
7
  path: "/user/:userid",
8
- method : HttpMethod.get,
8
+ method: HttpMethod.get,
9
9
  };
10
10
 
11
11
  // type Params = {
12
12
  // userid: string;
13
13
  // };
14
14
 
15
- const GetUserByUserid: Handler<Ctx, GetUserByUseridReq, GetUserByUseridRes> = async ({ ctx, req }) => {
16
-
17
- const user = await ctx.repos.managementuserRepo.getBydId(req.params.userid)
18
- if(user == null){
15
+ const GetUserByUserid: Handler<Ctx, GetUserByUseridReq, GetUserByUseridRes> =
16
+ async ({ ctx, req }) => {
17
+ const user = await ctx.repos.managementuserRepo.getById(req.params.userid);
18
+ if (user == null) {
19
19
  return notFound();
20
20
  }
21
21
  return {
22
22
  data: GetManagementUserViewModel(user),
23
- status : 200
23
+ status: 200,
24
24
  };
25
-
26
- }
27
- export default GetUserByUserid;
25
+ };
26
+ export default GetUserByUserid;
@@ -1,26 +1,26 @@
1
1
  import { HandlerFile, RouteProps } from "@flink-app/flink";
2
2
 
3
3
  export interface ManagementApiModule {
4
- id: string;
5
- type: ManagementApiType;
6
- endpoints: { handler: HandlerFile; routeProps: Partial<RouteProps> }[];
7
- ui: boolean;
8
- uiSettings?: {
9
- title: string;
10
- icon: string;
11
- features: string[];
12
- };
13
- data : { [key : string] : any }
14
-
4
+ id: string;
5
+ type: ManagementApiType;
6
+ endpoints: { handler: HandlerFile; routeProps: Partial<RouteProps> }[];
7
+ ui: boolean;
8
+ uiSettings?: {
9
+ title: string;
10
+ icon: string;
11
+ features: string[];
12
+ };
13
+ data: { [key: string]: any };
15
14
  }
16
15
  export interface ManagementApiOptions {
17
- token: string;
18
- baseUrl?: string;
19
- jwtSecret: string;
20
- modules: ManagementApiModule[];
16
+ token: string;
17
+ baseUrl?: string;
18
+ jwtSecret: string;
19
+ modules: ManagementApiModule[];
21
20
  }
22
21
 
23
22
  export enum ManagementApiType {
24
- user = "USER",
25
- managementUser = "MANAGEMENT_USER",
23
+ user = "USER",
24
+ managementUser = "MANAGEMENT_USER",
25
+ action = "ACTION",
26
26
  }