mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
chore: add pre-built dist folder for npx usage
This commit is contained in:
committed by
Romuald Członkowski
parent
a70d96a373
commit
5057481e70
32
dist/types/type-structures.js
vendored
Normal file
32
dist/types/type-structures.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.isComplexType = isComplexType;
|
||||
exports.isPrimitiveType = isPrimitiveType;
|
||||
exports.isTypeStructure = isTypeStructure;
|
||||
function isComplexType(type) {
|
||||
return (type === 'collection' ||
|
||||
type === 'fixedCollection' ||
|
||||
type === 'resourceLocator' ||
|
||||
type === 'resourceMapper' ||
|
||||
type === 'filter' ||
|
||||
type === 'assignmentCollection');
|
||||
}
|
||||
function isPrimitiveType(type) {
|
||||
return (type === 'string' ||
|
||||
type === 'number' ||
|
||||
type === 'boolean' ||
|
||||
type === 'dateTime' ||
|
||||
type === 'color' ||
|
||||
type === 'json');
|
||||
}
|
||||
function isTypeStructure(value) {
|
||||
return (value !== null &&
|
||||
typeof value === 'object' &&
|
||||
'type' in value &&
|
||||
'jsType' in value &&
|
||||
'description' in value &&
|
||||
'example' in value &&
|
||||
['primitive', 'object', 'array', 'collection', 'special'].includes(value.type) &&
|
||||
['string', 'number', 'boolean', 'object', 'array', 'any'].includes(value.jsType));
|
||||
}
|
||||
//# sourceMappingURL=type-structures.js.map
|
||||
Reference in New Issue
Block a user