@n8n/decorators 1.15.0 → 1.17.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.
@@ -6,6 +6,7 @@ export type NodeExecuteBeforeContext = {
6
6
  workflow: IWorkflowBase;
7
7
  nodeName: string;
8
8
  taskData: ITaskStartedData;
9
+ executionId: string;
9
10
  };
10
11
  export type NodeExecuteAfterContext = {
11
12
  type: 'nodeExecuteAfter';
@@ -13,6 +14,7 @@ export type NodeExecuteAfterContext = {
13
14
  nodeName: string;
14
15
  taskData: ITaskData;
15
16
  executionData: IRunExecutionData;
17
+ executionId: string;
16
18
  };
17
19
  export type WorkflowExecuteBeforeContext = {
18
20
  type: 'workflowExecuteBefore';
@@ -1 +1 @@
1
- {"version":3,"file":"lifecycle-metadata.js","sourceRoot":"","sources":["../../src/execution-lifecycle/lifecycle-metadata.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gCAAkC;AA+E3B,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACW,aAAQ,GAAuB,EAAE,CAAC;IASpD,CAAC;IAPA,QAAQ,CAAC,OAAyB;QACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,YAAO,GAAE;GACG,iBAAiB,CAU7B"}
1
+ {"version":3,"file":"lifecycle-metadata.js","sourceRoot":"","sources":["../../src/execution-lifecycle/lifecycle-metadata.ts"],"names":[],"mappings":";;;;;;;;;AAAA,gCAAkC;AAiF3B,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAAvB;QACW,aAAQ,GAAuB,EAAE,CAAC;IASpD,CAAC;IAPA,QAAQ,CAAC,OAAyB;QACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC7B,CAAC;IAED,WAAW;QACV,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;CACD,CAAA;AAVY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,YAAO,GAAE;GACG,iBAAiB,CAU7B"}
@@ -8,16 +8,16 @@ export interface BaseEntity {
8
8
  recover(options?: unknown): Promise<this>;
9
9
  reload(): Promise<void>;
10
10
  }
11
- export interface TimestampedIdEntity {
12
- id: string;
11
+ export interface CreatedAtEntity {
13
12
  createdAt: Date;
14
- updatedAt: Date;
15
13
  }
16
- export interface TimestampedEntity {
17
- createdAt: Date;
14
+ export interface TimestampedEntity extends CreatedAtEntity {
18
15
  updatedAt: Date;
19
16
  }
20
- export type EntityClass = new () => BaseEntity | TimestampedIdEntity | TimestampedEntity;
17
+ export interface TimestampedIdEntity extends TimestampedEntity {
18
+ id: string;
19
+ }
20
+ export type EntityClass = new () => BaseEntity | TimestampedIdEntity | TimestampedEntity | CreatedAtEntity;
21
21
  export type ModuleSettings = Record<string, unknown>;
22
22
  export type ModuleContext = Record<string, unknown>;
23
23
  export interface ModuleInterface {
@@ -1 +1 @@
1
- {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module/module.ts"],"names":[],"mappings":";;;AACA,gCAAiE;AAEjE,uDAAmD;AAuG5C,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
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/module/module.ts"],"names":[],"mappings":";;;AACA,gCAAiE;AAEjE,uDAAmD;AA2G5C,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"}
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
1
  {
2
2
  "name": "@n8n/decorators",
3
- "version": "1.15.0",
3
+ "version": "1.17.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
8
  "dist/**/*",
9
- "LICENSE.md",
10
- "LICENSE_EE.md"
9
+ "LICENSE_EE.md",
10
+ "LICENSE.md"
11
11
  ],
12
12
  "devDependencies": {
13
13
  "@types/express": "^5.0.1",
14
14
  "@types/lodash": "4.17.17",
15
- "vitest": "^3.1.3",
15
+ "vitest": "^4.1.1",
16
16
  "zod": "3.25.67",
17
- "@n8n/typescript-config": "1.3.0",
18
- "@n8n/vitest-config": "1.7.0"
17
+ "@n8n/typescript-config": "1.4.0",
18
+ "@n8n/vitest-config": "1.9.0"
19
19
  },
20
20
  "dependencies": {
21
- "lodash": "4.17.23",
22
- "@n8n/constants": "0.19.0",
21
+ "lodash": "4.18.1",
23
22
  "@n8n/di": "0.10.0",
24
- "@n8n/permissions": "0.55.0",
25
- "n8n-workflow": "2.15.0"
23
+ "@n8n/permissions": "0.56.0",
24
+ "n8n-workflow": "2.17.0",
25
+ "@n8n/constants": "0.21.0"
26
26
  },
27
27
  "license": "SEE LICENSE IN LICENSE.md",
28
28
  "homepage": "https://n8n.io",