@finos/legend-graph 10.1.0 → 11.0.0

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.
Files changed (371) hide show
  1. package/lib/DSLData_Exports.d.ts +1 -1
  2. package/lib/DSLData_Exports.d.ts.map +1 -1
  3. package/lib/DSLData_Exports.js +1 -1
  4. package/lib/DSLData_Exports.js.map +1 -1
  5. package/lib/DSLMapping_Exports.d.ts +6 -2
  6. package/lib/DSLMapping_Exports.d.ts.map +1 -1
  7. package/lib/DSLMapping_Exports.js +6 -2
  8. package/lib/DSLMapping_Exports.js.map +1 -1
  9. package/lib/DSLService_Exports.d.ts +1 -0
  10. package/lib/DSLService_Exports.d.ts.map +1 -1
  11. package/lib/DSLService_Exports.js +1 -0
  12. package/lib/DSLService_Exports.js.map +1 -1
  13. package/lib/GraphManagerState.d.ts +21 -18
  14. package/lib/GraphManagerState.d.ts.map +1 -1
  15. package/lib/GraphManagerState.js +68 -59
  16. package/lib/GraphManagerState.js.map +1 -1
  17. package/lib/GraphManagerTestUtils.js.map +1 -1
  18. package/lib/MetaModelConst.d.ts +44 -42
  19. package/lib/MetaModelConst.d.ts.map +1 -1
  20. package/lib/MetaModelConst.js +52 -50
  21. package/lib/MetaModelConst.js.map +1 -1
  22. package/lib/graph/BasicModel.d.ts +1 -1
  23. package/lib/graph/BasicModel.d.ts.map +1 -1
  24. package/lib/graph/BasicModel.js +4 -4
  25. package/lib/graph/BasicModel.js.map +1 -1
  26. package/lib/graph/DependencyManager.d.ts +1 -1
  27. package/lib/graph/DependencyManager.d.ts.map +1 -1
  28. package/lib/graph/DependencyManager.js +2 -2
  29. package/lib/graph/DependencyManager.js.map +1 -1
  30. package/lib/graph/PureModel.d.ts +8 -2
  31. package/lib/graph/PureModel.d.ts.map +1 -1
  32. package/lib/graph/PureModel.js +8 -2
  33. package/lib/graph/PureModel.js.map +1 -1
  34. package/lib/graphManager/AbstractPureGraphManager.d.ts +21 -21
  35. package/lib/graphManager/AbstractPureGraphManager.d.ts.map +1 -1
  36. package/lib/graphManager/AbstractPureGraphManager.js +15 -0
  37. package/lib/graphManager/AbstractPureGraphManager.js.map +1 -1
  38. package/lib/graphManager/GraphManagerEvent.d.ts +1 -0
  39. package/lib/graphManager/GraphManagerEvent.d.ts.map +1 -1
  40. package/lib/graphManager/GraphManagerEvent.js +1 -0
  41. package/lib/graphManager/GraphManagerEvent.js.map +1 -1
  42. package/lib/graphManager/action/analytics/{MappingAnalytics.d.ts → MappingModelCoverageAnalysis.d.ts} +3 -3
  43. package/lib/graphManager/action/analytics/MappingModelCoverageAnalysis.d.ts.map +1 -0
  44. package/lib/graphManager/action/analytics/{MappingAnalytics.js → MappingModelCoverageAnalysis.js} +5 -7
  45. package/lib/graphManager/action/analytics/MappingModelCoverageAnalysis.js.map +1 -0
  46. package/lib/graphManager/action/changeDetection/CoreObserverHelper.d.ts +1 -2
  47. package/lib/graphManager/action/changeDetection/CoreObserverHelper.d.ts.map +1 -1
  48. package/lib/graphManager/action/changeDetection/CoreObserverHelper.js +0 -4
  49. package/lib/graphManager/action/changeDetection/CoreObserverHelper.js.map +1 -1
  50. package/lib/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.d.ts.map +1 -1
  51. package/lib/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.js +4 -2
  52. package/lib/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.js.map +1 -1
  53. package/lib/graphManager/action/changeDetection/DSLMapping_ObserverHelper.d.ts +2 -2
  54. package/lib/graphManager/action/changeDetection/DSLMapping_ObserverHelper.d.ts.map +1 -1
  55. package/lib/graphManager/action/changeDetection/DSLMapping_ObserverHelper.js +16 -8
  56. package/lib/graphManager/action/changeDetection/DSLMapping_ObserverHelper.js.map +1 -1
  57. package/lib/graphManager/action/changeDetection/GraphObserverHelper.js +1 -1
  58. package/lib/graphManager/action/changeDetection/GraphObserverHelper.js.map +1 -1
  59. package/lib/graphManager/action/changeDetection/ValueSpecificationObserver.d.ts.map +1 -1
  60. package/lib/graphManager/action/changeDetection/ValueSpecificationObserver.js +4 -2
  61. package/lib/graphManager/action/changeDetection/ValueSpecificationObserver.js.map +1 -1
  62. package/lib/graphManager/action/validation/DSLService_ValidationHelper.d.ts +3 -2
  63. package/lib/graphManager/action/validation/DSLService_ValidationHelper.d.ts.map +1 -1
  64. package/lib/graphManager/action/validation/DSLService_ValidationHelper.js +1 -1
  65. package/lib/graphManager/action/validation/DSLService_ValidationHelper.js.map +1 -1
  66. package/lib/helpers/DSLMapping_Helper.js +1 -1
  67. package/lib/helpers/DSLMapping_Helper.js.map +1 -1
  68. package/lib/helpers/DomainHelper.d.ts +2 -0
  69. package/lib/helpers/DomainHelper.d.ts.map +1 -1
  70. package/lib/helpers/DomainHelper.js +5 -1
  71. package/lib/helpers/DomainHelper.js.map +1 -1
  72. package/lib/index.d.ts +7 -11
  73. package/lib/index.d.ts.map +1 -1
  74. package/lib/index.js +8 -11
  75. package/lib/index.js.map +1 -1
  76. package/lib/models/metamodels/pure/Reference.d.ts +16 -19
  77. package/lib/models/metamodels/pure/Reference.d.ts.map +1 -1
  78. package/lib/models/metamodels/pure/Reference.js +14 -19
  79. package/lib/models/metamodels/pure/Reference.js.map +1 -1
  80. package/lib/models/metamodels/pure/packageableElements/PackageableElementReference.d.ts +2 -27
  81. package/lib/models/metamodels/pure/packageableElements/PackageableElementReference.d.ts.map +1 -1
  82. package/lib/models/metamodels/pure/packageableElements/PackageableElementReference.js +2 -73
  83. package/lib/models/metamodels/pure/packageableElements/PackageableElementReference.js.map +1 -1
  84. package/lib/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.d.ts +2 -2
  85. package/lib/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.d.ts.map +1 -1
  86. package/lib/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js +4 -1
  87. package/lib/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.js.map +1 -1
  88. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.d.ts +3 -3
  89. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.d.ts.map +1 -1
  90. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js +3 -3
  91. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.js.map +1 -1
  92. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.d.ts +10 -10
  93. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.d.ts.map +1 -1
  94. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.js +7 -7
  95. package/lib/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.js.map +1 -1
  96. package/lib/models/metamodels/pure/packageableElements/mapping/PropertyMapping.d.ts +18 -14
  97. package/lib/models/metamodels/pure/packageableElements/mapping/PropertyMapping.d.ts.map +1 -1
  98. package/lib/models/metamodels/pure/packageableElements/mapping/PropertyMapping.js +17 -13
  99. package/lib/models/metamodels/pure/packageableElements/mapping/PropertyMapping.js.map +1 -1
  100. package/lib/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.d.ts +8 -19
  101. package/lib/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.d.ts.map +1 -1
  102. package/lib/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.js +13 -34
  103. package/lib/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.js.map +1 -1
  104. package/lib/models/metamodels/pure/packageableElements/service/MultiExecutionServiceTestResult.d.ts +20 -0
  105. package/lib/models/metamodels/pure/packageableElements/service/MultiExecutionServiceTestResult.d.ts.map +1 -0
  106. package/lib/models/metamodels/pure/packageableElements/service/MultiExecutionServiceTestResult.js +20 -0
  107. package/lib/models/metamodels/pure/packageableElements/service/MultiExecutionServiceTestResult.js.map +1 -0
  108. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.d.ts +4 -3
  109. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.d.ts.map +1 -1
  110. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js +1 -1
  111. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js.map +1 -1
  112. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.d.ts +4 -4
  113. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.d.ts.map +1 -1
  114. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js +2 -3
  115. package/lib/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.js.map +1 -1
  116. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.d.ts +3 -3
  117. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.d.ts.map +1 -1
  118. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js +1 -1
  119. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.js.map +1 -1
  120. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.d.ts +4 -4
  121. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.d.ts.map +1 -1
  122. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js +2 -3
  123. package/lib/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.js.map +1 -1
  124. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.d.ts +3 -2
  125. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.d.ts.map +1 -1
  126. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.js.map +1 -1
  127. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.d.ts +2 -2
  128. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.d.ts.map +1 -1
  129. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js +2 -3
  130. package/lib/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.js.map +1 -1
  131. package/lib/models/metamodels/pure/valueSpecification/GraphFetchTree.d.ts +3 -3
  132. package/lib/models/metamodels/pure/valueSpecification/GraphFetchTree.d.ts.map +1 -1
  133. package/lib/models/metamodels/pure/valueSpecification/GraphFetchTree.js +2 -5
  134. package/lib/models/metamodels/pure/valueSpecification/GraphFetchTree.js.map +1 -1
  135. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.d.ts.map +1 -1
  136. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.js +4 -4
  137. package/lib/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.js.map +1 -1
  138. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.d.ts +4 -8
  139. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.d.ts.map +1 -1
  140. package/lib/models/protocols/pure/PureProtocolProcessorPlugin.js.map +1 -1
  141. package/lib/models/protocols/pure/v1/V1_PureGraphManager.d.ts +35 -19
  142. package/lib/models/protocols/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
  143. package/lib/models/protocols/pure/v1/V1_PureGraphManager.js +159 -158
  144. package/lib/models/protocols/pure/v1/V1_PureGraphManager.js.map +1 -1
  145. package/lib/models/protocols/pure/v1/engine/V1_Engine.d.ts +4 -4
  146. package/lib/models/protocols/pure/v1/engine/V1_Engine.d.ts.map +1 -1
  147. package/lib/models/protocols/pure/v1/engine/V1_Engine.js +5 -7
  148. package/lib/models/protocols/pure/v1/engine/V1_Engine.js.map +1 -1
  149. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.d.ts +2 -4
  150. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
  151. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.js +52 -53
  152. package/lib/models/protocols/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
  153. package/lib/models/protocols/pure/v1/engine/analytics/{V1_MappingAnalytics.d.ts → V1_MappingModelCoverageAnalysis.d.ts} +2 -2
  154. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingModelCoverageAnalysis.d.ts.map +1 -0
  155. package/lib/models/protocols/pure/v1/engine/analytics/{V1_MappingAnalytics.js → V1_MappingModelCoverageAnalysis.js} +2 -2
  156. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingModelCoverageAnalysis.js.map +1 -0
  157. package/lib/models/protocols/pure/v1/helper/V1_DomainHelper.d.ts +18 -0
  158. package/lib/models/protocols/pure/v1/helper/V1_DomainHelper.d.ts.map +1 -0
  159. package/lib/models/protocols/pure/v1/helper/V1_DomainHelper.js +35 -0
  160. package/lib/models/protocols/pure/v1/helper/V1_DomainHelper.js.map +1 -0
  161. package/lib/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.d.ts +17 -0
  162. package/lib/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.d.ts.map +1 -1
  163. package/lib/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.js +18 -5
  164. package/lib/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.js.map +1 -1
  165. package/lib/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts.map +1 -1
  166. package/lib/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.js +1 -1
  167. package/lib/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map +1 -1
  168. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_MultiExecutionServiceTestResult.d.ts +20 -0
  169. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_MultiExecutionServiceTestResult.d.ts.map +1 -0
  170. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_MultiExecutionServiceTestResult.js +20 -0
  171. package/lib/models/protocols/pure/v1/model/packageableElements/service/V1_MultiExecutionServiceTestResult.js.map +1 -0
  172. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.d.ts.map +1 -1
  173. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.js +50 -86
  174. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.js.map +1 -1
  175. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.js +1 -1
  176. package/lib/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.js.map +1 -1
  177. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingFirstPassBuilder.d.ts → V1_ClassMappingFirstPassBuilder.d.ts} +3 -3
  178. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ClassMappingFirstPassBuilder.d.ts.map +1 -0
  179. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingFirstPassBuilder.js → V1_ClassMappingFirstPassBuilder.js} +6 -7
  180. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ClassMappingFirstPassBuilder.js.map +1 -0
  181. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingSecondPassBuilder.d.ts → V1_ClassMappingSecondPassBuilder.d.ts} +2 -2
  182. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ClassMappingSecondPassBuilder.d.ts.map +1 -0
  183. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingSecondPassBuilder.js → V1_ClassMappingSecondPassBuilder.js} +13 -14
  184. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ClassMappingSecondPassBuilder.js.map +1 -0
  185. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFifthPassBuilder.d.ts → V1_ElementFifthPassBuilder.d.ts} +2 -2
  186. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.d.ts.map +1 -0
  187. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFifthPassBuilder.js → V1_ElementFifthPassBuilder.js} +2 -2
  188. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFifthPassBuilder.js.map +1 -0
  189. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFirstPassBuilder.d.ts → V1_ElementFirstPassBuilder.d.ts} +2 -2
  190. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.d.ts.map +1 -0
  191. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFirstPassBuilder.js → V1_ElementFirstPassBuilder.js} +2 -2
  192. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFirstPassBuilder.js.map +1 -0
  193. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFourthPassBuilder.d.ts → V1_ElementFourthPassBuilder.d.ts} +2 -2
  194. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.d.ts.map +1 -0
  195. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFourthPassBuilder.js → V1_ElementFourthPassBuilder.js} +4 -4
  196. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementFourthPassBuilder.js.map +1 -0
  197. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphSecondPassBuilder.d.ts → V1_ElementSecondPassBuilder.d.ts} +3 -3
  198. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -0
  199. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphSecondPassBuilder.js → V1_ElementSecondPassBuilder.js} +16 -17
  200. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -0
  201. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphThirdPassBuilder.d.ts → V1_ElementThirdPassBuilder.d.ts} +3 -3
  202. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.d.ts.map +1 -0
  203. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphThirdPassBuilder.js → V1_ElementThirdPassBuilder.js} +7 -7
  204. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -0
  205. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.d.ts.map +1 -1
  206. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.js +2 -2
  207. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.js.map +1 -1
  208. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelPropertyMappingBuilder.d.ts → V1_PropertyMappingBuilder.d.ts} +4 -4
  209. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PropertyMappingBuilder.d.ts.map +1 -0
  210. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelPropertyMappingBuilder.js → V1_PropertyMappingBuilder.js} +50 -34
  211. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_PropertyMappingBuilder.js.map +1 -0
  212. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelRawValueSpecificationBuilder.d.ts → V1_RawValueSpecificationBuilder.d.ts} +3 -3
  213. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_RawValueSpecificationBuilder.d.ts.map +1 -0
  214. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelRawValueSpecificationBuilder.js → V1_RawValueSpecificationBuilder.js} +2 -2
  215. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_RawValueSpecificationBuilder.js.map +1 -0
  216. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.d.ts.map +1 -1
  217. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.js +2 -2
  218. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.js.map +1 -1
  219. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.js +3 -3
  220. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.js.map +1 -1
  221. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.d.ts +22 -0
  222. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.d.ts.map +1 -0
  223. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelConnectionBuilder.js → helpers/V1_ConnectionBuilderHelper.js} +16 -15
  224. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.js.map +1 -0
  225. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.d.ts +2 -11
  226. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.d.ts.map +1 -1
  227. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.js +2 -1
  228. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.js.map +1 -1
  229. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.d.ts +1 -1
  230. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.d.ts.map +1 -1
  231. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js +12 -12
  232. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.js.map +1 -1
  233. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js +1 -1
  234. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js.map +1 -1
  235. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.d.ts.map +1 -1
  236. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js +5 -6
  237. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.js.map +1 -1
  238. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.js +4 -4
  239. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.js.map +1 -1
  240. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.d.ts.map +1 -1
  241. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.js +7 -8
  242. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.js.map +1 -1
  243. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.d.ts +1 -1
  244. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.d.ts.map +1 -1
  245. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.js +4 -4
  246. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.js.map +1 -1
  247. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.d.ts.map +1 -1
  248. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js +2 -2
  249. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js.map +1 -1
  250. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.d.ts.map +1 -1
  251. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js +2 -2
  252. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.js.map +1 -1
  253. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.d.ts.map +1 -1
  254. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js +3 -3
  255. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.js.map +1 -1
  256. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.d.ts +5 -2
  257. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.d.ts.map +1 -1
  258. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.js +17 -2
  259. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.js.map +1 -1
  260. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.d.ts.map +1 -1
  261. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js +3 -4
  262. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.js.map +1 -1
  263. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.d.ts +3 -1
  264. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.d.ts.map +1 -1
  265. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js +16 -4
  266. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js.map +1 -1
  267. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js +9 -9
  268. package/lib/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.js.map +1 -1
  269. package/lib/package.json +5 -5
  270. package/package.json +8 -8
  271. package/src/DSLData_Exports.ts +1 -1
  272. package/src/DSLMapping_Exports.ts +20 -6
  273. package/src/DSLService_Exports.ts +1 -0
  274. package/src/GraphManagerState.ts +104 -91
  275. package/src/GraphManagerTestUtils.tsx +4 -4
  276. package/src/MetaModelConst.ts +59 -56
  277. package/src/graph/BasicModel.ts +4 -4
  278. package/src/graph/DependencyManager.ts +2 -2
  279. package/src/graph/PureModel.ts +10 -2
  280. package/src/graphManager/AbstractPureGraphManager.ts +54 -40
  281. package/src/graphManager/GraphManagerEvent.ts +1 -0
  282. package/src/graphManager/action/analytics/{MappingAnalytics.ts → MappingModelCoverageAnalysis.ts} +8 -6
  283. package/src/graphManager/action/changeDetection/CoreObserverHelper.ts +1 -14
  284. package/src/graphManager/action/changeDetection/DSLExternalFormat_ObserverHelper.ts +3 -2
  285. package/src/graphManager/action/changeDetection/DSLMapping_ObserverHelper.ts +17 -12
  286. package/src/graphManager/action/changeDetection/GraphObserverHelper.ts +2 -2
  287. package/src/graphManager/action/changeDetection/ValueSpecificationObserver.ts +3 -2
  288. package/src/graphManager/action/validation/DSLService_ValidationHelper.ts +4 -7
  289. package/src/helpers/DSLMapping_Helper.ts +1 -1
  290. package/src/helpers/DomainHelper.ts +14 -0
  291. package/src/index.ts +14 -18
  292. package/src/models/metamodels/pure/Reference.ts +17 -26
  293. package/src/models/metamodels/pure/packageableElements/PackageableElementReference.ts +2 -131
  294. package/src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts +6 -3
  295. package/src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts +10 -9
  296. package/src/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.ts +18 -18
  297. package/src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts +21 -17
  298. package/src/models/metamodels/pure/packageableElements/mapping/SetImplementationReference.ts +17 -66
  299. package/src/models/metamodels/pure/packageableElements/service/MultiExecutionServiceTestResult.ts +21 -0
  300. package/src/models/metamodels/pure/packageableElements/store/flatData/mapping/EmbeddedFlatDataPropertyMapping.ts +5 -7
  301. package/src/models/metamodels/pure/packageableElements/store/flatData/mapping/FlatDataPropertyMapping.ts +6 -6
  302. package/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PureInstanceSetImplementation.ts +4 -7
  303. package/src/models/metamodels/pure/packageableElements/store/modelToModel/mapping/PurePropertyMapping.ts +6 -6
  304. package/src/models/metamodels/pure/packageableElements/store/relational/mapping/EmbeddedRelationalInstanceSetImplementation.ts +4 -6
  305. package/src/models/metamodels/pure/packageableElements/store/relational/mapping/RelationalPropertyMapping.ts +3 -3
  306. package/src/models/metamodels/pure/valueSpecification/GraphFetchTree.ts +4 -10
  307. package/src/models/protocols/pure/DSLExternalFormat_PureProtocolProcessorPlugin.ts +5 -10
  308. package/src/models/protocols/pure/PureProtocolProcessorPlugin.ts +8 -8
  309. package/src/models/protocols/pure/v1/V1_PureGraphManager.ts +248 -255
  310. package/src/models/protocols/pure/v1/engine/V1_Engine.ts +7 -13
  311. package/src/models/protocols/pure/v1/engine/V1_EngineServerClient.ts +34 -45
  312. package/src/models/protocols/pure/v1/engine/analytics/{V1_MappingAnalytics.ts → V1_MappingModelCoverageAnalysis.ts} +1 -1
  313. package/src/models/protocols/pure/v1/helper/V1_DomainHelper.ts +51 -0
  314. package/src/models/protocols/pure/v1/model/packageableElements/mapping/V1_PropertyMapping.ts +18 -5
  315. package/src/models/protocols/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +1 -1
  316. package/src/models/protocols/pure/v1/model/packageableElements/service/V1_MultiExecutionServiceTestResult.ts +21 -0
  317. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_MappingTransformer.ts +32 -86
  318. package/src/models/protocols/pure/v1/transformation/pureGraph/from/V1_ValueSpecificationTransformer.ts +1 -1
  319. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingFirstPassBuilder.ts → V1_ClassMappingFirstPassBuilder.ts} +6 -10
  320. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelClassMappingSecondPassBuilder.ts → V1_ClassMappingSecondPassBuilder.ts} +12 -19
  321. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFifthPassBuilder.ts → V1_ElementFifthPassBuilder.ts} +1 -1
  322. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFirstPassBuilder.ts → V1_ElementFirstPassBuilder.ts} +1 -1
  323. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphFourthPassBuilder.ts → V1_ElementFourthPassBuilder.ts} +3 -6
  324. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphSecondPassBuilder.ts → V1_ElementSecondPassBuilder.ts} +18 -20
  325. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelGraphThirdPassBuilder.ts → V1_ElementThirdPassBuilder.ts} +6 -9
  326. package/src/models/protocols/pure/v1/transformation/pureGraph/to/V1_ExecutionPlanBuilder.ts +2 -4
  327. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelPropertyMappingBuilder.ts → V1_PropertyMappingBuilder.ts} +105 -40
  328. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelRawValueSpecificationBuilder.ts → V1_RawValueSpecificationBuilder.ts} +2 -2
  329. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AggregationAwareClassMappingBuilderHelper.ts +2 -5
  330. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_AssociationMappingHelper.ts +3 -3
  331. package/src/models/protocols/pure/v1/transformation/pureGraph/to/{V1_ProtocolToMetaModelConnectionBuilder.ts → helpers/V1_ConnectionBuilderHelper.ts} +33 -26
  332. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DataElementBuilderHelper.ts +7 -3
  333. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DatabaseBuilderHelper.ts +14 -12
  334. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts +1 -1
  335. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MappingBuilderHelper.ts +6 -9
  336. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoningBuilderHelper.ts +4 -4
  337. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ProcessingContext.ts +7 -8
  338. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RelationalClassMappingBuilderHelper.ts +5 -5
  339. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts +6 -5
  340. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ServiceBuilderHelper.ts +2 -4
  341. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestBuilderHelper.ts +3 -7
  342. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_TestResultBuilderHelper.ts +25 -4
  343. package/src/models/protocols/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationBuilderHelper.ts +3 -6
  344. package/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.ts +29 -3
  345. package/src/models/protocols/pure/v1/transformation/pureProtocol/serializationHelpers/V1_ValueSpecificationSerializer.ts +9 -9
  346. package/tsconfig.json +15 -12
  347. package/lib/graphManager/action/analytics/MappingAnalytics.d.ts.map +0 -1
  348. package/lib/graphManager/action/analytics/MappingAnalytics.js.map +0 -1
  349. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.d.ts.map +0 -1
  350. package/lib/models/protocols/pure/v1/engine/analytics/V1_MappingAnalytics.js.map +0 -1
  351. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.d.ts.map +0 -1
  352. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingFirstPassBuilder.js.map +0 -1
  353. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.d.ts.map +0 -1
  354. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelClassMappingSecondPassBuilder.js.map +0 -1
  355. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.d.ts +0 -40
  356. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.d.ts.map +0 -1
  357. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelConnectionBuilder.js.map +0 -1
  358. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.d.ts.map +0 -1
  359. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFifthPassBuilder.js.map +0 -1
  360. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.d.ts.map +0 -1
  361. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFirstPassBuilder.js.map +0 -1
  362. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.d.ts.map +0 -1
  363. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphFourthPassBuilder.js.map +0 -1
  364. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.d.ts.map +0 -1
  365. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphSecondPassBuilder.js.map +0 -1
  366. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.d.ts.map +0 -1
  367. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelGraphThirdPassBuilder.js.map +0 -1
  368. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.d.ts.map +0 -1
  369. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelPropertyMappingBuilder.js.map +0 -1
  370. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.d.ts.map +0 -1
  371. package/lib/models/protocols/pure/v1/transformation/pureGraph/to/V1_ProtocolToMetaModelRawValueSpecificationBuilder.js.map +0 -1
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,uHAAuH;AAEvH,aAAa;AACb,cAAc,uCAAuC,CAAC;AACtD,cAAc,uEAAuE,CAAC;AACtF,cAAc,oEAAoE,CAAC;AACnF,cAAc,6EAA6E,CAAC;AAC5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cAAc,8DAA8D,CAAC;AAC7E,cAAc,yEAAyE,CAAC;AACxF,cAAc,0DAA0D,CAAC;AACzE,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,wDAAwD,CAAC;AACvE,cAAc,uDAAuD,CAAC;AACtE,cAAc,sDAAsD,CAAC;AAErE,8GAA8G;AAE9G,cAAc,sDAAsD,CAAC;AACrE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC;AAEhF,4GAA4G;AAE5G,cAAc,qEAAqE,CAAC;AACpF,cAAc,6DAA6D,CAAC;AAC5E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,oEAAoE,CAAC;AACnF,cAAc,wEAAwE,CAAC;AACvF,cAAc,qEAAqE,CAAC;AACpF,cAAc,yEAAyE,CAAC;AACxF,cAAc,uEAAuE,CAAC;AACtF,cAAc,8DAA8D,CAAC;AAC7E,cAAc,2EAA2E,CAAC;AAC1F,cAAc,oEAAoE,CAAC;AACnF,cAAc,oFAAoF,CAAC;AACnG,cAAc,kEAAkE,CAAC;AAEjF,cAAc,+DAA+D,CAAC;AAE9E,2GAA2G;AAE3G,cAAc,4DAA4D,CAAC;AAC3E,cAAc,iEAAiE,CAAC;AAChF,cAAc,sEAAsE,CAAC;AACrF,cAAc,sEAAsE,CAAC;AAErF,uGAAuG;AACvG;;;GAGG;AAEH,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yCAAyC,CAAC;AACxD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC"}
@@ -30,8 +30,8 @@
30
30
  * (let's say the user put in an import statement and expect the pointer to just have name of class instead of its full-path,
31
31
  * we would like to keep the pointer as is during serialization if the class has not been changed).
