n8n-mcp 2.22.20 → 2.23.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/data/nodes.db +0 -0
- package/dist/constants/type-structures.d.ts +123 -0
- package/dist/constants/type-structures.d.ts.map +1 -0
- package/dist/constants/type-structures.js +654 -0
- package/dist/constants/type-structures.js.map +1 -0
- package/dist/mcp/tools-documentation.js +4 -4
- package/dist/services/enhanced-config-validator.d.ts +3 -0
- package/dist/services/enhanced-config-validator.d.ts.map +1 -1
- package/dist/services/enhanced-config-validator.js +216 -2
- package/dist/services/enhanced-config-validator.js.map +1 -1
- package/dist/services/n8n-validation.d.ts +2 -2
- package/dist/services/n8n-validation.d.ts.map +1 -1
- package/dist/services/n8n-validation.js +9 -4
- package/dist/services/n8n-validation.js.map +1 -1
- package/dist/services/node-specific-validators.d.ts.map +1 -1
- package/dist/services/node-specific-validators.js +12 -8
- package/dist/services/node-specific-validators.js.map +1 -1
- package/dist/services/type-structure-service.d.ts +23 -0
- package/dist/services/type-structure-service.d.ts.map +1 -0
- package/dist/services/type-structure-service.js +109 -0
- package/dist/services/type-structure-service.js.map +1 -0
- package/dist/services/workflow-diff-engine.d.ts.map +1 -1
- package/dist/services/workflow-diff-engine.js +5 -3
- package/dist/services/workflow-diff-engine.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/n8n-api.d.ts +1 -0
- package/dist/types/n8n-api.d.ts.map +1 -1
- package/dist/types/n8n-api.js.map +1 -1
- package/dist/types/type-structures.d.ts +42 -0
- package/dist/types/type-structures.d.ts.map +1 -0
- package/dist/types/type-structures.js +32 -0
- package/dist/types/type-structures.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { NodePropertyTypes } from 'n8n-workflow';
|
|
2
|
+
export interface TypeStructure {
|
|
3
|
+
type: 'primitive' | 'object' | 'array' | 'collection' | 'special';
|
|
4
|
+
jsType: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
|
|
5
|
+
description: string;
|
|
6
|
+
structure?: {
|
|
7
|
+
properties?: Record<string, TypePropertyDefinition>;
|
|
8
|
+
items?: TypePropertyDefinition;
|
|
9
|
+
flexible?: boolean;
|
|
10
|
+
required?: string[];
|
|
11
|
+
};
|
|
12
|
+
example: any;
|
|
13
|
+
examples?: any[];
|
|
14
|
+
validation?: {
|
|
15
|
+
allowEmpty?: boolean;
|
|
16
|
+
allowExpressions?: boolean;
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
pattern?: string;
|
|
20
|
+
customValidator?: string;
|
|
21
|
+
};
|
|
22
|
+
introducedIn?: string;
|
|
23
|
+
deprecatedIn?: string;
|
|
24
|
+
replacedBy?: NodePropertyTypes;
|
|
25
|
+
notes?: string[];
|
|
26
|
+
}
|
|
27
|
+
export interface TypePropertyDefinition {
|
|
28
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'any';
|
|
29
|
+
description?: string;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
properties?: Record<string, TypePropertyDefinition>;
|
|
32
|
+
items?: TypePropertyDefinition;
|
|
33
|
+
example?: any;
|
|
34
|
+
enum?: Array<string | number | boolean>;
|
|
35
|
+
flexible?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export type ComplexPropertyType = 'collection' | 'fixedCollection' | 'resourceLocator' | 'resourceMapper' | 'filter' | 'assignmentCollection';
|
|
38
|
+
export type PrimitivePropertyType = 'string' | 'number' | 'boolean' | 'dateTime' | 'color' | 'json';
|
|
39
|
+
export declare function isComplexType(type: NodePropertyTypes): type is ComplexPropertyType;
|
|
40
|
+
export declare function isPrimitiveType(type: NodePropertyTypes): type is PrimitivePropertyType;
|
|
41
|
+
export declare function isTypeStructure(value: any): value is TypeStructure;
|
|
42
|
+
//# sourceMappingURL=type-structures.d.ts.map
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AAK,CAAC;IAKnE,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAKnB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,sBAAsB,CAAC,CAAC;IAKpD,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAK/B,OAAO,CAAC,EAAE,GAAG,CAAC;IAKd,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IAKxC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB;AAQD,MAAM,MAAM,mBAAmB,GAC5B,YAAY,GACZ,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,GAChB,QAAQ,GACR,sBAAsB,CAAC;AAQ1B,MAAM,MAAM,qBAAqB,GAC9B,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,OAAO,GACP,MAAM,CAAC;AAkBV,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,mBAAmB,CASlF;AAkBD,wBAAgB,eAAe,CAAC,IAAI,EAAE,iBAAiB,GAAG,IAAI,IAAI,qBAAqB,CAStF;AAgBD,wBAAgB,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAWlE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isComplexType = isComplexType;
|
|
4
|
+
exports.isPrimitiveType = isPrimitiveType;
|
|
5
|
+
exports.isTypeStructure = isTypeStructure;
|
|
6
|
+
function isComplexType(type) {
|
|
7
|
+
return (type === 'collection' ||
|
|
8
|
+
type === 'fixedCollection' ||
|
|
9
|
+
type === 'resourceLocator' ||
|
|
10
|
+
type === 'resourceMapper' ||
|
|
11
|
+
type === 'filter' ||
|
|
12
|
+
type === 'assignmentCollection');
|
|
13
|
+
}
|
|
14
|
+
function isPrimitiveType(type) {
|
|
15
|
+
return (type === 'string' ||
|
|
16
|
+
type === 'number' ||
|
|
17
|
+
type === 'boolean' ||
|
|
18
|
+
type === 'dateTime' ||
|
|
19
|
+
type === 'color' ||
|
|
20
|
+
type === 'json');
|
|
21
|
+
}
|
|
22
|
+
function isTypeStructure(value) {
|
|
23
|
+
return (value !== null &&
|
|
24
|
+
typeof value === 'object' &&
|
|
25
|
+
'type' in value &&
|
|
26
|
+
'jsType' in value &&
|
|
27
|
+
'description' in value &&
|
|
28
|
+
'example' in value &&
|
|
29
|
+
['primitive', 'object', 'array', 'collection', 'special'].includes(value.type) &&
|
|
30
|
+
['string', 'number', 'boolean', 'object', 'array', 'any'].includes(value.jsType));
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=type-structures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-structures.js","sourceRoot":"","sources":["../../src/types/type-structures.ts"],"names":[],"mappings":";;AA6OA,sCASC;AAkBD,0CASC;AAgBD,0CAWC;AA/DD,SAAgB,aAAa,CAAC,IAAuB;IACpD,OAAO,CACN,IAAI,KAAK,YAAY;QACrB,IAAI,KAAK,iBAAiB;QAC1B,IAAI,KAAK,iBAAiB;QAC1B,IAAI,KAAK,gBAAgB;QACzB,IAAI,KAAK,QAAQ;QACjB,IAAI,KAAK,sBAAsB,CAC/B,CAAC;AACH,CAAC;AAkBD,SAAgB,eAAe,CAAC,IAAuB;IACtD,OAAO,CACN,IAAI,KAAK,QAAQ;QACjB,IAAI,KAAK,QAAQ;QACjB,IAAI,KAAK,SAAS;QAClB,IAAI,KAAK,UAAU;QACnB,IAAI,KAAK,OAAO;QAChB,IAAI,KAAK,MAAM,CACf,CAAC;AACH,CAAC;AAgBD,SAAgB,eAAe,CAAC,KAAU;IACzC,OAAO,CACN,KAAK,KAAK,IAAI;QACd,OAAO,KAAK,KAAK,QAAQ;QACzB,MAAM,IAAI,KAAK;QACf,QAAQ,IAAI,KAAK;QACjB,aAAa,IAAI,KAAK;QACtB,SAAS,IAAI,KAAK;QAClB,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC;QAC9E,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAChF,CAAC;AACH,CAAC"}
|