@finos/legend-extension-dsl-data-space
Advanced tools
Comparing version 1.1.15 to 1.1.16
@@ -16,5 +16,6 @@ /** | ||
*/ | ||
import type { PureModel } from '@finos/legend-graph'; | ||
import type { BasicModel, PureModel } from '@finos/legend-graph'; | ||
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; | ||
export declare const getDataSpace: (path: string, graph: PureModel) => DataSpace; | ||
export declare const getOwnDataSpace: (path: string, graph: BasicModel) => DataSpace; | ||
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.d.ts.map |
@@ -16,4 +16,6 @@ /** | ||
*/ | ||
import { guaranteeNonNullable } from '@finos/legend-shared'; | ||
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; | ||
export const getDataSpace = (path, graph) => graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`); | ||
export const getOwnDataSpace = (path, graph) => guaranteeNonNullable(graph.getOwnNullableExtensionElement(path, DataSpace), `Can't find data space '${path}'`); | ||
//# sourceMappingURL=DSLDataSpace_GraphManagerHelper.js.map |
@@ -20,3 +20,3 @@ /** | ||
import { type Mapping, type PackageableElementReference, type PackageableRuntime, type PureModel, type V1_ElementProtocolClassifierPathGetter, type V1_ElementProtocolDeserializer, type V1_ElementProtocolSerializer, type V1_ElementTransformer, type V1_PackageableElement, type V1_PureModelContextData, PureProtocolProcessorPlugin, V1_ElementBuilder } from '@finos/legend-graph'; | ||
import { Diagram } from '@finos/legend-extension-dsl-diagram'; | ||
import { type Diagram } from '@finos/legend-extension-dsl-diagram'; | ||
export declare const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = "meta::pure::metamodel::dataSpace::DataSpace"; | ||
@@ -23,0 +23,0 @@ export declare class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin { |
@@ -22,6 +22,6 @@ /** | ||
import { V1_dataSpaceModelSchema, V1_DATA_SPACE_ELEMENT_PROTOCOL_TYPE, } from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper'; | ||
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper'; | ||
import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper'; | ||
import { DataSpace, DataSpaceExecutionContext, DataSpaceSupportEmail, } from '../../metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; | ||
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, } from '@finos/legend-graph'; | ||
import { Diagram, V1_DSLDiagram_PackageableElementPointerType, } from '@finos/legend-extension-dsl-diagram'; | ||
import { V1_taggedValueSchema, PackageableElementExplicitReference, V1_PackageableElementPointer, V1_PackageableElementPointerType, V1_buildTaggedValue, V1_transformStereotype, V1_transformTaggedValue, PureProtocolProcessorPlugin, V1_ElementBuilder, V1_initPackageableElement, V1_StereotypePtr, V1_buildFullPath, } from '@finos/legend-graph'; | ||
import { V1_DSLDiagram_PackageableElementPointerType, getDiagram, } from '@finos/legend-extension-dsl-diagram'; | ||
export const DATA_SPACE_ELEMENT_CLASSIFIER_PATH = 'meta::pure::metamodel::dataSpace::DataSpace'; | ||
@@ -40,3 +40,3 @@ export class DSLDataSpace_PureProtocolProcessorPlugin extends PureProtocolProcessorPlugin { | ||
const element = new DataSpace(elementProtocol.name); | ||
const path = context.currentSubGraph.buildPath(elementProtocol.package, elementProtocol.name); | ||
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name); | ||
context.currentSubGraph.setOwnElementInExtension(path, element, DataSpace); | ||
@@ -47,4 +47,4 @@ return element; | ||
assertType(elementProtocol, V1_DataSpace); | ||
const path = context.graph.buildPath(elementProtocol.package, elementProtocol.name); | ||
const element = getDataSpace(path, context.graph); | ||
const path = V1_buildFullPath(elementProtocol.package, elementProtocol.name); | ||
const element = getOwnDataSpace(path, context.currentSubGraph); | ||
element.stereotypes = elementProtocol.stereotypes | ||
@@ -223,3 +223,3 @@ .map((stereotype) => context.resolveStereotype(stereotype)) | ||
if (protocol.featuredDiagrams) { | ||
dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(graph.getExtensionElement(pointer.path, Diagram))); | ||
dataSpace.featuredDiagrams = protocol.featuredDiagrams.map((pointer) => PackageableElementExplicitReference.create(getDiagram(pointer.path, graph))); | ||
} | ||
@@ -226,0 +226,0 @@ if (protocol.supportInfo) { |
{ | ||
"name": "@finos/legend-extension-dsl-data-space", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "Legend extension for Data Space DSL", | ||
@@ -53,11 +53,7 @@ "keywords": [ | ||
"@types/react": "17.0.43", | ||
"@types/react-router-dom": "5.3.2", | ||
"mobx": "6.5.0", | ||
"mobx-react-lite": "3.3.0", | ||
"monaco-editor": "0.33.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-resize-detector": "7.0.0", | ||
"react-router": "5.2.1", | ||
"react-router-dom": "5.3.0", | ||
"serializr": "2.0.5" | ||
@@ -72,3 +68,3 @@ }, | ||
"rimraf": "3.0.2", | ||
"sass": "1.50.0", | ||
"sass": "1.50.1", | ||
"typescript": "4.6.3" | ||
@@ -75,0 +71,0 @@ }, |
{ | ||
"name": "@finos/legend-extension-dsl-data-space", | ||
"version": "1.1.15", | ||
"version": "1.1.16", | ||
"description": "Legend extension for Data Space DSL", | ||
@@ -43,25 +43,21 @@ "keywords": [ | ||
"dependencies": { | ||
"@finos/legend-application": "2.0.13", | ||
"@finos/legend-art": "0.3.17", | ||
"@finos/legend-extension-dsl-diagram": "1.0.35", | ||
"@finos/legend-graph": "4.0.3", | ||
"@finos/legend-model-storage": "0.0.29", | ||
"@finos/legend-query": "1.3.11", | ||
"@finos/legend-server-depot": "0.0.32", | ||
"@finos/legend-shared": "1.3.0", | ||
"@finos/legend-studio": "7.0.2", | ||
"@finos/legend-application": "2.0.14", | ||
"@finos/legend-art": "0.3.18", | ||
"@finos/legend-extension-dsl-diagram": "1.0.36", | ||
"@finos/legend-graph": "5.0.0", | ||
"@finos/legend-model-storage": "0.0.30", | ||
"@finos/legend-query": "1.3.12", | ||
"@finos/legend-server-depot": "0.0.33", | ||
"@finos/legend-shared": "1.3.1", | ||
"@finos/legend-studio": "8.0.0", | ||
"@types/react": "17.0.43", | ||
"@types/react-router-dom": "5.3.2", | ||
"mobx": "6.5.0", | ||
"mobx-react-lite": "3.3.0", | ||
"monaco-editor": "0.33.0", | ||
"react": "17.0.2", | ||
"react-dom": "17.0.2", | ||
"react-resize-detector": "7.0.0", | ||
"react-router": "5.2.1", | ||
"react-router-dom": "5.3.0", | ||
"serializr": "2.0.5" | ||
}, | ||
"devDependencies": { | ||
"@finos/legend-dev-utils": "0.3.20", | ||
"@finos/legend-dev-utils": "0.3.21", | ||
"cross-env": "7.0.3", | ||
@@ -72,3 +68,3 @@ "eslint": "8.13.0", | ||
"rimraf": "3.0.2", | ||
"sass": "1.50.0", | ||
"sass": "1.50.1", | ||
"typescript": "4.6.3" | ||
@@ -75,0 +71,0 @@ }, |
@@ -17,3 +17,4 @@ /** | ||
import type { PureModel } from '@finos/legend-graph'; | ||
import type { BasicModel, PureModel } from '@finos/legend-graph'; | ||
import { guaranteeNonNullable } from '@finos/legend-shared'; | ||
import { DataSpace } from '../models/metamodels/pure/model/packageableElements/dataSpace/DSLDataSpace_DataSpace'; | ||
@@ -23,1 +24,7 @@ | ||
graph.getExtensionElement(path, DataSpace, `Can't find data space '${path}'`); | ||
export const getOwnDataSpace = (path: string, graph: BasicModel): DataSpace => | ||
guaranteeNonNullable( | ||
graph.getOwnNullableExtensionElement(path, DataSpace), | ||
`Can't find data space '${path}'`, | ||
); |
@@ -38,3 +38,3 @@ /** | ||
} from './v1/transformation/pureProtocol/V1_DSLDataSpace_ProtocolHelper'; | ||
import { getDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper'; | ||
import { getOwnDataSpace } from '../../../graphManager/DSLDataSpace_GraphManagerHelper'; | ||
import { | ||
@@ -72,6 +72,8 @@ type DataSpaceSupportInfo, | ||
V1_StereotypePtr, | ||
V1_buildFullPath, | ||
} from '@finos/legend-graph'; | ||
import { | ||
Diagram, | ||
type Diagram, | ||
V1_DSLDiagram_PackageableElementPointerType, | ||
getDiagram, | ||
} from '@finos/legend-extension-dsl-diagram'; | ||
@@ -101,3 +103,3 @@ | ||
const element = new DataSpace(elementProtocol.name); | ||
const path = context.currentSubGraph.buildPath( | ||
const path = V1_buildFullPath( | ||
elementProtocol.package, | ||
@@ -118,7 +120,7 @@ elementProtocol.name, | ||
assertType(elementProtocol, V1_DataSpace); | ||
const path = context.graph.buildPath( | ||
const path = V1_buildFullPath( | ||
elementProtocol.package, | ||
elementProtocol.name, | ||
); | ||
const element = getDataSpace(path, context.graph); | ||
const element = getOwnDataSpace(path, context.currentSubGraph); | ||
element.stereotypes = elementProtocol.stereotypes | ||
@@ -418,3 +420,3 @@ .map((stereotype) => context.resolveStereotype(stereotype)) | ||
PackageableElementExplicitReference.create( | ||
graph.getExtensionElement(pointer.path, Diagram), | ||
getDiagram(pointer.path, graph), | ||
), | ||
@@ -421,0 +423,0 @@ ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
292841
17
4583
+ Added@finos/legend-model-storage@0.0.30(transitive)
+ Added@finos/legend-query@1.3.12(transitive)
+ Added@finos/legend-server-depot@0.0.33(transitive)
+ Added@finos/legend-server-sdlc@1.0.1(transitive)
+ Added@finos/legend-studio@8.0.0(transitive)
- Removed@types/react-router-dom@5.3.2
- Removedmonaco-editor@0.33.0
- Removedreact-router@5.2.1
- Removedreact-router-dom@5.3.0
- Removed@finos/legend-model-storage@0.0.29(transitive)
- Removed@finos/legend-query@1.3.11(transitive)
- Removed@finos/legend-server-depot@0.0.32(transitive)
- Removed@finos/legend-server-sdlc@1.0.0(transitive)
- Removed@finos/legend-studio@7.0.2(transitive)
Updated@finos/legend-art@0.3.18
Updated@finos/legend-graph@5.0.0
Updated@finos/legend-query@1.3.12
Updated@finos/legend-shared@1.3.1
Updated@finos/legend-studio@8.0.0