32
32
  *
33
- * As such, this class `Reference` is kept to be as generic as possible, because we can extend it to have many various
34
- * information. But only one thing we know for sure that is a refernece must have a `value`, which is the actual
33
+ * As such, this class `Reference` is kept to be as generic as possible, because we can extend it hold more
34
+ * information. But regardless, only one thing we know for sure that is a reference must have a `value`, which is the actual
35
35
  * object-reference
36
36
  *
37
37
  * Given such meaning for reference, below are some guideline on how we modify the reference while modifying the metamodel:
@@ -39,35 +39,32 @@
39
39
  * NEVER change the reference instance: only change the value of the reference so other information (inference context)
40
40
  * are kept, so we can do proper serialization
41
41
  * 2. For property which is optional and single (multiplicity: [0..1]):
42
- * NEVER change the reference instance. Turn this into a required single property of `OptionalReference`
43
- * so the value can be `undefined`. This way we can keep the inference context.
42
+ * NEVER change the reference instance, unless the reference is removed (i.e. set to `undefined`).
43
+ * If the reference is unset, and later on re-established, we will create a fresh new reference, even if it has the
44
+ * same as the original's. This is intended so the behavior is consistent with case (3) below.
45
+ * NOTE: We have considered another alternative to always keep the reference, just like case (1) using the
46
+ * construct `OptionalReference`; this way we can keep the inference context. However, there are a few downsides to this:
47
+ * i. it is complicated, it makes the code for reference complex for a small gain
48
+ * ii. it makes our treatment of reference diverging from Pure and would make it hard to code-generate the metamodels
49
+ * iii. it makes case (2) and case (3) treatment seem inconsistent.
44
50
  * 3. For property which can be multiple (multiplicity: [*] or similar):
