n8n 1.92.2 → 1.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/active-executions.d.ts +1 -1
- package/dist/active-executions.js +2 -2
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.d.ts +7 -6
- package/dist/active-workflow-manager.js +25 -34
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/auth.service.js +3 -3
- package/dist/auth/auth.service.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/commands/base-command.d.ts +1 -0
- package/dist/commands/base-command.js +8 -1
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/community-node.js +3 -4
- package/dist/commands/community-node.js.map +1 -1
- package/dist/commands/execute-batch.d.ts +1 -0
- package/dist/commands/execute-batch.js +1 -1
- package/dist/commands/execute-batch.js.map +1 -1
- package/dist/commands/execute.d.ts +1 -0
- package/dist/commands/execute.js +1 -0
- package/dist/commands/execute.js.map +1 -1
- package/dist/commands/export/credentials.js +2 -2
- package/dist/commands/export/credentials.js.map +1 -1
- package/dist/commands/import/credentials.js +1 -2
- package/dist/commands/import/credentials.js.map +1 -1
- package/dist/commands/import/workflow.js +3 -5
- package/dist/commands/import/workflow.js.map +1 -1
- package/dist/commands/ldap/reset.js +13 -19
- package/dist/commands/ldap/reset.js.map +1 -1
- package/dist/commands/mfa/disable.js +2 -2
- package/dist/commands/mfa/disable.js.map +1 -1
- package/dist/commands/start.d.ts +1 -0
- package/dist/commands/start.js +26 -22
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/user-management/reset.js +7 -12
- package/dist/commands/user-management/reset.js.map +1 -1
- package/dist/commands/webhook.js +2 -2
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.d.ts +1 -0
- package/dist/commands/worker.js +3 -9
- package/dist/commands/worker.js.map +1 -1
- package/dist/concurrency/concurrency-control.service.d.ts +1 -1
- package/dist/concurrency/concurrency-control.service.js +2 -2
- package/dist/concurrency/concurrency-control.service.js.map +1 -1
- package/dist/controller.registry.js +1 -1
- package/dist/controller.registry.js.map +1 -1
- package/dist/controllers/community-node-types.controller.d.ts +9 -0
- package/dist/controllers/community-node-types.controller.js +43 -0
- package/dist/controllers/community-node-types.controller.js.map +1 -0
- package/dist/controllers/community-packages.controller.d.ts +3 -1
- package/dist/controllers/community-packages.controller.js +18 -7
- package/dist/controllers/community-packages.controller.js.map +1 -1
- package/dist/controllers/debug.controller.d.ts +3 -3
- package/dist/controllers/debug.controller.js +5 -5
- package/dist/controllers/debug.controller.js.map +1 -1
- package/dist/controllers/folder.controller.d.ts +5 -2
- package/dist/controllers/folder.controller.js +19 -3
- package/dist/controllers/folder.controller.js.map +1 -1
- package/dist/controllers/oauth/abstract-oauth.controller.d.ts +1 -1
- package/dist/controllers/oauth/abstract-oauth.controller.js +2 -2
- package/dist/controllers/oauth/abstract-oauth.controller.js.map +1 -1
- package/dist/controllers/owner.controller.d.ts +5 -5
- package/dist/controllers/owner.controller.js +7 -4
- package/dist/controllers/owner.controller.js.map +1 -1
- package/dist/controllers/password-reset.controller.js +11 -6
- package/dist/controllers/password-reset.controller.js.map +1 -1
- package/dist/controllers/project.controller.d.ts +2 -4
- package/dist/controllers/project.controller.js +13 -16
- package/dist/controllers/project.controller.js.map +1 -1
- package/dist/controllers/role.controller.d.ts +2 -9
- package/dist/controllers/role.controller.js +3 -11
- package/dist/controllers/role.controller.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +1 -3
- package/dist/controllers/users.controller.js +4 -7
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/controllers/workflow-statistics.controller.d.ts +1 -1
- package/dist/controllers/workflow-statistics.controller.js +2 -2
- package/dist/controllers/workflow-statistics.controller.js.map +1 -1
- package/dist/credentials/credentials-finder.service.d.ts +4 -8
- package/dist/credentials/credentials-finder.service.js +16 -23
- package/dist/credentials/credentials-finder.service.js.map +1 -1
- package/dist/credentials/credentials.controller.d.ts +1 -2
- package/dist/credentials/credentials.controller.js +2 -4
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +2 -5
- package/dist/credentials/credentials.service.ee.d.ts +2 -5
- package/dist/credentials/credentials.service.ee.js +5 -8
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +8 -10
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.d.ts +1 -2
- package/dist/credentials-helper.js +3 -4
- package/dist/credentials-helper.js.map +1 -1
- package/dist/databases/migrations/common/1714133768519-CreateProject.js.map +1 -1
- package/dist/databases/migrations/common/1745934666076-AddWorkflowArchivedColumn.d.ts +5 -0
- package/dist/databases/migrations/common/1745934666076-AddWorkflowArchivedColumn.js +19 -0
- package/dist/databases/migrations/common/1745934666076-AddWorkflowArchivedColumn.js.map +1 -0
- package/dist/databases/migrations/common/1745934666077-DropRoleTable.d.ts +4 -0
- package/dist/databases/migrations/common/1745934666077-DropRoleTable.js +10 -0
- package/dist/databases/migrations/common/1745934666077-DropRoleTable.js.map +1 -0
- package/dist/databases/migrations/mysqldb/index.js +4 -0
- package/dist/databases/migrations/mysqldb/index.js.map +1 -1
- package/dist/databases/migrations/postgresdb/index.js +4 -0
- package/dist/databases/migrations/postgresdb/index.js.map +1 -1
- package/dist/databases/migrations/sqlite/index.js +4 -0
- package/dist/databases/migrations/sqlite/index.js.map +1 -1
- package/dist/databases/repositories/user.repository.d.ts +1 -2
- package/dist/databases/repositories/workflow.repository.d.ts +4 -2
- package/dist/databases/repositories/workflow.repository.js +23 -5
- package/dist/databases/repositories/workflow.repository.js.map +1 -1
- package/dist/deduplication/deduplication-helper.js +10 -10
- package/dist/deduplication/deduplication-helper.js.map +1 -1
- package/dist/environments.ee/source-control/source-control-export.service.ee.d.ts +1 -5
- package/dist/environments.ee/source-control/source-control-export.service.ee.js +7 -10
- package/dist/environments.ee/source-control/source-control-export.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/source-control-import.service.ee.d.ts +1 -8
- package/dist/environments.ee/source-control/source-control-import.service.ee.js +16 -20
- package/dist/environments.ee/source-control/source-control-import.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/source-control-preferences.service.ee.d.ts +1 -1
- package/dist/environments.ee/source-control/source-control-preferences.service.ee.js +2 -2
- package/dist/environments.ee/source-control/source-control-preferences.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/source-control.service.ee.d.ts +1 -2
- package/dist/environments.ee/source-control/source-control.service.ee.js +3 -4
- package/dist/environments.ee/source-control/source-control.service.ee.js.map +1 -1
- package/dist/environments.ee/source-control/types/exportable-workflow.d.ts +1 -0
- package/dist/environments.ee/variables/variables.service.ee.d.ts +1 -1
- package/dist/environments.ee/variables/variables.service.ee.js +1 -2
- package/dist/environments.ee/variables/variables.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-definition.service.ee.d.ts +1 -2
- package/dist/evaluation.ee/test-definition.service.ee.js +3 -4
- package/dist/evaluation.ee/test-definition.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-definitions.controller.ee.js +9 -1
- package/dist/evaluation.ee/test-definitions.controller.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.d.ts +1 -4
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js +5 -8
- package/dist/evaluation.ee/test-runner/test-runner.service.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runner/utils.ee.d.ts +1 -2
- package/dist/evaluation.ee/test-runner/utils.ee.js +0 -18
- package/dist/evaluation.ee/test-runner/utils.ee.js.map +1 -1
- package/dist/evaluation.ee/test-runs.controller.ee.d.ts +2 -5
- package/dist/evaluation.ee/test-runs.controller.ee.js +12 -5
- package/dist/evaluation.ee/test-runs.controller.ee.js.map +1 -1
- package/dist/eventbus/event-message-classes/index.d.ts +2 -2
- package/dist/eventbus/event-message-classes/index.js +2 -0
- package/dist/eventbus/event-message-classes/index.js.map +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.d.ts +1 -2
- package/dist/eventbus/message-event-bus/message-event-bus.js +3 -4
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js +3 -3
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js.map +1 -1
- package/dist/events/maps/relay.event-map.d.ts +10 -0
- package/dist/events/relays/log-streaming.event-relay.d.ts +2 -0
- package/dist/events/relays/log-streaming.event-relay.js +26 -0
- package/dist/events/relays/log-streaming.event-relay.js.map +1 -1
- package/dist/events/relays/telemetry.event-relay.d.ts +3 -3
- package/dist/events/relays/telemetry.event-relay.js +20 -6
- package/dist/events/relays/telemetry.event-relay.js.map +1 -1
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js +3 -3
- package/dist/execution-lifecycle/execution-lifecycle-hooks.js.map +1 -1
- package/dist/execution-lifecycle/save-execution-progress.js +2 -2
- package/dist/execution-lifecycle/save-execution-progress.js.map +1 -1
- package/dist/execution-lifecycle/shared/shared-hook-functions.js +4 -3
- package/dist/execution-lifecycle/shared/shared-hook-functions.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +1 -1
- package/dist/executions/execution-recovery.service.js +2 -2
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution.service.d.ts +1 -3
- package/dist/executions/execution.service.js +4 -6
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.d.ts +1 -1
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js +6 -3
- package/dist/executions/pre-execution-checks/credentials-permission-checker.js.map +1 -1
- package/dist/external-hooks.d.ts +3 -2
- package/dist/external-hooks.js +3 -4
- package/dist/external-hooks.js.map +1 -1
- package/dist/external-secrets.ee/external-secrets-manager.ee.d.ts +2 -2
- package/dist/external-secrets.ee/external-secrets-manager.ee.js +8 -4
- package/dist/external-secrets.ee/external-secrets-manager.ee.js.map +1 -1
- package/dist/interfaces.d.ts +2 -2
- package/dist/ldap.ee/helpers.ee.d.ts +1 -1
- package/dist/ldap.ee/helpers.ee.js +7 -9
- package/dist/ldap.ee/helpers.ee.js.map +1 -1
- package/dist/ldap.ee/ldap.service.ee.d.ts +1 -1
- package/dist/ldap.ee/ldap.service.ee.js +2 -2
- package/dist/ldap.ee/ldap.service.ee.js.map +1 -1
- package/dist/license.d.ts +5 -10
- package/dist/license.js +35 -53
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.js +3 -2
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/manual-execution.service.js +4 -2
- package/dist/manual-execution.service.js.map +1 -1
- package/dist/metrics/license-metrics.service.d.ts +1 -1
- package/dist/metrics/license-metrics.service.js +2 -2
- package/dist/metrics/license-metrics.service.js.map +1 -1
- package/dist/mfa/mfa.service.d.ts +1 -1
- package/dist/mfa/mfa.service.js +2 -2
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.d.ts +1 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js +6 -0
- package/dist/middlewares/list-query/dtos/workflow.filter.dto.js.map +1 -1
- package/dist/modules/insights/database/repositories/insights-by-period.repository.d.ts +4 -0
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js +60 -43
- package/dist/modules/insights/database/repositories/insights-by-period.repository.js.map +1 -1
- package/dist/modules/insights/insights-collection.service.d.ts +6 -2
- package/dist/modules/insights/insights-collection.service.js +46 -43
- package/dist/modules/insights/insights-collection.service.js.map +1 -1
- package/dist/modules/insights/insights-pruning.service.d.ts +21 -0
- package/dist/modules/insights/insights-pruning.service.js +85 -0
- package/dist/modules/insights/insights-pruning.service.js.map +1 -0
- package/dist/modules/insights/insights.config.d.ts +2 -0
- package/dist/modules/insights/insights.config.js +10 -0
- package/dist/modules/insights/insights.config.js.map +1 -1
- package/dist/modules/insights/insights.module.js +3 -3
- package/dist/modules/insights/insights.module.js.map +1 -1
- package/dist/modules/insights/insights.pre-init.js +1 -2
- package/dist/modules/insights/insights.pre-init.js.map +1 -1
- package/dist/modules/insights/insights.service.d.ts +9 -5
- package/dist/modules/insights/insights.service.js +24 -11
- package/dist/modules/insights/insights.service.js.map +1 -1
- package/dist/permissions.ee/check-access.d.ts +1 -1
- package/dist/permissions.ee/check-access.js +9 -12
- package/dist/permissions.ee/check-access.js.map +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.service.d.ts +1 -1
- package/dist/public-api/v1/handlers/credentials/credentials.service.js +5 -8
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -1
- package/dist/public-api/v1/handlers/executions/executions.handler.js +6 -6
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.js +2 -2
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/tags/tags.handler.js +2 -2
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/users/users.handler.ee.js +2 -2
- package/dist/public-api/v1/handlers/users/users.handler.ee.js.map +1 -1
- package/dist/public-api/v1/handlers/variables/variables.handler.js +2 -2
- package/dist/public-api/v1/handlers/variables/variables.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js +5 -7
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.service.d.ts +2 -2
- package/dist/public-api/v1/handlers/workflows/workflows.service.js +2 -4
- package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.js +1 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -1
- package/dist/push/abstract.push.js +1 -1
- package/dist/requests.d.ts +5 -3
- package/dist/scaling/job-processor.d.ts +1 -1
- package/dist/scaling/job-processor.js +7 -7
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/multi-main-setup.ee.js +1 -1
- package/dist/scaling/multi-main-setup.ee.js.map +1 -1
- package/dist/scaling/scaling.service.d.ts +1 -1
- package/dist/scaling/scaling.service.js +2 -2
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.d.ts +1 -3
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +4 -6
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
- package/dist/server.js +1 -0
- package/dist/server.js.map +1 -1
- package/dist/services/active-workflows.service.d.ts +1 -1
- package/dist/services/active-workflows.service.js +4 -3
- package/dist/services/active-workflows.service.js.map +1 -1
- package/dist/services/annotation-tag.service.ee.d.ts +1 -1
- package/dist/services/annotation-tag.service.ee.js +2 -2
- package/dist/services/annotation-tag.service.ee.js.map +1 -1
- package/dist/services/banner.service.d.ts +9 -0
- package/dist/{databases/repositories/settings.repository.js → services/banner.service.js} +14 -31
- package/dist/services/banner.service.js.map +1 -0
- package/dist/services/community-node-types.service.d.ts +22 -0
- package/dist/services/community-node-types.service.js +99 -0
- package/dist/services/community-node-types.service.js.map +1 -0
- package/dist/services/community-packages.service.d.ts +7 -2
- package/dist/services/community-packages.service.js +65 -17
- package/dist/services/community-packages.service.js.map +1 -1
- package/dist/services/cta.service.d.ts +1 -1
- package/dist/services/cta.service.js +2 -2
- package/dist/services/cta.service.js.map +1 -1
- package/dist/services/execution-metadata.service.d.ts +1 -1
- package/dist/services/execution-metadata.service.js +2 -2
- package/dist/services/execution-metadata.service.js.map +1 -1
- package/dist/services/folder.service.d.ts +6 -5
- package/dist/services/folder.service.js +19 -9
- package/dist/services/folder.service.js.map +1 -1
- package/dist/services/frontend.service.d.ts +3 -1
- package/dist/services/frontend.service.js +9 -5
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/hooks.service.d.ts +1 -3
- package/dist/services/hooks.service.js +4 -6
- package/dist/services/hooks.service.js.map +1 -1
- package/dist/services/import.service.d.ts +1 -2
- package/dist/services/import.service.js +2 -4
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/naming.service.d.ts +1 -1
- package/dist/services/naming.service.js +2 -2
- package/dist/services/naming.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -3
- package/dist/services/ownership.service.js +4 -6
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.ee.d.ts +5 -10
- package/dist/services/project.service.ee.js +23 -17
- package/dist/services/project.service.ee.js.map +1 -1
- package/dist/services/pruning/{pruning.service.d.ts → executions-pruning.service.d.ts} +2 -2
- package/dist/services/pruning/{pruning.service.js → executions-pruning.service.js} +13 -13
- package/dist/services/pruning/executions-pruning.service.js.map +1 -0
- package/dist/services/public-api-key.service.d.ts +1 -2
- package/dist/services/public-api-key.service.js +1 -2
- package/dist/services/public-api-key.service.js.map +1 -1
- package/dist/services/role.service.d.ts +4 -20
- package/dist/services/role.service.js +10 -72
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/tag.service.d.ts +1 -1
- package/dist/services/tag.service.js +10 -12
- package/dist/services/tag.service.js.map +1 -1
- package/dist/services/user.service.js +3 -1
- package/dist/services/user.service.js.map +1 -1
- package/dist/services/workflow-statistics.service.d.ts +1 -1
- package/dist/services/workflow-statistics.service.js +2 -2
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/sso.ee/saml/saml-helpers.js +1 -2
- package/dist/sso.ee/saml/saml-helpers.js.map +1 -1
- package/dist/sso.ee/saml/saml.service.ee.d.ts +1 -1
- package/dist/sso.ee/saml/saml.service.ee.js +2 -2
- package/dist/sso.ee/saml/saml.service.ee.js.map +1 -1
- package/dist/sso.ee/sso-helpers.d.ts +1 -1
- package/dist/sso.ee/sso-helpers.js +2 -2
- package/dist/sso.ee/sso-helpers.js.map +1 -1
- package/dist/telemetry/index.js +3 -4
- package/dist/telemetry/index.js.map +1 -1
- package/dist/utils/community-nodes-request-utils.d.ts +2 -0
- package/dist/utils/community-nodes-request-utils.js +48 -0
- package/dist/utils/community-nodes-request-utils.js.map +1 -0
- package/dist/utils/npm-utils.d.ts +1 -0
- package/dist/utils/npm-utils.js +23 -0
- package/dist/utils/npm-utils.js.map +1 -0
- package/dist/wait-tracker.d.ts +1 -1
- package/dist/wait-tracker.js +2 -2
- package/dist/wait-tracker.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +1 -1
- package/dist/webhooks/waiting-webhooks.js +2 -2
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +12 -1
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +1 -0
- package/dist/webhooks/webhook.service.js +11 -8
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.js +2 -2
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.js +4 -4
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +1 -1
- package/dist/workflow-runner.js +2 -2
- package/dist/workflow-runner.js.map +1 -1
- package/dist/workflows/workflow-execution.service.d.ts +2 -2
- package/dist/workflows/workflow-execution.service.js +4 -3
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-finder.service.d.ts +4 -5
- package/dist/workflows/workflow-finder.service.js +10 -12
- package/dist/workflows/workflow-finder.service.js.map +1 -1
- package/dist/workflows/workflow-history.ee/workflow-history-manager.ee.d.ts +1 -1
- package/dist/workflows/workflow-history.ee/workflow-history-manager.ee.js +2 -2
- package/dist/workflows/workflow-history.ee/workflow-history-manager.ee.js.map +1 -1
- package/dist/workflows/workflow-history.ee/workflow-history.service.ee.d.ts +1 -1
- package/dist/workflows/workflow-history.ee/workflow-history.service.ee.js +2 -2
- package/dist/workflows/workflow-history.ee/workflow-history.service.ee.js.map +1 -1
- package/dist/workflows/workflow-sharing.service.d.ts +3 -5
- package/dist/workflows/workflow-sharing.service.js +7 -11
- package/dist/workflows/workflow-sharing.service.js.map +1 -1
- package/dist/workflows/workflow.request.d.ts +2 -2
- package/dist/workflows/workflow.service.d.ts +6 -9
- package/dist/workflows/workflow.service.ee.d.ts +10 -5
- package/dist/workflows/workflow.service.ee.js +94 -38
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +64 -16
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +8 -6
- package/dist/workflows/workflows.controller.js +47 -13
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +17 -16
- package/dist/databases/repositories/annotation-tag-mapping.repository.ee.d.ts +0 -6
- package/dist/databases/repositories/annotation-tag-mapping.repository.ee.js +0 -36
- package/dist/databases/repositories/annotation-tag-mapping.repository.ee.js.map +0 -1
- package/dist/databases/repositories/annotation-tag.repository.ee.d.ts +0 -5
- package/dist/databases/repositories/annotation-tag.repository.ee.js +0 -26
- package/dist/databases/repositories/annotation-tag.repository.ee.js.map +0 -1
- package/dist/databases/repositories/api-key.repository.d.ts +0 -5
- package/dist/databases/repositories/api-key.repository.js +0 -26
- package/dist/databases/repositories/api-key.repository.js.map +0 -1
- package/dist/databases/repositories/auth-identity.repository.d.ts +0 -5
- package/dist/databases/repositories/auth-identity.repository.js +0 -26
- package/dist/databases/repositories/auth-identity.repository.js.map +0 -1
- package/dist/databases/repositories/auth-provider-sync-history.repository.d.ts +0 -5
- package/dist/databases/repositories/auth-provider-sync-history.repository.js +0 -26
- package/dist/databases/repositories/auth-provider-sync-history.repository.js.map +0 -1
- package/dist/databases/repositories/auth-user.repository.d.ts +0 -5
- package/dist/databases/repositories/auth-user.repository.js +0 -26
- package/dist/databases/repositories/auth-user.repository.js.map +0 -1
- package/dist/databases/repositories/credentials.repository.d.ts +0 -20
- package/dist/databases/repositories/credentials.repository.js +0 -132
- package/dist/databases/repositories/credentials.repository.js.map +0 -1
- package/dist/databases/repositories/event-destinations.repository.d.ts +0 -5
- package/dist/databases/repositories/event-destinations.repository.js +0 -26
- package/dist/databases/repositories/event-destinations.repository.js.map +0 -1
- package/dist/databases/repositories/execution-annotation.repository.d.ts +0 -5
- package/dist/databases/repositories/execution-annotation.repository.js +0 -26
- package/dist/databases/repositories/execution-annotation.repository.js.map +0 -1
- package/dist/databases/repositories/execution-data.repository.d.ts +0 -9
- package/dist/databases/repositories/execution-data.repository.js +0 -37
- package/dist/databases/repositories/execution-data.repository.js.map +0 -1
- package/dist/databases/repositories/execution-metadata.repository.d.ts +0 -5
- package/dist/databases/repositories/execution-metadata.repository.js +0 -26
- package/dist/databases/repositories/execution-metadata.repository.js.map +0 -1
- package/dist/databases/repositories/execution.repository.d.ts +0 -119
- package/dist/databases/repositories/execution.repository.js +0 -690
- package/dist/databases/repositories/execution.repository.js.map +0 -1
- package/dist/databases/repositories/folder-tag-mapping.repository.d.ts +0 -6
- package/dist/databases/repositories/folder-tag-mapping.repository.js +0 -33
- package/dist/databases/repositories/folder-tag-mapping.repository.js.map +0 -1
- package/dist/databases/repositories/folder.repository.d.ts +0 -32
- package/dist/databases/repositories/folder.repository.js +0 -259
- package/dist/databases/repositories/folder.repository.js.map +0 -1
- package/dist/databases/repositories/installed-nodes.repository.d.ts +0 -5
- package/dist/databases/repositories/installed-nodes.repository.js +0 -26
- package/dist/databases/repositories/installed-nodes.repository.js.map +0 -1
- package/dist/databases/repositories/installed-packages.repository.d.ts +0 -9
- package/dist/databases/repositories/installed-packages.repository.js +0 -54
- package/dist/databases/repositories/installed-packages.repository.js.map +0 -1
- package/dist/databases/repositories/invalid-auth-token.repository.d.ts +0 -5
- package/dist/databases/repositories/invalid-auth-token.repository.js +0 -26
- package/dist/databases/repositories/invalid-auth-token.repository.js.map +0 -1
- package/dist/databases/repositories/license-metrics.repository.d.ts +0 -20
- package/dist/databases/repositories/license-metrics.repository.js +0 -69
- package/dist/databases/repositories/license-metrics.repository.js.map +0 -1
- package/dist/databases/repositories/processed-data.repository.d.ts +0 -5
- package/dist/databases/repositories/processed-data.repository.js +0 -26
- package/dist/databases/repositories/processed-data.repository.js.map +0 -1
- package/dist/databases/repositories/project-relation.repository.d.ts +0 -14
- package/dist/databases/repositories/project-relation.repository.js +0 -72
- package/dist/databases/repositories/project-relation.repository.js.map +0 -1
- package/dist/databases/repositories/project.repository.d.ts +0 -13
- package/dist/databases/repositories/project.repository.js +0 -56
- package/dist/databases/repositories/project.repository.js.map +0 -1
- package/dist/databases/repositories/settings.repository.d.ts +0 -15
- package/dist/databases/repositories/settings.repository.js.map +0 -1
- package/dist/databases/repositories/shared-credentials.repository.d.ts +0 -17
- package/dist/databases/repositories/shared-credentials.repository.js +0 -104
- package/dist/databases/repositories/shared-credentials.repository.js.map +0 -1
- package/dist/databases/repositories/shared-workflow.repository.d.ts +0 -24
- package/dist/databases/repositories/shared-workflow.repository.js +0 -134
- package/dist/databases/repositories/shared-workflow.repository.js.map +0 -1
- package/dist/databases/repositories/tag.repository.d.ts +0 -10
- package/dist/databases/repositories/tag.repository.js +0 -68
- package/dist/databases/repositories/tag.repository.js.map +0 -1
- package/dist/databases/repositories/test-case-execution.repository.ee.d.ts +0 -35
- package/dist/databases/repositories/test-case-execution.repository.ee.js +0 -85
- package/dist/databases/repositories/test-case-execution.repository.ee.js.map +0 -1
- package/dist/databases/repositories/test-definition.repository.ee.d.ts +0 -17
- package/dist/databases/repositories/test-definition.repository.ee.js +0 -75
- package/dist/databases/repositories/test-definition.repository.ee.js.map +0 -1
- package/dist/databases/repositories/test-metric.repository.ee.d.ts +0 -5
- package/dist/databases/repositories/test-metric.repository.ee.js +0 -26
- package/dist/databases/repositories/test-metric.repository.ee.js.map +0 -1
- package/dist/databases/repositories/test-run.repository.ee.d.ts +0 -40
- package/dist/databases/repositories/test-run.repository.ee.js +0 -97
- package/dist/databases/repositories/test-run.repository.ee.js.map +0 -1
- package/dist/databases/repositories/variables.repository.d.ts +0 -5
- package/dist/databases/repositories/variables.repository.js +0 -26
- package/dist/databases/repositories/variables.repository.js.map +0 -1
- package/dist/databases/repositories/workflow-history.repository.d.ts +0 -6
- package/dist/databases/repositories/workflow-history.repository.js +0 -29
- package/dist/databases/repositories/workflow-history.repository.js.map +0 -1
- package/dist/databases/repositories/workflow-statistics.repository.d.ts +0 -14
- package/dist/databases/repositories/workflow-statistics.repository.js +0 -123
- package/dist/databases/repositories/workflow-statistics.repository.js.map +0 -1
- package/dist/databases/repositories/workflow-tag-mapping.repository.d.ts +0 -6
- package/dist/databases/repositories/workflow-tag-mapping.repository.js +0 -33
- package/dist/databases/repositories/workflow-tag-mapping.repository.js.map +0 -1
- package/dist/services/orchestration.service.d.ts +0 -14
- package/dist/services/orchestration.service.js +0 -95
- package/dist/services/orchestration.service.js.map +0 -1
- package/dist/services/pruning/pruning.service.js.map +0 -1
|
@@ -1,690 +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.ExecutionRepository = void 0;
|
|
16
|
-
const config_1 = require("@n8n/config");
|
|
17
|
-
const db_1 = require("@n8n/db");
|
|
18
|
-
const di_1 = require("@n8n/di");
|
|
19
|
-
const typeorm_1 = require("@n8n/typeorm");
|
|
20
|
-
const DateUtils_1 = require("@n8n/typeorm/util/DateUtils");
|
|
21
|
-
const flatted_1 = require("flatted");
|
|
22
|
-
const pick_1 = __importDefault(require("lodash/pick"));
|
|
23
|
-
const n8n_core_1 = require("n8n-core");
|
|
24
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
25
|
-
const postgres_live_rows_retrieval_error_1 = require("../../errors/postgres-live-rows-retrieval.error");
|
|
26
|
-
const execution_data_repository_1 = require("./execution-data.repository");
|
|
27
|
-
function parseFiltersToQueryBuilder(qb, filters) {
|
|
28
|
-
if (filters?.status) {
|
|
29
|
-
qb.andWhere('execution.status IN (:...workflowStatus)', {
|
|
30
|
-
workflowStatus: filters.status,
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
if (filters?.finished) {
|
|
34
|
-
qb.andWhere({ finished: filters.finished });
|
|
35
|
-
}
|
|
36
|
-
if (filters?.metadata) {
|
|
37
|
-
qb.leftJoin(db_1.ExecutionMetadata, 'md', 'md.executionId = execution.id');
|
|
38
|
-
for (const md of filters.metadata) {
|
|
39
|
-
qb.andWhere('md.key = :key AND md.value = :value', md);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
if (filters?.startedAfter) {
|
|
43
|
-
qb.andWhere({
|
|
44
|
-
startedAt: (0, typeorm_1.MoreThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(new Date(filters.startedAfter))),
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
if (filters?.startedBefore) {
|
|
48
|
-
qb.andWhere({
|
|
49
|
-
startedAt: (0, typeorm_1.LessThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(new Date(filters.startedBefore))),
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
if (filters?.workflowId) {
|
|
53
|
-
qb.andWhere({
|
|
54
|
-
workflowId: filters.workflowId,
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const lessThanOrEqual = (date) => {
|
|
59
|
-
return (0, typeorm_1.LessThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(new Date(date)));
|
|
60
|
-
};
|
|
61
|
-
const moreThanOrEqual = (date) => {
|
|
62
|
-
return (0, typeorm_1.MoreThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(new Date(date)));
|
|
63
|
-
};
|
|
64
|
-
let ExecutionRepository = class ExecutionRepository extends typeorm_1.Repository {
|
|
65
|
-
constructor(dataSource, globalConfig, logger, errorReporter, executionDataRepository, binaryDataService) {
|
|
66
|
-
super(db_1.ExecutionEntity, dataSource.manager);
|
|
67
|
-
this.globalConfig = globalConfig;
|
|
68
|
-
this.logger = logger;
|
|
69
|
-
this.errorReporter = errorReporter;
|
|
70
|
-
this.executionDataRepository = executionDataRepository;
|
|
71
|
-
this.binaryDataService = binaryDataService;
|
|
72
|
-
this.hardDeletionBatchSize = 100;
|
|
73
|
-
this.summaryFields = {
|
|
74
|
-
id: true,
|
|
75
|
-
workflowId: true,
|
|
76
|
-
mode: true,
|
|
77
|
-
retryOf: true,
|
|
78
|
-
status: true,
|
|
79
|
-
createdAt: true,
|
|
80
|
-
startedAt: true,
|
|
81
|
-
stoppedAt: true,
|
|
82
|
-
};
|
|
83
|
-
this.annotationFields = {
|
|
84
|
-
id: true,
|
|
85
|
-
vote: true,
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
async findMultipleExecutions(queryParams, options) {
|
|
89
|
-
if (options?.includeData) {
|
|
90
|
-
if (!queryParams.relations) {
|
|
91
|
-
queryParams.relations = [];
|
|
92
|
-
}
|
|
93
|
-
if (Array.isArray(queryParams.relations)) {
|
|
94
|
-
queryParams.relations.push('executionData', 'metadata');
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
queryParams.relations.executionData = true;
|
|
98
|
-
queryParams.relations.metadata = true;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
const executions = await this.find(queryParams);
|
|
102
|
-
if (options?.includeData && options?.unflattenData) {
|
|
103
|
-
const [valid, invalid] = (0, db_1.separate)(executions, (e) => e.executionData !== null);
|
|
104
|
-
this.reportInvalidExecutions(invalid);
|
|
105
|
-
return valid.map((execution) => {
|
|
106
|
-
const { executionData, metadata, ...rest } = execution;
|
|
107
|
-
return {
|
|
108
|
-
...rest,
|
|
109
|
-
data: (0, flatted_1.parse)(executionData.data),
|
|
110
|
-
workflowData: executionData.workflowData,
|
|
111
|
-
customData: Object.fromEntries(metadata.map((m) => [m.key, m.value])),
|
|
112
|
-
};
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
else if (options?.includeData) {
|
|
116
|
-
const [valid, invalid] = (0, db_1.separate)(executions, (e) => e.executionData !== null);
|
|
117
|
-
this.reportInvalidExecutions(invalid);
|
|
118
|
-
return valid.map((execution) => {
|
|
119
|
-
const { executionData, metadata, ...rest } = execution;
|
|
120
|
-
return {
|
|
121
|
-
...rest,
|
|
122
|
-
data: execution.executionData.data,
|
|
123
|
-
workflowData: execution.executionData.workflowData,
|
|
124
|
-
customData: Object.fromEntries(metadata.map((m) => [m.key, m.value])),
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
return executions.map((execution) => {
|
|
129
|
-
const { executionData, ...rest } = execution;
|
|
130
|
-
return rest;
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
reportInvalidExecutions(executions) {
|
|
134
|
-
if (executions.length === 0)
|
|
135
|
-
return;
|
|
136
|
-
this.errorReporter.error(new n8n_workflow_1.UnexpectedError('Found executions without executionData', {
|
|
137
|
-
extra: { executionIds: executions.map(({ id }) => id) },
|
|
138
|
-
}));
|
|
139
|
-
}
|
|
140
|
-
serializeAnnotation(annotation) {
|
|
141
|
-
if (!annotation)
|
|
142
|
-
return null;
|
|
143
|
-
const { id, vote, tags } = annotation;
|
|
144
|
-
return {
|
|
145
|
-
id,
|
|
146
|
-
vote,
|
|
147
|
-
tags: tags?.map((tag) => (0, pick_1.default)(tag, ['id', 'name'])) ?? [],
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
async findSingleExecution(id, options) {
|
|
151
|
-
const findOptions = {
|
|
152
|
-
where: {
|
|
153
|
-
id,
|
|
154
|
-
...options?.where,
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
if (options?.includeData) {
|
|
158
|
-
findOptions.relations = { executionData: true, metadata: true };
|
|
159
|
-
}
|
|
160
|
-
if (options?.includeAnnotation) {
|
|
161
|
-
findOptions.relations = {
|
|
162
|
-
...findOptions.relations,
|
|
163
|
-
annotation: {
|
|
164
|
-
tags: true,
|
|
165
|
-
},
|
|
166
|
-
};
|
|
167
|
-
}
|
|
168
|
-
const execution = await this.findOne(findOptions);
|
|
169
|
-
if (!execution) {
|
|
170
|
-
return undefined;
|
|
171
|
-
}
|
|
172
|
-
const { executionData, metadata, annotation, ...rest } = execution;
|
|
173
|
-
const serializedAnnotation = this.serializeAnnotation(annotation);
|
|
174
|
-
if (execution.status === 'success' && executionData?.data === '[]') {
|
|
175
|
-
this.errorReporter.error('Found successful execution where data is empty stringified array', {
|
|
176
|
-
extra: {
|
|
177
|
-
executionId: execution.id,
|
|
178
|
-
workflowId: executionData?.workflowData.id,
|
|
179
|
-
},
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
return {
|
|
183
|
-
...rest,
|
|
184
|
-
...(options?.includeData && {
|
|
185
|
-
data: options?.unflattenData
|
|
186
|
-
? (0, flatted_1.parse)(executionData.data)
|
|
187
|
-
: executionData.data,
|
|
188
|
-
workflowData: executionData?.workflowData,
|
|
189
|
-
customData: Object.fromEntries(metadata.map((m) => [m.key, m.value])),
|
|
190
|
-
}),
|
|
191
|
-
...(options?.includeAnnotation &&
|
|
192
|
-
serializedAnnotation && { annotation: serializedAnnotation }),
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
async createNewExecution(execution) {
|
|
196
|
-
const { data: dataObj, workflowData: currentWorkflow, ...rest } = execution;
|
|
197
|
-
const { connections, nodes, name, settings } = currentWorkflow ?? {};
|
|
198
|
-
const workflowData = { connections, nodes, name, settings, id: currentWorkflow.id };
|
|
199
|
-
const data = (0, flatted_1.stringify)(dataObj);
|
|
200
|
-
const { type: dbType, sqlite: sqliteConfig } = this.globalConfig.database;
|
|
201
|
-
if (dbType === 'sqlite' && sqliteConfig.poolSize === 0) {
|
|
202
|
-
const { identifiers: inserted } = await this.insert({ ...rest, createdAt: new Date() });
|
|
203
|
-
const { id: executionId } = inserted[0];
|
|
204
|
-
await this.executionDataRepository.insert({ executionId, workflowData, data });
|
|
205
|
-
return String(executionId);
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
return await this.manager.transaction(async (transactionManager) => {
|
|
209
|
-
const { identifiers: inserted } = await transactionManager.insert(db_1.ExecutionEntity, {
|
|
210
|
-
...rest,
|
|
211
|
-
createdAt: new Date(),
|
|
212
|
-
});
|
|
213
|
-
const { id: executionId } = inserted[0];
|
|
214
|
-
await this.executionDataRepository.createExecutionDataForExecution({ executionId, workflowData, data }, transactionManager);
|
|
215
|
-
return String(executionId);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
async markAsCrashed(executionIds) {
|
|
220
|
-
if (!Array.isArray(executionIds))
|
|
221
|
-
executionIds = [executionIds];
|
|
222
|
-
await this.update({ id: (0, typeorm_1.In)(executionIds) }, {
|
|
223
|
-
status: 'crashed',
|
|
224
|
-
stoppedAt: new Date(),
|
|
225
|
-
});
|
|
226
|
-
this.logger.info('Marked executions as `crashed`', { executionIds });
|
|
227
|
-
}
|
|
228
|
-
async hardDelete(ids) {
|
|
229
|
-
return await Promise.all([
|
|
230
|
-
this.delete(ids.executionId),
|
|
231
|
-
this.binaryDataService.deleteMany([ids]),
|
|
232
|
-
]);
|
|
233
|
-
}
|
|
234
|
-
async setRunning(executionId) {
|
|
235
|
-
const startedAt = new Date();
|
|
236
|
-
await this.update({ id: executionId }, { status: 'running', startedAt });
|
|
237
|
-
return startedAt;
|
|
238
|
-
}
|
|
239
|
-
async updateExistingExecution(executionId, execution) {
|
|
240
|
-
const { id, data, workflowId, workflowData, createdAt, startedAt, customData, ...executionInformation } = execution;
|
|
241
|
-
const executionData = {};
|
|
242
|
-
if (workflowData)
|
|
243
|
-
executionData.workflowData = workflowData;
|
|
244
|
-
if (data)
|
|
245
|
-
executionData.data = (0, flatted_1.stringify)(data);
|
|
246
|
-
const { type: dbType, sqlite: sqliteConfig } = this.globalConfig.database;
|
|
247
|
-
if (dbType === 'sqlite' && sqliteConfig.poolSize === 0) {
|
|
248
|
-
if (Object.keys(executionInformation).length > 0) {
|
|
249
|
-
await this.update({ id: executionId }, executionInformation);
|
|
250
|
-
}
|
|
251
|
-
if (Object.keys(executionData).length > 0) {
|
|
252
|
-
await this.executionDataRepository.update({ executionId }, executionData);
|
|
253
|
-
}
|
|
254
|
-
return;
|
|
255
|
-
}
|
|
256
|
-
await this.manager.transaction(async (tx) => {
|
|
257
|
-
if (Object.keys(executionInformation).length > 0) {
|
|
258
|
-
await tx.update(db_1.ExecutionEntity, { id: executionId }, executionInformation);
|
|
259
|
-
}
|
|
260
|
-
if (Object.keys(executionData).length > 0) {
|
|
261
|
-
await tx.update(db_1.ExecutionData, { executionId }, executionData);
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
async deleteExecutionsByFilter(filters, accessibleWorkflowIds, deleteConditions) {
|
|
266
|
-
if (!deleteConditions?.deleteBefore && !deleteConditions?.ids) {
|
|
267
|
-
throw new n8n_workflow_1.UnexpectedError('Either "deleteBefore" or "ids" must be present in the request body');
|
|
268
|
-
}
|
|
269
|
-
const query = this.createQueryBuilder('execution')
|
|
270
|
-
.select(['execution.id', 'execution.workflowId'])
|
|
271
|
-
.andWhere('execution.workflowId IN (:...accessibleWorkflowIds)', { accessibleWorkflowIds });
|
|
272
|
-
if (deleteConditions.deleteBefore) {
|
|
273
|
-
query.andWhere('execution.startedAt <= :deleteBefore', {
|
|
274
|
-
deleteBefore: deleteConditions.deleteBefore,
|
|
275
|
-
});
|
|
276
|
-
parseFiltersToQueryBuilder(query, filters);
|
|
277
|
-
}
|
|
278
|
-
else if (deleteConditions.ids) {
|
|
279
|
-
query.andWhere('execution.id IN (:...executionIds)', { executionIds: deleteConditions.ids });
|
|
280
|
-
}
|
|
281
|
-
const executions = await query.getMany();
|
|
282
|
-
if (!executions.length) {
|
|
283
|
-
if (deleteConditions.ids) {
|
|
284
|
-
this.logger.error('Failed to delete an execution due to insufficient permissions', {
|
|
285
|
-
executionIds: deleteConditions.ids,
|
|
286
|
-
});
|
|
287
|
-
}
|
|
288
|
-
return;
|
|
289
|
-
}
|
|
290
|
-
const ids = executions.map(({ id, workflowId }) => ({
|
|
291
|
-
executionId: id,
|
|
292
|
-
workflowId,
|
|
293
|
-
}));
|
|
294
|
-
do {
|
|
295
|
-
const batch = ids.splice(0, this.hardDeletionBatchSize);
|
|
296
|
-
await Promise.all([
|
|
297
|
-
this.delete(batch.map(({ executionId }) => executionId)),
|
|
298
|
-
this.binaryDataService.deleteMany(batch),
|
|
299
|
-
]);
|
|
300
|
-
} while (ids.length > 0);
|
|
301
|
-
}
|
|
302
|
-
async getIdsSince(date) {
|
|
303
|
-
return await this.find({
|
|
304
|
-
select: ['id'],
|
|
305
|
-
where: {
|
|
306
|
-
startedAt: (0, typeorm_1.MoreThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(date)),
|
|
307
|
-
},
|
|
308
|
-
}).then((executions) => executions.map(({ id }) => id));
|
|
309
|
-
}
|
|
310
|
-
async softDeletePrunableExecutions() {
|
|
311
|
-
const { pruneDataMaxAge, pruneDataMaxCount } = this.globalConfig.executions;
|
|
312
|
-
const annotatedExecutionsSubQuery = this.manager
|
|
313
|
-
.createQueryBuilder()
|
|
314
|
-
.subQuery()
|
|
315
|
-
.select('annotation.executionId')
|
|
316
|
-
.from(db_1.ExecutionAnnotation, 'annotation');
|
|
317
|
-
const date = new Date();
|
|
318
|
-
date.setHours(date.getHours() - pruneDataMaxAge);
|
|
319
|
-
const toPrune = [
|
|
320
|
-
{ stoppedAt: (0, typeorm_1.LessThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(date)) },
|
|
321
|
-
];
|
|
322
|
-
if (pruneDataMaxCount > 0) {
|
|
323
|
-
const executions = await this.createQueryBuilder('execution')
|
|
324
|
-
.select('execution.id')
|
|
325
|
-
.where('execution.id NOT IN ' + annotatedExecutionsSubQuery.getQuery())
|
|
326
|
-
.skip(pruneDataMaxCount)
|
|
327
|
-
.take(1)
|
|
328
|
-
.orderBy('execution.id', 'DESC')
|
|
329
|
-
.getMany();
|
|
330
|
-
if (executions[0]) {
|
|
331
|
-
toPrune.push({ id: (0, typeorm_1.LessThanOrEqual)(executions[0].id) });
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
const [timeBasedWhere, countBasedWhere] = toPrune;
|
|
335
|
-
return await this.createQueryBuilder()
|
|
336
|
-
.update(db_1.ExecutionEntity)
|
|
337
|
-
.set({ deletedAt: new Date() })
|
|
338
|
-
.where({
|
|
339
|
-
deletedAt: (0, typeorm_1.IsNull)(),
|
|
340
|
-
status: (0, typeorm_1.Not)((0, typeorm_1.In)(['new', 'running', 'waiting'])),
|
|
341
|
-
})
|
|
342
|
-
.andWhere('id NOT IN ' + annotatedExecutionsSubQuery.getQuery())
|
|
343
|
-
.andWhere(new typeorm_1.Brackets((qb) => countBasedWhere
|
|
344
|
-
? qb.where(timeBasedWhere).orWhere(countBasedWhere)
|
|
345
|
-
: qb.where(timeBasedWhere)))
|
|
346
|
-
.execute();
|
|
347
|
-
}
|
|
348
|
-
async findSoftDeletedExecutions() {
|
|
349
|
-
const date = new Date();
|
|
350
|
-
date.setHours(date.getHours() - this.globalConfig.executions.pruneDataHardDeleteBuffer);
|
|
351
|
-
const workflowIdsAndExecutionIds = (await this.find({
|
|
352
|
-
select: ['workflowId', 'id'],
|
|
353
|
-
where: {
|
|
354
|
-
deletedAt: (0, typeorm_1.LessThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(date)),
|
|
355
|
-
},
|
|
356
|
-
take: this.hardDeletionBatchSize,
|
|
357
|
-
withDeleted: true,
|
|
358
|
-
})).map(({ id: executionId, workflowId }) => ({ workflowId, executionId }));
|
|
359
|
-
return workflowIdsAndExecutionIds;
|
|
360
|
-
}
|
|
361
|
-
async deleteByIds(executionIds) {
|
|
362
|
-
return await this.delete({ id: (0, typeorm_1.In)(executionIds) });
|
|
363
|
-
}
|
|
364
|
-
async getWaitingExecutions() {
|
|
365
|
-
const waitTill = new Date(Date.now() + 70000);
|
|
366
|
-
const where = {
|
|
367
|
-
waitTill: (0, typeorm_1.LessThanOrEqual)(waitTill),
|
|
368
|
-
status: (0, typeorm_1.Not)('crashed'),
|
|
369
|
-
};
|
|
370
|
-
const dbType = this.globalConfig.database.type;
|
|
371
|
-
if (dbType === 'sqlite') {
|
|
372
|
-
where.waitTill = (0, typeorm_1.LessThanOrEqual)(DateUtils_1.DateUtils.mixedDateToUtcDatetimeString(waitTill));
|
|
373
|
-
}
|
|
374
|
-
return await this.findMultipleExecutions({
|
|
375
|
-
select: ['id', 'waitTill'],
|
|
376
|
-
where,
|
|
377
|
-
order: {
|
|
378
|
-
waitTill: 'ASC',
|
|
379
|
-
},
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
async getExecutionsCountForPublicApi(data) {
|
|
383
|
-
const executions = await this.count({
|
|
384
|
-
where: {
|
|
385
|
-
...(data.lastId && { id: (0, typeorm_1.LessThan)(data.lastId) }),
|
|
386
|
-
...(data.status && { ...this.getStatusCondition(data.status) }),
|
|
387
|
-
...(data.workflowIds && { workflowId: (0, typeorm_1.In)(data.workflowIds) }),
|
|
388
|
-
...(data.excludedWorkflowIds && { workflowId: (0, typeorm_1.Not)((0, typeorm_1.In)(data.excludedWorkflowIds)) }),
|
|
389
|
-
},
|
|
390
|
-
take: data.limit,
|
|
391
|
-
});
|
|
392
|
-
return executions;
|
|
393
|
-
}
|
|
394
|
-
getStatusCondition(status) {
|
|
395
|
-
const condition = {};
|
|
396
|
-
if (status === 'success') {
|
|
397
|
-
condition.status = 'success';
|
|
398
|
-
}
|
|
399
|
-
else if (status === 'waiting') {
|
|
400
|
-
condition.status = 'waiting';
|
|
401
|
-
}
|
|
402
|
-
else if (status === 'error') {
|
|
403
|
-
condition.status = (0, typeorm_1.In)(['error', 'crashed']);
|
|
404
|
-
}
|
|
405
|
-
return condition;
|
|
406
|
-
}
|
|
407
|
-
async getExecutionsForPublicApi(params) {
|
|
408
|
-
let where = {};
|
|
409
|
-
if (params.lastId && params.excludedExecutionsIds?.length) {
|
|
410
|
-
where.id = (0, typeorm_1.Raw)((id) => `${id} < :lastId AND ${id} NOT IN (:...excludedExecutionsIds)`, {
|
|
411
|
-
lastId: params.lastId,
|
|
412
|
-
excludedExecutionsIds: params.excludedExecutionsIds,
|
|
413
|
-
});
|
|
414
|
-
}
|
|
415
|
-
else if (params.lastId) {
|
|
416
|
-
where.id = (0, typeorm_1.LessThan)(params.lastId);
|
|
417
|
-
}
|
|
418
|
-
else if (params.excludedExecutionsIds?.length) {
|
|
419
|
-
where.id = (0, typeorm_1.Not)((0, typeorm_1.In)(params.excludedExecutionsIds));
|
|
420
|
-
}
|
|
421
|
-
if (params.status) {
|
|
422
|
-
where = { ...where, ...this.getStatusCondition(params.status) };
|
|
423
|
-
}
|
|
424
|
-
if (params.workflowIds) {
|
|
425
|
-
where = { ...where, workflowId: (0, typeorm_1.In)(params.workflowIds) };
|
|
426
|
-
}
|
|
427
|
-
return await this.findMultipleExecutions({
|
|
428
|
-
select: [
|
|
429
|
-
'id',
|
|
430
|
-
'mode',
|
|
431
|
-
'retryOf',
|
|
432
|
-
'retrySuccessId',
|
|
433
|
-
'startedAt',
|
|
434
|
-
'stoppedAt',
|
|
435
|
-
'workflowId',
|
|
436
|
-
'waitTill',
|
|
437
|
-
'finished',
|
|
438
|
-
],
|
|
439
|
-
where,
|
|
440
|
-
order: { id: 'DESC' },
|
|
441
|
-
take: params.limit,
|
|
442
|
-
relations: ['executionData'],
|
|
443
|
-
}, {
|
|
444
|
-
includeData: params.includeData,
|
|
445
|
-
unflattenData: true,
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
async getExecutionInWorkflowsForPublicApi(id, workflowIds, includeData) {
|
|
449
|
-
return await this.findSingleExecution(id, {
|
|
450
|
-
where: {
|
|
451
|
-
workflowId: (0, typeorm_1.In)(workflowIds),
|
|
452
|
-
},
|
|
453
|
-
includeData,
|
|
454
|
-
unflattenData: true,
|
|
455
|
-
});
|
|
456
|
-
}
|
|
457
|
-
async findWithUnflattenedData(executionId, accessibleWorkflowIds) {
|
|
458
|
-
return await this.findSingleExecution(executionId, {
|
|
459
|
-
where: {
|
|
460
|
-
workflowId: (0, typeorm_1.In)(accessibleWorkflowIds),
|
|
461
|
-
},
|
|
462
|
-
includeData: true,
|
|
463
|
-
unflattenData: true,
|
|
464
|
-
includeAnnotation: true,
|
|
465
|
-
});
|
|
466
|
-
}
|
|
467
|
-
async findIfShared(executionId, sharedWorkflowIds) {
|
|
468
|
-
return await this.findSingleExecution(executionId, {
|
|
469
|
-
where: {
|
|
470
|
-
workflowId: (0, typeorm_1.In)(sharedWorkflowIds),
|
|
471
|
-
},
|
|
472
|
-
includeData: true,
|
|
473
|
-
unflattenData: false,
|
|
474
|
-
includeAnnotation: true,
|
|
475
|
-
});
|
|
476
|
-
}
|
|
477
|
-
async findIfAccessible(executionId, accessibleWorkflowIds) {
|
|
478
|
-
return await this.findSingleExecution(executionId, {
|
|
479
|
-
where: { workflowId: (0, typeorm_1.In)(accessibleWorkflowIds) },
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
async stopBeforeRun(execution) {
|
|
483
|
-
execution.status = 'canceled';
|
|
484
|
-
execution.stoppedAt = new Date();
|
|
485
|
-
await this.update({ id: execution.id }, { status: execution.status, stoppedAt: execution.stoppedAt });
|
|
486
|
-
return execution;
|
|
487
|
-
}
|
|
488
|
-
async stopDuringRun(execution) {
|
|
489
|
-
const error = new n8n_workflow_1.ExecutionCancelledError(execution.id);
|
|
490
|
-
execution.data ??= { resultData: { runData: {} } };
|
|
491
|
-
execution.data.resultData.error = {
|
|
492
|
-
...error,
|
|
493
|
-
message: error.message,
|
|
494
|
-
stack: error.stack,
|
|
495
|
-
};
|
|
496
|
-
execution.stoppedAt = new Date();
|
|
497
|
-
execution.waitTill = null;
|
|
498
|
-
execution.status = 'canceled';
|
|
499
|
-
await this.updateExistingExecution(execution.id, execution);
|
|
500
|
-
return execution;
|
|
501
|
-
}
|
|
502
|
-
async cancelMany(executionIds) {
|
|
503
|
-
await this.update({ id: (0, typeorm_1.In)(executionIds) }, { status: 'canceled', stoppedAt: new Date() });
|
|
504
|
-
}
|
|
505
|
-
reduceExecutionsWithAnnotations(rawExecutionsWithTags) {
|
|
506
|
-
return rawExecutionsWithTags.reduce((acc, { annotation_id: _, annotation_vote: vote, annotation_tags_id: tagId, annotation_tags_name: tagName, ...row }) => {
|
|
507
|
-
const existingExecution = acc.find((e) => e.id === row.id);
|
|
508
|
-
if (existingExecution) {
|
|
509
|
-
if (tagId) {
|
|
510
|
-
existingExecution.annotation = existingExecution.annotation ?? {
|
|
511
|
-
vote,
|
|
512
|
-
tags: [],
|
|
513
|
-
};
|
|
514
|
-
existingExecution.annotation.tags.push({ id: tagId, name: tagName });
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
else {
|
|
518
|
-
acc.push({
|
|
519
|
-
...row,
|
|
520
|
-
annotation: {
|
|
521
|
-
vote,
|
|
522
|
-
tags: tagId ? [{ id: tagId, name: tagName }] : [],
|
|
523
|
-
},
|
|
524
|
-
});
|
|
525
|
-
}
|
|
526
|
-
return acc;
|
|
527
|
-
}, []);
|
|
528
|
-
}
|
|
529
|
-
async findManyByRangeQuery(query) {
|
|
530
|
-
if (query?.accessibleWorkflowIds?.length === 0) {
|
|
531
|
-
throw new n8n_workflow_1.UnexpectedError('Expected accessible workflow IDs');
|
|
532
|
-
}
|
|
533
|
-
const qb = this.toQueryBuilderWithAnnotations(query);
|
|
534
|
-
const rawExecutionsWithTags = await qb.getRawMany();
|
|
535
|
-
const executions = this.reduceExecutionsWithAnnotations(rawExecutionsWithTags);
|
|
536
|
-
return executions.map((execution) => this.toSummary(execution));
|
|
537
|
-
}
|
|
538
|
-
toSummary(execution) {
|
|
539
|
-
execution.id = execution.id.toString();
|
|
540
|
-
const normalizeDateString = (date) => {
|
|
541
|
-
if (date.includes(' '))
|
|
542
|
-
return date.replace(' ', 'T') + 'Z';
|
|
543
|
-
return date;
|
|
544
|
-
};
|
|
545
|
-
if (execution.createdAt) {
|
|
546
|
-
execution.createdAt =
|
|
547
|
-
execution.createdAt instanceof Date
|
|
548
|
-
? execution.createdAt.toISOString()
|
|
549
|
-
: normalizeDateString(execution.createdAt);
|
|
550
|
-
}
|
|
551
|
-
if (execution.startedAt) {
|
|
552
|
-
execution.startedAt =
|
|
553
|
-
execution.startedAt instanceof Date
|
|
554
|
-
? execution.startedAt.toISOString()
|
|
555
|
-
: normalizeDateString(execution.startedAt);
|
|
556
|
-
}
|
|
557
|
-
if (execution.waitTill) {
|
|
558
|
-
execution.waitTill =
|
|
559
|
-
execution.waitTill instanceof Date
|
|
560
|
-
? execution.waitTill.toISOString()
|
|
561
|
-
: normalizeDateString(execution.waitTill);
|
|
562
|
-
}
|
|
563
|
-
if (execution.stoppedAt) {
|
|
564
|
-
execution.stoppedAt =
|
|
565
|
-
execution.stoppedAt instanceof Date
|
|
566
|
-
? execution.stoppedAt.toISOString()
|
|
567
|
-
: normalizeDateString(execution.stoppedAt);
|
|
568
|
-
}
|
|
569
|
-
return execution;
|
|
570
|
-
}
|
|
571
|
-
async fetchCount(query) {
|
|
572
|
-
return await this.toQueryBuilder(query).getCount();
|
|
573
|
-
}
|
|
574
|
-
async getLiveExecutionRowsOnPostgres() {
|
|
575
|
-
const tableName = `${this.globalConfig.database.tablePrefix}execution_entity`;
|
|
576
|
-
const pgSql = `SELECT n_live_tup as result FROM pg_stat_all_tables WHERE relname = '${tableName}';`;
|
|
577
|
-
try {
|
|
578
|
-
const rows = (await this.query(pgSql));
|
|
579
|
-
if (rows.length !== 1)
|
|
580
|
-
throw new postgres_live_rows_retrieval_error_1.PostgresLiveRowsRetrievalError(rows);
|
|
581
|
-
const [row] = rows;
|
|
582
|
-
return parseInt(row.result, 10);
|
|
583
|
-
}
|
|
584
|
-
catch (error) {
|
|
585
|
-
if (error instanceof Error)
|
|
586
|
-
this.logger.error(error.message, { error });
|
|
587
|
-
return -1;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
toQueryBuilder(query) {
|
|
591
|
-
const { accessibleWorkflowIds, status, finished, workflowId, startedBefore, startedAfter, metadata, annotationTags, vote, projectId, } = query;
|
|
592
|
-
const fields = Object.keys(this.summaryFields)
|
|
593
|
-
.concat(['waitTill', 'retrySuccessId'])
|
|
594
|
-
.map((key) => `execution.${key} AS "${key}"`)
|
|
595
|
-
.concat('workflow.name AS "workflowName"');
|
|
596
|
-
const qb = this.createQueryBuilder('execution')
|
|
597
|
-
.select(fields)
|
|
598
|
-
.innerJoin('execution.workflow', 'workflow')
|
|
599
|
-
.where('execution.workflowId IN (:...accessibleWorkflowIds)', { accessibleWorkflowIds });
|
|
600
|
-
if (query.kind === 'range') {
|
|
601
|
-
const { limit, firstId, lastId } = query.range;
|
|
602
|
-
qb.limit(limit);
|
|
603
|
-
if (firstId)
|
|
604
|
-
qb.andWhere('execution.id > :firstId', { firstId });
|
|
605
|
-
if (lastId)
|
|
606
|
-
qb.andWhere('execution.id < :lastId', { lastId });
|
|
607
|
-
if (query.order?.startedAt === 'DESC') {
|
|
608
|
-
qb.orderBy({ 'execution.startedAt': 'DESC' });
|
|
609
|
-
}
|
|
610
|
-
else if (query.order?.top) {
|
|
611
|
-
qb.orderBy(`(CASE WHEN execution.status = '${query.order.top}' THEN 0 ELSE 1 END)`);
|
|
612
|
-
}
|
|
613
|
-
else {
|
|
614
|
-
qb.orderBy({ 'execution.id': 'DESC' });
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
if (status)
|
|
618
|
-
qb.andWhere('execution.status IN (:...status)', { status });
|
|
619
|
-
if (finished)
|
|
620
|
-
qb.andWhere({ finished });
|
|
621
|
-
if (workflowId)
|
|
622
|
-
qb.andWhere({ workflowId });
|
|
623
|
-
if (startedBefore)
|
|
624
|
-
qb.andWhere({ startedAt: lessThanOrEqual(startedBefore) });
|
|
625
|
-
if (startedAfter)
|
|
626
|
-
qb.andWhere({ startedAt: moreThanOrEqual(startedAfter) });
|
|
627
|
-
if (metadata?.length === 1) {
|
|
628
|
-
const [{ key, value }] = metadata;
|
|
629
|
-
qb.innerJoin(db_1.ExecutionMetadata, 'md', 'md.executionId = execution.id AND md.key = :key AND md.value = :value');
|
|
630
|
-
qb.setParameter('key', key);
|
|
631
|
-
qb.setParameter('value', value);
|
|
632
|
-
}
|
|
633
|
-
if (annotationTags?.length || vote) {
|
|
634
|
-
qb.innerJoin('execution.annotation', 'annotation');
|
|
635
|
-
if (annotationTags?.length) {
|
|
636
|
-
for (let index = 0; index < annotationTags.length; index++) {
|
|
637
|
-
qb.innerJoin(db_1.AnnotationTagMapping, `atm_${index}`, `atm_${index}.annotationId = annotation.id AND atm_${index}.tagId = :tagId_${index}`);
|
|
638
|
-
qb.setParameter(`tagId_${index}`, annotationTags[index]);
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
if (vote) {
|
|
642
|
-
qb.andWhere('annotation.vote = :vote', { vote });
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
if (projectId) {
|
|
646
|
-
qb.innerJoin(db_1.WorkflowEntity, 'w', 'w.id = execution.workflowId')
|
|
647
|
-
.innerJoin(db_1.SharedWorkflow, 'sw', 'sw.workflowId = w.id')
|
|
648
|
-
.andWhere('sw.projectId = :projectId', { projectId });
|
|
649
|
-
}
|
|
650
|
-
return qb;
|
|
651
|
-
}
|
|
652
|
-
toQueryBuilderWithAnnotations(query) {
|
|
653
|
-
const annotationFields = Object.keys(this.annotationFields).map((key) => `annotation.${key} AS "annotation_${key}"`);
|
|
654
|
-
const subQuery = this.toQueryBuilder(query).addSelect(annotationFields);
|
|
655
|
-
if (!subQuery.expressionMap.joinAttributes.some((join) => join.alias.name === 'annotation')) {
|
|
656
|
-
subQuery.leftJoin('execution.annotation', 'annotation');
|
|
657
|
-
}
|
|
658
|
-
return this.manager
|
|
659
|
-
.createQueryBuilder()
|
|
660
|
-
.select(['e.*', 'ate.id AS "annotation_tags_id"', 'ate.name AS "annotation_tags_name"'])
|
|
661
|
-
.from(`(${subQuery.getQuery()})`, 'e')
|
|
662
|
-
.setParameters(subQuery.getParameters())
|
|
663
|
-
.leftJoin(db_1.AnnotationTagMapping, 'atm', 'atm.annotationId = e.annotation_id')
|
|
664
|
-
.leftJoin(db_1.AnnotationTagEntity, 'ate', 'ate.id = atm.tagId');
|
|
665
|
-
}
|
|
666
|
-
async getAllIds() {
|
|
667
|
-
const executions = await this.find({ select: ['id'], order: { id: 'ASC' } });
|
|
668
|
-
return executions.map(({ id }) => id);
|
|
669
|
-
}
|
|
670
|
-
async getInProgressExecutionIds(batchSize) {
|
|
671
|
-
const executions = await this.find({
|
|
672
|
-
select: ['id'],
|
|
673
|
-
where: { status: (0, typeorm_1.In)(['new', 'running']) },
|
|
674
|
-
order: { startedAt: 'DESC' },
|
|
675
|
-
take: batchSize,
|
|
676
|
-
});
|
|
677
|
-
return executions.map(({ id }) => id);
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
exports.ExecutionRepository = ExecutionRepository;
|
|
681
|
-
exports.ExecutionRepository = ExecutionRepository = __decorate([
|
|
682
|
-
(0, di_1.Service)(),
|
|
683
|
-
__metadata("design:paramtypes", [typeorm_1.DataSource,
|
|
684
|
-
config_1.GlobalConfig,
|
|
685
|
-
n8n_core_1.Logger,
|
|
686
|
-
n8n_core_1.ErrorReporter,
|
|
687
|
-
execution_data_repository_1.ExecutionDataRepository,
|
|
688
|
-
n8n_core_1.BinaryDataService])
|
|
689
|
-
], ExecutionRepository);
|
|
690
|
-
//# sourceMappingURL=execution.repository.js.map
|