@finos/legend-graph 22.3.0 → 23.0.1
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/BasicModel.d.ts +5 -5
- package/lib/graph/BasicModel.d.ts.map +1 -1
- package/lib/graph/BasicModel.js +8 -7
- package/lib/graph/BasicModel.js.map +1 -1
- package/lib/graph/DependencyManager.d.ts +3 -2
- package/lib/graph/DependencyManager.d.ts.map +1 -1
- package/lib/graph/DependencyManager.js +8 -4
- package/lib/graph/DependencyManager.js.map +1 -1
- package/lib/graphManager/AbstractPureGraphManager.d.ts +16 -16
- package/lib/graphManager/AbstractPureGraphManager.d.ts.map +1 -1
- package/lib/graphManager/AbstractPureGraphManager.js.map +1 -1
- package/lib/graphManager/GraphManagerEvent.d.ts +24 -21
- package/lib/graphManager/GraphManagerEvent.d.ts.map +1 -1
- package/lib/graphManager/GraphManagerEvent.js +26 -21
- package/lib/graphManager/GraphManagerEvent.js.map +1 -1
- package/lib/graphManager/{GraphBuilderReport.d.ts → GraphManagerMetrics.d.ts} +12 -9
- package/lib/graphManager/GraphManagerMetrics.d.ts.map +1 -0
- package/lib/graphManager/GraphManagerMetrics.js +66 -0
- package/lib/graphManager/GraphManagerMetrics.js.map +1 -0
- package/lib/graphManager/GraphManagerTelemetry.d.ts +8 -6
- package/lib/graphManager/GraphManagerTelemetry.d.ts.map +1 -1
- package/lib/graphManager/GraphManagerTelemetry.js +2 -2
- package/lib/graphManager/GraphManagerTelemetry.js.map +1 -1
- package/lib/graphManager/action/changeDetection/GraphObserverHelper.d.ts.map +1 -1
- package/lib/graphManager/action/changeDetection/GraphObserverHelper.js +2 -0
- package/lib/graphManager/action/changeDetection/GraphObserverHelper.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts +21 -19
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js +165 -82
- package/lib/graphManager/protocol/pure/v1/V1_PureGraphManager.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.d.ts +7 -5
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.js +18 -11
- package/lib/graphManager/protocol/pure/v1/engine/V1_Engine.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts +3 -3
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.js +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/compilation/{V1_LambdaReturnTypeResult.d.ts → V1_LambdaReturnType.d.ts} +10 -1
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnType.d.ts.map +1 -0
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnType.js +32 -0
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnType.js.map +1 -0
- package/lib/graphManager/protocol/pure/v1/engine/test/V1_RunTestsInput.d.ts +2 -2
- package/lib/graphManager/protocol/pure/v1/engine/test/V1_RunTestsInput.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/engine/test/V1_RunTestsInput.js +3 -3
- package/lib/graphManager/protocol/pure/v1/engine/test/V1_RunTestsInput.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js +2 -2
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.js.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.d.ts +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.d.ts.map +1 -1
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.js +6 -6
- package/lib/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.js.map +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/package.json +2 -2
- package/package.json +5 -5
- package/src/graph/BasicModel.ts +9 -7
- package/src/graph/DependencyManager.ts +31 -12
- package/src/graphManager/AbstractPureGraphManager.ts +38 -24
- package/src/graphManager/GraphManagerEvent.ts +27 -21
- package/src/graphManager/GraphManagerMetrics.ts +93 -0
- package/src/graphManager/GraphManagerTelemetry.ts +13 -8
- package/src/graphManager/action/changeDetection/GraphObserverHelper.ts +3 -0
- package/src/graphManager/protocol/pure/v1/V1_PureGraphManager.ts +317 -146
- package/src/graphManager/protocol/pure/v1/engine/V1_Engine.ts +28 -20
- package/src/graphManager/protocol/pure/v1/engine/V1_EngineServerClient.ts +7 -5
- package/src/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnType.ts +43 -0
- package/src/graphManager/protocol/pure/v1/engine/test/V1_RunTestsInput.ts +5 -4
- package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts +2 -2
- package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_MilestoneBuilderHelper.ts +6 -6
- package/src/index.ts +3 -2
- package/tsconfig.json +2 -2
- package/lib/graphManager/GraphBuilderReport.d.ts.map +0 -1
- package/lib/graphManager/GraphBuilderReport.js +0 -24
- package/lib/graphManager/GraphBuilderReport.js.map +0 -1
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.d.ts.map +0 -1
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.js +0 -17
- package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.js.map +0 -1
- package/src/graphManager/GraphBuilderReport.ts +0 -32
- package/src/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.ts +0 -19
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
NetworkClientError,
|
|
27
27
|
returnUndefOnError,
|
|
28
28
|
deserializeMap,
|
|
29
|
+
StopWatch,
|
|
29
30
|
} from '@finos/legend-shared';
|
|
30
31
|
import type { RawLambda } from '../../../../../graph/metamodel/pure/rawValueSpecification/RawLambda.js';
|
|
31
32
|
import {
|
|
@@ -34,13 +35,15 @@ import {
|
|
|
34
35
|
} from '../../../../../graphManager/action/generation/GenerationConfigurationDescription.js';
|
|
35
36
|
import { TEMPORARY__AbstractEngineConfig } from '../../../../../graphManager/action/TEMPORARY__AbstractEngineConfig.js';
|
|
36
37
|
import { V1_EngineServerClient } from './V1_EngineServerClient.js';
|
|
37
|
-
import
|
|
38
|
-
import
|
|
38
|
+
import { V1_PureModelContextData } from '../model/context/V1_PureModelContextData.js';
|
|
39
|
+
import {
|
|
40
|
+
type V1_LambdaReturnTypeResult,
|
|
41
|
+
V1_LambdaReturnTypeInput,
|
|
42
|
+
} from './compilation/V1_LambdaReturnType.js';
|
|
39
43
|
import type { V1_RawLambda } from '../model/rawValueSpecification/V1_RawLambda.js';
|
|
40
44
|
import {
|
|
41
45
|
V1_deserializePureModelContextData,
|
|
42
46
|
V1_serializePureModelContext,
|
|
43
|
-
V1_serializePureModelContextData,
|
|
44
47
|
} from '../transformation/pureProtocol/V1_PureProtocolSerialization.js';
|
|
45
48
|
import { V1_serializeRawValueSpecification } from '../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js';
|
|
46
49
|
import { V1_transformRawLambda } from '../transformation/pureGraph/from/V1_RawValueSpecificationTransformer.js';
|
|
@@ -98,6 +101,7 @@ import type {
|
|
|
98
101
|
} from './compilation/V1_CompilationResult.js';
|
|
99
102
|
import { V1_CompilationWarning } from './compilation/V1_CompilationWarning.js';
|
|
100
103
|
import { V1_GenerateSchemaInput } from './externalFormat/V1_GenerateSchemaInput.js';
|
|
104
|
+
import type { GraphManagerOperationReport } from '../../../../GraphManagerMetrics.js';
|
|
101
105
|
|
|
102
106
|
class V1_EngineConfig extends TEMPORARY__AbstractEngineConfig {
|
|
103
107
|
private engine: V1_Engine;
|
|
@@ -156,16 +160,16 @@ export class V1_Engine {
|
|
|
156
160
|
this.log = log;
|
|
157
161
|
}
|
|
158
162
|
|
|
159
|
-
private
|
|
160
|
-
graph:
|
|
161
|
-
): PlainObject<
|
|
163
|
+
private serializePureModelContext = (
|
|
164
|
+
graph: V1_PureModelContext,
|
|
165
|
+
): PlainObject<V1_PureModelContext> => {
|
|
162
166
|
const startTime = Date.now();
|
|
163
|
-
const serializedGraph =
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
);
|
|
167
|
+
const serializedGraph = V1_serializePureModelContext(graph);
|
|
168
|
+
const logEvent =
|
|
169
|
+
graph instanceof V1_PureModelContextData
|
|
170
|
+
? GRAPH_MANAGER_EVENT.SERIALIZE_GRAPH_PROTOCOL__SUCCESS
|
|
171
|
+
: GRAPH_MANAGER_EVENT.SERIALIZE_GRAPH_CONTEXT_PROTOCOL__SUCCESS;
|
|
172
|
+
this.log.info(LogEvent.create(logEvent), Date.now() - startTime, 'ms');
|
|
169
173
|
return serializedGraph;
|
|
170
174
|
};
|
|
171
175
|
|
|
@@ -201,7 +205,7 @@ export class V1_Engine {
|
|
|
201
205
|
graph: V1_PureModelContextData,
|
|
202
206
|
): Promise<string> {
|
|
203
207
|
return this.engineServerClient.JSONToGrammar_model(
|
|
204
|
-
this.
|
|
208
|
+
this.serializePureModelContext(graph),
|
|
205
209
|
V1_RenderStyle.STANDARD,
|
|
206
210
|
);
|
|
207
211
|
}
|
|
@@ -376,12 +380,12 @@ export class V1_Engine {
|
|
|
376
380
|
// ------------------------------------------- Compile -------------------------------------------
|
|
377
381
|
|
|
378
382
|
async compilePureModelContextData(
|
|
379
|
-
model:
|
|
383
|
+
model: V1_PureModelContext,
|
|
380
384
|
options?: { onError?: (() => void) | undefined } | undefined,
|
|
381
385
|
): Promise<V1_CompilationResult> {
|
|
382
386
|
try {
|
|
383
387
|
const compilationResult = await this.engineServerClient.compile(
|
|
384
|
-
this.
|
|
388
|
+
this.serializePureModelContext(model),
|
|
385
389
|
);
|
|
386
390
|
return {
|
|
387
391
|
warnings: (
|
|
@@ -411,6 +415,7 @@ export class V1_Engine {
|
|
|
411
415
|
|
|
412
416
|
async compileText(
|
|
413
417
|
graphText: string,
|
|
418
|
+
TEMPORARY__report: GraphManagerOperationReport,
|
|
414
419
|
compileContext?: V1_PureModelContextData,
|
|
415
420
|
options?: { onError?: () => void; getCompilationWarnings?: boolean },
|
|
416
421
|
): Promise<V1_TextCompilationResult> {
|
|
@@ -422,13 +427,18 @@ export class V1_Engine {
|
|
|
422
427
|
});
|
|
423
428
|
const pureModelContextDataJson = compileContext
|
|
424
429
|
? mergeObjects(
|
|
425
|
-
this.
|
|
430
|
+
this.serializePureModelContext(compileContext),
|
|
426
431
|
mainGraph,
|
|
427
432
|
false,
|
|
428
433
|
)
|
|
429
434
|
: mainGraph;
|
|
430
435
|
try {
|
|
436
|
+
const stopWatch = new StopWatch();
|
|
431
437
|
await this.engineServerClient.compile(pureModelContextDataJson);
|
|
438
|
+
TEMPORARY__report.timings[
|
|
439
|
+
GRAPH_MANAGER_EVENT.V1_ENGINE_OPERATION_SERVER_CALL__SUCCESS
|
|
440
|
+
] = stopWatch.elapsed;
|
|
441
|
+
|
|
432
442
|
const model = V1_deserializePureModelContextData(mainGraph);
|
|
433
443
|
const compilationResult = await this.engineServerClient.compile(
|
|
434
444
|
pureModelContextDataJson,
|
|
@@ -461,14 +471,12 @@ export class V1_Engine {
|
|
|
461
471
|
}
|
|
462
472
|
|
|
463
473
|
async getLambdaReturnType(
|
|
464
|
-
|
|
465
|
-
model: V1_PureModelContextData,
|
|
474
|
+
lambdaReturnInput: V1_LambdaReturnTypeInput,
|
|
466
475
|
): Promise<string> {
|
|
467
476
|
try {
|
|
468
477
|
return (
|
|
469
478
|
(await this.engineServerClient.lambdaReturnType(
|
|
470
|
-
|
|
471
|
-
this.serializePureModelContextData(model),
|
|
479
|
+
V1_LambdaReturnTypeInput.serialization.toJson(lambdaReturnInput),
|
|
472
480
|
)) as unknown as V1_LambdaReturnTypeResult
|
|
473
481
|
).returnType;
|
|
474
482
|
} catch (error) {
|
|
@@ -23,7 +23,10 @@ import {
|
|
|
23
23
|
HttpHeader,
|
|
24
24
|
} from '@finos/legend-shared';
|
|
25
25
|
import type { V1_PureModelContextData } from '../model/context/V1_PureModelContextData.js';
|
|
26
|
-
import type {
|
|
26
|
+
import type {
|
|
27
|
+
V1_LambdaReturnTypeInput,
|
|
28
|
+
V1_LambdaReturnTypeResult,
|
|
29
|
+
} from './compilation/V1_LambdaReturnType.js';
|
|
27
30
|
import type { V1_ServiceRegistrationResult } from './service/V1_ServiceRegistrationResult.js';
|
|
28
31
|
import type { V1_ServiceConfigurationInfo } from './service/V1_ServiceConfiguration.js';
|
|
29
32
|
import type { V1_CompileResult } from './compilation/V1_CompileResult.js';
|
|
@@ -411,7 +414,7 @@ export class V1_EngineServerClient extends AbstractServerClient {
|
|
|
411
414
|
// ------------------------------------------- Compile -------------------------------------------
|
|
412
415
|
|
|
413
416
|
compile = (
|
|
414
|
-
model: PlainObject<
|
|
417
|
+
model: PlainObject<V1_PureModelContext>,
|
|
415
418
|
): Promise<PlainObject<V1_CompileResult>> =>
|
|
416
419
|
this.postWithTracing(
|
|
417
420
|
this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.COMPILE),
|
|
@@ -423,13 +426,12 @@ export class V1_EngineServerClient extends AbstractServerClient {
|
|
|
423
426
|
{ enableCompression: true },
|
|
424
427
|
);
|
|
425
428
|
lambdaReturnType = (
|
|
426
|
-
|
|
427
|
-
model: PlainObject<V1_PureModelContextData>,
|
|
429
|
+
input: PlainObject<V1_LambdaReturnTypeInput>,
|
|
428
430
|
): Promise<PlainObject<V1_LambdaReturnTypeResult>> =>
|
|
429
431
|
this.postWithTracing(
|
|
430
432
|
this.getTraceData(CORE_ENGINE_ACTIVITY_TRACE.GET_LAMBDA_RETURN_TYPE),
|
|
431
433
|
`${this._pure()}/compilation/lambdaReturnType`,
|
|
432
|
-
|
|
434
|
+
input,
|
|
433
435
|
{},
|
|
434
436
|
undefined,
|
|
435
437
|
undefined,
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
18
|
+
import { createModelSchema } from 'serializr';
|
|
19
|
+
import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js';
|
|
20
|
+
import type { V1_RawLambda } from '../../model/rawValueSpecification/V1_RawLambda.js';
|
|
21
|
+
import { V1_rawLambdaModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_RawValueSpecificationSerializationHelper.js';
|
|
22
|
+
import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js';
|
|
23
|
+
|
|
24
|
+
export class V1_LambdaReturnTypeInput {
|
|
25
|
+
model: V1_PureModelContext;
|
|
26
|
+
lambda: V1_RawLambda;
|
|
27
|
+
|
|
28
|
+
constructor(model: V1_PureModelContext, lambda: V1_RawLambda) {
|
|
29
|
+
this.model = model;
|
|
30
|
+
this.lambda = lambda;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
static readonly serialization = new SerializationFactory(
|
|
34
|
+
createModelSchema(V1_LambdaReturnTypeInput, {
|
|
35
|
+
lambda: usingModelSchema(V1_rawLambdaModelSchema),
|
|
36
|
+
model: V1_pureModelContextPropSchema,
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface V1_LambdaReturnTypeResult {
|
|
42
|
+
returnType: string;
|
|
43
|
+
}
|
|
@@ -15,10 +15,11 @@
|
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
import { SerializationFactory, usingModelSchema } from '@finos/legend-shared';
|
|
18
|
-
import { createModelSchema,
|
|
19
|
-
import {
|
|
18
|
+
import { createModelSchema, primitive, list } from 'serializr';
|
|
19
|
+
import type { V1_PureModelContext } from '../../model/context/V1_PureModelContext.js';
|
|
20
20
|
import type { V1_UniqueTestId } from '../../model/test/V1_UniqueTestId.js';
|
|
21
21
|
import { V1_uniqueTestIdModelSchema } from '../../transformation/pureProtocol/serializationHelpers/V1_TestSerializationHelper.js';
|
|
22
|
+
import { V1_pureModelContextPropSchema } from '../../transformation/pureProtocol/V1_PureProtocolSerialization.js';
|
|
22
23
|
|
|
23
24
|
export class V1_RunTestsTestableInput {
|
|
24
25
|
testable!: string;
|
|
@@ -33,12 +34,12 @@ export class V1_RunTestsTestableInput {
|
|
|
33
34
|
}
|
|
34
35
|
|
|
35
36
|
export class V1_RunTestsInput {
|
|
36
|
-
model!:
|
|
37
|
+
model!: V1_PureModelContext;
|
|
37
38
|
testables: V1_RunTestsTestableInput[] = [];
|
|
38
39
|
|
|
39
40
|
static readonly serialization = new SerializationFactory(
|
|
40
41
|
createModelSchema(V1_RunTestsInput, {
|
|
41
|
-
model:
|
|
42
|
+
model: V1_pureModelContextPropSchema,
|
|
42
43
|
testables: usingModelSchema(
|
|
43
44
|
V1_RunTestsTestableInput.serialization.schema,
|
|
44
45
|
),
|
package/src/graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementThirdPassBuilder.ts
CHANGED
|
@@ -58,7 +58,7 @@ import { V1_buildDatabaseSchemaViewsFirstPass } from './helpers/V1_DatabaseBuild
|
|
|
58
58
|
import type { V1_SectionIndex } from '../../../model/packageableElements/section/V1_SectionIndex.js';
|
|
59
59
|
import { GraphBuilderError } from '../../../../../../../graphManager/GraphManagerUtils.js';
|
|
60
60
|
import type { V1_DataElement } from '../../../model/packageableElements/data/V1_DataElement.js';
|
|
61
|
-
import {
|
|
61
|
+
import { V1_TEMPORARY__buildMilestoningClass } from './helpers/V1_MilestoneBuilderHelper.js';
|
|
62
62
|
|
|
63
63
|
export class V1_ElementThirdPassBuilder
|
|
64
64
|
implements V1_PackageableElementVisitor<void>
|
|
@@ -133,7 +133,7 @@ export class V1_ElementThirdPassBuilder
|
|
|
133
133
|
_class.properties.push(V1_buildProperty(property, this.context, _class));
|
|
134
134
|
uniqueProperties.add(property.name);
|
|
135
135
|
});
|
|
136
|
-
|
|
136
|
+
V1_TEMPORARY__buildMilestoningClass(_class, this.context.graph);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
visit_Association(element: V1_Association): void {
|
|
@@ -52,7 +52,7 @@ const buildMilestoningParameter = (
|
|
|
52
52
|
return json;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
const
|
|
55
|
+
const V1_TEMPORARY__buildMilestoningDateProperty = (
|
|
56
56
|
propertyName: string,
|
|
57
57
|
owner: PropertyOwner,
|
|
58
58
|
graph: PureModel,
|
|
@@ -70,7 +70,7 @@ const V1_TEMPORARY_buildMilestoningDateProperty = (
|
|
|
70
70
|
* We are temproary generating them to support migration Pure -> Legend which have mappings mapped against
|
|
71
71
|
* these properties
|
|
72
72
|
*/
|
|
73
|
-
export const
|
|
73
|
+
export const V1_TEMPORARY__buildMilestoningClass = (
|
|
74
74
|
_class: Class,
|
|
75
75
|
graph: PureModel,
|
|
76
76
|
): void => {
|
|
@@ -78,7 +78,7 @@ export const V1_TEMPORARY_buildMilestoningClass = (
|
|
|
78
78
|
switch (milestonedStereotype) {
|
|
79
79
|
case MILESTONING_STEREOTYPE.BUSINESS_TEMPORAL: {
|
|
80
80
|
_class._generatedMilestonedProperties.push(
|
|
81
|
-
|
|
81
|
+
V1_TEMPORARY__buildMilestoningDateProperty(
|
|
82
82
|
BUSINESS_DATE_MILESTONING_PROPERTY_NAME,
|
|
83
83
|
_class,
|
|
84
84
|
graph,
|
|
@@ -88,7 +88,7 @@ export const V1_TEMPORARY_buildMilestoningClass = (
|
|
|
88
88
|
}
|
|
89
89
|
case MILESTONING_STEREOTYPE.PROCESSING_TEMPORAL: {
|
|
90
90
|
_class._generatedMilestonedProperties.push(
|
|
91
|
-
|
|
91
|
+
V1_TEMPORARY__buildMilestoningDateProperty(
|
|
92
92
|
PROCESSING_DATE_MILESTONING_PROPERTY_NAME,
|
|
93
93
|
_class,
|
|
94
94
|
graph,
|
|
@@ -98,14 +98,14 @@ export const V1_TEMPORARY_buildMilestoningClass = (
|
|
|
98
98
|
}
|
|
99
99
|
case MILESTONING_STEREOTYPE.BITEMPORAL: {
|
|
100
100
|
_class._generatedMilestonedProperties.push(
|
|
101
|
-
|
|
101
|
+
V1_TEMPORARY__buildMilestoningDateProperty(
|
|
102
102
|
BUSINESS_DATE_MILESTONING_PROPERTY_NAME,
|
|
103
103
|
_class,
|
|
104
104
|
graph,
|
|
105
105
|
),
|
|
106
106
|
);
|
|
107
107
|
_class._generatedMilestonedProperties.push(
|
|
108
|
-
|
|
108
|
+
V1_TEMPORARY__buildMilestoningDateProperty(
|
|
109
109
|
PROCESSING_DATE_MILESTONING_PROPERTY_NAME,
|
|
110
110
|
_class,
|
|
111
111
|
graph,
|
package/src/index.ts
CHANGED
|
@@ -93,7 +93,6 @@ export { V1_StereotypePtr } from './graphManager/protocol/pure/v1/model/packagea
|
|
|
93
93
|
export { V1_TaggedValue } from './graphManager/protocol/pure/v1/model/packageableElements/domain/V1_TaggedValue.js';
|
|
94
94
|
export { V1_PropertyPointer } from './graphManager/protocol/pure/v1/model/packageableElements/domain/V1_PropertyPointer.js';
|
|
95
95
|
export { V1_SectionIndex } from './graphManager/protocol/pure/v1/model/packageableElements/section/V1_SectionIndex.js';
|
|
96
|
-
|
|
97
96
|
// --------------------------------------------- VALUE SPECIFICATION --------------------------------------------------
|
|
98
97
|
|
|
99
98
|
// metamodels
|
|
@@ -206,7 +205,7 @@ export {
|
|
|
206
205
|
AbstractPureGraphManager,
|
|
207
206
|
type GraphBuilderOptions,
|
|
208
207
|
} from './graphManager/AbstractPureGraphManager.js';
|
|
209
|
-
export
|
|
208
|
+
export * from './graphManager/GraphManagerMetrics.js';
|
|
210
209
|
export { GraphManagerTelemetry } from './graphManager/GraphManagerTelemetry.js';
|
|
211
210
|
export * from './graphManager/GraphManagerUtils.js';
|
|
212
211
|
export * from './graphManager/GraphManagerEvent.js';
|
|
@@ -251,6 +250,7 @@ export {
|
|
|
251
250
|
} from './graphManager/protocol/pure/v1/transformation/pureGraph/from/V1_DomainTransformer.js';
|
|
252
251
|
export { V1_buildTaggedValue } from './graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_DomainBuilderHelper.js';
|
|
253
252
|
export { V1_PureModelContextData } from './graphManager/protocol/pure/v1/model/context/V1_PureModelContextData.js';
|
|
253
|
+
export { V1_PureModelContext } from './graphManager/protocol/pure/v1/model/context/V1_PureModelContext.js';
|
|
254
254
|
export * from './graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_GraphBuilderContext.js';
|
|
255
255
|
export * from './graphManager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ValueSpecificationPathResolver.js';
|
|
256
256
|
export * from './graphManager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementBuilder.js';
|
|
@@ -273,6 +273,7 @@ export { V1_EngineServerClient } from './graphManager/protocol/pure/v1/engine/V1
|
|
|
273
273
|
export { V1_Engine } from './graphManager/protocol/pure/v1/engine/V1_Engine.js';
|
|
274
274
|
export {
|
|
275
275
|
V1_PureModelContextType,
|
|
276
|
+
V1_pureModelContextPropSchema,
|
|
276
277
|
V1_entitiesToPureModelContextData,
|
|
277
278
|
V1_deserializePureModelContextData,
|
|
278
279
|
} from './graphManager/protocol/pure/v1/transformation/pureProtocol/V1_PureProtocolSerialization.js';
|
package/tsconfig.json
CHANGED
|
@@ -267,8 +267,8 @@
|
|
|
267
267
|
"./src/graphManager/DSL_Generation_PureGraphManagerPlugin_Extension.ts",
|
|
268
268
|
"./src/graphManager/DSL_Mapping_PureGraphManagerPlugin_Extension.ts",
|
|
269
269
|
"./src/graphManager/EmbeddedData_PureGraphManagerPlugin_Extension.ts",
|
|
270
|
-
"./src/graphManager/GraphBuilderReport.ts",
|
|
271
270
|
"./src/graphManager/GraphManagerEvent.ts",
|
|
271
|
+
"./src/graphManager/GraphManagerMetrics.ts",
|
|
272
272
|
"./src/graphManager/GraphManagerPluginManager.ts",
|
|
273
273
|
"./src/graphManager/GraphManagerState.ts",
|
|
274
274
|
"./src/graphManager/GraphManagerTelemetry.ts",
|
|
@@ -335,7 +335,7 @@
|
|
|
335
335
|
"./src/graphManager/protocol/pure/v1/engine/compilation/V1_CompilationResult.ts",
|
|
336
336
|
"./src/graphManager/protocol/pure/v1/engine/compilation/V1_CompilationWarning.ts",
|
|
337
337
|
"./src/graphManager/protocol/pure/v1/engine/compilation/V1_CompileResult.ts",
|
|
338
|
-
"./src/graphManager/protocol/pure/v1/engine/compilation/
|
|
338
|
+
"./src/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnType.ts",
|
|
339
339
|
"./src/graphManager/protocol/pure/v1/engine/execution/V1_ExecuteInput.ts",
|
|
340
340
|
"./src/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionError.ts",
|
|
341
341
|
"./src/graphManager/protocol/pure/v1/engine/execution/V1_ExecutionHelper.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphBuilderReport.d.ts","sourceRoot":"","sources":["../../src/graphManager/GraphBuilderReport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,qBAAa,kBAAkB;IAC7B,OAAO,EAAE;QACP,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,EAAE,MAAM,CAAC;QACtD,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAwD;IACzD,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAEC;IACF,UAAU,EAAE,WAAW,CAAM;CAC9B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent.js';
|
|
17
|
-
export class GraphBuilderReport {
|
|
18
|
-
timings = { [GRAPH_MANAGER_EVENT.GRAPH_BUILDER_COMPLETED]: 0 };
|
|
19
|
-
elementCount = {
|
|
20
|
-
total: 0,
|
|
21
|
-
};
|
|
22
|
-
otherStats = {};
|
|
23
|
-
}
|
|
24
|
-
//# sourceMappingURL=GraphBuilderReport.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GraphBuilderReport.js","sourceRoot":"","sources":["../../src/graphManager/GraphBuilderReport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAE7D,MAAM,OAAO,kBAAkB;IAC7B,OAAO,GAGH,EAAE,CAAC,mBAAmB,CAAC,uBAAuB,CAAC,EAAE,CAAC,EAAE,CAAC;IACzD,YAAY,GAGR;QACF,KAAK,EAAE,CAAC;KACT,CAAC;IACF,UAAU,GAAgB,EAAE,CAAC;CAC9B"}
|
package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"V1_LambdaReturnTypeResult.d.ts","sourceRoot":"","sources":["../../../../../../../src/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export {};
|
|
17
|
-
//# sourceMappingURL=V1_LambdaReturnTypeResult.js.map
|
package/lib/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"V1_LambdaReturnTypeResult.js","sourceRoot":"","sources":["../../../../../../../src/graphManager/protocol/pure/v1/engine/compilation/V1_LambdaReturnTypeResult.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
import type { PlainObject } from '@finos/legend-shared';
|
|
18
|
-
import { GRAPH_MANAGER_EVENT } from './GraphManagerEvent.js';
|
|
19
|
-
|
|
20
|
-
export class GraphBuilderReport {
|
|
21
|
-
timings: {
|
|
22
|
-
[GRAPH_MANAGER_EVENT.GRAPH_BUILDER_COMPLETED]: number;
|
|
23
|
-
[key: string]: number;
|
|
24
|
-
} = { [GRAPH_MANAGER_EVENT.GRAPH_BUILDER_COMPLETED]: 0 };
|
|
25
|
-
elementCount: {
|
|
26
|
-
total: number;
|
|
27
|
-
[key: string]: number;
|
|
28
|
-
} = {
|
|
29
|
-
total: 0,
|
|
30
|
-
};
|
|
31
|
-
otherStats: PlainObject = {};
|
|
32
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2020-present, Goldman Sachs
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
export interface V1_LambdaReturnTypeResult {
|
|
18
|
-
returnType: string;
|
|
19
|
-
}
|