@pxp-nd/flow 1.1.3 → 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.
- package/dist/controllers/Flow.js +2 -6
- package/dist/entity/Flow.d.ts +0 -1
- package/dist/entity/Flow.js +1 -6
- package/package.json +1 -1
package/dist/controllers/Flow.js
CHANGED
|
@@ -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.
|
|
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) {
|
package/dist/entity/Flow.d.ts
CHANGED
package/dist/entity/Flow.js
CHANGED
|
@@ -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
|
-
|
|
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);
|