n8n-workflow 1.109.0 → 1.110.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/cjs/data-store.types.d.ts +16 -4
  2. package/dist/cjs/data-store.types.d.ts.map +1 -1
  3. package/dist/cjs/data-store.types.js +7 -2
  4. package/dist/cjs/data-store.types.js.map +1 -1
  5. package/dist/cjs/errors/index.d.ts +1 -0
  6. package/dist/cjs/errors/index.d.ts.map +1 -1
  7. package/dist/cjs/errors/index.js +4 -2
  8. package/dist/cjs/errors/index.js.map +1 -1
  9. package/dist/cjs/errors/workflow-configuration.error.d.ts +7 -0
  10. package/dist/cjs/errors/workflow-configuration.error.d.ts.map +1 -0
  11. package/dist/cjs/errors/workflow-configuration.error.js +21 -0
  12. package/dist/cjs/errors/workflow-configuration.error.js.map +1 -0
  13. package/dist/cjs/index.d.ts +1 -1
  14. package/dist/cjs/index.d.ts.map +1 -1
  15. package/dist/cjs/index.js +2 -1
  16. package/dist/cjs/index.js.map +1 -1
  17. package/dist/cjs/interfaces.d.ts +102 -5
  18. package/dist/cjs/interfaces.d.ts.map +1 -1
  19. package/dist/cjs/interfaces.js.map +1 -1
  20. package/dist/cjs/type-guards.d.ts +2 -1
  21. package/dist/cjs/type-guards.d.ts.map +1 -1
  22. package/dist/cjs/type-guards.js +7 -2
  23. package/dist/cjs/type-guards.js.map +1 -1
  24. package/dist/cjs/typecheck.tsbuildinfo +1 -1
  25. package/dist/cjs/workflow-data-proxy.js +2 -2
  26. package/dist/cjs/workflow-data-proxy.js.map +1 -1
  27. package/dist/esm/data-store.types.d.ts +16 -4
  28. package/dist/esm/data-store.types.d.ts.map +1 -1
  29. package/dist/esm/data-store.types.js +6 -1
  30. package/dist/esm/data-store.types.js.map +1 -1
  31. package/dist/esm/errors/index.d.ts +1 -0
  32. package/dist/esm/errors/index.d.ts.map +1 -1
  33. package/dist/esm/errors/index.js +1 -0
  34. package/dist/esm/errors/index.js.map +1 -1
  35. package/dist/esm/errors/workflow-configuration.error.d.ts +7 -0
  36. package/dist/esm/errors/workflow-configuration.error.d.ts.map +1 -0
  37. package/dist/esm/errors/workflow-configuration.error.js +7 -0
  38. package/dist/esm/errors/workflow-configuration.error.js.map +1 -0
  39. package/dist/esm/index.d.ts +1 -1
  40. package/dist/esm/index.d.ts.map +1 -1
  41. package/dist/esm/index.js +1 -1
  42. package/dist/esm/index.js.map +1 -1
  43. package/dist/esm/interfaces.d.ts +102 -5
  44. package/dist/esm/interfaces.d.ts.map +1 -1
  45. package/dist/esm/interfaces.js.map +1 -1
  46. package/dist/esm/type-guards.d.ts +2 -1
  47. package/dist/esm/type-guards.d.ts.map +1 -1
  48. package/dist/esm/type-guards.js +4 -0
  49. package/dist/esm/type-guards.js.map +1 -1
  50. package/dist/esm/typecheck.tsbuildinfo +1 -1
  51. package/dist/esm/workflow-data-proxy.js +1 -1
  52. package/dist/esm/workflow-data-proxy.js.map +1 -1
  53. 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?: DataTableFilter;
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 DATA_TABLE_SYSTEM_COLUMNS: readonly ["id", "createdAt", "updatedAt"];
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 DataTablesSizeResult = {
78
+ export type DataTableInfo = {
79
+ id: string;
80
+ name: string;
81
+ projectId: string;
82
+ projectName: string;
78
83
  sizeBytes: number;
79
- sizeState: DataTableSizeStatus;
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,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAAC,GAChF,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AAO,CAAC,CAAC;IAEjD,mBAAmB,CAClB,GAAG,EAAE,OAAO,CAAC,wBAAwB,CAAC,GACpC,OAAO,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,mBAAmB,CAAA;KAAE,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.DATA_TABLE_SYSTEM_COLUMNS = ['id', 'createdAt', 'updatedAt'];
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,yBAAyB,GAAG,CAAC,IAAI,EAAE,WAAW,EAAE,WAAW,CAAU,CAAC"}
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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AAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,0BAA0B,EAAE,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"}
@@ -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,6DAA0D;IAAjD,wHAAA,iBAAiB,OAAA;IAE1B,oDAAkD;IAAzC,uGAAA,SAAS,OAAA;IAClB,wEAAqE;IAA5D,0HAAA,kBAAkB,OAAA;IAC3B,2EAAwE;IAA/D,sIAAA,wBAAwB,OAAA;IACjC,6EAAyE;IAAhE,uIAAA,wBAAwB,OAAA;IACjC,+CAA6C;IAApC,2GAAA,WAAW,OAAA"}
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,+EAA4E;IAAnE,0IAAA,0BAA0B,OAAA;IACnC,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,6DAA0D;IAAjD,wHAAA,iBAAiB,OAAA;IAE1B,oDAAkD;IAAzC,uGAAA,SAAS,OAAA;IAClB,wEAAqE;IAA5D,0HAAA,kBAAkB,OAAA;IAC3B,2EAAwE;IAA/D,sIAAA,wBAAwB,OAAA;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"}
@@ -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';
@@ -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;AAC9C,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,gBAAgB,MAAM,qBAAqB,CAAC;AAExD,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAA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AAC;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; } });
@@ -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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,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"}
@@ -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;
@@ -1056,9 +1057,15 @@ export interface INodePropertyModeTypeOptions {
1056
1057
  skipCredentialsCheckInRLC?: boolean;
1057
1058
  allowNewResource?: {
1058
1059
  label: string;
1059
- defaultName: string;
1060
+ } & ({
1060
1061
  method: string;
1061
- };
1062
+ url?: never;
1063
+ defaultName: string;
1064
+ } | {
1065
+ method?: never;
1066
+ url: string;
1067
+ defaultName?: never;
1068
+ });
1062
1069
  }