45
- * ALWAYS change the reference instance, for DELETE or ADD, this is obvious, but for MODIFY, we can follow case 1,
51
+ * ALWAYS change the reference instance, for DELETE or ADD, this is obvious, but for MODIFY, we can follow case (1),
46
52
  * but for simplicity sake, we will just swap out to use new a new reference
47
53
  */
48
54
  export declare abstract class Reference {
49
- abstract value?: unknown | undefined;
50
- }
51
- export declare abstract class OptionalReference extends Reference {
52
- }
53
- export declare abstract class RequiredReference extends Reference {
54
55
  abstract value: unknown;
55
56
  }
56
57
  /**
57
- * This is intended for information derived from a reference, such as property pointer, enum-value pointer, etc.
58
- * since those references we resolve after we resolve the reference to the class or enumeration they belong to.
58
+ * This can be used for references to sub-elements, such as property pointer, enum-value pointer, etc.
59
+ * since those references are often resolved after we resolve the reference to the class or enumeration they belong to.
59
60
  * In other words, these reference has an owner reference.
60
61
  *
61
62
  * The rule for modifying these references is similar to that of `Reference` with one addition. That is
62
63
  * if we modify the child, we should ALWAYS modify the owner reference accordingly (except when we have a list, we will
63
64
  * trash the reference)
64
65
  */
