@pxp-nd/flow 1.0.62 → 1.0.64

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.
Files changed (109) hide show
  1. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/README.md +1 -0
  2. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Action.d.ts +20 -0
  3. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Action.js +82 -0
  4. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/ActionType.d.ts +17 -0
  5. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/ActionType.js +28 -0
  6. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Event.d.ts +17 -0
  7. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Event.js +28 -0
  8. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/FieldMap.d.ts +17 -0
  9. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/FieldMap.js +28 -0
  10. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Flow.d.ts +24 -0
  11. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Flow.js +116 -0
  12. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/FlowInstance.d.ts +20 -0
  13. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/FlowInstance.js +78 -0
  14. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Node.d.ts +23 -0
  15. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/Node.js +273 -0
  16. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/NodeInstance.d.ts +21 -0
  17. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/NodeInstance.js +165 -0
  18. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/OriginName.d.ts +17 -0
  19. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/OriginName.js +28 -0
  20. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/index.d.ts +11 -0
  21. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/controllers/index.js +25 -0
  22. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Action.d.ts +20 -0
  23. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Action.js +85 -0
  24. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/ActionType.d.ts +16 -0
  25. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/ActionType.js +71 -0
  26. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Event.d.ts +9 -0
  27. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Event.js +44 -0
  28. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/FieldMap.d.ts +11 -0
  29. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/FieldMap.js +52 -0
  30. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Flow.d.ts +14 -0
  31. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Flow.js +60 -0
  32. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/FlowInstance.d.ts +16 -0
  33. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/FlowInstance.js +69 -0
  34. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Node.d.ts +23 -0
  35. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/Node.js +93 -0
  36. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/NodeConnection.d.ts +10 -0
  37. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/NodeConnection.js +49 -0
  38. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/NodeInstance.d.ts +13 -0
  39. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/NodeInstance.js +58 -0
  40. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/OriginName.d.ts +9 -0
  41. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/OriginName.js +43 -0
  42. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/index.d.ts +23 -0
  43. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/entity/index.js +27 -0
  44. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/index.d.ts +3 -0
  45. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/index.js +15 -0
  46. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/subscribers/Event.d.ts +21 -0
  47. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/subscribers/Event.js +83 -0
  48. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/subscribers/index.d.ts +3 -0
  49. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/dist/subscribers/index.js +6 -0
  50. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/package.json +39 -0
  51. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/tsconfig.json +29 -0
  52. package/.yalc/@pxp-nd/flow/.yalc/@pxp-nd/flow/yalc.sig +1 -0
  53. package/.yalc/@pxp-nd/flow/README.md +1 -0
  54. package/.yalc/@pxp-nd/flow/dist/controllers/Action.d.ts +20 -0
  55. package/.yalc/@pxp-nd/flow/dist/controllers/Action.js +82 -0
  56. package/.yalc/@pxp-nd/flow/dist/controllers/ActionType.d.ts +17 -0
  57. package/.yalc/@pxp-nd/flow/dist/controllers/ActionType.js +28 -0
  58. package/.yalc/@pxp-nd/flow/dist/controllers/Event.d.ts +17 -0
  59. package/.yalc/@pxp-nd/flow/dist/controllers/Event.js +28 -0
  60. package/.yalc/@pxp-nd/flow/dist/controllers/FieldMap.d.ts +17 -0
  61. package/.yalc/@pxp-nd/flow/dist/controllers/FieldMap.js +28 -0
  62. package/.yalc/@pxp-nd/flow/dist/controllers/Flow.d.ts +33 -0
  63. package/.yalc/@pxp-nd/flow/dist/controllers/Flow.js +469 -0
  64. package/.yalc/@pxp-nd/flow/dist/controllers/FlowInstance.d.ts +20 -0
  65. package/.yalc/@pxp-nd/flow/dist/controllers/FlowInstance.js +84 -0
  66. package/.yalc/@pxp-nd/flow/dist/controllers/Node.d.ts +23 -0
  67. package/.yalc/@pxp-nd/flow/dist/controllers/Node.js +273 -0
  68. package/.yalc/@pxp-nd/flow/dist/controllers/NodeInstance.d.ts +21 -0
  69. package/.yalc/@pxp-nd/flow/dist/controllers/NodeInstance.js +191 -0
  70. package/.yalc/@pxp-nd/flow/dist/controllers/OriginName.d.ts +17 -0
  71. package/.yalc/@pxp-nd/flow/dist/controllers/OriginName.js +28 -0
  72. package/.yalc/@pxp-nd/flow/dist/controllers/index.d.ts +11 -0
  73. package/.yalc/@pxp-nd/flow/dist/controllers/index.js +25 -0
  74. package/.yalc/@pxp-nd/flow/dist/entity/Action.d.ts +20 -0
  75. package/.yalc/@pxp-nd/flow/dist/entity/Action.js +85 -0
  76. package/.yalc/@pxp-nd/flow/dist/entity/ActionType.d.ts +16 -0
  77. package/.yalc/@pxp-nd/flow/dist/entity/ActionType.js +71 -0
  78. package/.yalc/@pxp-nd/flow/dist/entity/Event.d.ts +9 -0
  79. package/.yalc/@pxp-nd/flow/dist/entity/Event.js +44 -0
  80. package/.yalc/@pxp-nd/flow/dist/entity/FieldMap.d.ts +11 -0
  81. package/.yalc/@pxp-nd/flow/dist/entity/FieldMap.js +52 -0
  82. package/.yalc/@pxp-nd/flow/dist/entity/Flow.d.ts +14 -0
  83. package/.yalc/@pxp-nd/flow/dist/entity/Flow.js +60 -0
  84. package/.yalc/@pxp-nd/flow/dist/entity/FlowInstance.d.ts +16 -0
  85. package/.yalc/@pxp-nd/flow/dist/entity/FlowInstance.js +69 -0
  86. package/.yalc/@pxp-nd/flow/dist/entity/Node.d.ts +23 -0
  87. package/.yalc/@pxp-nd/flow/dist/entity/Node.js +93 -0
  88. package/.yalc/@pxp-nd/flow/dist/entity/NodeConnection.d.ts +10 -0
  89. package/.yalc/@pxp-nd/flow/dist/entity/NodeConnection.js +49 -0
  90. package/.yalc/@pxp-nd/flow/dist/entity/NodeInstance.d.ts +13 -0
  91. package/.yalc/@pxp-nd/flow/dist/entity/NodeInstance.js +58 -0
  92. package/.yalc/@pxp-nd/flow/dist/entity/OriginName.d.ts +9 -0
  93. package/.yalc/@pxp-nd/flow/dist/entity/OriginName.js +43 -0
  94. package/.yalc/@pxp-nd/flow/dist/entity/index.d.ts +23 -0
  95. package/.yalc/@pxp-nd/flow/dist/entity/index.js +27 -0
  96. package/.yalc/@pxp-nd/flow/dist/index.d.ts +3 -0
  97. package/.yalc/@pxp-nd/flow/dist/index.js +19 -0
  98. package/.yalc/@pxp-nd/flow/dist/subscribers/Event.d.ts +21 -0
  99. package/.yalc/@pxp-nd/flow/dist/subscribers/Event.js +84 -0
  100. package/.yalc/@pxp-nd/flow/dist/subscribers/index.d.ts +3 -0
  101. package/.yalc/@pxp-nd/flow/dist/subscribers/index.js +6 -0
  102. package/.yalc/@pxp-nd/flow/package.json +39 -0
  103. package/.yalc/@pxp-nd/flow/tsconfig.json +29 -0
  104. package/.yalc/@pxp-nd/flow/yalc.lock +9 -0
  105. package/.yalc/@pxp-nd/flow/yalc.sig +1 -0
  106. package/dist/controllers/Flow.d.ts +2 -0
  107. package/dist/controllers/Flow.js +87 -0
  108. package/package.json +1 -2
  109. package/yalc.lock +9 -0
