@finos/legend-graph 31.3.10 → 31.3.11
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 +8 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js +16 -0
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js.map +1 -1
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts +7 -0
- 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 +13 -0
- package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map +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 +7 -2
- package/lib/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.js.map +1 -1
- package/lib/package.json +1 -1
- package/package.json +1 -1
- package/src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts +30 -1
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +16 -0
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +9 -0
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
|
17
|
-
import type { Connection } from '../connection/Connection.js';
|
|
17
|
+
import type { Connection, ConnectionPointer } from '../connection/Connection.js';
|
|
18
18
|
import type { PackageableRuntime } from './PackageableRuntime.js';
|
|
19
19
|
import type { Mapping } from '../mapping/Mapping.js';
|
|
20
20
|
import type { Store } from '../store/Store.js';
|
|
@@ -32,11 +32,18 @@ export declare class StoreConnections implements Hashable {
|
|
|
32
32
|
constructor(store: PackageableElementReference<Store>);
|
|
33
33
|
get hashCode(): string;
|
|
34
34
|
}
|
|
35
|
+
export declare class ConnectionStores implements Hashable {
|
|
36
|
+
connectionPointer: ConnectionPointer;
|
|
37
|
+
storePointers: PackageableElementReference<Store>[];
|
|
38
|
+
constructor(connectionPointer: ConnectionPointer);
|
|
39
|
+
get hashCode(): string;
|
|
40
|
+
}
|
|
35
41
|
export declare abstract class Runtime implements Hashable {
|
|
36
42
|
abstract get hashCode(): string;
|
|
37
43
|
}
|
|
38
44
|
export declare class EngineRuntime extends Runtime implements Hashable {
|
|
39
45
|
mappings: PackageableElementReference<Mapping>[];
|
|
46
|
+
connectionStores: ConnectionStores[];
|
|
40
47
|
connections: StoreConnections[];
|
|
41
48
|
get hashCode(): string;
|
|
42
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAKtE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../../../../../src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,KAAK,QAAQ,EAAmB,MAAM,sBAAsB,CAAC;AAKtE,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,E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C,kBAAkB,CAAC;IAMrE,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
|
@@ -46,15 +46,31 @@ export class StoreConnections {
|
|
|
46
46
|
]);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
export class ConnectionStores {
|
|
50
|
+
connectionPointer;
|
|
51
|
+
storePointers = [];
|
|
52
|
+
constructor(connectionPointer) {
|
|
53
|
+
this.connectionPointer = connectionPointer;
|
|
54
|
+
}
|
|
55
|
+
get hashCode() {
|
|
56
|
+
return hashArray([
|
|
57
|
+
CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
|
|
58
|
+
this.connectionPointer,
|
|
59
|
+
hashArray(this.storePointers.map((s) => hashElementPointer(PackageableElementPointerType.STORE, s.valueForSerialization ?? ''))),
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
49
63
|
export class Runtime {
|
|
50
64
|
}
|
|
51
65
|
export class EngineRuntime extends Runtime {
|
|
52
66
|
mappings = [];
|
|
67
|
+
connectionStores = [];
|
|
53
68
|
connections = [];
|
|
54
69
|
get hashCode() {
|
|
55
70
|
return hashArray([
|
|
56
71
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
57
72
|
hashArray(this.mappings.map((mapping) => hashElementPointer(PackageableElementPointerType.MAPPING, mapping.valueForSerialization ?? ''))),
|
|
73
|
+
hashArray(this.connectionStores),
|
|
58
74
|
hashArray(this.connections.filter(
|
|
59
75
|
// TODO: use `isStubbed_StoreConnections` when we refactor hashing
|
|
60
76
|
(connection) => connection.storeConnections.length)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../../../../src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../../../../src/graph/metamodel/pure/packageableElements/runtime/Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACtE,OAAO,EACL,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,wCAAwC,CAAC;AAShD,OAAO,EAAE,6BAA6B,EAAE,MAAM,+BAA+B,CAAC;AAE9E,MAAM,OAAO,oBAAoB;IACtB,KAAK,GAAG,IAAI,EAAE,CAAC;IAExB,EAAE,CAAS;IACX,UAAU,CAAa;IAEvB,YAAY,EAAU,EAAE,UAAsB;QAC5C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,qBAAqB;YACzC,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAC3B,KAAK,CAAqC;IAC1C,gBAAgB,GAA2B,EAAE,CAAC;IAE9C,YAAY,KAAyC;QACnD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,iBAAiB;YACrC,kBAAkB,CAChB,6BAA6B,CAAC,KAAK,EACnC,IAAI,CAAC,KAAK,CAAC,qBAAqB,IAAI,EAAE,CACvC;YACD,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gBAAgB;IAC3B,iBAAiB,CAAoB;IACrC,aAAa,GAAyC,EAAE,CAAC;IAEzD,YAAY,iBAAoC;QAC9C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AkB,CAAC,qBAAqB,IAAI,EAAE;SACpD,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
import { type Hashable } from '@finos/legend-shared';
|
|
17
17
|
import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js';
|
|
18
18
|
import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js';
|
|
19
|
+
import type { V1_ConnectionPointer } from '../connection/V1_ConnectionPointer.js';
|
|
19
20
|
export declare abstract class V1_Runtime implements Hashable {
|
|
20
21
|
abstract get hashCode(): string;
|
|
21
22
|
}
|
|
@@ -29,8 +30,14 @@ export declare class V1_StoreConnections implements Hashable {
|
|
|
29
30
|
storeConnections: V1_IdentifiedConnection[];
|
|
30
31
|
get hashCode(): string;
|
|
31
32
|
}
|
|
33
|
+
export declare class V1_ConnectionStores implements Hashable {
|
|
34
|
+
connectionPointer: V1_ConnectionPointer;
|
|
35
|
+
storePointers: V1_PackageableElementPointer[];
|
|
36
|
+
get hashCode(): string;
|
|
37
|
+
}
|
|
32
38
|
export declare class V1_EngineRuntime extends V1_Runtime implements Hashable {
|
|
33
39
|
mappings: V1_PackageableElementPointer[];
|
|
40
|
+
connectionStores: V1_ConnectionStores[];
|
|
34
41
|
connections: V1_StoreConnections[];
|
|
35
42
|
get hashCode(): string;
|
|
36
43
|
}
|
package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_Runtime.d.ts","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAChH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gEAAgE,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_Runtime.d.ts","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAa,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,6DAA6D,CAAC;AAChH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gEAAgE,CAAC;AACpG,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAElF,8BAAsB,UAAW,YAAW,QAAQ;IAClD,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,uBAAwB,YAAW,QAAQ;IACtD,EAAE,EAAG,MAAM,CAAC;IACZ,UAAU,EAAG,aAAa,CAAC;IAE3B,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,KAAK,EAAG,4BAA4B,CAAC;IACrC,gBAAgB,EAAE,uBAAuB,EAAE,CAAM;IAEjD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAClD,iBAAiB,EAAG,oBAAoB,CAAC;IACzC,aAAa,EAAE,4BAA4B,EAAE,CAAM;IAEnD,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,QAAQ;IAClE,QAAQ,EAAE,4BAA4B,EAAE,CAAM;IAC9C,gBAAgB,EAAE,mBAAmB,EAAE,CAAM;IAC7C,WAAW,EAAE,mBAAmB,EAAE,CAAM;IAExC,IAAI,QAAQ,IAAI,MAAM,CAOrB;CACF;AAED,qBAAa,gBAAiB,SAAQ,UAAW,YAAW,QAAQ;IAClE,QAAQ,EAAE,4BAA4B,EAAE,CAAM;IAC9C,WAAW,EAAE,aAAa,EAAE,CAAM;IAElC,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,iBAAkB,SAAQ,UAAW,YAAW,QAAQ;IACnE,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAI,QAAQ,IAAI,MAAM,CAErB;CACF"}
|
|
@@ -39,13 +39,26 @@ export class V1_StoreConnections {
|
|
|
39
39
|
]);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
+
export class V1_ConnectionStores {
|
|
43
|
+
connectionPointer;
|
|
44
|
+
storePointers = [];
|
|
45
|
+
get hashCode() {
|
|
46
|
+
return hashArray([
|
|
47
|
+
CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
|
|
48
|
+
this.connectionPointer,
|
|
49
|
+
hashArray(this.storePointers),
|
|
50
|
+
]);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
42
53
|
export class V1_EngineRuntime extends V1_Runtime {
|
|
43
54
|
mappings = [];
|
|
55
|
+
connectionStores = [];
|
|
44
56
|
connections = [];
|
|
45
57
|
get hashCode() {
|
|
46
58
|
return hashArray([
|
|
47
59
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
48
60
|
hashArray(this.mappings),
|
|
61
|
+
hashArray(this.connectionStores),
|
|
49
62
|
hashArray(this.connections),
|
|
50
63
|
]);
|
|
51
64
|
}
|
package/lib/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_Runtime.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"V1_Runtime.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAiB,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKhE,MAAM,OAAgB,UAAU;CAE/B;AAED,MAAM,OAAO,uBAAuB;IAClC,EAAE,CAAU;IACZ,UAAU,CAAiB;IAE3B,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,qBAAqB;YACzC,IAAI,CAAC,EAAE;YACP,IAAI,CAAC,UAAU;SAChB,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,mBAAmB;IAC9B,KAAK,CAAgC;IACrC,gBAAgB,GAA8B,EAAE,CAAC;IAEjD,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,iBAAiB;YACrC,IAAI,CAAC,KAAK;YACV,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,mBAAmB;IAC9B,iBAAiB,CAAwB;IACzC,aAAa,GAAmC,EAAE,CAAC;IAEnD,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,iBAAiB;YACrC,IAAI,CAAC,iBAAiB;YACtB,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC;SAC9B,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAC9C,QAAQ,GAAmC,EAAE,CAAC;IAC9C,gBAAgB,GAA0B,EAAE,CAAC;IAC7C,WAAW,GAA0B,EAAE,CAAC;IAExC,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,cAAc;YAClC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC;YAChC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,gBAAiB,SAAQ,UAAU;IAC9C,QAAQ,GAAmC,EAAE,CAAC;IAC9C,WAAW,GAAoB,EAAE,CAAC;IAElC,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,cAAc;YAClC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC;YACxB,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,iBAAkB,SAAQ,UAAU;IAC/C,OAAO,CAAU;IAEjB,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC,CAAC,mBAAmB,CAAC,eAAe,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;IACxE,CAAC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_RuntimeSerializationHelper.d.ts","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EACL,KAAK,UAAU,EAIf,iBAAiB,
|
|
1
|
+
{"version":3,"file":"V1_RuntimeSerializationHelper.d.ts","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAWH,OAAO,EACL,KAAK,WAAW,EAIjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EACL,KAAK,UAAU,EAIf,iBAAiB,EAGlB,MAAM,0DAA0D,CAAC;AAMlE,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,4CAA4C,CAAC;AAE9F,eAAO,MAAM,4CAA4C,YAAY,CAAC;AAEtE,oBAAY,cAAc;IACxB,eAAe,mBAAmB;IAClC,cAAc,kBAAkB;IAChC,cAAc,kBAAkB;CACjC;AAED,eAAO,MAAM,4BAA4B,oDAMxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,YACpC,2BAA2B,EAAE,KACrC,IAWF,CAAC;AAEF,eAAO,MAAM,kCAAkC,YACpC,2BAA2B,EAAE,KACrC,IAwBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACpB,UAAU,KACnB,YAAY,UAAU,CAQxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,SAC1B,YAAY,UAAU,CAAC,KAC5B,UAcF,CAAC;AAEF,eAAO,MAAM,gCAAgC,wDAa5C,CAAC"}
|
|
@@ -17,8 +17,8 @@ import { createModelSchema, primitive, list, custom, serialize, deserialize, obj
|
|
|
17
17
|
import { usingConstantValueSchema, UnsupportedOperationError, usingModelSchema, } from '@finos/legend-shared';
|
|
18
18
|
import { V1_packageableElementPointerModelSchema } from '../../../transformation/pureProtocol/serializationHelpers/V1_CoreSerializationHelper.js';
|
|
19
19
|
import { V1_PackageableRuntime } from '../../../model/packageableElements/runtime/V1_PackageableRuntime.js';
|
|
20
|
-
import { V1_EngineRuntime, V1_IdentifiedConnection, V1_LegacyRuntime, V1_RuntimePointer, V1_StoreConnections, } from '../../../model/packageableElements/runtime/V1_Runtime.js';
|
|
21
|
-
import { V1_serializeConnectionValue, V1_deserializeConnectionValue, } from './V1_ConnectionSerializationHelper.js';
|
|
20
|
+
import { V1_EngineRuntime, V1_IdentifiedConnection, V1_LegacyRuntime, V1_RuntimePointer, V1_StoreConnections, V1_ConnectionStores, } from '../../../model/packageableElements/runtime/V1_Runtime.js';
|
|
21
|
+
import { V1_serializeConnectionValue, V1_deserializeConnectionValue, V1_connectionPointerModelSchema, } from './V1_ConnectionSerializationHelper.js';
|
|
22
22
|
export const V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE = 'runtime';
|
|
23
23
|
export var V1_RuntimeType;
|
|
24
24
|
(function (V1_RuntimeType) {
|
|
@@ -42,12 +42,17 @@ export const V1_setupEngineRuntimeSerialization = (plugins) => {
|
|
|
42
42
|
connection: custom((val) => V1_serializeConnectionValue(val, true, plugins), (val) => V1_deserializeConnectionValue(val, true, plugins)),
|
|
43
43
|
id: primitive(),
|
|
44
44
|
});
|
|
45
|
+
createModelSchema(V1_ConnectionStores, {
|
|
46
|
+
connectionPointer: usingModelSchema(V1_connectionPointerModelSchema),
|
|
47
|
+
storePointers: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
48
|
+
});
|
|
45
49
|
createModelSchema(V1_StoreConnections, {
|
|
46
50
|
store: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
47
51
|
storeConnections: list(object(V1_IdentifiedConnection)),
|
|
48
52
|
});
|
|
49
53
|
createModelSchema(V1_EngineRuntime, {
|
|
50
54
|
_type: usingConstantValueSchema(V1_RuntimeType.ENGINE_RUNTIME),
|
|
55
|
+
connectionStores: list(object(V1_ConnectionStores)),
|
|
51
56
|
connections: list(object(V1_StoreConnections)),
|
|
52
57
|
mappings: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
53
58
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"V1_RuntimeSerializationHelper.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,SAAS,EACT,WAAW,EACX,MAAM,GACP,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uCAAuC,EAAE,MAAM,yFAAyF,CAAC;AAClJ,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,
|
|
1
|
+
{"version":3,"file":"V1_RuntimeSerializationHelper.js","sourceRoot":"","sources":["../../../../../../../../src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,IAAI,EACJ,MAAM,EACN,SAAS,EACT,WAAW,EACX,MAAM,GACP,MAAM,WAAW,CAAC;AACnB,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,EACzB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uCAAuC,EAAE,MAAM,yFAAyF,CAAC;AAClJ,OAAO,EAAE,qBAAqB,EAAE,MAAM,qEAAqE,CAAC;AAC5G,OAAO,EAEL,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,0DAA0D,CAAC;AAClE,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,uCAAuC,CAAC;AAG/C,MAAM,CAAC,MAAM,4CAA4C,GAAG,SAAS,CAAC;AAEtE,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;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,WAAW,CAAC,gBAAgB,EAAE,IAAI,CAAC,CAAC;QAC7C;YACE,MAAM,IAAI,yBAAyB,CACjC,uCAAuC,IAAI,CAAC,KAAK,GAAG,CACrD,CAAC;KACL;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gCAAgC,GAAG,iBAAiB,CAC/D,qBAAqB,EACrB;IACE,KAAK,EAAE,wBAAwB,CAC7B,4CAA4C,CAC7C;IACD,IAAI,EAAE,SAAS,EAAE;IACjB,OAAO,EAAE,SAAS,EAAE;IACpB,YAAY,EAAE,MAAM,CAClB,CAAC,GAAG,EAAE,EAAE,CAAC,SAAS,CAAC,gBAAgB,EAAE,GAAG,CAAC,EACzC,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAC5C;CACF,CACF,CAAC"}
|
package/lib/package.json
CHANGED
package/package.json
CHANGED
|
@@ -19,7 +19,10 @@ import {
|
|
|
19
19
|
CORE_HASH_STRUCTURE,
|
|
20
20
|
hashElementPointer,
|
|
21
21
|
} from '../../../../../graph/Core_HashUtils.js';
|
|
22
|
-
import type {
|
|
22
|
+
import type {
|
|
23
|
+
Connection,
|
|
24
|
+
ConnectionPointer,
|
|
25
|
+
} from '../connection/Connection.js';
|
|
23
26
|
import type { PackageableRuntime } from './PackageableRuntime.js';
|
|
24
27
|
import type { Mapping } from '../mapping/Mapping.js';
|
|
25
28
|
import type { Store } from '../store/Store.js';
|
|
@@ -66,12 +69,37 @@ export class StoreConnections implements Hashable {
|
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
|
|
72
|
+
export class ConnectionStores implements Hashable {
|
|
73
|
+
connectionPointer: ConnectionPointer;
|
|
74
|
+
storePointers: PackageableElementReference<Store>[] = [];
|
|
75
|
+
|
|
76
|
+
constructor(connectionPointer: ConnectionPointer) {
|
|
77
|
+
this.connectionPointer = connectionPointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
get hashCode(): string {
|
|
81
|
+
return hashArray([
|
|
82
|
+
CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
|
|
83
|
+
this.connectionPointer,
|
|
84
|
+
hashArray(
|
|
85
|
+
this.storePointers.map((s) =>
|
|
86
|
+
hashElementPointer(
|
|
87
|
+
PackageableElementPointerType.STORE,
|
|
88
|
+
s.valueForSerialization ?? '',
|
|
89
|
+
),
|
|
90
|
+
),
|
|
91
|
+
),
|
|
92
|
+
]);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
69
96
|
export abstract class Runtime implements Hashable {
|
|
70
97
|
abstract get hashCode(): string;
|
|
71
98
|
}
|
|
72
99
|
|
|
73
100
|
export class EngineRuntime extends Runtime implements Hashable {
|
|
74
101
|
mappings: PackageableElementReference<Mapping>[] = [];
|
|
102
|
+
connectionStores: ConnectionStores[] = [];
|
|
75
103
|
connections: StoreConnections[] = [];
|
|
76
104
|
|
|
77
105
|
get hashCode(): string {
|
|
@@ -85,6 +113,7 @@ export class EngineRuntime extends Runtime implements Hashable {
|
|
|
85
113
|
),
|
|
86
114
|
),
|
|
87
115
|
),
|
|
116
|
+
hashArray(this.connectionStores),
|
|
88
117
|
hashArray(
|
|
89
118
|
this.connections.filter(
|
|
90
119
|
// TODO: use `isStubbed_StoreConnections` when we refactor hashing
|
|
@@ -18,6 +18,7 @@ import { CORE_HASH_STRUCTURE } from '../../../../../../../graph/Core_HashUtils.j
|
|
|
18
18
|
import { type Hashable, hashArray } from '@finos/legend-shared';
|
|
19
19
|
import type { V1_PackageableElementPointer } from '../../../model/packageableElements/V1_PackageableElement.js';
|
|
20
20
|
import type { V1_Connection } from '../../../model/packageableElements/connection/V1_Connection.js';
|
|
21
|
+
import type { V1_ConnectionPointer } from '../connection/V1_ConnectionPointer.js';
|
|
21
22
|
|
|
22
23
|
export abstract class V1_Runtime implements Hashable {
|
|
23
24
|
abstract get hashCode(): string;
|
|
@@ -49,14 +50,29 @@ export class V1_StoreConnections implements Hashable {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
|
|
53
|
+
export class V1_ConnectionStores implements Hashable {
|
|
54
|
+
connectionPointer!: V1_ConnectionPointer;
|
|
55
|
+
storePointers: V1_PackageableElementPointer[] = [];
|
|
56
|
+
|
|
57
|
+
get hashCode(): string {
|
|
58
|
+
return hashArray([
|
|
59
|
+
CORE_HASH_STRUCTURE.STORE_CONNECTIONS,
|
|
60
|
+
this.connectionPointer,
|
|
61
|
+
hashArray(this.storePointers),
|
|
62
|
+
]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
52
66
|
export class V1_EngineRuntime extends V1_Runtime implements Hashable {
|
|
53
67
|
mappings: V1_PackageableElementPointer[] = [];
|
|
68
|
+
connectionStores: V1_ConnectionStores[] = [];
|
|
54
69
|
connections: V1_StoreConnections[] = [];
|
|
55
70
|
|
|
56
71
|
get hashCode(): string {
|
|
57
72
|
return hashArray([
|
|
58
73
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
59
74
|
hashArray(this.mappings),
|
|
75
|
+
hashArray(this.connectionStores),
|
|
60
76
|
hashArray(this.connections),
|
|
61
77
|
]);
|
|
62
78
|
}
|
|
@@ -38,10 +38,12 @@ import {
|
|
|
38
38
|
V1_LegacyRuntime,
|
|
39
39
|
V1_RuntimePointer,
|
|
40
40
|
V1_StoreConnections,
|
|
41
|
+
V1_ConnectionStores,
|
|
41
42
|
} from '../../../model/packageableElements/runtime/V1_Runtime.js';
|
|
42
43
|
import {
|
|
43
44
|
V1_serializeConnectionValue,
|
|
44
45
|
V1_deserializeConnectionValue,
|
|
46
|
+
V1_connectionPointerModelSchema,
|
|
45
47
|
} from './V1_ConnectionSerializationHelper.js';
|
|
46
48
|
import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js';
|
|
47
49
|
|
|
@@ -86,12 +88,19 @@ export const V1_setupEngineRuntimeSerialization = (
|
|
|
86
88
|
),
|
|
87
89
|
id: primitive(),
|
|
88
90
|
});
|
|
91
|
+
createModelSchema(V1_ConnectionStores, {
|
|
92
|
+
connectionPointer: usingModelSchema(V1_connectionPointerModelSchema),
|
|
93
|
+
storePointers: list(
|
|
94
|
+
usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
95
|
+
),
|
|
96
|
+
});
|
|
89
97
|
createModelSchema(V1_StoreConnections, {
|
|
90
98
|
store: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
91
99
|
storeConnections: list(object(V1_IdentifiedConnection)),
|
|
92
100
|
});
|
|
93
101
|
createModelSchema(V1_EngineRuntime, {
|
|
94
102
|
_type: usingConstantValueSchema(V1_RuntimeType.ENGINE_RUNTIME),
|
|
103
|
+
connectionStores: list(object(V1_ConnectionStores)),
|
|
95
104
|
connections: list(object(V1_StoreConnections)),
|
|
96
105
|
mappings: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
97
106
|
});
|