@pxp-nd/flow 1.0.24 → 1.0.26
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/README.md +1 -1
- package/dist/controllers/Action.d.ts +20 -20
- package/dist/controllers/Action.js +82 -82
- package/dist/controllers/ActionType.d.ts +17 -17
- package/dist/controllers/ActionType.js +28 -28
- package/dist/controllers/Event.d.ts +17 -17
- package/dist/controllers/Event.js +28 -28
- package/dist/controllers/FieldMap.d.ts +17 -17
- package/dist/controllers/FieldMap.js +28 -28
- package/dist/controllers/Flow.d.ts +24 -24
- package/dist/controllers/Flow.js +116 -102
- package/dist/controllers/FlowInstance.d.ts +20 -20
- package/dist/controllers/FlowInstance.js +78 -78
- package/dist/controllers/Node.d.ts +23 -23
- package/dist/controllers/Node.js +273 -241
- package/dist/controllers/NodeInstance.d.ts +21 -21
- package/dist/controllers/NodeInstance.js +165 -165
- package/dist/controllers/OriginName.d.ts +17 -17
- package/dist/controllers/OriginName.js +28 -28
- package/dist/controllers/index.d.ts +11 -11
- package/dist/controllers/index.js +25 -25
- package/dist/entity/Action.d.ts +20 -20
- package/dist/entity/Action.js +85 -85
- package/dist/entity/ActionType.d.ts +16 -16
- package/dist/entity/ActionType.js +71 -71
- package/dist/entity/Event.d.ts +9 -9
- package/dist/entity/Event.js +44 -44
- package/dist/entity/FieldMap.d.ts +11 -11
- package/dist/entity/FieldMap.js +52 -52
- package/dist/entity/Flow.d.ts +14 -14
- package/dist/entity/Flow.js +60 -60
- package/dist/entity/FlowInstance.d.ts +16 -16
- package/dist/entity/FlowInstance.js +69 -69
- package/dist/entity/Node.d.ts +23 -23
- package/dist/entity/Node.js +93 -93
- package/dist/entity/NodeConnection.d.ts +10 -10
- package/dist/entity/NodeConnection.js +49 -49
- package/dist/entity/NodeInstance.d.ts +13 -13
- package/dist/entity/NodeInstance.js +58 -58
- package/dist/entity/OriginName.d.ts +9 -9
- package/dist/entity/OriginName.js +43 -43
- package/dist/entity/index.d.ts +23 -23
- package/dist/entity/index.js +27 -27
- package/dist/index.d.ts +3 -3
- package/dist/index.js +15 -15
- package/dist/subscribers/Event.d.ts +21 -21
- package/dist/subscribers/Event.js +83 -83
- package/dist/subscribers/index.d.ts +3 -3
- package/dist/subscribers/index.js +6 -6
- package/package.json +45 -45
- package/tsconfig.json +29 -29
package/dist/entity/Action.js
CHANGED
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const ActionType_1 = __importDefault(require("./ActionType"));
|
|
17
|
-
const Node_1 = __importDefault(require("./Node"));
|
|
18
|
-
const common_1 = require("@pxp-nd/common");
|
|
19
|
-
let Action = class Action extends common_1.PxpEntity {
|
|
20
|
-
};
|
|
21
|
-
__decorate([
|
|
22
|
-
typeorm_1.PrimaryGeneratedColumn({ name: 'action_id' }),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], Action.prototype, "actionId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
typeorm_1.Column({ name: 'action_type_id', type: 'numeric', nullable: true }),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], Action.prototype, "actionTypeId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 50 }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], Action.prototype, "code", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], Action.prototype, "name", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
typeorm_1.Column({ type: 'text' }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], Action.prototype, "description", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
typeorm_1.Column({ name: 'origin_name', type: 'varchar', length: 100 }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], Action.prototype, "originName", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
typeorm_1.Column({ name: 'origin_key', type: 'varchar', length: 100 }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], Action.prototype, "originKey", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
typeorm_1.Column({ name: 'controller_function', type: 'varchar', length: 100 }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], Action.prototype, "controllerFunction", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
typeorm_1.Column({ name: 'config_json_template', type: 'text' }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], Action.prototype, "configJsonTemplate", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
typeorm_1.Column({ name: 'event_config', type: 'text' }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], Action.prototype, "eventConfig", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], Action.prototype, "hidden", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
typeorm_1.Column({ name: 'schema_json', type: 'text' }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], Action.prototype, "schemaJson", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
typeorm_1.ManyToOne(() => ActionType_1.default, actionType => actionType.actions, { eager: true }),
|
|
71
|
-
typeorm_1.JoinColumn({ name: 'action_type_id' }),
|
|
72
|
-
__metadata("design:type", ActionType_1.default)
|
|
73
|
-
], Action.prototype, "actionType", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
typeorm_1.OneToMany(() => Node_1.default, node => node.action),
|
|
76
|
-
__metadata("design:type", Array)
|
|
77
|
-
], Action.prototype, "nodes", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
typeorm_1.OneToMany(() => Node_1.default, eventNode => eventNode.actionEvent),
|
|
80
|
-
__metadata("design:type", Array)
|
|
81
|
-
], Action.prototype, "eventNodes", void 0);
|
|
82
|
-
Action = __decorate([
|
|
83
|
-
typeorm_1.Entity({ name: 'twf_action' })
|
|
84
|
-
], Action);
|
|
85
|
-
exports.default = Action;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const ActionType_1 = __importDefault(require("./ActionType"));
|
|
17
|
+
const Node_1 = __importDefault(require("./Node"));
|
|
18
|
+
const common_1 = require("@pxp-nd/common");
|
|
19
|
+
let Action = class Action extends common_1.PxpEntity {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
typeorm_1.PrimaryGeneratedColumn({ name: 'action_id' }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], Action.prototype, "actionId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
typeorm_1.Column({ name: 'action_type_id', type: 'numeric', nullable: true }),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], Action.prototype, "actionTypeId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 50 }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Action.prototype, "code", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], Action.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
typeorm_1.Column({ type: 'text' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Action.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
typeorm_1.Column({ name: 'origin_name', type: 'varchar', length: 100 }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], Action.prototype, "originName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
typeorm_1.Column({ name: 'origin_key', type: 'varchar', length: 100 }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Action.prototype, "originKey", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
typeorm_1.Column({ name: 'controller_function', type: 'varchar', length: 100 }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], Action.prototype, "controllerFunction", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
typeorm_1.Column({ name: 'config_json_template', type: 'text' }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Action.prototype, "configJsonTemplate", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
typeorm_1.Column({ name: 'event_config', type: 'text' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Action.prototype, "eventConfig", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Action.prototype, "hidden", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
typeorm_1.Column({ name: 'schema_json', type: 'text' }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Action.prototype, "schemaJson", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
typeorm_1.ManyToOne(() => ActionType_1.default, actionType => actionType.actions, { eager: true }),
|
|
71
|
+
typeorm_1.JoinColumn({ name: 'action_type_id' }),
|
|
72
|
+
__metadata("design:type", ActionType_1.default)
|
|
73
|
+
], Action.prototype, "actionType", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
typeorm_1.OneToMany(() => Node_1.default, node => node.action),
|
|
76
|
+
__metadata("design:type", Array)
|
|
77
|
+
], Action.prototype, "nodes", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
typeorm_1.OneToMany(() => Node_1.default, eventNode => eventNode.actionEvent),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], Action.prototype, "eventNodes", void 0);
|
|
82
|
+
Action = __decorate([
|
|
83
|
+
typeorm_1.Entity({ name: 'twf_action' })
|
|
84
|
+
], Action);
|
|
85
|
+
exports.default = Action;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import Action from './Action';
|
|
2
|
-
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
-
export default class ActionType extends PxpEntity {
|
|
4
|
-
actionTypeId: number;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
schemaJson: string;
|
|
8
|
-
isStart: string;
|
|
9
|
-
isDelay: string;
|
|
10
|
-
haveCondition: string;
|
|
11
|
-
hidden: string;
|
|
12
|
-
controller: string;
|
|
13
|
-
extraSchemaJson: string;
|
|
14
|
-
actionsJson: string;
|
|
15
|
-
actions: Action[];
|
|
16
|
-
}
|
|
1
|
+
import Action from './Action';
|
|
2
|
+
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
+
export default class ActionType extends PxpEntity {
|
|
4
|
+
actionTypeId: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
schemaJson: string;
|
|
8
|
+
isStart: string;
|
|
9
|
+
isDelay: string;
|
|
10
|
+
haveCondition: string;
|
|
11
|
+
hidden: string;
|
|
12
|
+
controller: string;
|
|
13
|
+
extraSchemaJson: string;
|
|
14
|
+
actionsJson: string;
|
|
15
|
+
actions: Action[];
|
|
16
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const Action_1 = __importDefault(require("./Action"));
|
|
17
|
-
const common_1 = require("@pxp-nd/common");
|
|
18
|
-
let ActionType = class ActionType extends common_1.PxpEntity {
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
typeorm_1.PrimaryGeneratedColumn({ name: 'action_type_id' }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], ActionType.prototype, "actionTypeId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], ActionType.prototype, "name", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
typeorm_1.Column({ type: 'text', nullable: false }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], ActionType.prototype, "description", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
typeorm_1.Column({ name: 'schema_json', type: 'text' }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], ActionType.prototype, "schemaJson", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
typeorm_1.Column({ name: 'is_start', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], ActionType.prototype, "isStart", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
typeorm_1.Column({ name: 'is_delay', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], ActionType.prototype, "isDelay", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
typeorm_1.Column({ name: 'have_condition', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], ActionType.prototype, "haveCondition", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
typeorm_1.Column({ name: 'hidden', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], ActionType.prototype, "hidden", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
typeorm_1.Column({ type: 'varchar', length: 100 }),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], ActionType.prototype, "controller", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
typeorm_1.Column({ name: 'extra_schema_json', type: 'text' }),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], ActionType.prototype, "extraSchemaJson", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
typeorm_1.Column({ name: 'actions_json', type: 'text' }),
|
|
62
|
-
__metadata("design:type", String)
|
|
63
|
-
], ActionType.prototype, "actionsJson", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
typeorm_1.OneToMany(() => Action_1.default, (action) => action.actionType),
|
|
66
|
-
__metadata("design:type", Array)
|
|
67
|
-
], ActionType.prototype, "actions", void 0);
|
|
68
|
-
ActionType = __decorate([
|
|
69
|
-
typeorm_1.Entity({ name: 'twf_action_type' })
|
|
70
|
-
], ActionType);
|
|
71
|
-
exports.default = ActionType;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const Action_1 = __importDefault(require("./Action"));
|
|
17
|
+
const common_1 = require("@pxp-nd/common");
|
|
18
|
+
let ActionType = class ActionType extends common_1.PxpEntity {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn({ name: 'action_type_id' }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ActionType.prototype, "actionTypeId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ActionType.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column({ type: 'text', nullable: false }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ActionType.prototype, "description", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column({ name: 'schema_json', type: 'text' }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ActionType.prototype, "schemaJson", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column({ name: 'is_start', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ActionType.prototype, "isStart", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column({ name: 'is_delay', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], ActionType.prototype, "isDelay", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.Column({ name: 'have_condition', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], ActionType.prototype, "haveCondition", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
typeorm_1.Column({ name: 'hidden', type: 'varchar', nullable: false, length: 1, default: 'N' }),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], ActionType.prototype, "hidden", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
typeorm_1.Column({ type: 'varchar', length: 100 }),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], ActionType.prototype, "controller", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
typeorm_1.Column({ name: 'extra_schema_json', type: 'text' }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ActionType.prototype, "extraSchemaJson", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
typeorm_1.Column({ name: 'actions_json', type: 'text' }),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ActionType.prototype, "actionsJson", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
typeorm_1.OneToMany(() => Action_1.default, (action) => action.actionType),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], ActionType.prototype, "actions", void 0);
|
|
68
|
+
ActionType = __decorate([
|
|
69
|
+
typeorm_1.Entity({ name: 'twf_action_type' })
|
|
70
|
+
], ActionType);
|
|
71
|
+
exports.default = ActionType;
|
package/dist/entity/Event.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import Action from './Action';
|
|
2
|
-
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
-
export default class Event extends PxpEntity {
|
|
4
|
-
eventId: number;
|
|
5
|
-
actionId: number;
|
|
6
|
-
descJobName: string;
|
|
7
|
-
dataId: number;
|
|
8
|
-
action: Action;
|
|
9
|
-
}
|
|
1
|
+
import Action from './Action';
|
|
2
|
+
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
+
export default class Event extends PxpEntity {
|
|
4
|
+
eventId: number;
|
|
5
|
+
actionId: number;
|
|
6
|
+
descJobName: string;
|
|
7
|
+
dataId: number;
|
|
8
|
+
action: Action;
|
|
9
|
+
}
|
package/dist/entity/Event.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const Action_1 = __importDefault(require("./Action"));
|
|
17
|
-
const common_1 = require("@pxp-nd/common");
|
|
18
|
-
let Event = class Event extends common_1.PxpEntity {
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
typeorm_1.PrimaryGeneratedColumn({ name: 'event_id' }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], Event.prototype, "eventId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
typeorm_1.Column({ name: 'action_id', type: 'int', nullable: false }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], Event.prototype, "actionId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
typeorm_1.Column({ name: 'desc_job_name', type: 'varchar', nullable: false, length: 200 }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], Event.prototype, "descJobName", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
typeorm_1.Column({ name: 'data_id', type: 'int', nullable: false }),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], Event.prototype, "dataId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
typeorm_1.ManyToOne(() => Action_1.default, action => action.nodes),
|
|
38
|
-
typeorm_1.JoinColumn({ name: 'action_id' }),
|
|
39
|
-
__metadata("design:type", Action_1.default)
|
|
40
|
-
], Event.prototype, "action", void 0);
|
|
41
|
-
Event = __decorate([
|
|
42
|
-
typeorm_1.Entity({ name: 'twf_event' })
|
|
43
|
-
], Event);
|
|
44
|
-
exports.default = Event;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const Action_1 = __importDefault(require("./Action"));
|
|
17
|
+
const common_1 = require("@pxp-nd/common");
|
|
18
|
+
let Event = class Event extends common_1.PxpEntity {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn({ name: 'event_id' }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], Event.prototype, "eventId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.Column({ name: 'action_id', type: 'int', nullable: false }),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], Event.prototype, "actionId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column({ name: 'desc_job_name', type: 'varchar', nullable: false, length: 200 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], Event.prototype, "descJobName", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column({ name: 'data_id', type: 'int', nullable: false }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], Event.prototype, "dataId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.ManyToOne(() => Action_1.default, action => action.nodes),
|
|
38
|
+
typeorm_1.JoinColumn({ name: 'action_id' }),
|
|
39
|
+
__metadata("design:type", Action_1.default)
|
|
40
|
+
], Event.prototype, "action", void 0);
|
|
41
|
+
Event = __decorate([
|
|
42
|
+
typeorm_1.Entity({ name: 'twf_event' })
|
|
43
|
+
], Event);
|
|
44
|
+
exports.default = Event;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import OriginName from './OriginName';
|
|
2
|
-
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
-
export default class FieldMap extends PxpEntity {
|
|
4
|
-
fieldMapId: number;
|
|
5
|
-
name: string;
|
|
6
|
-
alias: string;
|
|
7
|
-
type: string;
|
|
8
|
-
originNameId: number;
|
|
9
|
-
description: string;
|
|
10
|
-
originName: OriginName;
|
|
11
|
-
}
|
|
1
|
+
import OriginName from './OriginName';
|
|
2
|
+
import { PxpEntity } from '@pxp-nd/common';
|
|
3
|
+
export default class FieldMap extends PxpEntity {
|
|
4
|
+
fieldMapId: number;
|
|
5
|
+
name: string;
|
|
6
|
+
alias: string;
|
|
7
|
+
type: string;
|
|
8
|
+
originNameId: number;
|
|
9
|
+
description: string;
|
|
10
|
+
originName: OriginName;
|
|
11
|
+
}
|
package/dist/entity/FieldMap.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const typeorm_1 = require("typeorm");
|
|
16
|
-
const OriginName_1 = __importDefault(require("./OriginName"));
|
|
17
|
-
const common_1 = require("@pxp-nd/common");
|
|
18
|
-
let FieldMap = class FieldMap extends common_1.PxpEntity {
|
|
19
|
-
};
|
|
20
|
-
__decorate([
|
|
21
|
-
typeorm_1.PrimaryGeneratedColumn({ name: 'field_map_id' }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], FieldMap.prototype, "fieldMapId", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], FieldMap.prototype, "name", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], FieldMap.prototype, "alias", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], FieldMap.prototype, "type", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
typeorm_1.Column({ name: 'origin_name_id', type: 'integer', nullable: false }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], FieldMap.prototype, "originNameId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
typeorm_1.Column({ type: 'text', nullable: false }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], FieldMap.prototype, "description", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
typeorm_1.ManyToOne(() => OriginName_1.default, originName => originName.fields),
|
|
46
|
-
typeorm_1.JoinColumn({ name: 'origin_name_id' }),
|
|
47
|
-
__metadata("design:type", OriginName_1.default)
|
|
48
|
-
], FieldMap.prototype, "originName", void 0);
|
|
49
|
-
FieldMap = __decorate([
|
|
50
|
-
typeorm_1.Entity({ name: 'twf_field_map' })
|
|
51
|
-
], FieldMap);
|
|
52
|
-
exports.default = FieldMap;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
const typeorm_1 = require("typeorm");
|
|
16
|
+
const OriginName_1 = __importDefault(require("./OriginName"));
|
|
17
|
+
const common_1 = require("@pxp-nd/common");
|
|
18
|
+
let FieldMap = class FieldMap extends common_1.PxpEntity {
|
|
19
|
+
};
|
|
20
|
+
__decorate([
|
|
21
|
+
typeorm_1.PrimaryGeneratedColumn({ name: 'field_map_id' }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], FieldMap.prototype, "fieldMapId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], FieldMap.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], FieldMap.prototype, "alias", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
typeorm_1.Column({ type: 'varchar', nullable: false, length: 100 }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], FieldMap.prototype, "type", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
typeorm_1.Column({ name: 'origin_name_id', type: 'integer', nullable: false }),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], FieldMap.prototype, "originNameId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
typeorm_1.Column({ type: 'text', nullable: false }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], FieldMap.prototype, "description", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
typeorm_1.ManyToOne(() => OriginName_1.default, originName => originName.fields),
|
|
46
|
+
typeorm_1.JoinColumn({ name: 'origin_name_id' }),
|
|
47
|
+
__metadata("design:type", OriginName_1.default)
|
|
48
|
+
], FieldMap.prototype, "originName", void 0);
|
|
49
|
+
FieldMap = __decorate([
|
|
50
|
+
typeorm_1.Entity({ name: 'twf_field_map' })
|
|
51
|
+
], FieldMap);
|
|
52
|
+
exports.default = FieldMap;
|
package/dist/entity/Flow.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import FlowInstance from './FlowInstance';
|
|
2
|
-
import Node from './Node';
|
|
3
|
-
import { PxpEntity } from '@pxp-nd/common';
|
|
4
|
-
export default class Flow extends PxpEntity {
|
|
5
|
-
flowId: number;
|
|
6
|
-
vendorId: number;
|
|
7
|
-
code: number;
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
enabled: string;
|
|
11
|
-
type: string;
|
|
12
|
-
instances: FlowInstance[];
|
|
13
|
-
nodes: Node[];
|
|
14
|
-
}
|
|
1
|
+
import FlowInstance from './FlowInstance';
|
|
2
|
+
import Node from './Node';
|
|
3
|
+
import { PxpEntity } from '@pxp-nd/common';
|
|
4
|
+
export default class Flow extends PxpEntity {
|
|
5
|
+
flowId: number;
|
|
6
|
+
vendorId: number;
|
|
7
|
+
code: number;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
enabled: string;
|
|
11
|
+
type: string;
|
|
12
|
+
instances: FlowInstance[];
|
|
13
|
+
nodes: Node[];
|
|
14
|
+
}
|