n8n 0.181.2 → 0.182.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.
Files changed (41) hide show
  1. package/dist/src/Interfaces.d.ts +1 -2
  2. package/dist/src/PublicApi/index.js +16 -21
  3. package/dist/src/PublicApi/index.js.map +1 -1
  4. package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.d.ts +7 -4
  5. package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.js +12 -17
  6. package/dist/src/PublicApi/v1/handlers/credentials/credentials.handler.js.map +1 -1
  7. package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.d.ts +4 -3
  8. package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.js +10 -12
  9. package/dist/src/PublicApi/v1/handlers/credentials/credentials.middleware.js.map +1 -1
  10. package/dist/src/PublicApi/v1/handlers/credentials/credentials.service.d.ts +2 -1
  11. package/dist/src/PublicApi/v1/handlers/credentials/credentials.service.js.map +1 -1
  12. package/dist/src/PublicApi/v1/handlers/executions/executions.handler.d.ts +4 -4
  13. package/dist/src/PublicApi/v1/handlers/executions/executions.handler.js +13 -27
  14. package/dist/src/PublicApi/v1/handlers/executions/executions.handler.js.map +1 -1
  15. package/dist/src/PublicApi/v1/handlers/executions/executions.service.d.ts +2 -2
  16. package/dist/src/PublicApi/v1/handlers/executions/executions.service.js +7 -10
  17. package/dist/src/PublicApi/v1/handlers/executions/executions.service.js.map +1 -1
  18. package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.d.ts +8 -8
  19. package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.js +23 -35
  20. package/dist/src/PublicApi/v1/handlers/workflows/workflows.handler.js.map +1 -1
  21. package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.d.ts +1 -1
  22. package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.js +19 -28
  23. package/dist/src/PublicApi/v1/handlers/workflows/workflows.service.js.map +1 -1
  24. package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.d.ts +4 -5
  25. package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.js +6 -8
  26. package/dist/src/PublicApi/v1/shared/middlewares/global.middleware.js.map +1 -1
  27. package/dist/src/PublicApi/v1/shared/services/pagination.service.js.map +1 -1
  28. package/dist/test/integration/publicApi/credentials.test.js +1 -4
  29. package/dist/test/integration/publicApi/credentials.test.js.map +1 -1
  30. package/dist/test/integration/publicApi/executions.test.js +34 -26
  31. package/dist/test/integration/publicApi/executions.test.js.map +1 -1
  32. package/dist/test/integration/publicApi/workflows.test.js +39 -41
  33. package/dist/test/integration/publicApi/workflows.test.js.map +1 -1
  34. package/dist/test/integration/shared/testDb.d.ts +1 -1
  35. package/dist/test/integration/shared/testDb.js +6 -9
  36. package/dist/test/integration/shared/testDb.js.map +1 -1
  37. package/dist/test/integration/shared/utils.d.ts +2 -2
  38. package/dist/test/integration/shared/utils.js +26 -19
  39. package/dist/test/integration/shared/utils.js.map +1 -1
  40. package/oclif.manifest.json +1 -1
  41. package/package.json +9 -9
@@ -22,8 +22,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
- const config = require("../../../config");
29
+ const config_1 = __importDefault(require("../../../config"));
27
30
  const random_1 = require("../shared/random");
28
31
  const utils = __importStar(require("../shared/utils"));
29
32
  const testDb = __importStar(require("../shared/testDb"));
@@ -31,7 +34,6 @@ let app;
31
34
  let testDbName = '';
32
35
  let globalOwnerRole;
33
36
  let workflowRunner;
