@flink-app/management-actions-plugin 0.3.8 → 0.3.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/management-actions-plugin",
3
- "version": "0.3.8",
3
+ "version": "0.3.11",
4
4
  "description": "Flink plugin that makes it possible create actions that can be run trought the management-api",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\"",
@@ -15,16 +15,16 @@
15
15
  "types": "dist/src/index.d.ts",
16
16
  "main": "dist/src/index.js",
17
17
  "dependencies": {
18
- "@flink-app/management-api-plugin": "^0.3.8",
18
+ "@flink-app/management-api-plugin": "^0.3.11",
19
19
  "express": "^4.17.1",
20
20
  "node-color-log": "^5.3.1"
21
21
  },
22
22
  "devDependencies": {
23
- "@flink-app/flink": "^0.3.8",
23
+ "@flink-app/flink": "^0.3.11",
24
24
  "@types/express": "4.17.11",
25
25
  "@types/node": "^15.6.2",
26
26
  "ts-node": "^9.1.1",
27
27
  "typescript": "^4.2.4"
28
28
  },
29
- "gitHead": "9c45e69ffff300482f9945074c5ecc3e1d661467"
29
+ "gitHead": "87a2e1bef163645b98f9b5dd1b4add1c64e525fd"
30
30
  }
@@ -1,8 +0,0 @@
1
- // Generated Wed Jan 19 2022 17:16:22 GMT+0100 (Central European Standard Time)
2
- import { autoRegisteredHandlers, HttpMethod } from "@flink-app/flink";
3
- import * as Get_0 from "../src/handlers/Get";
4
- import * as PostById_0 from "../src/handlers/PostById";
5
-
6
- export const handlers = [];
7
- autoRegisteredHandlers.push(...handlers);
8
-
@@ -1,5 +0,0 @@
1
- // Generated Wed Jan 19 2022 17:16:22 GMT+0100 (Central European Standard Time)
2
- import { autoRegisteredRepos } from "@flink-app/flink";
3
- export const repos = [];
4
- autoRegisteredRepos.push(...repos);
5
-
@@ -1,90 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/Schemas",
4
- "definitions": {
5
- "Get_4_ResSchema": {
6
- "type": "array",
7
- "items": {
8
- "$ref": "#/definitions/ActionView"
9
- }
10
- },
11
- "ActionView": {
12
- "type": "object",
13
- "properties": {
14
- "id": {
15
- "type": "string"
16
- },
17
- "description": {
18
- "type": "string"
19
- },
20
- "arguments": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "#/definitions/ActionArguments"
24
- }
25
- }
26
- },
27
- "required": [
28
- "id",
29
- "arguments"
30
- ],
31
- "additionalProperties": false
32
- },
33
- "ActionArguments": {
34
- "type": "object",
35
- "properties": {
36
- "id": {
37
- "type": "string"
38
- },
39
- "required": {
40
- "type": "boolean"
41
- },
42
- "type": {
43
- "$ref": "#/definitions/ActionArugmentType"
44
- },
45
- "default": {
46
- "type": "string"
47
- }
48
- },
49
- "required": [
50
- "id",
51
- "required",
52
- "type"
53
- ],
54
- "additionalProperties": false
55
- },
56
- "ActionArugmentType": {
57
- "type": "string",
58
- "const": "TEXT"
59
- },
60
- "PostById_4_ReqSchema": {
61
- "type": "object",
62
- "properties": {}
63
- },
64
- "PostById_4_ResSchema": {
65
- "type": "object",
66
- "additionalProperties": false,
67
- "properties": {
68
- "status": {
69
- "$ref": "#/definitions/ActionReturnStatus"
70
- },
71
- "error": {
72
- "type": "string"
73
- },
74
- "data": {
75
- "type": "object"
76
- }
77
- },
78
- "required": [
79
- "status"
80
- ]
81
- },
82
- "ActionReturnStatus": {
83
- "type": "string",
84
- "enum": [
85
- "SUCCESS",
86
- "ERROR"
87
- ]
88
- }
89
- }
90
- }
@@ -1,8 +0,0 @@
1
- import { ActionView, ActionArgumentsValues, ActionResponse } from "../../src/schemas/Action";
2
-
3
- // Generated Wed Jan 19 2022 17:16:23 GMT+0100 (Central European Standard Time)
4
- export interface Get_4_ResSchema extends Array<ActionView> {}
5
-
6
- export interface PostById_4_ReqSchema extends ActionArgumentsValues {}
7
-
8
- export interface PostById_4_ResSchema extends ActionResponse {}
package/.flink/start.ts DELETED
@@ -1,4 +0,0 @@
1
- // Generated Wed Jan 19 2022 17:16:23 GMT+0100 (Central European Standard Time)
2
- import "./generatedHandlers";
3
- import "./generatedRepos";
4
- import "../src/index";
@@ -1 +0,0 @@
1
- export declare const handlers: never[];
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.handlers = void 0;
4
- // Generated Wed Jan 19 2022 17:16:22 GMT+0100 (Central European Standard Time)
5
- var flink_1 = require("@flink-app/flink");
6
- exports.handlers = [];
7
- flink_1.autoRegisteredHandlers.push.apply(flink_1.autoRegisteredHandlers, exports.handlers);
@@ -1 +0,0 @@
1
- export declare const repos: never[];
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.repos = void 0;
4
- // Generated Wed Jan 19 2022 17:16:22 GMT+0100 (Central European Standard Time)
5
- var flink_1 = require("@flink-app/flink");
6
- exports.repos = [];
7
- flink_1.autoRegisteredRepos.push.apply(flink_1.autoRegisteredRepos, exports.repos);
@@ -1,7 +0,0 @@
1
- import { ActionView, ActionArgumentsValues, ActionResponse } from "../../src/schemas/Action";
2
- export interface Get_4_ResSchema extends Array<ActionView> {
3
- }
4
- export interface PostById_4_ReqSchema extends ActionArgumentsValues {
5
- }
6
- export interface PostById_4_ResSchema extends ActionResponse {
7
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,90 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/draft-07/schema#",
3
- "$ref": "#/definitions/Schemas",
4
- "definitions": {
5
- "Get_4_ResSchema": {
6
- "type": "array",
7
- "items": {
8
- "$ref": "#/definitions/ActionView"
9
- }
10
- },
11
- "ActionView": {
12
- "type": "object",
13
- "properties": {
14
- "id": {
15
- "type": "string"
16
- },
17
- "description": {
18
- "type": "string"
19
- },
20
- "arguments": {
21
- "type": "array",
22
- "items": {
23
- "$ref": "#/definitions/ActionArguments"
24
- }
25
- }
26
- },
27
- "required": [
28
- "id",
29
- "arguments"
30
- ],
31
- "additionalProperties": false
32
- },
33
- "ActionArguments": {
34
- "type": "object",
35
- "properties": {
36
- "id": {
37
- "type": "string"
38
- },
39
- "required": {
40
- "type": "boolean"
41
- },
42
- "type": {
43
- "$ref": "#/definitions/ActionArugmentType"
44
- },
45
- "default": {
46
- "type": "string"
47
- }
48
- },
49
- "required": [
50
- "id",
51
- "required",
52
- "type"
53
- ],
54
- "additionalProperties": false
55
- },
56
- "ActionArugmentType": {
57
- "type": "string",
58
- "const": "TEXT"
59
- },
60
- "PostById_4_ReqSchema": {
61
- "type": "object",
62
- "properties": {}
63
- },
64
- "PostById_4_ResSchema": {
65
- "type": "object",
66
- "additionalProperties": false,
67
- "properties": {
68
- "status": {
69
- "$ref": "#/definitions/ActionReturnStatus"
70
- },
71
- "error": {
72
- "type": "string"
73
- },
74
- "data": {
75
- "type": "object"
76
- }
77
- },
78
- "required": [
79
- "status"
80
- ]
81
- },
82
- "ActionReturnStatus": {
83
- "type": "string",
84
- "enum": [
85
- "SUCCESS",
86
- "ERROR"
87
- ]
88
- }
89
- }
90
- }
@@ -1,3 +0,0 @@
1
- import "./generatedHandlers";
2
- import "./generatedRepos";
3
- import "../src/index";
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // Generated Wed Jan 19 2022 17:16:23 GMT+0100 (Central European Standard Time)
4
- require("./generatedHandlers");
5
- require("./generatedRepos");
6
- require("../src/index");
@@ -1,6 +0,0 @@
1
- import { FlinkContext, Handler } from "@flink-app/flink";
2
- import { ActionView } from "../schemas/Action";
3
- declare const getHandler: Handler<FlinkContext, any, ActionView[]>;
4
- export default getHandler;
5
- export declare const __assumedHttpMethod = "get", __file = "Get.ts", __query: never[], __params: never[];
6
- export declare const __schemas: any;
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
40
- var getHandler = function (_a) {
41
- var ctx = _a.ctx, req = _a.req, origin = _a.origin;
42
- return __awaiter(void 0, void 0, void 0, function () {
43
- var modules, module, actions, data;
44
- var _b, _c;
45
- return __generator(this, function (_d) {
46
- modules = ctx.plugins.managementApi.moduleList.modules;
47
- module = modules.find(function (p) { return p.id == origin; });
48
- if (((_b = module.data) === null || _b === void 0 ? void 0 : _b.actions) == null) {
49
- return [2 /*return*/, {
50
- data: [],
51
- status: 200,
52
- }];
53
- }
54
- actions = (_c = module.data) === null || _c === void 0 ? void 0 : _c.actions;
55
- data = actions.map(function (a) {
56
- var av = {
57
- id: a.id,
58
- description: a.description,
59
- arguments: a.arguments,
60
- };
61
- return av;
62
- });
63
- return [2 /*return*/, {
64
- data: data,
65
- status: 200,
66
- }];
67
- });
68
- });
69
- };
70
- exports.default = getHandler;
71
- exports.__assumedHttpMethod = "get", exports.__file = "Get.ts", exports.__query = [], exports.__params = [];
72
- exports.__schemas = { reqSchema: undefined, resSchema: { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "description": { "type": "string" }, "arguments": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "required": { "type": "boolean" }, "type": { "type": "string", "const": "TEXT" }, "default": { "type": "string" } }, "required": ["id", "required", "type"], "additionalProperties": false } } }, "required": ["id", "arguments"], "additionalProperties": false } } };
@@ -1,6 +0,0 @@
1
- import { FlinkContext, Handler } from "@flink-app/flink";
2
- import { ActionArgumentsValues, ActionResponse } from "../schemas/Action";
3
- declare const postHandler: Handler<FlinkContext, ActionArgumentsValues, ActionResponse>;
4
- export default postHandler;
5
- export declare const __assumedHttpMethod = "post", __file = "PostById.ts", __query: never[], __params: never[];
6
- export declare const __schemas: any;
@@ -1,96 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __generator = (this && this.__generator) || function (thisArg, body) {
12
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
- function verb(n) { return function (v) { return step([n, v]); }; }
15
- function step(op) {
16
- if (f) throw new TypeError("Generator is already executing.");
17
- while (_) try {
18
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
19
- if (y = 0, t) op = [op[0] & 2, t.value];
20
- switch (op[0]) {
21
- case 0: case 1: t = op; break;
22
- case 4: _.label++; return { value: op[1], done: false };
23
- case 5: _.label++; y = op[1]; op = [0]; continue;
24
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
- default:
26
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
- if (t[2]) _.ops.pop();
31
- _.trys.pop(); continue;
32
- }
33
- op = body.call(thisArg, _);
34
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
- }
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.__schemas = exports.__params = exports.__query = exports.__file = exports.__assumedHttpMethod = void 0;
40
- var flink_1 = require("@flink-app/flink");
41
- var Action_1 = require("../schemas/Action");
42
- var postHandler = function (_a) {
43
- var ctx = _a.ctx, req = _a.req, origin = _a.origin;
44
- return __awaiter(void 0, void 0, void 0, function () {
45
- var modules, module, actions, action, i, arg, resp, ex_1;
46
- var _b;
47
- return __generator(this, function (_c) {
48
- switch (_c.label) {
49
- case 0:
50
- modules = ctx.plugins.managementApi.moduleList.modules;
51
- module = modules.find(function (p) { return p.id == origin; });
52
- if (((_b = module.data) === null || _b === void 0 ? void 0 : _b.actions) == null) {
53
- return [2 /*return*/, flink_1.notFound("Action not found")];
54
- }
55
- actions = module.data.actions;
56
- action = actions.find(function (a) { return a.id == req.params.actionId; });
57
- if (action == null) {
58
- return [2 /*return*/, flink_1.notFound("Action not found")];
59
- }
60
- for (i in action.arguments) {
61
- arg = action.arguments[i];
62
- if (arg.required) {
63
- if (req.body[arg.id] == null) {
64
- return [2 /*return*/, flink_1.badRequest(arg.id + " is missing ")];
65
- }
66
- }
67
- }
68
- _c.label = 1;
69
- case 1:
70
- _c.trys.push([1, 3, , 4]);
71
- return [4 /*yield*/, action.handler(ctx, req.body)];
72
- case 2:
73
- resp = _c.sent();
74
- if (resp.status == Action_1.ActionReturnStatus.success) {
75
- return [2 /*return*/, {
76
- data: resp,
77
- status: 200,
78
- }];
79
- }
80
- else {
81
- return [2 /*return*/, flink_1.internalServerError(resp.error)];
82
- }
83
- return [3 /*break*/, 4];
84
- case 3:
85
- ex_1 = _c.sent();
86
- console.log("EXCEPTIOIN managementActionsPlugin:");
87
- console.log(ex_1);
88
- return [2 /*return*/, flink_1.internalServerError()];
89
- case 4: return [2 /*return*/];
90
- }
91
- });
92
- });
93
- };
94
- exports.default = postHandler;
95
- exports.__assumedHttpMethod = "post", exports.__file = "PostById.ts", exports.__query = [], exports.__params = [];
96
- exports.__schemas = { reqSchema: { "type": "object", "properties": {} }, resSchema: { "type": "object", "additionalProperties": false, "properties": { "status": { "type": "string", "enum": ["SUCCESS", "ERROR"] }, "error": { "type": "string" }, "data": { "type": "object" } }, "required": ["status"] } };
@@ -1,11 +0,0 @@
1
- import { ManagementApiModule } from "@flink-app/management-api-plugin";
2
- import { Action } from "./schemas/Action";
3
- export interface GetManagementModuleConfig {
4
- pluginId?: string;
5
- ui: boolean;
6
- uiSettings?: {
7
- title: string;
8
- };
9
- actions: Action[];
10
- }
11
- export declare const GetManagementModule: (config: GetManagementModuleConfig) => ManagementApiModule;
package/dist/src/index.js DELETED
@@ -1,65 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.GetManagementModule = void 0;
23
- var management_api_plugin_1 = require("@flink-app/management-api-plugin");
24
- var flink_1 = require("@flink-app/flink");
25
- var postHandler = __importStar(require("./handlers/PostById"));
26
- var getHandler = __importStar(require("./handlers/Get"));
27
- var GetManagementModule = function (config) {
28
- var _a;
29
- if (config.pluginId == null)
30
- config.pluginId = "managementActionsApi";
31
- var endpoints = [];
32
- endpoints.push({
33
- routeProps: {
34
- path: "/:actionId",
35
- method: flink_1.HttpMethod.post,
36
- origin: config.pluginId,
37
- },
38
- handler: postHandler,
39
- });
40
- endpoints.push({
41
- routeProps: {
42
- path: "",
43
- method: flink_1.HttpMethod.get,
44
- origin: config.pluginId,
45
- },
46
- handler: getHandler,
47
- });
48
- var features = [];
49
- var module = {
50
- id: config.pluginId || "action",
51
- uiSettings: {
52
- title: ((_a = config.uiSettings) === null || _a === void 0 ? void 0 : _a.title) || "Actions",
53
- icon: "",
54
- features: features,
55
- },
56
- ui: config.ui,
57
- type: management_api_plugin_1.ManagementApiType.action,
58
- endpoints: endpoints,
59
- data: {
60
- actions: config.actions,
61
- },
62
- };
63
- return module;
64
- };
65
- exports.GetManagementModule = GetManagementModule;
@@ -1,35 +0,0 @@
1
- import { FlinkContext } from "@flink-app/flink";
2
- export interface Action {
3
- id: string;
4
- description?: string;
5
- arguments: ActionArguments[];
6
- handler(ctx: FlinkContext<any>, args: ActionArgumentsValues): Promise<ActionResponse>;
7
- }
8
- export interface ActionArgumentsValues {
9
- [key: string]: any;
10
- }
11
- export interface ActionResponse {
12
- status: ActionReturnStatus;
13
- error?: string;
14
- data?: {
15
- [key: string]: any;
16
- };
17
- }
18
- export declare enum ActionReturnStatus {
19
- success = "SUCCESS",
20
- error = "ERROR"
21
- }
22
- export interface ActionArguments {
23
- id: string;
24
- required: boolean;
25
- type: ActionArugmentType;
26
- default?: string;
27
- }
28
- export declare enum ActionArugmentType {
29
- text = "TEXT"
30
- }
31
- export interface ActionView {
32
- id: string;
33
- description?: string;
34
- arguments: ActionArguments[];
35
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionArugmentType = exports.ActionReturnStatus = void 0;
4
- var ActionReturnStatus;
5
- (function (ActionReturnStatus) {
6
- ActionReturnStatus["success"] = "SUCCESS";
7
- ActionReturnStatus["error"] = "ERROR";
8
- })(ActionReturnStatus = exports.ActionReturnStatus || (exports.ActionReturnStatus = {}));
9
- var ActionArugmentType;
10
- (function (ActionArugmentType) {
11
- ActionArugmentType["text"] = "TEXT";
12
- })(ActionArugmentType = exports.ActionArugmentType || (exports.ActionArugmentType = {}));
@@ -1,3 +0,0 @@
1
- export interface PostReq {
2
- [key: string]: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- export interface PostRes {
2
- status: ManagementActionStatus;
3
- errror?: {
4
- code?: number;
5
- message: string;
6
- };
7
- data?: {
8
- [key: string]: string;
9
- };
10
- }
11
- export declare enum ManagementActionStatus {
12
- success = 1,
13
- error = 10
14
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ManagementActionStatus = void 0;
4
- var ManagementActionStatus;
5
- (function (ManagementActionStatus) {
6
- ManagementActionStatus[ManagementActionStatus["success"] = 1] = "success";
7
- ManagementActionStatus[ManagementActionStatus["error"] = 10] = "error";
8
- })(ManagementActionStatus = exports.ManagementActionStatus || (exports.ManagementActionStatus = {}));