65
- export declare abstract class ReferenceWithOwner extends RequiredReference {
66
- readonly ownerReference: RequiredReference;
67
- protected constructor(ownerReference: RequiredReference);
68
- }
69
- export declare abstract class OptionalReferenceWithOwner extends OptionalReference {
70
- readonly ownerReference: OptionalReference;
71
- protected constructor(ownerReference: OptionalReference);
66
+ export declare abstract class ReferenceWithOwner extends Reference {
67
+ readonly ownerReference: Reference;
68
+ protected constructor(ownerReference: Reference);
72
69
  }
73
70
  //# sourceMappingURL=Reference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../../src/models/metamodels/pure/Reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,8BAAsB,SAAS;IAC7B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACtC;AAED,8BAAsB,iBAAkB,SAAQ,SAAS;CAAG;AAE5D,8BAAsB,iBAAkB,SAAQ,SAAS;IACvD,SAAkB,KAAK,EAAE,OAAO,CAAC;CAClC;AAED;;;;;;;;GAQG;AACH,8BAAsB,kBAAmB,SAAQ,iBAAiB;IAChE,QAAQ,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAE3C,SAAS,aAAa,cAAc,EAAE,iBAAiB;CAIxD;AAED,8BAAsB,0BAA2B,SAAQ,iBAAiB;IACxE,QAAQ,CAAC,cAAc,EAAE,iBAAiB,CAAC;IAE3C,SAAS,aAAa,cAAc,EAAE,iBAAiB;CAIxD"}
1
+ {"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../../src/models/metamodels/pure/Reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,8BAAsB,SAAS;IAC7B,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;GAQG;AACH,8BAAsB,kBAAmB,SAAQ,SAAS;IACxD,QAAQ,CAAC,cAAc,EAAE,SAAS,CAAC;IAEnC,SAAS,aAAa,cAAc,EAAE,SAAS;CAIhD"}
@@ -30,8 +30,8 @@
30
30
  * (let's say the user put in an import statement and expect the pointer to just have name of class instead of its full-path,
31
31
  * we would like to keep the pointer as is during serialization if the class has not been changed).
32
32
  *
33
- * As such, this class `Reference` is kept to be as generic as possible, because we can extend it to have many various
34
- * information. But only one thing we know for sure that is a refernece must have a `value`, which is the actual
33
+ * As such, this class `Reference` is kept to be as generic as possible, because we can extend it hold more
34
+ * information. But regardless, only one thing we know for sure that is a reference must have a `value`, which is the actual
35
35
  * object-reference
36
36
  *
37
37
  * Given such meaning for reference, below are some guideline on how we modify the reference while modifying the metamodel:
@@ -39,35 +39,30 @@
39
39
  * NEVER change the reference instance: only change the value of the reference so other information (inference context)
40
40
  * are kept, so we can do proper serialization
41
41
  * 2. For property which is optional and single (multiplicity: [0..1]):
42
- * NEVER change the reference instance. Turn this into a required single property of `OptionalReference`
43
- * so the value can be `undefined`. This way we can keep the inference context.
42
+ * NEVER change the reference instance, unless the reference is removed (i.e. set to `undefined`).
43
+ * If the reference is unset, and later on re-established, we will create a fresh new reference, even if it has the
44
+ * same as the original's. This is intended so the behavior is consistent with case (3) below.
45
+ * NOTE: We have considered another alternative to always keep the reference, just like case (1) using the
46
+ * construct `OptionalReference`; this way we can keep the inference context. However, there are a few downsides to this:
47
+ * i. it is complicated, it makes the code for reference complex for a small gain
48
+ * ii. it makes our treatment of reference diverging from Pure and would make it hard to code-generate the metamodels
49
+ * iii. it makes case (2) and case (3) treatment seem inconsistent.
44
50
  * 3. For property which can be multiple (multiplicity: [*] or similar):
45
- * ALWAYS change the reference instance, for DELETE or ADD, this is obvious, but for MODIFY, we can follow case 1,
51
+ * ALWAYS change the reference instance, for DELETE or ADD, this is obvious, but for MODIFY, we can follow case (1),
46
52
  * but for simplicity sake, we will just swap out to use new a new reference
47
53
  */
48
54
  export class Reference {
49
55
  }
50
- export class OptionalReference extends Reference {
51
- }
52
- export class RequiredReference extends Reference {
53
- }
54
56
  /**
55
- * This is intended for information derived from a reference, such as property pointer, enum-value pointer, etc.
56
- * since those references we resolve after we resolve the reference to the class or enumeration they belong to.
57
+ * This can be used for references to sub-elements, such as property pointer, enum-value pointer, etc.
58
+ * since those references are often resolved after we resolve the reference to the class or enumeration they belong to.
57
59
  * In other words, these reference has an owner reference.
58
60
  *
59
61
  * The rule for modifying these references is similar to that of `Reference` with one addition. That is
60
62
  * if we modify the child, we should ALWAYS modify the owner reference accordingly (except when we have a list, we will
61
63
  * trash the reference)
62
64
  */
63
- export class ReferenceWithOwner extends RequiredReference {
64
- ownerReference;
65
- constructor(ownerReference) {
66
- super();
67
- this.ownerReference = ownerReference;
68
- }
69
- }
70
- export class OptionalReferenceWithOwner extends OptionalReference {
65
+ export class ReferenceWithOwner extends Reference {
71
66
  ownerReference;
72
67
  constructor(ownerReference) {
73
68
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../../src/models/metamodels/pure/Reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,OAAgB,SAAS;CAE9B;AAED,MAAM,OAAgB,iBAAkB,SAAQ,SAAS;CAAG;AAE5D,MAAM,OAAgB,iBAAkB,SAAQ,SAAS;CAExD;AAED;;;;;;;;GAQG;AACH,MAAM,OAAgB,kBAAmB,SAAQ,iBAAiB;IACvD,cAAc,CAAoB;IAE3C,YAAsB,cAAiC;QACrD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;CACF;AAED,MAAM,OAAgB,0BAA2B,SAAQ,iBAAiB;IAC/D,cAAc,CAAoB;IAE3C,YAAsB,cAAiC;QACrD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;CACF"}
1
+ {"version":3,"file":"Reference.js","sourceRoot":"","sources":["../../../../src/models/metamodels/pure/Reference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,OAAgB,SAAS;CAE9B;AAED;;;;;;;;GAQG;AACH,MAAM,OAAgB,kBAAmB,SAAQ,SAAS;IAC/C,cAAc,CAAY;IAEnC,YAAsB,cAAyB;QAC7C,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;CACF"}
@@ -15,8 +15,8 @@
15
15
  */
16
16
  import type { PackageableElement } from './PackageableElement.js';
17
17
  import type { Section } from './section/Section.js';
18
- import { RequiredReference, OptionalReference } from '../Reference.js';
19
- export declare abstract class PackageableElementReference<T extends PackageableElement> extends RequiredReference {
18
+ import { Reference } from '../Reference.js';
19
+ export declare abstract class PackageableElementReference<T extends PackageableElement> extends Reference {
20
20
  value: T;
21
21
  protected constructor(value: T);
22
22
  abstract get valueForSerialization(): string | undefined;
@@ -56,29 +56,4 @@ export declare class PackageableElementImplicitReference<T extends PackageableEl
56
56
  static resolveFromSection<V extends PackageableElement>(value: V, input: string, parentSection: Section | undefined): PackageableElementImplicitReference<V>;
57
57
  get valueForSerialization(): string | undefined;
58
58
  }
59
- export declare abstract class OptionalPackageableElementReference<T extends PackageableElement> extends OptionalReference {
60
- value?: T | undefined;
61
- protected constructor(value: T | undefined);
62
- abstract get valueForSerialization(): string | undefined;
63
- }
64
- export declare class OptionalPackageableElementExplicitReference<T extends PackageableElement> extends OptionalPackageableElementReference<T> {
65
- private constructor();
66
- static create<V extends PackageableElement>(value: V | undefined): OptionalPackageableElementExplicitReference<V>;
67
- get valueForSerialization(): string | undefined;
68
- }
69
- export declare class OptionalPackageableElementImplicitReference<T extends PackageableElement> extends OptionalPackageableElementReference<T> {
70
- readonly initialResolvedPath?: string | undefined;
71
- readonly input?: string | undefined;
72
- readonly parentSection?: Section | undefined;
73
- readonly skipSectionCheck?: boolean | undefined;
74
- private constructor();
75
- static create<V extends PackageableElement>(value: V | undefined, input: string | undefined): OptionalPackageableElementImplicitReference<V>;
76
- /**
77
- * Use this creator method when the reference is created by
78
- * resolving imports using section majorly when building the graph.
79
- */
80
- static resolveFromSection<V extends PackageableElement>(value: V | undefined, input: string | undefined, parentSection: Section | undefined): OptionalPackageableElementImplicitReference<V>;
81
- get valueForSerialization(): string | undefined;
82
- }
83
- export declare const optionalizePackageableElementReference: <V extends PackageableElement>(reference: PackageableElementReference<V> | undefined) => OptionalPackageableElementReference<V>;
84
59
  //# sourceMappingURL=PackageableElementReference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PackageableElementReference.d.ts","sourceRoot":"","sources":["../../../../../src/models/metamodels/pure/packageableElements/PackageableElementReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,8BAAsB,2BAA2B,CAC/C,CAAC,SAAS,kBAAkB,CAC5B,SAAQ,iBAAiB;IACzB,KAAK,EAAE,CAAC,CAAC;IAET,SAAS,aAAa,KAAK,EAAE,CAAC;IAK9B,QAAQ,KAAK,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED,qBAAa,mCAAmC,CAC9C,CAAC,SAAS,kBAAkB,CAC5B,SAAQ,2BAA2B,CAAC,CAAC,CAAC;IACtC,OAAO;IAIP,MAAM,CAAC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O;IAIP,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,kBAAkB,EACxC,KAAK,EAAE,CAAC,GAAG,SAAS,GACnB,2CAA2C,CAAC,CAAC,CAAC;IAIjD,IAAI,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE9C;CACF;AAED,qBAAa,2CAA2C,CACtD,CAAC,SAAS,kBAAkB,CAC5B,SAAQ,mCAAmC,CAAC,CAAC,CAAC;IAC9C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAEhD,OAAO;IAaP,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,kBAAkB,EACxC,KAAK,EAAE,CAAC,GAAG,SAAS,EACpB,KAAK,EAAE,MAAM,GAAG,SAAS,GACxB,2CAA2C,CAAC,CAAC,CAAC;IASjD;;;OAGG;IACH,MAAM,CAAC,kBAAkB,CAAC,CAAC,SAAS,kBAAkB,EACpD,KAAK,EAAE,CAAC,GAAG,SAAS,EACpB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,aAAa,EAAE,OAAO,GAAG,SAAS,GACjC,2CAA2C,CAAC,CAAC,CAAC;IASjD,IAAI,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAsB9C;CACF;AAED,eAAO,MAAM,sCAAsC,iIAoBlD,CAAC"}
1
+ {"version":3,"file":"PackageableElementReference.d.ts","sourceRoot":"","sources":["../../../../../src/models/metamodels/pure/packageableElements/PackageableElementReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,s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IAAI,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAsB9C;CACF"}
@@ -13,9 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { assertType } from '@finos/legend-shared';
17
- import { RequiredReference, OptionalReference } from '../Reference.js';
18
- export class PackageableElementReference extends RequiredReference {
16
+ import { Reference } from '../Reference.js';
17
+ export class PackageableElementReference extends Reference {
19
18
  value;
20
19
  constructor(value) {
21
20
  super();
@@ -91,74 +90,4 @@ export class PackageableElementImplicitReference extends PackageableElementRefer
91
90
  return currentElementPath;
92
91
  }
93
92
  }
94
- export class OptionalPackageableElementReference extends OptionalReference {
95
- value;
96
- constructor(value) {
97
- super();
98
- this.value = value;
99
- }
100
- }
101
- export class OptionalPackageableElementExplicitReference extends OptionalPackageableElementReference {
102
- constructor(value) {
103
- super(value);
104
- }
105
- static create(value) {
106
- return new OptionalPackageableElementExplicitReference(value);
107
- }
108
- get valueForSerialization() {
109
- return this.value?.path;
110
- }
111
- }
112
- export class OptionalPackageableElementImplicitReference extends OptionalPackageableElementReference {
113
- initialResolvedPath;
114
- input;
115
- parentSection;
116
- skipSectionCheck;
117
- constructor(value, input, parentSection, skipSectionCheck) {
118
- super(value);
119
- this.initialResolvedPath = value?.path;
120
- this.input = input;
121
- this.parentSection = parentSection;
122
- this.skipSectionCheck = skipSectionCheck;
123
- }
124
- static create(value, input) {
125
- return new OptionalPackageableElementImplicitReference(value, input, undefined, true);
126
- }
127
- /**
128
- * Use this creator method when the reference is created by
129
- * resolving imports using section majorly when building the graph.
130
- */
131
- static resolveFromSection(value, input, parentSection) {
132
- return new OptionalPackageableElementImplicitReference(value, input, parentSection, false);
133
- }
134
- get valueForSerialization() {
135
- const currentElementPath = this.value?.path;
136
- // NOTE: `skipSectionCheck` flag's effect should only kick in if the value
137
- // is not different than the original value
138
- if (this.skipSectionCheck &&
139
- this.initialResolvedPath === currentElementPath) {
140
- return this.input;
141
- }
142
- // when the parent section does not exist or has been deleted
143
- if (this.parentSection === undefined ||
144
- this.parentSection._OWNER.isDeleted) {
145
- return currentElementPath;
146
- }
147
- // the current element is the same as the inferred one
148
- if (this.initialResolvedPath === currentElementPath) {
149
- return this.input;
150
- }
151
- return currentElementPath;
152
- }
153
- }
154
- export const optionalizePackageableElementReference = (reference) => {
155
- if (!reference || reference instanceof PackageableElementExplicitReference) {
156
- return OptionalPackageableElementExplicitReference.create(reference?.value);
157
- }
158
- assertType(reference, PackageableElementImplicitReference);
159
- if (reference.skipSectionCheck) {
160
- return OptionalPackageableElementImplicitReference.create(reference.value, reference.input);
161
- }
162
- return OptionalPackageableElementImplicitReference.resolveFromSection(reference.value, reference.input, reference.parentSection);
163
- };
164
93
  //# sourceMappingURL=PackageableElementReference.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PackageableElementReference.js","sourceRoot":"","sources":["../../../../../src/models/metamodels/pure/packageableElements/PackageableElementReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAGlD,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,OAAgB,2BAEpB,SAAQ,iBAAiB;IACzB,KAAK,CAAI;IAET,YAAsB,KAAQ;QAC5B,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CAGF;AAED,MAAM,OAAO,mCAEX,SAAQ,2BAA8B;IACtC,YAAoB,KAAQ;QAC1B,KAAK,CAAC,KAAK,CAAC,CAAC;IACf,CAAC;IAED,MAAM,CAAC,MAAM,CACX,KAAQ;QAER,OAAO,IAAI,mCAAmC,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;IACzB,CAAC;CACF;AAED;;;;;;;;;;GAUG;AACH,MAAM,OAAO,mCA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B;QACvB,MAAM,kBAAkB,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC;QAC5C,0EAA0E;QAC1E,2CAA2C;QAC3C,IACE,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,mBAAmB,KAAK,kBAAkB,EAC/C;YACA,OAAO,IAAI,CAAC,KAAK,CAAC;SACnB;QACD,6DAA6D;QAC7D,IACE,IAAI,CAAC,aAAa,KAAK,SAAS;YAChC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EACnC;YACA,OAAO,kBAAkB,CAAC;SAC3B;QACD,sDAAsD;QACtD,IAAI,IAAI,CAAC,mBAAmB,KAAK,kBAAkB,EAAE;YACnD,OAAO,IAAI,CAAC,KAAK,CAAC;SACnB;QACD,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAGpD,SAAqD,EACb,EAAE;IAC1C,IAAI,CAAC,SAAS,IAAI,SAAS,YAAY,mCAAmC,EAAE;QAC1E,OAAO,2CAA2C,CAAC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;KAC7E;IACD,UAAU,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC;IAC3D,IAAI,SAAS,CAAC,gBAAgB,EAAE;QAC9B,OAAO,2CAA2C,CAAC,MAAM,CACvD,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,KAAK,CAChB,CAAC;KACH;IACD,OAAO,2CAA2C,CAAC,kBAAkB,CACnE,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,KAAK,EACf,SAAS,CAAC,aAAa,CACxB,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"PackageableElementReference.js","sourceRoot":"","sources":["../../../../../src/models/metamodels/pure/packageableElements/PackageableElementReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAgB,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kBAAkB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAC3C,0EAA0E;QAC1E,2CAA2C;QAC3C,IACE,IAAI,CAAC,gBAAgB;YACrB,IAAI,CAAC,mBAAmB,KAAK,kBAAkB,EAC/C;YACA,OAAO,IAAI,CAAC,KAAK,CAAC;SACnB;QACD,6DAA6D;QAC7D,IACE,IAAI,CAAC,aAAa,KAAK,SAAS;YAChC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,SAAS,EACnC;YACA,OAAO,kBAAkB,CAAC;SAC3B;QACD,sDAAsD;QACtD,IAAI,IAAI,CAAC,mBAAmB,KAAK,kBAAkB,EAAE;YACnD,OAAO,IAAI,CAAC,KAAK,CAAC;SACnB;QACD,OAAO,kBAAkB,CAAC;IAC5B,CAAC;CACF"}
@@ -16,11 +16,11 @@
16
16
  import { type Hashable } from '@finos/legend-shared';
17
17
  import type { SchemaSet } from '../schemaSet/DSLExternalFormat_SchemaSet.js';
18
18
  import { Store } from '../../store/Store.js';
19
- import type { OptionalPackageableElementReference } from '../../PackageableElementReference.js';
20
19
  import type { ModelUnit } from './DSLExternalFormat_ModelUnit.js';
21
20
  import type { PackageableElementVisitor } from '../../PackageableElement.js';
21
+ import type { PackageableElementReference } from '../../PackageableElementReference.js';
22
22
  export declare class Binding extends Store implements Hashable {
23
- schemaSet: OptionalPackageableElementReference<SchemaSet>;
23
+ schemaSet?: PackageableElementReference<SchemaSet> | undefined;
24
24
  schemaId?: string | undefined;
25
25
  contentType: string;
26
26
  modelUnit: ModelUnit;
@@ -1 +1 @@
1
- {"version":3,"file":"DSLExternalFormat_Binding.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,sCAAsC,CAAC;AAChG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAG7E,qBAAa,OAAQ,SAAQ,KAAM,YAAW,QAAQ;IACpD,SAAS,EAAG,mCAAmC,CAAC,SAAS,CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,SAAS,CAAC;IAEtB,cAAuB,gBAAgB,IAAI,MAAM,CAShD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
1
+ {"version":3,"file":"DSLExternalFormat_Binding.d.ts","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAE7E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AAKxF,qBAAa,OAAQ,SAAQ,KAAM,YAAW,QAAQ;IACpD,SAAS,CAAC,EAAE,2BAA2B,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,WAAW,EAAG,MAAM,CAAC;IACrB,SAAS,EAAG,SAAS,CAAC;IAEtB,cAAuB,gBAAgB,IAAI,MAAM,CAShD;IAED,gCAAgC,CAAC,CAAC,EAChC,OAAO,EAAE,yBAAyB,CAAC,CAAC,CAAC,GACpC,CAAC;CAGL"}
@@ -16,6 +16,9 @@
16
16
  import { hashArray } from '@finos/legend-shared';
17
17
  import { Store } from '../../store/Store.js';
18
18
  import { DSL_EXTERNAL_FORMAT_HASH_STRUCTURE } from '../../../../../DSLExternalFormat_ModelUtils.js';
19
+ // NOTE: in the metamodel, `Binding` extends `ModelStore`, we could consider doing the same
20
+ // although this might not be trivial as we have a fair amount of logic around the special
21
+ // handling of `ModelStore`
19
22
  export class Binding extends Store {
20
23
  schemaSet;
21
24
  schemaId;
@@ -25,7 +28,7 @@ export class Binding extends Store {
25
28
  return hashArray([
26
29
  DSL_EXTERNAL_FORMAT_HASH_STRUCTURE.BINDING,
27
30
  this.path,
28
- this.schemaSet.valueForSerialization ?? '',
31
+ this.schemaSet?.valueForSerialization ?? '',
29
32
  this.schemaId ?? '',
30
33
  this.contentType,
31
34
  this.modelUnit,
@@ -1 +1 @@
1
- {"version":3,"file":"DSLExternalFormat_Binding.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAI7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AAEpG,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAChC,SAAS,CAAkD;IAC3D,QAAQ,CAAsB;IAC9B,WAAW,CAAU;IACrB,SAAS,CAAa;IAEtB,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,OAAO;YAC1C,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,SAAS,CAAC,qBAAqB,IAAI,EAAE;YAC1C,IAAI,CAAC,QAAQ,IAAI,EAAE;YACnB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,SAAS;SACf,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
1
+ {"version":3,"file":"DSLExternalFormat_Binding.js","sourceRoot":"","sources":["../../../../../../../src/models/metamodels/pure/packageableElements/externalFormat/store/DSLExternalFormat_Binding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAiB,MAAM,sBAAsB,CAAC;AAEhE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAG7C,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AAGpG,2FAA2F;AAC3F,0FAA0F;AAC1F,2BAA2B;AAC3B,MAAM,OAAO,OAAQ,SAAQ,KAAK;IAChC,SAAS,CAAsD;IAC/D,QAAQ,CAAsB;IAC9B,WAAW,CAAU;IACrB,SAAS,CAAa;IAEtB,IAAuB,gBAAgB;QACrC,OAAO,SAAS,CAAC;YACf,kCAAkC,CAAC,OAAO;YAC1C,IAAI,CAAC,IAAI;YACT,IAAI,CAAC,SAAS,EAAE,qBAAqB,IAAI,EAAE;YAC3C,IAAI,CAAC,QAAQ,IAAI,EAAE;YACnB,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,SAAS;SACf,CAAC,CAAC;IACL,CAAC;IAED,gCAAgC,CAC9B,OAAqC;QAErC,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
  import { type Hashable } from '@finos/legend-shared';
17
- import type { PackageableElementReference, OptionalPackageableElementReference } from '../PackageableElementReference.js';
17
+ import type { PackageableElementReference } from '../PackageableElementReference.js';
18
18
  import type { Mapping } from './Mapping.js';
19
19
  import type { Enumeration } from '../domain/Enumeration.js';
20
20
  import type { EnumValueMapping } from './EnumValueMapping.js';
@@ -24,9 +24,9 @@ export declare class EnumerationMapping implements Hashable {
24
24
  readonly _PARENT: Mapping;
25
25
  enumeration: PackageableElementReference<Enumeration>;
26
26
  id: InferableMappingElementIdValue;
27
- sourceType: OptionalPackageableElementReference<Type>;
27
+ sourceType?: PackageableElementReference<Type> | undefined;
28
28
  enumValueMappings: EnumValueMapping[];
29
- constructor(id: InferableMappingElementIdValue, enumeration: PackageableElementReference<Enumeration>, parent: Mapping, sourceType: OptionalPackageableElementReference<Type>);
29
+ constructor(id: InferableMappingElementIdValue, enumeration: PackageableElementReference<Enumeration>, parent: Mapping, sourceType: PackageableElementReference<Type> | undefined);
30
30
  get hashCode(): string;
31
31
  }
32
32
  //# sourceMappingURL=EnumerationMapping.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumerationMapping.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EACV,2BAA2B,EAC3B,mCAAmC,EACpC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAErF,qBAAa,kBAAmB,YAAW,QAAQ;IACjD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;IACtD,EAAE,EAAE,8BAA8B,CAAC;IACnC,UAAU,EAAE,mCAAmC,CAAC,IAAI,CAAC,CAAC;IACtD,iBAAiB,EAAE,gBAAgB,EAAE,CAAM;gBAGzC,EAAE,EAAE,8BAA8B,EAClC,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,EACrD,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,mCAAmC,CAAC,IAAI,CAAC;IAQvD,IAAI,QAAQ,IAAI,MAAM,CAqBrB;CACF"}
1
+ {"version":3,"file":"EnumerationMapping.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE/E,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AACrF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAErF,qBAAa,kBAAmB,YAAW,QAAQ;IACjD,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAE1B,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,CAAC;IACtD,EAAE,EAAE,8BAA8B,CAAC;IACnC,UAAU,CAAC,EAAE,2BAA2B,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;IAC3D,iBAAiB,EAAE,gBAAgB,EAAE,CAAM;gBAGzC,EAAE,EAAE,8BAA8B,EAClC,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC,EACrD,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,2BAA2B,CAAC,IAAI,CAAC,GAAG,SAAS;IAQ3D,IAAI,QAAQ,IAAI,MAAM,CAyBrB;CACF"}
@@ -35,12 +35,12 @@ export class EnumerationMapping {
35
35
  // If there are no enum value mapping, source type means nothing since it's not in the protocol anyway
36
36
  this.enumValueMappings.filter(
37
37
  // TODO: use `isStubbed_EnumValueMapping` when we refactor hashing
38
- (enumValueMapping) => enumValueMapping.sourceValues.filter(isNonNullable).length).length
39
- ? this.sourceType.valueForSerialization ?? ''
38
+ (enumValueMapping) => enumValueMapping.sourceValues.filter((sourceValue) => isNonNullable(sourceValue.value)).length).length
39
+ ? this.sourceType?.valueForSerialization ?? ''
40
40
  : '',
41
41
  hashArray(this.enumValueMappings.filter(
42
42
  // TODO: use `isStubbed_EnumValueMapping` when we refactor hashing
43
- (enumValueMapping) => enumValueMapping.sourceValues.filter(isNonNullable).length)),
43
+ (enumValueMapping) => enumValueMapping.sourceValues.filter((sourceValue) => isNonNullable(sourceValue.value)).length)),
44
44
  ]);
45
45
  }
46
46
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EnumerationMapping.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAiB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAWvE,MAAM,OAAO,kBAAkB;IACpB,OAAO,CAAU;IAE1B,WAAW,CAA2C;IACtD,EAAE,CAAiC;IACnC,UAAU,CAA4C;IACtD,iBAAiB,GAAuB,EAAE,CAAC;IAE3C,YACE,EAAkC,EAClC,WAAqD,EACrD,MAAe,EACf,UAAqD;QAErD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,mBAAmB;YACvC,IAAI,CAAC,EAAE,CAAC,qBAAqB,IAAI,EAAE;YACnC,IAAI,CAAC,WAAW,CAAC,qBAAqB,IAAI,EAAE;YAC5C,sGAAsG;YACtG,IAAI,CAAC,iBAAiB,CAAC,MAAM;YAC3B,kEAAkE;YAClE,CAAC,gBAAgB,EAAE,EAAE,CACnB,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,CAC7D,CAAC,MAAM;gBACN,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,qBAAqB,IAAI,EAAE;gBAC7C,CAAC,CAAC,EAAE;YACN,SAAS,CACP,IAAI,CAAC,iBAAiB,CAAC,MAAM;YAC3B,kEAAkE;YAClE,CAAC,gBAAgB,EAAE,EAAE,CACnB,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,MAAM,CAC7D,CACF;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"EnumerationMapping.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAiB,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAQvE,MAAM,OAAO,kBAAkB;IACpB,OAAO,CAAU;IAE1B,WAAW,CAA2C;IACtD,EAAE,CAAiC;IACnC,UAAU,CAAiD;IAC3D,iBAAiB,GAAuB,EAAE,CAAC;IAE3C,YACE,EAAkC,EAClC,WAAqD,EACrD,MAAe,EACf,UAAyD;QAEzD,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,mBAAmB;YACvC,IAAI,CAAC,EAAE,CAAC,qBAAqB,IAAI,EAAE;YACnC,IAAI,CAAC,WAAW,CAAC,qBAAqB,IAAI,EAAE;YAC5C,sGAAsG;YACtG,IAAI,CAAC,iBAAiB,CAAC,MAAM;YAC3B,kEAAkE;YAClE,CAAC,gBAAgB,EAAE,EAAE,CACnB,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CACnD,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CACjC,CAAC,MAAM,CACX,CAAC,MAAM;gBACN,CAAC,CAAC,IAAI,CAAC,UAAU,EAAE,qBAAqB,IAAI,EAAE;gBAC9C,CAAC,CAAC,EAAE;YACN,SAAS,CACP,IAAI,CAAC,iBAAiB,CAAC,MAAM;YAC3B,kEAAkE;YAClE,CAAC,gBAAgB,EAAE,EAAE,CACnB,gBAAgB,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,WAAW,EAAE,EAAE,CACnD,aAAa,CAAC,WAAW,CAAC,KAAK,CAAC,CACjC,CAAC,MAAM,CACX,CACF;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -13,20 +13,20 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { type OptionalPackageableElementReference } from '../PackageableElementReference.js';
16
+ import { type PackageableElementReference } from '../PackageableElementReference.js';
17
17
  import type { Mapping } from './Mapping.js';
18
18
  import type { EnumerationMapping } from './EnumerationMapping.js';
19
- import { OptionalReferenceWithOwner } from '../../Reference.js';
20
- export declare abstract class OptionalEnumerationMappingReference extends OptionalReferenceWithOwner {
21
- readonly ownerReference: OptionalPackageableElementReference<Mapping>;
22
- value?: EnumerationMapping | undefined;
23
- protected constructor(ownerReference: OptionalPackageableElementReference<Mapping>, value: EnumerationMapping | undefined);
19
+ import { ReferenceWithOwner } from '../../Reference.js';
20
+ export declare abstract class EnumerationMappingReference extends ReferenceWithOwner {
21
+ readonly ownerReference: PackageableElementReference<Mapping>;
22
+ value: EnumerationMapping;
23
+ protected constructor(ownerReference: PackageableElementReference<Mapping>, value: EnumerationMapping);
24
24
  abstract get valueForSerialization(): string | undefined;
25
25
  }
26
- export declare class OptionalEnumerationMappingExplicitReference extends OptionalEnumerationMappingReference {
27
- readonly ownerReference: OptionalPackageableElementReference<Mapping>;
26
+ export declare class EnumerationMappingExplicitReference extends EnumerationMappingReference {
27
+ readonly ownerReference: PackageableElementReference<Mapping>;
28
28
  private constructor();
29
- static create(value: EnumerationMapping | undefined): OptionalEnumerationMappingExplicitReference;
30
- get valueForSerialization(): string | undefined;
29
+ static create(value: EnumerationMapping): EnumerationMappingExplicitReference;
30
+ get valueForSerialization(): string;
31
31
  }
32
32
  //# sourceMappingURL=EnumerationMappingReference.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumerationMappingReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,mCAAmC,EAEzC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,8BAAsB,mCAAoC,SAAQ,0BAA0B;IAC1F,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAC/E,KAAK,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAEvC,SAAS,aACP,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,EAC5D,KAAK,EAAE,kBAAkB,GAAG,SAAS;IAOvC,QAAQ,KAAK,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED,qBAAa,2CAA4C,SAAQ,mCAAmC;IAClG,SAAkB,cAAc,EAAE,mCAAmC,CAAC,OAAO,CAAC,CAAC;IAE/E,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,kBAAkB,GAAG,SAAS,GACpC,2CAA2C;IAI9C,IAAI,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAE9C;CACF"}
1
+ {"version":3,"file":"EnumerationMappingReference.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,8BAAsB,2BAA4B,SAAQ,kBAAkB;IAC1E,SAAkB,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACvE,KAAK,EAAE,kBAAkB,CAAC;IAE1B,SAAS,aACP,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,EACpD,KAAK,EAAE,kBAAkB;IAO3B,QAAQ,KAAK,qBAAqB,IAAI,MAAM,GAAG,SAAS,CAAC;CAC1D;AAED,qBAAa,mCAAoC,SAAQ,2BAA2B;IAClF,SAAkB,cAAc,EAAE,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAEvE,OAAO;IAQP,MAAM,CAAC,MAAM,CACX,KAAK,EAAE,kBAAkB,GACxB,mCAAmC;IAItC,IAAI,qBAAqB,IAAI,MAAM,CAElC;CACF"}
@@ -13,9 +13,9 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- import { OptionalPackageableElementExplicitReference, } from '../PackageableElementReference.js';
17
- import { OptionalReferenceWithOwner } from '../../Reference.js';
18
- export class OptionalEnumerationMappingReference extends OptionalReferenceWithOwner {
16
+ import { PackageableElementExplicitReference, } from '../PackageableElementReference.js';
17
+ import { ReferenceWithOwner } from '../../Reference.js';
18
+ export class EnumerationMappingReference extends ReferenceWithOwner {
19
19
  ownerReference;
20
20
  value;
21
21
  constructor(ownerReference, value) {
@@ -24,18 +24,18 @@ export class OptionalEnumerationMappingReference extends OptionalReferenceWithOw
24
24
  this.value = value;
25
25
  }
26
26
  }
27
- export class OptionalEnumerationMappingExplicitReference extends OptionalEnumerationMappingReference {
27
+ export class EnumerationMappingExplicitReference extends EnumerationMappingReference {
28
28
  ownerReference;
29
29
  constructor(value) {
30
- const ownerReference = OptionalPackageableElementExplicitReference.create(value?._PARENT);
30
+ const ownerReference = PackageableElementExplicitReference.create(value._PARENT);
31
31
  super(ownerReference, value);
32
32
  this.ownerReference = ownerReference;
33
33
  }
34
34
  static create(value) {
35
- return new OptionalEnumerationMappingExplicitReference(value);
35
+ return new EnumerationMappingExplicitReference(value);
36
36
  }
37
37
  get valueForSerialization() {
38
- return this.value?.id.value;
38
+ return this.value.id.value;
39
39
  }
40
40
  }
41
41
  //# sourceMappingURL=EnumerationMappingReference.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumerationMappingReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAEhE,MAAM,OAAgB,mCAAoC,SAAQ,0BAA0B;IACxE,cAAc,CAA+C;IAC/E,KAAK,CAAkC;IAEvC,YACE,cAA4D,EAC5D,KAAqC;QAErC,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CAGF;AAED,MAAM,OAAO,2CAA4C,SAAQ,mCAAmC;IAChF,cAAc,CAA+C;IAE/E,YAAoB,KAAqC;QACvD,MAAM,cAAc,GAAG,2CAA2C,CAAC,MAAM,CACvE,KAAK,EAAE,OAAO,CACf,CAAC;QACF,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CACX,KAAqC;QAErC,OAAO,IAAI,2CAA2C,CAAC,KAAK,CAAC,CAAC;IAChE,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC;IAC9B,CAAC;CACF"}
1
+ {"version":3,"file":"EnumerationMappingReference.js","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/EnumerationMappingReference.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,mCAAmC,GACpC,MAAM,mCAAmC,CAAC;AAG3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,OAAgB,2BAA4B,SAAQ,kBAAkB;IACxD,cAAc,CAAuC;IACvE,KAAK,CAAqB;IAE1B,YACE,cAAoD,EACpD,KAAyB;QAEzB,KAAK,CAAC,cAAc,CAAC,CAAC;QACtB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CAGF;AAED,MAAM,OAAO,mCAAoC,SAAQ,2BAA2B;IAChE,cAAc,CAAuC;IAEvE,YAAoB,KAAyB;QAC3C,MAAM,cAAc,GAAG,mCAAmC,CAAC,MAAM,CAC/D,KAAK,CAAC,OAAO,CACd,CAAC;QACF,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;QAC7B,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,MAAM,CACX,KAAyB;QAEzB,OAAO,IAAI,mCAAmC,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;IAED,IAAI,qBAAqB;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC;IAC7B,CAAC;CACF"}
@@ -16,7 +16,6 @@
16
16
  import { type Hashable } from '@finos/legend-shared';
17
17
  import type { PropertyReference } from '../domain/PropertyReference.js';
18
18
  import type { PropertyMappingsImplementation } from './PropertyMappingsImplementation.js';
19
- import type { SetImplementation } from './SetImplementation.js';
20
19
  import type { PurePropertyMapping } from '../store/modelToModel/mapping/PurePropertyMapping.js';
21
20
  import type { FlatDataPropertyMapping } from '../store/flatData/mapping/FlatDataPropertyMapping.js';
22
21
  import type { EmbeddedFlatDataPropertyMapping } from '../store/flatData/mapping/EmbeddedFlatDataPropertyMapping.js';
@@ -27,6 +26,7 @@ import type { InlineEmbeddedRelationalInstanceSetImplementation } from '../store
27
26
  import type { AggregationAwarePropertyMapping } from './aggregationAware/AggregationAwarePropertyMapping.js';
28
27
  import type { XStorePropertyMapping } from './xStore/XStorePropertyMapping.js';
29
28
  import type { LocalMappingPropertyInfo } from './LocalMappingPropertyInfo.js';
29
+ import type { SetImplementationReference } from './SetImplementationReference.js';
30
30
  export interface PropertyMappingVisitor<T> {
31
31
  visit_PropertyMapping(propertyMapping: PropertyMapping): T;
32
32
  visit_PurePropertyMapping(propertyMapping: PurePropertyMapping): T;
@@ -47,23 +47,27 @@ export declare abstract class PropertyMapping implements Hashable {
47
47
  readonly _isEmbedded: boolean;
48
48
  property: PropertyReference;
49
49
  /**
50
- * NOTE: in case the holder of this property mapping is an embedded property mapping,
51
- * that embedded property mapping is considered the source otherwise, it is always
52
- * the top/root `InstanceSetImplementation` that is considered the source implementation
50
+ * In Pure, these fields are defined as string and not properly resolved, perhaps because of
51
+ * the fact that in Pure, we allow mappings which contain class mapping IDs pointing at
52
+ * another mapping's class mappings. In Pure/Engine, we let this pass compilation phase.
53
+ * In Studio, we disallow this. This makes it hard for users to migrate to Studio.
54
+ * We should think of a strategy to make things loadable in Studio, but disallow users
55
+ * to make changes if they have this kind of error in their graph.
53
56
  *
54
- * TODO: change this to use `SetImplemenetationReference`
55
- */
56
- sourceSetImplementation: SetImplementation;
57
- /**
58
- * NOTE: in Pure, we actually only store `targetId` and `sourceId` instead of the
59
- * reference but for convenience and graph completeness validation purpose we will
60
- * resolve to the actual set implementations here
57
+ * See https://github.com/finos/legend-studio/issues/880
58
+ *
59
+ * NOTE: We might not be able to resolve `targetSetImplementation` for all `target` IDs hence
60
+ * defined as optional for now. We might need to come back and re-visit this decision. Note that
61
+ * one quirky thing is that the metamodel in Pure has these fields as string pointers, even
62
+ * when these are not resolvable, the field is set to empty string. We should solidify our
63
+ * understand about these fields.
61
64
  *
62
- * TODO: change this to use `OptionalSetImplemenetationReference`
65
+ * @discrepancy model
63
66
  */
64
- targetSetImplementation?: SetImplementation | undefined;
67
+ sourceSetImplementation: SetImplementationReference;
68
+ targetSetImplementation?: SetImplementationReference | undefined;
65
69
  localMappingProperty?: LocalMappingPropertyInfo | undefined;
66
- constructor(owner: PropertyMappingsImplementation, property: PropertyReference, source: SetImplementation, target?: SetImplementation);
70
+ constructor(owner: PropertyMappingsImplementation, property: PropertyReference, source: SetImplementationReference, target: SetImplementationReference | undefined);
67
71
  get hashCode(): string;
68
72
  abstract accept_PropertyMappingVisitor<T>(visitor: PropertyMappingVisitor<T>): T;
69
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PropertyMapping.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AAChG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,sDAAsD,CAAC;AACpG,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,8DAA8D,CAAC;AACpH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0DAA0D,CAAC;AAC1G,OAAO,KAAK,EAAE,oDAAoD,EAAE,MAAM,qFAAqF,CAAC;AAChK,OAAO,KAAK,EAAE,2CAA2C,EAAE,MAAM,4EAA4E,CAAC;AAC9I,OAAO,KAAK,EAAE,iDAAiD,EAAE,MAAM,kFAAkF,CAAC;AAC1J,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,uDAAuD,CAAC;AAC7G,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,CAAC,CAAC;IAC3D,yBAAyB,CAAC,eAAe,EAAE,mBAAmB,GAAG,CAAC,CAAC;IACnE,6BAA6B,CAAC,eAAe,EAAE,uBAAuB,GAAG,CAAC,CAAC;IAC3E,qCAAqC,CACnC,eAAe,EAAE,+BAA+B,GAC/C,CAAC,CAAC;IACL,+BAA+B,CAC7B,eAAe,EAAE,yBAAyB,GACzC,CAAC,CAAC;IACL,uCAAuC,CACrC,eAAe,EAAE,2CAA2C,GAC3D,CAAC,CAAC;IACL,6CAA6C,CAC3C,eAAe,EAAE,iDAAiD,GACjE,CAAC,CAAC;IACL,gDAAgD,CAC9C,eAAe,EAAE,oDAAoD,GACpE,CAAC,CAAC;IACL,qCAAqC,CACnC,eAAe,EAAE,+BAA+B,GAC/C,CAAC,CAAC;IACL,2BAA2B,CAAC,eAAe,EAAE,qBAAqB,GAAG,CAAC,CAAC;CACxE;AAED,8BAAsB,eAAgB,YAAW,QAAQ;IACvD;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,8BAA8B,CAAC;IAChD,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAS;IAEtC,QAAQ,EAAE,iBAAiB,CAAC;IAC5B;;;;;;OAMG;IACH,uBAAuB,EAAE,iBAAiB,CAAC;IAC3C;;;;;;OAMG;IACH,uBAAuB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACxD,oBAAoB,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;gBAI1D,KAAK,EAAE,8BAA8B,EACrC,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,EAAE,iBAAiB,EACzB,MAAM,CAAC,EAAE,iBAAiB;IAQ5B,IAAI,QAAQ,IAAI,MAAM,CAOrB;IAED,QAAQ,CAAC,6BAA6B,CAAC,CAAC,EACtC,OAAO,EAAE,sBAAsB,CAAC,CAAC,CAAC,GACjC,CAAC;CACL"}
1
+ {"version":3,"file":"PropertyMapping.d.ts","sourceRoot":"","sources":["../../../../../../src/models/metamodels/pure/packageableElements/mapping/PropertyMapping.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhE,OAAO,KAAK,EAAE,iB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