n8n 1.57.0 → 1.58.1
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/abstract-server.d.ts +1 -1
- package/dist/abstract-server.js +6 -1
- package/dist/abstract-server.js.map +1 -1
- package/dist/active-executions.d.ts +1 -1
- package/dist/active-executions.js +2 -4
- package/dist/active-executions.js.map +1 -1
- package/dist/active-workflow-manager.d.ts +2 -2
- package/dist/active-workflow-manager.js +4 -4
- package/dist/active-workflow-manager.js.map +1 -1
- package/dist/auth/auth.service.d.ts +1 -1
- package/dist/auth/jwt.d.ts +1 -1
- package/dist/auth/methods/email.d.ts +1 -1
- package/dist/auth/methods/email.js +2 -3
- package/dist/auth/methods/email.js.map +1 -1
- package/dist/auth/methods/ldap.d.ts +1 -1
- package/dist/auth/methods/ldap.js +1 -2
- package/dist/auth/methods/ldap.js.map +1 -1
- package/dist/build.tsbuildinfo +1 -1
- package/dist/collaboration/collaboration.message.d.ts +51 -0
- package/dist/collaboration/collaboration.message.js +25 -0
- package/dist/collaboration/collaboration.message.js.map +1 -0
- package/dist/collaboration/collaboration.service.d.ts +20 -0
- package/dist/collaboration/collaboration.service.js +109 -0
- package/dist/collaboration/collaboration.service.js.map +1 -0
- package/dist/collaboration/collaboration.state.d.ts +17 -0
- package/dist/collaboration/collaboration.state.js +81 -0
- package/dist/collaboration/collaboration.state.js.map +1 -0
- package/dist/collaboration/collaboration.types.d.ts +6 -0
- package/dist/{services/redis/RedisServiceCommands.js → collaboration/collaboration.types.js} +1 -1
- package/dist/collaboration/collaboration.types.js.map +1 -0
- package/dist/commands/audit.js +2 -2
- package/dist/commands/audit.js.map +1 -1
- package/dist/commands/base-command.d.ts +1 -1
- package/dist/commands/base-command.js +7 -7
- package/dist/commands/base-command.js.map +1 -1
- package/dist/commands/db/revert.js +2 -4
- package/dist/commands/db/revert.js.map +1 -1
- package/dist/commands/{executeBatch.d.ts → execute-batch.d.ts} +3 -2
- package/dist/commands/{executeBatch.js → execute-batch.js} +4 -4
- package/dist/commands/execute-batch.js.map +1 -0
- package/dist/commands/import/credentials.js +4 -4
- package/dist/commands/ldap/reset.js +1 -2
- package/dist/commands/ldap/reset.js.map +1 -1
- package/dist/commands/start.js +2 -4
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/user-management/reset.d.ts +1 -1
- package/dist/commands/user-management/reset.js +2 -2
- package/dist/commands/webhook.js +1 -2
- package/dist/commands/webhook.js.map +1 -1
- package/dist/commands/worker.d.ts +1 -1
- package/dist/commands/worker.js +8 -5
- package/dist/commands/worker.js.map +1 -1
- package/dist/concurrency/concurrency-control.service.d.ts +1 -1
- package/dist/concurrency/concurrency-queue.d.ts +1 -1
- package/dist/concurrency/concurrency-queue.js +2 -2
- package/dist/concurrency/concurrency-queue.js.map +1 -1
- package/dist/config/index.js +1 -2
- package/dist/config/index.js.map +1 -1
- package/dist/controllers/active-workflows.controller.d.ts +1 -1
- package/dist/controllers/active-workflows.controller.js +2 -2
- package/dist/controllers/active-workflows.controller.js.map +1 -1
- package/dist/controllers/ai-assistant.controller.d.ts +8 -4
- package/dist/controllers/ai-assistant.controller.js +17 -10
- package/dist/controllers/ai-assistant.controller.js.map +1 -1
- package/dist/controllers/annotation-tags.controller.d.ts +10 -0
- package/dist/controllers/annotation-tags.controller.js +74 -0
- package/dist/controllers/annotation-tags.controller.js.map +1 -0
- package/dist/controllers/auth.controller.d.ts +1 -1
- package/dist/controllers/auth.controller.js +5 -6
- package/dist/controllers/auth.controller.js.map +1 -1
- package/dist/controllers/community-packages.controller.d.ts +1 -1
- package/dist/controllers/community-packages.controller.js +2 -2
- package/dist/controllers/community-packages.controller.js.map +1 -1
- package/dist/controllers/dynamic-node-parameters.controller.d.ts +1 -1
- package/dist/controllers/dynamic-node-parameters.controller.js +2 -2
- package/dist/controllers/dynamic-node-parameters.controller.js.map +1 -1
- package/dist/controllers/invitation.controller.d.ts +1 -1
- package/dist/controllers/invitation.controller.js +1 -1
- package/dist/controllers/invitation.controller.js.map +1 -1
- package/dist/controllers/me.controller.d.ts +2 -2
- package/dist/controllers/me.controller.js +2 -2
- package/dist/controllers/me.controller.js.map +1 -1
- package/dist/controllers/oauth/abstract-oauth.controller.d.ts +1 -1
- package/dist/controllers/oauth/oauth1-credential.controller.js +1 -2
- package/dist/controllers/oauth/oauth1-credential.controller.js.map +1 -1
- package/dist/controllers/oauth/oauth2-credential.controller.js +8 -9
- package/dist/controllers/oauth/oauth2-credential.controller.js.map +1 -1
- package/dist/controllers/owner.controller.d.ts +1 -1
- package/dist/controllers/password-reset.controller.d.ts +1 -3
- package/dist/controllers/password-reset.controller.js +9 -16
- package/dist/controllers/password-reset.controller.js.map +1 -1
- package/dist/controllers/survey-answers.dto.js +1 -1
- package/dist/controllers/survey-answers.dto.js.map +1 -1
- package/dist/controllers/users.controller.d.ts +1 -1
- package/dist/controllers/users.controller.js +4 -4
- package/dist/controllers/users.controller.js.map +1 -1
- package/dist/controllers/workflow-statistics.controller.d.ts +1 -1
- package/dist/crash-journal.js +1 -1
- package/dist/crash-journal.js.map +1 -1
- package/dist/credential-types.js +2 -4
- package/dist/credential-types.js.map +1 -1
- package/dist/credentials/credentials.controller.js +4 -5
- package/dist/credentials/credentials.controller.js.map +1 -1
- package/dist/credentials/credentials.service.d.ts +2 -2
- package/dist/credentials/credentials.service.ee.d.ts +1 -1
- package/dist/credentials/credentials.service.ee.js +1 -1
- package/dist/credentials/credentials.service.ee.js.map +1 -1
- package/dist/credentials/credentials.service.js +16 -19
- package/dist/credentials/credentials.service.js.map +1 -1
- package/dist/credentials-helper.js +8 -12
- package/dist/credentials-helper.js.map +1 -1
- package/dist/credentials-overwrites.d.ts +1 -1
- package/dist/databases/config.d.ts +2 -0
- package/dist/databases/config.js +7 -2
- package/dist/databases/config.js.map +1 -1
- package/dist/databases/dsl/{Column.js → column.js} +3 -3
- package/dist/databases/dsl/column.js.map +1 -0
- package/dist/databases/dsl/index.d.ts +3 -3
- package/dist/databases/dsl/index.js +14 -14
- package/dist/databases/dsl/{Indices.js → indices.js} +3 -5
- package/dist/databases/dsl/indices.js.map +1 -0
- package/dist/databases/dsl/{Table.d.ts → table.d.ts} +1 -1
- package/dist/databases/dsl/{Table.js → table.js} +3 -3
- package/dist/databases/dsl/{Table.js.map → table.js.map} +1 -1
- package/dist/databases/entities/abstract-entity.d.ts +1 -1
- package/dist/databases/entities/annotation-tag-entity.d.ts +8 -0
- package/dist/databases/entities/annotation-tag-entity.js +37 -0
- package/dist/databases/entities/annotation-tag-entity.js.map +1 -0
- package/dist/databases/entities/annotation-tag-mapping.d.ts +8 -0
- package/dist/databases/entities/annotation-tag-mapping.js +38 -0
- package/dist/databases/entities/annotation-tag-mapping.js.map +1 -0
- package/dist/databases/entities/auth-identity.d.ts +1 -1
- package/dist/databases/entities/auth-identity.js +3 -3
- package/dist/databases/entities/auth-user.d.ts +1 -1
- package/dist/databases/entities/auth-user.js +2 -2
- package/dist/databases/entities/credentials-entity.d.ts +1 -1
- package/dist/databases/entities/execution-annotation.d.ts +13 -0
- package/dist/databases/entities/execution-annotation.js +64 -0
- package/dist/databases/entities/execution-annotation.js.map +1 -0
- package/dist/databases/entities/execution-entity.d.ts +2 -0
- package/dist/databases/entities/execution-entity.js +4 -0
- package/dist/databases/entities/execution-entity.js.map +1 -1
- package/dist/databases/entities/index.d.ts +8 -2
- package/dist/databases/entities/index.js +10 -4
- package/dist/databases/entities/index.js.map +1 -1
- package/dist/databases/entities/project-relation.d.ts +1 -1
- package/dist/databases/entities/project-relation.js +2 -2
- package/dist/databases/entities/{User.d.ts → user.d.ts} +2 -2
- package/dist/databases/entities/{User.js → user.js} +3 -5
- package/dist/databases/entities/user.js.map +1 -0
- package/dist/databases/entities/{Variables.js → variables.js} +1 -1
- package/dist/databases/entities/{Variables.js.map → variables.js.map} +1 -1
- package/dist/databases/entities/workflow-entity.d.ts +1 -1
- package/dist/databases/migrations/common/1630330987096-UpdateWorkflowCredentials.js +3 -6
- package/dist/databases/migrations/common/1630330987096-UpdateWorkflowCredentials.js.map +1 -1
- package/dist/databases/migrations/common/1675940580449-PurgeInvalidWorkflowConnections.js +1 -2
- package/dist/databases/migrations/common/1675940580449-PurgeInvalidWorkflowConnections.js.map +1 -1
- package/dist/databases/migrations/common/1700571993961-AddGlobalAdminRole.js +2 -3
- package/dist/databases/migrations/common/1700571993961-AddGlobalAdminRole.js.map +1 -1
- package/dist/databases/migrations/common/1724753530828-CreateExecutionAnnotationTables.d.ts +5 -0
- package/dist/databases/migrations/common/1724753530828-CreateExecutionAnnotationTables.js +42 -0
- package/dist/databases/migrations/common/1724753530828-CreateExecutionAnnotationTables.js.map +1 -0
- package/dist/databases/migrations/mysqldb/1690000000001-MigrateIntegerKeysToString.js +1 -1
- package/dist/databases/migrations/mysqldb/1690000000001-MigrateIntegerKeysToString.js.map +1 -1
- package/dist/databases/migrations/mysqldb/index.js +2 -0
- package/dist/databases/migrations/mysqldb/index.js.map +1 -1
- package/dist/databases/migrations/postgresdb/index.js +2 -0
- package/dist/databases/migrations/postgresdb/index.js.map +1 -1
- package/dist/databases/migrations/sqlite/index.js +2 -0
- package/dist/databases/migrations/sqlite/index.js.map +1 -1
- package/dist/databases/repositories/annotation-tag-mapping.repository.d.ts +6 -0
- package/dist/databases/repositories/annotation-tag-mapping.repository.js +36 -0
- package/dist/databases/repositories/annotation-tag-mapping.repository.js.map +1 -0
- package/dist/databases/repositories/annotation-tag.repository.d.ts +5 -0
- package/dist/databases/repositories/annotation-tag.repository.js +26 -0
- package/dist/databases/repositories/annotation-tag.repository.js.map +1 -0
- package/dist/databases/repositories/credentials.repository.d.ts +1 -1
- package/dist/databases/repositories/credentials.repository.js +4 -4
- package/dist/databases/repositories/credentials.repository.js.map +1 -1
- package/dist/databases/repositories/execution-annotation.repository.d.ts +5 -0
- package/dist/databases/repositories/execution-annotation.repository.js +26 -0
- package/dist/databases/repositories/execution-annotation.repository.js.map +1 -0
- package/dist/databases/repositories/execution.repository.d.ts +9 -2
- package/dist/databases/repositories/execution.repository.js +132 -54
- package/dist/databases/repositories/execution.repository.js.map +1 -1
- package/dist/databases/repositories/installed-packages.repository.js +2 -2
- package/dist/databases/repositories/installed-packages.repository.js.map +1 -1
- package/dist/databases/repositories/project-relation.repository.js +1 -2
- package/dist/databases/repositories/project-relation.repository.js.map +1 -1
- package/dist/databases/repositories/project.repository.js +2 -2
- package/dist/databases/repositories/project.repository.js.map +1 -1
- package/dist/databases/repositories/settings.repository.js +1 -2
- package/dist/databases/repositories/settings.repository.js.map +1 -1
- package/dist/databases/repositories/shared-credentials.repository.d.ts +1 -1
- package/dist/databases/repositories/shared-credentials.repository.js +4 -5
- package/dist/databases/repositories/shared-credentials.repository.js.map +1 -1
- package/dist/databases/repositories/shared-workflow.repository.d.ts +1 -1
- package/dist/databases/repositories/shared-workflow.repository.js +5 -6
- package/dist/databases/repositories/shared-workflow.repository.js.map +1 -1
- package/dist/databases/repositories/tag.repository.js +1 -2
- package/dist/databases/repositories/tag.repository.js.map +1 -1
- package/dist/databases/repositories/user.repository.d.ts +1 -1
- package/dist/databases/repositories/user.repository.js +5 -5
- package/dist/databases/repositories/user.repository.js.map +1 -1
- package/dist/databases/repositories/variables.repository.d.ts +1 -1
- package/dist/databases/repositories/variables.repository.js +2 -2
- package/dist/databases/repositories/workflow-statistics.repository.d.ts +1 -1
- package/dist/databases/repositories/workflow-statistics.repository.js +1 -1
- package/dist/databases/repositories/workflow-statistics.repository.js.map +1 -1
- package/dist/databases/repositories/workflow.repository.d.ts +1 -1
- package/dist/databases/repositories/workflow.repository.js +13 -14
- package/dist/databases/repositories/workflow.repository.js.map +1 -1
- package/dist/databases/subscribers/user-subscriber.d.ts +1 -1
- package/dist/databases/subscribers/user-subscriber.js +3 -3
- package/dist/databases/utils/generators.d.ts +1 -1
- package/dist/databases/utils/migration-helpers.js +3 -3
- package/dist/databases/utils/migration-helpers.js.map +1 -1
- package/dist/databases/utils/transformers.js +1 -1
- package/dist/databases/utils/transformers.js.map +1 -1
- package/dist/{Db.js → db.js} +16 -3
- package/dist/db.js.map +1 -0
- package/dist/decorators/licensed.d.ts +1 -1
- package/dist/decorators/on-shutdown.js +1 -1
- package/dist/decorators/on-shutdown.js.map +1 -1
- package/dist/decorators/redactable.js +1 -2
- package/dist/decorators/redactable.js.map +1 -1
- package/dist/decorators/route.js +3 -4
- package/dist/decorators/route.js.map +1 -1
- package/dist/decorators/types.d.ts +1 -1
- package/dist/environments/source-control/source-control-export.service.ee.js +2 -2
- package/dist/environments/source-control/source-control-export.service.ee.js.map +1 -1
- package/dist/environments/source-control/source-control-git.service.ee.d.ts +1 -1
- package/dist/environments/source-control/source-control-git.service.ee.js +4 -5
- package/dist/environments/source-control/source-control-git.service.ee.js.map +1 -1
- package/dist/environments/source-control/source-control-helper.ee.js +4 -5
- package/dist/environments/source-control/source-control-helper.ee.js.map +1 -1
- package/dist/environments/source-control/source-control-import.service.ee.d.ts +1 -1
- package/dist/environments/source-control/source-control-import.service.ee.js +13 -15
- package/dist/environments/source-control/source-control-import.service.ee.js.map +1 -1
- package/dist/environments/source-control/source-control-preferences.service.ee.js +5 -5
- package/dist/environments/source-control/source-control-preferences.service.ee.js.map +1 -1
- package/dist/environments/source-control/source-control.controller.ee.d.ts +3 -3
- package/dist/environments/source-control/source-control.controller.ee.js +2 -4
- package/dist/environments/source-control/source-control.controller.ee.js.map +1 -1
- package/dist/environments/source-control/source-control.service.ee.d.ts +2 -2
- package/dist/environments/source-control/source-control.service.ee.js +23 -33
- package/dist/environments/source-control/source-control.service.ee.js.map +1 -1
- package/dist/environments/source-control/types/source-control-preferences.js +6 -7
- package/dist/environments/source-control/types/source-control-preferences.js.map +1 -1
- package/dist/environments/variables/variables.controller.ee.d.ts +4 -4
- package/dist/environments/variables/variables.service.ee.d.ts +1 -1
- package/dist/environments/variables/variables.service.ee.js +1 -2
- package/dist/environments/variables/variables.service.ee.js.map +1 -1
- package/dist/error-reporting.js +6 -4
- package/dist/error-reporting.js.map +1 -1
- package/dist/errors/response-errors/webhook-not-found.error.js +1 -1
- package/dist/errors/response-errors/webhook-not-found.error.js.map +1 -1
- package/dist/errors/workflow-missing-id.error.d.ts +1 -1
- package/dist/eventbus/{eventBus.controller.js → event-bus.controller.js} +1 -1
- package/dist/eventbus/event-bus.controller.js.map +1 -0
- package/dist/eventbus/event-message-classes/abstract-event-message.js +4 -5
- package/dist/eventbus/event-message-classes/abstract-event-message.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-confirm.js +1 -2
- package/dist/eventbus/event-message-classes/event-message-confirm.js.map +1 -1
- package/dist/eventbus/event-message-classes/event-message-workflow.d.ts +1 -1
- package/dist/eventbus/message-event-bus/message-event-bus.js +19 -29
- package/dist/eventbus/message-event-bus/message-event-bus.js.map +1 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.js +5 -8
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-sentry.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.js +10 -11
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-syslog.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.js +6 -9
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination-webhook.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js +5 -6
- package/dist/eventbus/message-event-bus-destination/message-event-bus-destination.ee.js.map +1 -1
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer-worker.js +9 -10
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer-worker.js.map +1 -1
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js +6 -8
- package/dist/eventbus/message-event-bus-writer/message-event-bus-log-writer.js.map +1 -1
- package/dist/events/event.service.d.ts +1 -1
- package/dist/events/event.service.js +2 -2
- package/dist/events/event.service.js.map +1 -1
- package/dist/events/log-streaming-event-relay.js +8 -11
- package/dist/events/log-streaming-event-relay.js.map +1 -1
- package/dist/events/relay-event-map.d.ts +2 -2
- package/dist/events/telemetry-event-relay.js +18 -20
- package/dist/events/telemetry-event-relay.js.map +1 -1
- package/dist/execution-lifecycle-hooks/restore-binary-data-id.js +1 -2
- package/dist/execution-lifecycle-hooks/restore-binary-data-id.js.map +1 -1
- package/dist/execution-lifecycle-hooks/shared/shared-hook-functions.d.ts +1 -1
- package/dist/execution-lifecycle-hooks/shared/shared-hook-functions.js +4 -6
- package/dist/execution-lifecycle-hooks/shared/shared-hook-functions.js.map +1 -1
- package/dist/execution-lifecycle-hooks/to-save-settings.js +2 -3
- package/dist/execution-lifecycle-hooks/to-save-settings.js.map +1 -1
- package/dist/executions/execution-recovery.service.d.ts +1 -1
- package/dist/executions/execution-recovery.service.js +7 -9
- package/dist/executions/execution-recovery.service.js.map +1 -1
- package/dist/executions/execution.service.d.ts +18 -4
- package/dist/executions/execution.service.ee.d.ts +1 -1
- package/dist/executions/execution.service.js +31 -7
- package/dist/executions/execution.service.js.map +1 -1
- package/dist/executions/execution.types.d.ts +8 -1
- package/dist/executions/executions.controller.d.ts +2 -1
- package/dist/executions/executions.controller.js +22 -1
- package/dist/executions/executions.controller.js.map +1 -1
- package/dist/executions/validation.d.ts +2 -0
- package/dist/executions/validation.js +26 -0
- package/dist/executions/validation.js.map +1 -0
- package/dist/external-secrets/external-secrets-manager.ee.d.ts +1 -1
- package/dist/external-secrets/external-secrets-manager.ee.js +21 -35
- package/dist/external-secrets/external-secrets-manager.ee.js.map +1 -1
- package/dist/external-secrets/external-secrets-providers.ee.d.ts +1 -1
- package/dist/external-secrets/external-secrets-providers.ee.js +1 -2
- package/dist/external-secrets/external-secrets-providers.ee.js.map +1 -1
- package/dist/external-secrets/external-secrets.controller.ee.d.ts +1 -1
- package/dist/external-secrets/external-secrets.service.ee.d.ts +2 -2
- package/dist/external-secrets/external-secrets.service.ee.js +2 -3
- package/dist/external-secrets/external-secrets.service.ee.js.map +1 -1
- package/dist/external-secrets/providers/aws-secrets/aws-secrets-manager.d.ts +1 -1
- package/dist/external-secrets/providers/aws-secrets/types.d.ts +1 -1
- package/dist/external-secrets/providers/azure-key-vault/azure-key-vault.d.ts +1 -1
- package/dist/external-secrets/providers/azure-key-vault/types.d.ts +1 -1
- package/dist/external-secrets/providers/gcp-secrets-manager/gcp-secrets-manager.d.ts +1 -1
- package/dist/external-secrets/providers/gcp-secrets-manager/gcp-secrets-manager.js +4 -6
- package/dist/external-secrets/providers/gcp-secrets-manager/gcp-secrets-manager.js.map +1 -1
- package/dist/external-secrets/providers/gcp-secrets-manager/types.d.ts +1 -1
- package/dist/external-secrets/providers/infisical.d.ts +1 -1
- package/dist/external-secrets/providers/vault.d.ts +2 -2
- package/dist/external-secrets/providers/vault.js +2 -2
- package/dist/generic-helpers.d.ts +3 -2
- package/dist/generic-helpers.js.map +1 -1
- package/dist/{Interfaces.d.ts → interfaces.d.ts} +26 -4
- package/dist/{Interfaces.js → interfaces.js} +1 -1
- package/dist/interfaces.js.map +1 -0
- package/dist/ldap/helpers.ee.d.ts +1 -1
- package/dist/ldap/helpers.ee.js +9 -10
- package/dist/ldap/helpers.ee.js.map +1 -1
- package/dist/license/license.controller.js +1 -2
- package/dist/license/license.controller.js.map +1 -1
- package/dist/license/license.service.d.ts +1 -1
- package/dist/license/license.service.js +2 -4
- package/dist/license/license.service.js.map +1 -1
- package/dist/license.d.ts +1 -1
- package/dist/license.js +21 -27
- package/dist/license.js.map +1 -1
- package/dist/load-nodes-and-credentials.d.ts +1 -0
- package/dist/load-nodes-and-credentials.js +16 -3
- package/dist/load-nodes-and-credentials.js.map +1 -1
- package/dist/metrics/prometheus-metrics.service.js +10 -12
- package/dist/metrics/prometheus-metrics.service.js.map +1 -1
- package/dist/mfa/mfa.service.js +1 -1
- package/dist/mfa/mfa.service.js.map +1 -1
- package/dist/mfa/totp.service.js +1 -2
- package/dist/mfa/totp.service.js.map +1 -1
- package/dist/middlewares/body-parser.js +2 -2
- package/dist/middlewares/body-parser.js.map +1 -1
- package/dist/node-types.js +5 -1
- package/dist/node-types.js.map +1 -1
- package/dist/permissions/check-access.d.ts +1 -1
- package/dist/permissions/global-roles.js +10 -0
- package/dist/permissions/global-roles.js.map +1 -1
- package/dist/posthog/index.d.ts +1 -1
- package/dist/posthog/index.js +1 -2
- package/dist/posthog/index.js.map +1 -1
- package/dist/{PublicApi → public-api}/index.js +2 -3
- package/dist/public-api/index.js.map +1 -0
- package/dist/public-api/types.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/audit/audit.handler.d.ts +1 -1
- package/dist/{PublicApi → public-api}/v1/handlers/audit/audit.handler.js +2 -3
- package/dist/public-api/v1/handlers/audit/audit.handler.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.handler.js +2 -2
- package/dist/public-api/v1/handlers/credentials/credentials.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/credentials/credentials.middleware.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.service.d.ts +2 -2
- package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.service.js +9 -11
- package/dist/public-api/v1/handlers/credentials/credentials.service.js.map +1 -0
- package/dist/public-api/v1/handlers/executions/executions.handler.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/projects/projects.handler.d.ts +1 -1
- package/dist/public-api/v1/handlers/projects/projects.handler.js.map +1 -0
- package/dist/{PublicApi/v1/handlers/sourceControl/sourceControl.handler.js → public-api/v1/handlers/source-control/source-control.handler.js} +2 -3
- package/dist/public-api/v1/handlers/source-control/source-control.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/tags/tags.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/users/users.handler.ee.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/users/users.service.ee.d.ts +1 -1
- package/dist/{PublicApi → public-api}/v1/handlers/users/users.service.ee.js +3 -3
- package/dist/public-api/v1/handlers/users/users.service.ee.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/variables/variables.handler.d.ts +1 -1
- package/dist/public-api/v1/handlers/variables/variables.handler.js.map +1 -0
- package/dist/public-api/v1/handlers/workflows/workflows.handler.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/handlers/workflows/workflows.service.d.ts +1 -1
- package/dist/{PublicApi → public-api}/v1/handlers/workflows/workflows.service.js +1 -1
- package/dist/public-api/v1/handlers/workflows/workflows.service.js.map +1 -0
- package/dist/{PublicApi → public-api}/v1/openapi.yml +1 -1
- package/dist/{PublicApi → public-api}/v1/shared/middlewares/global.middleware.d.ts +1 -1
- package/dist/public-api/v1/shared/middlewares/global.middleware.js.map +1 -0
- package/dist/public-api/v1/shared/services/pagination.service.js.map +1 -0
- package/dist/push/abstract.push.d.ts +12 -3
- package/dist/push/abstract.push.js +18 -3
- package/dist/push/abstract.push.js.map +1 -1
- package/dist/push/index.d.ts +8 -4
- package/dist/push/index.js +11 -5
- package/dist/push/index.js.map +1 -1
- package/dist/push/sse.push.d.ts +2 -1
- package/dist/push/sse.push.js +3 -4
- package/dist/push/sse.push.js.map +1 -1
- package/dist/push/types.d.ts +6 -0
- package/dist/push/websocket.push.d.ts +2 -1
- package/dist/push/websocket.push.js +25 -2
- package/dist/push/websocket.push.js.map +1 -1
- package/dist/requests.d.ts +20 -4
- package/dist/response-helper.js +1 -2
- package/dist/response-helper.js.map +1 -1
- package/dist/scaling/job-processor.js +4 -6
- package/dist/scaling/job-processor.js.map +1 -1
- package/dist/scaling/scaling.service.js +1 -1
- package/dist/scaling/scaling.service.js.map +1 -1
- package/dist/secrets-helpers.js +2 -4
- package/dist/secrets-helpers.js.map +1 -1
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js +1 -1
- package/dist/security-audit/risk-reporters/credentials-risk-reporter.js.map +1 -1
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js +3 -4
- package/dist/security-audit/risk-reporters/instance-risk-reporter.js.map +1 -1
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.d.ts +1 -1
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.js +2 -2
- package/dist/security-audit/risk-reporters/nodes-risk-reporter.js.map +1 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.js +16 -6
- package/dist/server.js.map +1 -1
- package/dist/services/{activeWorkflows.service.d.ts → active-workflows.service.d.ts} +1 -1
- package/dist/services/{activeWorkflows.service.js → active-workflows.service.js} +1 -1
- package/dist/services/active-workflows.service.js.map +1 -0
- package/dist/services/{aiAsisstant.service.js → ai-assistant.service.js} +1 -1
- package/dist/services/ai-assistant.service.js.map +1 -0
- package/dist/services/annotation-tag.service.d.ts +20 -0
- package/dist/services/annotation-tag.service.js +55 -0
- package/dist/services/annotation-tag.service.js.map +1 -0
- package/dist/services/cache/cache.service.d.ts +1 -1
- package/dist/services/cache/cache.service.js +9 -10
- package/dist/services/cache/cache.service.js.map +1 -1
- package/dist/services/cache/redis.cache-manager.js +4 -5
- package/dist/services/cache/redis.cache-manager.js.map +1 -1
- package/dist/services/{communityPackages.service.d.ts → community-packages.service.d.ts} +1 -1
- package/dist/services/{communityPackages.service.js → community-packages.service.js} +2 -2
- package/dist/services/community-packages.service.js.map +1 -0
- package/dist/services/credentials-tester.service.d.ts +1 -1
- package/dist/services/credentials-tester.service.js +8 -12
- package/dist/services/credentials-tester.service.js.map +1 -1
- package/dist/services/cta.service.d.ts +1 -1
- package/dist/services/curl.service.js +8 -10
- package/dist/services/curl.service.js.map +1 -1
- package/dist/services/{dynamicNodeParameters.service.js → dynamic-node-parameters.service.js} +5 -7
- package/dist/services/dynamic-node-parameters.service.js.map +1 -0
- package/dist/services/{executionMetadata.service.js → execution-metadata.service.js} +1 -1
- package/dist/services/execution-metadata.service.js.map +1 -0
- package/dist/services/frontend.service.js +6 -8
- package/dist/services/frontend.service.js.map +1 -1
- package/dist/services/hooks.service.d.ts +2 -2
- package/dist/services/import.service.js +4 -5
- package/dist/services/import.service.js.map +1 -1
- package/dist/services/orchestration/helpers.d.ts +1 -1
- package/dist/services/orchestration/helpers.js +2 -2
- package/dist/services/orchestration/helpers.js.map +1 -1
- package/dist/services/orchestration/main/handle-command-message-main.d.ts +1 -0
- package/dist/services/orchestration/main/{handleCommandMessageMain.js → handle-command-message-main.js} +8 -10
- package/dist/services/orchestration/main/handle-command-message-main.js.map +1 -0
- package/dist/services/orchestration/main/{handleWorkerResponseMessageMain.d.ts → handle-worker-response-message-main.d.ts} +4 -4
- package/dist/services/orchestration/main/{handleWorkerResponseMessageMain.js → handle-worker-response-message-main.js} +3 -3
- package/dist/services/orchestration/main/handle-worker-response-message-main.js.map +1 -0
- package/dist/services/orchestration/main/{MultiMainSetup.ee.d.ts → multi-main-setup.ee.d.ts} +2 -2
- package/dist/services/orchestration/main/{MultiMainSetup.ee.js → multi-main-setup.ee.js} +5 -5
- package/dist/services/orchestration/main/multi-main-setup.ee.js.map +1 -0
- package/dist/services/orchestration/main/orchestration.handler.main.service.js +7 -7
- package/dist/services/orchestration/main/orchestration.handler.main.service.js.map +1 -1
- package/dist/services/orchestration/main/types.d.ts +1 -1
- package/dist/services/orchestration/pubsub/pubsub-message-map.d.ts +1 -1
- package/dist/services/orchestration/webhook/handle-command-message-webhook.d.ts +1 -0
- package/dist/services/orchestration/webhook/{handleCommandMessageWebhook.js → handle-command-message-webhook.js} +3 -3
- package/dist/services/orchestration/webhook/handle-command-message-webhook.js.map +1 -0
- package/dist/services/orchestration/webhook/orchestration.handler.webhook.service.js +4 -4
- package/dist/services/orchestration/webhook/orchestration.handler.webhook.service.js.map +1 -1
- package/dist/services/orchestration/worker/{handleCommandMessageWorker.js → handle-command-message-worker.js} +12 -15
- package/dist/services/orchestration/worker/handle-command-message-worker.js.map +1 -0
- package/dist/services/orchestration/worker/orchestration.handler.worker.service.js +2 -2
- package/dist/services/orchestration/worker/orchestration.handler.worker.service.js.map +1 -1
- package/dist/services/orchestration/worker/types.d.ts +1 -1
- package/dist/services/orchestration.handler.base.service.d.ts +1 -1
- package/dist/services/orchestration.handler.base.service.js +1 -2
- package/dist/services/orchestration.handler.base.service.js.map +1 -1
- package/dist/services/orchestration.service.d.ts +3 -3
- package/dist/services/orchestration.service.js +2 -2
- package/dist/services/orchestration.service.js.map +1 -1
- package/dist/services/ownership.service.d.ts +1 -1
- package/dist/services/ownership.service.js +1 -2
- package/dist/services/ownership.service.js.map +1 -1
- package/dist/services/project.service.d.ts +1 -1
- package/dist/services/project.service.js +2 -2
- package/dist/services/project.service.js.map +1 -1
- package/dist/services/redis/redis-client.service.js +1 -1
- package/dist/services/redis/redis-client.service.js.map +1 -1
- package/dist/services/redis/{RedisConstants.js → redis-constants.js} +1 -1
- package/dist/services/redis/redis-constants.js.map +1 -0
- package/dist/services/redis/{RedisServiceBaseClasses.js → redis-service-base-classes.js} +1 -1
- package/dist/services/redis/redis-service-base-classes.js.map +1 -0
- package/dist/services/redis/{RedisServiceCommands.d.ts → redis-service-commands.d.ts} +1 -1
- package/dist/services/redis/redis-service-commands.js +3 -0
- package/dist/services/redis/redis-service-commands.js.map +1 -0
- package/dist/services/redis/{RedisServicePubSubPublisher.d.ts → redis-service-pub-sub-publisher.d.ts} +2 -2
- package/dist/services/redis/{RedisServicePubSubPublisher.js → redis-service-pub-sub-publisher.js} +11 -16
- package/dist/services/redis/redis-service-pub-sub-publisher.js.map +1 -0
- package/dist/services/redis/{RedisServicePubSubSubscriber.d.ts → redis-service-pub-sub-subscriber.d.ts} +1 -1
- package/dist/services/redis/{RedisServicePubSubSubscriber.js → redis-service-pub-sub-subscriber.js} +13 -16
- package/dist/services/redis/redis-service-pub-sub-subscriber.js.map +1 -0
- package/dist/services/redis.service.d.ts +2 -2
- package/dist/services/redis.service.js +4 -4
- package/dist/services/redis.service.js.map +1 -1
- package/dist/services/role.service.d.ts +1 -1
- package/dist/services/role.service.js +2 -3
- package/dist/services/role.service.js.map +1 -1
- package/dist/services/tag.service.d.ts +1 -1
- package/dist/services/tag.service.js +1 -1
- package/dist/services/tag.service.js.map +1 -1
- package/dist/services/url.service.js +1 -2
- package/dist/services/url.service.js.map +1 -1
- package/dist/services/{userOnboarding.service.d.ts → user-onboarding.service.d.ts} +1 -1
- package/dist/services/{userOnboarding.service.js → user-onboarding.service.js} +1 -1
- package/dist/services/user-onboarding.service.js.map +1 -0
- package/dist/services/user.service.d.ts +2 -2
- package/dist/services/user.service.js +6 -9
- 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 +3 -4
- package/dist/services/workflow-statistics.service.js.map +1 -1
- package/dist/sso/saml/routes/saml.controller.ee.js +5 -6
- package/dist/sso/saml/routes/saml.controller.ee.js.map +1 -1
- package/dist/sso/saml/saml-helpers.d.ts +1 -1
- package/dist/sso/saml/saml-helpers.js +2 -3
- package/dist/sso/saml/saml-helpers.js.map +1 -1
- package/dist/sso/saml/saml-validator.js +6 -6
- package/dist/sso/saml/saml-validator.js.map +1 -1
- package/dist/sso/saml/saml.service.ee.d.ts +1 -1
- package/dist/sso/saml/saml.service.ee.js +14 -16
- package/dist/sso/saml/saml.service.ee.js.map +1 -1
- package/dist/sso/saml/views/saml-connection-test-failed.js +5 -6
- package/dist/sso/saml/views/saml-connection-test-failed.js.map +1 -1
- package/dist/sso/saml/views/saml-connection-test-success.js +4 -5
- package/dist/sso/saml/views/saml-connection-test-success.js.map +1 -1
- package/dist/subworkflows/subworkflow-policy-checker.service.js +5 -4
- package/dist/subworkflows/subworkflow-policy-checker.service.js.map +1 -1
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +8 -12
- package/dist/telemetry/index.js.map +1 -1
- package/dist/{TypedEmitter.js → typed-emitter.js} +1 -1
- package/dist/typed-emitter.js.map +1 -0
- package/dist/user-management/email/{Interfaces.d.ts → interfaces.d.ts} +1 -6
- package/dist/user-management/email/{Interfaces.js → interfaces.js} +1 -1
- package/dist/user-management/email/interfaces.js.map +1 -0
- package/dist/user-management/email/node-mailer.d.ts +1 -1
- package/dist/user-management/email/node-mailer.js +14 -3
- package/dist/user-management/email/node-mailer.js.map +1 -1
- package/dist/user-management/email/templates/credentials-shared.handlebars +201 -0
- package/dist/user-management/email/templates/n8n-logo.png +0 -0
- package/dist/user-management/email/templates/password-reset-requested.handlebars +235 -0
- package/dist/user-management/email/templates/user-invited.handlebars +201 -0
- package/dist/user-management/email/templates/workflow-shared.handlebars +201 -0
- package/dist/user-management/email/user-management-mailer.d.ts +8 -5
- package/dist/user-management/email/user-management-mailer.js +26 -19
- package/dist/user-management/email/user-management-mailer.js.map +1 -1
- package/dist/user-management/permission-checker.js +1 -1
- package/dist/user-management/permission-checker.js.map +1 -1
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/dist/waiting-forms.d.ts +1 -1
- package/dist/webhooks/live-webhooks.js +5 -9
- package/dist/webhooks/live-webhooks.js.map +1 -1
- package/dist/webhooks/test-webhook-registrations.service.d.ts +1 -1
- package/dist/webhooks/test-webhooks.d.ts +1 -1
- package/dist/webhooks/test-webhooks.js +6 -10
- package/dist/webhooks/test-webhooks.js.map +1 -1
- package/dist/webhooks/waiting-webhooks.d.ts +1 -1
- package/dist/webhooks/waiting-webhooks.js +1 -1
- package/dist/webhooks/waiting-webhooks.js.map +1 -1
- package/dist/webhooks/webhook-helpers.d.ts +1 -1
- package/dist/webhooks/webhook-helpers.js +10 -11
- package/dist/webhooks/webhook-helpers.js.map +1 -1
- package/dist/webhooks/webhook-request-handler.js +2 -2
- package/dist/webhooks/webhook-request-handler.js.map +1 -1
- package/dist/webhooks/webhook.service.d.ts +1 -1
- package/dist/webhooks/webhook.service.js +1 -1
- package/dist/webhooks/webhook.service.js.map +1 -1
- package/dist/workflow-execute-additional-data.d.ts +1 -1
- package/dist/workflow-execute-additional-data.js +14 -19
- package/dist/workflow-execute-additional-data.js.map +1 -1
- package/dist/workflow-helpers.d.ts +1 -1
- package/dist/workflow-helpers.js +5 -6
- package/dist/workflow-helpers.js.map +1 -1
- package/dist/workflow-runner.d.ts +1 -1
- package/dist/workflow-runner.js +5 -6
- 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 +9 -11
- package/dist/workflows/workflow-execution.service.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.controller.ee.js +1 -2
- package/dist/workflows/workflow-history/workflow-history.controller.ee.js.map +1 -1
- package/dist/workflows/workflow-history/workflow-history.service.ee.d.ts +1 -1
- package/dist/workflows/workflow-sharing.service.d.ts +1 -1
- package/dist/workflows/workflow-static-data.service.js +1 -2
- package/dist/workflows/workflow-static-data.service.js.map +1 -1
- package/dist/workflows/workflow.request.d.ts +1 -1
- package/dist/workflows/workflow.service.d.ts +2 -2
- package/dist/workflows/workflow.service.ee.d.ts +1 -1
- package/dist/workflows/workflow.service.ee.js +7 -11
- package/dist/workflows/workflow.service.ee.js.map +1 -1
- package/dist/workflows/workflow.service.js +4 -5
- package/dist/workflows/workflow.service.js.map +1 -1
- package/dist/workflows/workflows.controller.d.ts +18 -18
- package/dist/workflows/workflows.controller.js +7 -8
- package/dist/workflows/workflows.controller.js.map +1 -1
- package/package.json +12 -11
- package/dist/Db.js.map +0 -1
- package/dist/Interfaces.js.map +0 -1
- package/dist/PublicApi/index.js.map +0 -1
- package/dist/PublicApi/types.js.map +0 -1
- package/dist/PublicApi/v1/handlers/audit/audit.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.middleware.js.map +0 -1
- package/dist/PublicApi/v1/handlers/credentials/credentials.service.js.map +0 -1
- package/dist/PublicApi/v1/handlers/executions/executions.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/projects/projects.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/sourceControl/sourceControl.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/tags/tags.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/users/users.handler.ee.js.map +0 -1
- package/dist/PublicApi/v1/handlers/users/users.service.ee.js.map +0 -1
- package/dist/PublicApi/v1/handlers/variables/variables.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/workflows/workflows.handler.js.map +0 -1
- package/dist/PublicApi/v1/handlers/workflows/workflows.service.js.map +0 -1
- package/dist/PublicApi/v1/shared/middlewares/global.middleware.js.map +0 -1
- package/dist/PublicApi/v1/shared/services/pagination.service.js.map +0 -1
- package/dist/TypedEmitter.js.map +0 -1
- package/dist/commands/executeBatch.js.map +0 -1
- package/dist/databases/dsl/Column.js.map +0 -1
- package/dist/databases/dsl/Indices.js.map +0 -1
- package/dist/databases/entities/User.js.map +0 -1
- package/dist/eventbus/eventBus.controller.js.map +0 -1
- package/dist/services/activeWorkflows.service.js.map +0 -1
- package/dist/services/aiAsisstant.service.js.map +0 -1
- package/dist/services/communityPackages.service.js.map +0 -1
- package/dist/services/dynamicNodeParameters.service.js.map +0 -1
- package/dist/services/executionMetadata.service.js.map +0 -1
- package/dist/services/orchestration/main/MultiMainSetup.ee.js.map +0 -1
- package/dist/services/orchestration/main/handleCommandMessageMain.d.ts +0 -1
- package/dist/services/orchestration/main/handleCommandMessageMain.js.map +0 -1
- package/dist/services/orchestration/main/handleWorkerResponseMessageMain.js.map +0 -1
- package/dist/services/orchestration/webhook/handleCommandMessageWebhook.d.ts +0 -1
- package/dist/services/orchestration/webhook/handleCommandMessageWebhook.js.map +0 -1
- package/dist/services/orchestration/worker/handleCommandMessageWorker.js.map +0 -1
- package/dist/services/redis/RedisConstants.js.map +0 -1
- package/dist/services/redis/RedisServiceBaseClasses.js.map +0 -1
- package/dist/services/redis/RedisServiceCommands.js.map +0 -1
- package/dist/services/redis/RedisServicePubSubPublisher.js.map +0 -1
- package/dist/services/redis/RedisServicePubSubSubscriber.js.map +0 -1
- package/dist/services/userOnboarding.service.js.map +0 -1
- package/dist/user-management/email/Interfaces.js.map +0 -1
- package/dist/user-management/email/templates/credentialsShared.html +0 -4
- package/dist/user-management/email/templates/instanceSetup.html +0 -5
- package/dist/user-management/email/templates/invite.html +0 -4
- package/dist/user-management/email/templates/passwordReset.html +0 -5
- package/dist/user-management/email/templates/workflowShared.html +0 -4
- /package/dist/databases/dsl/{Column.d.ts → column.d.ts} +0 -0
- /package/dist/databases/dsl/{Indices.d.ts → indices.d.ts} +0 -0
- /package/dist/databases/entities/{Variables.d.ts → variables.d.ts} +0 -0
- /package/dist/{Db.d.ts → db.d.ts} +0 -0
- /package/dist/eventbus/{eventBus.controller.d.ts → event-bus.controller.d.ts} +0 -0
- /package/dist/{PublicApi → public-api}/index.d.ts +0 -0
- /package/dist/{PublicApi/swaggerTheme.css → public-api/swagger-theme.css} +0 -0
- /package/dist/{PublicApi → public-api}/types.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/types.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.handler.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.middleware.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/credentials/credentials.middleware.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/executions/executions.handler.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/executions/executions.handler.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/projects/projects.handler.js +0 -0
- /package/dist/{PublicApi/v1/handlers/sourceControl/sourceControl.handler.d.ts → public-api/v1/handlers/source-control/source-control.handler.d.ts} +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/tags/tags.handler.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/tags/tags.handler.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/users/users.handler.ee.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/users/users.handler.ee.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/variables/variables.handler.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/workflows/workflows.handler.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/handlers/workflows/workflows.handler.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/shared/middlewares/global.middleware.js +0 -0
- /package/dist/{PublicApi → public-api}/v1/shared/services/pagination.service.d.ts +0 -0
- /package/dist/{PublicApi → public-api}/v1/shared/services/pagination.service.js +0 -0
- /package/dist/services/{aiAsisstant.service.d.ts → ai-assistant.service.d.ts} +0 -0
- /package/dist/services/{dynamicNodeParameters.service.d.ts → dynamic-node-parameters.service.d.ts} +0 -0
- /package/dist/services/{executionMetadata.service.d.ts → execution-metadata.service.d.ts} +0 -0
- /package/dist/services/orchestration/worker/{handleCommandMessageWorker.d.ts → handle-command-message-worker.d.ts} +0 -0
- /package/dist/services/redis/{RedisConstants.d.ts → redis-constants.d.ts} +0 -0
- /package/dist/services/redis/{RedisServiceBaseClasses.d.ts → redis-service-base-classes.d.ts} +0 -0
- /package/dist/{TypedEmitter.d.ts → typed-emitter.d.ts} +0 -0
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="und" dir="auto" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<title></title>
|
|
6
|
+
<!--[if !mso]><!-->
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<!--<![endif]-->
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
11
|
+
<style type="text/css">
|
|
12
|
+
#outlook a {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
-webkit-text-size-adjust: 100%;
|
|
20
|
+
-ms-text-size-adjust: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
table,
|
|
24
|
+
td {
|
|
25
|
+
border-collapse: collapse;
|
|
26
|
+
mso-table-lspace: 0pt;
|
|
27
|
+
mso-table-rspace: 0pt;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
img {
|
|
31
|
+
border: 0;
|
|
32
|
+
height: auto;
|
|
33
|
+
line-height: 100%;
|
|
34
|
+
outline: none;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
-ms-interpolation-mode: bicubic;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
p {
|
|
40
|
+
display: block;
|
|
41
|
+
margin: 13px 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
</style>
|
|
45
|
+
<!--[if mso]>
|
|
46
|
+
<noscript>
|
|
47
|
+
<xml>
|
|
48
|
+
<o:OfficeDocumentSettings>
|
|
49
|
+
<o:AllowPNG/>
|
|
50
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
51
|
+
</o:OfficeDocumentSettings>
|
|
52
|
+
</xml>
|
|
53
|
+
</noscript>
|
|
54
|
+
<![endif]-->
|
|
55
|
+
<!--[if lte mso 11]>
|
|
56
|
+
<style type="text/css">
|
|
57
|
+
.mj-outlook-group-fix { width:100% !important; }
|
|
58
|
+
</style>
|
|
59
|
+
<![endif]-->
|
|
60
|
+
<!--[if !mso]><!-->
|
|
61
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700" rel="stylesheet" type="text/css">
|
|
62
|
+
<style type="text/css">
|
|
63
|
+
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700);
|
|
64
|
+
|
|
65
|
+
</style>
|
|
66
|
+
<!--<![endif]-->
|
|
67
|
+
<style type="text/css">
|
|
68
|
+
@media only screen and (min-width:480px) {
|
|
69
|
+
.mj-column-per-100 {
|
|
70
|
+
width: 100% !important;
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
</style>
|
|
76
|
+
<style media="screen and (min-width:480px)">
|
|
77
|
+
.moz-text-html .mj-column-per-100 {
|
|
78
|
+
width: 100% !important;
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
</style>
|
|
83
|
+
<style type="text/css">
|
|
84
|
+
@media only screen and (max-width:479px) {
|
|
85
|
+
table.mj-full-width-mobile {
|
|
86
|
+
width: 100% !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
td.mj-full-width-mobile {
|
|
90
|
+
width: auto !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
</style>
|
|
95
|
+
</head>
|
|
96
|
+
|
|
97
|
+
<body style="word-spacing:normal;background-color:#fbfcfe;">
|
|
98
|
+
<div style="background-color:#fbfcfe;" lang="und" dir="auto">
|
|
99
|
+
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
100
|
+
<div style="margin:0px auto;max-width:600px;">
|
|
101
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
102
|
+
<tbody>
|
|
103
|
+
<tr>
|
|
104
|
+
<td style="direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
105
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
|
106
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
107
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
108
|
+
<tbody>
|
|
109
|
+
<tr>
|
|
110
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
111
|
+
<div style="font-family:Open Sans, sans-serif;font-size:24px;font-weight:400;line-height:24px;text-align:center;color:#ff6f5c;">Welcome to n8n! 🎉</div>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</tbody>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
117
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
</tbody>
|
|
121
|
+
</table>
|
|
122
|
+
</div>
|
|
123
|
+
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#FFFFFF" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
124
|
+
<div style="background:#FFFFFF;background-color:#FFFFFF;margin:0px auto;max-width:600px;">
|
|
125
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#FFFFFF;background-color:#FFFFFF;width:100%;">
|
|
126
|
+
<tbody>
|
|
127
|
+
<tr>
|
|
128
|
+
<td style="border:1px solid #ddd;direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
129
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:598px;" ><![endif]-->
|
|
130
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
131
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
132
|
+
<tbody>
|
|
133
|
+
<tr>
|
|
134
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
135
|
+
<div style="font-family:Open Sans, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:#444444;">You have been invited to join n8n at <b>{{domain}}</b> .</div>
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
<tr>
|
|
139
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
140
|
+
<div style="font-family:Open Sans, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:#444444;">To accept, please click the button below.</div>
|
|
141
|
+
</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td align="center" style="font-size:0px;padding:10px 25px;padding-top:20px;word-break:break-word;">
|
|
145
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
|
|
146
|
+
<tbody>
|
|
147
|
+
<tr>
|
|
148
|
+
<td align="center" bgcolor="#ff6f5c" role="presentation" style="border:none;border-radius:4px;cursor:auto;mso-padding-alt:10px 25px;background:#ff6f5c;" valign="middle">
|
|
149
|
+
<a href="{{inviteAcceptUrl}}" style="display:inline-block;background:#ff6f5c;color:#ffffff;font-family:Open Sans, sans-serif;font-size:18px;font-weight:600;line-height:24px;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:4px;" target="_blank"> Set up your n8n account </a>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
</tbody>
|
|
153
|
+
</table>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
</div>
|
|
159
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
160
|
+
</td>
|
|
161
|
+
</tr>
|
|
162
|
+
</tbody>
|
|
163
|
+
</table>
|
|
164
|
+
</div>
|
|
165
|
+
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
166
|
+
<div style="margin:0px auto;max-width:600px;">
|
|
167
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
168
|
+
<tbody>
|
|
169
|
+
<tr>
|
|
170
|
+
<td style="direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
171
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
|
172
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
173
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
174
|
+
<tbody>
|
|
175
|
+
<tr>
|
|
176
|
+
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
|
177
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
|
178
|
+
<tbody>
|
|
179
|
+
<tr>
|
|
180
|
+
<td style="width:70px;">
|
|
181
|
+
<img alt="" src="cid:n8n-logo" style="border:0;display:block;outline:none;text-decoration:none;height:40px;width:100%;font-size:13px;" width="70" height="40" />
|
|
182
|
+
</td>
|
|
183
|
+
</tr>
|
|
184
|
+
</tbody>
|
|
185
|
+
</table>
|
|
186
|
+
</td>
|
|
187
|
+
</tr>
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
190
|
+
</div>
|
|
191
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</tbody>
|
|
195
|
+
</table>
|
|
196
|
+
</div>
|
|
197
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
198
|
+
</div>
|
|
199
|
+
</body>
|
|
200
|
+
|
|
201
|
+
</html>
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="und" dir="auto" xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<title></title>
|
|
6
|
+
<!--[if !mso]><!-->
|
|
7
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
8
|
+
<!--<![endif]-->
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
11
|
+
<style type="text/css">
|
|
12
|
+
#outlook a {
|
|
13
|
+
padding: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
body {
|
|
17
|
+
margin: 0;
|
|
18
|
+
padding: 0;
|
|
19
|
+
-webkit-text-size-adjust: 100%;
|
|
20
|
+
-ms-text-size-adjust: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
table,
|
|
24
|
+
td {
|
|
25
|
+
border-collapse: collapse;
|
|
26
|
+
mso-table-lspace: 0pt;
|
|
27
|
+
mso-table-rspace: 0pt;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
img {
|
|
31
|
+
border: 0;
|
|
32
|
+
height: auto;
|
|
33
|
+
line-height: 100%;
|
|
34
|
+
outline: none;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
-ms-interpolation-mode: bicubic;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
p {
|
|
40
|
+
display: block;
|
|
41
|
+
margin: 13px 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
</style>
|
|
45
|
+
<!--[if mso]>
|
|
46
|
+
<noscript>
|
|
47
|
+
<xml>
|
|
48
|
+
<o:OfficeDocumentSettings>
|
|
49
|
+
<o:AllowPNG/>
|
|
50
|
+
<o:PixelsPerInch>96</o:PixelsPerInch>
|
|
51
|
+
</o:OfficeDocumentSettings>
|
|
52
|
+
</xml>
|
|
53
|
+
</noscript>
|
|
54
|
+
<![endif]-->
|
|
55
|
+
<!--[if lte mso 11]>
|
|
56
|
+
<style type="text/css">
|
|
57
|
+
.mj-outlook-group-fix { width:100% !important; }
|
|
58
|
+
</style>
|
|
59
|
+
<![endif]-->
|
|
60
|
+
<!--[if !mso]><!-->
|
|
61
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700" rel="stylesheet" type="text/css">
|
|
62
|
+
<style type="text/css">
|
|
63
|
+
@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,500,700);
|
|
64
|
+
|
|
65
|
+
</style>
|
|
66
|
+
<!--<![endif]-->
|
|
67
|
+
<style type="text/css">
|
|
68
|
+
@media only screen and (min-width:480px) {
|
|
69
|
+
.mj-column-per-100 {
|
|
70
|
+
width: 100% !important;
|
|
71
|
+
max-width: 100%;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
</style>
|
|
76
|
+
<style media="screen and (min-width:480px)">
|
|
77
|
+
.moz-text-html .mj-column-per-100 {
|
|
78
|
+
width: 100% !important;
|
|
79
|
+
max-width: 100%;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
</style>
|
|
83
|
+
<style type="text/css">
|
|
84
|
+
@media only screen and (max-width:479px) {
|
|
85
|
+
table.mj-full-width-mobile {
|
|
86
|
+
width: 100% !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
td.mj-full-width-mobile {
|
|
90
|
+
width: auto !important;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
</style>
|
|
95
|
+
</head>
|
|
96
|
+
|
|
97
|
+
<body style="word-spacing:normal;background-color:#fbfcfe;">
|
|
98
|
+
<div style="background-color:#fbfcfe;" lang="und" dir="auto">
|
|
99
|
+
<!--[if mso | IE]><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
100
|
+
<div style="margin:0px auto;max-width:600px;">
|
|
101
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
102
|
+
<tbody>
|
|
103
|
+
<tr>
|
|
104
|
+
<td style="direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
105
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
|
106
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
107
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
108
|
+
<tbody>
|
|
109
|
+
<tr>
|
|
110
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
111
|
+
<div style="font-family:Open Sans, sans-serif;font-size:24px;font-weight:400;line-height:24px;text-align:center;color:#ff6f5c;">A workflow has been shared with you</div>
|
|
112
|
+
</td>
|
|
113
|
+
</tr>
|
|
114
|
+
</tbody>
|
|
115
|
+
</table>
|
|
116
|
+
</div>
|
|
117
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
118
|
+
</td>
|
|
119
|
+
</tr>
|
|
120
|
+
</tbody>
|
|
121
|
+
</table>
|
|
122
|
+
</div>
|
|
123
|
+
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" bgcolor="#FFFFFF" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
124
|
+
<div style="background:#FFFFFF;background-color:#FFFFFF;margin:0px auto;max-width:600px;">
|
|
125
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="background:#FFFFFF;background-color:#FFFFFF;width:100%;">
|
|
126
|
+
<tbody>
|
|
127
|
+
<tr>
|
|
128
|
+
<td style="border:1px solid #ddd;direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
129
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:598px;" ><![endif]-->
|
|
130
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
131
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
132
|
+
<tbody>
|
|
133
|
+
<tr>
|
|
134
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
135
|
+
<div style="font-family:Open Sans, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:#444444;"><b>"{{ workflowName }}"</b> workflow has been shared with you.</div>
|
|
136
|
+
</td>
|
|
137
|
+
</tr>
|
|
138
|
+
<tr>
|
|
139
|
+
<td align="center" style="font-size:0px;padding:10px 0 0 0;word-break:break-word;">
|
|
140
|
+
<div style="font-family:Open Sans, sans-serif;font-size:16px;font-weight:400;line-height:24px;text-align:center;color:#444444;">To access it, please click the button below.</div>
|
|
141
|
+
</td>
|
|
142
|
+
</tr>
|
|
143
|
+
<tr>
|
|
144
|
+
<td align="center" style="font-size:0px;padding:10px 25px;padding-top:20px;word-break:break-word;">
|
|
145
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:separate;line-height:100%;">
|
|
146
|
+
<tbody>
|
|
147
|
+
<tr>
|
|
148
|
+
<td align="center" bgcolor="#ff6f5c" role="presentation" style="border:none;border-radius:4px;cursor:auto;mso-padding-alt:10px 25px;background:#ff6f5c;" valign="middle">
|
|
149
|
+
<a href="{{workflowUrl}}" style="display:inline-block;background:#ff6f5c;color:#ffffff;font-family:Open Sans, sans-serif;font-size:18px;font-weight:600;line-height:24px;margin:0;text-decoration:none;text-transform:none;padding:10px 25px;mso-padding-alt:0px;border-radius:4px;" target="_blank"> Open Workflow </a>
|
|
150
|
+
</td>
|
|
151
|
+
</tr>
|
|
152
|
+
</tbody>
|
|
153
|
+
</table>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
</tbody>
|
|
157
|
+
</table>
|
|
158
|
+
</div>
|
|
159
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
160
|
+
</td>
|
|
161
|
+
</tr>
|
|
162
|
+
</tbody>
|
|
163
|
+
</table>
|
|
164
|
+
</div>
|
|
165
|
+
<!--[if mso | IE]></td></tr></table><table align="center" border="0" cellpadding="0" cellspacing="0" class="" role="presentation" style="width:600px;" width="600" ><tr><td style="line-height:0px;font-size:0px;mso-line-height-rule:exactly;"><![endif]-->
|
|
166
|
+
<div style="margin:0px auto;max-width:600px;">
|
|
167
|
+
<table align="center" border="0" cellpadding="0" cellspacing="0" role="presentation" style="width:100%;">
|
|
168
|
+
<tbody>
|
|
169
|
+
<tr>
|
|
170
|
+
<td style="direction:ltr;font-size:0px;padding:20px 0px;text-align:center;">
|
|
171
|
+
<!--[if mso | IE]><table role="presentation" border="0" cellpadding="0" cellspacing="0"><tr><td class="" style="vertical-align:top;width:600px;" ><![endif]-->
|
|
172
|
+
<div class="mj-column-per-100 mj-outlook-group-fix" style="font-size:0px;text-align:left;direction:ltr;display:inline-block;vertical-align:top;width:100%;">
|
|
173
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="vertical-align:top;" width="100%">
|
|
174
|
+
<tbody>
|
|
175
|
+
<tr>
|
|
176
|
+
<td align="center" style="font-size:0px;padding:10px 25px;word-break:break-word;">
|
|
177
|
+
<table border="0" cellpadding="0" cellspacing="0" role="presentation" style="border-collapse:collapse;border-spacing:0px;">
|
|
178
|
+
<tbody>
|
|
179
|
+
<tr>
|
|
180
|
+
<td style="width:70px;">
|
|
181
|
+
<img alt="" src="cid:n8n-logo" style="border:0;display:block;outline:none;text-decoration:none;height:40px;width:100%;font-size:13px;" width="70" height="40" />
|
|
182
|
+
</td>
|
|
183
|
+
</tr>
|
|
184
|
+
</tbody>
|
|
185
|
+
</table>
|
|
186
|
+
</td>
|
|
187
|
+
</tr>
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
190
|
+
</div>
|
|
191
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
192
|
+
</td>
|
|
193
|
+
</tr>
|
|
194
|
+
</tbody>
|
|
195
|
+
</table>
|
|
196
|
+
</div>
|
|
197
|
+
<!--[if mso | IE]></td></tr></table><![endif]-->
|
|
198
|
+
</div>
|
|
199
|
+
</body>
|
|
200
|
+
|
|
201
|
+
</html>
|
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
import { GlobalConfig } from '@n8n/config';
|
|
2
|
-
import type { User } from '../../databases/entities/
|
|
2
|
+
import type { User } from '../../databases/entities/user';
|
|
3
3
|
import type { WorkflowEntity } from '../../databases/entities/workflow-entity';
|
|
4
4
|
import { UserRepository } from '../../databases/repositories/user.repository';
|
|
5
|
+
import { EventService } from '../../events/event.service';
|
|
5
6
|
import { Logger } from '../../logger';
|
|
6
7
|
import { UrlService } from '../../services/url.service';
|
|
7
|
-
import type { InviteEmailData, PasswordResetData, SendEmailResult } from './
|
|
8
|
+
import type { InviteEmailData, PasswordResetData, SendEmailResult } from './interfaces';
|
|
8
9
|
import { NodeMailer } from './node-mailer';
|
|
9
10
|
type Template = HandlebarsTemplateDelegate<unknown>;
|
|
10
|
-
type TemplateName = '
|
|
11
|
+
type TemplateName = 'user-invited' | 'password-reset-requested' | 'workflow-shared' | 'credentials-shared';
|
|
11
12
|
export declare class UserManagementMailer {
|
|
12
13
|
private readonly logger;
|
|
13
14
|
private readonly userRepository;
|
|
14
15
|
private readonly urlService;
|
|
16
|
+
private readonly eventService;
|
|
15
17
|
readonly isEmailSetUp: boolean;
|
|
16
18
|
readonly templateOverrides: GlobalConfig['userManagement']['emails']['template'];
|
|
17
19
|
readonly templatesCache: Partial<Record<TemplateName, Template>>;
|
|
18
20
|
readonly mailer: NodeMailer | undefined;
|
|
19
|
-
constructor(globalConfig: GlobalConfig, logger: Logger, userRepository: UserRepository, urlService: UrlService);
|
|
21
|
+
constructor(globalConfig: GlobalConfig, logger: Logger, userRepository: UserRepository, urlService: UrlService, eventService: EventService);
|
|
20
22
|
invite(inviteEmailData: InviteEmailData): Promise<SendEmailResult>;
|
|
21
23
|
passwordReset(passwordResetData: PasswordResetData): Promise<SendEmailResult>;
|
|
22
24
|
notifyWorkflowShared({ sharer, newShareeIds, workflow, }: {
|
|
@@ -29,6 +31,7 @@ export declare class UserManagementMailer {
|
|
|
29
31
|
newShareeIds: string[];
|
|
30
32
|
credentialsName: string;
|
|
31
33
|
}): Promise<SendEmailResult>;
|
|
32
|
-
getTemplate(templateName: TemplateName
|
|
34
|
+
getTemplate(templateName: TemplateName): Promise<Template>;
|
|
35
|
+
private get basePayload();
|
|
33
36
|
}
|
|
34
37
|
export {};
|
|
@@ -20,17 +20,19 @@ const handlebars_1 = __importDefault(require("handlebars"));
|
|
|
20
20
|
const path_1 = require("path");
|
|
21
21
|
const config_1 = require("@n8n/config");
|
|
22
22
|
const user_repository_1 = require("../../databases/repositories/user.repository");
|
|
23
|
+
const event_service_1 = require("../../events/event.service");
|
|
23
24
|
const logger_1 = require("../../logger");
|
|
24
25
|
const url_service_1 = require("../../services/url.service");
|
|
25
26
|
const internal_server_error_1 = require("../../errors/response-errors/internal-server.error");
|
|
26
27
|
const utils_1 = require("../../utils");
|
|
27
28
|
const node_mailer_1 = require("./node-mailer");
|
|
28
|
-
const
|
|
29
|
+
const constants_1 = require("../../constants");
|
|
29
30
|
let UserManagementMailer = class UserManagementMailer {
|
|
30
|
-
constructor(globalConfig, logger, userRepository, urlService) {
|
|
31
|
+
constructor(globalConfig, logger, userRepository, urlService, eventService) {
|
|
31
32
|
this.logger = logger;
|
|
32
33
|
this.userRepository = userRepository;
|
|
33
34
|
this.urlService = urlService;
|
|
35
|
+
this.eventService = eventService;
|
|
34
36
|
this.templatesCache = {};
|
|
35
37
|
const emailsConfig = globalConfig.userManagement.emails;
|
|
36
38
|
this.isEmailSetUp = emailsConfig.mode === 'smtp' && emailsConfig.smtp.host !== '';
|
|
@@ -42,24 +44,22 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
42
44
|
async invite(inviteEmailData) {
|
|
43
45
|
if (!this.mailer)
|
|
44
46
|
return { emailSent: false };
|
|
45
|
-
const template = await this.getTemplate('
|
|
46
|
-
|
|
47
|
+
const template = await this.getTemplate('user-invited');
|
|
48
|
+
return await this.mailer.sendMail({
|
|
47
49
|
emailRecipients: inviteEmailData.email,
|
|
48
50
|
subject: 'You have been invited to n8n',
|
|
49
|
-
body: template(inviteEmailData),
|
|
51
|
+
body: template({ ...this.basePayload, ...inviteEmailData }),
|
|
50
52
|
});
|
|
51
|
-
return result !== null && result !== void 0 ? result : { emailSent: false };
|
|
52
53
|
}
|
|
53
54
|
async passwordReset(passwordResetData) {
|
|
54
55
|
if (!this.mailer)
|
|
55
56
|
return { emailSent: false };
|
|
56
|
-
const template = await this.getTemplate('
|
|
57
|
-
|
|
57
|
+
const template = await this.getTemplate('password-reset-requested');
|
|
58
|
+
return await this.mailer.sendMail({
|
|
58
59
|
emailRecipients: passwordResetData.email,
|
|
59
60
|
subject: 'n8n password reset',
|
|
60
|
-
body: template(passwordResetData),
|
|
61
|
+
body: template({ ...this.basePayload, ...passwordResetData }),
|
|
61
62
|
});
|
|
62
|
-
return result !== null && result !== void 0 ? result : { emailSent: false };
|
|
63
63
|
}
|
|
64
64
|
async notifyWorkflowShared({ sharer, newShareeIds, workflow, }) {
|
|
65
65
|
if (!this.mailer)
|
|
@@ -68,7 +68,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
68
68
|
if (recipients.length === 0)
|
|
69
69
|
return { emailSent: false };
|
|
70
70
|
const emailRecipients = recipients.map(({ email }) => email);
|
|
71
|
-
const populateTemplate = await this.getTemplate('
|
|
71
|
+
const populateTemplate = await this.getTemplate('workflow-shared');
|
|
72
72
|
const baseUrl = this.urlService.getInstanceBaseUrl();
|
|
73
73
|
try {
|
|
74
74
|
const result = await this.mailer.sendMail({
|
|
@@ -82,7 +82,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
82
82
|
if (!result)
|
|
83
83
|
return { emailSent: false };
|
|
84
84
|
this.logger.info('Sent workflow shared email successfully', { sharerId: sharer.id });
|
|
85
|
-
|
|
85
|
+
this.eventService.emit('user-transactional-email-sent', {
|
|
86
86
|
userId: sharer.id,
|
|
87
87
|
messageType: 'Workflow shared',
|
|
88
88
|
publicApi: false,
|
|
@@ -90,7 +90,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
90
90
|
return result;
|
|
91
91
|
}
|
|
92
92
|
catch (e) {
|
|
93
|
-
|
|
93
|
+
this.eventService.emit('email-failed', {
|
|
94
94
|
user: sharer,
|
|
95
95
|
messageType: 'Workflow shared',
|
|
96
96
|
publicApi: false,
|
|
@@ -106,7 +106,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
106
106
|
if (recipients.length === 0)
|
|
107
107
|
return { emailSent: false };
|
|
108
108
|
const emailRecipients = recipients.map(({ email }) => email);
|
|
109
|
-
const populateTemplate = await this.getTemplate('
|
|
109
|
+
const populateTemplate = await this.getTemplate('credentials-shared');
|
|
110
110
|
const baseUrl = this.urlService.getInstanceBaseUrl();
|
|
111
111
|
try {
|
|
112
112
|
const result = await this.mailer.sendMail({
|
|
@@ -120,7 +120,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
120
120
|
if (!result)
|
|
121
121
|
return { emailSent: false };
|
|
122
122
|
this.logger.info('Sent credentials shared email successfully', { sharerId: sharer.id });
|
|
123
|
-
|
|
123
|
+
this.eventService.emit('user-transactional-email-sent', {
|
|
124
124
|
userId: sharer.id,
|
|
125
125
|
messageType: 'Credentials shared',
|
|
126
126
|
publicApi: false,
|
|
@@ -128,7 +128,7 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
128
128
|
return result;
|
|
129
129
|
}
|
|
130
130
|
catch (e) {
|
|
131
|
-
|
|
131
|
+
this.eventService.emit('email-failed', {
|
|
132
132
|
user: sharer,
|
|
133
133
|
messageType: 'Credentials shared',
|
|
134
134
|
publicApi: false,
|
|
@@ -137,19 +137,25 @@ let UserManagementMailer = class UserManagementMailer {
|
|
|
137
137
|
throw new internal_server_error_1.InternalServerError(`Please contact your administrator: ${error.message}`);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
async getTemplate(templateName
|
|
140
|
+
async getTemplate(templateName) {
|
|
141
141
|
let template = this.templatesCache[templateName];
|
|
142
142
|
if (!template) {
|
|
143
|
+
const fileExtension = constants_1.inTest ? 'mjml' : 'handlebars';
|
|
143
144
|
const templateOverride = this.templateOverrides[templateName];
|
|
144
145
|
const templatePath = templateOverride && (0, fs_1.existsSync)(templateOverride)
|
|
145
146
|
? templateOverride
|
|
146
|
-
: (0, path_1.join)(__dirname, `templates/${
|
|
147
|
+
: (0, path_1.join)(__dirname, `templates/${templateName}.${fileExtension}`);
|
|
147
148
|
const markup = await (0, promises_1.readFile)(templatePath, 'utf-8');
|
|
148
149
|
template = handlebars_1.default.compile(markup);
|
|
149
150
|
this.templatesCache[templateName] = template;
|
|
150
151
|
}
|
|
151
152
|
return template;
|
|
152
153
|
}
|
|
154
|
+
get basePayload() {
|
|
155
|
+
const baseUrl = this.urlService.getInstanceBaseUrl();
|
|
156
|
+
const domain = new URL(baseUrl).hostname;
|
|
157
|
+
return { baseUrl, domain };
|
|
158
|
+
}
|
|
153
159
|
};
|
|
154
160
|
exports.UserManagementMailer = UserManagementMailer;
|
|
155
161
|
exports.UserManagementMailer = UserManagementMailer = __decorate([
|
|
@@ -157,6 +163,7 @@ exports.UserManagementMailer = UserManagementMailer = __decorate([
|
|
|
157
163
|
__metadata("design:paramtypes", [config_1.GlobalConfig,
|
|
158
164
|
logger_1.Logger,
|
|
159
165
|
user_repository_1.UserRepository,
|
|
160
|
-
url_service_1.UrlService
|
|
166
|
+
url_service_1.UrlService,
|
|
167
|
+
event_service_1.EventService])
|
|
161
168
|
], UserManagementMailer);
|
|
162
169
|
//# sourceMappingURL=user-management-mailer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-management-mailer.js","sourceRoot":"","sources":["../../../src/user-management/email/user-management-mailer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mCAA4C;AAC5C,2BAAgC;AAChC,0CAAuC;AACvC,4DAAoC;AACpC,+BAAwC;AACxC,wCAA2C;AAI3C,8EAA0E;AAC1E,qCAAkC;AAClC,wDAAoD;AACpD,0FAAqF;AACrF,mCAAkC;AAGlC,+CAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"user-management-mailer.js","sourceRoot":"","sources":["../../../src/user-management/email/user-management-mailer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,mCAA4C;AAC5C,2BAAgC;AAChC,0CAAuC;AACvC,4DAAoC;AACpC,+BAAwC;AACxC,wCAA2C;AAI3C,8EAA0E;AAC1E,0DAAsD;AACtD,qCAAkC;AAClC,wDAAoD;AACpD,0FAAqF;AACrF,mCAAkC;AAGlC,+CAA2C;AAC3C,2CAAqC;AAU9B,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAShC,YACC,YAA0B,EACT,MAAc,EACd,cAA8B,EAC9B,UAAsB,EACtB,YAA0B;QAH1B,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QATnC,mBAAc,GAA4C,EAAE,CAAC;QAWrE,MAAM,YAAY,GAAG,YAAY,CAAC,cAAc,CAAC,MAAM,CAAC;QACxD,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,IAAI,KAAK,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,KAAK,EAAE,CAAC;QAClF,IAAI,CAAC,iBAAiB,GAAG,YAAY,CAAC,QAAQ,CAAC;QAG/C,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,GAAG,kBAAS,CAAC,GAAG,CAAC,wBAAU,CAAC,CAAC;QACzC,CAAC;IACF,CAAC;IAED,KAAK,CAAC,MAAM,CA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GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC;QACzC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAC5B,CAAC;CACD,CAAA;AAnLY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,gBAAO,GAAE;qCAWM,qBAAY;QACD,eAAM;QACE,gCAAc;QAClB,wBAAU;QACR,4BAAY;GAdhC,oBAAoB,CAmLhC"}
|
|
@@ -24,7 +24,7 @@ let PermissionChecker = class PermissionChecker {
|
|
|
24
24
|
async check(workflowId, nodes) {
|
|
25
25
|
const homeProject = await this.ownershipService.getWorkflowProjectCached(workflowId);
|
|
26
26
|
const homeProjectOwner = await this.ownershipService.getProjectOwnerCached(homeProject.id);
|
|
27
|
-
if (homeProject.type === 'personal' &&
|
|
27
|
+
if (homeProject.type === 'personal' && homeProjectOwner?.hasGlobalScope('credential:list')) {
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const projectIds = await this.projectService.findProjectsWorkflowIsIn(workflowId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-checker.js","sourceRoot":"","sources":["../../src/user-management/permission-checker.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mCAAiC;AAEjC,+CAAyE;AAEzE,oEAAgE;AAChE,0GAAqG;AACrG,gEAA4D;AAGrD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAC7B,YACkB,2BAAwD,EACxD,gBAAkC,EAClC,cAA8B;QAF9B,gCAA2B,GAA3B,2BAA2B,CAA6B;QACxD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,mBAAc,GAAd,cAAc,CAAgB;IAC7C,CAAC;IAKJ,KAAK,CAAC,KAAK,CAAC,UAAkB,EAAE,KAAc;QAC7C,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC;QACrF,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,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/dist/utils.js
CHANGED
|
@@ -9,7 +9,7 @@ exports.rightDiff = rightDiff;
|
|
|
9
9
|
const n8n_workflow_1 = require("n8n-workflow");
|
|
10
10
|
const constants_1 = require("./constants");
|
|
11
11
|
function isWorkflowIdValid(id) {
|
|
12
|
-
return typeof id === 'string' &&
|
|
12
|
+
return typeof id === 'string' && id?.length <= 16;
|
|
13
13
|
}
|
|
14
14
|
function findWorkflowStart(executionMode) {
|
|
15
15
|
return function (nodes) {
|