@n8n/api-types 0.53.0 → 0.54.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.
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.breakingChangeIssueLevelSchema = exports.breakingChangeRuleSeveritySchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.breakingChangeRuleSeveritySchema = zod_1.z.enum(['low', 'medium', 'high', 'critical']);
6
+ exports.breakingChangeIssueLevelSchema = zod_1.z.enum(['info', 'warning', 'error']);
7
+ const recommendationSchema = zod_1.z.object({
8
+ action: zod_1.z.string(),
9
+ description: zod_1.z.string(),
10
+ });
11
+ const instanceIssueSchema = zod_1.z.object({
12
+ title: zod_1.z.string(),
13
+ description: zod_1.z.string(),
14
+ level: exports.breakingChangeIssueLevelSchema,
15
+ });
16
+ const workflowIssueSchema = instanceIssueSchema.extend({
17
+ nodeId: zod_1.z.string().optional(),
18
+ nodeName: zod_1.z.string().optional(),
19
+ });
20
+ const affectedWorkflowSchema = zod_1.z.object({
21
+ id: zod_1.z.string(),
22
+ name: zod_1.z.string(),
23
+ active: zod_1.z.boolean(),
24
+ numberOfExecutions: zod_1.z.number(),
25
+ lastUpdatedAt: zod_1.z.date(),
26
+ lastExecutedAt: zod_1.z.date().nullable(),
27
+ issues: zod_1.z.array(workflowIssueSchema),
28
+ });
29
+ const ruleResultBaseSchema = zod_1.z.object({
30
+ ruleId: zod_1.z.string(),
31
+ ruleTitle: zod_1.z.string(),
32
+ ruleDescription: zod_1.z.string(),
33
+ ruleSeverity: exports.breakingChangeRuleSeveritySchema,
34
+ ruleDocumentationUrl: zod_1.z.string().optional(),
35
+ recommendations: zod_1.z.array(recommendationSchema),
36
+ });
37
+ const instanceRuleResultsSchema = ruleResultBaseSchema.extend({
38
+ instanceIssues: zod_1.z.array(instanceIssueSchema),
39
+ });
40
+ const workflowRuleResultsSchema = ruleResultBaseSchema.extend({
41
+ affectedWorkflows: zod_1.z.array(affectedWorkflowSchema),
42
+ });
43
+ const breakingChangeReportDataSchema = {
44
+ generatedAt: zod_1.z.date(),
45
+ targetVersion: zod_1.z.string(),
46
+ currentVersion: zod_1.z.string(),
47
+ instanceResults: zod_1.z.array(instanceRuleResultsSchema),
48
+ workflowResults: zod_1.z.array(workflowRuleResultsSchema),
49
+ };
50
+ const breakingChangeReportSchema = zod_1.z.object(breakingChangeReportDataSchema).strict();
51
+ const breakingChangeLightReportDataSchema = {
52
+ generatedAt: zod_1.z.date(),
53
+ targetVersion: zod_1.z.string(),
54
+ currentVersion: zod_1.z.string(),
55
+ instanceResults: zod_1.z.array(instanceRuleResultsSchema),
56
+ workflowResults: zod_1.z.array(workflowRuleResultsSchema.omit({ affectedWorkflows: true }).extend({
57
+ nbAffectedWorkflows: zod_1.z.number(),
58
+ })),
59
+ };
60
+ const breakingChangeLightReportSchema = zod_1.z.object(breakingChangeLightReportDataSchema).strict();
61
+ const breakingChangeReportResultDataSchema = zod_1.z.object({
62
+ report: breakingChangeReportSchema,
63
+ shouldCache: zod_1.z.boolean(),
64
+ });
65
+ const breakingChangeLightReportResultDataSchema = zod_1.z.object({
66
+ report: breakingChangeLightReportSchema,
67
+ shouldCache: zod_1.z.boolean(),
68
+ });
69
+ //# sourceMappingURL=breaking-changes.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breaking-changes.schema.js","sourceRoot":"","sources":["../../src/schemas/breaking-changes.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAGX,QAAA,gCAAgC,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAGjF,QAAA,8BAA8B,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAGnF,MAAM,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;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OAAO,EAAE;CACxB,CAAC,CAAC;AAGH,MAAM,yCAAyC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,MAAM,EAAE,+BAA+B;IACvC,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@n8n/api-types",
3
- "version": "0.53.0",
3
+ "version": "0.54.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "src/index.ts",
6
6
  "types": "dist/index.d.ts",
@@ -10,15 +10,15 @@
10
10
  "LICENSE_EE.md"
11
11
  ],
12
12
  "devDependencies": {
13
- "@n8n/config": "1.61.0",
14
- "@n8n/typescript-config": "1.3.0"
13
+ "@n8n/typescript-config": "1.3.0",
14
+ "@n8n/config": "1.62.1"
15
15
  },
16
16
  "dependencies": {
17
17
  "xss": "1.0.15",
18
18
  "zod": "3.25.67",
19
19
  "zod-class": "0.0.16",
20
- "n8n-workflow": "1.116.0",
21
- "@n8n/permissions": "0.41.0"
20
+ "@n8n/permissions": "0.42.0",
21
+ "n8n-workflow": "1.117.1"
22
22
  },
23
23
  "license": "SEE LICENSE IN LICENSE.md",
24
24
  "homepage": "https://n8n.io",