@likec4/core 1.38.1 → 1.39.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/builder/index.d.mts +6 -3
- package/dist/builder/index.mjs +55 -111
- package/dist/compute-view/index.d.mts +6 -3
- package/dist/compute-view/index.mjs +33 -34
- package/dist/compute-view/relationships-view/index.d.mts +6 -3
- package/dist/compute-view/relationships-view/index.mjs +6 -6
- package/dist/index.d.mts +8 -5
- package/dist/index.mjs +15 -24
- package/dist/model/connection/deployment/index.d.mts +8 -5
- package/dist/model/connection/deployment/index.mjs +7 -9
- package/dist/model/connection/index.d.mts +10 -7
- package/dist/model/connection/index.mjs +10 -14
- package/dist/model/connection/model/index.d.mts +8 -5
- package/dist/model/connection/model/index.mjs +7 -10
- package/dist/model/index.d.mts +13 -10
- package/dist/model/index.mjs +17 -20
- package/dist/shared/core.20m8Um0g.d.mts +253 -0
- package/dist/shared/{core.CpwrZi3D.mjs → core.4u1dVmfX.mjs} +3 -5
- package/dist/shared/{core.Bp-IQmJR.mjs → core.BB6zA-UU.mjs} +9 -214
- package/dist/shared/{core.BH0VqY-7.mjs → core.BVNaR17u.mjs} +1 -1
- package/dist/shared/{core.BL_xjl90.mjs → core.Be1n9a0i.mjs} +4 -5
- package/dist/shared/{core.BoyJPEen.mjs → core.Be4Jy9Qx.mjs} +2 -2
- package/dist/shared/{core.H8NbNp2X.mjs → core.BqVo8LrH.mjs} +1 -1
- package/dist/shared/{core.DDoAFHHp.mjs → core.BuoXfSMj.mjs} +1 -1
- package/dist/shared/{core.DhDo8LAz.d.mts → core.C7pZp1nR.d.mts} +3 -3
- package/dist/shared/{core.BH9nN-_I.mjs → core.CCD1ID81.mjs} +3 -4
- package/dist/shared/{core.8KM0D6va.mjs → core.CNGyqkJh.mjs} +1 -9
- package/dist/shared/{core.B0oEIXqd.mjs → core.CUw_2J9j.mjs} +1 -1
- package/dist/shared/{core.C4Cn4Jy_.mjs → core.CWv15GLo.mjs} +11 -15
- package/dist/shared/{core.Bf5zKDK1.d.mts → core.CXCmvCws.d.mts} +2 -2
- package/dist/shared/core.CaT0SUUK.mjs +201 -0
- package/dist/shared/{core.Dtw1SBlz.d.mts → core.ClpXZ4Ib.d.mts} +3 -3
- package/dist/shared/{core.DC6zzxS0.mjs → core.CsbOakly.mjs} +13 -22
- package/dist/shared/{core.Btl47GOn.mjs → core.DLpidoWc.mjs} +2 -2
- package/dist/shared/{core.wwaSalox.d.mts → core.DM3vdkO_.d.mts} +1 -1
- package/dist/shared/core.DXhDWKFZ.d.mts +3 -0
- package/dist/shared/{core.O6FG0HF9.d.mts → core.DdzRtJ9d.d.mts} +1 -1
- package/dist/shared/{core.OUoo2ohq.mjs → core.DgttqsJc.mjs} +5 -9
- package/dist/shared/{core.Dhc0yIwT.mjs → core.DlG1xWt2.mjs} +3 -43
- package/dist/shared/core.DnRszv-l.mjs +11982 -0
- package/dist/shared/core.DoM6aM9N.mjs +7 -0
- package/dist/shared/{core.CzHQRs5x.mjs → core.DozSPE83.mjs} +43 -60
- package/dist/shared/{core.DsMrjY2q.mjs → core.GTgsmXS_.mjs} +2 -2
- package/dist/shared/core.ILwny7BV.mjs +38 -0
- package/dist/shared/core.PHwHXzkG.d.mts +213 -0
- package/dist/shared/core.T-eLZTW_.mjs +59 -0
- package/dist/shared/{core.CE_hG7EJ.d.mts → core.aWJgARyY.d.mts} +10 -486
- package/dist/shared/{core.BvlHvikl.d.mts → core.v1iEaXaR.d.mts} +5 -3
- package/dist/shared/core.yHe79zEl.mjs +98 -0
- package/dist/theme/index.d.mts +3 -126
- package/dist/theme/index.mjs +2 -3
- package/dist/types/_aux.d.mts +1 -1
- package/dist/types/expression-model.d.mts +191 -0
- package/dist/types/expression-model.mjs +112 -0
- package/dist/types/expression.d.mts +7 -0
- package/dist/types/expression.mjs +116 -0
- package/dist/types/fqnRef.d.mts +61 -0
- package/dist/types/fqnRef.mjs +46 -0
- package/dist/types/index.d.mts +6 -3
- package/dist/types/index.mjs +9 -9
- package/dist/types/scalar.mjs +2 -3
- package/dist/utils/index.d.mts +6 -428
- package/dist/utils/index.mjs +56 -15
- package/dist/utils/iterable/index.d.mts +2 -3
- package/dist/utils/iterable/index.mjs +9 -44
- package/package.json +8 -7
- package/src/index.ts +24 -1
- package/src/model/RelationModel.ts +1 -1
- package/src/model/index.ts +1 -1
- package/src/theme/element.ts +2 -2
- package/src/theme/relationships.ts +2 -2
- package/src/types/RichText.ts +1 -1
- package/src/types/expression-model.ts +3 -1
- package/src/types/expression.ts +3 -1
- package/src/types/fqnRef.ts +4 -1
- package/src/utils/guards.ts +0 -1
- package/src/utils/index.ts +0 -1
- package/dist/shared/core.BW8K1y6R.mjs +0 -278
- package/dist/shared/core.BgvIuGGU.mjs +0 -3
- package/dist/shared/core.BpJu1RrF.mjs +0 -5
- package/dist/shared/core.ByrmCl9I.mjs +0 -5
- package/dist/shared/core.CnIyafWn.mjs +0 -3
- package/dist/shared/core.DK6I-Nr7.mjs +0 -149
- package/dist/shared/core.DbRvwARP.mjs +0 -5
- package/dist/shared/core.Dw47t7nG.mjs +0 -5236
- package/dist/shared/core.zLlww-07.mjs +0 -3
- package/src/builder/__snapshots__/Builder-style1.spec.ts.snap +0 -425
- package/src/builder/__snapshots__/Builder-style2.compute-model.json5 +0 -318
- package/src/builder/__snapshots__/Builder-style2.spec.ts.snap +0 -221
- package/src/compute-view/deployment-view/__test__/TestHelper.ts +0 -249
- package/src/compute-view/deployment-view/__test__/fixture.ts +0 -238
- package/src/compute-view/dynamic-view/__test__/fixture.ts +0 -67
- package/src/compute-view/element-view/__test__/TestHelper.ts +0 -282
- package/src/compute-view/element-view/__test__/__snapshots__/legacy.spec.ts.snap +0 -458
- package/src/compute-view/element-view/__test__/fixture.ts +0 -749
- package/src/compute-view/utils/__snapshots__/sortNodes.spec.ts.snap +0 -113
- package/src/model/__test__/fixture.ts +0 -168
- package/src/theme/__test__/theme-index.ts +0 -29
package/dist/theme/index.d.mts
CHANGED
|
@@ -1,132 +1,9 @@
|
|
|
1
|
-
import { C as ColorLiteral, n as ThemeColorValues, L as LikeC4Theme } from '../shared/core.CzdwsPmY.mjs';
|
|
1
|
+
import { l as ElementThemeColors, o as RelationshipThemeColors, C as ColorLiteral, n as ThemeColorValues, L as LikeC4Theme } from '../shared/core.CzdwsPmY.mjs';
|
|
2
2
|
import 'type-fest';
|
|
3
3
|
|
|
4
|
-
declare const ElementColors:
|
|
5
|
-
readonly primary: {
|
|
6
|
-
fill: "#3b82f6";
|
|
7
|
-
stroke: "#2563eb";
|
|
8
|
-
hiContrast: "#eff6ff";
|
|
9
|
-
loContrast: "#bfdbfe";
|
|
10
|
-
};
|
|
11
|
-
readonly blue: {
|
|
12
|
-
fill: "#3b82f6";
|
|
13
|
-
stroke: "#2563eb";
|
|
14
|
-
hiContrast: "#eff6ff";
|
|
15
|
-
loContrast: "#bfdbfe";
|
|
16
|
-
};
|
|
17
|
-
readonly secondary: {
|
|
18
|
-
fill: "#0284c7";
|
|
19
|
-
stroke: "#0369a1";
|
|
20
|
-
hiContrast: "#f0f9ff";
|
|
21
|
-
loContrast: "#B6ECF7";
|
|
22
|
-
};
|
|
23
|
-
readonly sky: {
|
|
24
|
-
fill: "#0284c7";
|
|
25
|
-
stroke: "#0369a1";
|
|
26
|
-
hiContrast: "#f0f9ff";
|
|
27
|
-
loContrast: "#B6ECF7";
|
|
28
|
-
};
|
|
29
|
-
readonly muted: {
|
|
30
|
-
fill: "#64748b";
|
|
31
|
-
stroke: "#475569";
|
|
32
|
-
hiContrast: "#f8fafc";
|
|
33
|
-
loContrast: "#cbd5e1";
|
|
34
|
-
};
|
|
35
|
-
readonly slate: {
|
|
36
|
-
fill: "#64748b";
|
|
37
|
-
stroke: "#475569";
|
|
38
|
-
hiContrast: "#f8fafc";
|
|
39
|
-
loContrast: "#cbd5e1";
|
|
40
|
-
};
|
|
41
|
-
readonly gray: {
|
|
42
|
-
readonly fill: "#737373";
|
|
43
|
-
readonly stroke: "#525252";
|
|
44
|
-
readonly hiContrast: "#fafafa";
|
|
45
|
-
readonly loContrast: "#d4d4d4";
|
|
46
|
-
};
|
|
47
|
-
readonly red: {
|
|
48
|
-
readonly fill: "#AC4D39";
|
|
49
|
-
readonly stroke: "#853A2D";
|
|
50
|
-
readonly hiContrast: "#FBD3CB";
|
|
51
|
-
readonly loContrast: "#f5b2a3";
|
|
52
|
-
};
|
|
53
|
-
readonly green: {
|
|
54
|
-
readonly fill: "#428a4f";
|
|
55
|
-
readonly stroke: "#2d5d39";
|
|
56
|
-
readonly hiContrast: "#f8fafc";
|
|
57
|
-
readonly loContrast: "#c2f0c2";
|
|
58
|
-
};
|
|
59
|
-
readonly amber: {
|
|
60
|
-
readonly fill: "#A35829";
|
|
61
|
-
readonly stroke: "#7E451D";
|
|
62
|
-
readonly hiContrast: "#FFE0C2";
|
|
63
|
-
readonly loContrast: "#f9b27c";
|
|
64
|
-
};
|
|
65
|
-
readonly indigo: {
|
|
66
|
-
readonly fill: "#6366f1";
|
|
67
|
-
readonly stroke: "#4f46e5";
|
|
68
|
-
readonly hiContrast: "#eef2ff";
|
|
69
|
-
readonly loContrast: "#c7d2fe";
|
|
70
|
-
};
|
|
71
|
-
};
|
|
4
|
+
declare const ElementColors: ElementThemeColors;
|
|
72
5
|
|
|
73
|
-
declare const RelationshipColors:
|
|
74
|
-
amber: {
|
|
75
|
-
lineColor: "#b45309";
|
|
76
|
-
labelBgColor: "#78350f";
|
|
77
|
-
labelColor: "#FFE0C2";
|
|
78
|
-
};
|
|
79
|
-
blue: {
|
|
80
|
-
lineColor: "#3b82f6";
|
|
81
|
-
labelBgColor: "#172554";
|
|
82
|
-
labelColor: "#60a5fa";
|
|
83
|
-
};
|
|
84
|
-
gray: {
|
|
85
|
-
lineColor: "#6E6E6E";
|
|
86
|
-
labelBgColor: "#18191b";
|
|
87
|
-
labelColor: "#C6C6C6";
|
|
88
|
-
};
|
|
89
|
-
green: {
|
|
90
|
-
lineColor: "#15803d";
|
|
91
|
-
labelBgColor: "#052e16";
|
|
92
|
-
labelColor: "#22c55e";
|
|
93
|
-
};
|
|
94
|
-
indigo: {
|
|
95
|
-
lineColor: "#6366f1";
|
|
96
|
-
labelBgColor: "#1e1b4b";
|
|
97
|
-
labelColor: "#818cf8";
|
|
98
|
-
};
|
|
99
|
-
muted: {
|
|
100
|
-
lineColor: "#64748b";
|
|
101
|
-
labelBgColor: "#0f172a";
|
|
102
|
-
labelColor: "#cbd5e1";
|
|
103
|
-
};
|
|
104
|
-
primary: {
|
|
105
|
-
lineColor: "#3b82f6";
|
|
106
|
-
labelBgColor: "#172554";
|
|
107
|
-
labelColor: "#60a5fa";
|
|
108
|
-
};
|
|
109
|
-
red: {
|
|
110
|
-
lineColor: "#AC4D39";
|
|
111
|
-
labelBgColor: "#b91c1c";
|
|
112
|
-
labelColor: "#f5b2a3";
|
|
113
|
-
};
|
|
114
|
-
secondary: {
|
|
115
|
-
lineColor: "#0ea5e9";
|
|
116
|
-
labelBgColor: "#082f49";
|
|
117
|
-
labelColor: "#38bdf8";
|
|
118
|
-
};
|
|
119
|
-
sky: {
|
|
120
|
-
lineColor: "#0ea5e9";
|
|
121
|
-
labelBgColor: "#082f49";
|
|
122
|
-
labelColor: "#38bdf8";
|
|
123
|
-
};
|
|
124
|
-
slate: {
|
|
125
|
-
lineColor: "#64748b";
|
|
126
|
-
labelBgColor: "#0f172a";
|
|
127
|
-
labelColor: "#cbd5e1";
|
|
128
|
-
};
|
|
129
|
-
};
|
|
6
|
+
declare const RelationshipColors: RelationshipThemeColors;
|
|
130
7
|
|
|
131
8
|
declare const defaultTheme: LikeC4Theme;
|
|
132
9
|
declare function computeColorValues(color: ColorLiteral): ThemeColorValues;
|
package/dist/theme/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { generateColors } from '@mantine/colors-generator';
|
|
2
2
|
import chroma from 'chroma-js';
|
|
3
|
-
import {
|
|
4
|
-
import '../shared/core.DbRvwARP.mjs';
|
|
3
|
+
import { isDeepEqual } from 'remeda';
|
|
5
4
|
|
|
6
5
|
const blue$1 = {
|
|
7
6
|
fill: "#3b82f6",
|
|
@@ -222,7 +221,7 @@ function getContrastedColorsAPCA(refColor) {
|
|
|
222
221
|
darkColorRgb = darkColorRgb.darken(CONTRAST_STEP_TONE_DIFFERENCE);
|
|
223
222
|
contrastWithLight = chroma.contrastAPCA(refColorChroma, lightColorRgb);
|
|
224
223
|
contrastWithDark = chroma.contrastAPCA(refColorChroma, darkColorRgb);
|
|
225
|
-
} while (Math.abs(contrastWithLight) < CONTRAST_MIN_WITH_FOREGROUND && Math.abs(contrastWithDark) < CONTRAST_MIN_WITH_FOREGROUND && (!
|
|
224
|
+
} while (Math.abs(contrastWithLight) < CONTRAST_MIN_WITH_FOREGROUND && Math.abs(contrastWithDark) < CONTRAST_MIN_WITH_FOREGROUND && (!isDeepEqual(lightColorRgb, previousLight) || !isDeepEqual(darkColorRgb, previousDark)));
|
|
226
225
|
if (Math.abs(contrastWithLight) > Math.abs(contrastWithDark)) {
|
|
227
226
|
return [lightColorRgb.brighten(0.4).hex(), lightColorRgb.hex()];
|
|
228
227
|
} else {
|
package/dist/types/_aux.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import 'type-fest';
|
|
2
2
|
import '../shared/core.DuSLYTG6.mjs';
|
|
3
|
-
export {
|
|
3
|
+
export { k as AllKinds, A as Any, A as AnyAux, G as AnySpec, a as Aux, s as DeploymentFqn, D as DeploymentId, o as DeploymentKind, C as EdgeId, j as ElementId, h as ElementKind, F as Fqn, r as LooseDeploymentId, a4 as LooseDeploymentKind, q as LooseElementId, a3 as LooseElementKind, a5 as LooseRelationKind, L as LooseTag, a2 as LooseTags, x as LooseViewId, m as Metadata, n as MetadataKey, N as Never, J as NodeId, a1 as OrString, H as PickByStage, P as ProjectId, p as RelationId, R as RelationKind, K as Spec, S as SpecAux, v as Stage, s as StrictDeploymentFqn, Y as StrictDeploymentKind, X as StrictElementKind, F as StrictFqn, O as StrictProjectId, Z as StrictRelationKind, Q as StrictTag, g as StrictViewId, T as Tag, l as Tags, U as Unknown, b as UnknownComputed, c as UnknownLayouted, d as UnknownParsed, V as ViewId, a0 as WithLinks, B as WithMetadata, z as WithOptionalLinks, W as WithOptionalTags, $ as WithTags, y as setProject, I as setStage, t as toComputed, u as toLayouted, w as toParsed } from '../shared/core.DdzRtJ9d.mjs';
|
|
4
4
|
import '../shared/core.DX-WYEPA.mjs';
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { A as Any, g as StrictViewId, h as ElementKind, T as Tag } from '../shared/core.DdzRtJ9d.mjs';
|
|
2
|
+
import { E as ExclusiveUnion } from '../shared/core.DuSLYTG6.mjs';
|
|
3
|
+
import { W as WhereOperator, P as PredicateSelector } from '../shared/core.20m8Um0g.mjs';
|
|
4
|
+
import { FqnRef } from './fqnRef.mjs';
|
|
5
|
+
import { M as MarkdownOrString, I as Icon } from '../shared/core.DX-WYEPA.mjs';
|
|
6
|
+
import { i as Color, R as RelationshipLineType, f as RelationshipArrowType, c as ElementShape, b as BorderStyle, a as ShapeSize } from '../shared/core.CzdwsPmY.mjs';
|
|
7
|
+
import 'type-fest';
|
|
8
|
+
|
|
9
|
+
type AnyAux = Any;
|
|
10
|
+
declare namespace ModelFqnExpr {
|
|
11
|
+
type Wildcard = {
|
|
12
|
+
wildcard: true;
|
|
13
|
+
};
|
|
14
|
+
function isWildcard<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelFqnExpr.Wildcard;
|
|
15
|
+
interface Ref<M extends AnyAux> {
|
|
16
|
+
ref: FqnRef.ModelRef<M>;
|
|
17
|
+
selector?: PredicateSelector;
|
|
18
|
+
}
|
|
19
|
+
function isModelRef<A extends AnyAux>(ref: ModelExpression<A>): ref is ModelFqnExpr.Ref<A>;
|
|
20
|
+
interface ElementKindExpr<A extends AnyAux = AnyAux> {
|
|
21
|
+
elementKind: ElementKind<A>;
|
|
22
|
+
isEqual: boolean;
|
|
23
|
+
}
|
|
24
|
+
function isElementKindExpr<A extends AnyAux>(expr: ModelExpression<A>): expr is ElementKindExpr<A>;
|
|
25
|
+
interface ElementTagExpr<A extends AnyAux> {
|
|
26
|
+
elementTag: Tag<A>;
|
|
27
|
+
isEqual: boolean;
|
|
28
|
+
}
|
|
29
|
+
function isElementTagExpr<A extends AnyAux>(expr: ModelExpression<A>): expr is ElementTagExpr<A>;
|
|
30
|
+
type NonWildcard<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
31
|
+
Ref: Ref<A>;
|
|
32
|
+
ElementKind: ElementKindExpr<A>;
|
|
33
|
+
ElementTag: ElementTagExpr<A>;
|
|
34
|
+
}>;
|
|
35
|
+
interface Where<A extends AnyAux = AnyAux> {
|
|
36
|
+
where: {
|
|
37
|
+
expr: ExclusiveUnion<{
|
|
38
|
+
Wildcard: Wildcard;
|
|
39
|
+
Ref: Ref<A>;
|
|
40
|
+
ElementKind: ElementKindExpr<A>;
|
|
41
|
+
ElementTag: ElementTagExpr<A>;
|
|
42
|
+
}>;
|
|
43
|
+
condition: WhereOperator<A>;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function isWhere<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelFqnExpr.Where<A>;
|
|
47
|
+
interface Custom<A extends AnyAux = AnyAux> {
|
|
48
|
+
custom: {
|
|
49
|
+
expr: OrWhere<A>;
|
|
50
|
+
title?: string;
|
|
51
|
+
description?: MarkdownOrString;
|
|
52
|
+
technology?: string;
|
|
53
|
+
notation?: string;
|
|
54
|
+
shape?: ElementShape;
|
|
55
|
+
color?: Color;
|
|
56
|
+
icon?: Icon;
|
|
57
|
+
border?: BorderStyle;
|
|
58
|
+
opacity?: number;
|
|
59
|
+
navigateTo?: StrictViewId<A>;
|
|
60
|
+
multiple?: boolean;
|
|
61
|
+
size?: ShapeSize;
|
|
62
|
+
padding?: ShapeSize;
|
|
63
|
+
textSize?: ShapeSize;
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function isCustom<A extends AnyAux>(expr: ModelExpression<A>): expr is Custom<A>;
|
|
67
|
+
function is<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelFqnExpr<A>;
|
|
68
|
+
type OrWhere<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
69
|
+
Wildcard: ModelFqnExpr.Wildcard;
|
|
70
|
+
Ref: ModelFqnExpr.Ref<A>;
|
|
71
|
+
ElementKind: ElementKindExpr<A>;
|
|
72
|
+
ElementTag: ElementTagExpr<A>;
|
|
73
|
+
Where: ModelFqnExpr.Where<A>;
|
|
74
|
+
}>;
|
|
75
|
+
type Any<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
76
|
+
Wildcard: Wildcard;
|
|
77
|
+
Ref: Ref<A>;
|
|
78
|
+
ElementKind: ElementKindExpr<A>;
|
|
79
|
+
ElementTag: ElementTagExpr<A>;
|
|
80
|
+
Where: Where<A>;
|
|
81
|
+
Custom: Custom<A>;
|
|
82
|
+
}>;
|
|
83
|
+
function unwrap<A extends AnyAux>(expr: ModelFqnExpr.Any<A>): Wildcard | Ref<A> | ElementKindExpr<A> | ElementTagExpr<A>;
|
|
84
|
+
}
|
|
85
|
+
type ModelFqnExpr<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
86
|
+
Wildcard: ModelFqnExpr.Wildcard;
|
|
87
|
+
Ref: ModelFqnExpr.Ref<A>;
|
|
88
|
+
ElementKind: ModelFqnExpr.ElementKindExpr<A>;
|
|
89
|
+
ElementTag: ModelFqnExpr.ElementTagExpr<A>;
|
|
90
|
+
}>;
|
|
91
|
+
declare namespace ModelRelationExpr {
|
|
92
|
+
type Endpoint<A extends AnyAux = AnyAux> = ModelFqnExpr.Where<A>['where']['expr'];
|
|
93
|
+
interface Direct<A extends AnyAux = AnyAux> {
|
|
94
|
+
source: Endpoint<A>;
|
|
95
|
+
target: Endpoint<A>;
|
|
96
|
+
isBidirectional?: boolean;
|
|
97
|
+
}
|
|
98
|
+
function isDirect<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Direct<A>;
|
|
99
|
+
interface Incoming<A extends AnyAux = AnyAux> {
|
|
100
|
+
incoming: Endpoint<A>;
|
|
101
|
+
}
|
|
102
|
+
function isIncoming<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Incoming<A>;
|
|
103
|
+
interface Outgoing<A extends AnyAux = AnyAux> {
|
|
104
|
+
outgoing: Endpoint<A>;
|
|
105
|
+
}
|
|
106
|
+
function isOutgoing<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Outgoing<A>;
|
|
107
|
+
interface InOut<A extends AnyAux = AnyAux> {
|
|
108
|
+
inout: Endpoint<A>;
|
|
109
|
+
}
|
|
110
|
+
function isInOut<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.InOut<A>;
|
|
111
|
+
interface Where<A extends AnyAux = AnyAux> {
|
|
112
|
+
where: {
|
|
113
|
+
expr: ExclusiveUnion<{
|
|
114
|
+
Direct: ModelRelationExpr.Direct<A>;
|
|
115
|
+
Incoming: ModelRelationExpr.Incoming<A>;
|
|
116
|
+
Outgoing: ModelRelationExpr.Outgoing<A>;
|
|
117
|
+
InOut: ModelRelationExpr.InOut<A>;
|
|
118
|
+
}>;
|
|
119
|
+
condition: WhereOperator<A>;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
function isWhere<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Where<A>;
|
|
123
|
+
interface Custom<A extends AnyAux = AnyAux> {
|
|
124
|
+
customRelation: {
|
|
125
|
+
expr: OrWhere<A>;
|
|
126
|
+
title?: string;
|
|
127
|
+
description?: string;
|
|
128
|
+
technology?: string;
|
|
129
|
+
notation?: string;
|
|
130
|
+
navigateTo?: StrictViewId<A>;
|
|
131
|
+
notes?: string;
|
|
132
|
+
color?: Color;
|
|
133
|
+
line?: RelationshipLineType;
|
|
134
|
+
head?: RelationshipArrowType;
|
|
135
|
+
tail?: RelationshipArrowType;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function isCustom<A extends AnyAux>(expr: ModelExpression<A>): expr is Custom<A>;
|
|
139
|
+
function is<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr<A>;
|
|
140
|
+
type OrWhere<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
141
|
+
Direct: Direct<A>;
|
|
142
|
+
Incoming: Incoming<A>;
|
|
143
|
+
Outgoing: Outgoing<A>;
|
|
144
|
+
InOut: InOut<A>;
|
|
145
|
+
Where: Where<A>;
|
|
146
|
+
}>;
|
|
147
|
+
type Any<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
148
|
+
Direct: Direct<A>;
|
|
149
|
+
Incoming: Incoming<A>;
|
|
150
|
+
Outgoing: Outgoing<A>;
|
|
151
|
+
InOut: InOut<A>;
|
|
152
|
+
Where: Where<A>;
|
|
153
|
+
Custom: Custom<A>;
|
|
154
|
+
}>;
|
|
155
|
+
function unwrap<A extends AnyAux>(expr: ModelRelationExpr.Any<A>): Direct<A> | Incoming<A> | Outgoing<A> | InOut<A>;
|
|
156
|
+
}
|
|
157
|
+
type ModelRelationExpr<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
158
|
+
Direct: ModelRelationExpr.Direct<A>;
|
|
159
|
+
Incoming: ModelRelationExpr.Incoming<A>;
|
|
160
|
+
Outgoing: ModelRelationExpr.Outgoing<A>;
|
|
161
|
+
InOut: ModelRelationExpr.InOut<A>;
|
|
162
|
+
}>;
|
|
163
|
+
/**
|
|
164
|
+
* Represents a version 2 expression which can be one of several types.
|
|
165
|
+
*
|
|
166
|
+
* @template D - The type for the deployment FQN, defaults to `Fqn`.
|
|
167
|
+
* @template M - The type for the model FQN, defaults to `Fqn`.
|
|
168
|
+
*/
|
|
169
|
+
type ModelExpression<A extends AnyAux = AnyAux> = ExclusiveUnion<{
|
|
170
|
+
Wildcard: ModelFqnExpr.Wildcard;
|
|
171
|
+
Ref: ModelFqnExpr.Ref<A>;
|
|
172
|
+
ElementKind: ModelFqnExpr.ElementKindExpr<A>;
|
|
173
|
+
ElementTag: ModelFqnExpr.ElementTagExpr<A>;
|
|
174
|
+
Custom: ModelFqnExpr.Custom<A>;
|
|
175
|
+
Direct: ModelRelationExpr.Direct<A>;
|
|
176
|
+
Incoming: ModelRelationExpr.Incoming<A>;
|
|
177
|
+
Outgoing: ModelRelationExpr.Outgoing<A>;
|
|
178
|
+
InOut: ModelRelationExpr.InOut<A>;
|
|
179
|
+
Where: ModelExpression.Where<A>;
|
|
180
|
+
CustomRelation: ModelRelationExpr.Custom<A>;
|
|
181
|
+
}>;
|
|
182
|
+
declare namespace ModelExpression {
|
|
183
|
+
type Where<A extends AnyAux = AnyAux> = ModelFqnExpr.Where<A> | ModelRelationExpr.Where<A>;
|
|
184
|
+
function isWhere<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelExpression.Where<A>;
|
|
185
|
+
function isRelationWhere<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Where<A>;
|
|
186
|
+
function isFqnExprWhere<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelFqnExpr.Where<A>;
|
|
187
|
+
function isFqnExpr<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelFqnExpr.Any<A>;
|
|
188
|
+
function isRelationExpr<A extends AnyAux>(expr: ModelExpression<A>): expr is ModelRelationExpr.Any<A>;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export { ModelExpression, ModelFqnExpr, ModelRelationExpr };
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { FqnRef } from './fqnRef.mjs';
|
|
2
|
+
import 'remeda';
|
|
3
|
+
import '../shared/core.Be1n9a0i.mjs';
|
|
4
|
+
import '../shared/core.D4npX2q8.mjs';
|
|
5
|
+
|
|
6
|
+
var ModelFqnExpr;
|
|
7
|
+
((ModelFqnExpr2) => {
|
|
8
|
+
function isWildcard(expr) {
|
|
9
|
+
return "wildcard" in expr && expr.wildcard === true;
|
|
10
|
+
}
|
|
11
|
+
ModelFqnExpr2.isWildcard = isWildcard;
|
|
12
|
+
function isModelRef(ref) {
|
|
13
|
+
return "ref" in ref && FqnRef.isModelRef(ref.ref);
|
|
14
|
+
}
|
|
15
|
+
ModelFqnExpr2.isModelRef = isModelRef;
|
|
16
|
+
function isElementKindExpr(expr) {
|
|
17
|
+
return "elementKind" in expr && "isEqual" in expr;
|
|
18
|
+
}
|
|
19
|
+
ModelFqnExpr2.isElementKindExpr = isElementKindExpr;
|
|
20
|
+
function isElementTagExpr(expr) {
|
|
21
|
+
return "elementTag" in expr && "isEqual" in expr;
|
|
22
|
+
}
|
|
23
|
+
ModelFqnExpr2.isElementTagExpr = isElementTagExpr;
|
|
24
|
+
function isWhere(expr) {
|
|
25
|
+
return "where" in expr && is(expr.where.expr);
|
|
26
|
+
}
|
|
27
|
+
ModelFqnExpr2.isWhere = isWhere;
|
|
28
|
+
function isCustom(expr) {
|
|
29
|
+
return "custom" in expr && (is(expr.custom.expr) || isWhere(expr.custom.expr));
|
|
30
|
+
}
|
|
31
|
+
ModelFqnExpr2.isCustom = isCustom;
|
|
32
|
+
function is(expr) {
|
|
33
|
+
return isWildcard(expr) || isModelRef(expr) || isElementKindExpr(expr) || isElementTagExpr(expr);
|
|
34
|
+
}
|
|
35
|
+
ModelFqnExpr2.is = is;
|
|
36
|
+
function unwrap(expr) {
|
|
37
|
+
if (isCustom(expr)) {
|
|
38
|
+
expr = expr.custom.expr;
|
|
39
|
+
}
|
|
40
|
+
if (isWhere(expr)) {
|
|
41
|
+
expr = expr.where.expr;
|
|
42
|
+
}
|
|
43
|
+
return expr;
|
|
44
|
+
}
|
|
45
|
+
ModelFqnExpr2.unwrap = unwrap;
|
|
46
|
+
})(ModelFqnExpr || (ModelFqnExpr = {}));
|
|
47
|
+
var ModelRelationExpr;
|
|
48
|
+
((ModelRelationExpr2) => {
|
|
49
|
+
function isDirect(expr) {
|
|
50
|
+
return "source" in expr && "target" in expr;
|
|
51
|
+
}
|
|
52
|
+
ModelRelationExpr2.isDirect = isDirect;
|
|
53
|
+
function isIncoming(expr) {
|
|
54
|
+
return "incoming" in expr;
|
|
55
|
+
}
|
|
56
|
+
ModelRelationExpr2.isIncoming = isIncoming;
|
|
57
|
+
function isOutgoing(expr) {
|
|
58
|
+
return "outgoing" in expr;
|
|
59
|
+
}
|
|
60
|
+
ModelRelationExpr2.isOutgoing = isOutgoing;
|
|
61
|
+
function isInOut(expr) {
|
|
62
|
+
return "inout" in expr;
|
|
63
|
+
}
|
|
64
|
+
ModelRelationExpr2.isInOut = isInOut;
|
|
65
|
+
function isWhere(expr) {
|
|
66
|
+
return "where" in expr && (isDirect(expr.where.expr) || isIncoming(expr.where.expr) || isOutgoing(expr.where.expr) || isInOut(expr.where.expr));
|
|
67
|
+
}
|
|
68
|
+
ModelRelationExpr2.isWhere = isWhere;
|
|
69
|
+
function isCustom(expr) {
|
|
70
|
+
return "customRelation" in expr;
|
|
71
|
+
}
|
|
72
|
+
ModelRelationExpr2.isCustom = isCustom;
|
|
73
|
+
function is(expr) {
|
|
74
|
+
return isDirect(expr) || isIncoming(expr) || isOutgoing(expr) || isInOut(expr);
|
|
75
|
+
}
|
|
76
|
+
ModelRelationExpr2.is = is;
|
|
77
|
+
function unwrap(expr) {
|
|
78
|
+
if (isCustom(expr)) {
|
|
79
|
+
expr = expr.customRelation.expr;
|
|
80
|
+
}
|
|
81
|
+
if (isWhere(expr)) {
|
|
82
|
+
expr = expr.where.expr;
|
|
83
|
+
}
|
|
84
|
+
return expr;
|
|
85
|
+
}
|
|
86
|
+
ModelRelationExpr2.unwrap = unwrap;
|
|
87
|
+
})(ModelRelationExpr || (ModelRelationExpr = {}));
|
|
88
|
+
var ModelExpression;
|
|
89
|
+
((ModelExpression2) => {
|
|
90
|
+
function isWhere(expr) {
|
|
91
|
+
return "where" in expr;
|
|
92
|
+
}
|
|
93
|
+
ModelExpression2.isWhere = isWhere;
|
|
94
|
+
function isRelationWhere(expr) {
|
|
95
|
+
return ModelRelationExpr.isWhere(expr);
|
|
96
|
+
}
|
|
97
|
+
ModelExpression2.isRelationWhere = isRelationWhere;
|
|
98
|
+
function isFqnExprWhere(expr) {
|
|
99
|
+
return ModelFqnExpr.isWhere(expr);
|
|
100
|
+
}
|
|
101
|
+
ModelExpression2.isFqnExprWhere = isFqnExprWhere;
|
|
102
|
+
function isFqnExpr(expr) {
|
|
103
|
+
return ModelFqnExpr.is(expr) || ModelFqnExpr.isWhere(expr) || ModelFqnExpr.isCustom(expr);
|
|
104
|
+
}
|
|
105
|
+
ModelExpression2.isFqnExpr = isFqnExpr;
|
|
106
|
+
function isRelationExpr(expr) {
|
|
107
|
+
return ModelRelationExpr.is(expr) || ModelRelationExpr.isWhere(expr) || ModelRelationExpr.isCustom(expr);
|
|
108
|
+
}
|
|
109
|
+
ModelExpression2.isRelationExpr = isRelationExpr;
|
|
110
|
+
})(ModelExpression || (ModelExpression = {}));
|
|
111
|
+
|
|
112
|
+
export { ModelExpression, ModelFqnExpr, ModelRelationExpr };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '../shared/core.DdzRtJ9d.mjs';
|
|
2
|
+
import '../shared/core.DuSLYTG6.mjs';
|
|
3
|
+
import './fqnRef.mjs';
|
|
4
|
+
export { E as Expression, F as FqnExpr, P as PredicateSelector, R as RelationExpr } from '../shared/core.20m8Um0g.mjs';
|
|
5
|
+
import '../shared/core.DX-WYEPA.mjs';
|
|
6
|
+
import '../shared/core.CzdwsPmY.mjs';
|
|
7
|
+
import 'type-fest';
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { FqnRef } from './fqnRef.mjs';
|
|
2
|
+
import 'remeda';
|
|
3
|
+
import '../shared/core.Be1n9a0i.mjs';
|
|
4
|
+
import '../shared/core.D4npX2q8.mjs';
|
|
5
|
+
|
|
6
|
+
var FqnExpr;
|
|
7
|
+
((FqnExpr2) => {
|
|
8
|
+
function isWildcard(expr) {
|
|
9
|
+
return "wildcard" in expr && expr.wildcard === true;
|
|
10
|
+
}
|
|
11
|
+
FqnExpr2.isWildcard = isWildcard;
|
|
12
|
+
function isModelRef(ref) {
|
|
13
|
+
return "ref" in ref && FqnRef.isModelRef(ref.ref);
|
|
14
|
+
}
|
|
15
|
+
FqnExpr2.isModelRef = isModelRef;
|
|
16
|
+
function isDeploymentRef(expr) {
|
|
17
|
+
return "ref" in expr && FqnRef.isDeploymentRef(expr.ref);
|
|
18
|
+
}
|
|
19
|
+
FqnExpr2.isDeploymentRef = isDeploymentRef;
|
|
20
|
+
function isElementKindExpr(expr) {
|
|
21
|
+
return "elementKind" in expr && "isEqual" in expr;
|
|
22
|
+
}
|
|
23
|
+
FqnExpr2.isElementKindExpr = isElementKindExpr;
|
|
24
|
+
function isElementTagExpr(expr) {
|
|
25
|
+
return "elementTag" in expr && "isEqual" in expr;
|
|
26
|
+
}
|
|
27
|
+
FqnExpr2.isElementTagExpr = isElementTagExpr;
|
|
28
|
+
function isWhere(expr) {
|
|
29
|
+
return "where" in expr && is(expr.where.expr);
|
|
30
|
+
}
|
|
31
|
+
FqnExpr2.isWhere = isWhere;
|
|
32
|
+
function isCustom(expr) {
|
|
33
|
+
return "custom" in expr && (is(expr.custom.expr) || isWhere(expr.custom.expr));
|
|
34
|
+
}
|
|
35
|
+
FqnExpr2.isCustom = isCustom;
|
|
36
|
+
function is(expr) {
|
|
37
|
+
return isWildcard(expr) || isModelRef(expr) || isDeploymentRef(expr) || isElementKindExpr(expr) || isElementTagExpr(expr);
|
|
38
|
+
}
|
|
39
|
+
FqnExpr2.is = is;
|
|
40
|
+
function unwrap(expr) {
|
|
41
|
+
if (isCustom(expr)) {
|
|
42
|
+
expr = expr.custom.expr;
|
|
43
|
+
}
|
|
44
|
+
if (isWhere(expr)) {
|
|
45
|
+
expr = expr.where.expr;
|
|
46
|
+
}
|
|
47
|
+
return expr;
|
|
48
|
+
}
|
|
49
|
+
FqnExpr2.unwrap = unwrap;
|
|
50
|
+
})(FqnExpr || (FqnExpr = {}));
|
|
51
|
+
var RelationExpr;
|
|
52
|
+
((RelationExpr2) => {
|
|
53
|
+
function isDirect(expr) {
|
|
54
|
+
return "source" in expr && "target" in expr;
|
|
55
|
+
}
|
|
56
|
+
RelationExpr2.isDirect = isDirect;
|
|
57
|
+
function isIncoming(expr) {
|
|
58
|
+
return "incoming" in expr;
|
|
59
|
+
}
|
|
60
|
+
RelationExpr2.isIncoming = isIncoming;
|
|
61
|
+
function isOutgoing(expr) {
|
|
62
|
+
return "outgoing" in expr;
|
|
63
|
+
}
|
|
64
|
+
RelationExpr2.isOutgoing = isOutgoing;
|
|
65
|
+
function isInOut(expr) {
|
|
66
|
+
return "inout" in expr;
|
|
67
|
+
}
|
|
68
|
+
RelationExpr2.isInOut = isInOut;
|
|
69
|
+
function isWhere(expr) {
|
|
70
|
+
return "where" in expr && (isDirect(expr.where.expr) || isIncoming(expr.where.expr) || isOutgoing(expr.where.expr) || isInOut(expr.where.expr));
|
|
71
|
+
}
|
|
72
|
+
RelationExpr2.isWhere = isWhere;
|
|
73
|
+
function isCustom(expr) {
|
|
74
|
+
return "customRelation" in expr;
|
|
75
|
+
}
|
|
76
|
+
RelationExpr2.isCustom = isCustom;
|
|
77
|
+
function is(expr) {
|
|
78
|
+
return isDirect(expr) || isIncoming(expr) || isOutgoing(expr) || isInOut(expr);
|
|
79
|
+
}
|
|
80
|
+
RelationExpr2.is = is;
|
|
81
|
+
function unwrap(expr) {
|
|
82
|
+
if (isCustom(expr)) {
|
|
83
|
+
expr = expr.customRelation.expr;
|
|
84
|
+
}
|
|
85
|
+
if (isWhere(expr)) {
|
|
86
|
+
expr = expr.where.expr;
|
|
87
|
+
}
|
|
88
|
+
return expr;
|
|
89
|
+
}
|
|
90
|
+
RelationExpr2.unwrap = unwrap;
|
|
91
|
+
})(RelationExpr || (RelationExpr = {}));
|
|
92
|
+
var Expression;
|
|
93
|
+
((Expression2) => {
|
|
94
|
+
function isWhere(expr) {
|
|
95
|
+
return "where" in expr;
|
|
96
|
+
}
|
|
97
|
+
Expression2.isWhere = isWhere;
|
|
98
|
+
function isRelationWhere(expr) {
|
|
99
|
+
return RelationExpr.isWhere(expr);
|
|
100
|
+
}
|
|
101
|
+
Expression2.isRelationWhere = isRelationWhere;
|
|
102
|
+
function isFqnExprWhere(expr) {
|
|
103
|
+
return FqnExpr.isWhere(expr);
|
|
104
|
+
}
|
|
105
|
+
Expression2.isFqnExprWhere = isFqnExprWhere;
|
|
106
|
+
function isFqnExpr(expr) {
|
|
107
|
+
return FqnExpr.is(expr) || FqnExpr.isWhere(expr) || FqnExpr.isCustom(expr);
|
|
108
|
+
}
|
|
109
|
+
Expression2.isFqnExpr = isFqnExpr;
|
|
110
|
+
function isRelation(expr) {
|
|
111
|
+
return RelationExpr.is(expr) || RelationExpr.isWhere(expr) || RelationExpr.isCustom(expr);
|
|
112
|
+
}
|
|
113
|
+
Expression2.isRelation = isRelation;
|
|
114
|
+
})(Expression || (Expression = {}));
|
|
115
|
+
|
|
116
|
+
export { Expression, FqnExpr, RelationExpr };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { A as Any, U as Unknown$1, j as ElementId, P as ProjectId, F as Fqn, D as DeploymentId } from '../shared/core.DdzRtJ9d.mjs';
|
|
2
|
+
import { E as ExclusiveUnion } from '../shared/core.DuSLYTG6.mjs';
|
|
3
|
+
import 'type-fest';
|
|
4
|
+
import '../shared/core.DX-WYEPA.mjs';
|
|
5
|
+
|
|
6
|
+
type AnyAux = Any;
|
|
7
|
+
type Unknown = Unknown$1;
|
|
8
|
+
declare namespace FqnRef {
|
|
9
|
+
/**
|
|
10
|
+
* Reference to logical model element
|
|
11
|
+
*/
|
|
12
|
+
interface ElementRef<A extends AnyAux = Unknown> {
|
|
13
|
+
project?: never;
|
|
14
|
+
model: ElementId<A>;
|
|
15
|
+
}
|
|
16
|
+
function isElementRef<A extends AnyAux>(ref: FqnRef<A>): ref is ElementRef<A>;
|
|
17
|
+
/**
|
|
18
|
+
* Reference to imported logical model element
|
|
19
|
+
*/
|
|
20
|
+
interface ImportRef<A extends AnyAux = Unknown> {
|
|
21
|
+
project: ProjectId<A>;
|
|
22
|
+
model: ElementId<A>;
|
|
23
|
+
}
|
|
24
|
+
function isImportRef<A extends AnyAux>(ref: FqnRef<A>): ref is ImportRef<A>;
|
|
25
|
+
function flatten<A extends AnyAux>(ref: FqnRef<A>): Fqn<A>;
|
|
26
|
+
type ModelRef<A extends AnyAux = Unknown> = ImportRef<A> | ElementRef<A>;
|
|
27
|
+
function isModelRef<A extends AnyAux>(ref: FqnRef<A>): ref is ModelRef<A>;
|
|
28
|
+
/**
|
|
29
|
+
* Represents a reference to an instance within a deployment.
|
|
30
|
+
*
|
|
31
|
+
* @template D - The type representing the deployment fqn. Defaults to `Fqn`.
|
|
32
|
+
* @template M - The type representing the model fqn. Defaults to `Fqn`.
|
|
33
|
+
*
|
|
34
|
+
* @property {D} deployment - TThe fully qualified name (FQN) of the deployed instance.
|
|
35
|
+
* @property {M} element - The element reference within the deployment.
|
|
36
|
+
*/
|
|
37
|
+
interface InsideInstanceRef<A extends AnyAux = Unknown> {
|
|
38
|
+
deployment: DeploymentId<A>;
|
|
39
|
+
element: ElementId<A>;
|
|
40
|
+
}
|
|
41
|
+
function isInsideInstanceRef<A extends AnyAux>(ref: FqnRef<A>): ref is InsideInstanceRef<A>;
|
|
42
|
+
/**
|
|
43
|
+
* Represents a reference to a deployment element.
|
|
44
|
+
*
|
|
45
|
+
* @template F - The type of the fully qualified name (FQN) of the deployment element. Defaults to `Fqn`.
|
|
46
|
+
* @property {F} deployment - The fully qualified name (FQN) of the deployment element.
|
|
47
|
+
*/
|
|
48
|
+
interface DeploymentElementRef<A extends AnyAux> {
|
|
49
|
+
deployment: DeploymentId<A>;
|
|
50
|
+
element?: never;
|
|
51
|
+
}
|
|
52
|
+
function isDeploymentElementRef<A extends AnyAux>(ref: FqnRef<A>): ref is DeploymentElementRef<A>;
|
|
53
|
+
type DeploymentRef<A extends AnyAux> = DeploymentElementRef<A> | InsideInstanceRef<A>;
|
|
54
|
+
function isDeploymentRef<A extends AnyAux>(ref: FqnRef<A>): ref is DeploymentRef<A>;
|
|
55
|
+
}
|
|
56
|
+
type FqnRef<A extends AnyAux = Unknown> = ExclusiveUnion<{
|
|
57
|
+
DeploymentRef: FqnRef.DeploymentRef<A>;
|
|
58
|
+
ModelRef: FqnRef.ModelRef<A>;
|
|
59
|
+
}>;
|
|
60
|
+
|
|
61
|
+
export { FqnRef };
|