chore: add pre-built dist folder for npx usage

This commit is contained in:
thesved
2025-12-04 20:22:02 +02:00
committed by Romuald Członkowski
parent a70d96a373
commit 5057481e70
716 changed files with 48021 additions and 0 deletions

32
dist/types/type-structures.js vendored Normal file
View 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