n8n-core 2.32.2 → 2.34.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 (100) hide show
  1. package/dist/binary-data/binary-data.service.d.ts +1 -1
  2. package/dist/binary-data/binary-data.service.js +7 -2
  3. package/dist/binary-data/binary-data.service.js.map +1 -1
  4. package/dist/binary-data/{azure-blob.manager.d.ts → blob.manager.d.ts} +14 -4
  5. package/dist/binary-data/blob.manager.js +148 -0
  6. package/dist/binary-data/blob.manager.js.map +1 -0
  7. package/dist/binary-data/index.d.ts +1 -2
  8. package/dist/binary-data/index.js +3 -1
  9. package/dist/binary-data/index.js.map +1 -1
  10. package/dist/binary-data/types.d.ts +3 -6
  11. package/dist/binary-data/utils.d.ts +0 -2
  12. package/dist/binary-data/utils.js +0 -51
  13. package/dist/binary-data/utils.js.map +1 -1
  14. package/dist/build.tsbuildinfo +1 -1
  15. package/dist/errors/error-reporter.js +5 -2
  16. package/dist/errors/error-reporter.js.map +1 -1
  17. package/dist/execution-engine/active-workflow-triggers.d.ts +1 -0
  18. package/dist/execution-engine/active-workflow-triggers.js +53 -8
  19. package/dist/execution-engine/active-workflow-triggers.js.map +1 -1
  20. package/dist/execution-engine/eval-mock-fixtures.d.ts +2 -0
  21. package/dist/execution-engine/eval-mock-fixtures.js +79 -0
  22. package/dist/execution-engine/eval-mock-fixtures.js.map +1 -1
  23. package/dist/execution-engine/execution-context-hook-registry.service.d.ts +2 -0
  24. package/dist/execution-engine/execution-context-hook-registry.service.js +9 -0
  25. package/dist/execution-engine/execution-context-hook-registry.service.js.map +1 -1
  26. package/dist/execution-engine/execution-context.d.ts +1 -1
  27. package/dist/execution-engine/execution-context.js +5 -1
  28. package/dist/execution-engine/execution-context.js.map +1 -1
  29. package/dist/execution-engine/execution-context.service.d.ts +4 -1
  30. package/dist/execution-engine/execution-context.service.js +32 -2
  31. package/dist/execution-engine/execution-context.service.js.map +1 -1
  32. package/dist/execution-engine/index.d.ts +4 -1
  33. package/dist/execution-engine/index.js +9 -1
  34. package/dist/execution-engine/index.js.map +1 -1
  35. package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +1 -0
  36. package/dist/execution-engine/node-execution-context/base-execute-context.js +17 -4
  37. package/dist/execution-engine/node-execution-context/base-execute-context.js.map +1 -1
  38. package/dist/execution-engine/node-execution-context/execute-context.d.ts +1 -1
  39. package/dist/execution-engine/node-execution-context/execute-context.js.map +1 -1
  40. package/dist/execution-engine/node-execution-context/node-execution-context.js +7 -2
  41. package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -1
  42. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +2 -1
  43. package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -1
  44. package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js +12 -2
  45. package/dist/execution-engine/node-execution-context/utils/request-helpers/oauth.js.map +1 -1
  46. package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js +2 -1
  47. package/dist/execution-engine/node-execution-context/utils/request-helpers/pagination.js.map +1 -1
  48. package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js +19 -2
  49. package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js.map +1 -1
  50. package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js +3 -0
  51. package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js.map +1 -1
  52. package/dist/execution-engine/node-execution-context/webhook-context.d.ts +4 -1
  53. package/dist/execution-engine/node-execution-context/webhook-context.js +16 -2
  54. package/dist/execution-engine/node-execution-context/webhook-context.js.map +1 -1
  55. package/dist/execution-engine/noop-poll-job-manager.d.ts +8 -0
  56. package/dist/execution-engine/noop-poll-job-manager.js +14 -0
  57. package/dist/execution-engine/noop-poll-job-manager.js.map +1 -0
  58. package/dist/execution-engine/poll-job-manager.d.ts +7 -0
  59. package/dist/execution-engine/poll-job-manager.js +7 -0
  60. package/dist/execution-engine/poll-job-manager.js.map +1 -0
  61. package/dist/execution-engine/routing-node.js +2 -1
  62. package/dist/execution-engine/routing-node.js.map +1 -1
  63. package/dist/execution-engine/workflow-active-triggers-state.d.ts +4 -1
  64. package/dist/execution-engine/workflow-active-triggers-state.js +3 -3
  65. package/dist/execution-engine/workflow-active-triggers-state.js.map +1 -1
  66. package/dist/execution-engine/workflow-execute.js +2 -1
  67. package/dist/execution-engine/workflow-execute.js.map +1 -1
  68. package/dist/fs-byte-store.service.d.ts +6 -0
  69. package/dist/fs-byte-store.service.js +30 -0
  70. package/dist/fs-byte-store.service.js.map +1 -0
  71. package/dist/index.d.ts +1 -0
  72. package/dist/index.js +3 -1
  73. package/dist/index.js.map +1 -1
  74. package/dist/instance-settings/instance-settings.d.ts +3 -0
  75. package/dist/instance-settings/instance-settings.js +8 -5
  76. package/dist/instance-settings/instance-settings.js.map +1 -1
  77. package/package.json +14 -16
  78. package/dist/binary-data/azure-blob/azure-blob.config.d.ts +0 -8
  79. package/dist/binary-data/azure-blob/azure-blob.config.js +0 -52
  80. package/dist/binary-data/azure-blob/azure-blob.config.js.map +0 -1
  81. package/dist/binary-data/azure-blob/azure-blob.service.ee.d.ts +0 -25
  82. package/dist/binary-data/azure-blob/azure-blob.service.ee.js +0 -157
  83. package/dist/binary-data/azure-blob/azure-blob.service.ee.js.map +0 -1
  84. package/dist/binary-data/azure-blob.manager.js +0 -81
  85. package/dist/binary-data/azure-blob.manager.js.map +0 -1
  86. package/dist/binary-data/file-system.manager.d.ts +0 -31
  87. package/dist/binary-data/file-system.manager.js +0 -151
  88. package/dist/binary-data/file-system.manager.js.map +0 -1
  89. package/dist/binary-data/object-store/object-store.config.d.ts +0 -21
  90. package/dist/binary-data/object-store/object-store.config.js +0 -93
  91. package/dist/binary-data/object-store/object-store.config.js.map +0 -1
  92. package/dist/binary-data/object-store/object-store.service.ee.d.ts +0 -49
  93. package/dist/binary-data/object-store/object-store.service.ee.js +0 -290
  94. package/dist/binary-data/object-store/object-store.service.ee.js.map +0 -1
  95. package/dist/binary-data/object-store/types.d.ts +0 -8
  96. package/dist/binary-data/object-store/types.js +0 -3
  97. package/dist/binary-data/object-store/types.js.map +0 -1
  98. package/dist/binary-data/object-store.manager.d.ts +0 -23
  99. package/dist/binary-data/object-store.manager.js +0 -87
  100. package/dist/binary-data/object-store.manager.js.map +0 -1
