n8n-workflow 1.109.0 → 1.111.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/cjs/data-store.types.d.ts +16 -4
- package/dist/cjs/data-store.types.d.ts.map +1 -1
- package/dist/cjs/data-store.types.js +7 -2
- package/dist/cjs/data-store.types.js.map +1 -1
- package/dist/cjs/errors/index.d.ts +1 -0
- package/dist/cjs/errors/index.d.ts.map +1 -1
- package/dist/cjs/errors/index.js +4 -2
- package/dist/cjs/errors/index.js.map +1 -1
- package/dist/cjs/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/cjs/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/cjs/errors/workflow-configuration.error.js +21 -0
- package/dist/cjs/errors/workflow-configuration.error.js.map +1 -0
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces.d.ts +104 -13
- package/dist/cjs/interfaces.d.ts.map +1 -1
- package/dist/cjs/interfaces.js.map +1 -1
- package/dist/cjs/type-guards.d.ts +2 -1
- package/dist/cjs/type-guards.d.ts.map +1 -1
- package/dist/cjs/type-guards.js +7 -2
- package/dist/cjs/type-guards.js.map +1 -1
- package/dist/cjs/typecheck.tsbuildinfo +1 -1
- package/dist/cjs/workflow-data-proxy.js +2 -2
- package/dist/cjs/workflow-data-proxy.js.map +1 -1
- package/dist/esm/data-store.types.d.ts +16 -4
- package/dist/esm/data-store.types.d.ts.map +1 -1
- package/dist/esm/data-store.types.js +6 -1
- package/dist/esm/data-store.types.js.map +1 -1
- package/dist/esm/errors/index.d.ts +1 -0
- package/dist/esm/errors/index.d.ts.map +1 -1
- package/dist/esm/errors/index.js +1 -0
- package/dist/esm/errors/index.js.map +1 -1
- package/dist/esm/errors/workflow-configuration.error.d.ts +7 -0
- package/dist/esm/errors/workflow-configuration.error.d.ts.map +1 -0
- package/dist/esm/errors/workflow-configuration.error.js +7 -0
- package/dist/esm/errors/workflow-configuration.error.js.map +1 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces.d.ts +104 -13
- package/dist/esm/interfaces.d.ts.map +1 -1
- package/dist/esm/interfaces.js.map +1 -1
- package/dist/esm/type-guards.d.ts +2 -1
- package/dist/esm/type-guards.d.ts.map +1 -1
- package/dist/esm/type-guards.js +4 -0
- package/dist/esm/type-guards.js.map +1 -1
- package/dist/esm/typecheck.tsbuildinfo +1 -1
- package/dist/esm/workflow-data-proxy.js +1 -1
- package/dist/esm/workflow-data-proxy.js.map +1 -1
- package/package.json +5 -5
|
@@ -50,14 +50,15 @@ export type UpsertDataStoreRowOptions = {
|
|
|
50
50
|
data: DataStoreRow;
|
|
51
51
|
};
|
|
52
52
|
export type DeleteDataTableRowsOptions = {
|
|
53
|
-
filter
|
|
53
|
+
filter: DataTableFilter;
|
|
54
54
|
};
|
|
55
55
|
export type MoveDataStoreColumnOptions = {
|
|
56
56
|
targetIndex: number;
|
|
57
57
|
};
|
|
58
58
|
export type AddDataStoreColumnOptions = Pick<DataStoreColumn, 'name' | 'type'> & Partial<Pick<DataStoreColumn, 'index'>>;
|
|
59
59
|
export type DataStoreColumnJsType = string | number | boolean | Date | null;
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP: Record<string, DataStoreColumnType>;
|
|
61
|
+
export declare const DATA_TABLE_SYSTEM_COLUMNS: string[];
|
|
61
62
|
export type DataStoreRowReturnBase = {
|
|
62
63
|
id: number;
|
|
63
64
|
createdAt: Date;
|
|
@@ -74,9 +75,20 @@ export type DataTableInsertRowsBulkResult = {
|
|
|
74
75
|
};
|
|
75
76
|
export type DataTableInsertRowsResult<T extends DataTableInsertRowsReturnType = DataTableInsertRowsReturnType> = T extends 'all' ? DataStoreRowReturn[] : T extends 'id' ? Array<Pick<DataStoreRowReturn, 'id'>> : DataTableInsertRowsBulkResult;
|
|
76
77
|
export type DataTableSizeStatus = 'ok' | 'warn' | 'error';
|
|
77
|
-
export type
|
|
78
|
+
export type DataTableInfo = {
|
|
79
|
+
id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
projectId: string;
|
|
82
|
+
projectName: string;
|
|
78
83
|
sizeBytes: number;
|
|
79
|
-
|
|
84
|
+
};
|
|
85
|
+
export type DataTableInfoById = Record<string, DataTableInfo>;
|
|
86
|
+
export type DataTablesSizeData = {
|
|
87
|
+
totalBytes: number;
|
|
88
|
+
dataTables: DataTableInfoById;
|
|
89
|
+
};
|
|
90
|
+
export type DataTablesSizeResult = DataTablesSizeData & {
|
|
91
|
+
quotaStatus: DataTableSizeStatus;
|
|
80
92
|
};
|
|
81
93
|
export interface IDataStoreProjectAggregateService {
|
|
82
94
|
getProjectId(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-store.types.d.ts","sourceRoot":"","sources":["../../src/data-store.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3E,MAAM,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,mBAAmB,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,4BAA4B,GAAG,IAA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E,CAAC,CAAC;IAEzD,UAAU,CAAC,CAAC,SAAS,6BAA6B,EACjD,IAAI,EAAE,aAAa,EACnB,UAAU,EAAE,CAAC,GACX,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,CAAC;IAEzC,SAAS,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAE7E,SAAS,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;IAE7E,UAAU,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAC/E"}
|
|
@@ -9,7 +9,12 @@
|
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DATA_TABLE_SYSTEM_COLUMNS = void 0;
|
|
13
|
-
exports.
|
|
12
|
+
exports.DATA_TABLE_SYSTEM_COLUMNS = exports.DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP = void 0;
|
|
13
|
+
exports.DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP = {
|
|
14
|
+
id: 'number',
|
|
15
|
+
createdAt: 'date',
|
|
16
|
+
updatedAt: 'date',
|
|
17
|
+
};
|
|
18
|
+
exports.DATA_TABLE_SYSTEM_COLUMNS = Object.keys(exports.DATA_TABLE_SYSTEM_COLUMN_TYPE_MAP);
|
|
14
19
|
});
|
|
15
20
|
//# sourceMappingURL=data-store.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-store.types.js","sourceRoot":"","sources":["../../src/data-store.types.ts"],"names":[],"mappings":";;;;;;;;;;;;IAkFa,QAAA,
|
|
1
|
+
{"version":3,"file":"data-store.types.js","sourceRoot":"","sources":["../../src/data-store.types.ts"],"names":[],"mappings":";;;;;;;;;;;;IAkFa,QAAA,iCAAiC,GAAwC;QACrF,EAAE,EAAE,QAAQ;QACZ,SAAS,EAAE,MAAM;QACjB,SAAS,EAAE,MAAM;KACjB,CAAC;IAEW,QAAA,yBAAyB,GAAG,MAAM,CAAC,IAAI,CAAC,yCAAiC,CAAC,CAAC"}
|
|
@@ -7,6 +7,7 @@ export { ExpressionError } from './expression.error';
|
|
|
7
7
|
export { ExecutionCancelledError } from './execution-cancelled.error';
|
|
8
8
|
export { NodeApiError } from './node-api.error';
|
|
9
9
|
export { NodeOperationError } from './node-operation.error';
|
|
10
|
+
export { WorkflowConfigurationError } from './workflow-configuration.error';
|
|
10
11
|
export { NodeSslError } from './node-ssl.error';
|
|
11
12
|
export { WebhookPathTakenError } from './webhook-taken.error';
|
|
12
13
|
export { WorkflowActivationError } from './workflow-activation.error';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,eAAe,EAAE,KAAK,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,KAAK,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,O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AE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
|
package/dist/cjs/errors/index.js
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
if (v !== undefined) module.exports = v;
|
|
5
5
|
}
|
|
6
6
|
else if (typeof define === "function" && define.amd) {
|
|
7
|
-
define(["require", "exports", "./base/base.error", "./base/operational.error", "./base/unexpected.error", "./base/user.error", "@n8n/errors", "./expression.error", "./execution-cancelled.error", "./node-api.error", "./node-operation.error", "./node-ssl.error", "./webhook-taken.error", "./workflow-activation.error", "./workflow-deactivation.error", "./workflow-operation.error", "./subworkflow-operation.error", "./cli-subworkflow-operation.error", "./trigger-close.error", "./abstract/node.error", "./abstract/execution-base.error", "./expression-extension.error", "./db-connection-timeout-error", "./ensure-error"], factory);
|
|
7
|
+
define(["require", "exports", "./base/base.error", "./base/operational.error", "./base/unexpected.error", "./base/user.error", "@n8n/errors", "./expression.error", "./execution-cancelled.error", "./node-api.error", "./node-operation.error", "./workflow-configuration.error", "./node-ssl.error", "./webhook-taken.error", "./workflow-activation.error", "./workflow-deactivation.error", "./workflow-operation.error", "./subworkflow-operation.error", "./cli-subworkflow-operation.error", "./trigger-close.error", "./abstract/node.error", "./abstract/execution-base.error", "./expression-extension.error", "./db-connection-timeout-error", "./ensure-error"], factory);
|
|
8
8
|
}
|
|
9
9
|
})(function (require, exports) {
|
|
10
10
|
"use strict";
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ensureError = exports.DbConnectionTimeoutError = exports.ExpressionExtensionError = exports.ExecutionBaseError = exports.NodeError = exports.TriggerCloseError = exports.CliWorkflowOperationError = exports.SubworkflowOperationError = exports.WorkflowOperationError = exports.WorkflowDeactivationError = exports.WorkflowActivationError = exports.WebhookPathTakenError = exports.NodeSslError = exports.NodeOperationError = exports.NodeApiError = exports.ExecutionCancelledError = exports.ExpressionError = exports.ApplicationError = exports.UserError = exports.UnexpectedError = exports.OperationalError = exports.BaseError = void 0;
|
|
12
|
+
exports.ensureError = exports.DbConnectionTimeoutError = exports.ExpressionExtensionError = exports.ExecutionBaseError = exports.NodeError = exports.TriggerCloseError = exports.CliWorkflowOperationError = exports.SubworkflowOperationError = exports.WorkflowOperationError = exports.WorkflowDeactivationError = exports.WorkflowActivationError = exports.WebhookPathTakenError = exports.NodeSslError = exports.WorkflowConfigurationError = exports.NodeOperationError = exports.NodeApiError = exports.ExecutionCancelledError = exports.ExpressionError = exports.ApplicationError = exports.UserError = exports.UnexpectedError = exports.OperationalError = exports.BaseError = void 0;
|
|
13
13
|
var base_error_1 = require("./base/base.error");
|
|
14
14
|
Object.defineProperty(exports, "BaseError", { enumerable: true, get: function () { return base_error_1.BaseError; } });
|
|
15
15
|
var operational_error_1 = require("./base/operational.error");
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
Object.defineProperty(exports, "NodeApiError", { enumerable: true, get: function () { return node_api_error_1.NodeApiError; } });
|
|
29
29
|
var node_operation_error_1 = require("./node-operation.error");
|
|
30
30
|
Object.defineProperty(exports, "NodeOperationError", { enumerable: true, get: function () { return node_operation_error_1.NodeOperationError; } });
|
|
31
|
+
var workflow_configuration_error_1 = require("./workflow-configuration.error");
|
|
32
|
+
Object.defineProperty(exports, "WorkflowConfigurationError", { enumerable: true, get: function () { return workflow_configuration_error_1.WorkflowConfigurationError; } });
|
|
31
33
|
var node_ssl_error_1 = require("./node-ssl.error");
|
|
32
34
|
Object.defineProperty(exports, "NodeSslError", { enumerable: true, get: function () { return node_ssl_error_1.NodeSslError; } });
|
|
33
35
|
var webhook_taken_error_1 = require("./webhook-taken.error");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/errors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,gDAAqE;IAA5D,uGAAA,SAAS,OAAA;IAClB,8DAA0F;IAAjF,qHAAA,gBAAgB,OAAA;IACzB,4DAAuF;IAA9E,mHAAA,eAAe,OAAA;IACxB,gDAAqE;IAA5D,uGAAA,SAAS,OAAA;IAClB,sCAA+C;IAAtC,0GAAA,gBAAgB,OAAA;IACzB,uDAAqD;IAA5C,mHAAA,eAAe,OAAA;IACxB,yEAAsE;IAA7D,oIAAA,uBAAuB,OAAA;IAChC,mDAAgD;IAAvC,8GAAA,YAAY,OAAA;IACrB,+DAA4D;IAAnD,0HAAA,kBAAkB,OAAA;IAC3B,mDAAgD;IAAvC,8GAAA,YAAY,OAAA;IACrB,6DAA8D;IAArD,4HAAA,qBAAqB,OAAA;IAC9B,yEAAsE;IAA7D,oIAAA,uBAAuB,OAAA;IAChC,6EAA0E;IAAjE,wIAAA,yBAAyB,OAAA;IAClC,uEAAoE;IAA3D,kIAAA,sBAAsB,OAAA;IAC/B,6EAA0E;IAAjE,wIAAA,yBAAyB,OAAA;IAClC,qFAA8E;IAArE,4IAAA,yBAAyB,OAAA;IAClC,6DAA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IACjC,6EAAyE;IAAhE,uIAAA,wBAAwB,OAAA;IACjC,+CAA6C;IAApC,2GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NodeOperationError } from './node-operation.error';
|
|
2
|
+
/**
|
|
3
|
+
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
|
4
|
+
*/
|
|
5
|
+
export declare class WorkflowConfigurationError extends NodeOperationError {
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=workflow-configuration.error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-configuration.error.d.ts","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;;GAEG;AACH,qBAAa,0BAA2B,SAAQ,kBAAkB;CAAG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
(function (factory) {
|
|
2
|
+
if (typeof module === "object" && typeof module.exports === "object") {
|
|
3
|
+
var v = factory(require, exports);
|
|
4
|
+
if (v !== undefined) module.exports = v;
|
|
5
|
+
}
|
|
6
|
+
else if (typeof define === "function" && define.amd) {
|
|
7
|
+
define(["require", "exports", "./node-operation.error"], factory);
|
|
8
|
+
}
|
|
9
|
+
})(function (require, exports) {
|
|
10
|
+
"use strict";
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.WorkflowConfigurationError = void 0;
|
|
13
|
+
const node_operation_error_1 = require("./node-operation.error");
|
|
14
|
+
/**
|
|
15
|
+
* A type of NodeOperationError caused by a configuration problem somewhere in workflow.
|
|
16
|
+
*/
|
|
17
|
+
class WorkflowConfigurationError extends node_operation_error_1.NodeOperationError {
|
|
18
|
+
}
|
|
19
|
+
exports.WorkflowConfigurationError = WorkflowConfigurationError;
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=workflow-configuration.error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-configuration.error.js","sourceRoot":"","sources":["../../../src/errors/workflow-configuration.error.ts"],"names":[],"mappings":";;;;;;;;;;;;IAAA,iEAA4D;IAE5D;;OAEG;IACH,MAAa,0BAA2B,SAAQ,yCAAkB;KAAG;IAArE,gEAAqE"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export * from './type-validation';
|
|
|
27
27
|
export * from './result';
|
|
28
28
|
export { LoggerProxy, NodeHelpers, ObservableObject, TelemetryHelpers };
|
|
29
29
|
export { isObjectEmpty, deepCopy, jsonParse, base64DecodeUTF8, jsonStringify, replaceCircularReferences, sleep, sleepWithAbort, fileTypeFromMimeType, assert, removeCircularRefs, updateDisplayOptions, randomInt, randomString, isSafeObjectProperty, setSafeObjectProperty, isDomainAllowed, } from './utils';
|
|
30
|
-
export { isINodeProperties, isINodePropertyOptions, isINodePropertyCollection, isINodePropertiesList, isINodePropertyCollectionList, isINodePropertyOptionsList, isResourceMapperValue, isResourceLocatorValue, isFilterValue, } from './type-guards';
|
|
30
|
+
export { isINodeProperties, isINodePropertyOptions, isINodePropertyCollection, isINodePropertiesList, isINodePropertyCollectionList, isINodePropertyOptionsList, isResourceMapperValue, isResourceLocatorValue, isFilterValue, isNodeConnectionType, } from './type-guards';
|
|
31
31
|
export { parseExtractableSubgraphSelection, buildAdjacencyList, type ExtractableErrorResult, type ExtractableSubgraphData, type IConnectionAdjacencyList as AdjacencyList, } from './graph/graph-utils';
|
|
32
32
|
export { ExpressionExtensions } from './extensions';
|
|
33
33
|
export * as ExpressionParser from './extensions/expression-parser';
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AAC9C,OAAO,KAAK,WAAW,MAAM,gBAAgB,CAAC;AA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AAsB,EACtB,aAAa,EACb,oBAAoB,GACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,EACN,iCAAiC,EACjC,kBAAkB,EAClB,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,IAAI,aAAa,GAC9C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,KAAK,gBAAgB,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AAErC,YAAY,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,kBAAkB,EAClB,SAAS,GACT,MAAM,cAAc,CAAC;AAEtB,OAAO,QAAQ,MAAM,CAAC;IACrB,UAAiB,eAAe;QAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,cAAc,CAAC;QACzB,kBAAkB,CAAC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACzD,OAAO,EAAE,MAAM,CAAC;QAChB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7B,KAAK,EAAE,OAAO,CAAC;QAGf,WAAW,CAAC,EAAE,MAAM,CAAC;QAGrB,GAAG,CAAC,EAAE,aAAa,CAAC;KACpB;CACD"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -45,7 +45,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
45
45
|
})(function (require, exports) {
|
|
46
46
|
"use strict";
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.NativeMethods = exports.ExpressionParser = exports.ExpressionExtensions = exports.buildAdjacencyList = exports.parseExtractableSubgraphSelection = exports.isFilterValue = exports.isResourceLocatorValue = exports.isResourceMapperValue = exports.isINodePropertyOptionsList = exports.isINodePropertyCollectionList = exports.isINodePropertiesList = exports.isINodePropertyCollection = exports.isINodePropertyOptions = exports.isINodeProperties = exports.isDomainAllowed = exports.setSafeObjectProperty = exports.isSafeObjectProperty = exports.randomString = exports.randomInt = exports.updateDisplayOptions = exports.removeCircularRefs = exports.assert = exports.fileTypeFromMimeType = exports.sleepWithAbort = exports.sleep = exports.replaceCircularReferences = exports.jsonStringify = exports.base64DecodeUTF8 = exports.jsonParse = exports.deepCopy = exports.isObjectEmpty = exports.TelemetryHelpers = exports.ObservableObject = exports.NodeHelpers = exports.LoggerProxy = void 0;
|
|
48
|
+
exports.NativeMethods = exports.ExpressionParser = exports.ExpressionExtensions = exports.buildAdjacencyList = exports.parseExtractableSubgraphSelection = exports.isNodeConnectionType = exports.isFilterValue = exports.isResourceLocatorValue = exports.isResourceMapperValue = exports.isINodePropertyOptionsList = exports.isINodePropertyCollectionList = exports.isINodePropertiesList = exports.isINodePropertyCollection = exports.isINodePropertyOptions = exports.isINodeProperties = exports.isDomainAllowed = exports.setSafeObjectProperty = exports.isSafeObjectProperty = exports.randomString = exports.randomInt = exports.updateDisplayOptions = exports.removeCircularRefs = exports.assert = exports.fileTypeFromMimeType = exports.sleepWithAbort = exports.sleep = exports.replaceCircularReferences = exports.jsonStringify = exports.base64DecodeUTF8 = exports.jsonParse = exports.deepCopy = exports.isObjectEmpty = exports.TelemetryHelpers = exports.ObservableObject = exports.NodeHelpers = exports.LoggerProxy = void 0;
|
|
49
49
|
const LoggerProxy = __importStar(require("./logger-proxy"));
|
|
50
50
|
exports.LoggerProxy = LoggerProxy;
|
|
51
51
|
const NodeHelpers = __importStar(require("./node-helpers"));
|
|
@@ -105,6 +105,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
105
105
|
Object.defineProperty(exports, "isResourceMapperValue", { enumerable: true, get: function () { return type_guards_1.isResourceMapperValue; } });
|
|
106
106
|
Object.defineProperty(exports, "isResourceLocatorValue", { enumerable: true, get: function () { return type_guards_1.isResourceLocatorValue; } });
|
|
107
107
|
Object.defineProperty(exports, "isFilterValue", { enumerable: true, get: function () { return type_guards_1.isFilterValue; } });
|
|
108
|
+
Object.defineProperty(exports, "isNodeConnectionType", { enumerable: true, get: function () { return type_guards_1.isNodeConnectionType; } });
|
|
108
109
|
var graph_utils_1 = require("./graph/graph-utils");
|
|
109
110
|
Object.defineProperty(exports, "parseExtractableSubgraphSelection", { enumerable: true, get: function () { return graph_utils_1.parseExtractableSubgraphSelection; } });
|
|
110
111
|
Object.defineProperty(exports, "buildAdjacencyList", { enumerable: true, get: function () { return graph_utils_1.buildAdjacencyList; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,4DAA8C;IA4BrC,kCAAW;IA3BpB,4DAA8C;IA2BxB,kCAAW;IA1BjC,sEAAwD;IA0BrB,4CAAgB;IAzBnD,sEAAwD;IAyBH,4CAAgB;IAvBrE,2CAAyB;IACzB,8CAA4B;IAC5B,2CAAyB;IACzB,yCAAuB;IACvB,qDAAmC;IACnC,qDAAmC;IACnC,iDAA+B;IAC/B,+CAA6B;IAC7B,sDAAoC;IACpC,qDAAmC;IACnC,+CAA6B;IAC7B,mEAAiD;IACjD,wDAAsC;IACtC,iDAA+B;IAC/B,iDAA+B;IAC/B,gEAA8C;IAC9C,mDAAiC;IACjC,6CAA2B;IAC3B,wDAAsC;IACtC,qEAAmD;IACnD,wDAAsC;IACtC,oDAAkC;IAClC,2CAAyB;IAEzB,iCAkBiB;IAjBhB,sGAAA,aAAa,OAAA;IACb,iGAAA,QAAQ,OAAA;IACR,kGAAA,SAAS,OAAA;IACT,yGAAA,gBAAgB,OAAA;IAChB,sGAA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;IAClB,6GAAA,oBAAoB,OAAA;IACpB,kGAAA,SAAS,OAAA;IACT,qGAAA,YAAY,OAAA;IACZ,6GAAA,oBAAoB,OAAA;IACpB,8GAAA,qBAAqB,OAAA;IACrB,wGAAA,eAAe,OAAA;IAEhB,6CAWuB;IAVtB,gHAAA,iBAAiB,OAAA;IACjB,qHAAA,sBAAsB,OAAA;IACtB,wHAAA,yBAAyB,OAAA;IACzB,oHAAA,qBAAqB,OAAA;IACrB,4HAAA,6BAA6B,OAAA;IAC7B,yHAAA,0BAA0B,OAAA;IAC1B,oHAAA,qBAAqB,OAAA;IACrB,qHAAA,sBAAsB,OAAA;IACtB,4GAAA,aAAa,OAAA;IACb,mHAAA,oBAAoB,OAAA;IAGrB,mDAM6B;IAL5B,gIAAA,iCAAiC,OAAA;IACjC,iHAAA,kBAAkB,OAAA;IAKnB,2CAAoD;IAA3C,kHAAA,oBAAoB,OAAA;IAC7B,mFAAmE;IACnE,mDAAiD;IAAxC,+GAAA,aAAa,OAAA;IACtB,qEAAmD;IACnD,8EAA4D;IAC5D,+DAA6C;IAC7C,uDAAqC"}
|
package/dist/cjs/interfaces.d.ts
CHANGED
|
@@ -279,6 +279,7 @@ export interface IExecuteData {
|
|
|
279
279
|
metadata?: ITaskMetadata;
|
|
280
280
|
node: INode;
|
|
281
281
|
source: ITaskDataConnectionsSource | null;
|
|
282
|
+
runIndex?: number;
|
|
282
283
|
}
|
|
283
284
|
export type IContextObject = {
|
|
284
285
|
[key: string]: any;
|
|
@@ -902,6 +903,7 @@ export interface INodePropertyTypeOptions {
|
|
|
902
903
|
minRequiredFields?: number;
|
|
903
904
|
maxAllowedFields?: number;
|
|
904
905
|
calloutAction?: CalloutAction;
|
|
906
|
+
binaryDataProperty?: boolean;
|
|
905
907
|
[key: string]: any;
|
|
906
908
|
}
|
|
907
909
|
export interface ResourceMapperTypeOptionsBase {
|
|
@@ -1056,9 +1058,15 @@ export interface INodePropertyModeTypeOptions {
|
|
|
1056
1058
|
skipCredentialsCheckInRLC?: boolean;
|
|
1057
1059
|
allowNewResource?: {
|
|
1058
1060
|
label: string;
|
|
1059
|
-
|
|
1061
|
+
} & ({
|
|
1060
1062
|
method: string;
|
|
1061
|
-
|
|
1063
|
+
url?: never;
|
|
1064
|
+
defaultName: string;
|
|
1065
|
+
} | {
|
|
1066
|
+
method?: never;
|
|
1067
|
+
url: string;
|
|
1068
|
+
defaultName?: never;
|
|
1069
|
+
});
|
|
1062
1070
|
}
|
|
1063
1071
|
export interface INodePropertyMode {
|
|
1064
1072
|
displayName: string;
|
|
@@ -1165,11 +1173,11 @@ export interface SupplyData {
|
|
|
1165
1173
|
response: unknown;
|
|
1166
1174
|
closeFunction?: CloseFunction;
|
|
1167
1175
|
}
|
|
1168
|
-
type NodeOutput = INodeExecutionData[][] | NodeExecutionWithMetadata[][] | null;
|
|
1176
|
+
export type NodeOutput = INodeExecutionData[][] | NodeExecutionWithMetadata[][] | EngineRequest | null;
|
|
1169
1177
|
export interface INodeType {
|
|
1170
1178
|
description: INodeTypeDescription;
|
|
1171
1179
|
supplyData?(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
|
|
1172
|
-
execute?(this: IExecuteFunctions): Promise<NodeOutput>;
|
|
1180
|
+
execute?(this: IExecuteFunctions, response?: EngineResponse): Promise<NodeOutput>;
|
|
1173
1181
|
/**
|
|
1174
1182
|
* A function called when a node receives a chat message. Allows it to react
|
|
1175
1183
|
* to the message before it gets executed.
|
|
@@ -1216,13 +1224,93 @@ export interface INodeType {
|
|
|
1216
1224
|
};
|
|
1217
1225
|
};
|
|
1218
1226
|
}
|
|
1227
|
+
/**
|
|
1228
|
+
* Represents a request to execute a specific node and receive the result back.
|
|
1229
|
+
* This action tells the engine to execute the specified node with the provided input
|
|
1230
|
+
* and then call back the requesting node with the execution result.
|
|
1231
|
+
*
|
|
1232
|
+
* @template T - The type of metadata associated with this action
|
|
1233
|
+
*/
|
|
1234
|
+
type ExecuteNodeAction<T> = {
|
|
1235
|
+
/** The type identifier for this action */
|
|
1236
|
+
actionType: 'ExecutionNodeAction';
|
|
1237
|
+
/** The name of the node to be executed */
|
|
1238
|
+
nodeName: string;
|
|
1239
|
+
/** Input data to be passed to the node for execution */
|
|
1240
|
+
input: IDataObject;
|
|
1241
|
+
/** The type of connection this execution request uses */
|
|
1242
|
+
type: NodeConnectionType;
|
|
1243
|
+
/** Unique identifier for this execution request */
|
|
1244
|
+
id: string;
|
|
1245
|
+
/** Additional metadata for this execution request */
|
|
1246
|
+
metadata: T;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Union type of all possible actions that nodes can request from the workflow engine.
|
|
1250
|
+
* Currently only contains ExecuteNodeAction, but will be extended with additional
|
|
1251
|
+
* action types as they are implemented.
|
|
1252
|
+
*
|
|
1253
|
+
* @template T - The type of metadata associated with this action
|
|
1254
|
+
*/
|
|
1255
|
+
type EngineAction<T = unknown> = ExecuteNodeAction<T>;
|
|
1256
|
+
/**
|
|
1257
|
+
* A collection of actions that a node wants the engine to fulfill and call back with results.
|
|
1258
|
+
* The requesting node sends this to the engine and expects to receive an EngineResponse
|
|
1259
|
+
* containing the results of all requested actions.
|
|
1260
|
+
*
|
|
1261
|
+
* @template T - The type of metadata associated with this request
|
|
1262
|
+
*
|
|
1263
|
+
* @todo This should use `unknown`, but jest-mock-extended will turn this into
|
|
1264
|
+
* `Partial<unknown>` which `unknown` cannot be assigned to, which leads to a
|
|
1265
|
+
* lot of type errors in our tests.
|
|
1266
|
+
* The correct fix is to make a PR to jest-mock-extended and make it handle
|
|
1267
|
+
* `unknown` special, turning it into `unknown` instead of `Partial<unknown>`.
|
|
1268
|
+
*/
|
|
1269
|
+
export type EngineRequest<T = object> = {
|
|
1270
|
+
/** Array of actions that the requesting node wants the engine to fulfill */
|
|
1271
|
+
actions: Array<EngineAction<T>>;
|
|
1272
|
+
/** Metadata associated with this request */
|
|
1273
|
+
metadata: T;
|
|
1274
|
+
};
|
|
1275
|
+
/**
|
|
1276
|
+
* Result of executing a single node action within the workflow engine.
|
|
1277
|
+
* Contains the original action and the resulting task data.
|
|
1278
|
+
*
|
|
1279
|
+
* @template T - The type of metadata associated with this result
|
|
1280
|
+
*/
|
|
1281
|
+
export type ExecuteNodeResult<T = unknown> = {
|
|
1282
|
+
/** The action that was executed */
|
|
1283
|
+
action: ExecuteNodeAction<T>;
|
|
1284
|
+
/** The resulting task data from the execution */
|
|
1285
|
+
data: ITaskData;
|
|
1286
|
+
};
|
|
1287
|
+
/**
|
|
1288
|
+
* Union type of all possible results from engine actions.
|
|
1289
|
+
* Currently only contains ExecuteNodeResult, but will be extended with additional
|
|
1290
|
+
* result types as new action types are implemented.
|
|
1291
|
+
*
|
|
1292
|
+
* @template T - The type of metadata associated with this result
|
|
1293
|
+
*/
|
|
1294
|
+
type EngineResult<T> = ExecuteNodeResult<T>;
|
|
1295
|
+
/**
|
|
1296
|
+
* Response structure returned from the workflow engine after execution.
|
|
1297
|
+
* Contains the results of all executed actions along with associated metadata.
|
|
1298
|
+
*
|
|
1299
|
+
* @template T - The type of metadata associated with this response
|
|
1300
|
+
*/
|
|
1301
|
+
export type EngineResponse<T = unknown> = {
|
|
1302
|
+
/** Array of results from each executed action */
|
|
1303
|
+
actionResponses: Array<EngineResult<T>>;
|
|
1304
|
+
/** Metadata associated with this response */
|
|
1305
|
+
metadata: T;
|
|
1306
|
+
};
|
|
1219
1307
|
/**
|
|
1220
1308
|
* This class serves as the base for all nodes using the new context API
|
|
1221
1309
|
* having this as a class enables us to identify these instances at runtime
|
|
1222
1310
|
*/
|
|
1223
1311
|
export declare abstract class Node {
|
|
1224
1312
|
abstract description: INodeTypeDescription;
|
|
1225
|
-
execute?(context: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
1313
|
+
execute?(context: IExecuteFunctions, response?: EngineResponse): Promise<INodeExecutionData[][] | EngineRequest>;
|
|
1226
1314
|
webhook?(context: IWebhookFunctions): Promise<IWebhookResponseData>;
|
|
1227
1315
|
poll?(context: IPollFunctions): Promise<INodeExecutionData[][] | null>;
|
|
1228
1316
|
}
|
|
@@ -1666,7 +1754,7 @@ export interface IRunExecutionData {
|
|
|
1666
1754
|
waitTill?: Date;
|
|
1667
1755
|
pushRef?: string;
|
|
1668
1756
|
/** Data needed for a worker to run a manual execution. */
|
|
1669
|
-
manualData?: Pick<IWorkflowExecutionDataProcess, '
|
|
1757
|
+
manualData?: Pick<IWorkflowExecutionDataProcess, 'dirtyNodeNames' | 'triggerToStartFrom' | 'userId'>;
|
|
1670
1758
|
}
|
|
1671
1759
|
export type SchemaType = 'string' | 'number' | 'boolean' | 'bigint' | 'symbol' | 'array' | 'object' | 'function' | 'null' | 'undefined';
|
|
1672
1760
|
export type Schema = {
|
|
@@ -1690,11 +1778,21 @@ export interface RelatedExecution {
|
|
|
1690
1778
|
executionId: string;
|
|
1691
1779
|
workflowId: string;
|
|
1692
1780
|
}
|
|
1781
|
+
type SubNodeExecutionDataAction = {
|
|
1782
|
+
nodeName: string;
|
|
1783
|
+
runIndex: number;
|
|
1784
|
+
action: EngineRequest['actions'][number];
|
|
1785
|
+
response?: object;
|
|
1786
|
+
};
|
|
1693
1787
|
export interface ITaskMetadata {
|
|
1694
1788
|
subRun?: ITaskSubRunMetadata[];
|
|
1695
1789
|
parentExecution?: RelatedExecution;
|
|
1696
1790
|
subExecution?: RelatedExecution;
|
|
1697
1791
|
subExecutionsCount?: number;
|
|
1792
|
+
subNodeExecutionData?: {
|
|
1793
|
+
actions: SubNodeExecutionDataAction[];
|
|
1794
|
+
metadata: object;
|
|
1795
|
+
};
|
|
1698
1796
|
}
|
|
1699
1797
|
/** The data that gets returned when a node execution starts */
|
|
1700
1798
|
export interface ITaskStartedData {
|
|
@@ -1776,13 +1874,6 @@ export interface IWorkflowExecutionDataProcess {
|
|
|
1776
1874
|
workflowData: IWorkflowBase;
|
|
1777
1875
|
userId?: string;
|
|
1778
1876
|
projectId?: string;
|
|
1779
|
-
/**
|
|
1780
|
-
* Defines which version of the partial execution flow is used.
|
|
1781
|
-
* Possible values are:
|
|
1782
|
-
* 1 - use the old flow
|
|
1783
|
-
* 2 - use the new flow
|
|
1784
|
-
*/
|
|
1785
|
-
partialExecutionVersion?: 1 | 2;
|
|
1786
1877
|
dirtyNodeNames?: string[];
|
|
1787
1878
|
triggerToStartFrom?: {
|
|
1788
1879
|
name: string;
|