@accordproject/concerto-metamodel
Advanced tools
Comparing version 3.10.5-20241203105322 to 3.10.5-20250116112652
@@ -89,2 +89,8 @@ { | ||
"$class": "concerto.metamodel@1.0.0.StringProperty", | ||
"name": "resolvedName", | ||
"isArray": false, | ||
"isOptional": true | ||
}, | ||
{ | ||
"$class": "concerto.metamodel@1.0.0.StringProperty", | ||
"name": "namespace", | ||
@@ -1002,6 +1008,6 @@ "isArray": false, | ||
{ | ||
"$class":"concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name":"AliasedType", | ||
"isAbstract":false, | ||
"properties":[ | ||
"$class": "concerto.metamodel@1.0.0.ConceptDeclaration", | ||
"name": "AliasedType", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
@@ -1094,3 +1100,2 @@ "$class": "concerto.metamodel@1.0.0.StringProperty", | ||
}, | ||
{ | ||
@@ -1097,0 +1102,0 @@ "$class": "concerto.metamodel@1.0.0.ConceptDeclaration", |
@@ -66,3 +66,3 @@ /* | ||
'Transaction': {namespace: concertoNs, name: 'Transaction'}, | ||
'Event': {namespace: concertoNs, name: 'Event'} | ||
'Event': {namespace: concertoNs, name: 'Event'}, | ||
}; | ||
@@ -93,3 +93,3 @@ | ||
} | ||
table[localName] = {namespace, name: type}; | ||
table[localName] = localName !== type ? {namespace, name: localName, resolvedName: type} : {namespace, name: type}; | ||
}); | ||
@@ -152,2 +152,5 @@ } else { | ||
metaModel.superType.name = table[name].name; | ||
if (table[name]?.resolvedName) { | ||
metaModel.superType.resolvedName = table[name].resolvedName; | ||
} | ||
} | ||
@@ -178,2 +181,5 @@ (metaModel.properties || []).forEach((property) => { | ||
metaModel.type.name = table[metaModel.type.name].name; | ||
if (table[metaModel.type.name]?.resolvedName) { | ||
metaModel.type.resolvedName = table[metaModel.type.name].resolvedName; | ||
} | ||
} | ||
@@ -280,2 +286,2 @@ break; | ||
getExternalImports, | ||
}; | ||
}; |
{ | ||
"name": "@accordproject/concerto-metamodel", | ||
"version": "3.10.5-20241203105322", | ||
"version": "3.10.5-20250116112652", | ||
"description": "Concerto metamodel utilities", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/accordproject/concerto", |
183185
1871