34
- jest.mock('../../../src/telemetry');
35
37
  beforeAll(async () => {
36
38
  app = await utils.initTestServer({ endpointGroups: ['publicApi'], applyAuth: false });
37
39
  const initResult = await testDb.init();
@@ -44,11 +46,17 @@ beforeAll(async () => {
44
46
  workflowRunner = await utils.initActiveWorkflowRunner();
45
47
  });
46
48
  beforeEach(async () => {
47
- await testDb.truncate(['SharedCredentials', 'SharedWorkflow'], testDbName);
48
- await testDb.truncate(['User', 'Workflow', 'Credentials', 'Execution', 'Settings'], testDbName);
49
- config.set('userManagement.disabled', false);
50
- config.set('userManagement.isInstanceOwnerSetUp', true);
51
- config.set('userManagement.emails.mode', 'smtp');
49
+ await testDb.truncate([
50
+ 'SharedCredentials',
51
+ 'SharedWorkflow',
52
+ 'User',
53
+ 'Workflow',
54
+ 'Credentials',
55
+ 'Execution',
56
+ 'Settings',
57
+ ], testDbName);
58
+ config_1.default.set('userManagement.disabled', false);
59
+ config_1.default.set('userManagement.isInstanceOwnerSetUp', true);
52
60
  });
53
61
  afterEach(async () => {
54
62
  await workflowRunner.removeAll();
@@ -56,7 +64,7 @@ afterEach(async () => {
56
64
  afterAll(async () => {
57
65
  await testDb.terminate(testDbName);
58
66
  });
59
- test.skip('GET /executions/:executionId should fail due to missing API Key', async () => {
67
+ test('GET /executions/:id should fail due to missing API Key', async () => {
60
68
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
61
69
  const authOwnerAgent = utils.createAgent(app, {
62
70
  apiPath: 'public',
@@ -67,7 +75,7 @@ test.skip('GET /executions/:executionId should fail due to missing API Key', asy
67
75
  const response = await authOwnerAgent.get('/executions/1');
68
76
  expect(response.statusCode).toBe(401);
69
77
  });
70
- test.skip('GET /executions/:executionId should fail due to invalid API Key', async () => {
78
+ test('GET /executions/:id should fail due to invalid API Key', async () => {
71
79
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
72
80
  owner.apiKey = 'abcXYZ';
73
81
  const authOwnerAgent = utils.createAgent(app, {
@@ -79,7 +87,7 @@ test.skip('GET /executions/:executionId should fail due to invalid API Key', asy
79
87
  const response = await authOwnerAgent.get('/executions/1');
80
88
  expect(response.statusCode).toBe(401);
81
89
  });
82
- test.skip('GET /executions/:executionId should get an execution', async () => {
90
+ test('GET /executions/:id should get an execution', async () => {
83
91
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
84
92
  const authOwnerAgent = utils.createAgent(app, {
85
93
  apiPath: 'public',
@@ -88,7 +96,7 @@ test.skip('GET /executions/:executionId should get an execution', async () => {
88
96
  version: 1,
89
97
  });
90
98
  const workflow = await testDb.createWorkflow({}, owner);
91
- const execution = await testDb.createSuccessfullExecution(workflow);
99
+ const execution = await testDb.createSuccessfulExecution(workflow);
92
100
  const response = await authOwnerAgent.get(`/executions/${execution.id}`);
93
101
  expect(response.statusCode).toBe(200);
94
102
  const { id, finished, mode, retryOf, retrySuccessId, startedAt, stoppedAt, workflowId, waitTill, } = response.body;
@@ -102,7 +110,7 @@ test.skip('GET /executions/:executionId should get an execution', async () => {
102
110
  expect(workflowId).toBe(execution.workflowId);
103
111
  expect(waitTill).toBeNull();
104
112
  });
105
- test.skip('DELETE /executions/:executionId should fail due to missing API Key', async () => {
113
+ test('DELETE /executions/:id should fail due to missing API Key', async () => {
106
114
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
107
115
  const authOwnerAgent = utils.createAgent(app, {
108
116
  apiPath: 'public',
@@ -113,7 +121,7 @@ test.skip('DELETE /executions/:executionId should fail due to missing API Key',
113
121
  const response = await authOwnerAgent.delete('/executions/1');
114
122
  expect(response.statusCode).toBe(401);
115
123
  });
116
- test.skip('DELETE /executions/:executionId should fail due to invalid API Key', async () => {
124
+ test('DELETE /executions/:id should fail due to invalid API Key', async () => {
117
125
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
118
126
  owner.apiKey = 'abcXYZ';
119
127
  const authOwnerAgent = utils.createAgent(app, {
@@ -125,7 +133,7 @@ test.skip('DELETE /executions/:executionId should fail due to invalid API Key',
125
133
  const response = await authOwnerAgent.delete('/executions/1');
126
134
  expect(response.statusCode).toBe(401);
127
135
  });
128
- test.skip('DELETE /executions/:executionId should delete an execution', async () => {
136
+ test('DELETE /executions/:id should delete an execution', async () => {
129
137
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
130
138
  const authOwnerAgent = utils.createAgent(app, {
131
139
  apiPath: 'public',
@@ -134,7 +142,7 @@ test.skip('DELETE /executions/:executionId should delete an execution', async ()
134
142
  version: 1,
135
143
  });
136
144
  const workflow = await testDb.createWorkflow({}, owner);
137
- const execution = await testDb.createSuccessfullExecution(workflow);
145
+ const execution = await testDb.createSuccessfulExecution(workflow);
138
146
  const response = await authOwnerAgent.delete(`/executions/${execution.id}`);
139
147
  expect(response.statusCode).toBe(200);
140
148
  const { id, finished, mode, retryOf, retrySuccessId, startedAt, stoppedAt, workflowId, waitTill, } = response.body;
@@ -148,7 +156,7 @@ test.skip('DELETE /executions/:executionId should delete an execution', async ()
148
156
  expect(workflowId).toBe(execution.workflowId);
149
157
  expect(waitTill).toBeNull();
150
158
  });
151
- test.skip('GET /executions should fail due to missing API Key', async () => {
159
+ test('GET /executions should fail due to missing API Key', async () => {
152
160
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
153
161
  const authOwnerAgent = utils.createAgent(app, {
154
162
  apiPath: 'public',
@@ -159,7 +167,7 @@ test.skip('GET /executions should fail due to missing API Key', async () => {
159
167
  const response = await authOwnerAgent.get('/executions');
160
168
  expect(response.statusCode).toBe(401);
161
169
  });
162
- test.skip('GET /executions should fail due to invalid API Key', async () => {
170
+ test('GET /executions should fail due to invalid API Key', async () => {
163
171
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
164
172
  owner.apiKey = 'abcXYZ';
165
173
  const authOwnerAgent = utils.createAgent(app, {
@@ -171,7 +179,7 @@ test.skip('GET /executions should fail due to invalid API Key', async () => {
171
179
  const response = await authOwnerAgent.get('/executions');
172
180
  expect(response.statusCode).toBe(401);
173
181
  });
174
- test.skip('GET /executions should retrieve all successfull executions', async () => {
182
+ test('GET /executions should retrieve all successfull executions', async () => {
175
183
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
176
184
  const authOwnerAgent = utils.createAgent(app, {
177
185
  apiPath: 'public',
@@ -180,7 +188,7 @@ test.skip('GET /executions should retrieve all successfull executions', async ()
180
188
  version: 1,
181
189
  });
182
190
  const workflow = await testDb.createWorkflow({}, owner);
183
- const successfullExecution = await testDb.createSuccessfullExecution(workflow);
191
+ const successfullExecution = await testDb.createSuccessfulExecution(workflow);
184
192
  await testDb.createErrorExecution(workflow);
185
193
  const response = await authOwnerAgent.get(`/executions`).query({
186
194
  status: 'success',
@@ -199,7 +207,7 @@ test.skip('GET /executions should retrieve all successfull executions', async ()
199
207
  expect(workflowId).toBe(successfullExecution.workflowId);
200
208
  expect(waitTill).toBeNull();
201
209
  });
202
- test.skip('GET /executions should retrieve all error executions', async () => {
210
+ test('GET /executions should retrieve all error executions', async () => {
203
211
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
204
212
  const authOwnerAgent = utils.createAgent(app, {
205
213
  apiPath: 'public',
@@ -208,7 +216,7 @@ test.skip('GET /executions should retrieve all error executions', async () => {
208
216
  version: 1,
209
217
  });
210
218
  const workflow = await testDb.createWorkflow({}, owner);
211
- await testDb.createSuccessfullExecution(workflow);
219
+ await testDb.createSuccessfulExecution(workflow);
212
220
  const errorExecution = await testDb.createErrorExecution(workflow);
213
221
  const response = await authOwnerAgent.get(`/executions`).query({
214
222
  status: 'error',
@@ -227,7 +235,7 @@ test.skip('GET /executions should retrieve all error executions', async () => {
227
235
  expect(workflowId).toBe(errorExecution.workflowId);
228
236
  expect(waitTill).toBeNull();
229
237
  });
230
- test.skip('GET /executions should return all waiting executions', async () => {
238
+ test('GET /executions should return all waiting executions', async () => {
231
239
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
232
240
  const authOwnerAgent = utils.createAgent(app, {
233
241
  apiPath: 'public',
@@ -236,7 +244,7 @@ test.skip('GET /executions should return all waiting executions', async () => {
236
244
  version: 1,
237
245
  });
238
246
  const workflow = await testDb.createWorkflow({}, owner);
239
- await testDb.createSuccessfullExecution(workflow);
247
+ await testDb.createSuccessfulExecution(workflow);
240
248
  await testDb.createErrorExecution(workflow);
241
249
  const waitingExecution = await testDb.createWaitingExecution(workflow);
242
250
  const response = await authOwnerAgent.get(`/executions`).query({
@@ -256,7 +264,7 @@ test.skip('GET /executions should return all waiting executions', async () => {
256
264
  expect(workflowId).toBe(waitingExecution.workflowId);
257
265
  expect(new Date(waitTill).getTime()).toBeGreaterThan(Date.now() - 1000);
258
266
  });
259
- test.skip('GET /executions should retrieve all executions of specific workflow', async () => {
267
+ test('GET /executions should retrieve all executions of specific workflow', async () => {
260
268
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
261
269
  const authOwnerAgent = utils.createAgent(app, {
262
270
  apiPath: 'public',
@@ -265,8 +273,8 @@ test.skip('GET /executions should retrieve all executions of specific workflow',
265
273
  version: 1,
266
274
  });
267
275
  const [workflow, workflow2] = await testDb.createManyWorkflows(2, {}, owner);
268
- const savedExecutions = await testDb.createManyExecutions(2, workflow, testDb.createSuccessfullExecution);
269
- await testDb.createManyExecutions(2, workflow2, testDb.createSuccessfullExecution);
276
+ const savedExecutions = await testDb.createManyExecutions(2, workflow, testDb.createSuccessfulExecution);
277
+ await testDb.createManyExecutions(2, workflow2, testDb.createSuccessfulExecution);
270
278
  const response = await authOwnerAgent.get(`/executions`).query({
271
279
  workflowId: workflow.id.toString(),
272
280
  });
@@ -1 +1 @@
1
- {"version":3,"file":"executions.test.js","sourceRoot":"","sources":["../../../../test/integration/publicApi/executions.test.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,0CAA2C;AAE3C,6CAAgD;AAEhD,uDAAyC;AACzC,yDAA2C;AAE3C,IAAI,GAAwB,CAAC;AAC7B,IAAI,U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AQ,GACR,GAAG,SAAS,CAAC;QAEd,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClE,MAAM,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC5B,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3B,MAAM,CAAC,cAAc,CAAC,CAAC,QAAQ,EAAE,CAAC;QAClC,MAAM,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACjC,MAAM,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QACjC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC;QAChD,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE,CAAC;KAC5B;AACF,CAAC,CAAC,CAAC"}
@@ -22,9 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
29
  const src_1 = require("../../../src");
27
- const config = require("../../../config");
30
+ const config_1 = __importDefault(require("../../../config"));
28
31
  const random_1 = require("../shared/random");
29
32
  const utils = __importStar(require("../shared/utils"));
30
33
  const testDb = __importStar(require("../shared/testDb"));
@@ -33,29 +36,24 @@ let testDbName = '';
33
36
  let globalOwnerRole;
34
37
  let globalMemberRole;
35
38
  let workflowOwnerRole;
36
- let credentialOwnerRole;
37
39
  let workflowRunner;
38
- jest.mock('../../../src/telemetry');
39
40
  beforeAll(async () => {
40
41
  app = await utils.initTestServer({ endpointGroups: ['publicApi'], applyAuth: false });
41
42
  const initResult = await testDb.init();
42
43
  testDbName = initResult.testDbName;
43
- const [fetchedGlobalOwnerRole, fetchedGlobalMemberRole, fetchedWorkflowOwnerRole, fetchedCredentialOwnerRole,] = await testDb.getAllRoles();
44
+ const [fetchedGlobalOwnerRole, fetchedGlobalMemberRole, fetchedWorkflowOwnerRole,] = await testDb.getAllRoles();
44
45
  globalOwnerRole = fetchedGlobalOwnerRole;
45
46
  globalMemberRole = fetchedGlobalMemberRole;
46
47
  workflowOwnerRole = fetchedWorkflowOwnerRole;
47
- credentialOwnerRole = fetchedCredentialOwnerRole;
48
48
  utils.initTestTelemetry();
49
49
  utils.initTestLogger();
50
50
  await utils.initNodeTypes();
51
51
  workflowRunner = await utils.initActiveWorkflowRunner();
52
52
  });
53
53
  beforeEach(async () => {
54
- await testDb.truncate(['SharedCredentials', 'SharedWorkflow'], testDbName);
55
- await testDb.truncate(['User', 'Workflow', 'Credentials'], testDbName);
56
- config.set('userManagement.disabled', false);
57
- config.set('userManagement.isInstanceOwnerSetUp', true);
58
- config.set('userManagement.emails.mode', 'smtp');
54
+ await testDb.truncate(['SharedCredentials', 'SharedWorkflow', 'User', 'Workflow', 'Credentials'], testDbName);
55
+ config_1.default.set('userManagement.disabled', false);
56
+ config_1.default.set('userManagement.isInstanceOwnerSetUp', true);
59
57
  });
60
58
  afterEach(async () => {
61
59
  await workflowRunner.removeAll();
@@ -256,7 +254,7 @@ test('GET /workflows should return all workflows for owner', async () => {
256
254
  expect(updatedAt).toBeDefined();
257
255
  }
258
256
  });
259
- test('GET /workflows/:workflowId should fail due to missing API Key', async () => {
257
+ test('GET /workflows/:id should fail due to missing API Key', async () => {
260
258
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
261
259
  owner.apiKey = null;
262
260
  const authOwnerAgent = utils.createAgent(app, {
@@ -268,7 +266,7 @@ test('GET /workflows/:workflowId should fail due to missing API Key', async () =
268
266
  const response = await authOwnerAgent.get(`/workflows/2`);
269
267
  expect(response.statusCode).toBe(401);
270
268
  });
271
- test('GET /workflows/:workflowId should fail due to invalid API Key', async () => {
269
+ test('GET /workflows/:id should fail due to invalid API Key', async () => {
272
270
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
273
271
  owner.apiKey = 'abcXYZ';
274
272
  const authOwnerAgent = utils.createAgent(app, {
@@ -280,7 +278,7 @@ test('GET /workflows/:workflowId should fail due to invalid API Key', async () =
280
278
  const response = await authOwnerAgent.get(`/workflows/2`);
281
279
  expect(response.statusCode).toBe(401);
282
280
  });
283
- test('GET /workflows/:workflowId should fail due to non existing workflow', async () => {
281
+ test('GET /workflows/:id should fail due to non existing workflow', async () => {
284
282
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
285
283
  const authOwnerAgent = utils.createAgent(app, {
286
284
  apiPath: 'public',
@@ -291,7 +289,7 @@ test('GET /workflows/:workflowId should fail due to non existing workflow', asyn
291
289
  const response = await authOwnerAgent.get(`/workflows/2`);
292
290
  expect(response.statusCode).toBe(404);
293
291
  });
294
- test('GET /workflows/:workflowId should retrieve workflow', async () => {
292
+ test('GET /workflows/:id should retrieve workflow', async () => {
295
293
  const member = await testDb.createUser({ globalRole: globalMemberRole, apiKey: (0, random_1.randomApiKey)() });
296
294
  const authAgent = utils.createAgent(app, {
297
295
  apiPath: 'public',
@@ -313,7 +311,7 @@ test('GET /workflows/:workflowId should retrieve workflow', async () => {
313
311
  expect(createdAt).toEqual(workflow.createdAt.toISOString());
314
312
  expect(updatedAt).toEqual(workflow.updatedAt.toISOString());
315
313
  });
316
- test('GET /workflows/:workflowId should retrieve non-owned workflow for owner', async () => {
314
+ test('GET /workflows/:id should retrieve non-owned workflow for owner', async () => {
317
315
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
318
316
  const member = await testDb.createUser({ globalRole: globalMemberRole });
319
317
  const authOwnerAgent = utils.createAgent(app, {
@@ -336,7 +334,7 @@ test('GET /workflows/:workflowId should retrieve non-owned workflow for owner',
336
334
  expect(createdAt).toEqual(workflow.createdAt.toISOString());
337
335
  expect(updatedAt).toEqual(workflow.updatedAt.toISOString());
338
336
  });
339
- test('DELETE /workflows/:workflowId should fail due to missing API Key', async () => {
337
+ test('DELETE /workflows/:id should fail due to missing API Key', async () => {
340
338
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
341
339
  const authOwnerAgent = utils.createAgent(app, {
342
340
  apiPath: 'public',
@@ -347,7 +345,7 @@ test('DELETE /workflows/:workflowId should fail due to missing API Key', async (
347
345
  const response = await authOwnerAgent.delete(`/workflows/2`);
348
346
  expect(response.statusCode).toBe(401);
349
347
  });
350
- test('DELETE /workflows/:workflowId should fail due to invalid API Key', async () => {
348
+ test('DELETE /workflows/:id should fail due to invalid API Key', async () => {
351
349
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
352
350
  owner.apiKey = 'abcXYZ';
353
351
  const authOwnerAgent = utils.createAgent(app, {
@@ -359,7 +357,7 @@ test('DELETE /workflows/:workflowId should fail due to invalid API Key', async (
359
357
  const response = await authOwnerAgent.delete(`/workflows/2`);
360
358
  expect(response.statusCode).toBe(401);
361
359
  });
362
- test('DELETE /workflows/:workflowId should fail due to non existing workflow', async () => {
360
+ test('DELETE /workflows/:id should fail due to non existing workflow', async () => {
363
361
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
364
362
  const authOwnerAgent = utils.createAgent(app, {
365
363
  apiPath: 'public',
@@ -370,7 +368,7 @@ test('DELETE /workflows/:workflowId should fail due to non existing workflow', a
370
368
  const response = await authOwnerAgent.delete(`/workflows/2`);
371
369
  expect(response.statusCode).toBe(404);
372
370
  });
373
- test('DELETE /workflows/:workflowId should delete the workflow', async () => {
371
+ test('DELETE /workflows/:id should delete the workflow', async () => {
374
372
  const member = await testDb.createUser({ globalRole: globalMemberRole, apiKey: (0, random_1.randomApiKey)() });
375
373
  const authAgent = utils.createAgent(app, {
376
374
  apiPath: 'public',
@@ -396,7 +394,7 @@ test('DELETE /workflows/:workflowId should delete the workflow', async () => {
396
394
  });
397
395
  expect(sharedWorkflow).toBeUndefined();
398
396
  });
399
- test('DELETE /workflows/:workflowId should delete non-owned workflow when owner', async () => {
397
+ test('DELETE /workflows/:id should delete non-owned workflow when owner', async () => {
400
398
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
401
399
  const member = await testDb.createUser({ globalRole: globalMemberRole });
402
400
  const authAgent = utils.createAgent(app, {
@@ -423,7 +421,7 @@ test('DELETE /workflows/:workflowId should delete non-owned workflow when owner'
423
421
  });
424
422
  expect(sharedWorkflow).toBeUndefined();
425
423
  });
426
- test('POST /workflows/:workflowId/activate should fail due to missing API Key', async () => {
424
+ test('POST /workflows/:id/activate should fail due to missing API Key', async () => {
427
425
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
428
426
  const authOwnerAgent = utils.createAgent(app, {
429
427
  apiPath: 'public',
@@ -434,7 +432,7 @@ test('POST /workflows/:workflowId/activate should fail due to missing API Key',
434
432
  const response = await authOwnerAgent.post(`/workflows/2/activate`);
435
433
  expect(response.statusCode).toBe(401);
436
434
  });
437
- test('POST /workflows/:workflowId/activate should fail due to invalid API Key', async () => {
435
+ test('POST /workflows/:id/activate should fail due to invalid API Key', async () => {
438
436
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
439
437
  owner.apiKey = 'abcXYZ';
440
438
  const authOwnerAgent = utils.createAgent(app, {
@@ -446,7 +444,7 @@ test('POST /workflows/:workflowId/activate should fail due to invalid API Key',
446
444
  const response = await authOwnerAgent.post(`/workflows/2/activate`);
447
445
  expect(response.statusCode).toBe(401);
448
446
  });
449
- test('POST /workflows/:workflowId/activate should fail due to non existing workflow', async () => {
447
+ test('POST /workflows/:id/activate should fail due to non existing workflow', async () => {
450
448
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
451
449
  const authOwnerAgent = utils.createAgent(app, {
452
450
  apiPath: 'public',
@@ -457,7 +455,7 @@ test('POST /workflows/:workflowId/activate should fail due to non existing workf
457
455
  const response = await authOwnerAgent.post(`/workflows/2/activate`);
458
456
  expect(response.statusCode).toBe(404);
459
457
  });
460
- test('POST /workflows/:workflowId/activate should fail due to trying to activate a workflow without a trigger', async () => {
458
+ test('POST /workflows/:id/activate should fail due to trying to activate a workflow without a trigger', async () => {
461
459
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
462
460
  const authOwnerAgent = utils.createAgent(app, {
463
461
  apiPath: 'public',
@@ -469,7 +467,7 @@ test('POST /workflows/:workflowId/activate should fail due to trying to activate
469
467
  const response = await authOwnerAgent.post(`/workflows/${workflow.id}/activate`);
470
468
  expect(response.statusCode).toBe(400);
471
469
  });
472
- test.skip('POST /workflows/:workflowId/activate should set workflow as active', async () => {
470
+ test.skip('POST /workflows/:id/activate should set workflow as active', async () => {
473
471
  const member = await testDb.createUser({ globalRole: globalMemberRole, apiKey: (0, random_1.randomApiKey)() });
474
472
  const authAgent = utils.createAgent(app, {
475
473
  apiPath: 'public',
@@ -500,7 +498,7 @@ test.skip('POST /workflows/:workflowId/activate should set workflow as active',
500
498
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.active).toBe(true);
501
499
  expect(await workflowRunner.isActive(workflow.id.toString())).toBe(true);
502
500
  });
503
- test.skip('POST /workflows/:workflowId/activate should set non-owned workflow as active when owner', async () => {
501
+ test.skip('POST /workflows/:id/activate should set non-owned workflow as active when owner', async () => {
504
502
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
505
503
  const member = await testDb.createUser({ globalRole: globalMemberRole });
506
504
  const authAgent = utils.createAgent(app, {
@@ -539,7 +537,7 @@ test.skip('POST /workflows/:workflowId/activate should set non-owned workflow as
539
537
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.active).toBe(true);
540
538
  expect(await workflowRunner.isActive(workflow.id.toString())).toBe(true);
541
539
  });
542
- test('POST /workflows/:workflowId/deactivate should fail due to missing API Key', async () => {
540
+ test('POST /workflows/:id/deactivate should fail due to missing API Key', async () => {
543
541
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
544
542
  const authOwnerAgent = utils.createAgent(app, {
545
543
  apiPath: 'public',
@@ -550,7 +548,7 @@ test('POST /workflows/:workflowId/deactivate should fail due to missing API Key'
550
548
  const response = await authOwnerAgent.post(`/workflows/2/deactivate`);
551
549
  expect(response.statusCode).toBe(401);
552
550
  });
553
- test('POST /workflows/:workflowId/deactivate should fail due to invalid API Key', async () => {
551
+ test('POST /workflows/:id/deactivate should fail due to invalid API Key', async () => {
554
552
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
555
553
  owner.apiKey = 'abcXYZ';
556
554
  const authOwnerAgent = utils.createAgent(app, {
@@ -562,7 +560,7 @@ test('POST /workflows/:workflowId/deactivate should fail due to invalid API Key'
562
560
  const response = await authOwnerAgent.post(`/workflows/2/deactivate`);
563
561
  expect(response.statusCode).toBe(401);
564
562
  });
565
- test('POST /workflows/:workflowId/deactivate should fail due to non existing workflow', async () => {
563
+ test('POST /workflows/:id/deactivate should fail due to non existing workflow', async () => {
566
564
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
567
565
  const authOwnerAgent = utils.createAgent(app, {
568
566
  apiPath: 'public',
@@ -573,7 +571,7 @@ test('POST /workflows/:workflowId/deactivate should fail due to non existing wor
573
571
  const response = await authOwnerAgent.post(`/workflows/2/deactivate`);
574
572
  expect(response.statusCode).toBe(404);
575
573
  });
576
- test('POST /workflows/:workflowId/deactivate should deactive workflow', async () => {
574
+ test('POST /workflows/:id/deactivate should deactive workflow', async () => {
577
575
  const member = await testDb.createUser({ globalRole: globalMemberRole, apiKey: (0, random_1.randomApiKey)() });
578
576
  const authAgent = utils.createAgent(app, {
579
577
  apiPath: 'public',
@@ -604,7 +602,7 @@ test('POST /workflows/:workflowId/deactivate should deactive workflow', async ()
604
602
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.active).toBe(false);
605
603
  expect(await workflowRunner.isActive(workflow.id.toString())).toBe(false);
606
604
  });
607
- test('POST /workflows/:workflowId/deactivate should deactive non-owned workflow when owner', async () => {
605
+ test('POST /workflows/:id/deactivate should deactive non-owned workflow when owner', async () => {
608
606
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
609
607
  const member = await testDb.createUser({ globalRole: globalMemberRole });
610
608
  const authAgent = utils.createAgent(app, {
@@ -651,7 +649,7 @@ test('POST /workflows should fail due to missing API Key', async () => {
651
649
  user: owner,
652
650
  version: 1,
653
651
  });
654
- const response = await authOwnerAgent.post(`/workflows`);
652
+ const response = await authOwnerAgent.post('/workflows');
655
653
  expect(response.statusCode).toBe(401);
656
654
  });
657
655
  test('POST /workflows should fail due to invalid API Key', async () => {
@@ -663,7 +661,7 @@ test('POST /workflows should fail due to invalid API Key', async () => {
663
661
  user: owner,
664
662
  version: 1,
665
663
  });
666
- const response = await authOwnerAgent.post(`/workflows`);
664
+ const response = await authOwnerAgent.post('/workflows');
667
665
  expect(response.statusCode).toBe(401);
668
666
  });
669
667
  test('POST /workflows should fail due to invalid body', async () => {
@@ -674,7 +672,7 @@ test('POST /workflows should fail due to invalid body', async () => {
674
672
  user: owner,
675
673
  version: 1,
676
674
  });
677
- const response = await authOwnerAgent.post(`/workflows`).send({});
675
+ const response = await authOwnerAgent.post('/workflows').send({});
678
676
  expect(response.statusCode).toBe(400);
679
677
  });
680
678
  test('POST /workflows should create workflow', async () => {
@@ -707,7 +705,7 @@ test('POST /workflows should create workflow', async () => {
707
705
  timezone: 'America/New_York',
708
706
  },
709
707
  };
710
- const response = await authAgent.post(`/workflows`).send(payload);
708
+ const response = await authAgent.post('/workflows').send(payload);
711
709
  expect(response.statusCode).toBe(200);
712
710
  const { id, name, nodes, connections, staticData, active, settings, createdAt, updatedAt } = response.body;
713
711
  expect(id).toBeDefined();
@@ -730,7 +728,7 @@ test('POST /workflows should create workflow', async () => {
730
728
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.createdAt.toISOString()).toBe(createdAt);
731
729
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.role).toEqual(workflowOwnerRole);
732
730
  });
733
- test('PUT /workflows/:workflowId should fail due to missing API Key', async () => {
731
+ test('PUT /workflows/:id should fail due to missing API Key', async () => {
734
732
  const owner = await testDb.createUser({ globalRole: globalOwnerRole });
735
733
  const authOwnerAgent = utils.createAgent(app, {
736
734
  apiPath: 'public',
@@ -741,7 +739,7 @@ test('PUT /workflows/:workflowId should fail due to missing API Key', async () =
741
739
  const response = await authOwnerAgent.put(`/workflows/1`);
742
740
  expect(response.statusCode).toBe(401);
743
741
  });
744
- test('PUT /workflows/:workflowId should fail due to invalid API Key', async () => {
742
+ test('PUT /workflows/:id should fail due to invalid API Key', async () => {
745
743
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
746
744
  owner.apiKey = 'abcXYZ';
747
745
  const authOwnerAgent = utils.createAgent(app, {
@@ -753,7 +751,7 @@ test('PUT /workflows/:workflowId should fail due to invalid API Key', async () =
753
751
  const response = await authOwnerAgent.put(`/workflows/1`).send({});
754
752
  expect(response.statusCode).toBe(401);
755
753
  });
756
- test('PUT /workflows/:workflowId should fail due to non existing workflow', async () => {
754
+ test('PUT /workflows/:id should fail due to non existing workflow', async () => {
757
755
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
758
756
  const authOwnerAgent = utils.createAgent(app, {
759
757
  apiPath: 'public',
@@ -785,7 +783,7 @@ test('PUT /workflows/:workflowId should fail due to non existing workflow', asyn
785
783
  });
786
784
  expect(response.statusCode).toBe(404);
787
785
  });
788
- test('PUT /workflows/:workflowId should fail due to invalid body', async () => {
786
+ test('PUT /workflows/:id should fail due to invalid body', async () => {
789
787
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
790
788
  const authOwnerAgent = utils.createAgent(app, {
791
789
  apiPath: 'public',
@@ -816,7 +814,7 @@ test('PUT /workflows/:workflowId should fail due to invalid body', async () => {
816
814
  });
817
815
  expect(response.statusCode).toBe(400);
818
816
  });
819
- test('PUT /workflows/:workflowId should update workflow', async () => {
817
+ test('PUT /workflows/:id should update workflow', async () => {
820
818
  const member = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
821
819
  const workflow = await testDb.createWorkflow({}, member);
822
820
  const authAgent = utils.createAgent(app, {
@@ -876,7 +874,7 @@ test('PUT /workflows/:workflowId should update workflow', async () => {
876
874
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.name).toBe(payload.name);
877
875
  expect(sharedWorkflow === null || sharedWorkflow === void 0 ? void 0 : sharedWorkflow.workflow.updatedAt.getTime()).toBeGreaterThan(workflow.updatedAt.getTime());
878
876
  });
879
- test('PUT /workflows/:workflowId should update non-owned workflow if owner', async () => {
877
+ test('PUT /workflows/:id should update non-owned workflow if owner', async () => {
880
878
  const owner = await testDb.createUser({ globalRole: globalOwnerRole, apiKey: (0, random_1.randomApiKey)() });
881
879
  const member = await testDb.createUser({ globalRole: globalMemberRole });
882
880
  const workflow = await testDb.createWorkflow({}, member);