@n8n/engine 0.11.1 → 0.13.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/admittance/admittance-rejected.error.d.ts +4 -0
- package/dist/admittance/admittance-rejected.error.js +13 -0
- package/dist/admittance/admittance-rejected.error.js.map +1 -0
- package/dist/admittance/admittance.types.d.ts +12 -0
- package/dist/admittance/admittance.types.js +3 -0
- package/dist/admittance/admittance.types.js.map +1 -0
- package/dist/admittance/allow-all-admittance.d.ts +4 -0
- package/dist/admittance/allow-all-admittance.js +10 -0
- package/dist/admittance/allow-all-admittance.js.map +1 -0
- package/dist/admittance/index.d.ts +3 -0
- package/dist/admittance/index.js +8 -0
- package/dist/admittance/index.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +3 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/json.d.ts +4 -0
- package/dist/common/json.js +3 -0
- package/dist/common/json.js.map +1 -0
- package/dist/database/data-source.d.ts +3 -0
- package/dist/database/data-source.js +19 -0
- package/dist/database/data-source.js.map +1 -0
- package/dist/database/entities/index.d.ts +5 -0
- package/dist/database/entities/index.js +9 -0
- package/dist/database/entities/index.js.map +1 -0
- package/dist/database/entities/workflow-execution.entity.d.ts +15 -0
- package/dist/database/entities/workflow-execution.entity.js +78 -0
- package/dist/database/entities/workflow-execution.entity.js.map +1 -0
- package/dist/database/entities/workflow-step-execution.entity.d.ts +10 -0
- package/dist/database/entities/workflow-step-execution.entity.js +62 -0
- package/dist/database/entities/workflow-step-execution.entity.js.map +1 -0
- package/dist/database/generate-id.d.ts +1 -0
- package/dist/database/generate-id.js +8 -0
- package/dist/database/generate-id.js.map +1 -0
- package/dist/database/index.d.ts +4 -0
- package/dist/database/index.js +13 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/migrations/1778529600000-CreateWorkflowExecution.d.ts +5 -0
- package/dist/database/migrations/1778529600000-CreateWorkflowExecution.js +48 -0
- package/dist/database/migrations/1778529600000-CreateWorkflowExecution.js.map +1 -0
- package/dist/database/migrations/1784890100000-CreateWorkflowStepExecution.d.ts +5 -0
- package/dist/database/migrations/1784890100000-CreateWorkflowStepExecution.js +52 -0
- package/dist/database/migrations/1784890100000-CreateWorkflowStepExecution.js.map +1 -0
- package/dist/database/migrations/index.d.ts +2 -0
- package/dist/database/migrations/index.js +10 -0
- package/dist/database/migrations/index.js.map +1 -0
- package/dist/database/typeorm-execution-store.d.ts +10 -0
- package/dist/database/typeorm-execution-store.js +16 -0
- package/dist/database/typeorm-execution-store.js.map +1 -0
- package/dist/database/typeorm-step-store.d.ts +10 -0
- package/dist/database/typeorm-step-store.js +16 -0
- package/dist/database/typeorm-step-store.js.map +1 -0
- package/dist/dependencies/external-dependencies.d.ts +23 -0
- package/dist/dependencies/external-dependencies.js +3 -0
- package/dist/dependencies/external-dependencies.js.map +1 -0
- package/dist/dependencies/index.d.ts +1 -0
- package/dist/dependencies/index.js +3 -0
- package/dist/dependencies/index.js.map +1 -0
- package/dist/execution/execution-store.d.ts +15 -0
- package/dist/execution/execution-store.js +3 -0
- package/dist/execution/execution-store.js.map +1 -0
- package/dist/execution/execution.types.d.ts +3 -0
- package/dist/execution/execution.types.js +3 -0
- package/dist/execution/execution.types.js.map +1 -0
- package/dist/execution/index.d.ts +5 -0
- package/dist/execution/index.js +6 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/start-execution.service.d.ts +22 -0
- package/dist/execution/start-execution.service.js +34 -0
- package/dist/execution/start-execution.service.js.map +1 -0
- package/dist/execution/step-store.d.ts +11 -0
- package/dist/execution/step-store.js +3 -0
- package/dist/execution/step-store.js.map +1 -0
- package/dist/graph/index.d.ts +1 -0
- package/dist/graph/index.js +3 -0
- package/dist/graph/index.js.map +1 -0
- package/dist/graph/workflow-graph.d.ts +19 -0
- package/dist/graph/workflow-graph.js +3 -0
- package/dist/graph/workflow-graph.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/queue/in-memory-work-queue.d.ts +5 -0
- package/dist/queue/in-memory-work-queue.js +11 -0
- package/dist/queue/in-memory-work-queue.js.map +1 -0
- package/dist/queue/index.d.ts +2 -0
- package/dist/queue/index.js +6 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/work-queue.types.d.ts +8 -0
- package/dist/queue/work-queue.types.js +3 -0
- package/dist/queue/work-queue.types.js.map +1 -0
- package/dist/serve.js +48 -19
- package/dist/serve.js.map +1 -1
- package/dist/server/create-engine-server.d.ts +9 -1
- package/dist/server/create-engine-server.js +10 -1
- package/dist/server/create-engine-server.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/routes/workflow-executions.d.ts +3 -0
- package/dist/server/routes/workflow-executions.js +65 -0
- package/dist/server/routes/workflow-executions.js.map +1 -0
- package/dist/testing/start-engine-server.d.ts +2 -1
- package/dist/testing/start-engine-server.js +2 -2
- package/dist/testing/start-engine-server.js.map +1 -1
- package/package.json +15 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { JsonObject, JsonValue } from './json';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json.js","sourceRoot":"","sources":["../../src/common/json.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createDataSource = createDataSource;
|
|
4
|
+
require("reflect-metadata");
|
|
5
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
6
|
+
const entities_1 = require("./entities");
|
|
7
|
+
const migrations_1 = require("./migrations");
|
|
8
|
+
function createDataSource(url) {
|
|
9
|
+
const options = {
|
|
10
|
+
type: 'postgres',
|
|
11
|
+
url,
|
|
12
|
+
entities: entities_1.entities,
|
|
13
|
+
migrations: migrations_1.migrations,
|
|
14
|
+
synchronize: false,
|
|
15
|
+
logging: false,
|
|
16
|
+
};
|
|
17
|
+
return new typeorm_1.DataSource(options);
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=data-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data-source.js","sourceRoot":"","sources":["../../src/database/data-source.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,0CAAkE;AAElE,yCAAsC;AACtC,6CAA0C;AAW1C,0BAAiC,GAAW;IAC3C,MAAM,OAAO,GAAsB;QAClC,IAAI,EAAE,UAAU;QAChB,GAAG;QACH,QAAQ,EAAR,mBAAQ;QACR,UAAU,EAAV,uBAAU;QACV,WAAW,EAAE,KAAK;QAClB,OAAO,EAAE,KAAK;KACd,CAAC;IAEF,OAAO,IAAI,oBAAU,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WorkflowExecution } from './workflow-execution.entity';
|
|
2
|
+
import { WorkflowStepExecution } from './workflow-step-execution.entity';
|
|
3
|
+
export declare const entities: (typeof WorkflowExecution | typeof WorkflowStepExecution)[];
|
|
4
|
+
export { WorkflowExecution };
|
|
5
|
+
export { WorkflowStepExecution };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowStepExecution = exports.WorkflowExecution = exports.entities = void 0;
|
|
4
|
+
const workflow_execution_entity_1 = require("./workflow-execution.entity");
|
|
5
|
+
Object.defineProperty(exports, "WorkflowExecution", { enumerable: true, get: function () { return workflow_execution_entity_1.WorkflowExecution; } });
|
|
6
|
+
const workflow_step_execution_entity_1 = require("./workflow-step-execution.entity");
|
|
7
|
+
Object.defineProperty(exports, "WorkflowStepExecution", { enumerable: true, get: function () { return workflow_step_execution_entity_1.WorkflowStepExecution; } });
|
|
8
|
+
exports.entities = [workflow_execution_entity_1.WorkflowExecution, workflow_step_execution_entity_1.WorkflowStepExecution];
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/database/entities/index.ts"],"names":[],"mappings":";;;AAAA,2EAAgE;kGAAvD,6CAAiB;AAC1B,qFAAyE;sGAAhE,sDAAqB;AAEjB,QAAA,QAAQ,GAAG,CAAC,6CAAiB,EAAE,sDAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JsonObject } from '../../common';
|
|
2
|
+
import type { ExecutionMode, ExecutionStatus } from '../../execution/execution.types';
|
|
3
|
+
import type { WorkflowGraph } from '../../graph';
|
|
4
|
+
export declare class WorkflowExecution {
|
|
5
|
+
id: string;
|
|
6
|
+
workflowId: string;
|
|
7
|
+
status: ExecutionStatus;
|
|
8
|
+
mode: ExecutionMode;
|
|
9
|
+
graph: WorkflowGraph;
|
|
10
|
+
triggerPayload: JsonObject | null;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
finishedAt: Date | null;
|
|
14
|
+
setId(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.WorkflowExecution = void 0;
|
|
13
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
14
|
+
const generate_id_1 = require("../generate-id");
|
|
15
|
+
let WorkflowExecution = class WorkflowExecution {
|
|
16
|
+
id;
|
|
17
|
+
workflowId;
|
|
18
|
+
status;
|
|
19
|
+
mode;
|
|
20
|
+
graph;
|
|
21
|
+
triggerPayload;
|
|
22
|
+
createdAt;
|
|
23
|
+
updatedAt;
|
|
24
|
+
finishedAt;
|
|
25
|
+
setId() {
|
|
26
|
+
if (!this.id)
|
|
27
|
+
this.id = (0, generate_id_1.generateId)();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
exports.WorkflowExecution = WorkflowExecution;
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.PrimaryColumn)('uuid'),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], WorkflowExecution.prototype, "id", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.Column)('varchar', { name: 'workflow_id' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], WorkflowExecution.prototype, "workflowId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)('varchar', { length: 32 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], WorkflowExecution.prototype, "status", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)('varchar', { length: 32 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], WorkflowExecution.prototype, "mode", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)('jsonb'),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], WorkflowExecution.prototype, "graph", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)('jsonb', { name: 'trigger_payload', nullable: true }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], WorkflowExecution.prototype, "triggerPayload", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz', precision: 3 }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], WorkflowExecution.prototype, "createdAt", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz', precision: 3 }),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], WorkflowExecution.prototype, "updatedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)({ name: 'finished_at', type: 'timestamptz', nullable: true, precision: 3 }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], WorkflowExecution.prototype, "finishedAt", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", []),
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
|
+
], WorkflowExecution.prototype, "setId", null);
|
|
73
|
+
exports.WorkflowExecution = WorkflowExecution = __decorate([
|
|
74
|
+
(0, typeorm_1.Entity)('workflow_execution'),
|
|
75
|
+
(0, typeorm_1.Index)('idx_workflow_execution_workflow_id', ['workflowId']),
|
|
76
|
+
(0, typeorm_1.Index)('idx_workflow_execution_status', ['status'])
|
|
77
|
+
], WorkflowExecution);
|
|
78
|
+
//# sourceMappingURL=workflow-execution.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-execution.entity.js","sourceRoot":"","sources":["../../../src/database/entities/workflow-execution.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAQsB;AAKtB,gDAA4C;AAKrC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE7B,EAAE,CAAU;IAGZ,UAAU,CAAU;IAGpB,MAAM,CAAmB;IAGzB,IAAI,CAAiB;IAGrB,KAAK,CAAiB;IAGtB,cAAc,CAAqB;IAGnC,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,UAAU,CAAe;IAGzB,KAAK;QACJ,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAU,GAAE,CAAC;IACtC,CAAC;CACD,CAAA;;AA9BA;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;6CACV;AAGZ;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;qDACvB;AAGpB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;iDACT;AAGzB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;+CACb;AAGrB;IADC,IAAA,gBAAM,EAAC,OAAO,CAAC;;gDACM;AAGtB;IADC,IAAA,gBAAM,EAAC,OAAO,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC1B;AAGnC;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAChE,IAAI;oDAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAChE,IAAI;oDAAC;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;;qDAC1D;AAGzB;IADC,IAAA,sBAAY,GAAE;;;;8CAGd;4BA/BW,iBAAiB;IAH7B,IAAA,gBAAM,EAAC,oBAAoB,CAAC;IAC5B,IAAA,eAAK,EAAC,oCAAoC,EAAE,CAAC,YAAY,CAAC,CAAC;IAC3D,IAAA,eAAK,EAAC,+BAA+B,EAAE,CAAC,QAAQ,CAAC,CAAC;GACtC,iBAAiB,CAgC7B"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.WorkflowStepExecution = void 0;
|
|
13
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
14
|
+
const generate_id_1 = require("../generate-id");
|
|
15
|
+
let WorkflowStepExecution = class WorkflowStepExecution {
|
|
16
|
+
id;
|
|
17
|
+
executionId;
|
|
18
|
+
nodeId;
|
|
19
|
+
status;
|
|
20
|
+
createdAt;
|
|
21
|
+
updatedAt;
|
|
22
|
+
setId() {
|
|
23
|
+
if (!this.id)
|
|
24
|
+
this.id = (0, generate_id_1.generateId)();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
exports.WorkflowStepExecution = WorkflowStepExecution;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.PrimaryColumn)('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], WorkflowStepExecution.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.Column)('uuid', { name: 'execution_id' }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], WorkflowStepExecution.prototype, "executionId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)('varchar', { name: 'node_id' }),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], WorkflowStepExecution.prototype, "nodeId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)('varchar', { length: 32 }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], WorkflowStepExecution.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz', precision: 3 }),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], WorkflowStepExecution.prototype, "createdAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz', precision: 3 }),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], WorkflowStepExecution.prototype, "updatedAt", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
54
|
+
__metadata("design:type", Function),
|
|
55
|
+
__metadata("design:paramtypes", []),
|
|
56
|
+
__metadata("design:returntype", void 0)
|
|
57
|
+
], WorkflowStepExecution.prototype, "setId", null);
|
|
58
|
+
exports.WorkflowStepExecution = WorkflowStepExecution = __decorate([
|
|
59
|
+
(0, typeorm_1.Entity)('workflow_step_execution'),
|
|
60
|
+
(0, typeorm_1.Index)('idx_workflow_step_execution_execution_id', ['executionId'])
|
|
61
|
+
], WorkflowStepExecution);
|
|
62
|
+
//# sourceMappingURL=workflow-step-execution.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-step-execution.entity.js","sourceRoot":"","sources":["../../../src/database/entities/workflow-step-execution.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAQsB;AAGtB,gDAA4C;AAIrC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAEjC,EAAE,CAAU;IAGZ,WAAW,CAAU;IAGrB,MAAM,CAAU;IAGhB,MAAM,CAAc;IAGpB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;IAGjB,KAAK;QACJ,IAAI,CAAC,IAAI,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,GAAG,IAAA,wBAAU,GAAE,CAAC;IACtC,CAAC;CACD,CAAA;;AArBA;IADC,IAAA,uBAAa,EAAC,MAAM,CAAC;;iDACV;AAGZ;IADC,IAAA,gBAAM,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;0DACpB;AAGrB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;qDACvB;AAGhB;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;qDACd;AAGpB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAChE,IAAI;wDAAC;AAGjB;IADC,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;8BAChE,IAAI;wDAAC;AAGjB;IADC,IAAA,sBAAY,GAAE;;;;kDAGd;gCAtBW,qBAAqB;IAFjC,IAAA,gBAAM,EAAC,yBAAyB,CAAC;IACjC,IAAA,eAAK,EAAC,0CAA0C,EAAE,CAAC,aAAa,CAAC,CAAC;GACtD,qBAAqB,CAuBjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function generateId(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-id.js","sourceRoot":"","sources":["../../src/database/generate-id.ts"],"names":[],"mappings":";;;AAAA,+BAAoC;AAOpC;IACC,OAAO,IAAA,SAAM,GAAE,CAAC;AACjB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeOrmStepStore = exports.TypeOrmExecutionStore = exports.WorkflowStepExecution = exports.WorkflowExecution = exports.createDataSource = void 0;
|
|
4
|
+
var data_source_1 = require("./data-source");
|
|
5
|
+
Object.defineProperty(exports, "createDataSource", { enumerable: true, get: function () { return data_source_1.createDataSource; } });
|
|
6
|
+
var entities_1 = require("./entities");
|
|
7
|
+
Object.defineProperty(exports, "WorkflowExecution", { enumerable: true, get: function () { return entities_1.WorkflowExecution; } });
|
|
8
|
+
Object.defineProperty(exports, "WorkflowStepExecution", { enumerable: true, get: function () { return entities_1.WorkflowStepExecution; } });
|
|
9
|
+
var typeorm_execution_store_1 = require("./typeorm-execution-store");
|
|
10
|
+
Object.defineProperty(exports, "TypeOrmExecutionStore", { enumerable: true, get: function () { return typeorm_execution_store_1.TypeOrmExecutionStore; } });
|
|
11
|
+
var typeorm_step_store_1 = require("./typeorm-step-store");
|
|
12
|
+
Object.defineProperty(exports, "TypeOrmStepStore", { enumerable: true, get: function () { return typeorm_step_store_1.TypeOrmStepStore; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/database/index.ts"],"names":[],"mappings":";;;AAAA,6CAAiD;AAAxC,+GAAA,gBAAgB,OAAA;AACzB,uCAAsE;AAA7D,6GAAA,iBAAiB,OAAA;AAAE,iHAAA,qBAAqB,OAAA;AACjD,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA;AAC9B,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWorkflowExecution1778529600000 = void 0;
|
|
4
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
5
|
+
const TABLE = 'workflow_execution';
|
|
6
|
+
class CreateWorkflowExecution1778529600000 {
|
|
7
|
+
async up(queryRunner) {
|
|
8
|
+
await queryRunner.createTable(new typeorm_1.Table({
|
|
9
|
+
name: TABLE,
|
|
10
|
+
columns: [
|
|
11
|
+
{ name: 'id', type: 'uuid', isPrimary: true },
|
|
12
|
+
{ name: 'workflow_id', type: 'varchar' },
|
|
13
|
+
{ name: 'status', type: 'varchar', length: '32' },
|
|
14
|
+
{ name: 'mode', type: 'varchar', length: '32' },
|
|
15
|
+
{ name: 'graph', type: 'jsonb' },
|
|
16
|
+
{ name: 'trigger_payload', type: 'jsonb', isNullable: true },
|
|
17
|
+
{
|
|
18
|
+
name: 'created_at',
|
|
19
|
+
type: 'timestamptz',
|
|
20
|
+
precision: 3,
|
|
21
|
+
default: 'CURRENT_TIMESTAMP(3)',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: 'updated_at',
|
|
25
|
+
type: 'timestamptz',
|
|
26
|
+
precision: 3,
|
|
27
|
+
default: 'CURRENT_TIMESTAMP(3)',
|
|
28
|
+
},
|
|
29
|
+
{ name: 'finished_at', type: 'timestamptz', precision: 3, isNullable: true },
|
|
30
|
+
],
|
|
31
|
+
checks: [
|
|
32
|
+
{
|
|
33
|
+
name: 'chk_workflow_execution_status',
|
|
34
|
+
expression: "status IN ('queued', 'running', 'completed', 'failed', 'cancelled')",
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
}));
|
|
38
|
+
await queryRunner.createIndices(TABLE, [
|
|
39
|
+
new typeorm_1.TableIndex({ name: 'idx_workflow_execution_workflow_id', columnNames: ['workflow_id'] }),
|
|
40
|
+
new typeorm_1.TableIndex({ name: 'idx_workflow_execution_status', columnNames: ['status'] }),
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
async down(queryRunner) {
|
|
44
|
+
await queryRunner.dropTable(TABLE);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.CreateWorkflowExecution1778529600000 = CreateWorkflowExecution1778529600000;
|
|
48
|
+
//# sourceMappingURL=1778529600000-CreateWorkflowExecution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1778529600000-CreateWorkflowExecution.js","sourceRoot":"","sources":["../../../src/database/migrations/1778529600000-CreateWorkflowExecution.ts"],"names":[],"mappings":";;;AAAA,0CAAiD;AAGjD,MAAM,KAAK,GAAG,oBAAoB,CAAC;AAEnC;IACC,KAAK,CAAC,EAAE,CAAC,WAAwB;QAChC,MAAM,WAAW,CAAC,WAAW,CAC5B,IAAI,eAAK,CAAC;YACT,IAAI,EAAE,KAAK;YACX,OAAO,EAAE;gBACR,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE;gBAC7C,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE;gBACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;gBACjD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;gBAC/C,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;gBAChC,EAAE,IAAI,EAAE,iBAAiB,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE;gBAC5D;oBACC,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,sBAAsB;iBAC/B;gBACD;oBACC,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,sBAAsB;iBAC/B;gBACD,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE;aAC5E;YACD,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,+BAA+B;oBACrC,UAAU,EAAE,qEAAqE;iBACjF;aACD;SACD,CAAC,CACF,CAAC;QAEF,MAAM,WAAW,CAAC,aAAa,CAAC,KAAK,EAAE;YACtC,IAAI,oBAAU,CAAC,EAAE,IAAI,EAAE,oCAAoC,EAAE,WAAW,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;YAC5F,IAAI,oBAAU,CAAC,EAAE,IAAI,EAAE,+BAA+B,EAAE,WAAW,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC;SAClF,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QAClC,MAAM,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACD"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateWorkflowStepExecution1784890100000 = void 0;
|
|
4
|
+
const typeorm_1 = require("@n8n/typeorm");
|
|
5
|
+
const TABLE = 'workflow_step_execution';
|
|
6
|
+
class CreateWorkflowStepExecution1784890100000 {
|
|
7
|
+
async up(queryRunner) {
|
|
8
|
+
await queryRunner.createTable(new typeorm_1.Table({
|
|
9
|
+
name: TABLE,
|
|
10
|
+
columns: [
|
|
11
|
+
{ name: 'id', type: 'uuid', isPrimary: true },
|
|
12
|
+
{ name: 'execution_id', type: 'uuid' },
|
|
13
|
+
{ name: 'node_id', type: 'varchar' },
|
|
14
|
+
{ name: 'status', type: 'varchar', length: '32' },
|
|
15
|
+
{
|
|
16
|
+
name: 'created_at',
|
|
17
|
+
type: 'timestamptz',
|
|
18
|
+
precision: 3,
|
|
19
|
+
default: 'CURRENT_TIMESTAMP(3)',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'updated_at',
|
|
23
|
+
type: 'timestamptz',
|
|
24
|
+
precision: 3,
|
|
25
|
+
default: 'CURRENT_TIMESTAMP(3)',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
indices: [
|
|
29
|
+
{ name: 'idx_workflow_step_execution_execution_id', columnNames: ['execution_id'] },
|
|
30
|
+
],
|
|
31
|
+
foreignKeys: [
|
|
32
|
+
{
|
|
33
|
+
columnNames: ['execution_id'],
|
|
34
|
+
referencedTableName: 'workflow_execution',
|
|
35
|
+
referencedColumnNames: ['id'],
|
|
36
|
+
onDelete: 'CASCADE',
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
checks: [
|
|
40
|
+
{
|
|
41
|
+
name: 'chk_workflow_step_execution_status',
|
|
42
|
+
expression: "status IN ('queued', 'running', 'completed', 'failed', 'cancelled')",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
async down(queryRunner) {
|
|
48
|
+
await queryRunner.dropTable(TABLE);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.CreateWorkflowStepExecution1784890100000 = CreateWorkflowStepExecution1784890100000;
|
|
52
|
+
//# sourceMappingURL=1784890100000-CreateWorkflowStepExecution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"1784890100000-CreateWorkflowStepExecution.js","sourceRoot":"","sources":["../../../src/database/migrations/1784890100000-CreateWorkflowStepExecution.ts"],"names":[],"mappings":";;;AAAA,0CAAqC;AAGrC,MAAM,KAAK,GAAG,yBAAyB,CAAC;AAExC;IACC,KAAK,CAAC,EAAE,CAAC,WAAwB;QAChC,MAAM,WAAW,CAAC,WAAW,CAC5B,IAAI,eAAK,CAAC;YACT,IAAI,EAAE,KAAK;YACX,OAAO,EAAE;gBACR,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE;gBAC7C,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE;gBACtC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;gBACpC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE;gBACjD;oBACC,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,sBAAsB;iBAC/B;gBACD;oBACC,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,aAAa;oBACnB,SAAS,EAAE,CAAC;oBACZ,OAAO,EAAE,sBAAsB;iBAC/B;aACD;YACD,OAAO,EAAE;gBACR,EAAE,IAAI,EAAE,0CAA0C,EAAE,WAAW,EAAE,CAAC,cAAc,CAAC,EAAE;aACnF;YACD,WAAW,EAAE;gBACZ;oBACC,WAAW,EAAE,CAAC,cAAc,CAAC;oBAC7B,mBAAmB,EAAE,oBAAoB;oBACzC,qBAAqB,EAAE,CAAC,IAAI,CAAC;oBAC7B,QAAQ,EAAE,SAAS;iBACnB;aACD;YACD,MAAM,EAAE;gBACP;oBACC,IAAI,EAAE,oCAAoC;oBAC1C,UAAU,EAAE,qEAAqE;iBACjF;aACD;SACD,CAAC,CACF,CAAC;IACH,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAwB;QAClC,MAAM,WAAW,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;CACD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.migrations = void 0;
|
|
4
|
+
const _1778529600000_CreateWorkflowExecution_1 = require("./1778529600000-CreateWorkflowExecution");
|
|
5
|
+
const _1784890100000_CreateWorkflowStepExecution_1 = require("./1784890100000-CreateWorkflowStepExecution");
|
|
6
|
+
exports.migrations = [
|
|
7
|
+
_1778529600000_CreateWorkflowExecution_1.CreateWorkflowExecution1778529600000,
|
|
8
|
+
_1784890100000_CreateWorkflowStepExecution_1.CreateWorkflowStepExecution1784890100000,
|
|
9
|
+
];
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/database/migrations/index.ts"],"names":[],"mappings":";;;AAAA,oGAA+F;AAC/F,4GAAuG;AAE1F,QAAA,UAAU,GAAG;IACzB,6EAAoC;IACpC,qFAAwC;CACxC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Repository } from '@n8n/typeorm';
|
|
2
|
+
import type { WorkflowExecution } from './entities';
|
|
3
|
+
import type { ExecutionStore, NewExecutionRecord } from '../execution/execution-store';
|
|
4
|
+
export declare class TypeOrmExecutionStore implements ExecutionStore {
|
|
5
|
+
private readonly repo;
|
|
6
|
+
constructor(repo: Repository<WorkflowExecution>);
|
|
7
|
+
createExecution(record: NewExecutionRecord): Promise<{
|
|
8
|
+
id: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeOrmExecutionStore = void 0;
|
|
4
|
+
class TypeOrmExecutionStore {
|
|
5
|
+
repo;
|
|
6
|
+
constructor(repo) {
|
|
7
|
+
this.repo = repo;
|
|
8
|
+
}
|
|
9
|
+
async createExecution(record) {
|
|
10
|
+
const execution = this.repo.create({ ...record, finishedAt: null });
|
|
11
|
+
await this.repo.save(execution);
|
|
12
|
+
return { id: execution.id };
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TypeOrmExecutionStore = TypeOrmExecutionStore;
|
|
16
|
+
//# sourceMappingURL=typeorm-execution-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeorm-execution-store.js","sourceRoot":"","sources":["../../src/database/typeorm-execution-store.ts"],"names":[],"mappings":";;;AAMA;IAC8B,IAAI;IAAjC,YAA6B,IAAmC;oBAAnC,IAAI;IAAkC,CAAC;IAEpE,KAAK,CAAC,eAAe,CAAC,MAA0B;QAC/C,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;QACpE,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAChC,OAAO,EAAE,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,CAAC;IAC7B,CAAC;CACD"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Repository } from '@n8n/typeorm';
|
|
2
|
+
import type { WorkflowStepExecution } from './entities';
|
|
3
|
+
import type { NewStepRecord, StepStore } from '../execution/step-store';
|
|
4
|
+
export declare class TypeOrmStepStore implements StepStore {
|
|
5
|
+
private readonly repo;
|
|
6
|
+
constructor(repo: Repository<WorkflowStepExecution>);
|
|
7
|
+
createStep(record: NewStepRecord): Promise<{
|
|
8
|
+
id: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TypeOrmStepStore = void 0;
|
|
4
|
+
class TypeOrmStepStore {
|
|
5
|
+
repo;
|
|
6
|
+
constructor(repo) {
|
|
7
|
+
this.repo = repo;
|
|
8
|
+
}
|
|
9
|
+
async createStep(record) {
|
|
10
|
+
const step = this.repo.create(record);
|
|
11
|
+
await this.repo.save(step);
|
|
12
|
+
return { id: step.id };
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.TypeOrmStepStore = TypeOrmStepStore;
|
|
16
|
+
//# sourceMappingURL=typeorm-step-store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeorm-step-store.js","sourceRoot":"","sources":["../../src/database/typeorm-step-store.ts"],"names":[],"mappings":";;;AAMA;IAC8B,IAAI;IAAjC,YAA6B,IAAuC;oBAAvC,IAAI;IAAsC,CAAC;IAExE,KAAK,CAAC,UAAU,CAAC,MAAqB;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;IACxB,CAAC;CACD"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { JsonValue } from '../common';
|
|
2
|
+
import type { ExecutionMode } from '../execution';
|
|
3
|
+
import type { GraphNode } from '../graph';
|
|
4
|
+
export interface StepExecutionContext {
|
|
5
|
+
executionId: string;
|
|
6
|
+
stepId: string;
|
|
7
|
+
workflowId: string;
|
|
8
|
+
mode: ExecutionMode;
|
|
9
|
+
}
|
|
10
|
+
export interface StepExecutionRequest {
|
|
11
|
+
node: GraphNode;
|
|
12
|
+
inputs: JsonValue;
|
|
13
|
+
context: StepExecutionContext;
|
|
14
|
+
}
|
|
15
|
+
export interface StepExecutionResult {
|
|
16
|
+
outputs: JsonValue;
|
|
17
|
+
}
|
|
18
|
+
export interface IStepExecutor {
|
|
19
|
+
execute(request: StepExecutionRequest): Promise<StepExecutionResult>;
|
|
20
|
+
}
|
|
21
|
+
export interface ExternalDependencies {
|
|
22
|
+
v1StepExecutor?: IStepExecutor;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-dependencies.js","sourceRoot":"","sources":["../../src/dependencies/external-dependencies.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ExternalDependencies, IStepExecutor, StepExecutionContext, StepExecutionRequest, StepExecutionResult, } from './external-dependencies';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dependencies/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JsonObject } from '../common';
|
|
2
|
+
import type { WorkflowGraph } from '../graph';
|
|
3
|
+
import type { ExecutionMode, ExecutionStatus } from './execution.types';
|
|
4
|
+
export interface NewExecutionRecord {
|
|
5
|
+
workflowId: string;
|
|
6
|
+
status: ExecutionStatus;
|
|
7
|
+
mode: ExecutionMode;
|
|
8
|
+
graph: WorkflowGraph;
|
|
9
|
+
triggerPayload: JsonObject | null;
|
|
10
|
+
}
|
|
11
|
+
export interface ExecutionStore {
|
|
12
|
+
createExecution(record: NewExecutionRecord): Promise<{
|
|
13
|
+
id: string;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-store.js","sourceRoot":"","sources":["../../src/execution/execution-store.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution.types.js","sourceRoot":"","sources":["../../src/execution/execution.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { StartExecutionService } from './start-execution.service';
|
|
2
|
+
export type { StartExecutionRequest, StartExecutionResult, } from './start-execution.service';
|
|
3
|
+
export type { ExecutionMode, ExecutionStatus, StepStatus } from './execution.types';
|
|
4
|
+
export type { ExecutionStore, NewExecutionRecord } from './execution-store';
|
|
5
|
+
export type { NewStepRecord, StepStore } from './step-store';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StartExecutionService = void 0;
|
|
4
|
+
var start_execution_service_1 = require("./start-execution.service");
|
|
5
|
+
Object.defineProperty(exports, "StartExecutionService", { enumerable: true, get: function () { return start_execution_service_1.StartExecutionService; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/execution/index.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAAzD,gIAAA,qBAAqB,OAAA"}
|