@finos/legend-graph 32.1.40 → 32.1.42
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/packageableElements/runtime/Runtime.d.ts +4 -3
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js +8 -5
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.d.ts +3 -3
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js +1 -1
- package/lib/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.d.ts +18 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.d.ts.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.js +31 -0
- package/lib/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.js.map +1 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts +3 -2
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js +5 -3
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js +3 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js +4 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js +1 -0
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.js +3 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js +6 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.d.ts.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js +5 -4
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts +14 -6
- package/src/graph/metamodel/pure/packageableElements/store/relational/connection/RelationalDatabaseConnection.ts +7 -4
- package/src/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.ts +36 -0
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +7 -4
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_ConnectionTransformer.ts +3 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/from/V1_RuntimeTransformer.ts +4 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/V1_ElementSecondPassBuilder.ts +1 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_ConnectionBuilderHelper.ts +3 -6
- package/src/graph-manager/protocol/pure/v1/transformation/pureGraph/to/helpers/V1_RuntimeBuilderHelper.ts +18 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_DatabaseSerializationHelper.ts +1 -1
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +7 -3
- package/src/index.ts +1 -0
- package/tsconfig.json +1 -0
|
@@ -45,7 +45,24 @@ export const V1_buildEngineRuntime = (
|
|
|
45
45
|
if (runtime instanceof V1_SingleConnectionEngineRuntime) {
|
|
46
46
|
runtimeValue = new SingleConnectionRuntime();
|
|
47
47
|
} else if (runtime instanceof V1_LakehouseRuntime) {
|
|
48
|
-
|
|
48
|
+
let conPointer: ConnectionPointer | undefined;
|
|
49
|
+
if (runtime.connectionPointer) {
|
|
50
|
+
const connection = V1_buildConnection(
|
|
51
|
+
runtime.connectionPointer,
|
|
52
|
+
context,
|
|
53
|
+
undefined,
|
|
54
|
+
);
|
|
55
|
+
conPointer = guaranteeType(
|
|
56
|
+
connection,
|
|
57
|
+
ConnectionPointer,
|
|
58
|
+
`Connection in Connection store expected to be connection pointer`,
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
runtimeValue = new LakehouseRuntime(
|
|
62
|
+
runtime.environment,
|
|
63
|
+
runtime.warehouse,
|
|
64
|
+
conPointer,
|
|
65
|
+
);
|
|
49
66
|
} else {
|
|
50
67
|
runtimeValue = new EngineRuntime();
|
|
51
68
|
}
|
|
@@ -575,7 +575,7 @@ const V1_setupRelationalDatabaseConnectionModelSchema = (
|
|
|
575
575
|
(val) => V1_deserializeDatasourceSpecification(val, plugins),
|
|
576
576
|
),
|
|
577
577
|
localMode: optional(primitive()),
|
|
578
|
-
store: alias('element', primitive()),
|
|
578
|
+
store: optional(alias('element', primitive())),
|
|
579
579
|
queryTimeOutInSeconds: optional(primitive()),
|
|
580
580
|
quoteIdentifiers: optional(primitive()),
|
|
581
581
|
timeZone: optional(primitive()),
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
serialize,
|
|
23
23
|
deserialize,
|
|
24
24
|
object,
|
|
25
|
+
optional,
|
|
25
26
|
} from 'serializr';
|
|
26
27
|
import {
|
|
27
28
|
type PlainObject,
|
|
@@ -56,7 +57,7 @@ export enum V1_RuntimeType {
|
|
|
56
57
|
LEGACY_RUNTIME = 'legacyRuntime',
|
|
57
58
|
ENGINE_RUNTIME = 'engineRuntime',
|
|
58
59
|
SINGLE_ENGINE_RUNTIME = 'localEngineRuntime',
|
|
59
|
-
LAKEHOUSE_RUNTIME = '
|
|
60
|
+
LAKEHOUSE_RUNTIME = 'LakehouseRuntime',
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
export const V1_runtimePointerModelSchema = createModelSchema(
|
|
@@ -119,8 +120,11 @@ export const V1_setupEngineRuntimeSerialization = (
|
|
|
119
120
|
connectionStores: list(object(V1_ConnectionStores)),
|
|
120
121
|
connections: list(object(V1_StoreConnections)),
|
|
121
122
|
mappings: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
122
|
-
|
|
123
|
-
warehouse: primitive(),
|
|
123
|
+
environment: optional(primitive()),
|
|
124
|
+
warehouse: optional(primitive()),
|
|
125
|
+
connectionPointer: optional(
|
|
126
|
+
usingModelSchema(V1_connectionPointerModelSchema),
|
|
127
|
+
),
|
|
124
128
|
});
|
|
125
129
|
};
|
|
126
130
|
|
package/src/index.ts
CHANGED
|
@@ -322,6 +322,7 @@ export {
|
|
|
322
322
|
V1_IngestEnvironment,
|
|
323
323
|
V1_AWSSnowflakeIngestEnvironment,
|
|
324
324
|
} from './graph-manager/protocol/pure/v1/lakehouse/ingest/V1_LakehouseIngestEnvironment.js';
|
|
325
|
+
export { V1_observe_DataContract } from './graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.js';
|
|
325
326
|
export {
|
|
326
327
|
V1_CreateSubscriptionInputModelSchema,
|
|
327
328
|
V1_dataSubscriptionModelSchema,
|
package/tsconfig.json
CHANGED
|
@@ -499,6 +499,7 @@
|
|
|
499
499
|
"./src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_ConsumerEntitlements.ts",
|
|
500
500
|
"./src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_CoreEntitlements.ts",
|
|
501
501
|
"./src/graph-manager/protocol/pure/v1/lakehouse/entitlements/V1_EntitlementsTasks.ts",
|
|
502
|
+
"./src/graph-manager/protocol/pure/v1/lakehouse/helpers/V1_ConsumerEntitlementsObserver.ts",
|
|
502
503
|
"./src/graph-manager/protocol/pure/v1/lakehouse/ingest/V1_LakehouseIngestEnvironment.ts",
|
|
503
504
|
"./src/graph-manager/protocol/pure/v1/lakehouse/platform/V1_LakehouseDiscovery.ts",
|
|
504
505
|
"./src/graph-manager/protocol/pure/v1/lakehouse/subscriptions/V1_ConsumerSubscriptions.ts",
|