@@ -0,0 +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
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'action_id' }),
23
+ __metadata("design:type", Number)
24
+ ], Action.prototype, "actionId", void 0);
25
+ __decorate([
26
+ (0, 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
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 50 }),
31
+ __metadata("design:type", String)
32
+ ], Action.prototype, "code", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
35
+ __metadata("design:type", String)
36
+ ], Action.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'text' }),
39
+ __metadata("design:type", String)
40
+ ], Action.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: 'origin_name', type: 'varchar', length: 100 }),
43
+ __metadata("design:type", String)
44
+ ], Action.prototype, "originName", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ name: 'origin_key', type: 'varchar', length: 100 }),
47
+ __metadata("design:type", String)
48
+ ], Action.prototype, "originKey", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ name: 'controller_function', type: 'varchar', length: 100 }),
51
+ __metadata("design:type", String)
52
+ ], Action.prototype, "controllerFunction", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ name: 'config_json_template', type: 'text' }),
55
+ __metadata("design:type", String)
56
+ ], Action.prototype, "configJsonTemplate", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'event_config', type: 'text' }),
59
+ __metadata("design:type", String)
60
+ ], Action.prototype, "eventConfig", void 0);
61
+ __decorate([
62
+ (0, 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
+ (0, typeorm_1.Column)({ name: 'schema_json', type: 'text' }),
67
+ __metadata("design:type", String)
68
+ ], Action.prototype, "schemaJson", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ManyToOne)(() => ActionType_1.default, actionType => actionType.actions, { eager: true }),
71
+ (0, typeorm_1.JoinColumn)({ name: 'action_type_id' }),
72
+ __metadata("design:type", ActionType_1.default)
73
+ ], Action.prototype, "actionType", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.OneToMany)(() => Node_1.default, node => node.action),
76
+ __metadata("design:type", Array)
77
+ ], Action.prototype, "nodes", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.OneToMany)(() => Node_1.default, eventNode => eventNode.actionEvent),
80
+ __metadata("design:type", Array)
81
+ ], Action.prototype, "eventNodes", void 0);
82
+ Action = __decorate([
83
+ (0, typeorm_1.Entity)({ name: 'twf_action' })
84
+ ], Action);
85
+ exports.default = Action;
@@ -0,0 +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
+ }
@@ -0,0 +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
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'action_type_id' }),
22
+ __metadata("design:type", Number)
23
+ ], ActionType.prototype, "actionTypeId", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
26
+ __metadata("design:type", String)
27
+ ], ActionType.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
30
+ __metadata("design:type", String)
31
+ ], ActionType.prototype, "description", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'schema_json', type: 'text' }),
34
+ __metadata("design:type", String)
35
+ ], ActionType.prototype, "schemaJson", void 0);
36
+ __decorate([
37
+ (0, 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
+ (0, 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
+ (0, 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
+ (0, 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
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
54
+ __metadata("design:type", String)
55
+ ], ActionType.prototype, "controller", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ name: 'extra_schema_json', type: 'text' }),
58
+ __metadata("design:type", String)
59
+ ], ActionType.prototype, "extraSchemaJson", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ name: 'actions_json', type: 'text' }),
62
+ __metadata("design:type", String)
63
+ ], ActionType.prototype, "actionsJson", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.OneToMany)(() => Action_1.default, (action) => action.actionType),
66
+ __metadata("design:type", Array)
67
+ ], ActionType.prototype, "actions", void 0);
68
+ ActionType = __decorate([
69
+ (0, typeorm_1.Entity)({ name: 'twf_action_type' })
70
+ ], ActionType);
71
+ exports.default = ActionType;
@@ -0,0 +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
+ }
@@ -0,0 +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
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'event_id' }),
22
+ __metadata("design:type", Number)
23
+ ], Event.prototype, "eventId", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'action_id', type: 'int', nullable: false }),
26
+ __metadata("design:type", Number)
27
+ ], Event.prototype, "actionId", void 0);
28
+ __decorate([
29
+ (0, 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
+ (0, typeorm_1.Column)({ name: 'data_id', type: 'int', nullable: false }),
34
+ __metadata("design:type", Number)
35
+ ], Event.prototype, "dataId", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => Action_1.default, action => action.nodes),
38
+ (0, typeorm_1.JoinColumn)({ name: 'action_id' }),
39
+ __metadata("design:type", Action_1.default)
40
+ ], Event.prototype, "action", void 0);
41
+ Event = __decorate([
42
+ (0, typeorm_1.Entity)({ name: 'twf_event' })
43
+ ], Event);
44
+ exports.default = Event;
@@ -0,0 +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
+ }
@@ -0,0 +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
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'field_map_id' }),
22
+ __metadata("design:type", Number)
23
+ ], FieldMap.prototype, "fieldMapId", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
26
+ __metadata("design:type", String)
27
+ ], FieldMap.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
30
+ __metadata("design:type", String)
31
+ ], FieldMap.prototype, "alias", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
34
+ __metadata("design:type", String)
35
+ ], FieldMap.prototype, "type", void 0);
36
+ __decorate([
37
+ (0, 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
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
42
+ __metadata("design:type", String)
43
+ ], FieldMap.prototype, "description", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.ManyToOne)(() => OriginName_1.default, originName => originName.fields),
46
+ (0, typeorm_1.JoinColumn)({ name: 'origin_name_id' }),
47
+ __metadata("design:type", OriginName_1.default)
48
+ ], FieldMap.prototype, "originName", void 0);
49
+ FieldMap = __decorate([
50
+ (0, typeorm_1.Entity)({ name: 'twf_field_map' })
51
+ ], FieldMap);
52
+ exports.default = FieldMap;
@@ -0,0 +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
+ }
@@ -0,0 +1,60 @@
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 FlowInstance_1 = __importDefault(require("./FlowInstance"));
17
+ const Node_1 = __importDefault(require("./Node"));
18
+ const common_1 = require("@pxp-nd/common");
19
+ let Flow = class Flow extends common_1.PxpEntity {
20
+ };
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'flow_id' }),
23
+ __metadata("design:type", Number)
24
+ ], Flow.prototype, "flowId", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ name: 'vendor_id', type: 'int', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], Flow.prototype, "vendorId", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], Flow.prototype, "code", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
35
+ __metadata("design:type", String)
36
+ ], Flow.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ type: 'text', nullable: false }),
39
+ __metadata("design:type", String)
40
+ ], Flow.prototype, "description", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
43
+ __metadata("design:type", String)
44
+ ], Flow.prototype, "enabled", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 100 }),
47
+ __metadata("design:type", String)
48
+ ], Flow.prototype, "type", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.OneToMany)(() => FlowInstance_1.default, flowInstance => flowInstance.flow),
51
+ __metadata("design:type", Array)
52
+ ], Flow.prototype, "instances", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.OneToMany)(() => Node_1.default, node => node.flow),
55
+ __metadata("design:type", Array)
56
+ ], Flow.prototype, "nodes", void 0);
57
+ Flow = __decorate([
58
+ (0, typeorm_1.Entity)({ name: 'twf_flow' })
59
+ ], Flow);
60
+ exports.default = Flow;
@@ -0,0 +1,16 @@
1
+ import NodeInstance from './NodeInstance';
2
+ import Flow from './Flow';
3
+ import { PxpEntity } from '@pxp-nd/common';
4
+ export default class FlowInstance extends PxpEntity {
5
+ flowInstanceId: number;
6
+ flowId: number;
7
+ dataId: number;
8
+ actionId: number;
9
+ originName: string;
10
+ status: string;
11
+ originKey: string;
12
+ processNumber: string;
13
+ resultFromOrigen: string;
14
+ nodeInstances: NodeInstance[];
15
+ flow: Flow;
16
+ }
@@ -0,0 +1,69 @@
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 NodeInstance_1 = __importDefault(require("./NodeInstance"));
17
+ const Flow_1 = __importDefault(require("./Flow"));
18
+ const common_1 = require("@pxp-nd/common");
19
+ let FlowInstance = class FlowInstance extends common_1.PxpEntity {
20
+ };
21
+ __decorate([
22
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'flow_instance_id' }),
23
+ __metadata("design:type", Number)
24
+ ], FlowInstance.prototype, "flowInstanceId", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ name: 'flow_id', type: 'numeric', nullable: false }),
27
+ __metadata("design:type", Number)
28
+ ], FlowInstance.prototype, "flowId", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'data_id', type: 'numeric', nullable: false }),
31
+ __metadata("design:type", Number)
32
+ ], FlowInstance.prototype, "dataId", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ name: 'action_id', type: 'numeric', nullable: false }),
35
+ __metadata("design:type", Number)
36
+ ], FlowInstance.prototype, "actionId", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ name: 'origin_name', type: 'varchar', length: 100 }),
39
+ __metadata("design:type", String)
40
+ ], FlowInstance.prototype, "originName", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: 'status', type: 'varchar', length: 100 }),
43
+ __metadata("design:type", String)
44
+ ], FlowInstance.prototype, "status", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ name: 'origin_key', type: 'varchar', length: 100 }),
47
+ __metadata("design:type", String)
48
+ ], FlowInstance.prototype, "originKey", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ name: 'process_number', type: 'varchar', nullable: false, length: 50 }),
51
+ __metadata("design:type", String)
52
+ ], FlowInstance.prototype, "processNumber", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ name: 'result_from_origen', type: 'text', nullable: false }),
55
+ __metadata("design:type", String)
56
+ ], FlowInstance.prototype, "resultFromOrigen", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.OneToMany)(() => NodeInstance_1.default, (nodeInstance) => nodeInstance.flowInstance, { eager: true }),
59
+ __metadata("design:type", Array)
60
+ ], FlowInstance.prototype, "nodeInstances", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.ManyToOne)(() => Flow_1.default, flow => flow.instances),
63
+ (0, typeorm_1.JoinColumn)({ name: 'flow_id' }),
64
+ __metadata("design:type", Flow_1.default)
65
+ ], FlowInstance.prototype, "flow", void 0);
66
+ FlowInstance = __decorate([
67
+ (0, typeorm_1.Entity)({ name: 'twf_flow_instance' })
68
+ ], FlowInstance);
69
+ exports.default = FlowInstance;
@@ -0,0 +1,23 @@
1
+ import Action from './Action';
2
+ import NodeConnection from './NodeConnection';
3
+ import NodeInstance from './NodeInstance';
4
+ import Flow from './Flow';
5
+ import { PxpEntity } from '@pxp-nd/common';
6
+ export default class Node extends PxpEntity {
7
+ nodeId: number;
8
+ flowId: number;
9
+ actionId: number;
10
+ isInit: string;
11
+ statusEvent: string;
12
+ isEnd: string;
13
+ actionConfigJson: string;
14
+ approvalConfig: string;
15
+ typeDelay: string;
16
+ delay: number;
17
+ flow: Flow;
18
+ action: Action;
19
+ actionEvent: Action;
20
+ masterConnections: NodeConnection[];
21
+ childConnections: NodeConnection[];
22
+ nodeInstances: NodeInstance[];
23
+ }
@@ -0,0 +1,93 @@
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 NodeConnection_1 = __importDefault(require("./NodeConnection"));
18
+ const NodeInstance_1 = __importDefault(require("./NodeInstance"));
19
+ const Flow_1 = __importDefault(require("./Flow"));
20
+ const common_1 = require("@pxp-nd/common");
21
+ let Node = class Node extends common_1.PxpEntity {
22
+ };
23
+ __decorate([
24
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'node_id' }),
25
+ __metadata("design:type", Number)
26
+ ], Node.prototype, "nodeId", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ name: 'flow_id', type: 'numeric', nullable: false }),
29
+ __metadata("design:type", Number)
30
+ ], Node.prototype, "flowId", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ name: 'action_id', type: 'numeric', nullable: true }),
33
+ __metadata("design:type", Number)
34
+ ], Node.prototype, "actionId", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ name: 'is_init', type: 'varchar', nullable: false, length: 1 }),
37
+ __metadata("design:type", String)
38
+ ], Node.prototype, "isInit", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ name: 'status_event', type: 'varchar', length: 50 }),
41
+ __metadata("design:type", String)
42
+ ], Node.prototype, "statusEvent", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ name: 'is_end', type: 'varchar', nullable: false, length: 1 }),
45
+ __metadata("design:type", String)
46
+ ], Node.prototype, "isEnd", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ name: 'action_config_json', type: 'text' }),
49
+ __metadata("design:type", String)
50
+ ], Node.prototype, "actionConfigJson", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ name: 'approval_config', type: 'text' }),
53
+ __metadata("design:type", String)
54
+ ], Node.prototype, "approvalConfig", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)({ name: 'type_delay', type: 'varchar' }),
57
+ __metadata("design:type", String)
58
+ ], Node.prototype, "typeDelay", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)({ name: 'delay', type: 'numeric' }),
61
+ __metadata("design:type", Number)
62
+ ], Node.prototype, "delay", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.ManyToOne)(() => Flow_1.default, flow => flow.nodes),
65
+ (0, typeorm_1.JoinColumn)({ name: 'flow_id' }),
66
+ __metadata("design:type", Flow_1.default)
67
+ ], Node.prototype, "flow", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.ManyToOne)(() => Action_1.default, action => action.nodes, { eager: true }),
70
+ (0, typeorm_1.JoinColumn)({ name: 'action_id' }),
71
+ __metadata("design:type", Action_1.default)
72
+ ], Node.prototype, "action", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.ManyToOne)(() => Action_1.default, actionEvent => actionEvent.eventNodes),
75
+ (0, typeorm_1.JoinColumn)({ name: 'action_id_listening_event' }),
76
+ __metadata("design:type", Action_1.default)
77
+ ], Node.prototype, "actionEvent", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.OneToMany)(() => NodeConnection_1.default, nodeConnection => nodeConnection.masterNode),
80
+ __metadata("design:type", Array)
81
+ ], Node.prototype, "masterConnections", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.OneToMany)(() => NodeConnection_1.default, nodeConnection => nodeConnection.childNode),
84
+ __metadata("design:type", Array)
85
+ ], Node.prototype, "childConnections", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.OneToMany)(() => NodeInstance_1.default, (nodeInstance) => nodeInstance.node),
88
+ __metadata("design:type", Array)
89
+ ], Node.prototype, "nodeInstances", void 0);
90
+ Node = __decorate([
91
+ (0, typeorm_1.Entity)({ name: 'twf_node' })
92
+ ], Node);
93
+ exports.default = Node;
@@ -0,0 +1,10 @@
1
+ import Node from './Node';
2
+ import { PxpEntity } from '@pxp-nd/common';
3
+ export default class NodeConnection extends PxpEntity {
4
+ nodeConnectionId: number;
5
+ condition: string;
6
+ nodeIdMaster: number;
7
+ nodeIdChild: number;
8
+ masterNode: Node;
9
+ childNode: Node;
10
+ }
@@ -0,0 +1,49 @@
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 Node_1 = __importDefault(require("./Node"));
17
+ const common_1 = require("@pxp-nd/common");
18
+ let NodeConnection = class NodeConnection extends common_1.PxpEntity {
19
+ };
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'node_connection_id' }),
22
+ __metadata("design:type", Number)
23
+ ], NodeConnection.prototype, "nodeConnectionId", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ type: 'varchar', nullable: false, length: 200 }),
26
+ __metadata("design:type", String)
27
+ ], NodeConnection.prototype, "condition", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ name: 'node_id_master', type: 'int', nullable: false }),
30
+ __metadata("design:type", Number)
31
+ ], NodeConnection.prototype, "nodeIdMaster", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'node_id_child', type: 'int', nullable: false }),
34
+ __metadata("design:type", Number)
35
+ ], NodeConnection.prototype, "nodeIdChild", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => Node_1.default, node => node.masterConnections),
38
+ (0, typeorm_1.JoinColumn)({ name: 'node_id_master' }),
39
+ __metadata("design:type", Node_1.default)
40
+ ], NodeConnection.prototype, "masterNode", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => Node_1.default, node => node.childConnections),
43
+ (0, typeorm_1.JoinColumn)({ name: 'node_id_child' }),
44
+ __metadata("design:type", Node_1.default)
45
+ ], NodeConnection.prototype, "childNode", void 0);
46
+ NodeConnection = __decorate([
47
+ (0, typeorm_1.Entity)({ name: 'twf_node_connection' })
48
+ ], NodeConnection);
49
+ exports.default = NodeConnection;
@@ -0,0 +1,13 @@
1
+ import FlowInstance from './FlowInstance';
2
+ import Node from './Node';
3
+ import { PxpEntity } from '@pxp-nd/common';
4
+ export default class NodeInstance extends PxpEntity {
5
+ nodeInstanceId: number;
6
+ nodeId: number;
7
+ flowInstanceId: number;
8
+ runTime: Date;
9
+ schedule: Date;
10
+ status: string;
11
+ flowInstance: FlowInstance;
12
+ node: Node;
13
+ }