@pxp-nd/flow 1.1.10 → 1.1.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.
@@ -101,7 +101,7 @@ let Flow = class Flow extends core_1.Controller {
101
101
  const { nodeConnectionId, nodeIdMaster, nodeIdChild, createdAt, modifiedAt, ...nodeConnectionToCopy } = connection;
102
102
  // get node from nodeIdChild
103
103
  const dataNodeChild = await Node_1.default.findOne({ nodeId: connection.nodeIdChild });
104
- const { nodeId: newNodeIdChild } = await this.copyNode(dataNodeChild, newFlowId, manager, isCopy);
104
+ const { nodeId: newNodeIdChild } = await this.copyNode(dataNodeChild, newFlowId, manager, false, isCopy);
105
105
  Object.assign(newNodeConnection, { ...nodeConnectionToCopy, nodeIdMaster: newNodeId, nodeIdChild: newNodeIdChild });
106
106
  const insertNewNodeConnection = await (0, core_1.__)(manager.save(NodeConnection_1.default, newNodeConnection));
107
107
  }
@@ -24,6 +24,7 @@ export default class ActionType extends PxpEntity {
24
24
  controller: string;
25
25
  extraSchemaJson: string;
26
26
  actionsJson: string;
27
+ onDuplicate: string;
27
28
  validationController: string;
28
29
  actions: Action[];
29
30
  }
@@ -73,6 +73,10 @@ __decorate([
73
73
  (0, typeorm_1.Column)({ name: 'actions_json', type: 'text' }),
74
74
  __metadata("design:type", String)
75
75
  ], ActionType.prototype, "actionsJson", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ name: 'on_duplicate', type: 'varchar' }),
78
+ __metadata("design:type", String)
79
+ ], ActionType.prototype, "onDuplicate", void 0);
76
80
  __decorate([
77
81
  (0, typeorm_1.Column)({ name: 'validation_controller', type: 'text' }),
78
82
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.1.10",
3
+ "version": "1.1.11",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",