n8n 1.94.0 → 1.95.1
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/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.js +6 -2
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/base-command.js +3 -3
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/execute-batch.js +11 -5
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/mfa/disable.js +1 -1
- package/dist/commands/mfa/disable.js.map +1 -1
- package/dist/constants.d.ts +0 -1
- package/dist/constants.js +1 -2
- package/dist/constants.js.map +1 -1
- package/dist/controllers/community-node-types.controller.d.ts +3 -3
- package/dist/controllers/community-node-types.controller.js +4 -4
- package/dist/controllers/community-node-types.controller.js.map +1 -1
- package/dist/controllers/mfa.controller.d.ts +8 -3
- package/dist/controllers/mfa.controller.js +16 -7
- package/dist/controllers/mfa.controller.js.map +1 -1
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/environments.ee/source-control/source-control-import.service.ee.d.ts +14 -12
- package/dist/environments.ee/source-control/source-control-import.service.ee.js +100 -18
- package/dist/environments.ee/source-control/source-control-import.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/source-control-scoped.service.d.ts +15 -0
- package/dist/environments.ee/source-control/source-control-scoped.service.js +103 -0
- package/dist/environments.ee/source-control/source-control-scoped.service.js.map +1 -0
- package/dist/environments.ee/source-control/source-control.service.ee.d.ts +1 -2
- package/dist/environments.ee/source-control/source-control.service.ee.js +31 -17
- package/dist/environments.ee/source-control/source-control.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/types/exportable-tags.d.ts +5 -0
- package/dist/{evaluation.ee/test-definitions.types.ee.js → environments.ee/source-control/types/exportable-tags.js} +1 -1
- package/dist/environments.ee/source-control/types/exportable-tags.js.map +1 -0
- package/dist/environments.ee/source-control/types/source-control-context.d.ts +7 -0
- package/dist/environments.ee/source-control/types/source-control-context.js +17 -0
- package/dist/environments.ee/source-control/types/source-control-context.js.map +1 -0
- package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.d.ts +0 -4
- package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js +11 -18
- package/dist/evaluation.ee/test-runner/evaluation-metrics.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/test-run-cleanup.service.ee.d.ts +8 -0
- package/dist/evaluation.ee/test-runner/test-run-cleanup.service.ee.js +34 -0
- package/dist/evaluation.ee/test-runner/test-run-cleanup.service.ee.js.map +1 -0
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +16 -29
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +274 -258
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/utils.ee.d.ts +2 -18
- package/dist/evaluation.ee/test-runner/utils.ee.js +10 -72
- package/dist/evaluation.ee/test-runner/utils.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +7 -10
- package/dist/evaluation.ee/test-runs.controller.ee.js +44 -36
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.types.ee.d.ts +19 -0
- package/dist/evaluation.ee/test-runs.types.ee.js +3 -0
- package/dist/evaluation.ee/test-runs.types.ee.js.map +1 -0
- package/dist/execution-lifecycle/execute-error-workflow.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/generic-helpers.d.ts +2 -2
- package/dist/generic-helpers.js.map +1 -1
- package/dist/interfaces.d.ts +8 -0
- package/dist/license/license.controller.d.ts +12 -0
- package/dist/license/license.service.d.ts +7 -1
- package/dist/license/license.service.js +9 -1
- package/dist/license/license.service.js.map +1 -1
- package/dist/license.d.ts +4 -3
- package/dist/license.js +13 -31
- package/dist/license.js.map +1 -1
- package/dist/metrics/license-metrics.service.js +5 -1
- package/dist/metrics/license-metrics.service.js.map +1 -1
- package/dist/mfa/mfa.service.d.ts +4 -4
- package/dist/mfa/mfa.service.js +11 -11
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/middlewares/list-query/filter.js +0 -4
- package/dist/middlewares/list-query/filter.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.js +6 -0
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/insights/insights-compaction.service.js +9 -3
- package/dist/modules/insights/insights-compaction.service.js.map +1 -1
- package/dist/push/index.d.ts +1 -0
- package/dist/push/index.js +33 -1
- package/dist/push/index.js.map +1 -1
- package/dist/server.d.ts +0 -1
- package/dist/server.js +0 -1
- package/dist/server.js.map +1 -1
- package/dist/services/community-node-types.service.d.ts +26 -10
- package/dist/services/community-node-types.service.js +29 -34
- package/dist/services/community-node-types.service.js.map +1 -1
- package/dist/services/community-packages.service.d.ts +5 -0
- package/dist/services/community-packages.service.js +34 -10
- package/dist/services/community-packages.service.js.map +1 -1
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/frontend.service.js +4 -0
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/hooks.service.d.ts +5 -6
- package/dist/services/hooks.service.js +3 -5
- package/dist/services/hooks.service.js.map +1 -1
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/user.service.js +1 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/utils/community-node-types-utils.d.ts +19 -0
- package/dist/utils/community-node-types-utils.js +13 -0
- package/dist/utils/community-node-types-utils.js.map +1 -0
- package/dist/utils/strapi-utils.d.ts +5 -0
- package/dist/utils/{community-nodes-request-utils.js → strapi-utils.js} +2 -2
- package/dist/utils/strapi-utils.js.map +1 -0
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +1 -1
- package/dist/workflows/workflow-execution.service.js +16 -3
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +1 -0
- package/dist/workflows/workflow.service.d.ts +1 -1
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +12 -8
- package/package.json +19 -19
- package/dist/evaluation.ee/metric.schema.d.ts +0 -15
- package/dist/evaluation.ee/metric.schema.js +0 -15
- package/dist/evaluation.ee/metric.schema.js.map +0 -1
- package/dist/evaluation.ee/test-definition.schema.d.ts +0 -54
- package/dist/evaluation.ee/test-definition.schema.js +0 -23
- package/dist/evaluation.ee/test-definition.schema.js.map +0 -1
- package/dist/evaluation.ee/test-definition.service.ee.d.ts +0 -43
- package/dist/evaluation.ee/test-definition.service.ee.js +0 -135
- package/dist/evaluation.ee/test-definition.service.ee.js.map +0 -1
- package/dist/evaluation.ee/test-definitions.controller.ee.d.ts +0 -36
- package/dist/evaluation.ee/test-definitions.controller.ee.js +0 -164
- package/dist/evaluation.ee/test-definitions.controller.ee.js.map +0 -1
- package/dist/evaluation.ee/test-definitions.types.ee.d.ts +0 -46
- package/dist/evaluation.ee/test-definitions.types.ee.js.map +0 -1
- package/dist/middlewares/list-query/dtos/test-definitions.filter.dto.d.ts +0 -5
- package/dist/middlewares/list-query/dtos/test-definitions.filter.dto.js +0 -28
- package/dist/middlewares/list-query/dtos/test-definitions.filter.dto.js.map +0 -1
- package/dist/utils/community-nodes-request-utils.d.ts +0 -2
- package/dist/utils/community-nodes-request-utils.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.95.1",
|
|
4
4
|
"description": "n8n Workflow Automation Tool",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"templates",
|
|
29
29
|
"dist",
|
|
30
30
|
"!dist/**/e2e.*",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"LICENSE_EE.md",
|
|
32
|
+
"LICENSE.md"
|
|
33
33
|
],
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@redocly/cli": "^1.28.5",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@n8n/localtunnel": "3.0.0",
|
|
73
73
|
"@n8n/typeorm": "0.3.20-12",
|
|
74
74
|
"@n8n_io/ai-assistant-sdk": "1.14.0",
|
|
75
|
-
"@n8n_io/license-sdk": "2.
|
|
75
|
+
"@n8n_io/license-sdk": "2.21.0",
|
|
76
76
|
"@oclif/core": "4.0.7",
|
|
77
77
|
"@rudderstack/rudder-sdk-node": "2.1.4",
|
|
78
78
|
"@sentry/node": "8.52.1",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"raw-body": "3.0.0",
|
|
127
127
|
"reflect-metadata": "0.2.2",
|
|
128
128
|
"replacestream": "4.0.3",
|
|
129
|
-
"samlify": "2.
|
|
129
|
+
"samlify": "2.10.0",
|
|
130
130
|
"semver": "7.5.4",
|
|
131
131
|
"shelljs": "0.8.5",
|
|
132
132
|
"simple-git": "3.17.0",
|
|
@@ -143,23 +143,23 @@
|
|
|
143
143
|
"xss": "1.0.15",
|
|
144
144
|
"yamljs": "0.3.0",
|
|
145
145
|
"zod": "3.24.1",
|
|
146
|
-
"@n8n/
|
|
147
|
-
"@n8n/
|
|
148
|
-
"@n8n/
|
|
146
|
+
"@n8n/ai-workflow-builder": "0.6.0",
|
|
147
|
+
"@n8n/backend-common": "^0.5.0",
|
|
148
|
+
"@n8n/api-types": "0.30.0",
|
|
149
149
|
"@n8n/client-oauth2": "0.25.0",
|
|
150
|
-
"@n8n/
|
|
151
|
-
"@n8n/
|
|
152
|
-
"@n8n/
|
|
150
|
+
"@n8n/db": "^0.6.0",
|
|
151
|
+
"@n8n/constants": "^0.4.0",
|
|
152
|
+
"@n8n/decorators": "0.6.0",
|
|
153
|
+
"@n8n/config": "1.40.0",
|
|
153
154
|
"@n8n/di": "0.5.0",
|
|
154
|
-
"@n8n/
|
|
155
|
+
"@n8n/integration-test-utils": "^0.2.0",
|
|
156
|
+
"@n8n/n8n-nodes-langchain": "1.95.0",
|
|
155
157
|
"@n8n/permissions": "0.25.0",
|
|
156
|
-
"@n8n/
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"n8n-
|
|
160
|
-
"n8n-
|
|
161
|
-
"n8n-nodes-base": "1.93.0",
|
|
162
|
-
"n8n-workflow": "1.92.0"
|
|
158
|
+
"@n8n/task-runner": "1.32.0",
|
|
159
|
+
"n8n-editor-ui": "1.95.1",
|
|
160
|
+
"n8n-core": "1.94.0",
|
|
161
|
+
"n8n-workflow": "1.93.0",
|
|
162
|
+
"n8n-nodes-base": "1.94.0"
|
|
163
163
|
},
|
|
164
164
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
165
165
|
"homepage": "https://n8n.io",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const testMetricCreateRequestBodySchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
}, "strict", z.ZodTypeAny, {
|
|
5
|
-
name: string;
|
|
6
|
-
}, {
|
|
7
|
-
name: string;
|
|
8
|
-
}>;
|
|
9
|
-
export declare const testMetricPatchRequestBodySchema: z.ZodObject<{
|
|
10
|
-
name: z.ZodString;
|
|
11
|
-
}, "strict", z.ZodTypeAny, {
|
|
12
|
-
name: string;
|
|
13
|
-
}, {
|
|
14
|
-
name: string;
|
|
15
|
-
}>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testMetricPatchRequestBodySchema = exports.testMetricCreateRequestBodySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.testMetricCreateRequestBodySchema = zod_1.z
|
|
6
|
-
.object({
|
|
7
|
-
name: zod_1.z.string().min(1).max(255),
|
|
8
|
-
})
|
|
9
|
-
.strict();
|
|
10
|
-
exports.testMetricPatchRequestBodySchema = zod_1.z
|
|
11
|
-
.object({
|
|
12
|
-
name: zod_1.z.string().min(1).max(255),
|
|
13
|
-
})
|
|
14
|
-
.strict();
|
|
15
|
-
//# sourceMappingURL=metric.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"metric.schema.js","sourceRoot":"","sources":["../../src/evaluation.ee/metric.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iCAAiC,GAAG,OAAC;KAChD,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CAChC,CAAC;KACD,MAAM,EAAE,CAAC;AAEE,QAAA,gCAAgC,GAAG,OAAC;KAC/C,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;CAChC,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const testDefinitionCreateRequestBodySchema: z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
workflowId: z.ZodString;
|
|
5
|
-
description: z.ZodOptional<z.ZodString>;
|
|
6
|
-
evaluationWorkflowId: z.ZodOptional<z.ZodString>;
|
|
7
|
-
annotationTagId: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, "strict", z.ZodTypeAny, {
|
|
9
|
-
workflowId: string;
|
|
10
|
-
name: string;
|
|
11
|
-
description?: string | undefined;
|
|
12
|
-
evaluationWorkflowId?: string | undefined;
|
|
13
|
-
annotationTagId?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
workflowId: string;
|
|
16
|
-
name: string;
|
|
17
|
-
description?: string | undefined;
|
|
18
|
-
evaluationWorkflowId?: string | undefined;
|
|
19
|
-
annotationTagId?: string | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const testDefinitionPatchRequestBodySchema: z.ZodObject<{
|
|
22
|
-
name: z.ZodOptional<z.ZodString>;
|
|
23
|
-
description: z.ZodOptional<z.ZodString>;
|
|
24
|
-
evaluationWorkflowId: z.ZodOptional<z.ZodString>;
|
|
25
|
-
annotationTagId: z.ZodOptional<z.ZodString>;
|
|
26
|
-
mockedNodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
-
id: z.ZodString;
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
}, {
|
|
33
|
-
id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
}>, "many">>;
|
|
36
|
-
}, "strict", z.ZodTypeAny, {
|
|
37
|
-
description?: string | undefined;
|
|
38
|
-
name?: string | undefined;
|
|
39
|
-
evaluationWorkflowId?: string | undefined;
|
|
40
|
-
annotationTagId?: string | undefined;
|
|
41
|
-
mockedNodes?: {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
}[] | undefined;
|
|
45
|
-
}, {
|
|
46
|
-
description?: string | undefined;
|
|
47
|
-
name?: string | undefined;
|
|
48
|
-
evaluationWorkflowId?: string | undefined;
|
|
49
|
-
annotationTagId?: string | undefined;
|
|
50
|
-
mockedNodes?: {
|
|
51
|
-
id: string;
|
|
52
|
-
name: string;
|
|
53
|
-
}[] | undefined;
|
|
54
|
-
}>;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testDefinitionPatchRequestBodySchema = exports.testDefinitionCreateRequestBodySchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.testDefinitionCreateRequestBodySchema = zod_1.z
|
|
6
|
-
.object({
|
|
7
|
-
name: zod_1.z.string().min(1).max(255),
|
|
8
|
-
workflowId: zod_1.z.string().min(1),
|
|
9
|
-
description: zod_1.z.string().optional(),
|
|
10
|
-
evaluationWorkflowId: zod_1.z.string().min(1).optional(),
|
|
11
|
-
annotationTagId: zod_1.z.string().min(1).optional(),
|
|
12
|
-
})
|
|
13
|
-
.strict();
|
|
14
|
-
exports.testDefinitionPatchRequestBodySchema = zod_1.z
|
|
15
|
-
.object({
|
|
16
|
-
name: zod_1.z.string().min(1).max(255).optional(),
|
|
17
|
-
description: zod_1.z.string().optional(),
|
|
18
|
-
evaluationWorkflowId: zod_1.z.string().min(1).optional(),
|
|
19
|
-
annotationTagId: zod_1.z.string().min(1).optional(),
|
|
20
|
-
mockedNodes: zod_1.z.array(zod_1.z.object({ id: zod_1.z.string(), name: zod_1.z.string() })).optional(),
|
|
21
|
-
})
|
|
22
|
-
.strict();
|
|
23
|
-
//# sourceMappingURL=test-definition.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-definition.schema.js","sourceRoot":"","sources":["../../src/evaluation.ee/test-definition.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qCAAqC,GAAG,OAAC;KACpD,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAChC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC;KACD,MAAM,EAAE,CAAC;AAEE,QAAA,oCAAoC,GAAG,OAAC;KACnD,MAAM,CAAC;IACP,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,oBAAoB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAClD,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC7C,WAAW,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC/E,CAAC;KACD,MAAM,EAAE,CAAC"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { TestDefinition } from '@n8n/db';
|
|
2
|
-
import { AnnotationTagRepository, TestDefinitionRepository } from '@n8n/db';
|
|
3
|
-
import type { ListQuery } from '../requests';
|
|
4
|
-
import { Telemetry } from '../telemetry';
|
|
5
|
-
type TestDefinitionLike = Omit<Partial<TestDefinition>, 'workflow' | 'evaluationWorkflow' | 'annotationTag' | 'metrics'> & {
|
|
6
|
-
workflow?: {
|
|
7
|
-
id: string;
|
|
8
|
-
};
|
|
9
|
-
evaluationWorkflow?: {
|
|
10
|
-
id: string;
|
|
11
|
-
};
|
|
12
|
-
annotationTag?: {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
export declare class TestDefinitionService {
|
|
17
|
-
private testDefinitionRepository;
|
|
18
|
-
private annotationTagRepository;
|
|
19
|
-
private telemetry;
|
|
20
|
-
constructor(testDefinitionRepository: TestDefinitionRepository, annotationTagRepository: AnnotationTagRepository, telemetry: Telemetry);
|
|
21
|
-
private toEntityLike;
|
|
22
|
-
toEntity(attrs: {
|
|
23
|
-
name?: string;
|
|
24
|
-
workflowId?: string;
|
|
25
|
-
evaluationWorkflowId?: string;
|
|
26
|
-
annotationTagId?: string;
|
|
27
|
-
id?: string;
|
|
28
|
-
}): TestDefinition;
|
|
29
|
-
findOne(id: string, accessibleWorkflowIds: string[]): Promise<TestDefinition | null>;
|
|
30
|
-
save(test: TestDefinition): Promise<TestDefinition>;
|
|
31
|
-
update(id: string, attrs: TestDefinitionLike): Promise<void>;
|
|
32
|
-
delete(id: string, accessibleWorkflowIds: string[]): Promise<void>;
|
|
33
|
-
getMany(options: ListQuery.Options, accessibleWorkflowIds?: string[]): Promise<{
|
|
34
|
-
tests: never[];
|
|
35
|
-
count: number;
|
|
36
|
-
testDefinitions?: undefined;
|
|
37
|
-
} | {
|
|
38
|
-
testDefinitions: TestDefinition[];
|
|
39
|
-
count: number;
|
|
40
|
-
tests?: undefined;
|
|
41
|
-
}>;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.TestDefinitionService = void 0;
|
|
13
|
-
const db_1 = require("@n8n/db");
|
|
14
|
-
const di_1 = require("@n8n/di");
|
|
15
|
-
const bad_request_error_1 = require("../errors/response-errors/bad-request.error");
|
|
16
|
-
const not_found_error_1 = require("../errors/response-errors/not-found.error");
|
|
17
|
-
const generic_helpers_1 = require("../generic-helpers");
|
|
18
|
-
const telemetry_1 = require("../telemetry");
|
|
19
|
-
let TestDefinitionService = class TestDefinitionService {
|
|
20
|
-
constructor(testDefinitionRepository, annotationTagRepository, telemetry) {
|
|
21
|
-
this.testDefinitionRepository = testDefinitionRepository;
|
|
22
|
-
this.annotationTagRepository = annotationTagRepository;
|
|
23
|
-
this.telemetry = telemetry;
|
|
24
|
-
}
|
|
25
|
-
toEntityLike(attrs) {
|
|
26
|
-
const entity = {};
|
|
27
|
-
if (attrs.id) {
|
|
28
|
-
entity.id = attrs.id;
|
|
29
|
-
}
|
|
30
|
-
if (attrs.name) {
|
|
31
|
-
entity.name = attrs.name?.trim();
|
|
32
|
-
}
|
|
33
|
-
if (attrs.description) {
|
|
34
|
-
entity.description = attrs.description.trim();
|
|
35
|
-
}
|
|
36
|
-
if (attrs.workflowId) {
|
|
37
|
-
entity.workflow = {
|
|
38
|
-
id: attrs.workflowId,
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
if (attrs.evaluationWorkflowId) {
|
|
42
|
-
entity.evaluationWorkflow = {
|
|
43
|
-
id: attrs.evaluationWorkflowId,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
if (attrs.annotationTagId) {
|
|
47
|
-
entity.annotationTag = {
|
|
48
|
-
id: attrs.annotationTagId,
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
if (attrs.mockedNodes) {
|
|
52
|
-
entity.mockedNodes = attrs.mockedNodes;
|
|
53
|
-
}
|
|
54
|
-
return entity;
|
|
55
|
-
}
|
|
56
|
-
toEntity(attrs) {
|
|
57
|
-
const entity = this.toEntityLike(attrs);
|
|
58
|
-
return this.testDefinitionRepository.create(entity);
|
|
59
|
-
}
|
|
60
|
-
async findOne(id, accessibleWorkflowIds) {
|
|
61
|
-
return await this.testDefinitionRepository.getOne(id, accessibleWorkflowIds);
|
|
62
|
-
}
|
|
63
|
-
async save(test) {
|
|
64
|
-
await (0, generic_helpers_1.validateEntity)(test);
|
|
65
|
-
return await this.testDefinitionRepository.save(test);
|
|
66
|
-
}
|
|
67
|
-
async update(id, attrs) {
|
|
68
|
-
const existingTestDefinition = await this.testDefinitionRepository.findOneOrFail({
|
|
69
|
-
where: {
|
|
70
|
-
id,
|
|
71
|
-
},
|
|
72
|
-
relations: ['workflow'],
|
|
73
|
-
});
|
|
74
|
-
if (attrs.name) {
|
|
75
|
-
const updatedTest = this.toEntity(attrs);
|
|
76
|
-
await (0, generic_helpers_1.validateEntity)(updatedTest);
|
|
77
|
-
}
|
|
78
|
-
if (attrs.annotationTagId) {
|
|
79
|
-
const annotationTagExists = await this.annotationTagRepository.exists({
|
|
80
|
-
where: {
|
|
81
|
-
id: attrs.annotationTagId,
|
|
82
|
-
},
|
|
83
|
-
});
|
|
84
|
-
if (!annotationTagExists) {
|
|
85
|
-
throw new bad_request_error_1.BadRequestError('Annotation tag not found');
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (attrs.mockedNodes && attrs.mockedNodes.length > 0) {
|
|
89
|
-
const existingNodeNames = new Map(existingTestDefinition.workflow.nodes.map((n) => [n.name, n]));
|
|
90
|
-
const existingNodeIds = new Map(existingTestDefinition.workflow.nodes.map((n) => [n.id, n]));
|
|
91
|
-
attrs.mockedNodes = attrs.mockedNodes.filter((node) => existingNodeIds.has(node.id) || (node.name && existingNodeNames.has(node.name)));
|
|
92
|
-
attrs.mockedNodes = attrs.mockedNodes.map((node) => {
|
|
93
|
-
return {
|
|
94
|
-
id: node.id ?? (node.name && existingNodeNames.get(node.name)?.id),
|
|
95
|
-
name: node.name ?? (node.id && existingNodeIds.get(node.id)?.name),
|
|
96
|
-
};
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
const queryResult = await this.testDefinitionRepository.update(id, this.toEntityLike(attrs));
|
|
100
|
-
if (queryResult.affected === 0) {
|
|
101
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
102
|
-
}
|
|
103
|
-
if (attrs.annotationTagId && attrs.annotationTagId !== existingTestDefinition.annotationTagId) {
|
|
104
|
-
this.telemetry.track('User added tag to test', {
|
|
105
|
-
test_id: id,
|
|
106
|
-
tag_id: attrs.annotationTagId,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
if (attrs.evaluationWorkflowId &&
|
|
110
|
-
existingTestDefinition.evaluationWorkflowId !== attrs.evaluationWorkflowId) {
|
|
111
|
-
this.telemetry.track('User added evaluation workflow to test', {
|
|
112
|
-
test_id: id,
|
|
113
|
-
subworkflow_id: attrs.evaluationWorkflowId,
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
async delete(id, accessibleWorkflowIds) {
|
|
118
|
-
const deleteResult = await this.testDefinitionRepository.deleteById(id, accessibleWorkflowIds);
|
|
119
|
-
if (deleteResult.affected === 0) {
|
|
120
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
121
|
-
}
|
|
122
|
-
this.telemetry.track('User deleted a test', { test_id: id });
|
|
123
|
-
}
|
|
124
|
-
async getMany(options, accessibleWorkflowIds = []) {
|
|
125
|
-
return await this.testDefinitionRepository.getMany(accessibleWorkflowIds, options);
|
|
126
|
-
}
|
|
127
|
-
};
|
|
128
|
-
exports.TestDefinitionService = TestDefinitionService;
|
|
129
|
-
exports.TestDefinitionService = TestDefinitionService = __decorate([
|
|
130
|
-
(0, di_1.Service)(),
|
|
131
|
-
__metadata("design:paramtypes", [db_1.TestDefinitionRepository,
|
|
132
|
-
db_1.AnnotationTagRepository,
|
|
133
|
-
telemetry_1.Telemetry])
|
|
134
|
-
], TestDefinitionService);
|
|
135
|
-
//# sourceMappingURL=test-definition.service.ee.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-definition.service.ee.js","sourceRoot":"","sources":["../../src/evaluation.ee/test-definition.service.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,gCAA4E;AAC5E,gCAAkC;AAElC,kFAA6E;AAC7E,8EAAyE;AACzE,uDAAmD;AAEnD,2CAAwC;AAYjC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IACjC,YACS,wBAAkD,EAClD,uBAAgD,EAChD,SAAoB;QAFpB,6BAAwB,GAAxB,wBAAwB,CAA0B;QAClD,4BAAuB,GAAvB,uBAAuB,CAAyB;QAChD,cAAS,GAAT,SAAS,CAAW;IAC1B,CAAC;IAEI,YAAY,CAAC,KAQpB;QACA,MAAM,MAAM,GAAuB,EAAE,CAAC;QAEtC,IAAI,KAAK,CAAC,EAAE,EAAE,CAAC;YACd,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;QACtB,CAAC;QAED,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YAChB,MAAM,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC;QAClC,CAAC;QAED,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC;YACvB,MAAM,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAC/C,CAAC;QAED,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC;YACtB,MAAM,CAAC,QAAQ,GAAG;gBACjB,EAAE,EAAE,KAAK,CAAC,UAAU;aACpB,CAAC;QACH,CAAC;QAED,IAAI,KAAK,CAAC,oBAAoB,EAAE,CAAC;YAChC,MAAM,CAAC,kBAAkB,GAAG;gBAC3B,EAAE,EAAE,KAAK,CAAC,oBAAoB;aAC9B,CAAC;QACH,CAAC;QAED,IAAI,KAAK,CAAC,eAAe,EAAE,CAAC;YAC3B,MA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CAAC,OAAO,CAAC,OAA0B,EAAE,wBAAkC,EAAE;QAC7E,OAAO,MAAM,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACD,CAAA;AAlKY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,YAAO,GAAE;qCAG0B,6BAAwB;QACzB,4BAAuB;QACrC,qBAAS;GAJjB,qBAAqB,CAkKjC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import express from 'express';
|
|
2
|
-
import { TestRunnerService } from '../evaluation.ee/test-runner/test-runner.service.ee';
|
|
3
|
-
import { TestDefinitionService } from './test-definition.service.ee';
|
|
4
|
-
import { TestDefinitionsRequest } from './test-definitions.types.ee';
|
|
5
|
-
export declare class TestDefinitionsController {
|
|
6
|
-
private readonly testDefinitionService;
|
|
7
|
-
private readonly testRunnerService;
|
|
8
|
-
constructor(testDefinitionService: TestDefinitionService, testRunnerService: TestRunnerService);
|
|
9
|
-
getMany(req: TestDefinitionsRequest.GetMany): Promise<{
|
|
10
|
-
tests: never[];
|
|
11
|
-
count: number;
|
|
12
|
-
testDefinitions?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
testDefinitions: import("@n8n/db").TestDefinition[];
|
|
15
|
-
count: number;
|
|
16
|
-
tests?: undefined;
|
|
17
|
-
}>;
|
|
18
|
-
getOne(req: TestDefinitionsRequest.GetOne): Promise<import("@n8n/db").TestDefinition>;
|
|
19
|
-
create(req: TestDefinitionsRequest.Create, res: express.Response): Promise<import("@n8n/db").TestDefinition | undefined>;
|
|
20
|
-
delete(req: TestDefinitionsRequest.Delete): Promise<{
|
|
21
|
-
success: boolean;
|
|
22
|
-
}>;
|
|
23
|
-
patch(req: TestDefinitionsRequest.Patch, res: express.Response): Promise<import("@n8n/db").TestDefinition | undefined>;
|
|
24
|
-
runTest(req: TestDefinitionsRequest.Run, res: express.Response): Promise<void>;
|
|
25
|
-
exampleEvaluationInput(req: TestDefinitionsRequest.ExampleEvaluationInput): Promise<{
|
|
26
|
-
annotations: {
|
|
27
|
-
vote: import("n8n-workflow").AnnotationVote | null | undefined;
|
|
28
|
-
tags: Pick<import("@n8n/db").AnnotationTagEntity, "id" | "name">[] | undefined;
|
|
29
|
-
highlightedData: {
|
|
30
|
-
[k: string]: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
originalExecution: Record<string, any>;
|
|
34
|
-
newExecution: Record<string, any>;
|
|
35
|
-
} | null>;
|
|
36
|
-
}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.TestDefinitionsController = void 0;
|
|
16
|
-
const decorators_1 = require("@n8n/decorators");
|
|
17
|
-
const express_1 = __importDefault(require("express"));
|
|
18
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
19
|
-
const node_assert_1 = __importDefault(require("node:assert"));
|
|
20
|
-
const forbidden_error_1 = require("../errors/response-errors/forbidden.error");
|
|
21
|
-
const not_found_error_1 = require("../errors/response-errors/not-found.error");
|
|
22
|
-
const test_definition_schema_1 = require("../evaluation.ee/test-definition.schema");
|
|
23
|
-
const test_runner_service_ee_1 = require("../evaluation.ee/test-runner/test-runner.service.ee");
|
|
24
|
-
const middlewares_1 = require("../middlewares");
|
|
25
|
-
const workflows_service_1 = require("../public-api/v1/handlers/workflows/workflows.service");
|
|
26
|
-
const test_definition_service_ee_1 = require("./test-definition.service.ee");
|
|
27
|
-
let TestDefinitionsController = class TestDefinitionsController {
|
|
28
|
-
constructor(testDefinitionService, testRunnerService) {
|
|
29
|
-
this.testDefinitionService = testDefinitionService;
|
|
30
|
-
this.testRunnerService = testRunnerService;
|
|
31
|
-
}
|
|
32
|
-
async getMany(req) {
|
|
33
|
-
const userAccessibleWorkflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
34
|
-
try {
|
|
35
|
-
return await this.testDefinitionService.getMany(req.listQueryOptions, userAccessibleWorkflowIds);
|
|
36
|
-
}
|
|
37
|
-
catch (error) {
|
|
38
|
-
if (error instanceof n8n_workflow_1.UserError)
|
|
39
|
-
throw new forbidden_error_1.ForbiddenError(error.message);
|
|
40
|
-
throw error;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
async getOne(req) {
|
|
44
|
-
const { id: testDefinitionId } = req.params;
|
|
45
|
-
const userAccessibleWorkflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
46
|
-
const testDefinition = await this.testDefinitionService.findOne(testDefinitionId, userAccessibleWorkflowIds);
|
|
47
|
-
if (!testDefinition)
|
|
48
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
49
|
-
return testDefinition;
|
|
50
|
-
}
|
|
51
|
-
async create(req, res) {
|
|
52
|
-
const bodyParseResult = test_definition_schema_1.testDefinitionCreateRequestBodySchema.safeParse(req.body);
|
|
53
|
-
if (!bodyParseResult.success) {
|
|
54
|
-
res.status(400).json({ errors: bodyParseResult.error.errors });
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const userAccessibleWorkflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
58
|
-
if (!userAccessibleWorkflowIds.includes(req.body.workflowId)) {
|
|
59
|
-
throw new forbidden_error_1.ForbiddenError('User does not have access to the workflow');
|
|
60
|
-
}
|
|
61
|
-
if (req.body.evaluationWorkflowId &&
|
|
62
|
-
!userAccessibleWorkflowIds.includes(req.body.evaluationWorkflowId)) {
|
|
63
|
-
throw new forbidden_error_1.ForbiddenError('User does not have access to the evaluation workflow');
|
|
64
|
-
}
|
|
65
|
-
return await this.testDefinitionService.save(this.testDefinitionService.toEntity(bodyParseResult.data));
|
|
66
|
-
}
|
|
67
|
-
async delete(req) {
|
|
68
|
-
const { id: testDefinitionId } = req.params;
|
|
69
|
-
const userAccessibleWorkflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
70
|
-
if (userAccessibleWorkflowIds.length === 0)
|
|
71
|
-
throw new forbidden_error_1.ForbiddenError('User does not have access to any workflows');
|
|
72
|
-
await this.testDefinitionService.delete(testDefinitionId, userAccessibleWorkflowIds);
|
|
73
|
-
return { success: true };
|
|
74
|
-
}
|
|
75
|
-
async patch(req, res) {
|
|
76
|
-
const { id: testDefinitionId } = req.params;
|
|
77
|
-
const bodyParseResult = test_definition_schema_1.testDefinitionPatchRequestBodySchema.safeParse(req.body);
|
|
78
|
-
if (!bodyParseResult.success) {
|
|
79
|
-
res.status(400).json({ errors: bodyParseResult.error.errors });
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
const userAccessibleWorkflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
83
|
-
if (userAccessibleWorkflowIds.length === 0)
|
|
84
|
-
throw new forbidden_error_1.ForbiddenError('User does not have access to any workflows');
|
|
85
|
-
const existingTest = await this.testDefinitionService.findOne(testDefinitionId, userAccessibleWorkflowIds);
|
|
86
|
-
if (!existingTest)
|
|
87
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
88
|
-
if (req.body.evaluationWorkflowId &&
|
|
89
|
-
!userAccessibleWorkflowIds.includes(req.body.evaluationWorkflowId)) {
|
|
90
|
-
throw new forbidden_error_1.ForbiddenError('User does not have access to the evaluation workflow');
|
|
91
|
-
}
|
|
92
|
-
await this.testDefinitionService.update(testDefinitionId, req.body);
|
|
93
|
-
const testDefinition = await this.testDefinitionService.findOne(testDefinitionId, userAccessibleWorkflowIds);
|
|
94
|
-
(0, node_assert_1.default)(testDefinition, 'Test definition not found');
|
|
95
|
-
return testDefinition;
|
|
96
|
-
}
|
|
97
|
-
async runTest(req, res) {
|
|
98
|
-
const { id: testDefinitionId } = req.params;
|
|
99
|
-
const workflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
100
|
-
const testDefinition = await this.testDefinitionService.findOne(testDefinitionId, workflowIds);
|
|
101
|
-
if (!testDefinition)
|
|
102
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
103
|
-
void this.testRunnerService.runTest(req.user, testDefinition);
|
|
104
|
-
res.status(202).json({ success: true });
|
|
105
|
-
}
|
|
106
|
-
async exampleEvaluationInput(req) {
|
|
107
|
-
const { id: testDefinitionId } = req.params;
|
|
108
|
-
const { annotationTagId } = req.query;
|
|
109
|
-
const workflowIds = await (0, workflows_service_1.getSharedWorkflowIds)(req.user, ['workflow:read']);
|
|
110
|
-
const testDefinition = await this.testDefinitionService.findOne(testDefinitionId, workflowIds);
|
|
111
|
-
if (!testDefinition)
|
|
112
|
-
throw new not_found_error_1.NotFoundError('Test definition not found');
|
|
113
|
-
return await this.testRunnerService.getExampleEvaluationInputData(testDefinition, annotationTagId);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
exports.TestDefinitionsController = TestDefinitionsController;
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, decorators_1.Get)('/', { middlewares: middlewares_1.listQueryMiddleware }),
|
|
119
|
-
__metadata("design:type", Function),
|
|
120
|
-
__metadata("design:paramtypes", [Object]),
|
|
121
|
-
__metadata("design:returntype", Promise)
|
|
122
|
-
], TestDefinitionsController.prototype, "getMany", null);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, decorators_1.Get)('/:id'),
|
|
125
|
-
__metadata("design:type", Function),
|
|
126
|
-
__metadata("design:paramtypes", [Object]),
|
|
127
|
-
__metadata("design:returntype", Promise)
|
|
128
|
-
], TestDefinitionsController.prototype, "getOne", null);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, decorators_1.Post)('/'),
|
|
131
|
-
__metadata("design:type", Function),
|
|
132
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
133
|
-
__metadata("design:returntype", Promise)
|
|
134
|
-
], TestDefinitionsController.prototype, "create", null);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, decorators_1.Delete)('/:id'),
|
|
137
|
-
__metadata("design:type", Function),
|
|
138
|
-
__metadata("design:paramtypes", [Object]),
|
|
139
|
-
__metadata("design:returntype", Promise)
|
|
140
|
-
], TestDefinitionsController.prototype, "delete", null);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, decorators_1.Patch)('/:id'),
|
|
143
|
-
__metadata("design:type", Function),
|
|
144
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
145
|
-
__metadata("design:returntype", Promise)
|
|
146
|
-
], TestDefinitionsController.prototype, "patch", null);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, decorators_1.Post)('/:id/run'),
|
|
149
|
-
__metadata("design:type", Function),
|
|
150
|
-
__metadata("design:paramtypes", [Object, Object]),
|
|
151
|
-
__metadata("design:returntype", Promise)
|
|
152
|
-
], TestDefinitionsController.prototype, "runTest", null);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, decorators_1.Get)('/:id/example-evaluation-input'),
|
|
155
|
-
__metadata("design:type", Function),
|
|
156
|
-
__metadata("design:paramtypes", [Object]),
|
|
157
|
-
__metadata("design:returntype", Promise)
|
|
158
|
-
], TestDefinitionsController.prototype, "exampleEvaluationInput", null);
|
|
159
|
-
exports.TestDefinitionsController = TestDefinitionsController = __decorate([
|
|
160
|
-
(0, decorators_1.RestController)('/evaluation/test-definitions'),
|
|
161
|
-
__metadata("design:paramtypes", [test_definition_service_ee_1.TestDefinitionService,
|
|
162
|
-
test_runner_service_ee_1.TestRunnerService])
|
|
163
|
-
], TestDefinitionsController);
|
|
164
|
-
//# sourceMappingURL=test-definitions.controller.ee.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-definitions.controller.ee.js","sourceRoot":"","sources":["../../src/evaluation.ee/test-definitions.controller.ee.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAA2E;AAC3E,sDAA8B;AAC9B,+CAAyC;AACzC,8DAAiC;AAEjC,8EAA0E;AAC1E,8EAAyE;AACzE,mFAGgD;AAChD,+FAAuF;AACvF,+CAAoD;AACpD,4FAA4F;AAE5F,6EAAqE;AAI9D,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IACrC,YACkB,qBAA4C,EAC5C,iBAAoC;QADpC,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sBAAiB,GAAjB,iBAAiB,CAAmB;IACnD,CAAC;IAGE,AAAN,KAAK,CAAC,OAAO,CAAC,GAAmC;QAChD,MAAM,yBAAyB,GAAG,MAAM,IAAA,wCAAoB,EAAC,GAAG,CAAC,IAAI,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;QAE1F,IAAI,CAAC;YACJ,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,OAAO,CAC9C,GAAG,CAAC,gBAAgB,EACpB,yBAAyB,CACzB,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YAChB,IAAI,KAAK,YAAY,wBAAS;gBAAE,MAAM,IAAI,gCAAc,CAAC,KAAK,CAAC,OAAO,CA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1C,yBAAyB,CAsJrC"}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { MockedNodeItem } from '@n8n/db';
|
|
2
|
-
import type { AuthenticatedRequest, ListQuery } from '../requests';
|
|
3
|
-
export declare namespace TestDefinitionsRequest {
|
|
4
|
-
namespace RouteParams {
|
|
5
|
-
type TestId = {
|
|
6
|
-
id: string;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
type GetOne = AuthenticatedRequest<RouteParams.TestId>;
|
|
10
|
-
type GetMany = AuthenticatedRequest<{}, {}, {}, ListQuery.Params> & {
|
|
11
|
-
listQueryOptions: ListQuery.Options;
|
|
12
|
-
};
|
|
13
|
-
type Create = AuthenticatedRequest<{}, {}, {
|
|
14
|
-
name: string;
|
|
15
|
-
workflowId: string;
|
|
16
|
-
evaluationWorkflowId?: string;
|
|
17
|
-
}>;
|
|
18
|
-
type Patch = AuthenticatedRequest<RouteParams.TestId, {}, {
|
|
19
|
-
name?: string;
|
|
20
|
-
evaluationWorkflowId?: string;
|
|
21
|
-
annotationTagId?: string;
|
|
22
|
-
mockedNodes?: MockedNodeItem[];
|
|
23
|
-
}>;
|
|
24
|
-
type Delete = AuthenticatedRequest<RouteParams.TestId>;
|
|
25
|
-
type Run = AuthenticatedRequest<RouteParams.TestId>;
|
|
26
|
-
type ExampleEvaluationInput = AuthenticatedRequest<RouteParams.TestId, {}, {}, {
|
|
27
|
-
annotationTagId: string;
|
|
28
|
-
}>;
|
|
29
|
-
}
|
|
30
|
-
export declare namespace TestRunsRequest {
|
|
31
|
-
namespace RouteParams {
|
|
32
|
-
type TestId = {
|
|
33
|
-
testDefinitionId: string;
|
|
34
|
-
};
|
|
35
|
-
type TestRunId = {
|
|
36
|
-
id: string;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
type GetMany = AuthenticatedRequest<RouteParams.TestId, {}, {}, ListQuery.Params> & {
|
|
40
|
-
listQueryOptions: ListQuery.Options;
|
|
41
|
-
};
|
|
42
|
-
type GetOne = AuthenticatedRequest<RouteParams.TestId & RouteParams.TestRunId>;
|
|
43
|
-
type Delete = AuthenticatedRequest<RouteParams.TestId & RouteParams.TestRunId>;
|
|
44
|
-
type Cancel = AuthenticatedRequest<RouteParams.TestId & RouteParams.TestRunId>;
|
|
45
|
-
type GetCases = AuthenticatedRequest<RouteParams.TestId & RouteParams.TestRunId>;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"test-definitions.types.ee.js","sourceRoot":"","sources":["../../src/evaluation.ee/test-definitions.types.ee.ts"],"names":[],"mappings":""}
|