@atom8n/n8n-core 2.2.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/README.md +13 -0
- package/bin/common.js +19 -0
- package/bin/copy-static-files +24 -0
- package/bin/generate-metadata +75 -0
- package/bin/generate-translations +99 -0
- package/dist/binary-data/binary-data.config.d.ts +15 -0
- package/dist/binary-data/binary-data.config.js +62 -0
- package/dist/binary-data/binary-data.config.js.map +1 -0
- package/dist/binary-data/binary-data.service.d.ts +32 -0
- package/dist/binary-data/binary-data.service.js +243 -0
- package/dist/binary-data/binary-data.service.js.map +1 -0
- package/dist/binary-data/file-system.manager.d.ts +31 -0
- package/dist/binary-data/file-system.manager.js +154 -0
- package/dist/binary-data/file-system.manager.js.map +1 -0
- package/dist/binary-data/index.d.ts +5 -0
- package/dist/binary-data/index.js +27 -0
- package/dist/binary-data/index.js.map +1 -0
- package/dist/binary-data/object-store/object-store.config.d.ts +19 -0
- package/dist/binary-data/object-store/object-store.config.js +83 -0
- package/dist/binary-data/object-store/object-store.config.js.map +1 -0
- package/dist/binary-data/object-store/object-store.service.ee.d.ts +46 -0
- package/dist/binary-data/object-store/object-store.service.ee.js +235 -0
- package/dist/binary-data/object-store/object-store.service.ee.js.map +1 -0
- package/dist/binary-data/object-store/types.d.ts +8 -0
- package/dist/binary-data/object-store/types.js +3 -0
- package/dist/binary-data/object-store/types.js.map +1 -0
- package/dist/binary-data/object-store.manager.d.ts +23 -0
- package/dist/binary-data/object-store.manager.js +86 -0
- package/dist/binary-data/object-store.manager.js.map +1 -0
- package/dist/binary-data/types.d.ts +46 -0
- package/dist/binary-data/types.js +3 -0
- package/dist/binary-data/types.js.map +1 -0
- package/dist/binary-data/utils.d.ts +15 -0
- package/dist/binary-data/utils.js +66 -0
- package/dist/binary-data/utils.js.map +1 -0
- package/dist/build.tsbuildinfo +1 -0
- package/dist/constants.d.ts +19 -0
- package/dist/constants.js +23 -0
- package/dist/constants.js.map +1 -0
- package/dist/credentials.d.ts +12 -0
- package/dist/credentials.js +99 -0
- package/dist/credentials.js.map +1 -0
- package/dist/data-deduplication-service.d.ts +16 -0
- package/dist/data-deduplication-service.js +95 -0
- package/dist/data-deduplication-service.js.map +1 -0
- package/dist/encryption/cipher.d.ts +8 -0
- package/dist/encryption/cipher.js +57 -0
- package/dist/encryption/cipher.js.map +1 -0
- package/dist/encryption/index.d.ts +1 -0
- package/dist/encryption/index.js +6 -0
- package/dist/encryption/index.js.map +1 -0
- package/dist/errors/abstract/binary-data.error.d.ts +3 -0
- package/dist/errors/abstract/binary-data.error.js +8 -0
- package/dist/errors/abstract/binary-data.error.js.map +1 -0
- package/dist/errors/abstract/filesystem.error.d.ts +4 -0
- package/dist/errors/abstract/filesystem.error.js +11 -0
- package/dist/errors/abstract/filesystem.error.js.map +1 -0
- package/dist/errors/binary-data-file-not-found.error.d.ts +4 -0
- package/dist/errors/binary-data-file-not-found.error.js +11 -0
- package/dist/errors/binary-data-file-not-found.error.js.map +1 -0
- package/dist/errors/disallowed-filepath.error.d.ts +4 -0
- package/dist/errors/disallowed-filepath.error.js +11 -0
- package/dist/errors/disallowed-filepath.error.js.map +1 -0
- package/dist/errors/error-reporter.d.ts +35 -0
- package/dist/errors/error-reporter.js +256 -0
- package/dist/errors/error-reporter.js.map +1 -0
- package/dist/errors/file-not-found.error.d.ts +4 -0
- package/dist/errors/file-not-found.error.js +11 -0
- package/dist/errors/file-not-found.error.js.map +1 -0
- package/dist/errors/file-too-large.error.d.ts +9 -0
- package/dist/errors/file-too-large.error.js +13 -0
- package/dist/errors/file-too-large.error.js.map +1 -0
- package/dist/errors/index.d.ts +11 -0
- package/dist/errors/index.js +26 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/invalid-execution-metadata.error.d.ts +5 -0
- package/dist/errors/invalid-execution-metadata.error.js +12 -0
- package/dist/errors/invalid-execution-metadata.error.js.map +1 -0
- package/dist/errors/invalid-manager.error.d.ts +4 -0
- package/dist/errors/invalid-manager.error.js +11 -0
- package/dist/errors/invalid-manager.error.js.map +1 -0
- package/dist/errors/invalid-source-type.error.d.ts +4 -0
- package/dist/errors/invalid-source-type.error.js +11 -0
- package/dist/errors/invalid-source-type.error.js.map +1 -0
- package/dist/errors/missing-source-id.error.d.ts +4 -0
- package/dist/errors/missing-source-id.error.js +11 -0
- package/dist/errors/missing-source-id.error.js.map +1 -0
- package/dist/errors/unrecognized-credential-type.error.d.ts +4 -0
- package/dist/errors/unrecognized-credential-type.error.js +11 -0
- package/dist/errors/unrecognized-credential-type.error.js.map +1 -0
- package/dist/errors/unrecognized-node-type.error.d.ts +4 -0
- package/dist/errors/unrecognized-node-type.error.js +11 -0
- package/dist/errors/unrecognized-node-type.error.js.map +1 -0
- package/dist/errors/workflow-has-issues.error.d.ts +4 -0
- package/dist/errors/workflow-has-issues.error.js +11 -0
- package/dist/errors/workflow-has-issues.error.js.map +1 -0
- package/dist/execution-engine/active-workflows.d.ts +23 -0
- package/dist/execution-engine/active-workflows.js +153 -0
- package/dist/execution-engine/active-workflows.js.map +1 -0
- package/dist/execution-engine/execution-context-hook-registry.service.d.ts +12 -0
- package/dist/execution-engine/execution-context-hook-registry.service.js +69 -0
- package/dist/execution-engine/execution-context-hook-registry.service.js.map +1 -0
- package/dist/execution-engine/execution-context.d.ts +2 -0
- package/dist/execution-engine/execution-context.js +56 -0
- package/dist/execution-engine/execution-context.js.map +1 -0
- package/dist/execution-engine/execution-context.service.d.ts +17 -0
- package/dist/execution-engine/execution-context.service.js +108 -0
- package/dist/execution-engine/execution-context.service.js.map +1 -0
- package/dist/execution-engine/execution-lifecycle-hooks.d.ts +20 -0
- package/dist/execution-engine/execution-lifecycle-hooks.js +31 -0
- package/dist/execution-engine/execution-lifecycle-hooks.js.map +1 -0
- package/dist/execution-engine/external-secrets-proxy.d.ts +18 -0
- package/dist/execution-engine/external-secrets-proxy.js +38 -0
- package/dist/execution-engine/external-secrets-proxy.js.map +1 -0
- package/dist/execution-engine/index.d.ts +26 -0
- package/dist/execution-engine/index.js +31 -0
- package/dist/execution-engine/index.js.map +1 -0
- package/dist/execution-engine/interfaces.d.ts +7 -0
- package/dist/execution-engine/interfaces.js +3 -0
- package/dist/execution-engine/interfaces.js.map +1 -0
- package/dist/execution-engine/node-execution-context/base-execute-context.d.ts +47 -0
- package/dist/execution-engine/node-execution-context/base-execute-context.js +150 -0
- package/dist/execution-engine/node-execution-context/base-execute-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/credentials-test-context.d.ts +7 -0
- package/dist/execution-engine/node-execution-context/credentials-test-context.js +37 -0
- package/dist/execution-engine/node-execution-context/credentials-test-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/execute-context.d.ts +24 -0
- package/dist/execution-engine/node-execution-context/execute-context.js +108 -0
- package/dist/execution-engine/node-execution-context/execute-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/execute-single-context.d.ts +15 -0
- package/dist/execution-engine/node-execution-context/execute-single-context.js +53 -0
- package/dist/execution-engine/node-execution-context/execute-single-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/hook-context.d.ts +13 -0
- package/dist/execution-engine/node-execution-context/hook-context.js +35 -0
- package/dist/execution-engine/node-execution-context/hook-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/index.d.ts +17 -0
- package/dist/execution-engine/node-execution-context/index.js +51 -0
- package/dist/execution-engine/node-execution-context/index.js.map +1 -0
- package/dist/execution-engine/node-execution-context/load-options-context.d.ts +10 -0
- package/dist/execution-engine/node-execution-context/load-options-context.js +43 -0
- package/dist/execution-engine/node-execution-context/load-options-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/local-load-options-context.d.ts +10 -0
- package/dist/execution-engine/node-execution-context/local-load-options-context.js +51 -0
- package/dist/execution-engine/node-execution-context/local-load-options-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/node-execution-context.d.ts +68 -0
- package/dist/execution-engine/node-execution-context/node-execution-context.js +324 -0
- package/dist/execution-engine/node-execution-context/node-execution-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/poll-context.d.ts +11 -0
- package/dist/execution-engine/node-execution-context/poll-context.js +38 -0
- package/dist/execution-engine/node-execution-context/poll-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/supply-data-context.d.ts +26 -0
- package/dist/execution-engine/node-execution-context/supply-data-context.js +181 -0
- package/dist/execution-engine/node-execution-context/supply-data-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/trigger-context.d.ts +11 -0
- package/dist/execution-engine/node-execution-context/trigger-context.js +40 -0
- package/dist/execution-engine/node-execution-context/trigger-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.d.ts +10 -0
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js +213 -0
- package/dist/execution-engine/node-execution-context/utils/binary-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.js +27 -0
- package/dist/execution-engine/node-execution-context/utils/cleanup-parameter-data.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.d.ts +4 -0
- package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.js +11 -0
- package/dist/execution-engine/node-execution-context/utils/construct-execution-metadata.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/copy-input-items.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/copy-input-items.js +19 -0
- package/dist/execution-engine/node-execution-context/utils/copy-input-items.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.d.ts +21 -0
- package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.js +65 -0
- package/dist/execution-engine/node-execution-context/utils/create-node-as-tool.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.js +13 -0
- package/dist/execution-engine/node-execution-context/utils/data-table-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.js +38 -0
- package/dist/execution-engine/node-execution-context/utils/deduplication-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/ensure-type.d.ts +6 -0
- package/dist/execution-engine/node-execution-context/utils/ensure-type.js +75 -0
- package/dist/execution-engine/node-execution-context/utils/ensure-type.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/execution-metadata.d.ts +6 -0
- package/dist/execution-engine/node-execution-context/utils/execution-metadata.js +57 -0
- package/dist/execution-engine/node-execution-context/utils/execution-metadata.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/extract-value.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/extract-value.js +135 -0
- package/dist/execution-engine/node-execution-context/utils/extract-value.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.js +144 -0
- package/dist/execution-engine/node-execution-context/utils/file-system-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/get-additional-keys.d.ts +4 -0
- package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js +57 -0
- package/dist/execution-engine/node-execution-context/utils/get-additional-keys.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.d.ts +5 -0
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js +211 -0
- package/dist/execution-engine/node-execution-context/utils/get-input-connection-data.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.js +68 -0
- package/dist/execution-engine/node-execution-context/utils/get-secrets-proxy.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/normalize-items.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/normalize-items.js +36 -0
- package/dist/execution-engine/node-execution-context/utils/normalize-items.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.d.ts +16 -0
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js +57 -0
- package/dist/execution-engine/node-execution-context/utils/parse-incoming-message.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.d.ts +18 -0
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js +1213 -0
- package/dist/execution-engine/node-execution-context/utils/request-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/return-json-array.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/return-json-array.js +19 -0
- package/dist/execution-engine/node-execution-context/utils/return-json-array.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.js +22 -0
- package/dist/execution-engine/node-execution-context/utils/scheduling-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.js +14 -0
- package/dist/execution-engine/node-execution-context/utils/ssh-tunnel-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.d.ts +2 -0
- package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js +132 -0
- package/dist/execution-engine/node-execution-context/utils/validate-value-against-schema.js.map +1 -0
- package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.d.ts +3 -0
- package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js +31 -0
- package/dist/execution-engine/node-execution-context/utils/webhook-helper-functions.js.map +1 -0
- package/dist/execution-engine/node-execution-context/webhook-context.d.ts +21 -0
- package/dist/execution-engine/node-execution-context/webhook-context.js +87 -0
- package/dist/execution-engine/node-execution-context/webhook-context.js.map +1 -0
- package/dist/execution-engine/node-execution-context/workflow-node-context.d.ts +6 -0
- package/dist/execution-engine/node-execution-context/workflow-node-context.js +14 -0
- package/dist/execution-engine/node-execution-context/workflow-node-context.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/clean-run-data.d.ts +3 -0
- package/dist/execution-engine/partial-execution-utils/clean-run-data.js +28 -0
- package/dist/execution-engine/partial-execution-utils/clean-run-data.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/directed-graph.d.ts +65 -0
- package/dist/execution-engine/partial-execution-utils/directed-graph.js +370 -0
- package/dist/execution-engine/partial-execution-utils/directed-graph.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.d.ts +2 -0
- package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.js +17 -0
- package/dist/execution-engine/partial-execution-utils/filter-disabled-nodes.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/find-start-nodes.d.ts +10 -0
- package/dist/execution-engine/partial-execution-utils/find-start-nodes.js +74 -0
- package/dist/execution-engine/partial-execution-utils/find-start-nodes.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/find-subgraph.d.ts +7 -0
- package/dist/execution-engine/partial-execution-utils/find-subgraph.js +59 -0
- package/dist/execution-engine/partial-execution-utils/find-subgraph.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.d.ts +4 -0
- package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.js +102 -0
- package/dist/execution-engine/partial-execution-utils/find-trigger-for-partial-execution.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/get-incoming-data.d.ts +6 -0
- package/dist/execution-engine/partial-execution-utils/get-incoming-data.js +21 -0
- package/dist/execution-engine/partial-execution-utils/get-incoming-data.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/get-source-data-groups.d.ts +8 -0
- package/dist/execution-engine/partial-execution-utils/get-source-data-groups.js +65 -0
- package/dist/execution-engine/partial-execution-utils/get-source-data-groups.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/handle-cycles.d.ts +3 -0
- package/dist/execution-engine/partial-execution-utils/handle-cycles.js +60 -0
- package/dist/execution-engine/partial-execution-utils/handle-cycles.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/index.d.ts +10 -0
- package/dist/execution-engine/partial-execution-utils/index.js +25 -0
- package/dist/execution-engine/partial-execution-utils/index.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.d.ts +9 -0
- package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.js +146 -0
- package/dist/execution-engine/partial-execution-utils/recreate-node-execution-stack.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/rewire-graph.d.ts +3 -0
- package/dist/execution-engine/partial-execution-utils/rewire-graph.js +72 -0
- package/dist/execution-engine/partial-execution-utils/rewire-graph.js.map +1 -0
- package/dist/execution-engine/partial-execution-utils/run-data-utils.d.ts +2 -0
- package/dist/execution-engine/partial-execution-utils/run-data-utils.js +15 -0
- package/dist/execution-engine/partial-execution-utils/run-data-utils.js.map +1 -0
- package/dist/execution-engine/requests-response.d.ts +23 -0
- package/dist/execution-engine/requests-response.js +128 -0
- package/dist/execution-engine/requests-response.js.map +1 -0
- package/dist/execution-engine/routing-node.d.ts +17 -0
- package/dist/execution-engine/routing-node.js +571 -0
- package/dist/execution-engine/routing-node.js.map +1 -0
- package/dist/execution-engine/scheduled-task-manager.d.ts +27 -0
- package/dist/execution-engine/scheduled-task-manager.js +140 -0
- package/dist/execution-engine/scheduled-task-manager.js.map +1 -0
- package/dist/execution-engine/ssh-clients-manager.d.ts +27 -0
- package/dist/execution-engine/ssh-clients-manager.js +170 -0
- package/dist/execution-engine/ssh-clients-manager.js.map +1 -0
- package/dist/execution-engine/triggers-and-pollers.d.ts +6 -0
- package/dist/execution-engine/triggers-and-pollers.js +66 -0
- package/dist/execution-engine/triggers-and-pollers.js.map +1 -0
- package/dist/execution-engine/workflow-execute.d.ts +46 -0
- package/dist/execution-engine/workflow-execute.js +1490 -0
- package/dist/execution-engine/workflow-execute.js.map +1 -0
- package/dist/html-sandbox.d.ts +3 -0
- package/dist/html-sandbox.js +19 -0
- package/dist/html-sandbox.js.map +1 -0
- package/dist/http-proxy.d.ts +6 -0
- package/dist/http-proxy.js +109 -0
- package/dist/http-proxy.js.map +1 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/instance-settings/index.d.ts +1 -0
- package/dist/instance-settings/index.js +6 -0
- package/dist/instance-settings/index.js.map +1 -0
- package/dist/instance-settings/instance-settings.d.ts +49 -0
- package/dist/instance-settings/instance-settings.js +210 -0
- package/dist/instance-settings/instance-settings.js.map +1 -0
- package/dist/instance-settings/worker-missing-encryption-key.error.d.ts +4 -0
- package/dist/instance-settings/worker-missing-encryption-key.error.js +15 -0
- package/dist/instance-settings/worker-missing-encryption-key.error.js.map +1 -0
- package/dist/interfaces.d.ts +16 -0
- package/dist/interfaces.js +3 -0
- package/dist/interfaces.js.map +1 -0
- package/dist/node-execute-functions.d.ts +3 -0
- package/dist/node-execute-functions.js +12 -0
- package/dist/node-execute-functions.js.map +1 -0
- package/dist/nodes-loader/constants.d.ts +5 -0
- package/dist/nodes-loader/constants.js +106 -0
- package/dist/nodes-loader/constants.js.map +1 -0
- package/dist/nodes-loader/custom-directory-loader.d.ts +6 -0
- package/dist/nodes-loader/custom-directory-loader.js +34 -0
- package/dist/nodes-loader/custom-directory-loader.js.map +1 -0
- package/dist/nodes-loader/directory-loader.d.ts +41 -0
- package/dist/nodes-loader/directory-loader.js +371 -0
- package/dist/nodes-loader/directory-loader.js.map +1 -0
- package/dist/nodes-loader/index.d.ts +5 -0
- package/dist/nodes-loader/index.js +12 -0
- package/dist/nodes-loader/index.js.map +1 -0
- package/dist/nodes-loader/lazy-package-directory-loader.d.ts +4 -0
- package/dist/nodes-loader/lazy-package-directory-loader.js +42 -0
- package/dist/nodes-loader/lazy-package-directory-loader.js.map +1 -0
- package/dist/nodes-loader/load-class-in-isolation.d.ts +1 -0
- package/dist/nodes-loader/load-class-in-isolation.js +20 -0
- package/dist/nodes-loader/load-class-in-isolation.js.map +1 -0
- package/dist/nodes-loader/package-directory-loader.d.ts +12 -0
- package/dist/nodes-loader/package-directory-loader.js +86 -0
- package/dist/nodes-loader/package-directory-loader.js.map +1 -0
- package/dist/nodes-loader/types.d.ts +14 -0
- package/dist/nodes-loader/types.js +3 -0
- package/dist/nodes-loader/types.js.map +1 -0
- package/dist/utils/assertions.d.ts +2 -0
- package/dist/utils/assertions.js +16 -0
- package/dist/utils/assertions.js.map +1 -0
- package/dist/utils/deep-merge.d.ts +1 -0
- package/dist/utils/deep-merge.js +33 -0
- package/dist/utils/deep-merge.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/is-json-compatible.d.ts +7 -0
- package/dist/utils/is-json-compatible.js +81 -0
- package/dist/utils/is-json-compatible.js.map +1 -0
- package/dist/utils/serialized-buffer.d.ts +6 -0
- package/dist/utils/serialized-buffer.js +16 -0
- package/dist/utils/serialized-buffer.js.map +1 -0
- package/dist/utils/signature-helpers.d.ts +2 -0
- package/dist/utils/signature-helpers.js +16 -0
- package/dist/utils/signature-helpers.js.map +1 -0
- package/package.json +81 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { INode, IPollFunctions, ITriggerFunctions, IWorkflowExecuteAdditionalData, Workflow, WorkflowActivateMode, WorkflowExecuteMode } from 'n8n-workflow';
|
|
2
|
+
export interface IGetExecutePollFunctions {
|
|
3
|
+
(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, activation: WorkflowActivateMode): IPollFunctions;
|
|
4
|
+
}
|
|
5
|
+
export interface IGetExecuteTriggerFunctions {
|
|
6
|
+
(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, activation: WorkflowActivateMode): ITriggerFunctions;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/execution-engine/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Workflow, INode, IWorkflowExecuteAdditionalData, WorkflowExecuteMode, IRunExecutionData, INodeExecutionData, ITaskDataConnections, IExecuteData, ICredentialDataDecryptedObject, CallbackManager, IExecuteWorkflowInfo, RelatedExecution, ExecuteWorkflowData, ITaskMetadata, ContextType, IContextObject, IWorkflowDataProxyData, ISourceData, AiEvent, NodeConnectionType, Result } from 'n8n-workflow';
|
|
2
|
+
import { NodeExecutionContext } from './node-execution-context';
|
|
3
|
+
export declare class BaseExecuteContext extends NodeExecutionContext {
|
|
4
|
+
readonly runExecutionData: IRunExecutionData;
|
|
5
|
+
readonly connectionInputData: INodeExecutionData[];
|
|
6
|
+
readonly inputData: ITaskDataConnections;
|
|
7
|
+
readonly executeData: IExecuteData;
|
|
8
|
+
readonly abortSignal?: AbortSignal | undefined;
|
|
9
|
+
constructor(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, runExecutionData: IRunExecutionData, runIndex: number, connectionInputData: INodeExecutionData[], inputData: ITaskDataConnections, executeData: IExecuteData, abortSignal?: AbortSignal | undefined);
|
|
10
|
+
getExecutionContext(): {
|
|
11
|
+
version: 1;
|
|
12
|
+
establishedAt: number;
|
|
13
|
+
source: "webhook" | "error" | "cli" | "integrated" | "internal" | "manual" | "retry" | "trigger" | "evaluation" | "chat";
|
|
14
|
+
triggerNode?: {
|
|
15
|
+
name: string;
|
|
16
|
+
type: string;
|
|
17
|
+
} | undefined;
|
|
18
|
+
parentExecutionId?: string | undefined;
|
|
19
|
+
credentials?: string | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
getExecutionCancelSignal(): AbortSignal | undefined;
|
|
22
|
+
onExecutionCancellation(handler: () => unknown): void;
|
|
23
|
+
getExecuteData(): IExecuteData;
|
|
24
|
+
setMetadata(metadata: ITaskMetadata): void;
|
|
25
|
+
getContext(type: ContextType): IContextObject;
|
|
26
|
+
continueOnFail(): boolean;
|
|
27
|
+
getCredentials<T extends object = ICredentialDataDecryptedObject>(type: string, itemIndex: number): Promise<T>;
|
|
28
|
+
putExecutionToWait(waitTill: Date): Promise<void>;
|
|
29
|
+
executeWorkflow(workflowInfo: IExecuteWorkflowInfo, inputData?: INodeExecutionData[], parentCallbackManager?: CallbackManager, options?: {
|
|
30
|
+
doNotWaitToFinish?: boolean;
|
|
31
|
+
parentExecution?: RelatedExecution;
|
|
32
|
+
executionMode?: WorkflowExecuteMode;
|
|
33
|
+
}): Promise<ExecuteWorkflowData>;
|
|
34
|
+
getExecutionDataById(executionId: string): Promise<IRunExecutionData | undefined>;
|
|
35
|
+
protected getInputItems(inputIndex: number, connectionType: NodeConnectionType): INodeExecutionData[] | undefined;
|
|
36
|
+
getInputSourceData(inputIndex?: number, connectionType?: "main"): ISourceData;
|
|
37
|
+
getWorkflowDataProxy(itemIndex: number): IWorkflowDataProxyData;
|
|
38
|
+
sendMessageToUI(...args: any[]): void;
|
|
39
|
+
logAiEvent(eventName: AiEvent, msg: string): void;
|
|
40
|
+
startJob<T = unknown, E = unknown>(jobType: string, settings: unknown, itemIndex: number): Promise<Result<T, E>>;
|
|
41
|
+
getRunnerStatus(taskType: string): {
|
|
42
|
+
available: true;
|
|
43
|
+
} | {
|
|
44
|
+
available: false;
|
|
45
|
+
reason?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BaseExecuteContext = void 0;
|
|
7
|
+
const get_1 = __importDefault(require("lodash/get"));
|
|
8
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
9
|
+
const node_execution_context_1 = require("./node-execution-context");
|
|
10
|
+
class BaseExecuteContext extends node_execution_context_1.NodeExecutionContext {
|
|
11
|
+
constructor(workflow, node, additionalData, mode, runExecutionData, runIndex, connectionInputData, inputData, executeData, abortSignal) {
|
|
12
|
+
super(workflow, node, additionalData, mode, runExecutionData, runIndex);
|
|
13
|
+
this.runExecutionData = runExecutionData;
|
|
14
|
+
this.connectionInputData = connectionInputData;
|
|
15
|
+
this.inputData = inputData;
|
|
16
|
+
this.executeData = executeData;
|
|
17
|
+
this.abortSignal = abortSignal;
|
|
18
|
+
}
|
|
19
|
+
getExecutionContext() {
|
|
20
|
+
return this.runExecutionData.executionData?.runtimeData;
|
|
21
|
+
}
|
|
22
|
+
getExecutionCancelSignal() {
|
|
23
|
+
return this.abortSignal;
|
|
24
|
+
}
|
|
25
|
+
onExecutionCancellation(handler) {
|
|
26
|
+
const fn = () => {
|
|
27
|
+
this.abortSignal?.removeEventListener('abort', fn);
|
|
28
|
+
handler();
|
|
29
|
+
};
|
|
30
|
+
this.abortSignal?.addEventListener('abort', fn);
|
|
31
|
+
}
|
|
32
|
+
getExecuteData() {
|
|
33
|
+
return this.executeData;
|
|
34
|
+
}
|
|
35
|
+
setMetadata(metadata) {
|
|
36
|
+
this.executeData.metadata = {
|
|
37
|
+
...(this.executeData.metadata ?? {}),
|
|
38
|
+
...metadata,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
getContext(type) {
|
|
42
|
+
return n8n_workflow_1.NodeHelpers.getContext(this.runExecutionData, type, this.node);
|
|
43
|
+
}
|
|
44
|
+
continueOnFail() {
|
|
45
|
+
const onError = (0, get_1.default)(this.node, 'onError', undefined);
|
|
46
|
+
if (onError === undefined) {
|
|
47
|
+
return (0, get_1.default)(this.node, 'continueOnFail', false);
|
|
48
|
+
}
|
|
49
|
+
return ['continueRegularOutput', 'continueErrorOutput'].includes(onError);
|
|
50
|
+
}
|
|
51
|
+
async getCredentials(type, itemIndex) {
|
|
52
|
+
return await this._getCredentials(type, this.executeData, this.connectionInputData, itemIndex);
|
|
53
|
+
}
|
|
54
|
+
async putExecutionToWait(waitTill) {
|
|
55
|
+
this.runExecutionData.waitTill = waitTill;
|
|
56
|
+
if (this.additionalData.setExecutionStatus) {
|
|
57
|
+
this.additionalData.setExecutionStatus('waiting');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
async executeWorkflow(workflowInfo, inputData, parentCallbackManager, options) {
|
|
61
|
+
if (options?.parentExecution) {
|
|
62
|
+
if (!options.parentExecution.executionContext &&
|
|
63
|
+
options.parentExecution.executionId === this.getExecutionId()) {
|
|
64
|
+
options.parentExecution.executionContext = this.getExecutionContext();
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const result = await this.additionalData.executeWorkflow(workflowInfo, this.additionalData, {
|
|
68
|
+
...options,
|
|
69
|
+
parentWorkflowId: this.workflow.id,
|
|
70
|
+
inputData,
|
|
71
|
+
parentWorkflowSettings: this.workflow.settings,
|
|
72
|
+
node: this.node,
|
|
73
|
+
parentCallbackManager,
|
|
74
|
+
});
|
|
75
|
+
if (result.waitTill) {
|
|
76
|
+
await this.putExecutionToWait(n8n_workflow_1.WAIT_INDEFINITELY);
|
|
77
|
+
}
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
async getExecutionDataById(executionId) {
|
|
81
|
+
return await this.additionalData.getRunExecutionData(executionId);
|
|
82
|
+
}
|
|
83
|
+
getInputItems(inputIndex, connectionType) {
|
|
84
|
+
const inputData = this.inputData[connectionType];
|
|
85
|
+
if (inputData.length < inputIndex) {
|
|
86
|
+
throw new n8n_workflow_1.ApplicationError('Could not get input with given index', {
|
|
87
|
+
extra: { inputIndex, connectionType },
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
const allItems = inputData[inputIndex];
|
|
91
|
+
if (allItems === null) {
|
|
92
|
+
throw new n8n_workflow_1.ApplicationError('Input index was not set', {
|
|
93
|
+
extra: { inputIndex, connectionType },
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return allItems;
|
|
97
|
+
}
|
|
98
|
+
getInputSourceData(inputIndex = 0, connectionType = n8n_workflow_1.NodeConnectionTypes.Main) {
|
|
99
|
+
if (this.executeData?.source === null) {
|
|
100
|
+
throw new n8n_workflow_1.ApplicationError('Source data is missing');
|
|
101
|
+
}
|
|
102
|
+
return this.executeData.source[connectionType][inputIndex];
|
|
103
|
+
}
|
|
104
|
+
getWorkflowDataProxy(itemIndex) {
|
|
105
|
+
return new n8n_workflow_1.WorkflowDataProxy(this.workflow, this.runExecutionData, this.runIndex, itemIndex, this.node.name, this.connectionInputData, {}, this.mode, this.additionalKeys, this.executeData).getDataProxy();
|
|
106
|
+
}
|
|
107
|
+
sendMessageToUI(...args) {
|
|
108
|
+
if (this.mode !== 'manual') {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
try {
|
|
112
|
+
if (this.additionalData.sendDataToUI) {
|
|
113
|
+
args = args.map((arg) => {
|
|
114
|
+
if (arg.isLuxonDateTime && arg.invalidReason)
|
|
115
|
+
return { ...arg };
|
|
116
|
+
if (arg.isLuxonDateTime)
|
|
117
|
+
return new Date(arg.ts).toString();
|
|
118
|
+
if (arg instanceof Date)
|
|
119
|
+
return arg.toString();
|
|
120
|
+
return arg;
|
|
121
|
+
});
|
|
122
|
+
this.additionalData.sendDataToUI('sendConsoleMessage', {
|
|
123
|
+
source: `[Node: "${this.node.name}"]`,
|
|
124
|
+
messages: args,
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
catch (error) {
|
|
129
|
+
this.logger.warn(`There was a problem sending message to UI: ${error.message}`);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
logAiEvent(eventName, msg) {
|
|
133
|
+
return this.additionalData.logAiEvent(eventName, {
|
|
134
|
+
executionId: this.additionalData.executionId ?? 'unsaved-execution',
|
|
135
|
+
nodeName: this.node.name,
|
|
136
|
+
workflowName: this.workflow.name ?? 'Unnamed workflow',
|
|
137
|
+
nodeType: this.node.type,
|
|
138
|
+
workflowId: this.workflow.id ?? 'unsaved-workflow',
|
|
139
|
+
msg,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
async startJob(jobType, settings, itemIndex) {
|
|
143
|
+
return await this.additionalData.startRunnerTask(this.additionalData, jobType, settings, this, this.inputData, this.node, this.workflow, this.runExecutionData, this.runIndex, itemIndex, this.node.name, this.connectionInputData, {}, this.mode, (0, n8n_workflow_1.createEnvProviderState)(), this.executeData);
|
|
144
|
+
}
|
|
145
|
+
getRunnerStatus(taskType) {
|
|
146
|
+
return this.additionalData.getRunnerStatus?.(taskType) ?? { available: true };
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
exports.BaseExecuteContext = BaseExecuteContext;
|
|
150
|
+
//# sourceMappingURL=base-execute-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-execute-context.js","sourceRoot":"","sources":["../../../src/execution-engine/node-execution-context/base-execute-context.ts"],"names":[],"mappings":";;;;;;AAAA,qDAA6B;AAyB7B,+CAOsB;AAEtB,qEAAgE;AAEhE,MAAa,kBAAmB,SAAQ,6CAAoB;IAC3D,YACC,QAAkB,EAClB,IAAW,EACX,cAA8C,EAC9C,IAAyB,EAChB,gBAAmC,EAC5C,QAAgB,EACP,mBAAyC,EACzC,SAA+B,EAC/B,WAAyB,EACzB,WAAyB;QAElC,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,gBAAgB,EAAE,QAAQ,CAAC,CAAC;QAP/D,qBAAgB,GAAhB,gBAAgB,CAAmB;QAEnC,wBAAmB,GAAnB,mBAAmB,CAAsB;QACzC,cAAS,GAAT,SAAS,CAAsB;QAC/B,gBAAW,GAAX,WAAW,CAAc;QACzB,gBAAW,GAAX,WAAW,CAAc;IAGnC,CAAC;IAED,mBAAmB;QAClB,OAAO,IAAI,CAAC,gB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D,GAAG;SACH,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,QAAQ,CACb,OAAe,EACf,QAAiB,EACjB,SAAiB;QAEjB,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,eAAe,CAC/C,IAAI,CAAC,cAAc,EACnB,OAAO,EACP,QAAQ,EACR,IAAyB,EACzB,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,IAAI,CAAC,IAAI,CAAC,IAAI,EACd,IAAI,CAAC,mBAAmB,EACxB,EAAE,EACF,IAAI,CAAC,IAAI,EACT,IAAA,qCAAsB,GAAE,EACxB,IAAI,CAAC,WAAW,CAChB,CAAC;IACH,CAAC;IAED,eAAe,CAAC,QAAgB;QAC/B,OAAO,IAAI,CAAC,cAAc,CAAC,eAAe,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAC/E,CAAC;CACD;AA3OD,gDA2OC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Logger } from '@n8n/backend-common';
|
|
2
|
+
import type { ICredentialTestFunctions } from 'n8n-workflow';
|
|
3
|
+
export declare class CredentialTestContext implements ICredentialTestFunctions {
|
|
4
|
+
readonly helpers: ICredentialTestFunctions['helpers'];
|
|
5
|
+
constructor();
|
|
6
|
+
get logger(): Logger;
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
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.CredentialTestContext = void 0;
|
|
13
|
+
const backend_common_1 = require("@n8n/backend-common");
|
|
14
|
+
const decorators_1 = require("@n8n/decorators");
|
|
15
|
+
const di_1 = require("@n8n/di");
|
|
16
|
+
const request_helper_functions_1 = require("./utils/request-helper-functions");
|
|
17
|
+
const ssh_tunnel_helper_functions_1 = require("./utils/ssh-tunnel-helper-functions");
|
|
18
|
+
class CredentialTestContext {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.helpers = {
|
|
21
|
+
...(0, ssh_tunnel_helper_functions_1.getSSHTunnelFunctions)(),
|
|
22
|
+
request: async (uriOrObject, options) => {
|
|
23
|
+
return await (0, request_helper_functions_1.proxyRequestToAxios)(undefined, undefined, undefined, uriOrObject, options);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
get logger() {
|
|
28
|
+
return di_1.Container.get(backend_common_1.Logger);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.CredentialTestContext = CredentialTestContext;
|
|
32
|
+
__decorate([
|
|
33
|
+
decorators_1.Memoized,
|
|
34
|
+
__metadata("design:type", Object),
|
|
35
|
+
__metadata("design:paramtypes", [])
|
|
36
|
+
], CredentialTestContext.prototype, "logger", null);
|
|
37
|
+
//# sourceMappingURL=credentials-test-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentials-test-context.js","sourceRoot":"","sources":["../../../src/execution-engine/node-execution-context/credentials-test-context.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAA6C;AAC7C,gDAA2C;AAC3C,gCAAoC;AAGpC,+EAAuE;AACvE,qFAA4E;AAE5E,MAAa,qBAAqB;IAGjC;QACC,IAAI,CAAC,OAAO,GAAG;YACd,GAAG,IAAA,mDAAqB,GAAE;YAC1B,OAAO,EAAE,KAAK,EAAE,WAA4B,EAAE,OAAgB,EAAE,EAAE;gBAEjE,OAAO,MAAM,IAAA,8CAAmB,EAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;YACzF,CAAC;SACD,CAAC;IACH,CAAC;IAED,IACI,MAAM;QACT,OAAO,cAAS,CAAC,GAAG,CAAC,uBAAM,CAAC,CAAC;IAC9B,CAAC;CACD;AAjBD,sDAiBC;AAJA;IAAC,qBAAQ;;;mDAGR"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AINodeConnectionType, CallbackManager, ChunkType, CloseFunction, IDataObject, IExecuteData, IExecuteFunctions, IExecuteResponsePromiseData, INode, INodeExecutionData, IRunExecutionData, ITaskDataConnections, IWorkflowExecuteAdditionalData, NodeExecutionHint, Workflow, WorkflowExecuteMode, EngineResponse } from 'n8n-workflow';
|
|
2
|
+
import { BaseExecuteContext } from './base-execute-context';
|
|
3
|
+
export declare class ExecuteContext extends BaseExecuteContext implements IExecuteFunctions {
|
|
4
|
+
private readonly closeFunctions;
|
|
5
|
+
subNodeExecutionResults?: EngineResponse | undefined;
|
|
6
|
+
readonly helpers: IExecuteFunctions['helpers'];
|
|
7
|
+
readonly nodeHelpers: IExecuteFunctions['nodeHelpers'];
|
|
8
|
+
readonly getNodeParameter: IExecuteFunctions['getNodeParameter'];
|
|
9
|
+
readonly hints: NodeExecutionHint[];
|
|
10
|
+
constructor(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, runExecutionData: IRunExecutionData, runIndex: number, connectionInputData: INodeExecutionData[], inputData: ITaskDataConnections, executeData: IExecuteData, closeFunctions: CloseFunction[], abortSignal?: AbortSignal, subNodeExecutionResults?: EngineResponse | undefined);
|
|
11
|
+
isStreaming(): boolean;
|
|
12
|
+
sendChunk(type: ChunkType, itemIndex: number, content?: IDataObject | string): Promise<void>;
|
|
13
|
+
getInputConnectionData(connectionType: AINodeConnectionType, itemIndex: number): Promise<unknown>;
|
|
14
|
+
getInputData(inputIndex?: number, connectionType?: "main"): INodeExecutionData[];
|
|
15
|
+
logNodeOutput(...args: unknown[]): void;
|
|
16
|
+
sendResponse(response: IExecuteResponsePromiseData): Promise<void>;
|
|
17
|
+
addInputData(): {
|
|
18
|
+
index: number;
|
|
19
|
+
};
|
|
20
|
+
addOutputData(): void;
|
|
21
|
+
getParentCallbackManager(): CallbackManager | undefined;
|
|
22
|
+
addExecutionHints(...hints: NodeExecutionHint[]): void;
|
|
23
|
+
isToolExecution(): boolean;
|
|
24
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteContext = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const base_execute_context_1 = require("./base-execute-context");
|
|
6
|
+
const binary_helper_functions_1 = require("./utils/binary-helper-functions");
|
|
7
|
+
const construct_execution_metadata_1 = require("./utils/construct-execution-metadata");
|
|
8
|
+
const copy_input_items_1 = require("./utils/copy-input-items");
|
|
9
|
+
const data_table_helper_functions_1 = require("./utils/data-table-helper-functions");
|
|
10
|
+
const deduplication_helper_functions_1 = require("./utils/deduplication-helper-functions");
|
|
11
|
+
const file_system_helper_functions_1 = require("./utils/file-system-helper-functions");
|
|
12
|
+
const get_input_connection_data_1 = require("./utils/get-input-connection-data");
|
|
13
|
+
const normalize_items_1 = require("./utils/normalize-items");
|
|
14
|
+
const request_helper_functions_1 = require("./utils/request-helper-functions");
|
|
15
|
+
const return_json_array_1 = require("./utils/return-json-array");
|
|
16
|
+
const ssh_tunnel_helper_functions_1 = require("./utils/ssh-tunnel-helper-functions");
|
|
17
|
+
class ExecuteContext extends base_execute_context_1.BaseExecuteContext {
|
|
18
|
+
constructor(workflow, node, additionalData, mode, runExecutionData, runIndex, connectionInputData, inputData, executeData, closeFunctions, abortSignal, subNodeExecutionResults) {
|
|
19
|
+
super(workflow, node, additionalData, mode, runExecutionData, runIndex, connectionInputData, inputData, executeData, abortSignal);
|
|
20
|
+
this.closeFunctions = closeFunctions;
|
|
21
|
+
this.subNodeExecutionResults = subNodeExecutionResults;
|
|
22
|
+
this.hints = [];
|
|
23
|
+
this.helpers = {
|
|
24
|
+
createDeferredPromise: n8n_workflow_1.createDeferredPromise,
|
|
25
|
+
returnJsonArray: return_json_array_1.returnJsonArray,
|
|
26
|
+
copyInputItems: copy_input_items_1.copyInputItems,
|
|
27
|
+
normalizeItems: normalize_items_1.normalizeItems,
|
|
28
|
+
constructExecutionMetaData: construct_execution_metadata_1.constructExecutionMetaData,
|
|
29
|
+
...(0, request_helper_functions_1.getRequestHelperFunctions)(workflow, node, additionalData, runExecutionData, connectionInputData),
|
|
30
|
+
...(0, binary_helper_functions_1.getBinaryHelperFunctions)(additionalData, workflow.id),
|
|
31
|
+
...(0, data_table_helper_functions_1.getDataTableHelperFunctions)(additionalData, workflow, node),
|
|
32
|
+
...(0, ssh_tunnel_helper_functions_1.getSSHTunnelFunctions)(),
|
|
33
|
+
...(0, file_system_helper_functions_1.getFileSystemHelperFunctions)(node),
|
|
34
|
+
...(0, deduplication_helper_functions_1.getDeduplicationHelperFunctions)(workflow, node),
|
|
35
|
+
assertBinaryData: (itemIndex, propertyName) => (0, binary_helper_functions_1.assertBinaryData)(inputData, node, itemIndex, propertyName, 0),
|
|
36
|
+
getBinaryDataBuffer: async (itemIndex, propertyName) => await (0, binary_helper_functions_1.getBinaryDataBuffer)(inputData, itemIndex, propertyName, 0),
|
|
37
|
+
detectBinaryEncoding: (buffer) => (0, binary_helper_functions_1.detectBinaryEncoding)(buffer),
|
|
38
|
+
};
|
|
39
|
+
this.nodeHelpers = {
|
|
40
|
+
copyBinaryFile: async (filePath, fileName, mimeType) => await (0, binary_helper_functions_1.copyBinaryFile)(this.workflow.id, this.additionalData.executionId, filePath, fileName, mimeType),
|
|
41
|
+
};
|
|
42
|
+
this.getNodeParameter = ((parameterName, itemIndex, fallbackValue, options) => this._getNodeParameter(parameterName, itemIndex, fallbackValue, options));
|
|
43
|
+
}
|
|
44
|
+
isStreaming() {
|
|
45
|
+
const handlers = this.additionalData.hooks?.handlers?.sendChunk?.length;
|
|
46
|
+
const hasHandlers = handlers !== undefined && handlers > 0;
|
|
47
|
+
const streamingEnabled = this.additionalData.streamingEnabled === true;
|
|
48
|
+
const executionModeSupportsStreaming = ['manual', 'webhook', 'integrated', 'chat'];
|
|
49
|
+
const isStreamingMode = executionModeSupportsStreaming.includes(this.mode);
|
|
50
|
+
return hasHandlers && isStreamingMode && streamingEnabled;
|
|
51
|
+
}
|
|
52
|
+
async sendChunk(type, itemIndex, content) {
|
|
53
|
+
const node = this.getNode();
|
|
54
|
+
const metadata = {
|
|
55
|
+
nodeId: node.id,
|
|
56
|
+
nodeName: node.name,
|
|
57
|
+
itemIndex,
|
|
58
|
+
runIndex: this.runIndex,
|
|
59
|
+
timestamp: Date.now(),
|
|
60
|
+
};
|
|
61
|
+
const parsedContent = typeof content === 'string' ? content : JSON.stringify(content);
|
|
62
|
+
const message = {
|
|
63
|
+
type,
|
|
64
|
+
content: parsedContent,
|
|
65
|
+
metadata,
|
|
66
|
+
};
|
|
67
|
+
await this.additionalData.hooks?.runHook('sendChunk', [message]);
|
|
68
|
+
}
|
|
69
|
+
async getInputConnectionData(connectionType, itemIndex) {
|
|
70
|
+
return await get_input_connection_data_1.getInputConnectionData.call(this, this.workflow, this.runExecutionData, this.runIndex, this.connectionInputData, this.inputData, this.additionalData, this.executeData, this.mode, this.closeFunctions, connectionType, itemIndex, this.abortSignal);
|
|
71
|
+
}
|
|
72
|
+
getInputData(inputIndex = 0, connectionType = n8n_workflow_1.NodeConnectionTypes.Main) {
|
|
73
|
+
if (!this.inputData.hasOwnProperty(connectionType)) {
|
|
74
|
+
return [];
|
|
75
|
+
}
|
|
76
|
+
return super.getInputItems(inputIndex, connectionType) ?? [];
|
|
77
|
+
}
|
|
78
|
+
logNodeOutput(...args) {
|
|
79
|
+
if (this.mode === 'manual') {
|
|
80
|
+
const parsedLogArgs = args.map((arg) => typeof arg === 'string' ? (0, n8n_workflow_1.jsonParse)(arg, { fallbackValue: arg }) : arg);
|
|
81
|
+
this.sendMessageToUI(...parsedLogArgs);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
if (process.env.CODE_ENABLE_STDOUT === 'true') {
|
|
85
|
+
console.log(`[Workflow "${this.getWorkflow().id}"][Node "${this.node.name}"]`, ...args);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
async sendResponse(response) {
|
|
89
|
+
await this.additionalData.hooks?.runHook('sendResponse', [response]);
|
|
90
|
+
}
|
|
91
|
+
addInputData() {
|
|
92
|
+
throw new n8n_workflow_1.ApplicationError('addInputData should not be called on IExecuteFunctions');
|
|
93
|
+
}
|
|
94
|
+
addOutputData() {
|
|
95
|
+
throw new n8n_workflow_1.ApplicationError('addOutputData should not be called on IExecuteFunctions');
|
|
96
|
+
}
|
|
97
|
+
getParentCallbackManager() {
|
|
98
|
+
return this.additionalData.parentCallbackManager;
|
|
99
|
+
}
|
|
100
|
+
addExecutionHints(...hints) {
|
|
101
|
+
this.hints.push(...hints);
|
|
102
|
+
}
|
|
103
|
+
isToolExecution() {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
exports.ExecuteContext = ExecuteContext;
|
|
108
|
+
//# sourceMappingURL=execute-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-context.js","sourceRoot":"","sources":["../../../src/execution-engine/node-execution-context/execute-context.ts"],"names":[],"mappings":";;;AAqBA,+CAKsB;AAE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AAC;IAC3B,CAAC;IAGD,eAAe;QACd,OAAO,KAAK,CAAC;IACd,CAAC;CACD;AArMD,wCAqMC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ICredentialDataDecryptedObject, IGetNodeParameterOptions, INode, INodeExecutionData, IRunExecutionData, IExecuteSingleFunctions, IWorkflowExecuteAdditionalData, Workflow, WorkflowExecuteMode, ITaskDataConnections, IExecuteData } from 'n8n-workflow';
|
|
2
|
+
import { BaseExecuteContext } from './base-execute-context';
|
|
3
|
+
export declare class ExecuteSingleContext extends BaseExecuteContext implements IExecuteSingleFunctions {
|
|
4
|
+
private readonly itemIndex;
|
|
5
|
+
readonly helpers: IExecuteSingleFunctions['helpers'];
|
|
6
|
+
constructor(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, runExecutionData: IRunExecutionData, runIndex: number, connectionInputData: INodeExecutionData[], inputData: ITaskDataConnections, itemIndex: number, executeData: IExecuteData, abortSignal?: AbortSignal);
|
|
7
|
+
evaluateExpression(expression: string, itemIndex?: number): import("n8n-workflow").INodeParameters | import("n8n-workflow").NodeParameterValue | import("n8n-workflow").INodeParameters[] | import("n8n-workflow").NodeParameterValue[];
|
|
8
|
+
getInputData(inputIndex?: number, connectionType?: "main"): INodeExecutionData | {
|
|
9
|
+
json: {};
|
|
10
|
+
};
|
|
11
|
+
getItemIndex(): number;
|
|
12
|
+
getNodeParameter(parameterName: string, fallbackValue?: any, options?: IGetNodeParameterOptions): object | import("n8n-workflow").NodeParameterValueType;
|
|
13
|
+
getCredentials<T extends object = ICredentialDataDecryptedObject>(type: string): Promise<T>;
|
|
14
|
+
getWorkflowDataProxy(): import("n8n-workflow").IWorkflowDataProxyData;
|
|
15
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExecuteSingleContext = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const base_execute_context_1 = require("./base-execute-context");
|
|
6
|
+
const binary_helper_functions_1 = require("./utils/binary-helper-functions");
|
|
7
|
+
const request_helper_functions_1 = require("./utils/request-helper-functions");
|
|
8
|
+
const return_json_array_1 = require("./utils/return-json-array");
|
|
9
|
+
class ExecuteSingleContext extends base_execute_context_1.BaseExecuteContext {
|
|
10
|
+
constructor(workflow, node, additionalData, mode, runExecutionData, runIndex, connectionInputData, inputData, itemIndex, executeData, abortSignal) {
|
|
11
|
+
super(workflow, node, additionalData, mode, runExecutionData, runIndex, connectionInputData, inputData, executeData, abortSignal);
|
|
12
|
+
this.itemIndex = itemIndex;
|
|
13
|
+
this.helpers = {
|
|
14
|
+
createDeferredPromise: n8n_workflow_1.createDeferredPromise,
|
|
15
|
+
returnJsonArray: return_json_array_1.returnJsonArray,
|
|
16
|
+
...(0, request_helper_functions_1.getRequestHelperFunctions)(workflow, node, additionalData, runExecutionData, connectionInputData),
|
|
17
|
+
...(0, binary_helper_functions_1.getBinaryHelperFunctions)(additionalData, workflow.id),
|
|
18
|
+
assertBinaryData: (propertyName, inputIndex = 0) => (0, binary_helper_functions_1.assertBinaryData)(inputData, node, itemIndex, propertyName, inputIndex),
|
|
19
|
+
getBinaryDataBuffer: async (propertyName, inputIndex = 0) => await (0, binary_helper_functions_1.getBinaryDataBuffer)(inputData, itemIndex, propertyName, inputIndex),
|
|
20
|
+
detectBinaryEncoding: (buffer) => (0, binary_helper_functions_1.detectBinaryEncoding)(buffer),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
evaluateExpression(expression, itemIndex = this.itemIndex) {
|
|
24
|
+
return super.evaluateExpression(expression, itemIndex);
|
|
25
|
+
}
|
|
26
|
+
getInputData(inputIndex = 0, connectionType = n8n_workflow_1.NodeConnectionTypes.Main) {
|
|
27
|
+
if (!this.inputData.hasOwnProperty(connectionType)) {
|
|
28
|
+
return { json: {} };
|
|
29
|
+
}
|
|
30
|
+
const allItems = super.getInputItems(inputIndex, connectionType);
|
|
31
|
+
const data = allItems?.[this.itemIndex];
|
|
32
|
+
if (data === undefined) {
|
|
33
|
+
throw new n8n_workflow_1.ApplicationError('Value of input with given index was not set', {
|
|
34
|
+
extra: { inputIndex, connectionType, itemIndex: this.itemIndex },
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return data;
|
|
38
|
+
}
|
|
39
|
+
getItemIndex() {
|
|
40
|
+
return this.itemIndex;
|
|
41
|
+
}
|
|
42
|
+
getNodeParameter(parameterName, fallbackValue, options) {
|
|
43
|
+
return this._getNodeParameter(parameterName, this.itemIndex, fallbackValue, options);
|
|
44
|
+
}
|
|
45
|
+
async getCredentials(type) {
|
|
46
|
+
return await super.getCredentials(type, this.itemIndex);
|
|
47
|
+
}
|
|
48
|
+
getWorkflowDataProxy() {
|
|
49
|
+
return super.getWorkflowDataProxy(this.itemIndex);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ExecuteSingleContext = ExecuteSingleContext;
|
|
53
|
+
//# sourceMappingURL=execute-single-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execute-single-context.js","sourceRoot":"","sources":["../../../src/execution-engine/node-execution-context/execute-single-context.ts"],"names":[],"mappings":";;;AAaA,+CAA4F;AAE5F,iEAA4D;AAC5D,6EAKyC;AACzC,+EAA6E;AAC7E,iEAA4D;AAE5D,MAAa,oBAAqB,SAAQ,yCAAkB;IAG3D,YACC,QAAkB,EAClB,IAAW,EACX,cAA8C,EAC9C,IAAyB,EACzB,gBAAmC,EACnC,QAAgB,EAChB,mBAAyC,EACzC,SAA+B,EACd,SAAiB,EAClC,WAAyB,EACzB,WAAyB;QAEzB,KAAK,CACJ,QAAQ,EACR,IAAI,EACJ,cAAc,EACd,IAAI,EACJ,gBAAgB,EAChB,QAAQ,EACR,mBAAmB,EACnB,SAAS,EACT,WAAW,EACX,WAAW,CACX,CAAC;QAfe,cAAS,GAAT,SAA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MAAM,IAAI,+BAAgB,CAAC,6CAA6C,EAAE;gBACzE,KAAK,EAAE,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE;aAChE,CAAC,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACb,CAAC;IAED,YAAY;QACX,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAGD,gBAAgB,CAAC,aAAqB,EAAE,aAAmB,EAAE,OAAkC;QAC9F,OAAO,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,cAAc,CAAoD,IAAY;QACnF,OAAO,MAAM,KAAK,CAAC,cAAc,CAAI,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAED,oBAAoB;QACnB,OAAO,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACnD,CAAC;CACD;AAvFD,oDAuFC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ICredentialDataDecryptedObject, INode, IHookFunctions, IWorkflowExecuteAdditionalData, Workflow, WorkflowActivateMode, WorkflowExecuteMode, IWebhookData, WebhookType } from 'n8n-workflow';
|
|
2
|
+
import { NodeExecutionContext } from './node-execution-context';
|
|
3
|
+
export declare class HookContext extends NodeExecutionContext implements IHookFunctions {
|
|
4
|
+
private readonly activation;
|
|
5
|
+
private readonly webhookData?;
|
|
6
|
+
readonly helpers: IHookFunctions['helpers'];
|
|
7
|
+
constructor(workflow: Workflow, node: INode, additionalData: IWorkflowExecuteAdditionalData, mode: WorkflowExecuteMode, activation: WorkflowActivateMode, webhookData?: IWebhookData | undefined);
|
|
8
|
+
getActivationMode(): WorkflowActivateMode;
|
|
9
|
+
getCredentials<T extends object = ICredentialDataDecryptedObject>(type: string): Promise<T>;
|
|
10
|
+
getNodeWebhookUrl(name: WebhookType): string | undefined;
|
|
11
|
+
getWebhookName(): string;
|
|
12
|
+
getWebhookDescription(name: WebhookType): import("n8n-workflow").IWebhookDescription | undefined;
|
|
13
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HookContext = void 0;
|
|
4
|
+
const errors_1 = require("@n8n/errors");
|
|
5
|
+
const node_execution_context_1 = require("./node-execution-context");
|
|
6
|
+
const request_helper_functions_1 = require("./utils/request-helper-functions");
|
|
7
|
+
const webhook_helper_functions_1 = require("./utils/webhook-helper-functions");
|
|
8
|
+
class HookContext extends node_execution_context_1.NodeExecutionContext {
|
|
9
|
+
constructor(workflow, node, additionalData, mode, activation, webhookData) {
|
|
10
|
+
super(workflow, node, additionalData, mode);
|
|
11
|
+
this.activation = activation;
|
|
12
|
+
this.webhookData = webhookData;
|
|
13
|
+
this.helpers = (0, request_helper_functions_1.getRequestHelperFunctions)(workflow, node, additionalData);
|
|
14
|
+
}
|
|
15
|
+
getActivationMode() {
|
|
16
|
+
return this.activation;
|
|
17
|
+
}
|
|
18
|
+
async getCredentials(type) {
|
|
19
|
+
return await this._getCredentials(type);
|
|
20
|
+
}
|
|
21
|
+
getNodeWebhookUrl(name) {
|
|
22
|
+
return (0, webhook_helper_functions_1.getNodeWebhookUrl)(name, this.workflow, this.node, this.additionalData, this.mode, this.additionalKeys, this.webhookData?.isTest);
|
|
23
|
+
}
|
|
24
|
+
getWebhookName() {
|
|
25
|
+
if (this.webhookData === undefined) {
|
|
26
|
+
throw new errors_1.ApplicationError('Only supported in webhook functions');
|
|
27
|
+
}
|
|
28
|
+
return this.webhookData.webhookDescription.name;
|
|
29
|
+
}
|
|
30
|
+
getWebhookDescription(name) {
|
|
31
|
+
return (0, webhook_helper_functions_1.getWebhookDescription)(name, this.workflow, this.node);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.HookContext = HookContext;
|
|
35
|
+
//# sourceMappingURL=hook-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hook-context.js","sourceRoot":"","sources":["../../../src/execution-engine/node-execution-context/hook-context.ts"],"names":[],"mappings":";;;AAAA,wCAA+C;AAa/C,qEAAgE;AAChE,+EAA6E;AAC7E,+EAA4F;AAE5F,MAAa,WAAY,SAAQ,6CAAoB;IAGpD,YACC,QAAkB,EAClB,IAAW,EACX,cAA8C,EAC9C,IAAyB,EACR,UAAgC,EAChC,WAA0B;QAE3C,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;QAH3B,eAAU,GAAV,UAAU,CAAsB;QAChC,gBAAW,GAAX,WAAW,CAAe;QAI3C,IAAI,CAAC,OAAO,GAAG,IAAA,oDAAyB,EAAC,QAAQ,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;IAC1E,CAAC;IAED,iBAAiB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,cAAc,CAAoD,IAAY;QACnF,OAAO,MAAM,IAAI,CAAC,eAAe,CAAI,IAAI,CAAC,CAAC;IAC5C,CAAC;IAED,iBAAiB,CAAC,IAAiB;QAClC,OAAO,IAAA,4CAAiB,EACvB,IAAI,EACJ,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,WAAW,EAAE,MAAM,CACxB,CAAC;IACH,CAAC;IAED,cAAc;QACb,IAAI,IAAI,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;YACpC,MAAM,IAAI,yBAAgB,CAAC,qCAAqC,CAAC,CAAC;QACnE,CAAC;QACD,OAAO,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,IAAI,CAAC;IACjD,CAAC;IAED,qBAAqB,CAAC,IAAiB;QACtC,OAAO,IAAA,gDAAqB,EAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9D,CAAC;CACD;AA9CD,kCA8CC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export { CredentialTestContext } from './credentials-test-context';
|
|
2
|
+
export { ExecuteContext } from './execute-context';
|
|
3
|
+
export { ExecuteSingleContext } from './execute-single-context';
|
|
4
|
+
export { HookContext } from './hook-context';
|
|
5
|
+
export { LoadOptionsContext } from './load-options-context';
|
|
6
|
+
export { LocalLoadOptionsContext } from './local-load-options-context';
|
|
7
|
+
export { PollContext } from './poll-context';
|
|
8
|
+
export { SupplyDataContext } from './supply-data-context';
|
|
9
|
+
export { TriggerContext } from './trigger-context';
|
|
10
|
+
export { WebhookContext } from './webhook-context';
|
|
11
|
+
export { constructExecutionMetaData } from './utils/construct-execution-metadata';
|
|
12
|
+
export { getAdditionalKeys } from './utils/get-additional-keys';
|
|
13
|
+
export { normalizeItems } from './utils/normalize-items';
|
|
14
|
+
export { parseIncomingMessage } from './utils/parse-incoming-message';
|
|
15
|
+
export { parseRequestObject } from './utils/request-helper-functions';
|
|
16
|
+
export { returnJsonArray } from './utils/return-json-array';
|
|
17
|
+
export * from './utils/binary-helper-functions';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.returnJsonArray = exports.parseRequestObject = exports.parseIncomingMessage = exports.normalizeItems = exports.getAdditionalKeys = exports.constructExecutionMetaData = exports.WebhookContext = exports.TriggerContext = exports.SupplyDataContext = exports.PollContext = exports.LocalLoadOptionsContext = exports.LoadOptionsContext = exports.HookContext = exports.ExecuteSingleContext = exports.ExecuteContext = exports.CredentialTestContext = void 0;
|
|
18
|
+
var credentials_test_context_1 = require("./credentials-test-context");
|
|
19
|
+
Object.defineProperty(exports, "CredentialTestContext", { enumerable: true, get: function () { return credentials_test_context_1.CredentialTestContext; } });
|
|
20
|
+
var execute_context_1 = require("./execute-context");
|
|
21
|
+
Object.defineProperty(exports, "ExecuteContext", { enumerable: true, get: function () { return execute_context_1.ExecuteContext; } });
|
|
22
|
+
var execute_single_context_1 = require("./execute-single-context");
|
|
23
|
+
Object.defineProperty(exports, "ExecuteSingleContext", { enumerable: true, get: function () { return execute_single_context_1.ExecuteSingleContext; } });
|
|
24
|
+
var hook_context_1 = require("./hook-context");
|
|
25
|
+
Object.defineProperty(exports, "HookContext", { enumerable: true, get: function () { return hook_context_1.HookContext; } });
|
|
26
|
+
var load_options_context_1 = require("./load-options-context");
|
|
27
|
+
Object.defineProperty(exports, "LoadOptionsContext", { enumerable: true, get: function () { return load_options_context_1.LoadOptionsContext; } });
|
|
28
|
+
var local_load_options_context_1 = require("./local-load-options-context");
|
|
29
|
+
Object.defineProperty(exports, "LocalLoadOptionsContext", { enumerable: true, get: function () { return local_load_options_context_1.LocalLoadOptionsContext; } });
|
|
30
|
+
var poll_context_1 = require("./poll-context");
|
|
31
|
+
Object.defineProperty(exports, "PollContext", { enumerable: true, get: function () { return poll_context_1.PollContext; } });
|
|
32
|
+
var supply_data_context_1 = require("./supply-data-context");
|
|
33
|
+
Object.defineProperty(exports, "SupplyDataContext", { enumerable: true, get: function () { return supply_data_context_1.SupplyDataContext; } });
|
|
34
|
+
var trigger_context_1 = require("./trigger-context");
|
|
35
|
+
Object.defineProperty(exports, "TriggerContext", { enumerable: true, get: function () { return trigger_context_1.TriggerContext; } });
|
|
36
|
+
var webhook_context_1 = require("./webhook-context");
|
|
37
|
+
Object.defineProperty(exports, "WebhookContext", { enumerable: true, get: function () { return webhook_context_1.WebhookContext; } });
|
|
38
|
+
var construct_execution_metadata_1 = require("./utils/construct-execution-metadata");
|
|
39
|
+
Object.defineProperty(exports, "constructExecutionMetaData", { enumerable: true, get: function () { return construct_execution_metadata_1.constructExecutionMetaData; } });
|
|
40
|
+
var get_additional_keys_1 = require("./utils/get-additional-keys");
|
|
41
|
+
Object.defineProperty(exports, "getAdditionalKeys", { enumerable: true, get: function () { return get_additional_keys_1.getAdditionalKeys; } });
|
|
42
|
+
var normalize_items_1 = require("./utils/normalize-items");
|
|
43
|
+
Object.defineProperty(exports, "normalizeItems", { enumerable: true, get: function () { return normalize_items_1.normalizeItems; } });
|
|
44
|
+
var parse_incoming_message_1 = require("./utils/parse-incoming-message");
|
|
45
|
+
Object.defineProperty(exports, "parseIncomingMessage", { enumerable: true, get: function () { return parse_incoming_message_1.parseIncomingMessage; } });
|
|
46
|
+
var request_helper_functions_1 = require("./utils/request-helper-functions");
|
|
47
|
+
Object.defineProperty(exports, "parseRequestObject", { enumerable: true, get: function () { return request_helper_functions_1.parseRequestObject; } });
|
|
48
|
+
var return_json_array_1 = require("./utils/return-json-array");
|
|
49
|
+
Object.defineProperty(exports, "returnJsonArray", { enumerable: true, get: function () { return return_json_array_1.returnJsonArray; } });
|
|
50
|
+
__exportStar(require("./utils/binary-helper-functions"), exports);
|
|
51
|
+
//# sourceMappingURL=index.js.map
|