@finos/legend-graph 31.3.11 → 31.3.12
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 +1 -8
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.d.ts.map +1 -1
- package/lib/graph/metamodel/pure/packageableElements/runtime/Runtime.js +0 -16
- 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 +0 -7
- 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 +0 -13
- 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 +2 -7
- 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 +1 -30
- package/src/graph-manager/protocol/pure/v1/model/packageableElements/runtime/V1_Runtime.ts +0 -16
- package/src/graph-manager/protocol/pure/v1/transformation/pureProtocol/serializationHelpers/V1_RuntimeSerializationHelper.ts +0 -9
|
@@ -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
|
|
17
|
+
import type { Connection } 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,18 +32,11 @@ 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
|
-
}
|
|
41
35
|
export declare abstract class Runtime implements Hashable {
|
|
42
36
|
abstract get hashCode(): string;
|
|
43
37
|
}
|
|
44
38
|
export declare class EngineRuntime extends Runtime implements Hashable {
|
|
45
39
|
mappings: PackageableElementReference<Mapping>[];
|
|
46
|
-
connectionStores: ConnectionStores[];
|
|
47
40
|
connections: StoreConnections[];
|
|
48
41
|
get hashCode(): string;
|
|
49
42
|
}
|
|
@@ -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,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAGrF,qBAAa,oBAAqB,YAAW,QAAQ;IACnD,QAAQ,CAAC,KAAK,SAAU;IAExB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,UAAU,CAAC;gBAEX,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU;IAK9C,IAAI,QAAQ,IAAI,MAAM,CAMrB;CACF;AAED,qBAAa,gBAAiB,YAAW,QAAQ;IAC/C,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,CAAC;IAC1C,gBAAgB,EAAE,oBAAoB,EAAE,CAAM;gBAElC,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC;IAIrD,IAAI,QAAQ,IAAI,MAAM,CASrB;CACF;AAED,8BAAsB,OAAQ,YAAW,QAAQ;IAC/C,QAAQ,KAAK,QAAQ,IAAI,MAAM,CAAC;CACjC;AAED,qBAAa,aAAc,SAAQ,OAAQ,YAAW,QAAQ;IAC5D,QAAQ,EAAE,2BAA2B,CAAC,OAAO,CAAC,EAAE,CAAM;IACtD,WAAW,EAAE,gBAAgB,EAAE,CAAM;IAErC,IAAI,QAAQ,IAAI,MAAM,CAkBrB;CACF;AAED,qBAAa,cAAe,SAAQ,OAAQ,YAAW,QAAQ;IAC7D,kBAAkB,EAAE,2BAA2B,CAAC,kBAAkB,CAAC,CAAC;gBAGlE,kBAAkB,EAAE,2BAA2B,CAAC,kBAAkB,CAAC;IAMrE,IAAI,QAAQ,IAAI,MAAM,CAKrB;CACF"}
|
|
@@ -46,31 +46,15 @@ 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
|
-
}
|
|
63
49
|
export class Runtime {
|
|
64
50
|
}
|
|
65
51
|
export class EngineRuntime extends Runtime {
|
|
66
52
|
mappings = [];
|
|
67
|
-
connectionStores = [];
|
|
68
53
|
connections = [];
|
|
69
54
|
get hashCode() {
|
|
70
55
|
return hashArray([
|
|
71
56
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
72
57
|
hashArray(this.mappings.map((mapping) => hashElementPointer(PackageableElementPointerType.MAPPING, mapping.valueForSerialization ?? ''))),
|
|
73
|
-
hashArray(this.connectionStores),
|
|
74
58
|
hashArray(this.connections.filter(
|
|
75
59
|
// TODO: use `isStubbed_StoreConnections` when we refactor hashing
|
|
76
60
|
(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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P,IAAI,CAAC,WAAW,CAAC,MAAM;YACrB,kEAAkE;YAClE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,MAAM,CACnD,CACF;SACF,CAAC,CAAC;IACL,CAAC;CACF;AAED,MAAM,OAAO,cAAe,SAAQ,OAAO;IACzC,kBAAkB,CAAkD;IAEpE,YACE,kBAAmE;QAEnE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAED,IAAI,QAAQ;QACV,OAAO,SAAS,CAAC;YACf,mBAAmB,CAAC,eAAe;YACnC,IAAI,CAAC,kBAAkB,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,7 +16,6 @@
|
|
|
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';
|
|
20
19
|
export declare abstract class V1_Runtime implements Hashable {
|
|
21
20
|
abstract get hashCode(): string;
|
|
22
21
|
}
|
|
@@ -30,14 +29,8 @@ export declare class V1_StoreConnections implements Hashable {
|
|
|
30
29
|
storeConnections: V1_IdentifiedConnection[];
|
|
31
30
|
get hashCode(): string;
|
|
32
31
|
}
|
|
33
|
-
export declare class V1_ConnectionStores implements Hashable {
|
|
34
|
-
connectionPointer: V1_ConnectionPointer;
|
|
35
|
-
storePointers: V1_PackageableElementPointer[];
|
|
36
|
-
get hashCode(): string;
|
|
37
|
-
}
|
|
38
32
|
export declare class V1_EngineRuntime extends V1_Runtime implements Hashable {
|
|
39
33
|
mappings: V1_PackageableElementPointer[];
|
|
40
|
-
connectionStores: V1_ConnectionStores[];
|
|
41
34
|
connections: V1_StoreConnections[];
|
|
42
35
|
get hashCode(): string;
|
|
43
36
|
}
|
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;AAEpG,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,gBAAiB,SAAQ,UAAW,YAAW,QAAQ;IAClE,QAAQ,EAAE,4BAA4B,EAAE,CAAM;IAC9C,WAAW,EAAE,mBAAmB,EAAE,CAAM;IAExC,IAAI,QAAQ,IAAI,MAAM,CAMrB;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,26 +39,13 @@ 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
|
-
}
|
|
53
42
|
export class V1_EngineRuntime extends V1_Runtime {
|
|
54
43
|
mappings = [];
|
|
55
|
-
connectionStores = [];
|
|
56
44
|
connections = [];
|
|
57
45
|
get hashCode() {
|
|
58
46
|
return hashArray([
|
|
59
47
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
60
48
|
hashArray(this.mappings),
|
|
61
|
-
hashArray(this.connectionStores),
|
|
62
49
|
hashArray(this.connections),
|
|
63
50
|
]);
|
|
64
51
|
}
|
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;AAIhE,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,gBAAiB,SAAQ,UAAU;IAC9C,QAAQ,GAAmC,EAAE,CAAC;IAC9C,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,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,EAElB,MAAM,0DAA0D,CAAC;AAKlE,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,IAiBF,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,
|
|
21
|
-
import { V1_serializeConnectionValue, V1_deserializeConnectionValue,
|
|
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';
|
|
22
22
|
export const V1_PACKAGEABLE_RUNTIME_ELEMENT_PROTOCOL_TYPE = 'runtime';
|
|
23
23
|
export var V1_RuntimeType;
|
|
24
24
|
(function (V1_RuntimeType) {
|
|
@@ -42,17 +42,12 @@ 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
|
-
});
|
|
49
45
|
createModelSchema(V1_StoreConnections, {
|
|
50
46
|
store: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
51
47
|
storeConnections: list(object(V1_IdentifiedConnection)),
|
|
52
48
|
});
|
|
53
49
|
createModelSchema(V1_EngineRuntime, {
|
|
54
50
|
_type: usingConstantValueSchema(V1_RuntimeType.ENGINE_RUNTIME),
|
|
55
|
-
connectionStores: list(object(V1_ConnectionStores)),
|
|
56
51
|
connections: list(object(V1_StoreConnections)),
|
|
57
52
|
mappings: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
58
53
|
});
|
|
@@ -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,
|
|
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,GAC9B,MAAM,uCAAuC,CAAC;AAG/C,MAAM,CAAC,MAAM,4CAA4C,GAAG,SAAS,CAAC;AAEtE,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,oDAAkC,CAAA;IAClC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;AAClC,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAED,MAAM,CAAC,MAAM,4BAA4B,GAAG,iBAAiB,CAC3D,iBAAiB,EACjB;IACE,KAAK,EAAE,wBAAwB,CAAC,cAAc,CAAC,eAAe,CAAC;IAC/D,OAAO,EAAE,SAAS,EAAE;CACrB,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAChD,OAAsC,EAChC,EAAE;IACR,iBAAiB,CAAC,gBAA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19
|
CORE_HASH_STRUCTURE,
|
|
20
20
|
hashElementPointer,
|
|
21
21
|
} from '../../../../../graph/Core_HashUtils.js';
|
|
22
|
-
import type {
|
|
23
|
-
Connection,
|
|
24
|
-
ConnectionPointer,
|
|
25
|
-
} from '../connection/Connection.js';
|
|
22
|
+
import type { Connection } from '../connection/Connection.js';
|
|
26
23
|
import type { PackageableRuntime } from './PackageableRuntime.js';
|
|
27
24
|
import type { Mapping } from '../mapping/Mapping.js';
|
|
28
25
|
import type { Store } from '../store/Store.js';
|
|
@@ -69,37 +66,12 @@ export class StoreConnections implements Hashable {
|
|
|
69
66
|
}
|
|
70
67
|
}
|
|
71
68
|
|
|
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
|
-
|
|
96
69
|
export abstract class Runtime implements Hashable {
|
|
97
70
|
abstract get hashCode(): string;
|
|
98
71
|
}
|
|
99
72
|
|
|
100
73
|
export class EngineRuntime extends Runtime implements Hashable {
|
|
101
74
|
mappings: PackageableElementReference<Mapping>[] = [];
|
|
102
|
-
connectionStores: ConnectionStores[] = [];
|
|
103
75
|
connections: StoreConnections[] = [];
|
|
104
76
|
|
|
105
77
|
get hashCode(): string {
|
|
@@ -113,7 +85,6 @@ export class EngineRuntime extends Runtime implements Hashable {
|
|
|
113
85
|
),
|
|
114
86
|
),
|
|
115
87
|
),
|
|
116
|
-
hashArray(this.connectionStores),
|
|
117
88
|
hashArray(
|
|
118
89
|
this.connections.filter(
|
|
119
90
|
// TODO: use `isStubbed_StoreConnections` when we refactor hashing
|
|
@@ -18,7 +18,6 @@ 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';
|
|
22
21
|
|
|
23
22
|
export abstract class V1_Runtime implements Hashable {
|
|
24
23
|
abstract get hashCode(): string;
|
|
@@ -50,29 +49,14 @@ export class V1_StoreConnections implements Hashable {
|
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
|
|
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
|
-
|
|
66
52
|
export class V1_EngineRuntime extends V1_Runtime implements Hashable {
|
|
67
53
|
mappings: V1_PackageableElementPointer[] = [];
|
|
68
|
-
connectionStores: V1_ConnectionStores[] = [];
|
|
69
54
|
connections: V1_StoreConnections[] = [];
|
|
70
55
|
|
|
71
56
|
get hashCode(): string {
|
|
72
57
|
return hashArray([
|
|
73
58
|
CORE_HASH_STRUCTURE.ENGINE_RUNTIME,
|
|
74
59
|
hashArray(this.mappings),
|
|
75
|
-
hashArray(this.connectionStores),
|
|
76
60
|
hashArray(this.connections),
|
|
77
61
|
]);
|
|
78
62
|
}
|
|
@@ -38,12 +38,10 @@ import {
|
|
|
38
38
|
V1_LegacyRuntime,
|
|
39
39
|
V1_RuntimePointer,
|
|
40
40
|
V1_StoreConnections,
|
|
41
|
-
V1_ConnectionStores,
|
|
42
41
|
} from '../../../model/packageableElements/runtime/V1_Runtime.js';
|
|
43
42
|
import {
|
|
44
43
|
V1_serializeConnectionValue,
|
|
45
44
|
V1_deserializeConnectionValue,
|
|
46
|
-
V1_connectionPointerModelSchema,
|
|
47
45
|
} from './V1_ConnectionSerializationHelper.js';
|
|
48
46
|
import type { PureProtocolProcessorPlugin } from '../../../../PureProtocolProcessorPlugin.js';
|
|
49
47
|
|
|
@@ -88,19 +86,12 @@ export const V1_setupEngineRuntimeSerialization = (
|
|
|
88
86
|
),
|
|
89
87
|
id: primitive(),
|
|
90
88
|
});
|
|
91
|
-
createModelSchema(V1_ConnectionStores, {
|
|
92
|
-
connectionPointer: usingModelSchema(V1_connectionPointerModelSchema),
|
|
93
|
-
storePointers: list(
|
|
94
|
-
usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
95
|
-
),
|
|
96
|
-
});
|
|
97
89
|
createModelSchema(V1_StoreConnections, {
|
|
98
90
|
store: usingModelSchema(V1_packageableElementPointerModelSchema),
|
|
99
91
|
storeConnections: list(object(V1_IdentifiedConnection)),
|
|
100
92
|
});
|
|
101
93
|
createModelSchema(V1_EngineRuntime, {
|
|
102
94
|
_type: usingConstantValueSchema(V1_RuntimeType.ENGINE_RUNTIME),
|
|
103
|
-
connectionStores: list(object(V1_ConnectionStores)),
|
|
104
95
|
connections: list(object(V1_StoreConnections)),
|
|
105
96
|
mappings: list(usingModelSchema(V1_packageableElementPointerModelSchema)),
|
|
106
97
|
});
|