@likec4/core 1.31.0 → 1.32.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +407 -5
- package/dist/builder/index.d.mts +221 -42
- package/dist/builder/index.mjs +118 -65
- package/dist/compute-view/index.d.mts +23 -7
- package/dist/compute-view/index.mjs +11 -6
- package/dist/compute-view/relationships-view/index.d.mts +9 -7
- package/dist/compute-view/relationships-view/index.mjs +3 -2
- package/dist/index.d.mts +10 -14
- package/dist/index.mjs +9 -6
- package/dist/model/index.d.mts +173 -19
- package/dist/model/index.mjs +6 -1
- package/dist/shared/core.BaYE_r29.d.mts +258 -0
- package/dist/shared/core.Bk7wEZFG.mjs +276 -0
- package/dist/shared/core.BrCnZFTn.mjs +32 -0
- package/dist/shared/core.BuO4ncfY.d.mts +146 -0
- package/dist/shared/{core.Bq753SYD.mjs → core.CBpKAlhj.mjs} +2012 -4422
- package/dist/shared/core.CUYDgv2-.mjs +214 -0
- package/dist/shared/{core.Cu-UdkSl.mjs → core.CpXlRyE5.mjs} +7 -494
- package/dist/shared/{core.C-YXI-43.mjs → core.Cy9smucx.mjs} +3 -1
- package/dist/shared/core.CywrQs86.d.mts +31 -0
- package/dist/shared/core.DXzRBkuI.d.mts +1264 -0
- package/dist/shared/core.DoK86JEe.mjs +518 -0
- package/dist/shared/{core.D2830qgg.d.mts → core.Pf5I9o0e.d.mts} +1 -1
- package/dist/shared/core.cbA9VZ02.mjs +2681 -0
- package/dist/shared/{core.CQXU9DF7.mjs → core.rmvsy0n3.mjs} +23 -32
- package/dist/shared/core.znRaUX_A.d.mts +920 -0
- package/dist/types/aux.d.mts +3 -0
- package/dist/types/aux.mjs +1 -0
- package/dist/types/index.d.mts +7 -45
- package/dist/types/index.mjs +130 -3
- package/dist/utils/index.d.mts +221 -53
- package/dist/utils/index.mjs +14 -10
- package/package.json +16 -8
- package/src/builder/Builder.deploymentModel.ts +82 -18
- package/src/builder/Builder.element.ts +40 -20
- package/src/builder/Builder.model.ts +66 -17
- package/src/builder/Builder.ts +168 -76
- package/src/builder/Builder.view-common.ts +35 -17
- package/src/builder/Builder.view-deployment.ts +25 -25
- package/src/builder/Builder.view-element.ts +13 -12
- package/src/builder/Builder.views.ts +12 -7
- package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +62 -34
- package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +319 -0
- package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +45 -24
- package/src/builder/_types.ts +34 -27
- package/src/compute-view/compute-view.ts +31 -34
- package/src/compute-view/deployment-view/__test__/TestHelper.ts +27 -14
- package/src/compute-view/deployment-view/__test__/fixture.ts +15 -13
- package/src/compute-view/deployment-view/_types.ts +10 -10
- package/src/compute-view/deployment-view/clean-connections.ts +5 -7
- package/src/compute-view/deployment-view/compute.ts +16 -13
- package/src/compute-view/deployment-view/memory/memory.ts +5 -6
- package/src/compute-view/deployment-view/predicates/deploymentRefs.ts +4 -5
- package/src/compute-view/deployment-view/predicates/relation-direct.ts +25 -50
- package/src/compute-view/deployment-view/predicates/relation-in-out.ts +5 -7
- package/src/compute-view/deployment-view/predicates/relation-incoming.ts +7 -11
- package/src/compute-view/deployment-view/predicates/relation-outgoing.ts +7 -10
- package/src/compute-view/deployment-view/predicates/utils.ts +37 -31
- package/src/compute-view/deployment-view/predicates/wildcard.ts +3 -2
- package/src/compute-view/deployment-view/stages/stage-final.ts +2 -2
- package/src/compute-view/deployment-view/stages/stage-include.ts +1 -1
- package/src/compute-view/deployment-view/utils.ts +79 -72
- package/src/compute-view/dynamic-view/__test__/fixture.ts +20 -11
- package/src/compute-view/dynamic-view/compute.ts +60 -53
- package/src/compute-view/element-view/__test__/TestHelper.ts +53 -29
- package/src/compute-view/element-view/__test__/__snapshots__/legacy.spec.ts.snap +26 -26
- package/src/compute-view/element-view/__test__/fixture.ts +134 -83
- package/src/compute-view/element-view/_types.ts +14 -19
- package/src/compute-view/element-view/clean-connections.ts +12 -8
- package/src/compute-view/element-view/compute.ts +61 -51
- package/src/compute-view/element-view/memory/NodeGroup.ts +8 -9
- package/src/compute-view/element-view/memory/memory.ts +22 -22
- package/src/compute-view/element-view/memory/stage-include.ts +5 -3
- package/src/compute-view/element-view/predicates/_utils.ts +18 -14
- package/src/compute-view/element-view/predicates/element-expand.ts +4 -5
- package/src/compute-view/element-view/predicates/element-kind-tag.ts +3 -4
- package/src/compute-view/element-view/predicates/element-ref.ts +3 -4
- package/src/compute-view/element-view/predicates/relation-direct.ts +16 -12
- package/src/compute-view/element-view/predicates/relation-in-out.ts +7 -8
- package/src/compute-view/element-view/predicates/relation-in.ts +19 -26
- package/src/compute-view/element-view/predicates/relation-out.ts +20 -21
- package/src/compute-view/element-view/predicates/wildcard.ts +3 -3
- package/src/compute-view/element-view/utils.ts +25 -23
- package/src/compute-view/index.ts +1 -1
- package/src/compute-view/memory/AbstractStageExclude.ts +3 -4
- package/src/compute-view/memory/AbstractStageInclude.ts +1 -1
- package/src/compute-view/memory/_types.ts +3 -2
- package/src/compute-view/relationships-view/_types.ts +3 -4
- package/src/compute-view/relationships-view/compute.ts +8 -11
- package/src/compute-view/relationships-view/layout.ts +6 -6
- package/src/compute-view/relationships-view/utils.ts +4 -4
- package/src/compute-view/utils/ancestorsOfNode.ts +7 -7
- package/src/compute-view/utils/applyCustomElementProperties.ts +16 -8
- package/src/compute-view/utils/applyCustomRelationProperties.ts +19 -9
- package/src/compute-view/utils/applyViewRuleStyles.ts +18 -10
- package/src/compute-view/utils/buildComputedNodes.ts +40 -40
- package/src/compute-view/utils/buildElementNotations.ts +14 -14
- package/src/compute-view/utils/elementExpressionToPredicate.ts +14 -15
- package/src/compute-view/utils/link-nodes-with-edges.ts +6 -4
- package/src/compute-view/utils/merge-props-from-relationships.ts +52 -20
- package/src/compute-view/utils/relationExpressionToPredicates.ts +19 -19
- package/src/compute-view/utils/resolve-extended-views.ts +8 -7
- package/src/compute-view/utils/resolve-global-rules.ts +31 -26
- package/src/compute-view/utils/topological-sort.ts +14 -14
- package/src/compute-view/utils/view-hash.ts +2 -2
- package/src/compute-view/utils/with-readable-edges.ts +9 -5
- package/src/index.ts +0 -32
- package/src/model/DeploymentElementModel.ts +171 -144
- package/src/model/DeploymentModel.ts +88 -65
- package/src/model/ElementModel.ts +85 -74
- package/src/model/LikeC4Model.ts +430 -241
- package/src/model/RelationModel.ts +63 -29
- package/src/model/__test__/fixture.ts +50 -36
- package/src/model/connection/Connection.ts +2 -2
- package/src/model/connection/deployment/DeploymentConnectionModel.ts +21 -24
- package/src/model/connection/deployment/find.ts +1 -1
- package/src/model/connection/model/ConnectionModel.ts +21 -20
- package/src/model/connection/model/find.ts +7 -7
- package/src/model/connection/ops.ts +6 -6
- package/src/model/guards.ts +66 -14
- package/src/model/index.ts +20 -7
- package/src/model/types.ts +41 -97
- package/src/model/view/EdgeModel.ts +47 -41
- package/src/model/view/LikeC4ViewModel.ts +130 -80
- package/src/model/view/NodeModel.ts +102 -96
- package/src/theme/element.ts +1 -1
- package/src/theme/index.ts +9 -9
- package/src/theme/relationships.ts +1 -1
- package/src/types/_common.ts +21 -15
- package/src/types/aux.ts +285 -0
- package/src/types/const.ts +34 -0
- package/src/types/expression-model.ts +292 -0
- package/src/types/expression.ts +311 -0
- package/src/types/fqnRef.ts +88 -0
- package/src/types/geometry.ts +131 -0
- package/src/types/global.ts +10 -8
- package/src/types/index.ts +39 -201
- package/src/types/model-data.ts +52 -84
- package/src/types/model-deployment.ts +87 -0
- package/src/types/model-dump.ts +72 -0
- package/src/types/model-logical.ts +111 -0
- package/src/types/model-spec.ts +81 -0
- package/src/types/operators.ts +51 -52
- package/src/types/scalar.ts +114 -0
- package/src/types/{theme.ts → styles.ts} +55 -15
- package/src/types/view-changes.ts +4 -5
- package/src/types/view-common.ts +157 -0
- package/src/types/view-computed.ts +113 -0
- package/src/types/view-layouted.ts +82 -0
- package/src/types/view-parsed.deployment.ts +40 -0
- package/src/types/view-parsed.dynamic.ts +78 -0
- package/src/types/view-parsed.element.ts +65 -0
- package/src/types/view.ts +122 -542
- package/src/utils/compare-natural.ts +43 -1
- package/src/utils/getOrCreate.ts +0 -34
- package/src/utils/index.ts +7 -12
- package/src/utils/iterable/filter.ts +1 -1
- package/src/utils/iterable/find.ts +3 -1
- package/src/utils/iterable/head.ts +22 -0
- package/src/utils/iterable/index.ts +1 -0
- package/src/utils/iterable/map.ts +1 -1
- package/src/utils/iterable/reduce.ts +1 -1
- package/src/utils/iterable/some.ts +1 -1
- package/src/utils/memoize-prop.ts +30 -0
- package/src/utils/object-hash.ts +1 -1
- package/src/utils/relations.ts +14 -11
- package/src/utils/string-hash.ts +1 -1
- package/dist/shared/core.CQDU11hR.d.mts +0 -753
- package/dist/shared/core.DJvmfnEi.d.mts +0 -1153
- package/dist/shared/core.DgfwjBtu.mjs +0 -495
- package/dist/shared/core.Dx7siloV.d.mts +0 -146
- package/dist/shared/core.SjLhMA7a.d.mts +0 -62
- package/src/builder/__snapshots__/Builder.spec.ts.snap +0 -374
- package/src/compute-view/element-view/predicates.ts +0 -520
- package/src/compute-view/utils/uniqueTags.ts +0 -21
- package/src/types/deployments.ts +0 -170
- package/src/types/element.ts +0 -109
- package/src/types/expression-v2-model.ts +0 -314
- package/src/types/expression-v2.ts +0 -392
- package/src/types/overview-graph.ts +0 -43
- package/src/types/relation.ts +0 -61
- package/src/types/scalars.ts +0 -39
- package/src/types/view-notation.ts +0 -9
- package/src/utils/graphlib.ts +0 -10
- /package/src/{errors/index.ts → utils/invariant.ts} +0 -0
package/dist/model/index.d.mts
CHANGED
|
@@ -1,10 +1,154 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { E as ElementModel, D as DeploymentElementModel, a as RelationshipsAccum, b as DeploymentNodeModel, R as RelationshipModel, c as DeploymentRelationModel, d as DeployedInstanceModel, A as AnyRelationshipModel, N as NestedElementOfDeployedInstanceModel, e as LikeC4ViewModel, f as NodeModel, g as EdgeModel } from '../shared/core.znRaUX_A.mjs';
|
|
2
|
+
export { h as AnyLikeC4Model, k as DeploymentOrFqn, i as DeploymentRelationEndpoint, l as EdgeOrId, m as ElementOrFqn, I as IncomingFilter, j as LikeC4DeploymentModel, L as LikeC4Model, n as NodeOrId, O as OutgoingFilter } from '../shared/core.znRaUX_A.mjs';
|
|
3
|
+
import { A as Any, h as EdgeId, U as Unknown } from '../shared/core.BaYE_r29.mjs';
|
|
4
|
+
export { b as Aux, S as SpecAux, a as aux } from '../shared/core.BaYE_r29.mjs';
|
|
5
|
+
import { F as Fqn, I as IteratorLike } from '../shared/core.BuO4ncfY.mjs';
|
|
6
|
+
import { I as IterableContainer, R as ReorderedArray } from '../shared/core.Pf5I9o0e.mjs';
|
|
7
|
+
export { y as AuxFromDump, A as AuxFromLikeC4ModelData } from '../shared/core.DXzRBkuI.mjs';
|
|
8
|
+
import '../shared/core.CywrQs86.mjs';
|
|
5
9
|
import 'type-fest';
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
|
|
11
|
+
interface Connection<Elem = ElementModel<Any> | DeploymentElementModel<Any>, Id = string> {
|
|
12
|
+
readonly id: Id;
|
|
13
|
+
readonly source: Elem;
|
|
14
|
+
readonly target: Elem;
|
|
15
|
+
/**
|
|
16
|
+
* Common ancestor of the source and target elements.
|
|
17
|
+
* Represents the boundary of the connection.
|
|
18
|
+
*/
|
|
19
|
+
readonly boundary: Elem | null;
|
|
20
|
+
/**
|
|
21
|
+
* Human readable expression of the connection
|
|
22
|
+
* Mostly used for testing and debugging
|
|
23
|
+
*/
|
|
24
|
+
readonly expression: string;
|
|
25
|
+
mergeWith(this: Connection<Elem, Id>, other: typeof this): typeof this;
|
|
26
|
+
nonEmpty(): boolean;
|
|
27
|
+
difference(this: Connection<Elem, Id>, other: typeof this): typeof this;
|
|
28
|
+
intersect(this: Connection<Elem, Id>, other: typeof this): typeof this;
|
|
29
|
+
equals(other: Connection): boolean;
|
|
30
|
+
}
|
|
31
|
+
declare namespace Connection {
|
|
32
|
+
type ConnectionPredicate = <C extends Connection<{
|
|
33
|
+
id: string;
|
|
34
|
+
}, any>>(connection: C) => boolean;
|
|
35
|
+
type ElementId = Fqn | string;
|
|
36
|
+
export const isInside: (fqn: ElementId) => ConnectionPredicate;
|
|
37
|
+
export const isDirectedBetween: (source: ElementId, target: ElementId) => ConnectionPredicate;
|
|
38
|
+
export const isAnyBetween: (source: ElementId, target: ElementId) => ConnectionPredicate;
|
|
39
|
+
export const isIncoming: (target: ElementId) => ConnectionPredicate;
|
|
40
|
+
export const isOutgoing: (source: ElementId) => ConnectionPredicate;
|
|
41
|
+
export const isAnyInOut: (source: ElementId) => ConnectionPredicate;
|
|
42
|
+
export { };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const customInspectSymbol: unique symbol;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Connection is ephemeral entity, result of a resolving relationships between source and target.
|
|
49
|
+
* Includes direct relationships and/or between their nested elements.
|
|
50
|
+
*/
|
|
51
|
+
declare class DeploymentConnectionModel<A extends Any = Any> implements Connection<DeploymentElementModel<A>, EdgeId> {
|
|
52
|
+
readonly source: DeploymentElementModel<A>;
|
|
53
|
+
readonly target: DeploymentElementModel<A>;
|
|
54
|
+
readonly relations: RelationshipsAccum<A>;
|
|
55
|
+
readonly id: EdgeId;
|
|
56
|
+
constructor(source: DeploymentElementModel<A>, target: DeploymentElementModel<A>, relations: RelationshipsAccum<A>);
|
|
57
|
+
/**
|
|
58
|
+
* Human readable expression of the connection
|
|
59
|
+
* Mostly used for testing and debugging
|
|
60
|
+
*/
|
|
61
|
+
get expression(): string;
|
|
62
|
+
private _boundary;
|
|
63
|
+
/**
|
|
64
|
+
* Common ancestor of the source and target elements.
|
|
65
|
+
* Represents the boundary of the connection.
|
|
66
|
+
*/
|
|
67
|
+
get boundary(): DeploymentNodeModel<A> | null;
|
|
68
|
+
nonEmpty(): boolean;
|
|
69
|
+
[customInspectSymbol](depth: any, inspectOptions: any, inspect: any): string;
|
|
70
|
+
toString(): string;
|
|
71
|
+
/**
|
|
72
|
+
* Check if connection contains deployment relation,
|
|
73
|
+
* that is directly connected to source or target.
|
|
74
|
+
*/
|
|
75
|
+
hasDirectDeploymentRelation(): boolean;
|
|
76
|
+
values(): IteratorLike<RelationshipModel<A> | DeploymentRelationModel<A>>;
|
|
77
|
+
/**
|
|
78
|
+
* Merge with another connections, if it has the same source and target.
|
|
79
|
+
* Returns new connection with union of relationships.
|
|
80
|
+
*/
|
|
81
|
+
mergeWith(others: DeploymentConnectionModel<A>[]): DeploymentConnectionModel<A>;
|
|
82
|
+
/**
|
|
83
|
+
* Merge with another connection, if it has the same source and target.
|
|
84
|
+
* Returns new connection with union of relationships.
|
|
85
|
+
*/
|
|
86
|
+
mergeWith(other: DeploymentConnectionModel<A>): DeploymentConnectionModel<A>;
|
|
87
|
+
difference(other: DeploymentConnectionModel<A>): DeploymentConnectionModel<A>;
|
|
88
|
+
intersect(other: DeploymentConnectionModel<A>): DeploymentConnectionModel<A>;
|
|
89
|
+
equals(other: Connection): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Creates a clone of the current `DeploymentConnectionModel` instance with optional overrides.
|
|
92
|
+
* if `null` is provided in overrides, the corresponding relation set will be empty.
|
|
93
|
+
*/
|
|
94
|
+
update(overrides?: {
|
|
95
|
+
model?: ReadonlySet<RelationshipModel<A>> | null;
|
|
96
|
+
deployment?: ReadonlySet<DeploymentRelationModel<A>> | null;
|
|
97
|
+
}): DeploymentConnectionModel<A>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Connection refers to any relationships between two elements,
|
|
102
|
+
* both direct and implicit ones (between their nested elements).
|
|
103
|
+
*
|
|
104
|
+
* Merges relationships together to an single edge on the diagram.
|
|
105
|
+
*/
|
|
106
|
+
declare class ConnectionModel<A extends Any = Unknown> implements Connection<ElementModel<A>, EdgeId> {
|
|
107
|
+
readonly source: ElementModel<A>;
|
|
108
|
+
readonly target: ElementModel<A>;
|
|
109
|
+
readonly relations: ReadonlySet<RelationshipModel<A>>;
|
|
110
|
+
readonly id: EdgeId;
|
|
111
|
+
constructor(source: ElementModel<A>, target: ElementModel<A>, relations?: ReadonlySet<RelationshipModel<A>>);
|
|
112
|
+
private _boundary;
|
|
113
|
+
/**
|
|
114
|
+
* Common ancestor of the source and target elements.
|
|
115
|
+
* Represents the boundary of the connection.
|
|
116
|
+
*/
|
|
117
|
+
get boundary(): ElementModel<A> | null;
|
|
118
|
+
/**
|
|
119
|
+
* Human readable expression of the connection
|
|
120
|
+
* Mostly used for testing and debugging
|
|
121
|
+
*/
|
|
122
|
+
get expression(): string;
|
|
123
|
+
/**
|
|
124
|
+
* Returns true if only includes relations between the source and target elements.
|
|
125
|
+
*/
|
|
126
|
+
get isDirect(): boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Returns true if includes relations between nested elements of the source and target elements.
|
|
129
|
+
*/
|
|
130
|
+
get isImplicit(): boolean;
|
|
131
|
+
get directRelations(): ReadonlySet<RelationshipModel<A>>;
|
|
132
|
+
nonEmpty(): boolean;
|
|
133
|
+
mergeWith(other: ConnectionModel<A>): ConnectionModel<A>;
|
|
134
|
+
difference(other: ConnectionModel<A>): ConnectionModel<A>;
|
|
135
|
+
intersect(other: ConnectionModel<A>): ConnectionModel<A>;
|
|
136
|
+
equals(other: Connection): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Returns a new instance with the updated relations.
|
|
139
|
+
*
|
|
140
|
+
* @param relations - A readonly set of `RelationshipModel` instances representing the new relations.
|
|
141
|
+
* @returns A new `ConnectionModel` instance with the updated relations.
|
|
142
|
+
*/
|
|
143
|
+
update(relations: ReadonlySet<RelationshipModel<A>>): ConnectionModel<A>;
|
|
144
|
+
[customInspectSymbol](depth: any, inspectOptions: any, inspect: any): string;
|
|
145
|
+
toString(): string;
|
|
146
|
+
/**
|
|
147
|
+
* Creates a new connection with reversed direction (target becomes source and vice versa)
|
|
148
|
+
* @param search - When true, attempts to find an existing connection between the reversed nodes
|
|
149
|
+
*/
|
|
150
|
+
reversed(search?: boolean): ConnectionModel<A>;
|
|
151
|
+
}
|
|
8
152
|
|
|
9
153
|
/**
|
|
10
154
|
* Check if connection is nested inside another connection
|
|
@@ -36,12 +180,12 @@ declare function findAscendingConnections<C extends ConnectionElemId>(connection
|
|
|
36
180
|
* Find connections that includes given connection (i.e between it's descendants)
|
|
37
181
|
*/
|
|
38
182
|
declare function findDescendantConnections<C extends ConnectionElemId>(connections: ReadonlyArray<C>, connection: C): Array<C>;
|
|
39
|
-
declare function mergeConnections<C extends Connection
|
|
183
|
+
declare function mergeConnections<C extends IterableContainer<Connection<any, any>>>(connections: C): Array<C[number]>;
|
|
40
184
|
/**
|
|
41
185
|
* Excludes the values existing in `other` array.
|
|
42
186
|
* The output maintains the same order as the input.
|
|
43
187
|
*/
|
|
44
|
-
declare function differenceConnections<C extends Connection
|
|
188
|
+
declare function differenceConnections<C extends Connection<any, any>>(source: Iterable<C>, exclude: Iterable<C>): C[];
|
|
45
189
|
type WithSourceTarget<T = unknown> = {
|
|
46
190
|
source: T;
|
|
47
191
|
target: T;
|
|
@@ -68,20 +212,20 @@ declare function isAnyInOut<T extends string>(a: WithSourceTarget<WithId<T>>, so
|
|
|
68
212
|
*
|
|
69
213
|
* @default direction directed
|
|
70
214
|
*/
|
|
71
|
-
declare function findConnection$1<M extends
|
|
72
|
-
declare function findConnection$1<M extends
|
|
73
|
-
declare function findConnection$1<M extends
|
|
215
|
+
declare function findConnection$1<M extends Any>(source: DeploymentElementModel<M>, target: DeploymentElementModel<NoInfer<M>>, direction: 'directed'): readonly [DeploymentConnectionModel<M>] | readonly [];
|
|
216
|
+
declare function findConnection$1<M extends Any>(source: DeploymentElementModel<M>, target: DeploymentElementModel<NoInfer<M>>, direction: 'both'): readonly [DeploymentConnectionModel<M>, DeploymentConnectionModel<M>] | readonly [DeploymentConnectionModel<M>] | readonly [];
|
|
217
|
+
declare function findConnection$1<M extends Any>(source: DeploymentElementModel<M>, target: DeploymentElementModel<NoInfer<M>>, direction?: 'directed' | 'both'): readonly [DeploymentConnectionModel<M>, DeploymentConnectionModel<M>] | readonly [DeploymentConnectionModel<M>] | readonly [];
|
|
74
218
|
/**
|
|
75
219
|
* Resolve all connections between element and others
|
|
76
220
|
* By default, look for both directions.
|
|
77
221
|
*
|
|
78
222
|
* @default direction both
|
|
79
223
|
*/
|
|
80
|
-
declare function findConnectionsBetween$1<M extends
|
|
224
|
+
declare function findConnectionsBetween$1<M extends Any>(element: DeploymentElementModel<M>, others: Iterable<DeploymentElementModel<NoInfer<M>>>, direction?: 'directed' | 'both'): readonly DeploymentConnectionModel<M>[];
|
|
81
225
|
/**
|
|
82
226
|
* Resolve all connections within a given set of elements
|
|
83
227
|
*/
|
|
84
|
-
declare function findConnectionsWithin$1<M extends
|
|
228
|
+
declare function findConnectionsWithin$1<M extends Any>(elements: Iterable<DeploymentElementModel<M>>): readonly DeploymentConnectionModel<M>[];
|
|
85
229
|
|
|
86
230
|
declare namespace find$1 {
|
|
87
231
|
export { findConnection$1 as findConnection, findConnectionsBetween$1 as findConnectionsBetween, findConnectionsWithin$1 as findConnectionsWithin };
|
|
@@ -93,17 +237,17 @@ declare namespace find$1 {
|
|
|
93
237
|
* @param direction - if 'both', also returns connection from target to source
|
|
94
238
|
* @default `directed`
|
|
95
239
|
*/
|
|
96
|
-
declare function findConnection<
|
|
240
|
+
declare function findConnection<A extends Any>(source: ElementModel<A>, target: ElementModel<A>, direction?: 'directed' | 'both'): [ConnectionModel<A>, ConnectionModel<A>] | [ConnectionModel<A>] | [];
|
|
97
241
|
/**
|
|
98
242
|
* Resolve all connections between element and others
|
|
99
243
|
* @param direction - if 'directed', only look for outgoing connections from the element to others
|
|
100
244
|
* @default `both`
|
|
101
245
|
*/
|
|
102
|
-
declare function findConnectionsBetween<M extends
|
|
246
|
+
declare function findConnectionsBetween<M extends Any>(element: ElementModel<M>, others: Iterable<ElementModel<M>>, direction?: 'directed' | 'both'): readonly ConnectionModel<M>[];
|
|
103
247
|
/**
|
|
104
248
|
* Resolve all connections within a given set of elements
|
|
105
249
|
*/
|
|
106
|
-
declare function findConnectionsWithin<M extends
|
|
250
|
+
declare function findConnectionsWithin<M extends Any>(elements: Iterable<ElementModel<M>>): readonly ConnectionModel<M>[];
|
|
107
251
|
|
|
108
252
|
declare const find_findConnection: typeof findConnection;
|
|
109
253
|
declare const find_findConnectionsBetween: typeof findConnectionsBetween;
|
|
@@ -112,7 +256,17 @@ declare namespace find {
|
|
|
112
256
|
export { find_findConnection as findConnection, find_findConnectionsBetween as findConnectionsBetween, find_findConnectionsWithin as findConnectionsWithin };
|
|
113
257
|
}
|
|
114
258
|
|
|
115
|
-
|
|
116
|
-
declare function
|
|
259
|
+
type AnyModel<A extends Any> = DeploymentNodeModel<A> | DeployedInstanceModel<A> | DeploymentRelationModel<A> | AnyRelationshipModel<A> | NestedElementOfDeployedInstanceModel<A> | ElementModel<A> | RelationshipModel<A> | LikeC4ViewModel<A> | NodeModel<A> | EdgeModel<A>;
|
|
260
|
+
declare function isDeploymentNodeModel<M extends Any>(model: AnyModel<M>): model is DeploymentNodeModel<M>;
|
|
261
|
+
declare function isDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is DeployedInstanceModel<M>;
|
|
262
|
+
declare function isDeploymentElementModel<M extends Any>(model: AnyModel<M>): model is DeploymentElementModel<M>;
|
|
263
|
+
declare function isNestedElementOfDeployedInstanceModel<M extends Any>(model: AnyModel<M>): model is NestedElementOfDeployedInstanceModel<M>;
|
|
264
|
+
declare function isDeploymentRelationModel<M extends Any>(x: AnyModel<M>): x is DeploymentRelationModel<M>;
|
|
265
|
+
declare function isRelationModel<M extends Any>(x: AnyModel<M>): x is RelationshipModel<M>;
|
|
266
|
+
|
|
267
|
+
declare function isElementModel<M extends Any>(element: AnyModel<M>): element is ElementModel<M>;
|
|
268
|
+
declare function isLikeC4ViewModel<M extends Any>(view: AnyModel<M>): view is LikeC4ViewModel<M>;
|
|
269
|
+
declare function isNodeModel<M extends Any>(node: AnyModel<M>): node is NodeModel<M>;
|
|
270
|
+
declare function isEdgeModel<M extends Any>(edge: AnyModel<M>): edge is EdgeModel<M>;
|
|
117
271
|
|
|
118
|
-
export { AnyAux, Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, ElementModel, find$1 as deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut,
|
|
272
|
+
export { Any, Any as AnyAux, Connection, ConnectionModel, DeployedInstanceModel, DeploymentConnectionModel, DeploymentElementModel, DeploymentNodeModel, DeploymentRelationModel, EdgeModel, ElementModel, LikeC4ViewModel, NodeModel, RelationshipModel, RelationshipsAccum, find$1 as deploymentConnection, differenceConnections, findAscendingConnections, findDeepestNestedConnection, findDescendantConnections, hasSameSource, hasSameSourceTarget, hasSameTarget, isAnyInOut, isDeployedInstanceModel, isDeploymentElementModel, isDeploymentNodeModel, isDeploymentRelationModel, isEdgeModel, isElementModel, isIncoming, isLikeC4ViewModel, isRelationModel as isModelRelation, isNestedConnection, isNestedElementOfDeployedInstanceModel, isNodeModel, isOutgoing, isRelationModel, isRelationModel as isRelationshipModel, mergeConnections, find as modelConnection, sortConnectionsByBoundaryHierarchy, sortDeepestFirst };
|
package/dist/model/index.mjs
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export { C as Connection,
|
|
1
|
+
export { C as Connection, z as ConnectionModel, I as DeployedInstanceModel, D as DeploymentConnectionModel, J as DeploymentNodeModel, K as DeploymentRelationModel, N as EdgeModel, E as ElementModel, M as LikeC4DeploymentModel, L as LikeC4Model, O as LikeC4ViewModel, P as NodeModel, A as RelationshipModel, R as RelationshipsAccum, d as deploymentConnection, c as differenceConnections, f as findAscendingConnections, v as findDeepestNestedConnection, u as findDescendantConnections, B as hasSameSource, F as hasSameSourceTarget, G as hasSameTarget, w as isAnyInOut, l as isDeployedInstanceModel, o as isDeploymentElementModel, n as isDeploymentNodeModel, Q as isDeploymentRelationModel, V as isEdgeModel, j as isElementModel, y as isIncoming, T as isLikeC4ViewModel, S as isModelRelation, e as isNestedConnection, k as isNestedElementOfDeployedInstanceModel, U as isNodeModel, x as isOutgoing, S as isRelationModel, S as isRelationshipModel, m as mergeConnections, q as modelConnection, s as sortConnectionsByBoundaryHierarchy, H as sortDeepestFirst } from '../shared/core.cbA9VZ02.mjs';
|
|
2
|
+
import '../shared/core.rmvsy0n3.mjs';
|
|
3
|
+
import '../shared/core.Cy9smucx.mjs';
|
|
4
|
+
import '../shared/core.CUYDgv2-.mjs';
|
|
5
|
+
import '../shared/core.DbRvwARP.mjs';
|
|
6
|
+
import '../shared/core.DoK86JEe.mjs';
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { IfNever, IsNever, IsLiteral } from 'type-fest';
|
|
2
|
+
import { D as DeploymentFqn$1, C as Coalesce, F as Fqn$1, R as RelationId$1, N as NodeId$1, E as EdgeId$1, P as ProjectId$1, V as ViewId$1, T as Tag$1, a as ElementKind$1, b as DeploymentKind$1, c as RelationshipKind, L as Link } from './core.BuO4ncfY.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Determines the stage of the model:
|
|
6
|
+
* 1. `parsed` - parsed from DSL or returned from Builder
|
|
7
|
+
* 2. `computed` - views are computed
|
|
8
|
+
* 3. `layouted` - views are layouted
|
|
9
|
+
*
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
type ModelStage = 'parsed' | 'computed' | 'layouted';
|
|
13
|
+
type ExtractOnStage<T, S extends ModelStage> = Extract<T, {
|
|
14
|
+
[_stage]: S;
|
|
15
|
+
}>;
|
|
16
|
+
declare function isOnStage<T extends {
|
|
17
|
+
[_stage]: ModelStage;
|
|
18
|
+
}, S extends ModelStage>(value: T, stage: S): value is ExtractOnStage<T, S>;
|
|
19
|
+
/**
|
|
20
|
+
* Property name to store the stage of the model
|
|
21
|
+
*
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
declare const _stage = "_stage";
|
|
25
|
+
type _stage = typeof _stage;
|
|
26
|
+
/**
|
|
27
|
+
* Property name to store type information, used to identify the type of the view
|
|
28
|
+
*
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
declare const _type = "_type";
|
|
32
|
+
type _type = typeof _type;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Specification types (kinds, tags, metadata keys)
|
|
36
|
+
*
|
|
37
|
+
* @param ElementKind - Literal union of element kinds
|
|
38
|
+
* @param DeploymentKind - Literal union of deployment kinds
|
|
39
|
+
* @param RelationKind - Literal union of relationship kinds
|
|
40
|
+
* @param Tag - Literal union of tags
|
|
41
|
+
* @param MetadataKey - Literal union of metadata keys
|
|
42
|
+
*/
|
|
43
|
+
interface SpecAux<ElementKind extends string, DeploymentKind extends string, RelationKind extends string, Tag extends string, MetadataKey extends string> {
|
|
44
|
+
ElementKind: ElementKind;
|
|
45
|
+
DeploymentKind: DeploymentKind;
|
|
46
|
+
RelationKind: RelationKind;
|
|
47
|
+
Tag: Tag;
|
|
48
|
+
MetadataKey: MetadataKey;
|
|
49
|
+
}
|
|
50
|
+
type AnySpec = SpecAux<any, any, any, any, any>;
|
|
51
|
+
/**
|
|
52
|
+
* Auxilary interface to keep inferred types
|
|
53
|
+
*
|
|
54
|
+
* @typeParam Stage - View stage
|
|
55
|
+
* @typeParam Element - Literal union of FQNs of model elements
|
|
56
|
+
* @typeParam Deployment - Literal union of FQNs of deployment elements
|
|
57
|
+
* @typeParam View - Literal union of view identifiers
|
|
58
|
+
* @typeParam Project - Project identifier type
|
|
59
|
+
* @typeParam Spec - Specification types (kinds, tags, metadata keys)
|
|
60
|
+
*/
|
|
61
|
+
interface Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> {
|
|
62
|
+
Stage: Stage;
|
|
63
|
+
ProjectId: Project;
|
|
64
|
+
ElementId: Element;
|
|
65
|
+
DeploymentId: Deployment;
|
|
66
|
+
ViewId: View;
|
|
67
|
+
ElementKind: Spec['ElementKind'];
|
|
68
|
+
DeploymentKind: Spec['DeploymentKind'];
|
|
69
|
+
RelationKind: Spec['RelationKind'];
|
|
70
|
+
Tag: Spec['Tag'];
|
|
71
|
+
MetadataKey: Spec['MetadataKey'];
|
|
72
|
+
}
|
|
73
|
+
type Any = Aux<any, any, any, any, any, SpecAux<any, any, any, any, any>>;
|
|
74
|
+
|
|
75
|
+
type Never = Aux<never, never, never, never, never, SpecAux<never, never, never, never, never>>;
|
|
76
|
+
/**
|
|
77
|
+
* Fallback when {@link Aux} can't be inferred.
|
|
78
|
+
* By default assumes non parsed model
|
|
79
|
+
*/
|
|
80
|
+
type Unknown = Aux<'layouted' | 'computed', string, string, string, string, SpecAux<string, string, string, string, string>>;
|
|
81
|
+
type UnknownParsed = Aux<'parsed', string, string, string, string, SpecAux<string, string, string, string, string>>;
|
|
82
|
+
type UnknownComputed = Aux<'computed', string, string, string, string, SpecAux<string, string, string, string, string>>;
|
|
83
|
+
type UnknownLayouted = Aux<'layouted', string, string, string, string, SpecAux<string, string, string, string, string>>;
|
|
84
|
+
/**
|
|
85
|
+
* Reads stage from Aux
|
|
86
|
+
*/
|
|
87
|
+
type Stage<A> = A extends Aux<infer S, any, any, any, any, any> ? IfNever<S, never, Coalesce<S, ModelStage>> : never;
|
|
88
|
+
/**
|
|
89
|
+
* Picks type based on stage from Aux
|
|
90
|
+
*/
|
|
91
|
+
type PickByStage<A extends Any, OnParsed, OnComputed, OnLayouted = OnComputed> = {
|
|
92
|
+
parsed: OnParsed;
|
|
93
|
+
computed: OnComputed;
|
|
94
|
+
layouted: OnLayouted;
|
|
95
|
+
}[A['Stage']];
|
|
96
|
+
type setStage<A, S extends ModelStage> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<S, E, D, V, P, Spec> : never;
|
|
97
|
+
type toParsed<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<'parsed', E, D, V, P, Spec> : never;
|
|
98
|
+
type toComputed<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<'computed', E, D, V, P, Spec> : never;
|
|
99
|
+
type toLayouted<A> = A extends Aux<any, infer E, infer D, infer V, infer P, infer Spec> ? Aux<'layouted', E, D, V, P, Spec> : never;
|
|
100
|
+
/**
|
|
101
|
+
* Project identifier from Aux
|
|
102
|
+
*/
|
|
103
|
+
type ProjectId<A> = A extends infer T extends Any ? Coalesce<T['ProjectId']> : never;
|
|
104
|
+
/**
|
|
105
|
+
* Element FQN from Aux as branded type
|
|
106
|
+
*/
|
|
107
|
+
type Fqn<A> = A extends infer T extends Any ? Fqn$1<ElementId<T>> : never;
|
|
108
|
+
/**
|
|
109
|
+
* Element FQN from Aux as a literal union
|
|
110
|
+
*/
|
|
111
|
+
type ElementId<A> = A extends infer T extends Any ? Coalesce<T['ElementId']> : never;
|
|
112
|
+
/**
|
|
113
|
+
* Deployment FQN from Aux as branded type
|
|
114
|
+
*/
|
|
115
|
+
type DeploymentFqn<A> = A extends infer T extends Any ? DeploymentFqn$1<DeploymentId<T>> : never;
|
|
116
|
+
/**
|
|
117
|
+
* Deployment FQN from Aux as a literal union
|
|
118
|
+
* @alias {@link DeploymentFqn}
|
|
119
|
+
*/
|
|
120
|
+
type DeploymentId<A> = A extends infer T extends Any ? Coalesce<T['DeploymentId']> : never;
|
|
121
|
+
/**
|
|
122
|
+
* View identifier from Aux as a literal union
|
|
123
|
+
*/
|
|
124
|
+
type ViewId<A> = A extends infer T extends Any ? Coalesce<T['ViewId']> : never;
|
|
125
|
+
type RelationId = RelationId$1;
|
|
126
|
+
type NodeId = NodeId$1;
|
|
127
|
+
type EdgeId = EdgeId$1;
|
|
128
|
+
/**
|
|
129
|
+
* ElementKind from Aux as a literal union
|
|
130
|
+
*/
|
|
131
|
+
type ElementKind<A> = A extends infer T extends Any ? Coalesce<T['ElementKind']> : never;
|
|
132
|
+
/**
|
|
133
|
+
* DeploymentKind from Aux as a literal union
|
|
134
|
+
*/
|
|
135
|
+
type DeploymentKind<A> = A extends infer T extends Any ? Coalesce<T['DeploymentKind']> : never;
|
|
136
|
+
/**
|
|
137
|
+
* RelationKind from Aux as a literal union
|
|
138
|
+
*/
|
|
139
|
+
type RelationKind<A> = A extends infer T extends Any ? Coalesce<T['RelationKind']> : never;
|
|
140
|
+
/**
|
|
141
|
+
* Tags from Aux as a literal union
|
|
142
|
+
*/
|
|
143
|
+
type Tag<A> = A extends infer T extends Any ? Coalesce<T['Tag']> : never;
|
|
144
|
+
/**
|
|
145
|
+
* Array of tags from Aux
|
|
146
|
+
*/
|
|
147
|
+
type Tags<A extends Any> = readonly Tag<A>[];
|
|
148
|
+
/**
|
|
149
|
+
* Metadata key from Aux
|
|
150
|
+
*/
|
|
151
|
+
type MetadataKey<A> = A extends infer T extends Any ? Coalesce<T['MetadataKey']> : never;
|
|
152
|
+
/**
|
|
153
|
+
* Metadata object from Aux
|
|
154
|
+
*/
|
|
155
|
+
type Metadata<A extends Any> = IsNever<A['MetadataKey']> extends true ? never : IsLiteral<A['MetadataKey']> extends true ? {
|
|
156
|
+
[key in Coalesce<A['MetadataKey']>]?: string;
|
|
157
|
+
} : Record<string, string>;
|
|
158
|
+
/**
|
|
159
|
+
* All known kinds from Aux as a literal union.
|
|
160
|
+
*/
|
|
161
|
+
type AllKinds<A> = ElementKind<A> | DeploymentKind<A> | RelationKind<A>;
|
|
162
|
+
/**
|
|
163
|
+
* Specification from Aux
|
|
164
|
+
*/
|
|
165
|
+
type Spec<A> = A extends Aux<any, any, any, any, any, infer S> ? S : never;
|
|
166
|
+
type StrictProjectId<A> = A extends infer T extends Any ? ProjectId$1<ProjectId<T>> : never;
|
|
167
|
+
|
|
168
|
+
type StrictViewId<A> = A extends infer T extends Any ? ViewId$1<ViewId<T>> : never;
|
|
169
|
+
type StrictTag<A> = A extends infer T extends Any ? Tag$1<Tag<T>> : never;
|
|
170
|
+
type StrictElementKind<A> = A extends infer T extends Any ? ElementKind$1<ElementKind<T>> : never;
|
|
171
|
+
type StrictDeploymentKind<A> = A extends infer T extends Any ? DeploymentKind$1<DeploymentKind<T>> : never;
|
|
172
|
+
type StrictRelationKind<A> = A extends infer T extends Any ? RelationshipKind<RelationKind<T>> : never;
|
|
173
|
+
type WithTags<A extends Any> = {
|
|
174
|
+
readonly tags: Tags<A>;
|
|
175
|
+
};
|
|
176
|
+
type WithOptionalTags<A extends Any> = {
|
|
177
|
+
readonly tags?: Tags<A> | null;
|
|
178
|
+
};
|
|
179
|
+
type WithLinks = {
|
|
180
|
+
readonly links: readonly Link[];
|
|
181
|
+
};
|
|
182
|
+
type WithOptionalLinks = {
|
|
183
|
+
readonly links?: readonly Link[] | null;
|
|
184
|
+
};
|
|
185
|
+
type WithMetadata<A extends Any> = {
|
|
186
|
+
readonly metadata?: Metadata<A>;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* @see {@link LiteralUnion} from type-fest (https://github.com/sindresorhus/type-fest/blob/main/source/literal-union.d.ts)
|
|
190
|
+
*/
|
|
191
|
+
type OrString = string & Record<never, never>;
|
|
192
|
+
type LooseElementId<A extends Any> = Coalesce<A['ElementId']> | OrString;
|
|
193
|
+
type LooseDeploymentId<A extends Any> = Coalesce<A['DeploymentId']> | OrString;
|
|
194
|
+
type LooseViewId<A extends Any> = Coalesce<A['ViewId']> | OrString;
|
|
195
|
+
type LooseTag<A extends Any> = Coalesce<A['Tag']> | OrString;
|
|
196
|
+
type LooseTags<A extends Any> = readonly (Coalesce<A['Tag']> | OrString)[];
|
|
197
|
+
type LooseElementKind<A extends Any> = Coalesce<A['ElementKind']> | OrString;
|
|
198
|
+
type LooseDeploymentKind<A extends Any> = Coalesce<A['DeploymentKind']> | OrString;
|
|
199
|
+
type LooseRelationKind<A extends Any> = Coalesce<A['RelationKind']> | OrString;
|
|
200
|
+
|
|
201
|
+
type aux_AllKinds<A> = AllKinds<A>;
|
|
202
|
+
type aux_Any = Any;
|
|
203
|
+
type aux_AnySpec = AnySpec;
|
|
204
|
+
type aux_Aux<Stage extends ModelStage, Element extends string, Deployment extends string, View extends string, Project extends string, Spec extends SpecAux<string, string, string, string, string>> = Aux<Stage, Element, Deployment, View, Project, Spec>;
|
|
205
|
+
type aux_DeploymentFqn<A> = DeploymentFqn<A>;
|
|
206
|
+
type aux_DeploymentId<A> = DeploymentId<A>;
|
|
207
|
+
type aux_DeploymentKind<A> = DeploymentKind<A>;
|
|
208
|
+
type aux_EdgeId = EdgeId;
|
|
209
|
+
type aux_ElementId<A> = ElementId<A>;
|
|
210
|
+
type aux_ElementKind<A> = ElementKind<A>;
|
|
211
|
+
type aux_Fqn<A> = Fqn<A>;
|
|
212
|
+
type aux_LooseDeploymentId<A extends Any> = LooseDeploymentId<A>;
|
|
213
|
+
type aux_LooseDeploymentKind<A extends Any> = LooseDeploymentKind<A>;
|
|
214
|
+
type aux_LooseElementId<A extends Any> = LooseElementId<A>;
|
|
215
|
+
type aux_LooseElementKind<A extends Any> = LooseElementKind<A>;
|
|
216
|
+
type aux_LooseRelationKind<A extends Any> = LooseRelationKind<A>;
|
|
217
|
+
type aux_LooseTag<A extends Any> = LooseTag<A>;
|
|
218
|
+
type aux_LooseTags<A extends Any> = LooseTags<A>;
|
|
219
|
+
type aux_LooseViewId<A extends Any> = LooseViewId<A>;
|
|
220
|
+
type aux_Metadata<A extends Any> = Metadata<A>;
|
|
221
|
+
type aux_MetadataKey<A> = MetadataKey<A>;
|
|
222
|
+
type aux_Never = Never;
|
|
223
|
+
type aux_NodeId = NodeId;
|
|
224
|
+
type aux_OrString = OrString;
|
|
225
|
+
type aux_PickByStage<A extends Any, OnParsed, OnComputed, OnLayouted = OnComputed> = PickByStage<A, OnParsed, OnComputed, OnLayouted>;
|
|
226
|
+
type aux_ProjectId<A> = ProjectId<A>;
|
|
227
|
+
type aux_RelationId = RelationId;
|
|
228
|
+
type aux_RelationKind<A> = RelationKind<A>;
|
|
229
|
+
type aux_Spec<A> = Spec<A>;
|
|
230
|
+
type aux_SpecAux<ElementKind extends string, DeploymentKind extends string, RelationKind extends string, Tag extends string, MetadataKey extends string> = SpecAux<ElementKind, DeploymentKind, RelationKind, Tag, MetadataKey>;
|
|
231
|
+
type aux_Stage<A> = Stage<A>;
|
|
232
|
+
type aux_StrictDeploymentKind<A> = StrictDeploymentKind<A>;
|
|
233
|
+
type aux_StrictElementKind<A> = StrictElementKind<A>;
|
|
234
|
+
type aux_StrictProjectId<A> = StrictProjectId<A>;
|
|
235
|
+
type aux_StrictRelationKind<A> = StrictRelationKind<A>;
|
|
236
|
+
type aux_StrictTag<A> = StrictTag<A>;
|
|
237
|
+
type aux_StrictViewId<A> = StrictViewId<A>;
|
|
238
|
+
type aux_Tag<A> = Tag<A>;
|
|
239
|
+
type aux_Tags<A extends Any> = Tags<A>;
|
|
240
|
+
type aux_Unknown = Unknown;
|
|
241
|
+
type aux_UnknownComputed = UnknownComputed;
|
|
242
|
+
type aux_UnknownLayouted = UnknownLayouted;
|
|
243
|
+
type aux_UnknownParsed = UnknownParsed;
|
|
244
|
+
type aux_ViewId<A> = ViewId<A>;
|
|
245
|
+
type aux_WithLinks = WithLinks;
|
|
246
|
+
type aux_WithMetadata<A extends Any> = WithMetadata<A>;
|
|
247
|
+
type aux_WithOptionalLinks = WithOptionalLinks;
|
|
248
|
+
type aux_WithOptionalTags<A extends Any> = WithOptionalTags<A>;
|
|
249
|
+
type aux_WithTags<A extends Any> = WithTags<A>;
|
|
250
|
+
type aux_setStage<A, S extends ModelStage> = setStage<A, S>;
|
|
251
|
+
type aux_toComputed<A> = toComputed<A>;
|
|
252
|
+
type aux_toLayouted<A> = toLayouted<A>;
|
|
253
|
+
type aux_toParsed<A> = toParsed<A>;
|
|
254
|
+
declare namespace aux {
|
|
255
|
+
export type { aux_AllKinds as AllKinds, aux_Any as Any, Any as AnyAux, aux_AnySpec as AnySpec, aux_Aux as Aux, aux_DeploymentFqn as DeploymentFqn, aux_DeploymentId as DeploymentId, aux_DeploymentKind as DeploymentKind, aux_EdgeId as EdgeId, aux_ElementId as ElementId, aux_ElementKind as ElementKind, aux_Fqn as Fqn, aux_LooseDeploymentId as LooseDeploymentId, aux_LooseDeploymentKind as LooseDeploymentKind, aux_LooseElementId as LooseElementId, aux_LooseElementKind as LooseElementKind, aux_LooseRelationKind as LooseRelationKind, aux_LooseTag as LooseTag, aux_LooseTags as LooseTags, aux_LooseViewId as LooseViewId, aux_Metadata as Metadata, aux_MetadataKey as MetadataKey, aux_Never as Never, aux_NodeId as NodeId, aux_OrString as OrString, aux_PickByStage as PickByStage, aux_ProjectId as ProjectId, aux_RelationId as RelationId, aux_RelationKind as RelationKind, aux_Spec as Spec, aux_SpecAux as SpecAux, aux_Stage as Stage, DeploymentFqn as StrictDeploymentFqn, aux_StrictDeploymentKind as StrictDeploymentKind, aux_StrictElementKind as StrictElementKind, Fqn as StrictFqn, aux_StrictProjectId as StrictProjectId, aux_StrictRelationKind as StrictRelationKind, aux_StrictTag as StrictTag, aux_StrictViewId as StrictViewId, aux_Tag as Tag, aux_Tags as Tags, aux_Unknown as Unknown, aux_UnknownComputed as UnknownComputed, aux_UnknownLayouted as UnknownLayouted, aux_UnknownParsed as UnknownParsed, aux_ViewId as ViewId, aux_WithLinks as WithLinks, aux_WithMetadata as WithMetadata, aux_WithOptionalLinks as WithOptionalLinks, aux_WithOptionalTags as WithOptionalTags, aux_WithTags as WithTags, aux_setStage as setStage, aux_toComputed as toComputed, aux_toLayouted as toLayouted, aux_toParsed as toParsed };
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
export { type WithLinks as $, type Any as A, type WithMetadata as B, type AnySpec as C, type DeploymentKind as D, type ExtractOnStage as E, type Fqn as F, type PickByStage as G, type setStage as H, type NodeId as I, type Spec as J, type StrictProjectId as K, type LooseTag as L, type ModelStage as M, type Never as N, type StrictTag as O, type ProjectId as P, type StrictElementKind as Q, type RelationKind as R, type SpecAux as S, type Tags as T, type Unknown as U, type ViewId as V, type WithOptionalTags as W, type StrictDeploymentKind as X, type StrictRelationKind as Y, type WithTags as Z, _stage as _, aux as a, type OrString as a0, type LooseTags as a1, type LooseElementKind as a2, type LooseDeploymentKind as a3, type LooseRelationKind as a4, type Aux as b, type UnknownComputed as c, type UnknownLayouted as d, type UnknownParsed as e, _type as f, type ElementId as g, type EdgeId as h, isOnStage as i, type Metadata as j, type MetadataKey as k, type ElementKind as l, type RelationId as m, type StrictViewId as n, type LooseElementId as o, type LooseDeploymentId as p, type DeploymentFqn as q, type toLayouted as r, type Stage as s, type toComputed as t, type DeploymentId as u, type Tag as v, type toParsed as w, type LooseViewId as x, type AllKinds as y, type WithOptionalLinks as z };
|