n8n 0.210.2 → 0.211.0
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/Db.d.ts +2 -1
- package/dist/Db.js +40 -46
- package/dist/Db.js.map +1 -1
- package/dist/PublicApi/v1/handlers/workflows/workflows.handler.js +5 -11
- package/dist/PublicApi/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/db/revert.js +9 -32
- package/dist/commands/db/revert.js.map +1 -1
- package/dist/commands/start.js +19 -18
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/webhook.js +19 -18
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.d.ts +0 -1
- package/dist/commands/worker.js +23 -15
- package/dist/commands/worker.js.map +1 -1
- package/dist/config/index.d.ts +0 -1
- package/dist/config/schema.d.ts +0 -6
- package/dist/config/schema.js +0 -6
- package/dist/config/schema.js.map +1 -1
- package/dist/databases/migrations/mysqldb/1673268682475-DeleteExecutionsWithWorkflows.d.ts +6 -0
- package/dist/databases/migrations/mysqldb/1673268682475-DeleteExecutionsWithWorkflows.js +37 -0
- package/dist/databases/migrations/mysqldb/1673268682475-DeleteExecutionsWithWorkflows.js.map +1 -0
- package/dist/databases/migrations/mysqldb/index.js +2 -0
- package/dist/databases/migrations/mysqldb/index.js.map +1 -1
- package/dist/databases/migrations/postgresdb/1673268682475-DeleteExecutionsWithWorkflows.d.ts +6 -0
- package/dist/databases/migrations/postgresdb/1673268682475-DeleteExecutionsWithWorkflows.js +41 -0
- package/dist/databases/migrations/postgresdb/1673268682475-DeleteExecutionsWithWorkflows.js.map +1 -0
- package/dist/databases/migrations/postgresdb/index.js +2 -0
- package/dist/databases/migrations/postgresdb/index.js.map +1 -1
- package/dist/databases/migrations/sqlite/1621707690587-AddWaitColumn.js +0 -2
- package/dist/databases/migrations/sqlite/1621707690587-AddWaitColumn.js.map +1 -1
- package/dist/databases/migrations/sqlite/1652367743993-AddUserSettings.js +0 -2
- package/dist/databases/migrations/sqlite/1652367743993-AddUserSettings.js.map +1 -1
- package/dist/databases/migrations/sqlite/1652905585850-AddAPIKeyColumn.js +0 -2
- package/dist/databases/migrations/sqlite/1652905585850-AddAPIKeyColumn.js.map +1 -1
- package/dist/databases/migrations/sqlite/1673268682475-DeleteExecutionsWithWorkflows.d.ts +6 -0
- package/dist/databases/migrations/sqlite/1673268682475-DeleteExecutionsWithWorkflows.js +74 -0
- package/dist/databases/migrations/sqlite/1673268682475-DeleteExecutionsWithWorkflows.js.map +1 -0
- package/dist/databases/migrations/sqlite/index.js +2 -0
- package/dist/databases/migrations/sqlite/index.js.map +1 -1
- package/dist/eventbus/EventMessageClasses/AbstractEventMessage.js.map +1 -1
- package/dist/eventbus/EventMessageClasses/EventMessageAudit.js.map +1 -1
- package/dist/eventbus/EventMessageClasses/Helpers.js +6 -0
- package/dist/eventbus/EventMessageClasses/Helpers.js.map +1 -1
- package/dist/eventbus/MessageEventBus/MessageEventBus.d.ts +11 -3
- package/dist/eventbus/MessageEventBus/MessageEventBus.js +56 -30
- package/dist/eventbus/MessageEventBus/MessageEventBus.js.map +1 -1
- package/dist/eventbus/MessageEventBusDestination/Helpers.ee.js.map +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestination.ee.js.map +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee.js +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSentry.ee.js.map +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee.js +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationSyslog.ee.js.map +1 -1
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee.js +2 -2
- package/dist/eventbus/MessageEventBusDestination/MessageEventBusDestinationWebhook.ee.js.map +1 -1
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.d.ts +32 -19
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.js +134 -50
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriter.js.map +1 -1
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.d.ts +0 -10
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.js +47 -61
- package/dist/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.js.map +1 -1
- package/dist/eventbus/eventBusRoutes.js +47 -11
- package/dist/eventbus/eventBusRoutes.js.map +1 -1
- package/dist/workflows/workflows.controller.js +2 -18
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/dist/workflows/workflows.services.d.ts +1 -0
- package/dist/workflows/workflows.services.js +22 -0
- package/dist/workflows/workflows.services.js.map +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +6 -7
|
@@ -2,21 +2,17 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const fs_1 = require("fs");
|
|
4
4
|
const promises_1 = require("fs/promises");
|
|
5
|
-
const
|
|
5
|
+
const worker_threads_1 = require("worker_threads");
|
|
6
6
|
let logFileBasePath = '';
|
|
7
7
|
let loggingPaused = true;
|
|
8
|
-
let syncFileAccess = false;
|
|
9
8
|
let keepFiles = 10;
|
|
10
9
|
let fileStatTimer;
|
|
11
10
|
let maxLogFileSizeInKB = 102400;
|
|
12
11
|
function setLogFileBasePath(basePath) {
|
|
13
12
|
logFileBasePath = basePath;
|
|
14
13
|
}
|
|
15
|
-
function
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
function setMaxLogFileSizeInKB(maxSizeInKB) {
|
|
19
|
-
maxLogFileSizeInKB = maxSizeInKB;
|
|
14
|
+
function setMaxLogFileSizeInKB(maxFileSizeInKB) {
|
|
15
|
+
maxLogFileSizeInKB = maxFileSizeInKB;
|
|
20
16
|
}
|
|
21
17
|
function setKeepFiles(keepNumberOfFiles) {
|
|
22
18
|
if (keepNumberOfFiles < 1) {
|
|
@@ -63,61 +59,51 @@ function appendMessageSync(msg) {
|
|
|
63
59
|
}
|
|
64
60
|
(0, fs_1.appendFileSync)(buildLogFileNameWithCounter(), JSON.stringify(msg) + '\n');
|
|
65
61
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
getLogFileName(counter) {
|
|
109
|
-
if (logFileBasePath) {
|
|
110
|
-
return buildLogFileNameWithCounter(counter);
|
|
62
|
+
if (!worker_threads_1.isMainThread) {
|
|
63
|
+
worker_threads_1.parentPort === null || worker_threads_1.parentPort === void 0 ? void 0 : worker_threads_1.parentPort.on('message', async (msg) => {
|
|
64
|
+
var _a, _b, _c;
|
|
65
|
+
const { command, data } = msg;
|
|
66
|
+
try {
|
|
67
|
+
switch (command) {
|
|
68
|
+
case 'appendMessageToLog':
|
|
69
|
+
case 'confirmMessageSent':
|
|
70
|
+
appendMessageSync(data);
|
|
71
|
+
worker_threads_1.parentPort === null || worker_threads_1.parentPort === void 0 ? void 0 : worker_threads_1.parentPort.postMessage({ command, data: true });
|
|
72
|
+
break;
|
|
73
|
+
case 'pauseLogging':
|
|
74
|
+
loggingPaused = true;
|
|
75
|
+
clearInterval(fileStatTimer);
|
|
76
|
+
break;
|
|
77
|
+
case 'initialize':
|
|
78
|
+
const settings = {
|
|
79
|
+
logFullBasePath: (_a = data.logFullBasePath) !== null && _a !== void 0 ? _a : '',
|
|
80
|
+
keepNumberOfFiles: (_b = data.keepNumberOfFiles) !== null && _b !== void 0 ? _b : 10,
|
|
81
|
+
maxFileSizeInKB: (_c = data.maxFileSizeInKB) !== null && _c !== void 0 ? _c : 102400,
|
|
82
|
+
};
|
|
83
|
+
setLogFileBasePath(settings.logFullBasePath);
|
|
84
|
+
setKeepFiles(settings.keepNumberOfFiles);
|
|
85
|
+
setMaxLogFileSizeInKB(settings.maxFileSizeInKB);
|
|
86
|
+
break;
|
|
87
|
+
case 'startLogging':
|
|
88
|
+
if (logFileBasePath) {
|
|
89
|
+
renameAndCreateLogs();
|
|
90
|
+
loggingPaused = false;
|
|
91
|
+
fileStatTimer = setInterval(async () => {
|
|
92
|
+
await checkFileSize(buildLogFileNameWithCounter());
|
|
93
|
+
}, 5000);
|
|
94
|
+
}
|
|
95
|
+
break;
|
|
96
|
+
case 'cleanLogs':
|
|
97
|
+
cleanAllLogs();
|
|
98
|
+
worker_threads_1.parentPort === null || worker_threads_1.parentPort === void 0 ? void 0 : worker_threads_1.parentPort.postMessage('cleanedAllLogs');
|
|
99
|
+
break;
|
|
100
|
+
default:
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
111
103
|
}
|
|
112
|
-
|
|
113
|
-
|
|
104
|
+
catch (error) {
|
|
105
|
+
worker_threads_1.parentPort === null || worker_threads_1.parentPort === void 0 ? void 0 : worker_threads_1.parentPort.postMessage(error);
|
|
114
106
|
}
|
|
115
|
-
}
|
|
116
|
-
cleanLogs() {
|
|
117
|
-
cleanAllLogs();
|
|
118
|
-
},
|
|
119
|
-
};
|
|
120
|
-
if ((0, worker_1.isWorkerRuntime)()) {
|
|
121
|
-
(0, worker_1.expose)(messageEventBusLogWriterWorker);
|
|
107
|
+
});
|
|
122
108
|
}
|
|
123
109
|
//# sourceMappingURL=MessageEventBusLogWriterWorker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageEventBusLogWriterWorker.js","sourceRoot":"","sources":["../../../src/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.ts"],"names":[],"mappings":";;AACA,2BAAyF;AACzF,
|
|
1
|
+
{"version":3,"file":"MessageEventBusLogWriterWorker.js","sourceRoot":"","sources":["../../../src/eventbus/MessageEventBusWriter/MessageEventBusLogWriterWorker.ts"],"names":[],"mappings":";;AACA,2BAAyF;AACzF,0CAAmC;AACnC,mDAA0D;AAG1D,IAAI,eAAe,GAAG,EAAE,CAAC;AACzB,IAAI,aAAa,GAAG,IAAI,CAAC;AACzB,IAAI,SAAS,GAAG,EAAE,CAAC;AACnB,IAAI,aAA2B,CAAC;AAChC,IAAI,kBAAkB,GAAG,MAAM,CAAC;AAEhC,SAAS,kBAAkB,CAAC,QAAgB;IAC3C,eAAe,GAAG,QAAQ,CAAC;AAC5B,CAAC;AAED,SAAS,qBAAqB,CAAC,eAAuB;IACrD,kBAAkB,GAAG,eAAe,CAAC;AACtC,CAAC;AAED,SAAS,YAAY,CAAC,iBAAyB;IAC9C,IAAI,iBAAiB,GAAG,CAAC,EAAE;QAC1B,iBAAiB,GAAG,CAAC,CAAC;KACtB;IACD,SAAS,GAAG,iBAAiB,CAAC;AAC/B,CAAC;AAED,SAAS,2BAA2B,CAAC,OAAgB;IACpD,IAAI,OAAO,EAAE;QACZ,OAAO,GAAG,eAAe,IAAI,OAAO,MAAM,CAAC;KAC3C;SAAM;QACN,OAAO,GAAG,eAAe,MAAM,CAAC;KAChC;AACF,CAAC;AAED,SAAS,YAAY;IACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,IAAA,eAAU,EAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,EAAE;YAC/C,IAAA,WAAM,EAAC,2BAA2B,CAAC,CAAC,CAAC,CAAC,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AW,CAAC,KAAK,CAAC,CAAC;SAC/B;IACF,CAAC,CAAC,CAAC;CACH"}
|
|
@@ -1,11 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
exports.eventBusRouter = void 0;
|
|
7
30
|
const express_1 = __importDefault(require("express"));
|
|
8
|
-
const __1 = require("..");
|
|
9
31
|
const AbstractEventMessage_1 = require("./EventMessageClasses/AbstractEventMessage");
|
|
10
32
|
const EventMessageGeneric_1 = require("./EventMessageClasses/EventMessageGeneric");
|
|
11
33
|
const EventMessageWorkflow_1 = require("./EventMessageClasses/EventMessageWorkflow");
|
|
@@ -17,6 +39,7 @@ const EventMessageClasses_1 = require("./EventMessageClasses");
|
|
|
17
39
|
const EventMessageAudit_1 = require("./EventMessageClasses/EventMessageAudit");
|
|
18
40
|
const ResponseHelper_1 = require("../ResponseHelper");
|
|
19
41
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
42
|
+
const ResponseHelper = __importStar(require("../ResponseHelper"));
|
|
20
43
|
exports.eventBusRouter = express_1.default.Router();
|
|
21
44
|
const isWithIdString = (candidate) => {
|
|
22
45
|
const o = candidate;
|
|
@@ -42,20 +65,33 @@ const isMessageEventBusDestinationOptions = (candidate) => {
|
|
|
42
65
|
return false;
|
|
43
66
|
return o.__type !== undefined;
|
|
44
67
|
};
|
|
45
|
-
exports.eventBusRouter.get('/event',
|
|
68
|
+
exports.eventBusRouter.get('/event', ResponseHelper.send(async (req) => {
|
|
46
69
|
if (isWithQueryString(req.query)) {
|
|
47
70
|
switch (req.query.query) {
|
|
48
71
|
case 'sent':
|
|
49
72
|
return MessageEventBus_1.eventBus.getEventsSent();
|
|
50
73
|
case 'unsent':
|
|
51
74
|
return MessageEventBus_1.eventBus.getEventsUnsent();
|
|
75
|
+
case 'unfinished':
|
|
76
|
+
return MessageEventBus_1.eventBus.getUnfinishedExecutions();
|
|
52
77
|
case 'all':
|
|
53
78
|
default:
|
|
79
|
+
return MessageEventBus_1.eventBus.getEventsAll();
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return MessageEventBus_1.eventBus.getEventsAll();
|
|
83
|
+
}));
|
|
84
|
+
exports.eventBusRouter.get('/execution/:id', ResponseHelper.send(async (req) => {
|
|
85
|
+
var _a, _b;
|
|
86
|
+
if ((_a = req.params) === null || _a === void 0 ? void 0 : _a.id) {
|
|
87
|
+
let logHistory;
|
|
88
|
+
if ((_b = req.query) === null || _b === void 0 ? void 0 : _b.logHistory) {
|
|
89
|
+
logHistory = parseInt(req.query.logHistory, 10);
|
|
54
90
|
}
|
|
91
|
+
return MessageEventBus_1.eventBus.getEventsByExecutionId(req.params.id, logHistory);
|
|
55
92
|
}
|
|
56
|
-
return MessageEventBus_1.eventBus.getEvents();
|
|
57
93
|
}));
|
|
58
|
-
exports.eventBusRouter.post('/event',
|
|
94
|
+
exports.eventBusRouter.post('/event', ResponseHelper.send(async (req) => {
|
|
59
95
|
if ((0, AbstractEventMessage_1.isEventMessageOptions)(req.body)) {
|
|
60
96
|
let msg;
|
|
61
97
|
switch (req.body.__type) {
|
|
@@ -75,7 +111,7 @@ exports.eventBusRouter.post('/event', __1.ResponseHelper.send(async (req) => {
|
|
|
75
111
|
throw new ResponseHelper_1.BadRequestError('Body is not a serialized EventMessage or eventName does not match format {namespace}.{domain}.{event}');
|
|
76
112
|
}
|
|
77
113
|
}));
|
|
78
|
-
exports.eventBusRouter.get('/destination',
|
|
114
|
+
exports.eventBusRouter.get('/destination', ResponseHelper.send(async (req) => {
|
|
79
115
|
let result = [];
|
|
80
116
|
if (isWithIdString(req.query)) {
|
|
81
117
|
result = await MessageEventBus_1.eventBus.findDestination(req.query.id);
|
|
@@ -85,9 +121,9 @@ exports.eventBusRouter.get('/destination', __1.ResponseHelper.send(async (req, r
|
|
|
85
121
|
}
|
|
86
122
|
return result;
|
|
87
123
|
}));
|
|
88
|
-
exports.eventBusRouter.post('/destination',
|
|
124
|
+
exports.eventBusRouter.post('/destination', ResponseHelper.send(async (req) => {
|
|
89
125
|
if (!req.user || req.user.globalRole.name !== 'owner') {
|
|
90
|
-
throw new
|
|
126
|
+
throw new ResponseHelper.UnauthorizedError('Invalid request');
|
|
91
127
|
}
|
|
92
128
|
if (isMessageEventBusDestinationOptions(req.body)) {
|
|
93
129
|
let result;
|
|
@@ -118,16 +154,16 @@ exports.eventBusRouter.post('/destination', __1.ResponseHelper.send(async (req,
|
|
|
118
154
|
}
|
|
119
155
|
throw new ResponseHelper_1.BadRequestError('Body is not configuring MessageEventBusDestinationOptions');
|
|
120
156
|
}));
|
|
121
|
-
exports.eventBusRouter.get('/testmessage',
|
|
157
|
+
exports.eventBusRouter.get('/testmessage', ResponseHelper.send(async (req) => {
|
|
122
158
|
let result = false;
|
|
123
159
|
if (isWithIdString(req.query)) {
|
|
124
160
|
result = await MessageEventBus_1.eventBus.testDestination(req.query.id);
|
|
125
161
|
}
|
|
126
162
|
return result;
|
|
127
163
|
}));
|
|
128
|
-
exports.eventBusRouter.delete('/destination',
|
|
164
|
+
exports.eventBusRouter.delete('/destination', ResponseHelper.send(async (req) => {
|
|
129
165
|
if (!req.user || req.user.globalRole.name !== 'owner') {
|
|
130
|
-
throw new
|
|
166
|
+
throw new ResponseHelper.UnauthorizedError('Invalid request');
|
|
131
167
|
}
|
|
132
168
|
if (isWithIdString(req.query)) {
|
|
133
169
|
const result = await MessageEventBus_1.eventBus.removeDestination(req.query.id);
|
|
@@ -139,7 +175,7 @@ exports.eventBusRouter.delete('/destination', __1.ResponseHelper.send(async (req
|
|
|
139
175
|
throw new ResponseHelper_1.BadRequestError('Query is missing id');
|
|
140
176
|
}
|
|
141
177
|
}));
|
|
142
|
-
exports.eventBusRouter.get('/eventnames',
|
|
178
|
+
exports.eventBusRouter.get('/eventnames', ResponseHelper.send(async () => {
|
|
143
179
|
return EventMessageClasses_1.eventNamesAll;
|
|
144
180
|
}));
|
|
145
181
|
//# sourceMappingURL=eventBusRoutes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventBusRoutes.js","sourceRoot":"","sources":["../../src/eventbus/eventBusRoutes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"eventBusRoutes.js","sourceRoot":"","sources":["../../src/eventbus/eventBusRoutes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,sDAA8B;AAC9B,qFAAmF;AACnF,mFAAgF;AAChF,qFAGoD;AACpD,uEAAqF;AACrF,0HAG0E;AAC1E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CAAC,MAAM,CACpB,cAAc,EACd,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,GAAoB,EAAgB,EAAE;IAChE,IAAI,CAAC,GAAG,CAAC,IAAI,IAAK,GAAG,CAAC,IAAa,CAAC,UAAU,CAAC,IAAI,KAAK,OAAO,EAAE;QAChE,MAAM,IAAI,cAAc,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KAC9D;IACD,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,MAAM,GAAG,MAAM,0BAAQ,CAAC,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QAC9D,IAAI,MAAM,EAAE;YACX,OAAO,MAAM,CAAC;SACd;KACD;SAAM;QACN,MAAM,IAAI,gCAAe,CAAC,qBAAqB,CAAC,CAAC;KACjD;AACF,CAAC,CAAC,CACF,CAAC;AAMF,sBAAc,CAAC,GAAG,CACjB,aAAa,EACb,cAAc,CAAC,IAAI,CAAC,KAAK,IAAkB,EAAE;IAC5C,OAAO,mCAAa,CAAC;AACtB,CAAC,CAAC,CACF,CAAC"}
|
|
@@ -31,7 +31,6 @@ const express_1 = __importDefault(require("express"));
|
|
|
31
31
|
const uuid_1 = require("uuid");
|
|
32
32
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
33
33
|
const axios_1 = __importDefault(require("axios"));
|
|
34
|
-
const ActiveWorkflowRunner = __importStar(require("../ActiveWorkflowRunner"));
|
|
35
34
|
const Db = __importStar(require("../Db"));
|
|
36
35
|
const GenericHelpers = __importStar(require("../GenericHelpers"));
|
|
37
36
|
const ResponseHelper = __importStar(require("../ResponseHelper"));
|
|
@@ -175,29 +174,14 @@ exports.workflowsController.patch('/:id', ResponseHelper.send(async (req) => {
|
|
|
175
174
|
}));
|
|
176
175
|
exports.workflowsController.delete('/:id', ResponseHelper.send(async (req) => {
|
|
177
176
|
const { id: workflowId } = req.params;
|
|
178
|
-
await
|
|
179
|
-
|
|
180
|
-
relations: ['workflow', 'role'],
|
|
181
|
-
where: (0, UserManagementHelper_1.whereClause)({
|
|
182
|
-
user: req.user,
|
|
183
|
-
entityType: 'workflow',
|
|
184
|
-
entityId: workflowId,
|
|
185
|
-
roles: ['owner'],
|
|
186
|
-
}),
|
|
187
|
-
});
|
|
188
|
-
if (!shared) {
|
|
177
|
+
const workflow = await workflows_services_1.WorkflowsService.delete(req.user, workflowId);
|
|
178
|
+
if (!workflow) {
|
|
189
179
|
n8n_workflow_1.LoggerProxy.verbose('User attempted to delete a workflow without permissions', {
|
|
190
180
|
workflowId,
|
|
191
181
|
userId: req.user.id,
|
|
192
182
|
});
|
|
193
183
|
throw new ResponseHelper.BadRequestError('Could not delete the workflow - you can only remove workflows owned by you');
|
|
194
184
|
}
|
|
195
|
-
if (shared.workflow.active) {
|
|
196
|
-
await ActiveWorkflowRunner.getInstance().remove(workflowId);
|
|
197
|
-
}
|
|
198
|
-
await Db.collections.Workflow.delete(workflowId);
|
|
199
|
-
void InternalHooksManager_1.InternalHooksManager.getInstance().onWorkflowDeleted(req.user, workflowId, false);
|
|
200
|
-
await (0, ExternalHooks_1.ExternalHooks)().run('workflow.afterDelete', [workflowId]);
|
|
201
185
|
return true;
|
|
202
186
|
}));
|
|
203
187
|
exports.workflowsController.post('/run', ResponseHelper.send(async (req) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.controller.js","sourceRoot":"","sources":["../../src/workflows/workflows.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAA8B;AAC9B,+BAAkC;AAClC,+CAA2C;AAE3C,kDAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"workflows.controller.js","sourceRoot":"","sources":["../../src/workflows/workflows.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,sDAA8B;AAC9B,+BAAkC;AAClC,+CAA2C;AAE3C,kDAA0B;AAC1B,yCAA2B;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CAAC;IAEhC,MAAM,eAAe,GAAG,MAAM,qCAAgB,CAAC,MAAM,CACpD,GAAG,CAAC,IAAI,EACR,UAAU,EACV,UAAU,EACV,IAAI,EACJ,IAAI,EACJ,CAAC,OAAO,CAAC,CACT,CAAC;IAEF,OAAO,eAAe,CAAC;AACxB,CAAC,CAAC,CACF,CAAC;AAMF,2BAAmB,CAAC,MAAM,CACzB,MAAM,EACN,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,GAA2B,EAAE,EAAE;IACzD,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,MAAM,CAAC;IAEtC,MAAM,QAAQ,GAAG,MAAM,qCAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IACrE,IAAI,CAAC,QAAQ,EAAE;QACd,0BAAW,CAAC,OAAO,CAAC,yDAAyD,EAAE;YAC9E,UAAU;YACV,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,EAAE;SACnB,CAAC,CAAC;QACH,MAAM,IAAI,cAAc,CAAC,eAAe,CACvC,4EAA4E,CAC5E,CAAC;KACF;IAED,OAAO,IAAI,CAAC;AACb,CAAC,CAAC,CACF,CAAC;AAKF,2BAAmB,CAAC,IAAI,CACvB,MAAM,EACN,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,GAA8B,EAAmC,EAAE;IAC7F,OAAO,qCAAgB,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3F,CAAC,CAAC,CACF,CAAC"}
|
|
@@ -301,6 +301,28 @@ class WorkflowsService {
|
|
|
301
301
|
executionId,
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
+
static async delete(user, workflowId) {
|
|
305
|
+
await (0, ExternalHooks_1.ExternalHooks)().run('workflow.delete', [workflowId]);
|
|
306
|
+
const sharedWorkflow = await Db.collections.SharedWorkflow.findOne({
|
|
307
|
+
relations: ['workflow', 'role'],
|
|
308
|
+
where: (0, UserManagementHelper_1.whereClause)({
|
|
309
|
+
user,
|
|
310
|
+
entityType: 'workflow',
|
|
311
|
+
entityId: workflowId,
|
|
312
|
+
roles: ['owner'],
|
|
313
|
+
}),
|
|
314
|
+
});
|
|
315
|
+
if (!sharedWorkflow) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
if (sharedWorkflow.workflow.active) {
|
|
319
|
+
await ActiveWorkflowRunner.getInstance().remove(workflowId);
|
|
320
|
+
}
|
|
321
|
+
await Db.collections.Workflow.delete(workflowId);
|
|
322
|
+
void InternalHooksManager_1.InternalHooksManager.getInstance().onWorkflowDeleted(user, workflowId, false);
|
|
323
|
+
await (0, ExternalHooks_1.ExternalHooks)().run('workflow.afterDelete', [workflowId]);
|
|
324
|
+
return sharedWorkflow.workflow;
|
|
325
|
+
}
|
|
304
326
|
}
|
|
305
327
|
exports.WorkflowsService = WorkflowsService;
|
|
306
328
|
//# sourceMappingURL=workflows.services.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.services.js","sourceRoot":"","sources":["../../src/workflows/workflows.services.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4D;AAC5D,+CAA6F;AAC7F,qCAA6C;AAC7C,8DAA+B;AAC/B,+BAAkC;AAClC,6EAA+D;AAC/D,yCAA2B;AAC3B,iEAA8D;AAC9D,iEAAmD;AACnD,mEAAqD;AACrD,sDAA8B;AAI9B,qDAAkD;AAClD,mDAAgD;AAChD,yDAA2C;AAG3C,2CAAwC;AACxC,qDAAkD;AAClD,+FAAiF;AACjF,6DAA+C;AAC/C,uDAAyD;AACzD,gFAAsF;AAQtF,MAAM,6BAA6B,GAAG;IACrC,GAAG,EAAE,2BAA2B;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACX,EAAE,EAAE,EAAE,KAAK,EAA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vB,CAAC;aACF;SACD;QAGD,YAAY,CAAC,MAAM,GAAG,KAAK,CAAC;QAG5B,MAAM,IAAI,GAAkC;YAC3C,eAAe;YACf,aAAa,EAAE,cAAc;YAC7B,OAAO;YACP,OAAO;YACP,SAAS;YACT,UAAU;YACV,YAAY;YACZ,MAAM,EAAE,IAAI,CAAC,EAAE;SACf,CAAC;QAEF,MAAM,UAAU,GAAG,CAAC,IAAW,EAAE,EAAE,CAAC,OAAO,KAAK,SAAS,IAAI,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAElF,IAAI,aAAa,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;YAChD,IAAI,CAAC,UAAU,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SACvC;QAED,MAAM,cAAc,GAAG,IAAI,+BAAc,EAAE,CAAC;QAC5C,MAAM,WAAW,GAAG,MAAM,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAEnD,OAAO;YACN,WAAW;SACX,CAAC;IACH,CAAC;CACD;AA1XD,4CA0XC"}
|
|
1
|
+
{"version":3,"file":"workflows.services.js","sourceRoot":"","sources":["../../src/workflows/workflows.services.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAA4D;AAC5D,+CAA6F;AAC7F,qCAA6C;AAC7C,8DAA+B;AAC/B,+BAAkC;AAClC,6EAA+D;AAC/D,yCAA2B;AAC3B,iEAA8D;AAC9D,iEAAmD;AACnD,mEAAqD;AACrD,sDAA8B;AAI9B,qDAAkD;AAClD,mDAAgD;AAChD,yDAA2C;AAG3C,2CAAwC;AACxC,qDAAkD;AAClD,+FAAiF;AACjF,6DAA+C;AAC/C,uDAAyD;AACzD,gFAAsF;AAQtF,MAAM,6BAA6B,GAAG;IACrC,GAAG,EAAE,2BAA2B;IAChC,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACX,EAAE,EAAE,EAAE,KAAK,EAAE,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AAW,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;SAC5D;QAED,MAAM,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;QAEjD,KAAK,2CAAoB,CAAC,WAAW,EAAE,CAAC,iBAAiB,CAAC,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,CAAC;QACnF,MAAM,IAAA,6BAAa,GAAE,CAAC,GAAG,CAAC,sBAAsB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;QAEhE,OAAO,cAAc,CAAC,QAAQ,CAAC;IAChC,CAAC;CACD;AAxZD,4CAwZC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"0.210.2","commands":{"BaseCommand":{"id":"BaseCommand","pluginName":"n8n","pluginType":"core","aliases":[],"flags":{},"args":[]},"audit":{"id":"audit","description":"Generate a security audit report for this n8n instance","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n audit","$ n8n audit --categories=database,credentials","$ n8n audit --days-abandoned-workflow=10"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"categories":{"name":"categories","type":"option","description":"Comma-separated list of categories to include in the audit","default":"credentials,database,nodes,instance,filesystem"},"days-abandoned-workflow":{"name":"days-abandoned-workflow","type":"option","description":"Days for a workflow to be considered abandoned if not executed","default":90}},"args":[]},"execute":{"id":"execute","description":"\nExecutes a given workflow","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n execute --id=5","$ n8n execute --file=workflow.json"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"file":{"name":"file","type":"option","description":"path to a workflow file to execute"},"id":{"name":"id","type":"option","description":"id of the workflow to execute"},"rawOutput":{"name":"rawOutput","type":"boolean","description":"Outputs only JSON data, with no other text","allowNo":false}},"args":[]},"executeBatch":{"id":"executeBatch","description":"\nExecutes multiple workflows once","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n executeBatch","$ n8n executeBatch --concurrency=10 --skipList=/data/skipList.txt","$ n8n executeBatch --debug --output=/data/output.json","$ n8n executeBatch --ids=10,13,15 --shortOutput","$ n8n executeBatch --snapshot=/data/snapshots --shallow","$ n8n executeBatch --compare=/data/previousExecutionData --retries=2"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"debug":{"name":"debug","type":"boolean","description":"Toggles on displaying all errors and debug messages.","allowNo":false},"ids":{"name":"ids","type":"option","description":"Specifies workflow IDs to get executed, separated by a comma or a file containing the ids"},"concurrency":{"name":"concurrency","type":"option","description":"How many workflows can run in parallel. Defaults to 1 which means no concurrency.","default":1},"output":{"name":"output","type":"option","description":"Enable execution saving, You must inform an existing folder to save execution via this param"},"snapshot":{"name":"snapshot","type":"option","description":"Enables snapshot saving. You must inform an existing folder to save snapshots via this param."},"compare":{"name":"compare","type":"option","description":"Compares current execution with an existing snapshot. You must inform an existing folder where the snapshots are saved."},"shallow":{"name":"shallow","type":"boolean","description":"Compares only if attributes output from node are the same, with no regards to nested JSON objects.","allowNo":false},"skipList":{"name":"skipList","type":"option","description":"File containing a comma separated list of workflow IDs to skip."},"retries":{"name":"retries","type":"option","description":"Retries failed workflows up to N tries. Default is 1. Set 0 to disable.","default":1},"shortOutput":{"name":"shortOutput","type":"boolean","description":"Omits the full execution information from output, displaying only summary.","allowNo":false}},"args":[]},"start":{"id":"start","description":"Starts n8n. Makes Web-UI available and starts active workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n start","$ n8n start --tunnel","$ n8n start -o","$ n8n start --tunnel -o"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"open":{"name":"open","type":"boolean","char":"o","description":"opens the UI automatically in browser","allowNo":false},"tunnel":{"name":"tunnel","type":"boolean","description":"runs the webhooks via a hooks.n8n.cloud tunnel server. Use only for testing and development!","allowNo":false},"reinstallMissingPackages":{"name":"reinstallMissingPackages","type":"boolean","description":"Attempts to self heal n8n if packages with nodes are missing. Might drastically increase startup times.","allowNo":false}},"args":[]},"webhook":{"id":"webhook","description":"Starts n8n webhook process. Intercepts only production URLs.","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n webhook"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"worker":{"id":"worker","description":"\nStarts a n8n worker","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n worker --concurrency=5"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"concurrency":{"name":"concurrency","type":"option","description":"How many jobs can run in parallel.","default":10}},"args":[]},"db:revert":{"id":"db:revert","description":"Revert last database migration","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n db:revert"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"export:credentials":{"id":"export:credentials","description":"Export credentials","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n export:credentials --all","$ n8n export:credentials --id=5 --output=file.json","$ n8n export:credentials --all --output=backups/latest.json","$ n8n export:credentials --backup --output=backups/latest/","$ n8n export:credentials --all --decrypted --output=backups/decrypted.json"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"all":{"name":"all","type":"boolean","description":"Export all credentials","allowNo":false},"backup":{"name":"backup","type":"boolean","description":"Sets --all --pretty --separate for simple backups. Only --output has to be set additionally.","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the credential to export"},"output":{"name":"output","type":"option","char":"o","description":"Output file name or directory if using separate files"},"pretty":{"name":"pretty","type":"boolean","description":"Format the output in an easier to read fashion","allowNo":false},"separate":{"name":"separate","type":"boolean","description":"Exports one file per credential (useful for versioning). Must inform a directory via --output.","allowNo":false},"decrypted":{"name":"decrypted","type":"boolean","description":"Exports data decrypted / in plain text. ALL SENSITIVE INFORMATION WILL BE VISIBLE IN THE FILES. Use to migrate from a installation to another that have a different secret key (in the config file).","allowNo":false}},"args":[]},"export:workflow":{"id":"export:workflow","description":"Export workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n export:workflow --all","$ n8n export:workflow --id=5 --output=file.json","$ n8n export:workflow --all --output=backups/latest/","$ n8n export:workflow --backup --output=backups/latest/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"all":{"name":"all","type":"boolean","description":"Export all workflows","allowNo":false},"backup":{"name":"backup","type":"boolean","description":"Sets --all --pretty --separate for simple backups. Only --output has to be set additionally.","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the workflow to export"},"output":{"name":"output","type":"option","char":"o","description":"Output file name or directory if using separate files"},"pretty":{"name":"pretty","type":"boolean","description":"Format the output in an easier to read fashion","allowNo":false},"separate":{"name":"separate","type":"boolean","description":"Exports one file per workflow (useful for versioning). Must inform a directory via --output.","allowNo":false}},"args":[]},"import:credentials":{"id":"import:credentials","description":"Import credentials","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n import:credentials --input=file.json","$ n8n import:credentials --separate --input=backups/latest/","$ n8n import:credentials --input=file.json --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae","$ n8n import:credentials --separate --input=backups/latest/ --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"input":{"name":"input","type":"option","char":"i","description":"Input file name or directory if --separate is used"},"separate":{"name":"separate","type":"boolean","description":"Imports *.json files from directory provided by --input","allowNo":false},"userId":{"name":"userId","type":"option","description":"The ID of the user to assign the imported credentials to"}},"args":[]},"import:workflow":{"id":"import:workflow","description":"Import workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n import:workflow --input=file.json","$ n8n import:workflow --separate --input=backups/latest/","$ n8n import:workflow --input=file.json --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae","$ n8n import:workflow --separate --input=backups/latest/ --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"input":{"name":"input","type":"option","char":"i","description":"Input file name or directory if --separate is used"},"separate":{"name":"separate","type":"boolean","description":"Imports *.json files from directory provided by --input","allowNo":false},"userId":{"name":"userId","type":"option","description":"The ID of the user to assign the imported workflows to"}},"args":[]},"license:clear":{"id":"license:clear","description":"Clear license","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n clear:license"],"flags":{},"args":[]},"list:workflow":{"id":"list:workflow","description":"\nList workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n list:workflow","$ n8n list:workflow --active=true --onlyId","$ n8n list:workflow --active=false"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"active":{"name":"active","type":"option","description":"Filters workflows by active status. Can be true or false"},"onlyId":{"name":"onlyId","type":"boolean","description":"Outputs workflow IDs only, one per line.","allowNo":false}},"args":[]},"update:workflow":{"id":"update:workflow","description":"Update workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n update:workflow --all --active=false","$ n8n update:workflow --id=5 --active=true"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"active":{"name":"active","type":"option","description":"Active state the workflow/s should be set to"},"all":{"name":"all","type":"boolean","description":"Operate on all workflows","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the workflow to operate on"}},"args":[]},"user-management:reset":{"id":"user-management:reset","description":"\nResets the database to the default user state","pluginName":"n8n","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
|
|
1
|
+
{"version":"0.211.0","commands":{"BaseCommand":{"id":"BaseCommand","pluginName":"n8n","pluginType":"core","aliases":[],"flags":{},"args":[]},"audit":{"id":"audit","description":"Generate a security audit report for this n8n instance","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n audit","$ n8n audit --categories=database,credentials","$ n8n audit --days-abandoned-workflow=10"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"categories":{"name":"categories","type":"option","description":"Comma-separated list of categories to include in the audit","default":"credentials,database,nodes,instance,filesystem"},"days-abandoned-workflow":{"name":"days-abandoned-workflow","type":"option","description":"Days for a workflow to be considered abandoned if not executed","default":90}},"args":[]},"execute":{"id":"execute","description":"\nExecutes a given workflow","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n execute --id=5","$ n8n execute --file=workflow.json"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"file":{"name":"file","type":"option","description":"path to a workflow file to execute"},"id":{"name":"id","type":"option","description":"id of the workflow to execute"},"rawOutput":{"name":"rawOutput","type":"boolean","description":"Outputs only JSON data, with no other text","allowNo":false}},"args":[]},"executeBatch":{"id":"executeBatch","description":"\nExecutes multiple workflows once","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n executeBatch","$ n8n executeBatch --concurrency=10 --skipList=/data/skipList.txt","$ n8n executeBatch --debug --output=/data/output.json","$ n8n executeBatch --ids=10,13,15 --shortOutput","$ n8n executeBatch --snapshot=/data/snapshots --shallow","$ n8n executeBatch --compare=/data/previousExecutionData --retries=2"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"debug":{"name":"debug","type":"boolean","description":"Toggles on displaying all errors and debug messages.","allowNo":false},"ids":{"name":"ids","type":"option","description":"Specifies workflow IDs to get executed, separated by a comma or a file containing the ids"},"concurrency":{"name":"concurrency","type":"option","description":"How many workflows can run in parallel. Defaults to 1 which means no concurrency.","default":1},"output":{"name":"output","type":"option","description":"Enable execution saving, You must inform an existing folder to save execution via this param"},"snapshot":{"name":"snapshot","type":"option","description":"Enables snapshot saving. You must inform an existing folder to save snapshots via this param."},"compare":{"name":"compare","type":"option","description":"Compares current execution with an existing snapshot. You must inform an existing folder where the snapshots are saved."},"shallow":{"name":"shallow","type":"boolean","description":"Compares only if attributes output from node are the same, with no regards to nested JSON objects.","allowNo":false},"skipList":{"name":"skipList","type":"option","description":"File containing a comma separated list of workflow IDs to skip."},"retries":{"name":"retries","type":"option","description":"Retries failed workflows up to N tries. Default is 1. Set 0 to disable.","default":1},"shortOutput":{"name":"shortOutput","type":"boolean","description":"Omits the full execution information from output, displaying only summary.","allowNo":false}},"args":[]},"start":{"id":"start","description":"Starts n8n. Makes Web-UI available and starts active workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n start","$ n8n start --tunnel","$ n8n start -o","$ n8n start --tunnel -o"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"open":{"name":"open","type":"boolean","char":"o","description":"opens the UI automatically in browser","allowNo":false},"tunnel":{"name":"tunnel","type":"boolean","description":"runs the webhooks via a hooks.n8n.cloud tunnel server. Use only for testing and development!","allowNo":false},"reinstallMissingPackages":{"name":"reinstallMissingPackages","type":"boolean","description":"Attempts to self heal n8n if packages with nodes are missing. Might drastically increase startup times.","allowNo":false}},"args":[]},"webhook":{"id":"webhook","description":"Starts n8n webhook process. Intercepts only production URLs.","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n webhook"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"worker":{"id":"worker","description":"\nStarts a n8n worker","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n worker --concurrency=5"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"concurrency":{"name":"concurrency","type":"option","description":"How many jobs can run in parallel.","default":10}},"args":[]},"db:revert":{"id":"db:revert","description":"Revert last database migration","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n db:revert"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false}},"args":[]},"export:credentials":{"id":"export:credentials","description":"Export credentials","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n export:credentials --all","$ n8n export:credentials --id=5 --output=file.json","$ n8n export:credentials --all --output=backups/latest.json","$ n8n export:credentials --backup --output=backups/latest/","$ n8n export:credentials --all --decrypted --output=backups/decrypted.json"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"all":{"name":"all","type":"boolean","description":"Export all credentials","allowNo":false},"backup":{"name":"backup","type":"boolean","description":"Sets --all --pretty --separate for simple backups. Only --output has to be set additionally.","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the credential to export"},"output":{"name":"output","type":"option","char":"o","description":"Output file name or directory if using separate files"},"pretty":{"name":"pretty","type":"boolean","description":"Format the output in an easier to read fashion","allowNo":false},"separate":{"name":"separate","type":"boolean","description":"Exports one file per credential (useful for versioning). Must inform a directory via --output.","allowNo":false},"decrypted":{"name":"decrypted","type":"boolean","description":"Exports data decrypted / in plain text. ALL SENSITIVE INFORMATION WILL BE VISIBLE IN THE FILES. Use to migrate from a installation to another that have a different secret key (in the config file).","allowNo":false}},"args":[]},"export:workflow":{"id":"export:workflow","description":"Export workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n export:workflow --all","$ n8n export:workflow --id=5 --output=file.json","$ n8n export:workflow --all --output=backups/latest/","$ n8n export:workflow --backup --output=backups/latest/"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"all":{"name":"all","type":"boolean","description":"Export all workflows","allowNo":false},"backup":{"name":"backup","type":"boolean","description":"Sets --all --pretty --separate for simple backups. Only --output has to be set additionally.","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the workflow to export"},"output":{"name":"output","type":"option","char":"o","description":"Output file name or directory if using separate files"},"pretty":{"name":"pretty","type":"boolean","description":"Format the output in an easier to read fashion","allowNo":false},"separate":{"name":"separate","type":"boolean","description":"Exports one file per workflow (useful for versioning). Must inform a directory via --output.","allowNo":false}},"args":[]},"import:credentials":{"id":"import:credentials","description":"Import credentials","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n import:credentials --input=file.json","$ n8n import:credentials --separate --input=backups/latest/","$ n8n import:credentials --input=file.json --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae","$ n8n import:credentials --separate --input=backups/latest/ --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"input":{"name":"input","type":"option","char":"i","description":"Input file name or directory if --separate is used"},"separate":{"name":"separate","type":"boolean","description":"Imports *.json files from directory provided by --input","allowNo":false},"userId":{"name":"userId","type":"option","description":"The ID of the user to assign the imported credentials to"}},"args":[]},"import:workflow":{"id":"import:workflow","description":"Import workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n import:workflow --input=file.json","$ n8n import:workflow --separate --input=backups/latest/","$ n8n import:workflow --input=file.json --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae","$ n8n import:workflow --separate --input=backups/latest/ --userId=1d64c3d2-85fe-4a83-a649-e446b07b3aae"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"input":{"name":"input","type":"option","char":"i","description":"Input file name or directory if --separate is used"},"separate":{"name":"separate","type":"boolean","description":"Imports *.json files from directory provided by --input","allowNo":false},"userId":{"name":"userId","type":"option","description":"The ID of the user to assign the imported workflows to"}},"args":[]},"license:clear":{"id":"license:clear","description":"Clear license","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n clear:license"],"flags":{},"args":[]},"list:workflow":{"id":"list:workflow","description":"\nList workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n list:workflow","$ n8n list:workflow --active=true --onlyId","$ n8n list:workflow --active=false"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"active":{"name":"active","type":"option","description":"Filters workflows by active status. Can be true or false"},"onlyId":{"name":"onlyId","type":"boolean","description":"Outputs workflow IDs only, one per line.","allowNo":false}},"args":[]},"update:workflow":{"id":"update:workflow","description":"Update workflows","pluginName":"n8n","pluginType":"core","aliases":[],"examples":["$ n8n update:workflow --all --active=false","$ n8n update:workflow --id=5 --active=true"],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"active":{"name":"active","type":"option","description":"Active state the workflow/s should be set to"},"all":{"name":"all","type":"boolean","description":"Operate on all workflows","allowNo":false},"id":{"name":"id","type":"option","description":"The ID of the workflow to operate on"}},"args":[]},"user-management:reset":{"id":"user-management:reset","description":"\nResets the database to the default user state","pluginName":"n8n","pluginType":"core","aliases":[],"flags":{},"args":[]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.211.0",
|
|
4
4
|
"description": "n8n Workflow Automation Tool",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"homepage": "https://n8n.io",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"bull": "^4.10.2",
|
|
103
103
|
"callsites": "^3.1.0",
|
|
104
104
|
"change-case": "^4.1.1",
|
|
105
|
-
"class-validator": "^0.
|
|
105
|
+
"class-validator": "^0.14.0",
|
|
106
106
|
"client-oauth2": "^4.2.5",
|
|
107
107
|
"compression": "^1.7.4",
|
|
108
108
|
"connect-history-api-fallback": "^1.6.0",
|
|
@@ -140,10 +140,10 @@
|
|
|
140
140
|
"lodash.unset": "^4.5.2",
|
|
141
141
|
"luxon": "^3.1.0",
|
|
142
142
|
"mysql2": "~2.3.0",
|
|
143
|
-
"n8n-core": "~0.
|
|
144
|
-
"n8n-editor-ui": "~0.
|
|
145
|
-
"n8n-nodes-base": "~0.
|
|
146
|
-
"n8n-workflow": "~0.
|
|
143
|
+
"n8n-core": "~0.151.0",
|
|
144
|
+
"n8n-editor-ui": "~0.177.0",
|
|
145
|
+
"n8n-nodes-base": "~0.209.0",
|
|
146
|
+
"n8n-workflow": "~0.133.0",
|
|
147
147
|
"nodemailer": "^6.7.1",
|
|
148
148
|
"oauth-1.0a": "^2.2.6",
|
|
149
149
|
"open": "^7.0.0",
|
|
@@ -166,7 +166,6 @@
|
|
|
166
166
|
"sse-channel": "^4.0.0",
|
|
167
167
|
"swagger-ui-express": "^4.3.0",
|
|
168
168
|
"syslog-client": "^1.1.1",
|
|
169
|
-
"threads": "^1.7.0",
|
|
170
169
|
"tslib": "1.14.1",
|
|
171
170
|
"typeorm": "0.2.45",
|
|
172
171
|
"uuid": "^8.3.2",
|