@flink-app/management-api-plugin 0.3.0 → 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 Nov 19 2021 11:08:53 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:53 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:54 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:54 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:53 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:53 GMT+0100 (Central European Standard 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 Nov 19 2021 11:08:54 GMT+0100 (Central European Standard 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");
@@ -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.3.0",
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\"",
@@ -32,5 +32,5 @@
32
32
  "ts-node": "^9.1.1",
33
33
  "typescript": "^4.2.4"
34
34
  },
35
- "gitHead": "21b4a23ed4d3eea816c38271bd37b5aa9d91cd5b"
35
+ "gitHead": "b800964996030503e996215713374bfd46fc6c56"
36
36
  }
@@ -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
  }