@@ -1,23 +0,0 @@
1
- import type { Readable } from 'node:stream';
2
- import { ObjectStoreService } from './object-store/object-store.service.ee';
3
- import type { BinaryData } from './types';
4
- export declare class ObjectStoreManager implements BinaryData.Manager {
5
- private readonly objectStoreService;
6
- constructor(objectStoreService: ObjectStoreService);
7
- init(): Promise<void>;
8
- store(location: BinaryData.FileLocation, bufferOrStream: Buffer | Readable, metadata: BinaryData.PreWriteMetadata): Promise<{
9
- fileId: string;
10
- fileSize: number;
11
- }>;
12
- getPath(fileId: string): string;
13
- getAsBuffer(fileId: string): Promise<Buffer<ArrayBufferLike>>;
14
- getAsStream(fileId: string, chunkSize?: number): Promise<Readable>;
15
- getMetadata(fileId: string): Promise<BinaryData.Metadata>;
16
- copyByFileId(targetLocation: BinaryData.FileLocation, sourceFileId: string): Promise<string>;
17
- copyByFilePath(targetLocation: BinaryData.FileLocation, sourcePath: string, metadata: BinaryData.PreWriteMetadata): Promise<{
18
- fileId: string;
19
- fileSize: number;
20
- }>;
21
- rename(oldFileId: string, newFileId: string): Promise<void>;
22
- private toFileId;
23
- }
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ObjectStoreManager = void 0;
16
- const backend_network_1 = require("@n8n/backend-network");
17
- const di_1 = require("@n8n/di");
18
- const promises_1 = __importDefault(require("node:fs/promises"));
19
- const uuid_1 = require("uuid");
20
- const object_store_service_ee_1 = require("./object-store/object-store.service.ee");
21
- let ObjectStoreManager = class ObjectStoreManager {
22
- constructor(objectStoreService) {
23
- this.objectStoreService = objectStoreService;
24
- }
25
- async init() {
26
- await this.objectStoreService.checkConnection();
27
- }
28
- async store(location, bufferOrStream, metadata) {
29
- const fileId = this.toFileId(location);
30
- const buffer = await (0, backend_network_1.binaryToBuffer)(bufferOrStream);
31
- await this.objectStoreService.put(fileId, buffer, metadata);
32
- return { fileId, fileSize: buffer.length };
33
- }
34
- getPath(fileId) {
35
- return fileId;
36
- }
37
- async getAsBuffer(fileId) {
38
- return await this.objectStoreService.get(fileId, { mode: 'buffer' });
39
- }
40
- async getAsStream(fileId, chunkSize) {
41
- return await this.objectStoreService.get(fileId, { mode: 'stream', chunkSize });
42
- }
43
- async getMetadata(fileId) {
44
- const { 'content-length': contentLength, 'content-type': contentType, 'x-amz-meta-filename': fileName, } = await this.objectStoreService.getMetadata(fileId);
45
- const metadata = { fileSize: Number(contentLength) };
46
- if (contentType)
47
- metadata.mimeType = contentType;
48
- if (fileName)
49
- metadata.fileName = fileName;
50
- return metadata;
51
- }
52
- async copyByFileId(targetLocation, sourceFileId) {
53
- const targetFileId = this.toFileId(targetLocation);
54
- const sourceFile = await this.objectStoreService.get(sourceFileId, { mode: 'buffer' });
55
- const sourceMetadata = await this.getMetadata(sourceFileId);
56
- await this.objectStoreService.put(targetFileId, sourceFile, sourceMetadata);
57
- return targetFileId;
58
- }
59
- async copyByFilePath(targetLocation, sourcePath, metadata) {
60
- const targetFileId = this.toFileId(targetLocation);
61
- const sourceFile = await promises_1.default.readFile(sourcePath);
62
- await this.objectStoreService.put(targetFileId, sourceFile, metadata);
63
- return { fileId: targetFileId, fileSize: sourceFile.length };
64
- }
65
- async rename(oldFileId, newFileId) {
66
- const oldFile = await this.objectStoreService.get(oldFileId, { mode: 'buffer' });
67
- const oldFileMetadata = await this.getMetadata(oldFileId);
68
- await this.objectStoreService.put(newFileId, oldFile, oldFileMetadata);
69
- await this.objectStoreService.deleteOne(oldFileId);
70
- }
71
- toFileId(location) {
72
- switch (location.type) {
73
- case 'execution': {
74
- const executionId = location.executionId || 'temp';
75
- return `workflows/${location.workflowId}/executions/${executionId}/binary_data/${(0, uuid_1.v4)()}`;
76
- }
77
- case 'custom':
78
- return `${location.pathSegments.join('/')}/binary_data/${(0, uuid_1.v4)()}`;
79
- }
80
- }
81
- };
82
- exports.ObjectStoreManager = ObjectStoreManager;
83
- exports.ObjectStoreManager = ObjectStoreManager = __decorate([
84
- (0, di_1.Service)(),
85
- __metadata("design:paramtypes", [object_store_service_ee_1.ObjectStoreService])
86
- ], ObjectStoreManager);
87
- //# sourceMappingURL=object-store.manager.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"object-store.manager.js","sourceRoot":"","sources":["../../src/binary-data/object-store.manager.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0DAAsD;AACtD,gCAAkC;AAClC,gEAAkC;AAElC,+BAAkC;AAElC,oFAA4E;AAIrE,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IAC9B,YAA6B,kBAAsC;kCAAtC,kBAAkB;IAAuB,CAAC;IAEvE,KAAK,CAAC,IAAI;QACT,MAAM,IAAI,CAAC,kBAAkB,CAAC,eAAe,EAAE,CAAC;IACjD,CAAC;IAED,KAAK,CAAC,KAAK,CACV,QAAiC,EACjC,cAAiC,EACjC,QAAqC;QAErC,MAAM,MAAM,GAAG,IAAI,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