@finos/legend-graph 32.3.25 → 32.3.27
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/graph/metamodel/pure/dataProduct/DataProduct.d.ts +2 -0
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js +2 -0
- package/lib/graph/metamodel/pure/dataProduct/DataProduct.js.map +1 -1
- package/lib/graph/metamodel/pure/rawValueSpecification/RawVariableExpression.d.ts +3 -1
- package/lib/graph/metamodel/pure/rawValueSpecification/RawVariableExpression.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/rawValueSpecification/RawVariableExpression.js +8 -1
- package/lib/graph/metamodel/pure/rawValueSpecification/RawVariableExpression.js.map +1 -1
- package/lib/graph-manager/action/changeDetection/RawValueSpecificationObserver.d.ts.map +1 -1
- package/lib/graph-manager/action/changeDetection/RawValueSpecificationObserver.js +1 -0
- package/lib/graph-manager/action/changeDetection/RawValueSpecificationObserver.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js +2 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/rawValueSpecification/V1_RawVariable.d.ts +8 -0
- package/lib/graph-manager/protocol/pure/v1/model/rawValueSpecification/V1_RawVariable.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/rawValueSpecification/V1_RawVariable.js +9 -0
- package/lib/graph-manager/protocol/pure/v1/model/rawValueSpecification/V1_RawVariable.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.d.ts +4 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.js +32 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js +2 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.d.ts +2 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.js +27 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js +6 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js +2 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js +14 -3
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js +44 -23
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/metamodel/pure/dataProduct/DataProduct.ts +3 -0
- package/src/graph/metamodel/pure/rawValueSpecification/RawVariableExpression.ts +12 -0
- package/src/graph-manager/action/changeDetection/RawValueSpecificationObserver.ts +1 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts +2 -0
- package/src/graph-manager/protocol/pure/v1/model/rawValueSpecification/V1_RawVariable.ts +11 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DataProductTransformer.ts +2 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts +45 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RawValueSpecificationTransformer.ts +3 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts +45 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DataProductBuilder.ts +6 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.ts +9 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DataProductSerializationHelper.ts +16 -2
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts +78 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_RawValueSpecificationSerializationHelper.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,GAAG,EACH,SAAS,EACT,WAAW,EACX,MAAM,EACN,KAAK,EACL,QAAQ,EACR,IAAI,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAKpF,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,cAAc,GACf,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAC;AACrI,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,4BAA4B,EAAE,MAAM,sEAAsE,CAAC;AACpH,OAAO,EACL,cAAc,EACd,cAAc,GACf,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAE/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_RawValueSpecificationSerializationHelper.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,GAAG,EACH,SAAS,EACT,WAAW,EACX,MAAM,EACN,KAAK,EACL,QAAQ,EACR,IAAI,GACL,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,4BAA4B,EAC5B,QAAQ,GACT,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAKpF,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,oBAAoB,EACpB,cAAc,GACf,MAAM,wDAAwD,CAAC;AAChE,OAAO,EAAE,0BAA0B,EAAE,MAAM,yFAAyF,CAAC;AACrI,OAAO,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAC5G,OAAO,EAAE,4BAA4B,EAAE,MAAM,sEAAsE,CAAC;AACpH,OAAO,EACL,cAAc,EACd,cAAc,GACf,MAAM,8CAA8C,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAC;AAE/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,OAAO,EACL,gCAAgC,EAChC,8BAA8B,GAC/B,MAAM,sCAAsC,CAAC;AAG9C,IAAK,0BAEJ;AAFD,WAAK,0BAA0B;IAC7B,6EAA+C,CAAA;AACjD,CAAC,EAFI,0BAA0B,KAA1B,0BAA0B,QAE9B;AAED,MAAM,CAAN,IAAY,4BAcX;AAdD,WAAY,4BAA4B;IACtC,iDAAiB,CAAA;IACjB,gDAAgB,CAAA;IAEhB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A4B,CAAC,QAAQ,CAAC;QAC/C,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,4BAA4B,CAAC,QAAQ,CAAC;QAC/C,KAAK,cAAc,CAAC,MAAM;YACxB,OAAO,4BAA4B,CAAC,OAAO,CAAC;QAC9C,KAAK,cAAc,CAAC,OAAO;YACzB,OAAO,4BAA4B,CAAC,QAAQ,CAAC;QAC/C,KAAK,cAAc,CAAC,KAAK;YACvB,OAAO,4BAA4B,CAAC,MAAM,CAAC;QAC7C,KAAK,cAAc,CAAC,IAAI,CAAC;QACzB,KAAK,cAAc,CAAC,QAAQ;YAC1B,OAAO,4BAA4B,CAAC,SAAS,CAAC;QAChD,KAAK,cAAc,CAAC,UAAU;YAC5B,OAAO,4BAA4B,CAAC,WAAW,CAAC;QAClD,KAAK,cAAc,CAAC,UAAU;YAC5B,OAAO,4BAA4B,CAAC,WAAW,CAAC;QAClD,KAAK,cAAc,CAAC,UAAU;YAC5B,OAAO,4BAA4B,CAAC,WAAW,CAAC;QAClD;YACE,MAAM,IAAI,yBAAyB,CACjC,4CAA4C,IAAI,GAAG,CACpD,CAAC;IACN,CAAC;AACH,CAAC"}
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -40,11 +40,13 @@ import type { Association } from '../packageableElements/domain/Association.js';
|
|
|
40
40
|
import type { EmbeddedData } from '../data/EmbeddedData.js';
|
|
41
41
|
import { ConcreteFunctionDefinition } from '../packageableElements/function/ConcreteFunctionDefinition.js';
|
|
42
42
|
import { generateFunctionPrettyName } from '../../../helpers/PureLanguageHelper.js';
|
|
43
|
+
import type { StereotypeReference } from '../packageableElements/domain/StereotypeReference.js';
|
|
43
44
|
|
|
44
45
|
export abstract class AccessPoint implements Hashable {
|
|
45
46
|
id: string;
|
|
46
47
|
title: string | undefined;
|
|
47
48
|
description: string | undefined;
|
|
49
|
+
stereotypes: StereotypeReference[] = [];
|
|
48
50
|
|
|
49
51
|
constructor(id: string) {
|
|
50
52
|
this.id = id;
|
|
@@ -56,6 +58,7 @@ export abstract class AccessPoint implements Hashable {
|
|
|
56
58
|
this.id,
|
|
57
59
|
this.title ?? '',
|
|
58
60
|
this.description ?? '',
|
|
61
|
+
hashArray(this.stereotypes.map((val) => val.pointerHashCode)),
|
|
59
62
|
]);
|
|
60
63
|
}
|
|
61
64
|
}
|
|
@@ -23,6 +23,8 @@ import {
|
|
|
23
23
|
type RawValueSpecificationVisitor,
|
|
24
24
|
RawValueSpecification,
|
|
25
25
|
} from './RawValueSpecification.js';
|
|
26
|
+
import type { GenericTypeReference } from '../packageableElements/domain/GenericTypeReference.js';
|
|
27
|
+
import { RelationType } from '../packageableElements/relation/RelationType.js';
|
|
26
28
|
|
|
27
29
|
export class RawVariableExpression
|
|
28
30
|
extends RawValueSpecification
|
|
@@ -34,15 +36,19 @@ export class RawVariableExpression
|
|
|
34
36
|
type: PackageableElementReference<Type>;
|
|
35
37
|
multiplicity: Multiplicity;
|
|
36
38
|
|
|
39
|
+
typeArguments: GenericTypeReference[] | undefined;
|
|
40
|
+
|
|
37
41
|
constructor(
|
|
38
42
|
name: string,
|
|
39
43
|
multiplicity: Multiplicity,
|
|
40
44
|
type: PackageableElementReference<Type>,
|
|
45
|
+
typeArguments?: GenericTypeReference[] | undefined,
|
|
41
46
|
) {
|
|
42
47
|
super();
|
|
43
48
|
this.name = name;
|
|
44
49
|
this.multiplicity = multiplicity;
|
|
45
50
|
this.type = type;
|
|
51
|
+
this.typeArguments = typeArguments;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
54
|
get hashCode(): string {
|
|
@@ -51,6 +57,12 @@ export class RawVariableExpression
|
|
|
51
57
|
this.type.valueForSerialization ?? '',
|
|
52
58
|
this.name,
|
|
53
59
|
this.multiplicity,
|
|
60
|
+
hashArray(
|
|
61
|
+
this.typeArguments?.map((t) => {
|
|
62
|
+
const rawType = t.value.rawType;
|
|
63
|
+
return rawType instanceof RelationType ? undefined : rawType.path;
|
|
64
|
+
}) ?? [],
|
|
65
|
+
),
|
|
54
66
|
]);
|
|
55
67
|
}
|
|
56
68
|
|
package/src/graph-manager/protocol/pure/v1/model/packageableElements/dataProduct/V1_DataProduct.ts
CHANGED
|
@@ -45,6 +45,7 @@ export abstract class V1_AccessPoint implements Hashable {
|
|
|
45
45
|
id!: string;
|
|
46
46
|
title: string | undefined;
|
|
47
47
|
description: string | undefined;
|
|
48
|
+
stereotypes: V1_StereotypePtr[] = [];
|
|
48
49
|
|
|
49
50
|
get hashCode(): string {
|
|
50
51
|
return hashArray([
|
|
@@ -52,6 +53,7 @@ export abstract class V1_AccessPoint implements Hashable {
|
|
|
52
53
|
this.id,
|
|
53
54
|
this.title ?? '',
|
|
54
55
|
this.description ?? '',
|
|
56
|
+
hashArray(this.stereotypes),
|
|
55
57
|
]);
|
|
56
58
|
}
|
|
57
59
|
}
|
|
@@ -26,6 +26,16 @@ export class V1_RawRawType {
|
|
|
26
26
|
fullPath!: string;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
export class V1_RawRelationType extends V1_RawRawType {
|
|
30
|
+
columns: V1_RawRelationColumn[] = [];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export class V1_RawRelationColumn {
|
|
34
|
+
name!: string;
|
|
35
|
+
genericType!: V1_RawGenericType;
|
|
36
|
+
multiplicity: V1_Multiplicity | undefined;
|
|
37
|
+
}
|
|
38
|
+
|
|
29
39
|
export class V1_RawGenericType {
|
|
30
40
|
rawType!: V1_RawRawType;
|
|
31
41
|
multiplicityArguments: V1_Multiplicity[] = [];
|
|
@@ -47,6 +57,7 @@ export class V1_RawVariable
|
|
|
47
57
|
this.genericType.rawType.fullPath,
|
|
48
58
|
this.name,
|
|
49
59
|
this.multiplicity,
|
|
60
|
+
hashArray(this.genericType.typeArguments.map((t) => t.rawType.fullPath)),
|
|
50
61
|
]);
|
|
51
62
|
}
|
|
52
63
|
|
|
@@ -83,6 +83,7 @@ const transformAccessPoint = (
|
|
|
83
83
|
lake.reproducible = ap.reproducible;
|
|
84
84
|
lake.description = ap.description;
|
|
85
85
|
lake.title = ap.title;
|
|
86
|
+
lake.stereotypes = ap.stereotypes.map(V1_transformStereotype);
|
|
86
87
|
return lake;
|
|
87
88
|
} else if (ap instanceof FunctionAccessPoint) {
|
|
88
89
|
const func = new V1_FunctionAccessPoint();
|
|
@@ -90,6 +91,7 @@ const transformAccessPoint = (
|
|
|
90
91
|
func.description = ap.description;
|
|
91
92
|
func.title = func.title;
|
|
92
93
|
func.query = V1_transformRawLambda(ap.query, context);
|
|
94
|
+
func.stereotypes = ap.stereotypes.map(V1_transformStereotype);
|
|
93
95
|
return func;
|
|
94
96
|
} else if (ap instanceof UnknownAccessPoint) {
|
|
95
97
|
const un = new V1_UnknownAccessPoint();
|
package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.ts
CHANGED
|
@@ -59,6 +59,8 @@ import { V1_DerivedProperty } from '../../../model/packageableElements/domain/V1
|
|
|
59
59
|
import {
|
|
60
60
|
V1_RawGenericType,
|
|
61
61
|
V1_RawRawType,
|
|
62
|
+
V1_RawRelationColumn,
|
|
63
|
+
V1_RawRelationType,
|
|
62
64
|
type V1_RawVariable,
|
|
63
65
|
} from '../../../model/rawValueSpecification/V1_RawVariable.js';
|
|
64
66
|
import type { V1_GraphTransformerContext } from './V1_GraphTransformerContext.js';
|
|
@@ -146,6 +148,49 @@ export const V1_createRawGenericTypeWithElementPath = (
|
|
|
146
148
|
return genType;
|
|
147
149
|
};
|
|
148
150
|
|
|
151
|
+
export function V1_createRawGenericTypeFromPathAndTypeArguments(
|
|
152
|
+
path: string,
|
|
153
|
+
typeArgumentsValues: GenericType[],
|
|
154
|
+
): V1_RawGenericType {
|
|
155
|
+
const genType = V1_createRawGenericTypeWithElementPath(path);
|
|
156
|
+
genType.typeArguments = typeArgumentsValues.map((t) => {
|
|
157
|
+
const gType = new V1_RawGenericType();
|
|
158
|
+
gType.rawType = V1_transformRawGenericType_Type(t.rawType);
|
|
159
|
+
return gType;
|
|
160
|
+
});
|
|
161
|
+
return genType;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export function V1_transformRawGenericType_Type(type: Type): V1_RawRawType {
|
|
165
|
+
if (type instanceof RelationType) {
|
|
166
|
+
return V1_transformRawGenericType_RelationType(type);
|
|
167
|
+
}
|
|
168
|
+
const pType = new V1_RawRawType();
|
|
169
|
+
pType.fullPath = type.path;
|
|
170
|
+
return pType;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export function V1_transformRawGenericType_RelationType(
|
|
174
|
+
type: RelationType,
|
|
175
|
+
): V1_RawRelationType {
|
|
176
|
+
const relationType = new V1_RawRelationType();
|
|
177
|
+
relationType.columns = type.columns.map((col) => {
|
|
178
|
+
const colType = col.genericType.value;
|
|
179
|
+
const column = new V1_RawRelationColumn();
|
|
180
|
+
column.name = col.name;
|
|
181
|
+
column.genericType = V1_createRawGenericTypeWithElementPath(
|
|
182
|
+
colType.rawType.path,
|
|
183
|
+
);
|
|
184
|
+
column.genericType.typeVariableValues =
|
|
185
|
+
colType.typeVariableValues?.map((v) =>
|
|
186
|
+
V1_transformRootValueSpecification(v),
|
|
187
|
+
) ?? [];
|
|
188
|
+
column.multiplicity = V1_transformMultiplicity(col.multiplicity);
|
|
189
|
+
return column;
|
|
190
|
+
});
|
|
191
|
+
return relationType;
|
|
192
|
+
}
|
|
193
|
+
|
|
149
194
|
export const V1_transformProfile = (element: Profile): V1_Profile => {
|
|
150
195
|
const profile = new V1_Profile();
|
|
151
196
|
V1_initPackageableElement(profile, element);
|
|
@@ -25,7 +25,7 @@ import type { V1_RawValueSpecification } from '../../../model/rawValueSpecificat
|
|
|
25
25
|
import { V1_RawPrimitiveInstanceValue } from '../../../model/rawValueSpecification/V1_RawPrimitiveInstanceValue.js';
|
|
26
26
|
import type { RawPrimitiveInstanceValue } from '../../../../../../../graph/metamodel/pure/rawValueSpecification/RawPrimitiveInstanceValue.js';
|
|
27
27
|
import { pruneSourceInformation } from '../../../../../../../graph/MetaModelUtils.js';
|
|
28
|
-
import {
|
|
28
|
+
import { V1_createRawGenericTypeFromPathAndTypeArguments } from './V1_DomainTransformer.js';
|
|
29
29
|
|
|
30
30
|
export class V1_RawValueSpecificationTransformer
|
|
31
31
|
implements RawValueSpecificationVisitor<V1_RawValueSpecification>
|
|
@@ -59,8 +59,9 @@ export class V1_RawValueSpecificationTransformer
|
|
|
59
59
|
rawValueSpecification: RawVariableExpression,
|
|
60
60
|
): V1_RawValueSpecification {
|
|
61
61
|
const rawVariable = new V1_RawVariable();
|
|
62
|
-
rawVariable.genericType =
|
|
62
|
+
rawVariable.genericType = V1_createRawGenericTypeFromPathAndTypeArguments(
|
|
63
63
|
rawValueSpecification.type.valueForSerialization ?? '',
|
|
64
|
+
rawValueSpecification.typeArguments?.map((t) => t.value) ?? [],
|
|
64
65
|
);
|
|
65
66
|
rawVariable.multiplicity = V1_transformMultiplicity(
|
|
66
67
|
rawValueSpecification.multiplicity,
|
package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.ts
CHANGED
|
@@ -114,6 +114,12 @@ import {
|
|
|
114
114
|
} from '../../../../../../../graph/metamodel/pure/packageableElements/relation/RelationType.js';
|
|
115
115
|
import type { DataProduct } from '../../../../../../../graph/metamodel/pure/dataProduct/DataProduct.js';
|
|
116
116
|
import { V1_buildValueSpecification } from './helpers/V1_ValueSpecificationBuilderHelper.js';
|
|
117
|
+
import {
|
|
118
|
+
type V1_RawGenericType,
|
|
119
|
+
V1_RawRelationType,
|
|
120
|
+
} from '../../../model/rawValueSpecification/V1_RawVariable.js';
|
|
121
|
+
import { Multiplicity } from '../../../../../../../graph/metamodel/pure/packageableElements/domain/Multiplicity.js';
|
|
122
|
+
import type { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification.js';
|
|
117
123
|
|
|
118
124
|
export const V1_buildFullPath = (
|
|
119
125
|
packagePath: string | undefined,
|
|
@@ -381,6 +387,45 @@ export class V1_GraphBuilderContext {
|
|
|
381
387
|
return GenericTypeImplicitReference.create(ownerReference, value);
|
|
382
388
|
};
|
|
383
389
|
|
|
390
|
+
resolveRawGenericTypeFromProtocol = (
|
|
391
|
+
genericType: V1_RawGenericType,
|
|
392
|
+
): GenericTypeReference => {
|
|
393
|
+
let ownerReference: PackageableElementImplicitReference<PackageableElement>;
|
|
394
|
+
const rawType = genericType.rawType;
|
|
395
|
+
if (rawType instanceof V1_RawRelationType) {
|
|
396
|
+
const _relType = new RelationType(RelationType.ID);
|
|
397
|
+
_relType.columns = rawType.columns.map((_col) => {
|
|
398
|
+
const relCol = new RelationColumn(
|
|
399
|
+
_col.name,
|
|
400
|
+
this.resolveRawGenericTypeFromProtocol(_col.genericType),
|
|
401
|
+
);
|
|
402
|
+
if (_col.multiplicity) {
|
|
403
|
+
relCol.multiplicity = this.graph.getMultiplicity(
|
|
404
|
+
_col.multiplicity.lowerBound,
|
|
405
|
+
_col.multiplicity.upperBound,
|
|
406
|
+
);
|
|
407
|
+
} else {
|
|
408
|
+
relCol.multiplicity = Multiplicity.ZERO_ONE;
|
|
409
|
+
}
|
|
410
|
+
return relCol;
|
|
411
|
+
});
|
|
412
|
+
ownerReference = PackageableElementImplicitReference.create(
|
|
413
|
+
_relType,
|
|
414
|
+
V1_RelationType.NAME,
|
|
415
|
+
);
|
|
416
|
+
} else {
|
|
417
|
+
ownerReference = this.resolveType(rawType.fullPath);
|
|
418
|
+
}
|
|
419
|
+
const typeArguments = genericType.typeArguments.map((g) =>
|
|
420
|
+
this.resolveRawGenericTypeFromProtocol(g),
|
|
421
|
+
);
|
|
422
|
+
const value = newGenericType(ownerReference.value, typeArguments);
|
|
423
|
+
value.typeVariableValues = genericType.typeVariableValues.map((v) =>
|
|
424
|
+
V1_buildValueSpecification(v as V1_ValueSpecification, this),
|
|
425
|
+
);
|
|
426
|
+
return GenericTypeImplicitReference.create(ownerReference, value);
|
|
427
|
+
};
|
|
428
|
+
|
|
384
429
|
resolveOwnProperty = (
|
|
385
430
|
pointer: V1_PropertyPointer,
|
|
386
431
|
): PropertyImplicitReference => {
|
|
@@ -100,6 +100,9 @@ export const V1_buildAccessPoint = (
|
|
|
100
100
|
lakeAccessPoint.classification = ap.classification;
|
|
101
101
|
lakeAccessPoint.description = ap.description;
|
|
102
102
|
lakeAccessPoint.title = ap.title;
|
|
103
|
+
lakeAccessPoint.stereotypes = ap.stereotypes
|
|
104
|
+
.map((stereotype) => context.resolveStereotype(stereotype))
|
|
105
|
+
.filter(isNonNullable);
|
|
103
106
|
return lakeAccessPoint;
|
|
104
107
|
} else if (ap instanceof V1_FunctionAccessPoint) {
|
|
105
108
|
const functionAccessPoint = new FunctionAccessPoint(
|
|
@@ -112,6 +115,9 @@ export const V1_buildAccessPoint = (
|
|
|
112
115
|
);
|
|
113
116
|
functionAccessPoint.description = ap.description;
|
|
114
117
|
functionAccessPoint.title = ap.title;
|
|
118
|
+
functionAccessPoint.stereotypes = ap.stereotypes
|
|
119
|
+
.map((stereotype) => context.resolveStereotype(stereotype))
|
|
120
|
+
.filter(isNonNullable);
|
|
115
121
|
return functionAccessPoint;
|
|
116
122
|
} else if (ap instanceof V1_UnknownAccessPoint) {
|
|
117
123
|
const unknown = new UnknownAccessPoint(ap.id);
|
|
@@ -140,7 +140,15 @@ export const V1_buildVariable = (
|
|
|
140
140
|
variable.multiplicity.upperBound,
|
|
141
141
|
);
|
|
142
142
|
const type = context.resolveType(variable.genericType.rawType.fullPath);
|
|
143
|
-
|
|
143
|
+
const typeArguments = variable.genericType.typeArguments.map((g) =>
|
|
144
|
+
context.resolveRawGenericTypeFromProtocol(g),
|
|
145
|
+
);
|
|
146
|
+
return new RawVariableExpression(
|
|
147
|
+
variable.name,
|
|
148
|
+
multiplicity,
|
|
149
|
+
type,
|
|
150
|
+
typeArguments,
|
|
151
|
+
);
|
|
144
152
|
};
|
|
145
153
|
|
|
146
154
|
export const V1_buildUnit = (
|
|
@@ -115,6 +115,9 @@ export const V1_lakehouseAccessPointModelSchema = createModelSchema(
|
|
|
115
115
|
func: usingModelSchema(V1_rawLambdaModelSchema),
|
|
116
116
|
id: primitive(),
|
|
117
117
|
reproducible: optional(primitive()),
|
|
118
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
119
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
120
|
+
}),
|
|
118
121
|
targetEnvironment: primitive(),
|
|
119
122
|
title: optional(primitive()),
|
|
120
123
|
},
|
|
@@ -127,6 +130,9 @@ export const V1_functionAccessPointModelSchema = createModelSchema(
|
|
|
127
130
|
description: optional(primitive()),
|
|
128
131
|
id: primitive(),
|
|
129
132
|
query: usingModelSchema(V1_rawLambdaModelSchema),
|
|
133
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
134
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
135
|
+
}),
|
|
130
136
|
title: optional(primitive()),
|
|
131
137
|
},
|
|
132
138
|
);
|
|
@@ -291,6 +297,9 @@ export const V1_NativeModelAccessModelSchema = createModelSchema(
|
|
|
291
297
|
export const V1_DefaultAccessPointGroupModelSchema = createModelSchema(
|
|
292
298
|
V1_AccessPointGroup,
|
|
293
299
|
{
|
|
300
|
+
_type: usingConstantValueSchema(
|
|
301
|
+
V1_AccessPointGrouptype.DEFAULT_ACCESS_POINT_GROUP,
|
|
302
|
+
),
|
|
294
303
|
accessPoints: customList(
|
|
295
304
|
V1_serializeAccessPoint,
|
|
296
305
|
V1_deserializeAccessPoint,
|
|
@@ -462,6 +471,7 @@ export const V1_dataProductModelSchema = (
|
|
|
462
471
|
sampleValues: optionalCustomList(
|
|
463
472
|
(data: V1_EmbeddedData) => V1_serializeEmbeddedDataType(data, plugins),
|
|
464
473
|
(data) => V1_deserializeEmbeddedDataType(data, plugins),
|
|
474
|
+
{ INTERNAL__forceReturnEmptyInTest: true },
|
|
465
475
|
),
|
|
466
476
|
icon: optionalCustom(
|
|
467
477
|
V1_serializeDataProductIcon,
|
|
@@ -479,9 +489,13 @@ export const V1_dataProductModelSchema = (
|
|
|
479
489
|
V1_serializeDataProductType,
|
|
480
490
|
V1_deserializeDataProductType,
|
|
481
491
|
),
|
|
482
|
-
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema
|
|
492
|
+
stereotypes: customListWithSchema(V1_stereotypePtrModelSchema, {
|
|
493
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
494
|
+
}),
|
|
483
495
|
supportInfo: optionalCustomUsingModelSchema(V1_SupportInfoModelSchema),
|
|
484
|
-
taggedValues: customListWithSchema(V1_taggedValueModelSchema
|
|
496
|
+
taggedValues: customListWithSchema(V1_taggedValueModelSchema, {
|
|
497
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
498
|
+
}),
|
|
485
499
|
title: optional(primitive()),
|
|
486
500
|
});
|
|
487
501
|
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
custom,
|
|
24
24
|
alias,
|
|
25
25
|
optional,
|
|
26
|
-
|
|
26
|
+
list,
|
|
27
27
|
} from 'serializr';
|
|
28
28
|
import {
|
|
29
29
|
type PlainObject,
|
|
@@ -43,6 +43,8 @@ import type {
|
|
|
43
43
|
import {
|
|
44
44
|
V1_RawGenericType,
|
|
45
45
|
V1_RawRawType,
|
|
46
|
+
V1_RawRelationType,
|
|
47
|
+
V1_RawRelationColumn,
|
|
46
48
|
V1_RawVariable,
|
|
47
49
|
} from '../../../model/rawValueSpecification/V1_RawVariable.js';
|
|
48
50
|
import { V1_multiplicityModelSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js';
|
|
@@ -56,6 +58,11 @@ import { V1_Type_Type } from './V1_TypeSerializationHelper.js';
|
|
|
56
58
|
import { V1_Multiplicity } from '../../../model/packageableElements/domain/V1_Multiplicity.js';
|
|
57
59
|
import type { V1_GenericType } from '../../../model/packageableElements/type/V1_GenericType.js';
|
|
58
60
|
import { matchFunctionName } from '../../../../../../../graph/MetaModelUtils.js';
|
|
61
|
+
import {
|
|
62
|
+
V1_deserializeValueSpecification,
|
|
63
|
+
V1_serializeValueSpecification,
|
|
64
|
+
} from './V1_ValueSpecificationSerializer.js';
|
|
65
|
+
import type { V1_ValueSpecification } from '../../../model/valueSpecification/V1_ValueSpecification.js';
|
|
59
66
|
|
|
60
67
|
enum V1_RawExecutionContextType {
|
|
61
68
|
BASE_EXECUTION_CONTEXT = 'BaseExecutionContext',
|
|
@@ -82,33 +89,72 @@ const rawRawTypeSchemaModel = createModelSchema(V1_RawRawType, {
|
|
|
82
89
|
fullPath: primitive(),
|
|
83
90
|
});
|
|
84
91
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
92
|
+
function serializeRawType(val: V1_RawRawType): PlainObject {
|
|
93
|
+
if (val instanceof V1_RawRelationType) {
|
|
94
|
+
return serialize(rawRelationTypeSchemaModel(), val);
|
|
95
|
+
}
|
|
96
|
+
return serialize(rawRawTypeSchemaModel, val);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
function deserializeRawType(val: PlainObject): V1_RawRawType {
|
|
100
|
+
if (val._type === V1_Type_Type.RELATION_TYPE) {
|
|
101
|
+
return deserialize(rawRelationTypeSchemaModel(), val) as V1_RawRelationType;
|
|
102
|
+
}
|
|
103
|
+
return deserialize(rawRawTypeSchemaModel, val);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
function V1_RawGenericTypeSchemaModelInner(): ReturnType<
|
|
107
|
+
typeof createModelSchema
|
|
108
|
+
> {
|
|
109
|
+
return createModelSchema(V1_RawGenericType, {
|
|
110
|
+
multiplicityArguments: customList(
|
|
111
|
+
(val: V1_Multiplicity) => serialize(V1_multiplicityModelSchema, val),
|
|
112
|
+
(val) => deserialize(V1_multiplicityModelSchema, val),
|
|
113
|
+
{
|
|
114
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
115
|
+
},
|
|
116
|
+
),
|
|
117
|
+
rawType: custom(
|
|
118
|
+
(val) => serializeRawType(val),
|
|
119
|
+
(val) => deserializeRawType(val),
|
|
120
|
+
),
|
|
121
|
+
typeArguments: optionalCustomList(
|
|
122
|
+
(value) => serialize(V1_RawGenericType, value),
|
|
123
|
+
(value) => deserialize(V1_RawGenericType, value),
|
|
124
|
+
{
|
|
125
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
126
|
+
},
|
|
127
|
+
),
|
|
128
|
+
typeVariableValues: optionalCustomList(
|
|
129
|
+
(value) =>
|
|
130
|
+
V1_serializeValueSpecification(value as V1_ValueSpecification, []),
|
|
131
|
+
(value) => V1_deserializeValueSpecification(value, []),
|
|
132
|
+
{
|
|
133
|
+
INTERNAL__forceReturnEmptyInTest: true,
|
|
134
|
+
},
|
|
135
|
+
),
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
function V1_rawRelationColumnModelSchema(): ReturnType<
|
|
140
|
+
typeof createModelSchema
|
|
141
|
+
> {
|
|
142
|
+
return createModelSchema(V1_RawRelationColumn, {
|
|
143
|
+
name: primitive(),
|
|
144
|
+
genericType: custom(
|
|
145
|
+
(val) => serialize(V1_RawGenericTypeSchemaModelInner(), val),
|
|
146
|
+
(val) => deserialize(V1_RawGenericTypeSchemaModelInner(), val),
|
|
147
|
+
),
|
|
148
|
+
multiplicity: optional(usingModelSchema(V1_multiplicityModelSchema)),
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
function rawRelationTypeSchemaModel(): ReturnType<typeof createModelSchema> {
|
|
153
|
+
return createModelSchema(V1_RawRelationType, {
|
|
154
|
+
_type: usingConstantValueSchema(V1_Type_Type.RELATION_TYPE),
|
|
155
|
+
columns: list(usingModelSchema(V1_rawRelationColumnModelSchema())),
|
|
156
|
+
});
|
|
157
|
+
}
|
|
112
158
|
|
|
113
159
|
const V1_RawGenericTypeSchemaModel = createModelSchema(V1_RawGenericType, {
|
|
114
160
|
multiplicityArguments: customList(
|
|
@@ -120,15 +166,15 @@ const V1_RawGenericTypeSchemaModel = createModelSchema(V1_RawGenericType, {
|
|
|
120
166
|
),
|
|
121
167
|
rawType: usingModelSchema(rawRawTypeSchemaModel),
|
|
122
168
|
typeArguments: optionalCustomListWithSchema(
|
|
123
|
-
V1_RawGenericTypeSchemaModelInner,
|
|
169
|
+
V1_RawGenericTypeSchemaModelInner(),
|
|
124
170
|
{
|
|
125
171
|
INTERNAL__forceReturnEmptyInTest: true,
|
|
126
172
|
},
|
|
127
173
|
),
|
|
128
174
|
typeVariableValues: optionalCustomList(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
(value) =>
|
|
175
|
+
(value) =>
|
|
176
|
+
V1_serializeValueSpecification(value as V1_ValueSpecification, []),
|
|
177
|
+
(value) => V1_deserializeValueSpecification(value, []),
|
|
132
178
|
{
|
|
133
179
|
INTERNAL__forceReturnEmptyInTest: true,
|
|
134
180
|
},
|