@finos/legend-extension-dsl-data-space 10.4.170 → 10.4.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/DataSpaceWiki.d.ts.map +1 -1
- package/lib/components/DataSpaceWiki.js +2 -2
- package/lib/components/DataSpaceWiki.js.map +1 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysis.d.ts +3 -44
- package/lib/graph-manager/action/analytics/DataSpaceAnalysis.d.ts.map +1 -1
- package/lib/graph-manager/action/analytics/DataSpaceAnalysis.js +0 -51
- package/lib/graph-manager/action/analytics/DataSpaceAnalysis.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js +14 -13
- package/lib/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.js.map +1 -1
- package/lib/index.css +2 -2
- package/lib/index.css.map +1 -1
- package/lib/package.json +1 -1
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts +2 -78
- package/lib/stores/DataSpaceModelsDocumentationState.d.ts.map +1 -1
- package/lib/stores/DataSpaceModelsDocumentationState.js +3 -400
- package/lib/stores/DataSpaceModelsDocumentationState.js.map +1 -1
- package/package.json +4 -4
- package/src/components/DataSpaceWiki.tsx +6 -3
- package/src/graph-manager/action/analytics/DataSpaceAnalysis.ts +2 -68
- package/src/graph-manager/protocol/pure/v1/V1_DSL_DataSpace_PureGraphManagerExtension.ts +21 -19
- package/src/stores/DataSpaceModelsDocumentationState.ts +3 -597
- package/tsconfig.json +0 -1
- package/lib/components/DataSpaceModelsDocumentation.d.ts +0 -22
- package/lib/components/DataSpaceModelsDocumentation.d.ts.map +0 -1
- package/lib/components/DataSpaceModelsDocumentation.js +0 -389
- package/lib/components/DataSpaceModelsDocumentation.js.map +0 -1
- package/src/components/DataSpaceModelsDocumentation.tsx +0 -1151
|
@@ -83,7 +83,6 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
DataSpaceAnalysisResult,
|
|
85
85
|
DataSpaceDiagramAnalysisResult,
|
|
86
|
-
NormalizedDataSpaceDocumentationEntry,
|
|
87
86
|
DataSpaceExecutableAnalysisResult,
|
|
88
87
|
DataSpaceExecutableTDSResultColumn,
|
|
89
88
|
DataSpaceExecutableTDSResult,
|
|
@@ -91,11 +90,6 @@ import {
|
|
|
91
90
|
DataSpaceServiceExecutableInfo,
|
|
92
91
|
DataSpaceStereotypeInfo,
|
|
93
92
|
DataSpaceTaggedValueInfo,
|
|
94
|
-
DataSpaceClassDocumentationEntry,
|
|
95
|
-
DataSpacePropertyDocumentationEntry,
|
|
96
|
-
DataSpaceEnumerationDocumentationEntry,
|
|
97
|
-
DataSpaceBasicDocumentationEntry,
|
|
98
|
-
DataSpaceAssociationDocumentationEntry,
|
|
99
93
|
DataSpaceMultiExecutionServiceExecutableInfo,
|
|
100
94
|
DataSpaceMultiExecutionServiceKeyedExecutableInfo,
|
|
101
95
|
DataSpaceTemplateExecutableInfo,
|
|
@@ -121,6 +115,14 @@ import { DATASPACE_ANALYTICS_FILE_NAME } from '../../../action/analytics/DataSpa
|
|
|
121
115
|
import { buildDataSpaceElements } from '../../../DSL_DataSpaceAnalyticsHelper.js';
|
|
122
116
|
import { DSL_DATASPACE_EVENT } from '../../../../__lib__/DSL_DataSpace_Event.js';
|
|
123
117
|
import { deserialize } from 'serializr';
|
|
118
|
+
import {
|
|
119
|
+
AssociationDocumentationEntry,
|
|
120
|
+
BasicDocumentationEntry,
|
|
121
|
+
ClassDocumentationEntry,
|
|
122
|
+
EnumerationDocumentationEntry,
|
|
123
|
+
NormalizedDocumentationEntry,
|
|
124
|
+
PropertyDocumentationEntry,
|
|
125
|
+
} from '@finos/legend-lego/model-documentation';
|
|
124
126
|
|
|
125
127
|
const ANALYZE_DATA_SPACE_TRACE = 'analyze data product';
|
|
126
128
|
const TEMPORARY__TDS_SAMPLE_VALUES__DELIMITER = '-- e.g.';
|
|
@@ -917,15 +919,15 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
917
919
|
|
|
918
920
|
// elements documentation
|
|
919
921
|
result.elementDocs = analysisResult.elementDocs.flatMap((docEntry) => {
|
|
920
|
-
const entries:
|
|
922
|
+
const entries: NormalizedDocumentationEntry[] = [];
|
|
921
923
|
if (docEntry instanceof V1_DataSpaceClassDocumentationEntry) {
|
|
922
|
-
const classData = new
|
|
924
|
+
const classData = new ClassDocumentationEntry();
|
|
923
925
|
classData.name = docEntry.name;
|
|
924
926
|
classData.docs = docEntry.docs;
|
|
925
927
|
classData.path = docEntry.path;
|
|
926
928
|
classData.milestoning = docEntry.milestoning;
|
|
927
929
|
entries.push(
|
|
928
|
-
new
|
|
930
|
+
new NormalizedDocumentationEntry(
|
|
929
931
|
docEntry.name,
|
|
930
932
|
docEntry.docs.join('\n').trim(),
|
|
931
933
|
classData,
|
|
@@ -934,7 +936,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
934
936
|
);
|
|
935
937
|
|
|
936
938
|
docEntry.properties.forEach((property) => {
|
|
937
|
-
const propertyData = new
|
|
939
|
+
const propertyData = new PropertyDocumentationEntry();
|
|
938
940
|
propertyData.name = property.name;
|
|
939
941
|
propertyData.docs = property.docs;
|
|
940
942
|
propertyData.type = property.type;
|
|
@@ -947,7 +949,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
947
949
|
: undefined;
|
|
948
950
|
classData.properties.push(propertyData);
|
|
949
951
|
entries.push(
|
|
950
|
-
new
|
|
952
|
+
new NormalizedDocumentationEntry(
|
|
951
953
|
property.name,
|
|
952
954
|
property.docs.join('\n').trim(),
|
|
953
955
|
classData,
|
|
@@ -958,12 +960,12 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
958
960
|
} else if (
|
|
959
961
|
docEntry instanceof V1_DataSpaceEnumerationDocumentationEntry
|
|
960
962
|
) {
|
|
961
|
-
const enumerationData = new
|
|
963
|
+
const enumerationData = new EnumerationDocumentationEntry();
|
|
962
964
|
enumerationData.name = docEntry.name;
|
|
963
965
|
enumerationData.docs = docEntry.docs;
|
|
964
966
|
enumerationData.path = docEntry.path;
|
|
965
967
|
entries.push(
|
|
966
|
-
new
|
|
968
|
+
new NormalizedDocumentationEntry(
|
|
967
969
|
docEntry.name,
|
|
968
970
|
docEntry.docs.join('\n').trim(),
|
|
969
971
|
enumerationData,
|
|
@@ -971,12 +973,12 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
971
973
|
),
|
|
972
974
|
);
|
|
973
975
|
docEntry.enumValues.forEach((enumValue) => {
|
|
974
|
-
const enumData = new
|
|
976
|
+
const enumData = new BasicDocumentationEntry();
|
|
975
977
|
enumData.name = enumValue.name;
|
|
976
978
|
enumData.docs = enumValue.docs;
|
|
977
979
|
enumerationData.enumValues.push(enumData);
|
|
978
980
|
entries.push(
|
|
979
|
-
new
|
|
981
|
+
new NormalizedDocumentationEntry(
|
|
980
982
|
enumValue.name,
|
|
981
983
|
enumValue.docs.join('\n').trim(),
|
|
982
984
|
enumerationData,
|
|
@@ -987,12 +989,12 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
987
989
|
} else if (
|
|
988
990
|
docEntry instanceof V1_DataSpaceAssociationDocumentationEntry
|
|
989
991
|
) {
|
|
990
|
-
const associationData = new
|
|
992
|
+
const associationData = new AssociationDocumentationEntry();
|
|
991
993
|
associationData.name = docEntry.name;
|
|
992
994
|
associationData.docs = docEntry.docs;
|
|
993
995
|
associationData.path = docEntry.path;
|
|
994
996
|
entries.push(
|
|
995
|
-
new
|
|
997
|
+
new NormalizedDocumentationEntry(
|
|
996
998
|
docEntry.name,
|
|
997
999
|
docEntry.docs.join('\n').trim(),
|
|
998
1000
|
associationData,
|
|
@@ -1000,7 +1002,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
1000
1002
|
),
|
|
1001
1003
|
);
|
|
1002
1004
|
docEntry.properties.forEach((property) => {
|
|
1003
|
-
const propertyData = new
|
|
1005
|
+
const propertyData = new PropertyDocumentationEntry();
|
|
1004
1006
|
propertyData.name = property.name;
|
|
1005
1007
|
propertyData.docs = property.docs;
|
|
1006
1008
|
propertyData.type = property.type;
|
|
@@ -1013,7 +1015,7 @@ export class V1_DSL_DataSpace_PureGraphManagerExtension extends DSL_DataSpace_Pu
|
|
|
1013
1015
|
: undefined;
|
|
1014
1016
|
associationData.properties.push(propertyData);
|
|
1015
1017
|
entries.push(
|
|
1016
|
-
new
|
|
1018
|
+
new NormalizedDocumentationEntry(
|
|
1017
1019
|
property.name,
|
|
1018
1020
|
property.docs.join('\n'),
|
|
1019
1021
|
associationData,
|