@accordproject/concerto-vocabulary 4.2.0 → 5.0.0-beta.2
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/dist/esm/chunk-3VH3UOGB.mjs +398 -0
- package/dist/esm/chunk-3VH3UOGB.mjs.map +7 -0
- package/dist/esm/chunk-7RW3VXN4.mjs +185 -0
- package/dist/esm/chunk-7RW3VXN4.mjs.map +7 -0
- package/dist/esm/chunk-TA74NV57.mjs +38 -0
- package/dist/esm/chunk-TA74NV57.mjs.map +7 -0
- package/dist/esm/index.mjs +14 -0
- package/dist/esm/index.mjs.map +7 -0
- package/dist/esm/vocabulary.mjs +11 -0
- package/dist/esm/vocabulary.mjs.map +7 -0
- package/dist/esm/vocabularymanager.mjs +13 -0
- package/dist/esm/vocabularymanager.mjs.map +7 -0
- package/dist/esm/yamlparser.mjs +9 -0
- package/dist/esm/yamlparser.mjs.map +7 -0
- package/dist/esm-browser/chunk-2FE6COGH.mjs +2089 -0
- package/dist/esm-browser/chunk-2FE6COGH.mjs.map +7 -0
- package/dist/esm-browser/chunk-CKXQ5OWJ.mjs +187 -0
- package/dist/esm-browser/chunk-CKXQ5OWJ.mjs.map +7 -0
- package/dist/esm-browser/chunk-DSN2E4MW.mjs +6747 -0
- package/dist/esm-browser/chunk-DSN2E4MW.mjs.map +7 -0
- package/dist/esm-browser/chunk-K2X7J5YP.mjs +70 -0
- package/dist/esm-browser/chunk-K2X7J5YP.mjs.map +7 -0
- package/dist/esm-browser/index.mjs +18 -0
- package/dist/esm-browser/index.mjs.map +7 -0
- package/dist/esm-browser/vocabulary.mjs +10 -0
- package/dist/esm-browser/vocabulary.mjs.map +7 -0
- package/dist/esm-browser/vocabularymanager.mjs +12 -0
- package/dist/esm-browser/vocabularymanager.mjs.map +7 -0
- package/dist/esm-browser/yamlparser.mjs +8 -0
- package/dist/esm-browser/yamlparser.mjs.map +7 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/vocabulary.d.ts +3 -2
- package/dist/vocabulary.js +5 -1
- package/dist/vocabulary.js.map +1 -1
- package/dist/vocabularymanager.d.ts +3 -2
- package/dist/vocabularymanager.js +6 -3
- package/dist/vocabularymanager.js.map +1 -1
- package/package.json +18 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/vocabulary.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { ModelFile, ClassDeclaration, Declaration, Property } from '@accordproject/concerto-core';\nimport type VocabularyManager from './vocabularymanager';\n\n/**\n* A vocabulary for a concerto model\n* @class\n* @memberof module:concerto-vocabulary\n*/\nclass Vocabulary {\n public vocabularyManager: VocabularyManager;\n public content: any;\n\n /**\n * Create the Vocabulary\n * @constructor\n * @param {VocabularyManager} vocabularyManager - the manager for this vocabulary\n * @param {object} voc - the JSON representation of the vocabulary\n */\n constructor(vocabularyManager: VocabularyManager, voc: any) {\n if(!vocabularyManager) {\n throw new Error('VocabularyManager must be specified');\n }\n if(!voc) {\n throw new Error('Vocabulary object must be specified');\n }\n\n if(!voc.declarations) {\n throw new Error('Vocabulary object must have declarations');\n }\n\n if(!voc.namespace) {\n throw new Error('A vocabulary must specify a namespace');\n }\n\n if(!voc.locale) {\n throw new Error('A vocabulary must specify a locale');\n }\n\n Vocabulary.validateLocale(voc.locale);\n\n this.vocabularyManager = vocabularyManager;\n this.content = voc;\n }\n\n /**\n * Returns the namespace for the vocabulary\n * @returns {string} the namespace for this vocabulary\n */\n getNamespace(): string {\n return this.content.namespace;\n }\n\n /**\n * Validates a locale\n * @param {string} locale the locale to validate\n * @throws {Error} if the locale is invalid\n */\n static validateLocale(locale: string) {\n // @ts-ignore\n new Intl.Locale(locale);\n if(locale !== locale.toLowerCase()) {\n throw new Error('Locale should be lowercase with dashes');\n }\n }\n\n /**\n * Returns the locale for the vocabulary\n * @returns {string} the locale for this vocabulary\n */\n getLocale(): string {\n return this.content.locale;\n }\n\n /**\n * Returns the identifier for the vocabulary, composed of the namespace plus the locale\n * @returns {string} the identifier for this vocabulary\n */\n getIdentifier(): string {\n return `${this.getNamespace()}/${this.content.locale}`;\n }\n\n /**\n * Returns all the declarations for this vocabulary\n * @returns {Array} an array of objects\n */\n getTerms(): any[] {\n return this.content.declarations;\n }\n\n /**\n * Gets the terms of Namespace\n * @returns {string} the term or null if it does not exist\n * @private\n */\n getNamespaceTerms(): any {\n const namespaceTerms = Object.entries(this.content).filter(([key]) => key !== 'namespace' && key !== 'locale' && key !== 'declarations');\n return namespaceTerms.length > 0 ? Object.fromEntries(namespaceTerms) : null;\n }\n\n /**\n * Gets the term for a concept, enum or property\n * @param {string} declarationName the name of a concept or enum\n * @param {string} [propertyName] the name of a property (optional)\n * @param {string} [identifier] the identifier of the term (optional)\n * @returns {string|number|boolean|null} the term or null if it does not exist\n */\n getTerm(declarationName?: string, propertyName?: string, identifier?: string): string | number | boolean | null {\n if(!declarationName){\n const namespaceTerms = this.getNamespaceTerms();\n return identifier ? namespaceTerms?.[identifier]:namespaceTerms?.term;\n }\n const decl = this.content.declarations.find((d: any) => Object.keys(d)[0] === declarationName);\n if(!decl) {\n return null;\n }\n if(!propertyName) {\n return identifier ? decl[identifier] : decl[declarationName];\n }\n else {\n const property = decl.properties ? decl.properties.find((d: any) => propertyName in d) : null;\n return property ? identifier ? property[identifier] : property[propertyName] : null;\n }\n }\n\n /**\n * Gets the terms for a concept, enum or property\n * @param {string} declarationName the name of a concept or enum\n * @param {string} [propertyName] the name of a property (optional)\n * @returns {string} the term or null if it does not exist\n */\n getElementTerms(declarationName: string, propertyName?: string): any {\n if(!declarationName){\n return this.getNamespaceTerms();\n }\n const decl = this.content.declarations.find((d: any) => Object.keys(d)[0] === declarationName);\n if(!decl) {\n return null;\n }\n if(!propertyName) {\n return decl;\n }\n else {\n const property = decl.properties ? decl.properties.find((d: any) => propertyName in d) : null;\n return property;\n }\n }\n\n /**\n * Validates a vocabulary against a ModelFile, returning errors for\n * missing and additional terms.\n * @param {ModelFile} modelFile the model file for this vocabulary\n * @returns {*} an object with missingTerms and additionalTerms properties\n */\n validate(modelFile: ModelFile): any {\n const getOwnProperties = (declaration: any) => {\n // ensures we have a valid return, even for scalars and map-declarations\n if(declaration.isMapDeclaration()) {\n return [declaration.getKey(), declaration.getValue()];\n } else {\n return declaration.getOwnProperties?.() ? declaration.getOwnProperties?.() : [];\n }\n };\n\n const getPropertyName = (property: any) => {\n if(property.isKey?.()) {\n return 'KEY';\n } else if(property.isValue?.()) {\n return 'VALUE';\n } else {\n return property.getName();\n }\n };\n\n const checkPropertyExists = (k: any, p: any) => {\n // only reached for keys that getLocalType has already resolved\n const declaration = modelFile.getLocalType(Object.keys(k)[0]) as ClassDeclaration;\n const property = Object.keys(p)[0];\n if(declaration.isMapDeclaration()) {\n if (property === 'KEY') {\n return true;\n } else if(property === 'VALUE') {\n return true;\n } else {\n return false;\n }\n } else {\n return declaration.getOwnProperty(Object.keys(p)[0]);\n }\n };\n\n const result = {\n missingTerms: modelFile.getAllDeclarations().flatMap( (d: Declaration) => this.getTerm(d.getName())\n ? getOwnProperties(d).flatMap( (p: Property) => this.getTerm(d.getName(), getPropertyName(p)) ? null : `${d.getName()}.${getPropertyName(p)}`)\n : d.getName() ).filter( (i: any) => i !== null),\n additionalTerms: this.content.declarations.flatMap( (k: any) => modelFile.getLocalType(Object.keys(k)[0])\n ? Array.isArray(k.properties) ? k.properties.flatMap( (p: any) => checkPropertyExists(k, p) ? null : `${Object.keys(k)[0]}.${Object.keys(p)[0]}`) : null\n : k ).filter( (i: any) => i !== null)\n };\n\n if(!this.content.term){\n result.missingTerms.push('namespace');\n }\n\n return result;\n }\n\n /**\n * Converts the object to JSON\n * @returns {*} the contens of this vocabulary\n */\n toJSON() {\n return this.content;\n }\n}\n\nexport { Vocabulary };\nexport default Vocabulary;\n"],
|
|
5
|
+
"mappings": ";;;;AAsBA,IAAM,aAAN,MAAM,YAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUb,YAAY,mBAAsC,KAAU;AACxD,QAAG,CAAC,mBAAmB;AACnB,YAAM,IAAI,MAAM,qCAAqC;AAAA,IACzD;AACA,QAAG,CAAC,KAAK;AACL,YAAM,IAAI,MAAM,qCAAqC;AAAA,IACzD;AAEA,QAAG,CAAC,IAAI,cAAc;AAClB,YAAM,IAAI,MAAM,0CAA0C;AAAA,IAC9D;AAEA,QAAG,CAAC,IAAI,WAAW;AACf,YAAM,IAAI,MAAM,uCAAuC;AAAA,IAC3D;AAEA,QAAG,CAAC,IAAI,QAAQ;AACZ,YAAM,IAAI,MAAM,oCAAoC;AAAA,IACxD;AAEA,gBAAW,eAAe,IAAI,MAAM;AAEpC,SAAK,oBAAoB;AACzB,SAAK,UAAU;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,eAAuB;AACnB,WAAO,KAAK,QAAQ;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,OAAO,eAAe,QAAgB;AAElC,QAAI,KAAK,OAAO,MAAM;AACtB,QAAG,WAAW,OAAO,YAAY,GAAG;AAChC,YAAM,IAAI,MAAM,wCAAwC;AAAA,IAC5D;AAAA,EACJ;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,YAAoB;AAChB,WAAO,KAAK,QAAQ;AAAA,EACxB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,gBAAwB;AACpB,WAAO,GAAG,KAAK,aAAa,CAAC,IAAI,KAAK,QAAQ,MAAM;AAAA,EAC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AI,OAAO,GAAG,EAAE,QAAQ,CAAC,IAAI,gBAAgB,CAAC,CAAC,EAAE,IAC3I,EAAE,QAAQ,CAAE,EAAE,OAAQ,CAAC,MAAW,MAAM,IAAI;AAAA,MAClD,iBAAiB,KAAK,QAAQ,aAAa,QAAS,CAAC,MAAW,UAAU,aAAa,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,IAClG,MAAM,QAAQ,EAAE,UAAU,IAAI,EAAE,WAAW,QAAS,CAAC,MAAW,oBAAoB,GAAG,CAAC,IAAI,OAAO,GAAG,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,OAAO,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,OAClJ,CAAE,EAAE,OAAQ,CAAC,MAAW,MAAM,IAAI;AAAA,IAC5C;AAEA,QAAG,CAAC,KAAK,QAAQ,MAAK;AAClB,aAAO,aAAa,KAAK,WAAW;AAAA,IACxC;AAEA,WAAO;AAAA,EACX;AAAA;AAAA;AAAA;AAAA;AAAA,EAMA,SAAS;AACL,WAAO,KAAK;AAAA,EAChB;AACJ;AAGA,IAAO,qBAAQ;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "module";
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
|
|
4
|
+
// src/yamlparser.ts
|
|
5
|
+
import YAML from "yaml";
|
|
6
|
+
function parseVocabularyYaml(yamlStr) {
|
|
7
|
+
const doc = YAML.parseDocument(yamlStr);
|
|
8
|
+
if (doc.errors.length > 0) {
|
|
9
|
+
throw doc.errors[0];
|
|
10
|
+
}
|
|
11
|
+
YAML.visit(doc, {
|
|
12
|
+
Pair(_, pair) {
|
|
13
|
+
const key = pair.key.value;
|
|
14
|
+
const value = pair.value;
|
|
15
|
+
if (key === "declarations" || key === "properties") {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (YAML.isScalar(value) && typeof value.value !== "string") {
|
|
19
|
+
pair.value = new YAML.Scalar(String(value.value));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (YAML.isCollection(value)) {
|
|
23
|
+
if (value.range) {
|
|
24
|
+
const [start, end] = value.range;
|
|
25
|
+
pair.value = new YAML.Scalar(yamlStr.substring(start, end));
|
|
26
|
+
} else {
|
|
27
|
+
pair.value = new YAML.Scalar(JSON.stringify(value.toJSON()));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return doc.toJSON();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export {
|
|
36
|
+
parseVocabularyYaml
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-TA74NV57.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/yamlparser.ts"],
|
|
4
|
+
"sourcesContent": ["/*\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport YAML from 'yaml';\n\n/**\n * Parses vocabulary YAML, ensuring all non-structural collection values remain strings.\n * YAML.parse can incorrectly interpret flow syntax (e.g. {\u0427\u043E\u0432\u0435\u043A} or [value])\n * as objects/arrays \u2014 in vocabularies, these should be preserved as literal strings.\n * Only 'declarations' and 'properties' are kept as actual collections.\n * @param {string} yamlStr the YAML string to parse\n * @returns {*} the parsed vocabulary object\n */\nexport function parseVocabularyYaml(yamlStr: string): any {\n const doc = YAML.parseDocument(yamlStr);\n if (doc.errors.length > 0) {\n throw doc.errors[0];\n }\n YAML.visit(doc, {\n Pair(_, pair) {\n const key = (pair.key as YAML.Scalar).value;\n const value = pair.value;\n\n if (key === 'declarations' || key === 'properties') {\n return;\n }\n\n if (YAML.isScalar(value) && typeof value.value !== 'string') {\n pair.value = new YAML.Scalar(String(value.value));\n return;\n }\n\n if (YAML.isCollection(value)) {\n if (value.range) {\n const [start, end] = value.range as [number, number, number];\n pair.value = new YAML.Scalar(yamlStr.substring(start, end));\n } else {\n pair.value = new YAML.Scalar(JSON.stringify(value.toJSON()));\n }\n }\n },\n });\n return doc.toJSON();\n}\n"],
|
|
5
|
+
"mappings": ";;;;AAcA,OAAO,UAAU;AAUV,SAAS,oBAAoB,SAAsB;AACtD,QAAM,MAAM,KAAK,cAAc,OAAO;AACtC,MAAI,IAAI,OAAO,SAAS,GAAG;AACvB,UAAM,IAAI,OAAO,CAAC;AAAA,EACtB;AACA,OAAK,MAAM,KAAK;AAAA,IACZ,KAAK,GAAG,MAAM;AACV,YAAM,MAAO,KAAK,IAAoB;AACtC,YAAM,QAAQ,KAAK;AAEnB,UAAI,QAAQ,kBAAkB,QAAQ,cAAc;AAChD;AAAA,MACJ;AAEA,UAAI,KAAK,SAAS,KAAK,KAAK,OAAO,MAAM,UAAU,UAAU;AACzD,aAAK,QAAQ,IAAI,KAAK,OAAO,OAAO,MAAM,KAAK,CAAC;AAChD;AAAA,MACJ;AAEA,UAAI,KAAK,aAAa,KAAK,GAAG;AAC1B,YAAI,MAAM,OAAO;AACb,gBAAM,CAAC,OAAO,GAAG,IAAI,MAAM;AAC3B,eAAK,QAAQ,IAAI,KAAK,OAAO,QAAQ,UAAU,OAAO,GAAG,CAAC;AAAA,QAC9D,OAAO;AACH,eAAK,QAAQ,IAAI,KAAK,OAAO,KAAK,UAAU,MAAM,OAAO,CAAC,CAAC;AAAA,QAC/D;AAAA,MACJ;AAAA,IACJ;AAAA,EACJ,CAAC;AACD,SAAO,IAAI,OAAO;AACtB;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "module";
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
vocabularymanager_default
|
|
5
|
+
} from "./chunk-3VH3UOGB.mjs";
|
|
6
|
+
import {
|
|
7
|
+
vocabulary_default
|
|
8
|
+
} from "./chunk-7RW3VXN4.mjs";
|
|
9
|
+
import "./chunk-TA74NV57.mjs";
|
|
10
|
+
export {
|
|
11
|
+
vocabulary_default as Vocabulary,
|
|
12
|
+
vocabularymanager_default as VocabularyManager
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "module";
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
Vocabulary,
|
|
5
|
+
vocabulary_default
|
|
6
|
+
} from "./chunk-7RW3VXN4.mjs";
|
|
7
|
+
export {
|
|
8
|
+
Vocabulary,
|
|
9
|
+
vocabulary_default as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=vocabulary.mjs.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from "module";
|
|
2
|
+
const require = __createRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
VocabularyManager,
|
|
5
|
+
vocabularymanager_default
|
|
6
|
+
} from "./chunk-3VH3UOGB.mjs";
|
|
7
|
+
import "./chunk-7RW3VXN4.mjs";
|
|
8
|
+
import "./chunk-TA74NV57.mjs";
|
|
9
|
+
export {
|
|
10
|
+
VocabularyManager,
|
|
11
|
+
vocabularymanager_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=vocabularymanager.mjs.map
|