@k8ts/instruments 0.9.4 → 0.11.0
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/dist/core/graph/entity.d.ts +24 -5
- package/dist/core/graph/entity.d.ts.map +1 -1
- package/dist/core/graph/entity.js +11 -5
- package/dist/core/graph/entity.js.map +1 -1
- package/dist/core/graph/node.d.ts +31 -8
- package/dist/core/graph/node.d.ts.map +1 -1
- package/dist/core/graph/node.js +53 -26
- package/dist/core/graph/node.js.map +1 -1
- package/dist/core/graph/origin/entity.d.ts +9 -4
- package/dist/core/graph/origin/entity.d.ts.map +1 -1
- package/dist/core/graph/origin/entity.js +22 -2
- package/dist/core/graph/origin/entity.js.map +1 -1
- package/dist/core/graph/origin/events.d.ts +6 -6
- package/dist/core/graph/origin/events.d.ts.map +1 -1
- package/dist/core/graph/origin/exporter.d.ts +5 -4
- package/dist/core/graph/origin/exporter.d.ts.map +1 -1
- package/dist/core/graph/origin/exporter.js +9 -5
- package/dist/core/graph/origin/exporter.js.map +1 -1
- package/dist/core/graph/origin/external.d.ts +6 -2
- package/dist/core/graph/origin/external.d.ts.map +1 -1
- package/dist/core/graph/origin/external.js +4 -0
- package/dist/core/graph/origin/external.js.map +1 -1
- package/dist/core/graph/origin/kind-map/index.d.ts +7 -7
- package/dist/core/graph/origin/kind-map/index.d.ts.map +1 -1
- package/dist/core/graph/origin/kind-map/index.js +2 -2
- package/dist/core/graph/origin/kind-map/index.js.map +1 -1
- package/dist/core/graph/origin/node.d.ts +5 -5
- package/dist/core/graph/origin/node.d.ts.map +1 -1
- package/dist/core/graph/origin/origin-events.d.ts +6 -6
- package/dist/core/graph/origin/origin-events.d.ts.map +1 -1
- package/dist/core/graph/origin/tracker.d.ts +1 -1
- package/dist/core/graph/origin/tracker.d.ts.map +1 -1
- package/dist/core/graph/origin/tracker.js +2 -1
- package/dist/core/graph/origin/tracker.js.map +1 -1
- package/dist/core/graph/relation.d.ts +2 -2
- package/dist/core/graph/relation.d.ts.map +1 -1
- package/dist/core/graph/relation.js +1 -0
- package/dist/core/graph/relation.js.map +1 -1
- package/dist/core/graph/resource/api-kind/index.d.ts +51 -57
- package/dist/core/graph/resource/api-kind/index.d.ts.map +1 -1
- package/dist/core/graph/resource/api-kind/index.js +191 -205
- package/dist/core/graph/resource/api-kind/index.js.map +1 -1
- package/dist/core/graph/resource/child.d.ts +7 -6
- package/dist/core/graph/resource/child.d.ts.map +1 -1
- package/dist/core/graph/resource/child.js +3 -3
- package/dist/core/graph/resource/child.js.map +1 -1
- package/dist/core/graph/resource/entity.d.ts +8 -10
- package/dist/core/graph/resource/entity.d.ts.map +1 -1
- package/dist/core/graph/resource/entity.js +21 -11
- package/dist/core/graph/resource/entity.js.map +1 -1
- package/dist/core/graph/resource/external/base.d.ts +4 -9
- package/dist/core/graph/resource/external/base.d.ts.map +1 -1
- package/dist/core/graph/resource/external/base.js +5 -12
- package/dist/core/graph/resource/external/base.js.map +1 -1
- package/dist/core/graph/resource/external/features.d.ts +1 -10
- package/dist/core/graph/resource/external/features.d.ts.map +1 -1
- package/dist/core/graph/resource/external/props.d.ts +2 -2
- package/dist/core/graph/resource/external/props.d.ts.map +1 -1
- package/dist/core/graph/resource/node.d.ts +9 -9
- package/dist/core/graph/resource/node.d.ts.map +1 -1
- package/dist/core/graph/resource/node.js +6 -6
- package/dist/core/graph/resource/node.js.map +1 -1
- package/dist/core/graph/resource/ref-key/ref-key.d.ts +70 -7
- package/dist/core/graph/resource/ref-key/ref-key.d.ts.map +1 -1
- package/dist/core/graph/resource/ref-key/ref-key.js +47 -2
- package/dist/core/graph/resource/ref-key/ref-key.js.map +1 -1
- package/dist/core/graph/resource/reference/fw-ref-exports.d.ts +40 -9
- package/dist/core/graph/resource/reference/fw-ref-exports.d.ts.map +1 -1
- package/dist/core/graph/resource/reference/fw-ref-exports.js +47 -13
- package/dist/core/graph/resource/reference/fw-ref-exports.js.map +1 -1
- package/dist/core/graph/resource/reference/fw-ref.d.ts +41 -12
- package/dist/core/graph/resource/reference/fw-ref.d.ts.map +1 -1
- package/dist/core/graph/resource/reference/fw-ref.js +42 -10
- package/dist/core/graph/resource/reference/fw-ref.js.map +1 -1
- package/dist/core/graph/resource/reference/index.d.ts +2 -2
- package/dist/core/graph/resource/reference/index.d.ts.map +1 -1
- package/dist/core/graph/resource/reference/index.js +3 -3
- package/dist/core/graph/resource/reference/index.js.map +1 -1
- package/dist/core/graph/resource/reference/refable.d.ts +11 -12
- package/dist/core/graph/resource/reference/refable.d.ts.map +1 -1
- package/dist/core/graph/resource/top.d.ts +6 -5
- package/dist/core/graph/resource/top.d.ts.map +1 -1
- package/dist/core/graph/resource/top.js +6 -3
- package/dist/core/graph/resource/top.js.map +1 -1
- package/dist/core/manifest/index.d.ts +2 -2
- package/dist/core/manifest/index.d.ts.map +1 -1
- package/dist/core/manifest/index.js.map +1 -1
- package/dist/expressions/data-sources/base.d.ts +23 -0
- package/dist/expressions/data-sources/base.d.ts.map +1 -1
- package/dist/expressions/data-sources/base.js +22 -0
- package/dist/expressions/data-sources/base.js.map +1 -1
- package/dist/expressions/data-sources/env-var.d.ts +24 -1
- package/dist/expressions/data-sources/env-var.d.ts.map +1 -1
- package/dist/expressions/data-sources/env-var.js +22 -2
- package/dist/expressions/data-sources/env-var.js.map +1 -1
- package/dist/expressions/data-sources/interface.d.ts +30 -0
- package/dist/expressions/data-sources/interface.d.ts.map +1 -1
- package/dist/expressions/data-sources/local-file.d.ts +41 -3
- package/dist/expressions/data-sources/local-file.d.ts.map +1 -1
- package/dist/expressions/data-sources/local-file.js +37 -2
- package/dist/expressions/data-sources/local-file.js.map +1 -1
- package/dist/expressions/network/ports/index.d.ts +6 -6
- package/dist/expressions/network/ports/index.d.ts.map +1 -1
- package/dist/expressions/network/ports/index.js +4 -4
- package/dist/expressions/network/ports/index.js.map +1 -1
- package/dist/expressions/network/ports/map.d.ts +50 -8
- package/dist/expressions/network/ports/map.d.ts.map +1 -1
- package/dist/expressions/network/ports/map.js +34 -5
- package/dist/expressions/network/ports/map.js.map +1 -1
- package/dist/expressions/network/ports/set.d.ts +88 -13
- package/dist/expressions/network/ports/set.d.ts.map +1 -1
- package/dist/expressions/network/ports/set.js +49 -7
- package/dist/expressions/network/ports/set.js.map +1 -1
- package/dist/expressions/network/ports/tools/entry.d.ts +5 -4
- package/dist/expressions/network/ports/tools/entry.d.ts.map +1 -1
- package/dist/expressions/network/ports/tools/entry.js +1 -1
- package/dist/expressions/network/ports/tools/entry.js.map +1 -1
- package/dist/expressions/network/ports/tools/parse.d.ts +2 -2
- package/dist/expressions/network/ports/tools/parse.d.ts.map +1 -1
- package/dist/expressions/network/ports/tools/parse.js.map +1 -1
- package/dist/expressions/network/ports/types.d.ts +13 -22
- package/dist/expressions/network/ports/types.d.ts.map +1 -1
- package/dist/expressions/quantities/reqlem/objects.d.ts +2 -2
- package/dist/expressions/quantities/reqlem/objects.d.ts.map +1 -1
- package/dist/expressions/quantities/reqlem/objects.js +4 -4
- package/dist/expressions/quantities/reqlem/objects.js.map +1 -1
- package/dist/expressions/quantities/units/unit-parser.d.ts.map +1 -1
- package/dist/expressions/quantities/units/unit-parser.js +0 -1
- package/dist/expressions/quantities/units/unit-parser.js.map +1 -1
- package/package.json +5 -5
- package/src/core/graph/entities.md +1 -0
- package/src/core/graph/entity.ts +36 -9
- package/src/core/graph/node.ts +72 -41
- package/src/core/graph/origin/entity.ts +27 -7
- package/src/core/graph/origin/events.ts +6 -6
- package/src/core/graph/origin/exporter.ts +14 -12
- package/src/core/graph/origin/external.ts +6 -3
- package/src/core/graph/origin/kind-map/index.ts +13 -13
- package/src/core/graph/origin/node.ts +3 -3
- package/src/core/graph/origin/origin-events.ts +6 -6
- package/src/core/graph/origin/tracker.ts +2 -2
- package/src/core/graph/readme.md +161 -0
- package/src/core/graph/relation.ts +4 -2
- package/src/core/graph/resource/api-kind/index.ts +139 -160
- package/src/core/graph/resource/child.ts +7 -10
- package/src/core/graph/resource/entity.ts +25 -12
- package/src/core/graph/resource/external/base.ts +4 -12
- package/src/core/graph/resource/external/features.ts +0 -16
- package/src/core/graph/resource/external/props.ts +2 -2
- package/src/core/graph/resource/node.ts +8 -8
- package/src/core/graph/resource/ref-key/ref-key.ts +77 -11
- package/src/core/graph/resource/reference/fw-ref-exports.ts +69 -20
- package/src/core/graph/resource/reference/fw-ref.ts +75 -21
- package/src/core/graph/resource/reference/index.ts +2 -2
- package/src/core/graph/resource/reference/refable.ts +13 -18
- package/src/core/graph/resource/top.ts +8 -5
- package/src/core/manifest/index.ts +2 -2
- package/src/expressions/data-sources/base.ts +24 -0
- package/src/expressions/data-sources/env-var.ts +23 -1
- package/src/expressions/data-sources/interface.ts +32 -0
- package/src/expressions/data-sources/local-file.ts +59 -3
- package/src/expressions/network/ports/index.ts +7 -7
- package/src/expressions/network/ports/map.ts +58 -10
- package/src/expressions/network/ports/set.ts +100 -25
- package/src/expressions/network/ports/tools/entry.ts +9 -14
- package/src/expressions/network/ports/tools/parse.ts +3 -3
- package/src/expressions/network/ports/types.ts +12 -26
- package/src/expressions/quantities/reqlem/objects.ts +3 -3
- package/src/expressions/quantities/units/unit-parser.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAA;AACxC,qBAAa,QAAQ,CAAC,CAAC,SAAS,UAAU,CAAE,SAAQ,UAAU,CAAC,MAAM,EAAE,GAAG,CAAC;IAGnE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IAF3B,QAAQ,CAAC,IAAI,YAAc;gBAEd,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,EACvB,KAAK,EAAE,GAAG;IAmBd,SAAS,CAAC,UAAU;IAGpB,IAAI,SAAS,uBAEZ;IAED,IAAI,IAAI,MAEP;CACJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.External = void 0;
|
|
4
4
|
const metadata_1 = require("@k8ts/metadata");
|
|
5
|
-
const
|
|
5
|
+
const external_1 = require("../../origin/external");
|
|
6
6
|
const entity_1 = require("../entity");
|
|
7
|
-
class
|
|
7
|
+
class External extends entity_1.Rsc_Entity {
|
|
8
8
|
key;
|
|
9
9
|
meta = metadata_1.Meta.make();
|
|
10
10
|
constructor(key, props) {
|
|
@@ -24,7 +24,7 @@ class External_Base extends entity_1.Resource_Entity {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
__origin__() {
|
|
27
|
-
return
|
|
27
|
+
return external_1.Origin_External.instance;
|
|
28
28
|
}
|
|
29
29
|
get namespace() {
|
|
30
30
|
return this.meta.tryGet("namespace");
|
|
@@ -32,13 +32,6 @@ class External_Base extends entity_1.Resource_Entity {
|
|
|
32
32
|
get kind() {
|
|
33
33
|
return this.key.kind;
|
|
34
34
|
}
|
|
35
|
-
ref() {
|
|
36
|
-
return {
|
|
37
|
-
kind: this.kind.name,
|
|
38
|
-
name: this.name,
|
|
39
|
-
namespace: this.namespace
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
35
|
}
|
|
43
|
-
exports.
|
|
36
|
+
exports.External = External;
|
|
44
37
|
//# sourceMappingURL=base.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/base.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"base.js","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/base.ts"],"names":[],"mappings":";;;AAAA,6CAAqC;AACrC,oDAAuD;AAEvD,sCAAsC;AAEtC,MAAa,QAA+B,SAAQ,mBAAuB;IAG1D;IAFJ,IAAI,GAAG,eAAI,CAAC,IAAI,EAAE,CAAA;IAC3B,YACa,GAAc,EACvB,KAAU;QAEV,KAAK,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;QAHb,QAAG,GAAH,GAAG,CAAW;QAKvB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;YACV,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,SAAS,EAAE,GAAG,CAAC,SAAS;YACxB,uBAAuB,EAAE,MAAM;SAClC,CAAC,CAAA;QAEF,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACb,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;gBAC1B,IAAI,EAAE;oBACF,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI;iBACxB;aACJ,CAAC,CAAA;QACN,CAAC;IACL,CAAC;IAES,UAAU;QAChB,OAAO,0BAAe,CAAC,QAAQ,CAAA;IACnC,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAA;IACxB,CAAC;CACJ;AAjCD,4BAiCC"}
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { External_Base } from "./base";
|
|
3
|
-
import type { External_Props } from "./props";
|
|
4
|
-
export type External_WithFeatures<Kind extends Kind.IdentParent, F extends External_Props<Kind>> = External_Base<Kind> & {
|
|
5
|
-
kind: Kind;
|
|
6
|
-
} & (F extends {
|
|
7
|
-
readonly keys: infer Ks extends string[];
|
|
8
|
-
} ? {
|
|
9
|
-
readonly keys: Ks;
|
|
10
|
-
} : {});
|
|
1
|
+
export {};
|
|
11
2
|
//# sourceMappingURL=features.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/features.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"features.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/features.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Ident_Kind } from "../api-kind";
|
|
2
2
|
export interface External_Features {
|
|
3
3
|
keys?: string[];
|
|
4
4
|
}
|
|
@@ -11,5 +11,5 @@ export interface External_KindToFeatures {
|
|
|
11
11
|
};
|
|
12
12
|
[s: string]: {};
|
|
13
13
|
}
|
|
14
|
-
export type External_Props<K extends
|
|
14
|
+
export type External_Props<K extends Ident_Kind> = External_KindToFeatures[K["name"]];
|
|
15
15
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/external/props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,WAAW,iBAAiB;IAC9B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AACD,MAAM,WAAW,uBAAuB;IACpC,SAAS,EAAE;QACP,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAClB,CAAA;IACD,MAAM,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;KAClB,CAAA;IACD,CAAC,CAAC,EAAE,MAAM,GAAG,EAAE,CAAA;CAClB;AAED,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,UAAU,IAAI,uBAAuB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA"}
|
|
@@ -3,28 +3,28 @@ import { type AnyCtor } from "what-are-you";
|
|
|
3
3
|
import { Formats } from "../entity";
|
|
4
4
|
import { Node } from "../node";
|
|
5
5
|
import { OriginNode } from "../origin/node";
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
6
|
+
import type { Ident_Kind, Ident_Like } from "./api-kind";
|
|
7
|
+
import type { Rsc_Entity } from "./entity";
|
|
8
8
|
import { RefKey } from "./ref-key";
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class Rsc_Node extends Node<Rsc_Node, Rsc_Entity> {
|
|
10
10
|
readonly origin: OriginNode;
|
|
11
|
-
readonly entity:
|
|
11
|
+
readonly entity: Rsc_Entity;
|
|
12
12
|
get fullFqn(): string;
|
|
13
13
|
get key(): RefKey;
|
|
14
|
-
get kind():
|
|
14
|
+
get kind(): Ident_Kind;
|
|
15
15
|
get namespace(): string | undefined;
|
|
16
16
|
get trace(): import("../../tracing").Trace;
|
|
17
17
|
get isExported(): string | false;
|
|
18
18
|
get meta(): Meta.Meta | undefined;
|
|
19
19
|
get isExternal(): string | false;
|
|
20
|
-
when<EntityType extends
|
|
21
|
-
as<EntityType extends
|
|
20
|
+
when<EntityType extends Rsc_Entity>(type: AnyCtor<EntityType>, fn: (entity: EntityType) => void): void;
|
|
21
|
+
as<EntityType extends Rsc_Entity>(type: AnyCtor<EntityType>): EntityType | (EntityType & {}) | (EntityType & {});
|
|
22
22
|
get origins(): import("doddle").Seq<OriginNode>;
|
|
23
23
|
get disabled(): boolean;
|
|
24
24
|
get shortFqn(): string;
|
|
25
25
|
get localName(): `${string}/${string}`;
|
|
26
26
|
format(format: Formats): string;
|
|
27
|
-
hasKind(kind:
|
|
28
|
-
constructor(origin: OriginNode, entity:
|
|
27
|
+
hasKind(kind: Ident_Like): boolean;
|
|
28
|
+
constructor(origin: OriginNode, entity: Rsc_Entity);
|
|
29
29
|
}
|
|
30
30
|
//# sourceMappingURL=node.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/core/graph/resource/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAG3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/core/graph/resource/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAGrC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,cAAc,CAAA;AAG3C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,qBA4Ba,QAAS,SAAQ,IAAI,CAAC,QAAQ,EAAE,UAAU,CAAC;IAqFhD,QAAQ,CAAC,MAAM,EAAE,UAAU;IAC3B,QAAQ,CAAC,MAAM,EAAE,UAAU;IArF/B,IAAI,OAAO,WAEV;IACD,IAAI,GAAG,IAAI,MAAM,CAKhB;IACD,IAAI,IAAI,IACuB,UAAU,CACxC;IAED,IAAI,SAAS,uBAEZ;IAED,IAAI,KAAK,kCAER;IAED,IAAI,UAAU,mBAEb;IAED,IAAI,IAAI,0BAEP;IAED,IAAI,UAAU,mBAEb;IAED,IAAI,CAAC,UAAU,SAAS,UAAU,EAC9B,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,EACzB,EAAE,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;IAQpC,EAAE,CAAC,UAAU,SAAS,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC;IAU3D,IAAI,OAAO,qCASV;IAED,IAAI,QAAQ,YAEX;IAED,IAAI,QAAQ,WAEX;IAED,IAAI,SAAS,0BAEZ;IAED,MAAM,CAAC,MAAM,EAAE,OAAO;IAItB,OAAO,CAAC,IAAI,EAAE,UAAU;gBAIX,MAAM,EAAE,UAAU,EAClB,MAAM,EAAE,UAAU;CAIlC"}
|
|
@@ -37,14 +37,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
38
|
};
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
-
exports.
|
|
40
|
+
exports.Rsc_Node = void 0;
|
|
41
41
|
const chalk_1 = __importDefault(require("chalk"));
|
|
42
42
|
const doddle_1 = require("doddle");
|
|
43
43
|
const displayers_1 = require("../../../utils/displayers");
|
|
44
44
|
const tracing_1 = require("../../tracing");
|
|
45
45
|
const node_1 = require("../node");
|
|
46
46
|
const ref_key_1 = require("./ref-key");
|
|
47
|
-
let
|
|
47
|
+
let Rsc_Node = (() => {
|
|
48
48
|
let _classDecorators = [(0, displayers_1.displayers)({
|
|
49
49
|
simple: s => `[${s.shortFqn}]`,
|
|
50
50
|
pretty(resource, format) {
|
|
@@ -75,12 +75,12 @@ let Resource_Node = (() => {
|
|
|
75
75
|
let _classExtraInitializers = [];
|
|
76
76
|
let _classThis;
|
|
77
77
|
let _classSuper = node_1.Node;
|
|
78
|
-
var
|
|
78
|
+
var Rsc_Node = class extends _classSuper {
|
|
79
79
|
static { _classThis = this; }
|
|
80
80
|
static {
|
|
81
81
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
82
82
|
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
|
|
83
|
-
|
|
83
|
+
Rsc_Node = _classThis = _classDescriptor.value;
|
|
84
84
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
85
85
|
__runInitializers(_classThis, _classExtraInitializers);
|
|
86
86
|
}
|
|
@@ -157,7 +157,7 @@ let Resource_Node = (() => {
|
|
|
157
157
|
this.entity = entity;
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
|
-
return
|
|
160
|
+
return Rsc_Node = _classThis;
|
|
161
161
|
})();
|
|
162
|
-
exports.
|
|
162
|
+
exports.Rsc_Node = Rsc_Node;
|
|
163
163
|
//# sourceMappingURL=node.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../../src/core/graph/resource/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,mCAA4B;AAE5B,0DAAkE;AAClE,2CAA6C;AAE7C,kCAA8B;AAI9B,uCAAkC;IA8BrB,
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../../src/core/graph/resource/node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAyB;AAC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I,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QACjC,CAAC;QACD,YACa,MAAkB,EAClB,MAAkB;YAE3B,KAAK,CAAC,MAAM,CAAC,CAAA;YAHJ,WAAM,GAAN,MAAM,CAAY;YAClB,WAAM,GAAN,MAAM,CAAY;QAG/B,CAAC;;;;AAzFQ,4BAAQ"}
|
|
@@ -1,28 +1,91 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import { type External_Props
|
|
1
|
+
import type { Ident_Kind } from "../api-kind";
|
|
2
|
+
import type { External } from "../external";
|
|
3
|
+
import { type External_Props } from "../external";
|
|
4
|
+
import type { Rsc_Ref } from "../reference";
|
|
5
|
+
/** Input type for reference keys. Accepts either a RefKey instance or its string representation. */
|
|
4
6
|
export type RefKey_Input = RefKey | RefKey["string"];
|
|
7
|
+
/**
|
|
8
|
+
* String format template for reference keys.
|
|
9
|
+
*
|
|
10
|
+
* @template Kind - The Kubernetes resource kind
|
|
11
|
+
* @template Name - The resource name
|
|
12
|
+
*/
|
|
5
13
|
export type RefKey_sFormat<Kind extends string, Name extends string> = `${Kind}/${Name}`;
|
|
14
|
+
/** Parsed representation of a reference key string. */
|
|
6
15
|
export interface RefKey_Parsed {
|
|
16
|
+
/** The Kubernetes resource kind */
|
|
7
17
|
kind: string;
|
|
18
|
+
/** The resource name */
|
|
8
19
|
name: string;
|
|
9
20
|
}
|
|
10
21
|
export declare function parse(ref: string): RefKey_Parsed;
|
|
22
|
+
/**
|
|
23
|
+
* Attempts to parse a reference key string into its kind and name components. Returns undefined if
|
|
24
|
+
* the string cannot be parsed.
|
|
25
|
+
*
|
|
26
|
+
* @param ref - The reference key string to parse (format: "Kind/Name")
|
|
27
|
+
* @returns The parsed reference key, or undefined if parsing fails
|
|
28
|
+
*/
|
|
11
29
|
export declare function tryParse(ref: string): RefKey_Parsed | undefined;
|
|
12
|
-
type nsKind =
|
|
30
|
+
type nsKind = Ident_Kind<"", "v1", "Namespace">;
|
|
31
|
+
/**
|
|
32
|
+
* Options for creating a RefKey instance.
|
|
33
|
+
*
|
|
34
|
+
* @template Name - The resource name type
|
|
35
|
+
*/
|
|
13
36
|
export interface RefKey_Options<Name extends string = string> {
|
|
37
|
+
/** The resource name */
|
|
14
38
|
name: Name;
|
|
15
|
-
namespace
|
|
39
|
+
/** Optional namespace for namespaced resources. Can be a RefKey, string, or Ref2 */
|
|
40
|
+
namespace?: RefKey<nsKind> | string | Rsc_Ref<nsKind>;
|
|
16
41
|
}
|
|
17
|
-
|
|
42
|
+
/**
|
|
43
|
+
* A unique identifier for a k8s resource consisting of a Kind, name, and namespace. Used by
|
|
44
|
+
* resources to reference other resources. Serves as the basis for the {@link External} resource
|
|
45
|
+
* type.
|
|
46
|
+
*
|
|
47
|
+
* Important: This class is ambiguous because it can represent keys for namespaced resources but
|
|
48
|
+
* ignore the namespace. Needs some kind of refactor.
|
|
49
|
+
*/
|
|
50
|
+
export declare class RefKey<K extends Ident_Kind = Ident_Kind, Name extends string = string> {
|
|
18
51
|
readonly kind: K;
|
|
52
|
+
/** The resource name */
|
|
19
53
|
readonly name: string;
|
|
54
|
+
/** The optional namespace for namespaced resources */
|
|
20
55
|
readonly namespace: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Creates a new RefKey instance.
|
|
58
|
+
*
|
|
59
|
+
* @param kind - The Kubernetes resource kind
|
|
60
|
+
* @param options - Configuration options including name and optional namespace
|
|
61
|
+
*/
|
|
21
62
|
constructor(kind: K, options: RefKey_Options<Name>);
|
|
63
|
+
/**
|
|
64
|
+
* Returns the string representation of this reference key. Format: "Kind/Namespace/Name" or
|
|
65
|
+
* "Kind/Name" for cluster-scoped resources.
|
|
66
|
+
*/
|
|
22
67
|
get string(): RefKey_sFormat<K["name"], Name>;
|
|
68
|
+
/**
|
|
69
|
+
* Checks if this RefKey is equal to another RefKey by comparing kind, name, and namespace.
|
|
70
|
+
*
|
|
71
|
+
* @param other - The RefKey to compare with
|
|
72
|
+
* @returns True if both RefKeys have the same kind, name, and namespace
|
|
73
|
+
*/
|
|
23
74
|
equals(other: RefKey): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Returns the string representation of this reference key.
|
|
77
|
+
*
|
|
78
|
+
* @returns The reference key in string format
|
|
79
|
+
*/
|
|
24
80
|
toString(): `${K["name"]}/${Name}`;
|
|
25
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Creates an External reference to this resource.
|
|
83
|
+
*
|
|
84
|
+
* @template P - The external properties type
|
|
85
|
+
* @param options - Optional external properties configuration
|
|
86
|
+
* @returns An External instance with the specified features
|
|
87
|
+
*/
|
|
88
|
+
External(options?: External_Props<K>): External<K>;
|
|
26
89
|
}
|
|
27
90
|
export {};
|
|
28
91
|
//# sourceMappingURL=ref-key.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-key.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/ref-key/ref-key.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref-key.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/ref-key/ref-key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,oGAAoG;AACpG,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;AAEpD;;;;;GAKG;AACH,MAAM,MAAM,cAAc,CAAC,IAAI,SAAS,MAAM,EAAE,IAAI,SAAS,MAAM,IAAI,GAAG,IAAI,IAAI,IAAI,EAAE,CAAA;AAIxF,uDAAuD;AACvD,MAAM,WAAW,aAAa;IAC1B,mCAAmC;IACnC,IAAI,EAAE,MAAM,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4
4
|
exports.parse = parse;
|
|
5
5
|
exports.tryParse = tryParse;
|
|
6
6
|
const error_1 = require("../../../../error");
|
|
7
|
-
const external_1 = require("../external");
|
|
8
7
|
const separator = "/";
|
|
9
8
|
function parse(ref) {
|
|
10
9
|
const result = tryParse(ref);
|
|
@@ -13,6 +12,13 @@ function parse(ref) {
|
|
|
13
12
|
}
|
|
14
13
|
return result;
|
|
15
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Attempts to parse a reference key string into its kind and name components. Returns undefined if
|
|
17
|
+
* the string cannot be parsed.
|
|
18
|
+
*
|
|
19
|
+
* @param ref - The reference key string to parse (format: "Kind/Name")
|
|
20
|
+
* @returns The parsed reference key, or undefined if parsing fails
|
|
21
|
+
*/
|
|
16
22
|
function tryParse(ref) {
|
|
17
23
|
if (typeof ref !== "string") {
|
|
18
24
|
return undefined;
|
|
@@ -32,21 +38,47 @@ function tryParse(ref) {
|
|
|
32
38
|
name
|
|
33
39
|
};
|
|
34
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* A unique identifier for a k8s resource consisting of a Kind, name, and namespace. Used by
|
|
43
|
+
* resources to reference other resources. Serves as the basis for the {@link External} resource
|
|
44
|
+
* type.
|
|
45
|
+
*
|
|
46
|
+
* Important: This class is ambiguous because it can represent keys for namespaced resources but
|
|
47
|
+
* ignore the namespace. Needs some kind of refactor.
|
|
48
|
+
*/
|
|
35
49
|
class RefKey {
|
|
36
50
|
kind;
|
|
51
|
+
/** The resource name */
|
|
37
52
|
name;
|
|
53
|
+
/** The optional namespace for namespaced resources */
|
|
38
54
|
namespace;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new RefKey instance.
|
|
57
|
+
*
|
|
58
|
+
* @param kind - The Kubernetes resource kind
|
|
59
|
+
* @param options - Configuration options including name and optional namespace
|
|
60
|
+
*/
|
|
39
61
|
constructor(kind, options) {
|
|
40
62
|
this.kind = kind;
|
|
41
63
|
this.name = options.name;
|
|
42
64
|
this.namespace =
|
|
43
65
|
typeof options.namespace === "string" ? options.namespace : options.namespace?.name;
|
|
44
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns the string representation of this reference key. Format: "Kind/Namespace/Name" or
|
|
69
|
+
* "Kind/Name" for cluster-scoped resources.
|
|
70
|
+
*/
|
|
45
71
|
get string() {
|
|
46
72
|
return [this.kind.name, this.namespace, this.name]
|
|
47
73
|
.filter(x => !!x)
|
|
48
74
|
.join(separator);
|
|
49
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Checks if this RefKey is equal to another RefKey by comparing kind, name, and namespace.
|
|
78
|
+
*
|
|
79
|
+
* @param other - The RefKey to compare with
|
|
80
|
+
* @returns True if both RefKeys have the same kind, name, and namespace
|
|
81
|
+
*/
|
|
50
82
|
equals(other) {
|
|
51
83
|
if (other == null) {
|
|
52
84
|
return false;
|
|
@@ -58,11 +90,24 @@ class RefKey {
|
|
|
58
90
|
this.name === other.name &&
|
|
59
91
|
this.namespace === other.namespace);
|
|
60
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Returns the string representation of this reference key.
|
|
95
|
+
*
|
|
96
|
+
* @returns The reference key in string format
|
|
97
|
+
*/
|
|
61
98
|
toString() {
|
|
62
99
|
return this.string;
|
|
63
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates an External reference to this resource.
|
|
103
|
+
*
|
|
104
|
+
* @template P - The external properties type
|
|
105
|
+
* @param options - Optional external properties configuration
|
|
106
|
+
* @returns An External instance with the specified features
|
|
107
|
+
*/
|
|
64
108
|
External(options) {
|
|
65
|
-
|
|
109
|
+
const External = require("../external").External;
|
|
110
|
+
return new External(this, options ?? {});
|
|
66
111
|
}
|
|
67
112
|
}
|
|
68
113
|
exports.RefKey = RefKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref-key.js","sourceRoot":"","sources":["../../../../../src/core/graph/resource/ref-key/ref-key.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ref-key.js","sourceRoot":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from "../../origin/exporter";
|
|
2
|
+
import { FwRef } from "./fw-ref";
|
|
3
|
+
import type { Rsc_Ref } from "./refable";
|
|
4
|
+
/** Expands the resources exported by an Origin_Exported into a dictionary of name to FwRef. */
|
|
5
|
+
export type FwRef_Exports_ByKey<Exports extends Rsc_Ref = Rsc_Ref> = {
|
|
6
|
+
[E in Exports as `${E["kind"]["name"]}/${E["name"]}`]: FwRef<E>;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A type describing all resources exported by an {@link Origin_Exporter} as forward references.
|
|
10
|
+
*
|
|
11
|
+
* FwRefs can be accessed using a key lookup, using the shorthand of `KindName/name`. For example, a
|
|
12
|
+
* Deployment named "my-app" can be accessed via `exports["Deployment/my-app"]`.
|
|
13
|
+
*
|
|
14
|
+
* This construct is immutable; attempts to modify it will will throw errors.
|
|
15
|
+
*
|
|
16
|
+
* The underlying entity can be accessed via the `__entity__()` method.
|
|
17
|
+
*
|
|
18
|
+
* During TypeScript compilation, this serves as a type-safe way to reference resources between
|
|
19
|
+
* entities. During runtime, it provides a dynamic proxy that resolves forward references to the
|
|
20
|
+
* actual resources when accessed.
|
|
21
|
+
*
|
|
22
|
+
* During runtime, this construct can provide references to all resources attached to the Origin,
|
|
23
|
+
* even if they were not explicitly exported.
|
|
24
|
+
*/
|
|
25
|
+
export type Rsc_FwRef_Exports<Exported extends Rsc_Ref = any> = Rsc_FwRef_Exports_Proxied & FwRef_Exports_ByKey<Exported>;
|
|
26
|
+
/**
|
|
27
|
+
* Creates a forward reference exports construct for the given {@link Origin_Exporter} entity.
|
|
28
|
+
*
|
|
29
|
+
* @param entity
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function Rsc_FwRef_Exports<Exported extends Rsc_Ref>(entity: Origin_Exporter): Rsc_FwRef_Exports<Exported>;
|
|
33
|
+
export declare namespace Rsc_FwRef_Exports {
|
|
34
|
+
function is(obj: any): obj is Rsc_FwRef_Exports;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A basic core of the {@link Rsc_FwRef_Exports} construct, containing information about the
|
|
38
|
+
* underlying {@link Origin_Exporter} entity.
|
|
39
|
+
*/
|
|
40
|
+
export declare class Rsc_FwRef_Exports_Proxied {
|
|
11
41
|
#private;
|
|
12
42
|
constructor(entity: Origin_Exporter);
|
|
13
43
|
__entity__(act?: (entity: Origin_Exporter) => any): Origin_Exporter;
|
|
44
|
+
equals(other: any): boolean;
|
|
14
45
|
}
|
|
15
46
|
//# sourceMappingURL=fw-ref-exports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fw-ref-exports.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/reference/fw-ref-exports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fw-ref-exports.d.ts","sourceRoot":"","sources":["../../../../../src/core/graph/resource/reference/fw-ref-exports.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAG5D,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAExC,+FAA+F;AAC/F,MAAM,MAAM,mBAAmB,CAAC,OAAO,SAAS,OAAO,GAAG,OAAO,IAAI;KAChE,CAAC,IAAI,OAAO,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC;CAClE,CAAA;AACD;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,iBAAiB,CAAC,QAAQ,SAAS,OAAO,GAAG,GAAG,IAAI,yBAAyB,GACrF,mBAAmB,CAAC,QAAQ,CAAC,CAAA;AAEjC;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,SAAS,OAAO,EACtD,MAAM,EAAE,eAAe,GACxB,iBAAiB,CAAC,QAAQ,CAAC,CAI7B;AACD,yBAAiB,iBAAiB,CAAC;IAC/B,SAAgB,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,iBAAiB,CAErD;CACJ;AAED;;;GAGG;AACH,qBAAa,yBAAyB;;gBAEtB,MAAM,EAAE,eAAe;IAInC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,GAAG,GAAG,eAAe;IAInE,MAAM,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO;CAY9B"}
|
|
@@ -1,16 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.Rsc_FwRef_Exports_Proxied = void 0;
|
|
4
|
+
exports.Rsc_FwRef_Exports = Rsc_FwRef_Exports;
|
|
5
5
|
const doddle_1 = require("doddle");
|
|
6
|
-
const
|
|
6
|
+
const origin_1 = require("../../origin");
|
|
7
|
+
const ref_key_1 = require("../ref-key");
|
|
7
8
|
const error_1 = require("./error");
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
const fw_ref_1 = require("./fw-ref");
|
|
10
|
+
/**
|
|
11
|
+
* Creates a forward reference exports construct for the given {@link Origin_Exporter} entity.
|
|
12
|
+
*
|
|
13
|
+
* @param entity
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
function Rsc_FwRef_Exports(entity) {
|
|
17
|
+
const proxied = new Rsc_FwRef_Exports_Proxied(entity);
|
|
10
18
|
const handler = new FwRef_Exports_Handler(proxied);
|
|
11
19
|
return new Proxy(proxied, handler);
|
|
12
20
|
}
|
|
13
|
-
|
|
21
|
+
(function (Rsc_FwRef_Exports) {
|
|
22
|
+
function is(obj) {
|
|
23
|
+
return obj instanceof Rsc_FwRef_Exports_Proxied;
|
|
24
|
+
}
|
|
25
|
+
Rsc_FwRef_Exports.is = is;
|
|
26
|
+
})(Rsc_FwRef_Exports || (exports.Rsc_FwRef_Exports = Rsc_FwRef_Exports = {}));
|
|
27
|
+
/**
|
|
28
|
+
* A basic core of the {@link Rsc_FwRef_Exports} construct, containing information about the
|
|
29
|
+
* underlying {@link Origin_Exporter} entity.
|
|
30
|
+
*/
|
|
31
|
+
class Rsc_FwRef_Exports_Proxied {
|
|
14
32
|
#entity;
|
|
15
33
|
constructor(entity) {
|
|
16
34
|
this.#entity = entity;
|
|
@@ -18,8 +36,24 @@ class FxRef_Exports_Proxied {
|
|
|
18
36
|
__entity__(act) {
|
|
19
37
|
return this.#entity;
|
|
20
38
|
}
|
|
39
|
+
equals(other) {
|
|
40
|
+
if (!other) {
|
|
41
|
+
return false;
|
|
42
|
+
}
|
|
43
|
+
if (Rsc_FwRef_Exports.is(other)) {
|
|
44
|
+
return this.#entity.equals(other.#entity);
|
|
45
|
+
}
|
|
46
|
+
if (other instanceof origin_1.Origin_Entity) {
|
|
47
|
+
return other.equals(this.#entity);
|
|
48
|
+
}
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
21
51
|
}
|
|
22
|
-
exports.
|
|
52
|
+
exports.Rsc_FwRef_Exports_Proxied = Rsc_FwRef_Exports_Proxied;
|
|
53
|
+
/**
|
|
54
|
+
* Proxy handler for the {@link Rsc_FwRef_Exports} construct, providing dynamic access to the
|
|
55
|
+
* resources attached to the underlying {@link Origin_Exporter} entity.
|
|
56
|
+
*/
|
|
23
57
|
class FwRef_Exports_Handler {
|
|
24
58
|
_subject;
|
|
25
59
|
constructor(_subject) {
|
|
@@ -44,8 +78,7 @@ class FwRef_Exports_Handler {
|
|
|
44
78
|
throw this.#createImmutableError(`delete property ${String(property)} from`);
|
|
45
79
|
}
|
|
46
80
|
getPrototypeOf(_) {
|
|
47
|
-
|
|
48
|
-
return r;
|
|
81
|
+
return Rsc_FwRef_Exports_Proxied.prototype;
|
|
49
82
|
}
|
|
50
83
|
get exported() {
|
|
51
84
|
return (0, doddle_1.seq)(this.entity.resources);
|
|
@@ -71,13 +104,14 @@ class FwRef_Exports_Handler {
|
|
|
71
104
|
if (refKey == null) {
|
|
72
105
|
return undefined;
|
|
73
106
|
}
|
|
74
|
-
return (0,
|
|
107
|
+
return (0, fw_ref_1.FwRef)({
|
|
75
108
|
class: clazz,
|
|
76
|
-
key: refKey,
|
|
109
|
+
key: new ref_key_1.RefKey(refKey.kind, {
|
|
110
|
+
name: refKey.name
|
|
111
|
+
}),
|
|
77
112
|
origin: this.entity,
|
|
78
|
-
namespace: this.entity.meta.tryGet("namespace"),
|
|
79
113
|
resolver: this.exported
|
|
80
|
-
.first(exp => exp.node.
|
|
114
|
+
.first(exp => exp.node.name === refKey.name && exp.node.kind.equals(refKey.kind))
|
|
81
115
|
.map(x => {
|
|
82
116
|
if (x == null) {
|
|
83
117
|
throw new error_1.ProxyOperationError(`Failed to resolve forward reference to ${refKey} in ${this.entity}.`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fw-ref-exports.js","sourceRoot":"","sources":["../../../../../src/core/graph/resource/reference/fw-ref-exports.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"fw-ref-exports.js","sourceRoot":"","sources":["../../../../../src/core/graph/resource/reference/fw-ref-exports.ts"],"names":[],"mappings":";;;AAsCA,8CAMC;AA5CD,mCAA4B;AAC5B,yCAA4C;AAE5C,wCAAmC;AACnC,mCAA6C;AAC7C,qCAAgC;AA2BhC;;;;;GAKG;AACH,SAAgB,iBAAiB,CAC7B,MAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,yBAAyB,CAAC,MAAM,CAAC,CAAA;IACrD,MAAM,OAAO,GAAG,IAAI,qBAAqB,CAAC,OAAO,CAAC,CAAA;IAClD,OAAO,IAAI,KAAK,CAAC,OAAO,EAAE,OAAO,CAAQ,CAAA;AAC7C,CAAC;AACD,WAAiB,iBAAiB;IAC9B,SAAgB,EAAE,CAAC,GAAQ;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