1063
1070
  export interface INodePropertyMode {
1064
1071
  displayName: string;
@@ -1165,11 +1172,11 @@ export interface SupplyData {
1165
1172
  response: unknown;
1166
1173
  closeFunction?: CloseFunction;
1167
1174
  }
1168
- type NodeOutput = INodeExecutionData[][] | NodeExecutionWithMetadata[][] | null;
1175
+ export type NodeOutput = INodeExecutionData[][] | NodeExecutionWithMetadata[][] | EngineRequest | null;
1169
1176
  export interface INodeType {
1170
1177
  description: INodeTypeDescription;
1171
1178
  supplyData?(this: ISupplyDataFunctions, itemIndex: number): Promise<SupplyData>;
1172
- execute?(this: IExecuteFunctions): Promise<NodeOutput>;
1179
+ execute?(this: IExecuteFunctions, response?: EngineResponse): Promise<NodeOutput>;
1173
1180
  /**
1174
1181
  * A function called when a node receives a chat message. Allows it to react
1175
1182
  * to the message before it gets executed.
@@ -1216,13 +1223,93 @@ export interface INodeType {
1216
1223
  };
1217
1224
  };
1218
1225
  }
1226
+ /**
1227
+ * Represents a request to execute a specific node and receive the result back.
1228
+ * This action tells the engine to execute the specified node with the provided input
1229
+ * and then call back the requesting node with the execution result.
1230
+ *
1231
+ * @template T - The type of metadata associated with this action
1232
+ */
1233
+ type ExecuteNodeAction<T> = {
1234
+ /** The type identifier for this action */
1235
+ actionType: 'ExecutionNodeAction';
1236
+ /** The name of the node to be executed */
1237
+ nodeName: string;
1238
+ /** Input data to be passed to the node for execution */
1239
+ input: IDataObject;
1240
+ /** The type of connection this execution request uses */
1241
+ type: NodeConnectionType;
1242
+ /** Unique identifier for this execution request */
1243
+ id: string;
1244
+ /** Additional metadata for this execution request */
1245
+ metadata: T;
1246
+ };
1247
+ /**
1248
+ * Union type of all possible actions that nodes can request from the workflow engine.
1249
+ * Currently only contains ExecuteNodeAction, but will be extended with additional
1250
+ * action types as they are implemented.
1251
+ *
1252
+ * @template T - The type of metadata associated with this action
1253
+ */
1254
+ type EngineAction<T = unknown> = ExecuteNodeAction<T>;
1255
+ /**
1256
+ * A collection of actions that a node wants the engine to fulfill and call back with results.
1257
+ * The requesting node sends this to the engine and expects to receive an EngineResponse
1258
+ * containing the results of all requested actions.
1259
+ *
1260
+ * @template T - The type of metadata associated with this request
1261
+ *
1262
+ * @todo This should use `unknown`, but jest-mock-extended will turn this into
1263
+ * `Partial<unknown>` which `unknown` cannot be assigned to, which leads to a
1264
+ * lot of type errors in our tests.
1265
+ * The correct fix is to make a PR to jest-mock-extended and make it handle
1266
+ * `unknown` special, turning it into `unknown` instead of `Partial<unknown>`.
1267
+ */
1268
+ export type EngineRequest<T = object> = {
1269
+ /** Array of actions that the requesting node wants the engine to fulfill */
1270
+ actions: Array<EngineAction<T>>;
1271
+ /** Metadata associated with this request */
1272
+ metadata: T;
1273
+ };
1274
+ /**
1275
+ * Result of executing a single node action within the workflow engine.
1276
+ * Contains the original action and the resulting task data.
1277
+ *
1278
+ * @template T - The type of metadata associated with this result
1279
+ */
1280
+ export type ExecuteNodeResult<T = unknown> = {
1281
+ /** The action that was executed */
1282
+ action: ExecuteNodeAction<T>;
1283
+ /** The resulting task data from the execution */
1284
+ data: ITaskData;
1285
+ };
1286
+ /**
1287
+ * Union type of all possible results from engine actions.
1288
+ * Currently only contains ExecuteNodeResult, but will be extended with additional
1289
+ * result types as new action types are implemented.
1290
+ *
1291
+ * @template T - The type of metadata associated with this result
1292
+ */
1293
+ type EngineResult<T> = ExecuteNodeResult<T>;
1294
+ /**
1295
+ * Response structure returned from the workflow engine after execution.
1296
+ * Contains the results of all executed actions along with associated metadata.
1297
+ *
1298
+ * @template T - The type of metadata associated with this response
1299
+ */
1300
+ export type EngineResponse<T = unknown> = {
1301
+ /** Array of results from each executed action */
1302
+ actionResponses: Array<EngineResult<T>>;
1303
+ /** Metadata associated with this response */
1304
+ metadata: T;
1305
+ };
1219
1306
  /**
1220
1307
  * This class serves as the base for all nodes using the new context API
1221
1308
  * having this as a class enables us to identify these instances at runtime
1222
1309
  */
1223
1310
  export declare abstract class Node {
1224
1311
  abstract description: INodeTypeDescription;
1225
- execute?(context: IExecuteFunctions): Promise<INodeExecutionData[][]>;
1312
+ execute?(context: IExecuteFunctions, response?: EngineResponse): Promise<INodeExecutionData[][] | EngineRequest>;
1226
1313
  webhook?(context: IWebhookFunctions): Promise<IWebhookResponseData>;
1227
1314
  poll?(context: IPollFunctions): Promise<INodeExecutionData[][] | null>;
1228
1315
  }
@@ -1690,11 +1777,21 @@ export interface RelatedExecution {
1690
1777
  executionId: string;
1691
1778
  workflowId: string;
1692
1779
  }
1780
+ type SubNodeExecutionDataAction = {
1781
+ nodeName: string;
1782
+ runIndex: number;
1783
+ action: EngineRequest['actions'][number];
1784
+ response?: object;
1785
+ };
1693
1786
  export interface ITaskMetadata {
1694
1787
  subRun?: ITaskSubRunMetadata[];
1695
1788
  parentExecution?: RelatedExecution;
1696
1789
  subExecution?: RelatedExecution;
1697
1790
  subExecutionsCount?: number;
1791
+ subNodeExecutionData?: {
1792
+ actions: SubNodeExecutionDataAction[];
1793
+ metadata: object;
1794
+ };
1698
1795
  }
1699
1796
  /** The data that gets returned when a node execution starts */
1700
1797
  export interface ITaskStartedData {