@n8n/decorators 1.19.1 → 1.21.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/build.tsbuildinfo +1 -1
- package/dist/controller/route.d.ts +1 -0
- package/dist/controller/route.js +1 -0
- package/dist/controller/route.js.map +1 -1
- package/dist/controller/types.d.ts +1 -0
- package/dist/module/module.d.ts +2 -1
- package/dist/module/module.js.map +1 -1
- package/dist/pubsub/pubsub-metadata.d.ts +1 -1
- package/dist/pubsub/pubsub-metadata.js.map +1 -1
- package/package.json +5 -5
package/dist/controller/route.js
CHANGED
|
@@ -10,6 +10,7 @@ const RouteFactory = (method) => (path, options = {}) => (target, handlerName) =
|
|
|
10
10
|
routeMetadata.middlewares = options.middlewares ?? [];
|
|
11
11
|
routeMetadata.usesTemplates = options.usesTemplates ?? false;
|
|
12
12
|
routeMetadata.skipAuth = options.skipAuth ?? false;
|
|
13
|
+
routeMetadata.allowBots = options.allowBots ?? false;
|
|
13
14
|
routeMetadata.allowSkipPreviewAuth = options.allowSkipPreviewAuth ?? false;
|
|
14
15
|
routeMetadata.allowSkipMFA = options.allowSkipMFA ?? false;
|
|
15
16
|
routeMetadata.allowUnauthenticated = options.allowUnauthenticated ?? false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/controller/route.ts"],"names":[],"mappings":";;;AAAA,gCAAoC;AAGpC,iFAA4E;
|
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../src/controller/route.ts"],"names":[],"mappings":";;;AAAA,gCAAoC;AAGpC,iFAA4E;AA0B5E,MAAM,YAAY,GACjB,CAAC,MAAc,EAAE,EAAE,CACnB,CAAC,IAAkB,EAAE,UAAwB,EAAE,EAAmB,EAAE,CACpE,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;IACvB,MAAM,aAAa,GAAG,cAAS,CAAC,GAAG,CAAC,yDAA0B,CAAC,CAAC,g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OAAO,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC"}
|
package/dist/module/module.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { LICENSE_FEATURES, InstanceType } from '@n8n/constants';
|
|
2
2
|
import { type Constructable } from '@n8n/di';
|
|
3
|
+
import type { NodeLoader } from 'n8n-workflow';
|
|
3
4
|
export interface BaseEntity {
|
|
4
5
|
hasId(): boolean;
|
|
5
6
|
save(options?: unknown): Promise<this>;
|
|
@@ -27,7 +28,7 @@ export interface ModuleInterface {
|
|
|
27
28
|
entities?(): Promise<EntityClass[]>;
|
|
28
29
|
settings?(): Promise<ModuleSettings>;
|
|
29
30
|
context?(): Promise<ModuleContext>;
|
|
30
|
-
|
|
31
|
+
nodeLoaders?(): Promise<NodeLoader[]>;
|
|
31
32
|
}
|
|
32
33
|
export type ModuleClass = Constructable<ModuleInterface>;
|
|
33
34
|
export type LicenseFlag = (typeof LICENSE_FEATURES)[keyof typeof LICENSE_FEATURES];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module/module.ts"],"names":[],"mappings":";;;AACA,gCAAiE;
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module/module.ts"],"names":[],"mappings":";;;AACA,gCAAiE;AAGjE,uDAAmD;AA6G5C,MAAM,aAAa,GACzB,CAAC,IAA0B,EAAkB,EAAE,CAC/C,CAAC,MAAM,EAAE,EAAE;IACV,cAAS,CAAC,GAAG,CAAC,gCAAc,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE;QACjD,KAAK,EAAE,MAAgC;QACvC,WAAW,EAAE,IAAI,EAAE,WAAW;QAC9B,aAAa,EAAE,IAAI,EAAE,aAAa;KAClC,CAAC,CAAC;IAGH,OAAO,IAAA,YAAO,GAAE,CAAC,MAAM,CAAC,CAAC;AAC1B,CAAC,CAAC;AAXU,QAAA,aAAa,iBAWvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { InstanceRole, InstanceType } from '@n8n/constants';
|
|
2
2
|
import type { EventHandler } from '../types';
|
|
3
|
-
export type PubSubEventName = 'add-webhooks-triggers-and-pollers' | 'remove-triggers-and-pollers' | 'clear-test-webhooks' | 'display-workflow-activation' | 'display-workflow-deactivation' | 'display-workflow-activation-error' | 'community-package-install' | 'community-package-uninstall' | 'community-package-update' | 'get-worker-status' | 'reload-external-secrets-providers' | 'reload-license' | 'reload-oidc-config' | 'reload-saml-config' | 'reload-overwrite-credentials' | 'response-to-get-worker-status' | 'restart-event-bus' | 'relay-execution-lifecycle-event' | 'relay-chat-stream-event' | 'relay-chat-human-message' | 'relay-chat-message-edit' | 'reload-sso-provisioning-configuration' | 'reload-source-control-config' | 'cancel-test-run';
|
|
3
|
+
export type PubSubEventName = 'add-webhooks-triggers-and-pollers' | 'remove-triggers-and-pollers' | 'clear-test-webhooks' | 'display-workflow-activation' | 'display-workflow-deactivation' | 'display-workflow-activation-error' | 'community-package-install' | 'community-package-uninstall' | 'community-package-update' | 'get-worker-status' | 'reload-external-secrets-providers' | 'reload-license' | 'reload-oidc-config' | 'reload-saml-config' | 'reload-overwrite-credentials' | 'response-to-get-worker-status' | 'restart-event-bus' | 'relay-execution-lifecycle-event' | 'relay-chat-stream-event' | 'relay-chat-human-message' | 'relay-chat-message-edit' | 'reload-sso-provisioning-configuration' | 'reload-source-control-config' | 'cancel-test-run' | 'agent-chat-integration-changed' | 'agent-config-changed';
|
|
4
4
|
export type PubSubEventFilter = {
|
|
5
5
|
instanceType: 'main';
|
|
6
6
|
instanceRole?: Omit<InstanceRole, 'unset'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pubsub-metadata.js","sourceRoot":"","sources":["../../src/pubsub/pubsub-metadata.ts"],"names":[],"mappings":";;;;;;;;;AACA,gCAAkC;
|
|
1
|
+
{"version":3,"file":"pubsub-metadata.js","sourceRoot":"","sources":["../../src/pubsub/pubsub-metadata.ts"],"names":[],"mappings":";;;;;;;;;AACA,gCAAkC;AA6C3B,IAAM,cAAc,GAApB,MAAM,cAAc;IAApB;QACW,aAAQ,GAAyB,EAAE,CAAC;IAStD,CAAC;IAPA,QAAQ,CAAC,OAA2B;QACnC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD,CAAA;AAVY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,YAAO,GAAE;GACG,cAAc,CAU1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/decorators",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "src/index.ts",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"lodash": "4.18.1",
|
|
22
|
-
"@n8n/api-types": "1.
|
|
23
|
-
"@n8n/di": "0.11.0",
|
|
22
|
+
"@n8n/api-types": "1.21.0",
|
|
24
23
|
"@n8n/constants": "0.23.0",
|
|
25
|
-
"@n8n/permissions": "0.
|
|
26
|
-
"n8n
|
|
24
|
+
"@n8n/permissions": "0.59.0",
|
|
25
|
+
"@n8n/di": "0.11.0",
|
|
26
|
+
"n8n-workflow": "2.21.0"
|
|
27
27
|
},
|
|
28
28
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
29
29
|
"homepage": "https://n8n.io",
|