@pxp-nd/flow 1.1.2 → 1.1.4

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.
@@ -326,29 +326,25 @@ let Flow = class Flow extends core_1.Controller {
326
326
  }
327
327
  }
328
328
  if (flowIdDel.action.actionType.name === 'CHAINED FLOW') {
329
- console.log('CHAINED');
330
329
  if (((_a = flowIdDel.action) === null || _a === void 0 ? void 0 : _a.configJsonTemplate) && flowIdDel.actionConfigJson) {
331
330
  try {
332
331
  const parsedConfig = JSON.parse(flowIdDel.action.configJsonTemplate);
333
332
  const parsedValues = JSON.parse(flowIdDel.actionConfigJson);
334
- console.log('parsedConfig', parsedConfig);
335
- console.log('parsedValues', parsedValues);
336
333
  if (parsedConfig.deleteController && parsedValues.flowId) {
337
334
  const params = {
338
335
  flowId: parsedValues.flowId,
339
336
  };
340
- console.log('params', params);
341
337
  const config = {
342
338
  method: "post",
343
- url: `http://localhost:${process.env.PORT}/api/${parsedConfig.addController}`,
339
+ url: `http://localhost:${process.env.PORT}/api/${parsedConfig.deleteController}`,
344
340
  headers: {
345
341
  Authorization: "" + process.env.TOKEN_PXP_ND + "",
346
342
  "Content-Type": "application/json",
347
343
  },
348
344
  data: params,
349
345
  };
350
- console.log('config', config);
351
346
  const resControllerAxios = await (0, axios_1.default)(config);
347
+ console.log('resControllerAxios.data', resControllerAxios.data);
352
348
  }
353
349
  }
354
350
  catch (error) {
@@ -17,5 +17,4 @@ export default class Flow extends PxpEntity {
17
17
  modifiedBy: string;
18
18
  templateType: string;
19
19
  flowType: string;
20
- isActiveFlow: number;
21
20
  }
@@ -25,8 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
25
25
  * 04-Sep-2023 SP08SEP23 Rensi Arteaga add modified at and by
26
26
  * 06-Dec-2024 8001237262 Mercedes Zambrana add flow_type
27
27
  * 31-Jan-2025 8035304698 Mercedes Zambrana Change code to string
28
- * 11-Feb-2025 8353091310 Merecedes Zambrana Add isActive
29
- ****************************************************************************/
28
+ ****************************************************************************/
30
29
  const typeorm_1 = require("typeorm");
31
30
  const FlowInstance_1 = __importDefault(require("./FlowInstance"));
32
31
  const Node_1 = __importDefault(require("./Node"));
@@ -93,10 +92,6 @@ __decorate([
93
92
  (0, typeorm_1.Column)({ name: 'flow_type', type: 'varchar', nullable: true, length: 100 }),
94
93
  __metadata("design:type", String)
95
94
  ], Flow.prototype, "flowType", void 0);
96
- __decorate([
97
- (0, typeorm_1.Column)({ name: 'is_active', type: 'int', nullable: false }),
98
- __metadata("design:type", Number)
99
- ], Flow.prototype, "isActiveFlow", void 0);
100
95
  Flow = __decorate([
101
96
  (0, typeorm_1.Entity)({ name: 'twf_flow' })
102
97
  ], Flow);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pxp-nd/flow",
3
- "version": "1.1.02",
3
+ "version": "1.1.04",
4
4
  "description": "Workflow module for pxp-nd framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",