likec4 1.56.0 → 1.57.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/__app__/chunks/AIChat2.mjs +2 -0
- package/__app__/chunks/DiagramActorProvider.mjs +4 -4
- package/__app__/chunks/EmbedPage.mjs +1 -0
- package/__app__/chunks/ExportPage.mjs +2 -0
- package/__app__/chunks/LikeC4Diagram.mjs +5 -5
- package/__app__/chunks/LikeC4Styles.mjs +11 -11
- package/__app__/chunks/Markdown.mjs +1 -0
- package/__app__/chunks/NavigationPanel.mjs +1 -1
- package/__app__/chunks/ViewReact.mjs +1 -1
- package/__app__/chunks/adhoc-editor.mjs +1 -1
- package/__app__/chunks/aichat.mjs +1 -0
- package/__app__/chunks/box.mjs +1 -0
- package/__app__/chunks/create-style-context.mjs +1 -0
- package/__app__/chunks/css.mjs +1 -0
- package/__app__/chunks/factory.mjs +1 -0
- package/__app__/chunks/hooks.mjs +1 -1
- package/__app__/chunks/hstack.mjs +1 -0
- package/__app__/chunks/libs/@dagrejs/dagre.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/core.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/dom.mjs +1 -1
- package/__app__/chunks/libs/@floating-ui/react.mjs +1 -1
- package/__app__/chunks/libs/@mantine/core.mjs +24 -24
- package/__app__/chunks/libs/@mantine/hooks.mjs +1 -1
- package/__app__/chunks/libs/@nanostores/react.mjs +1 -1
- package/__app__/chunks/libs/@react-hookz/web.mjs +1 -1
- package/__app__/chunks/libs/@tabler/icons-react.mjs +347 -4
- package/__app__/chunks/libs/@tanstack/ai-client.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/ai-react-ui.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai-react.mjs +1 -0
- package/__app__/chunks/libs/@tanstack/ai.mjs +2 -0
- package/__app__/chunks/libs/@tanstack/history.mjs +1 -1
- package/__app__/chunks/libs/@tanstack/react-router.mjs +3 -3
- package/__app__/chunks/libs/@tanstack/router-core.mjs +1 -1
- package/__app__/chunks/libs/@xstate/react.mjs +1 -1
- package/__app__/chunks/libs/@xstate/store.mjs +1 -1
- package/__app__/chunks/libs/@xyflow/react.mjs +3 -3
- package/__app__/chunks/libs/@zag-js/anatomy.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/collection.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/core.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/react.mjs +1 -1
- package/__app__/chunks/libs/@zag-js/tree-view.mjs +1 -1
- package/__app__/chunks/libs/bezier-js.mjs +1 -1
- package/__app__/chunks/libs/copy-anything.mjs +1 -0
- package/__app__/chunks/libs/d3-path.mjs +1 -1
- package/__app__/chunks/libs/d3-shape.mjs +1 -1
- package/__app__/chunks/libs/fast-equals.mjs +1 -1
- package/__app__/chunks/libs/framer-motion.mjs +3 -3
- package/__app__/chunks/libs/html-to-image.mjs +2 -2
- package/__app__/chunks/libs/motion-dom.mjs +1 -1
- package/__app__/chunks/libs/nanostores.mjs +1 -1
- package/__app__/chunks/libs/react-error-boundary.mjs +1 -1
- package/__app__/chunks/libs/react-resizable-panels.mjs +1 -1
- package/__app__/chunks/libs/remeda.mjs +1 -1
- package/__app__/chunks/libs/superjson.mjs +1 -0
- package/__app__/chunks/libs/zod.mjs +39 -14
- package/__app__/chunks/rolldown-runtime.mjs +1 -1
- package/__app__/chunks/styles.css.mjs +1 -1
- package/__app__/chunks/txt.mjs +1 -0
- package/__app__/chunks/useLikeC4Project.mjs +1 -1
- package/__app__/codegen/webcomponent.mjs +221 -69
- package/__app__/src/aichat/index.mjs +1 -0
- package/__app__/src/main.mjs +45 -1
- package/__app__/src/pages/AdHocViewEditor.mjs +1 -1
- package/__app__/src/pages/EmbedPage.mjs +1 -1
- package/__app__/src/pages/ExportPage.mjs +1 -1
- package/__app__/src/pages/ProjectsOverview.mjs +1 -1
- package/__app__/src/pages/ViewAsD2.mjs +1 -1
- package/__app__/src/pages/ViewAsDot.mjs +1 -1
- package/__app__/src/pages/ViewAsMmd.mjs +1 -1
- package/__app__/src/pages/ViewAsPuml.mjs +1 -1
- package/__app__/src/pages/ViewEditor.mjs +1 -1
- package/__app__/src/style.css +1 -1
- package/config/schema.json +14 -41
- package/dist/chunks/enableServer.mjs +1 -0
- package/dist/chunks/index2.d.mts +569 -377
- package/dist/chunks/libs/@hono/mcp.mjs +33 -8
- package/dist/chunks/libs/@hono/node-server.mjs +1 -1
- package/dist/chunks/libs/@modelcontextprotocol/sdk.mjs +7 -7
- package/dist/chunks/libs/@ts-graphviz/ast.mjs +3 -0
- package/dist/chunks/libs/@ts-graphviz/common.d.mts +9 -0
- package/dist/chunks/libs/@ts-graphviz/core.mjs +1 -0
- package/dist/chunks/libs/ajv.mjs +1 -1
- package/dist/chunks/libs/ansi-styles.mjs +1 -1
- package/dist/chunks/libs/boxen.mjs +2 -2
- package/dist/chunks/libs/chevrotain.mjs +2 -2
- package/dist/chunks/libs/conf.mjs +1 -1
- package/dist/chunks/libs/langium.d.mts +5 -5
- package/dist/chunks/libs/langium.mjs +10 -10
- package/dist/chunks/libs/merge-error-cause.mjs +1 -1
- package/dist/chunks/libs/pako.mjs +3 -1
- package/dist/chunks/libs/remeda.mjs +1 -1
- package/dist/chunks/libs/ts-graphviz.mjs +1 -4
- package/dist/chunks/libs/unctx.mjs +1 -0
- package/dist/chunks/libs/vscode-languageserver.mjs +1 -1
- package/dist/chunks/libs/zod.d.mts +60 -25
- package/dist/chunks/node.mjs +62 -45
- package/dist/chunks/plugin.mjs +234 -41
- package/dist/chunks/sequence-view.mjs +1 -1
- package/dist/cli/index.mjs +142 -139
- package/dist/index.d.mts +1 -130
- package/dist/model/index.d.mts +1 -1
- package/dist/vite-plugin/index.d.mts +53 -2
- package/dist/vite-plugin/internal/index.d.mts +331 -3
- package/dist/vite-plugin/internal/index.mjs +1 -1
- package/package.json +65 -51
- package/react/index.d.mts +82 -50
- package/react/index.mjs +34017 -32421
- package/vite-plugin-modules.d.ts +4 -0
- package/__app__/chunks/ColorSchemeToggle.mjs +0 -1
- package/__app__/chunks/Fallback.mjs +0 -1
- package/__app__/chunks/Header.mjs +0 -13
- package/__app__/chunks/IconRenderer.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext.mjs +0 -1
- package/__app__/chunks/LikeC4ModelContext2.mjs +0 -1
- package/__app__/chunks/StaticLikeC4Diagram.mjs +0 -1
- package/__app__/chunks/__root.mjs +0 -1
- package/__app__/chunks/libs/motion.mjs +0 -1
- package/__app__/chunks/libs/xstate.mjs +0 -1
- package/__app__/chunks/safeCtx.mjs +0 -1
- package/__app__/chunks/searchParams.mjs +0 -1
- package/__app__/chunks/single-index.mjs +0 -1
- package/__app__/chunks/styled-system.mjs +0 -1
- package/__app__/chunks/useUpdateEffect.mjs +0 -1
- package/__app__/src/routeTree.gen.mjs +0 -1
- package/__app__/src/routes/__root.mjs +0 -1
- package/__app__/src/routes/_single/adhoc.mjs +0 -1
- package/__app__/src/routes/_single/embed._viewId.mjs +0 -1
- package/__app__/src/routes/_single/export._viewId.mjs +0 -1
- package/__app__/src/routes/_single/route.mjs +0 -1
- package/__app__/src/routes/_single/single-index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/_single/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/_single/webcomponent._.mjs +0 -33
- package/__app__/src/routes/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/-components.mjs +0 -1
- package/__app__/src/routes/project._projectId/adhoc.mjs +0 -1
- package/__app__/src/routes/project._projectId/embed._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/export._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/index.mjs +0 -1
- package/__app__/src/routes/project._projectId/route.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.d2.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.dot.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.index.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.mmd.mjs +0 -1
- package/__app__/src/routes/project._projectId/view._viewId.puml.mjs +0 -1
- package/__app__/src/routes/projects.mjs +0 -1
- package/dist/chunks/libs/ts-graphviz.d.mts +0 -12
- package/dist/vite-plugin/internal/chunks/libs/@nanostores/react.d.mts +0 -269
- package/dist/vite-plugin/internal/chunks/libs/nanostores.d.mts +0 -59
package/dist/chunks/index2.d.mts
CHANGED
|
@@ -1,17 +1,68 @@
|
|
|
1
1
|
import { i as __name } from "./rolldown-runtime.mjs";
|
|
2
2
|
import { a as LikeC4ProjectConfig, i as IncludeConfig, o as LikeC4ProjectConfigInput } from "./index.mjs";
|
|
3
|
+
import { t as Logger } from "./libs/@logtape/logtape.mjs";
|
|
3
4
|
import { $ as FileSystemProvider, A as DefaultValueConverter, B as AsyncDisposable, C as CodeLensParams, D as ValidationOptions, E as DefaultDocumentValidator, F as JSDocDocumentationProvider, G as Reference, H as AstNode, I as DefaultIndexManager, J as LangiumDocument, K as ReferenceInfo, L as ReferenceDescription, M as MaybePromise, N as DefaultScopeProvider, O as DiagnosticInfo, P as Scope, Q as FileSystemNode, R as DefaultNameProvider, S as CodeActionParams, T as DocumentSymbolParams, U as AstNodeDescription, V as Disposable$1, W as CstNode, X as PrecomputedScopes, Y as LangiumDocumentFactory, Z as Stream, _ as CodeLensProvider, _t as SymbolKind, a as LangiumServices, at as CodeAction, b as FileSelector, c as AbstractSemanticTokenProvider, ct as CompletionItemKind, d as AbstractFormatter, dt as DocumentLink, et as Keyword, f as FormattingRegion, ft as DocumentSymbol, g as DefaultDocumentHighlightProvider, gt as Range, h as DocumentLinkProvider, ht as Location, i as NextFeature, it as RequestType, j as ValueType, k as DefaultScopeComputation, l as SemanticTokenAcceptor, lt as Diagnostic, m as NodeKindProvider, mt as Hover, n as CompletionContext, nt as CancellationToken$1, o as LangiumSharedServices, ot as CodeLens, p as DocumentSymbolProvider, pt as FormattingOptions, q as DefaultLangiumDocuments, r as DefaultCompletionProvider, rt as NotificationType, s as DefaultWorkspaceSymbolProvider, st as Command, t as CompletionAcceptor, tt as URI, u as AstNodeHoverProvider, ut as DocumentHighlight, v as CodeActionProvider, vt as TextEdit, w as DocumentLinkParams, x as BuildOptions, y as DefaultWorkspaceManager, yt as WorkspaceFolder, z as WorkspaceCache } from "./libs/langium.mjs";
|
|
4
|
-
import { t as $keywords } from "./libs
|
|
5
|
+
import { t as $keywords } from "./libs/@ts-graphviz/common.mjs";
|
|
6
|
+
import { LikeC4Styles } from "@likec4/core/styles";
|
|
7
|
+
import { EdgeId, Fqn, GuardedBy, LayoutedView, NodeId, NonEmptyArray, NonEmptyReadonlyArray, ProjectId, ViewId } from "@likec4/core/types";
|
|
5
8
|
import * as c4 from "@likec4/core";
|
|
6
|
-
import { AnyAux, ComputedView, DeploymentFqn, DiagramView, EdgeId, Fqn, LayoutType, LayoutedView, LikeC4Styles, NonEmptyArray, NonEmptyReadonlyArray, ProjectId, RelationId, Tag, UnknownComputed, UnknownLayouted, UnknownParsed, ViewChange, ViewId, aux } from "@likec4/core";
|
|
7
|
-
import { LikeC4Styles as LikeC4Styles$1 } from "@likec4/core/styles";
|
|
8
|
-
import { Fqn as Fqn$1, GuardedBy, LayoutedView as LayoutedView$1, ProjectId as ProjectId$1, ViewId as ViewId$1 } from "@likec4/core/types";
|
|
9
|
+
import { AnyAux, ComputedView, DeploymentFqn, DiagramView, EdgeId as EdgeId$1, Fqn as Fqn$1, LayoutType, LayoutedView as LayoutedView$1, LikeC4Styles as LikeC4Styles$1, NonEmptyArray as NonEmptyArray$1, NonEmptyReadonlyArray as NonEmptyReadonlyArray$1, ProjectId as ProjectId$1, RelationId, Tag, UnknownComputed, UnknownLayouted, UnknownParsed, ViewChange, ViewId as ViewId$1, aux as aux$1 } from "@likec4/core";
|
|
9
10
|
import { DefaultWeakMap, MultiMap } from "@likec4/core/utils";
|
|
10
11
|
import { ElementModel, LikeC4Model } from "@likec4/core/model";
|
|
11
12
|
import { AdhocViewPredicate, ComputedProjectsView, LayoutedProjectsView } from "@likec4/core/compute-view";
|
|
12
13
|
import * as type_fest0 from "type-fest";
|
|
13
14
|
import { ConditionalPick, MergeExclusive, Simplify, Tagged, ValueOf, Writable } from "type-fest";
|
|
14
15
|
|
|
16
|
+
//#region ../layouts/dist/_chunks/types.d.mts
|
|
17
|
+
/**
|
|
18
|
+
* invisible edge added by AI to enforce better layout
|
|
19
|
+
*/
|
|
20
|
+
interface AIEnforcementEdge {
|
|
21
|
+
source: NodeId;
|
|
22
|
+
target: NodeId;
|
|
23
|
+
weight?: number;
|
|
24
|
+
minlen?: number;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Complete set of AI-generated layout hints.
|
|
28
|
+
* This is the JSON schema the LLM must produce.
|
|
29
|
+
*/
|
|
30
|
+
interface AILayoutHints {
|
|
31
|
+
direction?: 'TB' | 'BT' | 'LR' | 'RL';
|
|
32
|
+
ranks: ReadonlyArray<{
|
|
33
|
+
rank: 'same' | 'source' | 'sink' | 'min' | 'max';
|
|
34
|
+
nodes: NonEmptyArray<NodeId>;
|
|
35
|
+
}>;
|
|
36
|
+
edgeWeight: Record<EdgeId, number>;
|
|
37
|
+
edgeMinlen: Record<EdgeId, number>;
|
|
38
|
+
/**
|
|
39
|
+
* These edges should be reversed in DOT
|
|
40
|
+
* Unique array of EdgeIds.
|
|
41
|
+
*/
|
|
42
|
+
reverseRank?: NonEmptyReadonlyArray<EdgeId>;
|
|
43
|
+
/**
|
|
44
|
+
* These edges should be excluded, i.e. `constraint=false` in Graphviz, to allow more flexible layouts.
|
|
45
|
+
* Unique array of EdgeIds.
|
|
46
|
+
*/
|
|
47
|
+
excludeFromRanking?: NonEmptyReadonlyArray<EdgeId>;
|
|
48
|
+
/**
|
|
49
|
+
* Suggested order of edges for DOT output, to influence edge routing.
|
|
50
|
+
*/
|
|
51
|
+
edgeOrder?: NonEmptyReadonlyArray<EdgeId>;
|
|
52
|
+
/**
|
|
53
|
+
* Suggested order of nodes for DOT output, to influence node placement.
|
|
54
|
+
*/
|
|
55
|
+
nodeOrder?: NonEmptyReadonlyArray<NodeId>;
|
|
56
|
+
/**
|
|
57
|
+
* Invisible edges added by AI to enforce better layout
|
|
58
|
+
*/
|
|
59
|
+
invisibleEdges?: NonEmptyReadonlyArray<AIEnforcementEdge>;
|
|
60
|
+
/**
|
|
61
|
+
* LLM reasoning for debugging/display
|
|
62
|
+
*/
|
|
63
|
+
reasoning: string;
|
|
64
|
+
} //#endregion
|
|
65
|
+
//#endregion
|
|
15
66
|
//#region ../language-server/dist/_chunks/protocol.d.mts
|
|
16
67
|
/**
|
|
17
68
|
* When server requests to open a likec4 preview panel
|
|
@@ -20,8 +71,8 @@ import { ConditionalPick, MergeExclusive, Simplify, Tagged, ValueOf, Writable }
|
|
|
20
71
|
*/
|
|
21
72
|
declare namespace DidRequestOpenViewNotification {
|
|
22
73
|
type Params = {
|
|
23
|
-
viewId: ViewId;
|
|
24
|
-
projectId: ProjectId;
|
|
74
|
+
viewId: ViewId$1;
|
|
75
|
+
projectId: ProjectId$1;
|
|
25
76
|
};
|
|
26
77
|
const type: NotificationType<Params>;
|
|
27
78
|
type Type = typeof type;
|
|
@@ -41,7 +92,7 @@ declare namespace Locate {
|
|
|
41
92
|
* Locate an element by its fqn
|
|
42
93
|
*/
|
|
43
94
|
{
|
|
44
|
-
element: Fqn;
|
|
95
|
+
element: Fqn$1;
|
|
45
96
|
projectId?: string | undefined;
|
|
46
97
|
property?: string;
|
|
47
98
|
}
|
|
@@ -64,7 +115,7 @@ declare namespace Locate {
|
|
|
64
115
|
* Locate a step in a dynamic view by its astPath
|
|
65
116
|
*/
|
|
66
117
|
| {
|
|
67
|
-
view: ViewId;
|
|
118
|
+
view: ViewId$1;
|
|
68
119
|
astPath: string;
|
|
69
120
|
projectId?: string | undefined;
|
|
70
121
|
}
|
|
@@ -72,7 +123,7 @@ declare namespace Locate {
|
|
|
72
123
|
* Locate a view by its id
|
|
73
124
|
*/
|
|
74
125
|
| {
|
|
75
|
-
view: ViewId;
|
|
126
|
+
view: ViewId$1;
|
|
76
127
|
projectId?: string | undefined;
|
|
77
128
|
};
|
|
78
129
|
type Res = Location | null;
|
|
@@ -85,7 +136,7 @@ declare namespace Locate {
|
|
|
85
136
|
*/
|
|
86
137
|
declare namespace ChangeView {
|
|
87
138
|
type Params = {
|
|
88
|
-
viewId: ViewId;
|
|
139
|
+
viewId: ViewId$1;
|
|
89
140
|
change: ViewChange;
|
|
90
141
|
projectId?: string | undefined;
|
|
91
142
|
};
|
|
@@ -224,7 +275,7 @@ declare namespace GraphvizJson {
|
|
|
224
275
|
_ldraw_?: LabelDrawOps[];
|
|
225
276
|
likec4_type?: 'folder' | 'file';
|
|
226
277
|
likec4_path?: string;
|
|
227
|
-
likec4_id?: Fqn;
|
|
278
|
+
likec4_id?: Fqn$1;
|
|
228
279
|
likec4_level?: number;
|
|
229
280
|
likec4_depth?: number;
|
|
230
281
|
_gvid: GvId;
|
|
@@ -237,7 +288,7 @@ declare namespace GraphvizJson {
|
|
|
237
288
|
_ldraw_?: LabelDrawOps[];
|
|
238
289
|
likec4_type?: 'folder' | 'file' | 'view';
|
|
239
290
|
likec4_path?: string;
|
|
240
|
-
likec4_id?: Fqn;
|
|
291
|
+
likec4_id?: Fqn$1;
|
|
241
292
|
likec4_level?: number;
|
|
242
293
|
_gvid: GvId;
|
|
243
294
|
height: string;
|
|
@@ -272,7 +323,7 @@ declare namespace GraphvizJson {
|
|
|
272
323
|
_hldraw_?: LabelDrawOps[];
|
|
273
324
|
fontname: string;
|
|
274
325
|
fontsize: string;
|
|
275
|
-
likec4_id?: EdgeId;
|
|
326
|
+
likec4_id?: EdgeId$1;
|
|
276
327
|
label: string;
|
|
277
328
|
lp: string;
|
|
278
329
|
nojustify?: 'true' | 'false';
|
|
@@ -289,11 +340,11 @@ interface GraphvizPort extends Disposable {
|
|
|
289
340
|
svg(dot: DotSource): Promise<string>;
|
|
290
341
|
dispose(): void;
|
|
291
342
|
}
|
|
292
|
-
type LayoutTaskParams<A extends aux.Any = aux.Any> = {
|
|
343
|
+
type LayoutTaskParams<A extends aux$1.Any = aux$1.Any> = {
|
|
293
344
|
view: ComputedView<A>;
|
|
294
|
-
styles: LikeC4Styles;
|
|
345
|
+
styles: LikeC4Styles$1;
|
|
295
346
|
};
|
|
296
|
-
type LayoutResult<A extends aux.Any = aux.Any> = {
|
|
347
|
+
type LayoutResult<A extends aux$1.Any = aux$1.Any> = {
|
|
297
348
|
dot: DotSource;
|
|
298
349
|
diagram: DiagramView<A>;
|
|
299
350
|
};
|
|
@@ -304,9 +355,19 @@ declare class GraphvizLayouter implements Disposable {
|
|
|
304
355
|
[Symbol.dispose](): void;
|
|
305
356
|
get graphvizPort(): GraphvizPort;
|
|
306
357
|
changePort(graphviz: GraphvizPort): void;
|
|
307
|
-
|
|
358
|
+
/**
|
|
359
|
+
* Generates DOT source for the given view and styles.
|
|
360
|
+
* If `hints` are provided, they will be used to influence the layout (e.g. by specifying node/edge order).
|
|
361
|
+
* This method does not perform unflattening or any other post-processing on the DOT output, so it may be used for debugging or to generate DOT for external processing.
|
|
362
|
+
*/
|
|
363
|
+
printToDot(params: LayoutTaskParams, hints?: AILayoutHints): DotSource;
|
|
364
|
+
protected newScopedLogger(operation: string): any;
|
|
308
365
|
dotToJson(dot: DotSource): Promise<GraphvizJson>;
|
|
309
366
|
layout<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<LayoutResult<A>>;
|
|
367
|
+
aiLayout<A extends AnyAux>({
|
|
368
|
+
view,
|
|
369
|
+
styles
|
|
370
|
+
}: LayoutTaskParams<A>, hints: AILayoutHints): Promise<LayoutResult<A>>;
|
|
310
371
|
svg<A extends AnyAux>(params: LayoutTaskParams<A>): Promise<{
|
|
311
372
|
svg: string;
|
|
312
373
|
dot: DotSource;
|
|
@@ -389,12 +450,12 @@ type DocOrUri = LangiumDocument | string | URI;
|
|
|
389
450
|
type ProjectFolder = Tagged<string, 'ProjectFolder'>;
|
|
390
451
|
declare function ProjectFolder(folder: URI | string): ProjectFolder;
|
|
391
452
|
interface Project {
|
|
392
|
-
id: ProjectId
|
|
453
|
+
id: ProjectId;
|
|
393
454
|
folderUri: URI;
|
|
394
455
|
config: LikeC4ProjectConfig;
|
|
395
456
|
}
|
|
396
457
|
interface ProjectData extends Project {
|
|
397
|
-
id: ProjectId
|
|
458
|
+
id: ProjectId;
|
|
398
459
|
folder: ProjectFolder;
|
|
399
460
|
config: LikeC4ProjectConfig;
|
|
400
461
|
configUri: URI;
|
|
@@ -406,7 +467,7 @@ interface ProjectData extends Project {
|
|
|
406
467
|
* Resolved include paths with both URI and folder string representations.
|
|
407
468
|
* These are additional directories that are part of this project.
|
|
408
469
|
*/
|
|
409
|
-
includePaths?: NonEmptyArray<{
|
|
470
|
+
includePaths?: NonEmptyArray$1<{
|
|
410
471
|
uri: URI;
|
|
411
472
|
folder: ProjectFolder;
|
|
412
473
|
}>;
|
|
@@ -429,7 +490,7 @@ declare class ProjectsManager {
|
|
|
429
490
|
* The global project ID used for all documents
|
|
430
491
|
* that are not part of a specific project.
|
|
431
492
|
*/
|
|
432
|
-
static readonly DefaultProjectId: ProjectId
|
|
493
|
+
static readonly DefaultProjectId: ProjectId;
|
|
433
494
|
constructor(services: LikeC4SharedServices);
|
|
434
495
|
/**
|
|
435
496
|
* Checks if a document is excluded by workspace-level patterns.
|
|
@@ -448,11 +509,11 @@ declare class ProjectsManager {
|
|
|
448
509
|
* - the ID of the only project
|
|
449
510
|
* - undefined if there are multiple projects.
|
|
450
511
|
*/
|
|
451
|
-
get defaultProjectId(): ProjectId
|
|
452
|
-
set defaultProjectId(id: string | ProjectId
|
|
512
|
+
get defaultProjectId(): ProjectId | undefined;
|
|
513
|
+
set defaultProjectId(id: string | ProjectId | undefined);
|
|
453
514
|
get default(): ProjectData;
|
|
454
|
-
get all(): NonEmptyReadonlyArray<ProjectId
|
|
455
|
-
getProject(arg: ProjectId
|
|
515
|
+
get all(): NonEmptyReadonlyArray$1<ProjectId>;
|
|
516
|
+
getProject(arg: ProjectId | LangiumDocument): ProjectData;
|
|
456
517
|
/**
|
|
457
518
|
* Returns all projects that overlap with the specified folder (is parent or child)
|
|
458
519
|
*/
|
|
@@ -462,7 +523,7 @@ declare class ProjectsManager {
|
|
|
462
523
|
* If no project ID is specified, returns default project ID
|
|
463
524
|
* If there are multiple projects and default project is not set, throws an error
|
|
464
525
|
*/
|
|
465
|
-
ensureProjectId(projectId?: ProjectId
|
|
526
|
+
ensureProjectId(projectId?: ProjectId | undefined): ProjectId;
|
|
466
527
|
/**
|
|
467
528
|
* Validates and ensures the project data.
|
|
468
529
|
* If projectId is not specified, returns default project
|
|
@@ -471,7 +532,7 @@ declare class ProjectsManager {
|
|
|
471
532
|
*
|
|
472
533
|
* @see ensureProjectId - to validate project ID only
|
|
473
534
|
*/
|
|
474
|
-
ensureProject(projectId?: ProjectId
|
|
535
|
+
ensureProject(projectId?: ProjectId | undefined): ProjectData;
|
|
475
536
|
hasMultipleProjects(): boolean;
|
|
476
537
|
/**
|
|
477
538
|
* Checks if given document (or URI) must be excluded from processing.
|
|
@@ -480,13 +541,13 @@ declare class ProjectsManager {
|
|
|
480
541
|
/**
|
|
481
542
|
* Checks if given document (or URI) must be excluded in the context of the project.
|
|
482
543
|
*/
|
|
483
|
-
isExcluded(projectId: ProjectId
|
|
544
|
+
isExcluded(projectId: ProjectId, document: DocOrUri): boolean;
|
|
484
545
|
/**
|
|
485
546
|
* Checks if the specified document is included by the project:
|
|
486
547
|
* - if the document belongs to the project and is not excluded
|
|
487
548
|
* - if the document is included by the project
|
|
488
549
|
*/
|
|
489
|
-
isIncluded(projectId: ProjectId
|
|
550
|
+
isIncluded(projectId: ProjectId, document: LangiumDocument | URI | string): boolean;
|
|
490
551
|
/**
|
|
491
552
|
* Registers likec4 project by config file.
|
|
492
553
|
*/
|
|
@@ -500,7 +561,7 @@ declare class ProjectsManager {
|
|
|
500
561
|
* Determines which project the given document belongs to.
|
|
501
562
|
* If the document does not belong to any project, returns the default project ID.
|
|
502
563
|
*/
|
|
503
|
-
ownerProjectId(document: LangiumDocument | URI | string): ProjectId
|
|
564
|
+
ownerProjectId(document: LangiumDocument | URI | string): ProjectId;
|
|
504
565
|
/**
|
|
505
566
|
* Returns path to the document relative to the project folder.
|
|
506
567
|
* If the document does not belong to any project, returns the document URI as string.
|
|
@@ -513,15 +574,15 @@ declare class ProjectsManager {
|
|
|
513
574
|
protected get isInitiatingOrReloading(): boolean;
|
|
514
575
|
reloadProjects(cancelToken?: CancellationToken$1): Promise<void>;
|
|
515
576
|
protected _reloadProjects(cancelToken?: CancellationToken$1): Promise<void>;
|
|
516
|
-
protected uniqueProjectId(name: string): ProjectId
|
|
577
|
+
protected uniqueProjectId(name: string): ProjectId;
|
|
517
578
|
protected resetCaches(): void;
|
|
518
|
-
rebuildProject(projectId: ProjectId
|
|
579
|
+
rebuildProject(projectId: ProjectId, cancelToken?: CancellationToken$1): Promise<void>;
|
|
519
580
|
/**
|
|
520
581
|
* Returns all include paths from all projects.
|
|
521
582
|
* Used by WorkspaceManager to scan additional directories for C4 files.
|
|
522
583
|
*/
|
|
523
584
|
getAllIncludePaths(): Array<{
|
|
524
|
-
projectId: ProjectId
|
|
585
|
+
projectId: ProjectId;
|
|
525
586
|
includePath: URI;
|
|
526
587
|
includeConfig: IncludeConfig;
|
|
527
588
|
}>;
|
|
@@ -586,19 +647,19 @@ interface FileSystemWatcher extends AsyncDisposable {
|
|
|
586
647
|
}
|
|
587
648
|
type ManualLayoutsSnapshot = {
|
|
588
649
|
hash: string;
|
|
589
|
-
views: Record<ViewId
|
|
650
|
+
views: Record<ViewId, LayoutedView>;
|
|
590
651
|
};
|
|
591
652
|
type ManualLayoutUpdateEvent = {
|
|
592
653
|
updated: URI;
|
|
593
|
-
projectId: ProjectId
|
|
594
|
-
viewId: ViewId
|
|
654
|
+
projectId: ProjectId;
|
|
655
|
+
viewId: ViewId;
|
|
595
656
|
} | {
|
|
596
657
|
removed: URI;
|
|
597
|
-
projectId: ProjectId
|
|
658
|
+
projectId: ProjectId;
|
|
598
659
|
/**
|
|
599
660
|
* Missing if triggered by FS event (file was deleted)
|
|
600
661
|
*/
|
|
601
|
-
viewId?: ViewId
|
|
662
|
+
viewId?: ViewId;
|
|
602
663
|
};
|
|
603
664
|
type ManualLayoutUpdateListener = (event: ManualLayoutUpdateEvent) => void;
|
|
604
665
|
interface LikeC4ManualLayouts {
|
|
@@ -606,10 +667,10 @@ interface LikeC4ManualLayouts {
|
|
|
606
667
|
* Reads a single layouted view from the file system by its URI.
|
|
607
668
|
* Used by the language server to get the current layout state.
|
|
608
669
|
*/
|
|
609
|
-
readSnapshot(uri: URI): Promise<LayoutedView
|
|
670
|
+
readSnapshot(uri: URI): Promise<LayoutedView | null>;
|
|
610
671
|
read(project: Project): Promise<ManualLayoutsSnapshot | null>;
|
|
611
|
-
write(project: Project, layouted: LayoutedView
|
|
612
|
-
remove(project: Project, view: ViewId
|
|
672
|
+
write(project: Project, layouted: LayoutedView): Promise<Location>;
|
|
673
|
+
remove(project: Project, view: ViewId): Promise<Location | null>;
|
|
613
674
|
clearCaches(): void;
|
|
614
675
|
/**
|
|
615
676
|
* Registers a listener for manual layout updates.
|
|
@@ -698,7 +759,7 @@ type DeploymentElement = DeployedInstance | DeploymentNode;
|
|
|
698
759
|
declare const DeploymentElement = "DeploymentElement";
|
|
699
760
|
type DeploymentNodeOrElementKind = DeploymentNodeKind | ElementKind;
|
|
700
761
|
declare const DeploymentNodeOrElementKind = "DeploymentNodeOrElementKind";
|
|
701
|
-
type DeploymentViewRule = DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAutoLayout;
|
|
762
|
+
type DeploymentViewRule = DeploymentViewRulePredicate | DeploymentViewRuleStyle | ViewRuleAncestors | ViewRuleAutoLayout;
|
|
702
763
|
declare const DeploymentViewRule = "DeploymentViewRule";
|
|
703
764
|
type DynamicViewDisplayVariantValue = 'diagram' | 'sequence';
|
|
704
765
|
type DynamicViewProperty = DynamicViewDisplayVariantProperty | ViewProperty;
|
|
@@ -830,7 +891,7 @@ declare const CustomElementProperties = "CustomElementProperties";
|
|
|
830
891
|
interface CustomRelationProperties extends AstNode {
|
|
831
892
|
readonly $container: AbstractDynamicStep | RelationExprWith;
|
|
832
893
|
readonly $type: 'CustomRelationProperties';
|
|
833
|
-
props: Array<NotationProperty | NotesProperty | RelationNavigateToProperty | RelationStringProperty | RelationshipStyleProperty>;
|
|
894
|
+
props: Array<MultipleProperty | NotationProperty | NotesProperty | RelationNavigateToProperty | RelationStringProperty | RelationshipStyleProperty>;
|
|
834
895
|
}
|
|
835
896
|
declare const CustomRelationProperties = "CustomRelationProperties";
|
|
836
897
|
interface DeployedInstance extends AstNode {
|
|
@@ -1309,7 +1370,7 @@ interface MetadataAttribute extends AstNode {
|
|
|
1309
1370
|
readonly $container: MetadataBody;
|
|
1310
1371
|
readonly $type: 'MetadataAttribute';
|
|
1311
1372
|
boolValue: boolean;
|
|
1312
|
-
key:
|
|
1373
|
+
key: Id;
|
|
1313
1374
|
value?: MetadataValue;
|
|
1314
1375
|
}
|
|
1315
1376
|
declare const MetadataAttribute = "MetadataAttribute";
|
|
@@ -1343,7 +1404,7 @@ interface ModelViews extends AstNode {
|
|
|
1343
1404
|
}
|
|
1344
1405
|
declare const ModelViews = "ModelViews";
|
|
1345
1406
|
interface MultipleProperty extends AstNode {
|
|
1346
|
-
readonly $container: CustomElementProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | ViewRuleStyle;
|
|
1407
|
+
readonly $container: CustomElementProperties | CustomRelationProperties | DeploymentViewRuleStyle | ElementStyleProperty | GlobalStyle | SpecificationRelationshipKind | ViewRuleStyle;
|
|
1347
1408
|
readonly $type: 'MultipleProperty';
|
|
1348
1409
|
key: 'multiple';
|
|
1349
1410
|
value: boolean;
|
|
@@ -1518,7 +1579,7 @@ interface SpecificationRelationshipKind extends AstNode {
|
|
|
1518
1579
|
readonly $container: SpecificationRule;
|
|
1519
1580
|
readonly $type: 'SpecificationRelationshipKind';
|
|
1520
1581
|
kind: RelationshipKind;
|
|
1521
|
-
props: Array<RelationshipStyleProperty | SpecificationRelationshipStringProperty>;
|
|
1582
|
+
props: Array<MultipleProperty | RelationshipStyleProperty | SpecificationRelationshipStringProperty>;
|
|
1522
1583
|
}
|
|
1523
1584
|
declare const SpecificationRelationshipKind = "SpecificationRelationshipKind";
|
|
1524
1585
|
interface SpecificationRelationshipStringProperty extends AstNode {
|
|
@@ -1592,6 +1653,13 @@ interface ViewRef extends AstNode {
|
|
|
1592
1653
|
view: Reference<LikeC4View>;
|
|
1593
1654
|
}
|
|
1594
1655
|
declare const ViewRef = "ViewRef";
|
|
1656
|
+
interface ViewRuleAncestors extends AstNode {
|
|
1657
|
+
readonly $container: DeploymentViewBody;
|
|
1658
|
+
readonly $type: 'ViewRuleAncestors';
|
|
1659
|
+
key: 'includeAncestors';
|
|
1660
|
+
value: boolean;
|
|
1661
|
+
}
|
|
1662
|
+
declare const ViewRuleAncestors = "ViewRuleAncestors";
|
|
1595
1663
|
interface ViewRuleAutoLayout extends AstNode {
|
|
1596
1664
|
readonly $container: DeploymentViewBody | DynamicViewBody | ElementViewBody;
|
|
1597
1665
|
readonly $type: 'ViewRuleAutoLayout';
|
|
@@ -1909,6 +1977,7 @@ type LikeC4AstType = {
|
|
|
1909
1977
|
ViewProperty: ViewProperty;
|
|
1910
1978
|
ViewRef: ViewRef;
|
|
1911
1979
|
ViewRule: ViewRule;
|
|
1980
|
+
ViewRuleAncestors: ViewRuleAncestors;
|
|
1912
1981
|
ViewRuleAutoLayout: ViewRuleAutoLayout;
|
|
1913
1982
|
ViewRuleGlobalPredicateRef: ViewRuleGlobalPredicateRef;
|
|
1914
1983
|
ViewRuleGlobalStyle: ViewRuleGlobalStyle;
|
|
@@ -2015,6 +2084,7 @@ interface ParsedAstSpecification {
|
|
|
2015
2084
|
line?: c4.RelationshipLineType;
|
|
2016
2085
|
head?: c4.RelationshipArrowType;
|
|
2017
2086
|
tail?: c4.RelationshipArrowType;
|
|
2087
|
+
multiple?: boolean;
|
|
2018
2088
|
}>;
|
|
2019
2089
|
colors: Record<c4.CustomColor, {
|
|
2020
2090
|
color: c4.ColorLiteral;
|
|
@@ -2173,7 +2243,7 @@ declare class IndexManager extends DefaultIndexManager {
|
|
|
2173
2243
|
protected services: LikeC4SharedServices;
|
|
2174
2244
|
constructor(services: LikeC4SharedServices);
|
|
2175
2245
|
updateContent(document: LangiumDocument, cancelToken?: CancellationToken$1): Promise<void>;
|
|
2176
|
-
projectElements(projectId: ProjectId, nodeType?: string, uris?: Set<string>): Stream<AstNodeDescription>;
|
|
2246
|
+
projectElements(projectId: ProjectId$1, nodeType?: string, uris?: Set<string>): Stream<AstNodeDescription>;
|
|
2177
2247
|
} //#endregion
|
|
2178
2248
|
//#region src/workspace/LangiumDocuments.d.ts
|
|
2179
2249
|
declare class LangiumDocuments extends DefaultLangiumDocuments {
|
|
@@ -2193,8 +2263,8 @@ declare class LangiumDocuments extends DefaultLangiumDocuments {
|
|
|
2193
2263
|
/**
|
|
2194
2264
|
* Returns all documents for a project, including both project documents and documents included by the project.
|
|
2195
2265
|
*/
|
|
2196
|
-
projectDocuments(projectId: ProjectId): Stream<LikeC4LangiumDocument>;
|
|
2197
|
-
groupedByProject(): Record<ProjectId, NonEmptyArray<LikeC4LangiumDocument>>;
|
|
2266
|
+
projectDocuments(projectId: ProjectId$1): Stream<LikeC4LangiumDocument>;
|
|
2267
|
+
groupedByProject(): Record<ProjectId$1, NonEmptyArray$1<LikeC4LangiumDocument>>;
|
|
2198
2268
|
/**
|
|
2199
2269
|
* Reset the project IDs of all documents.
|
|
2200
2270
|
* Returns the URIs
|
|
@@ -2265,12 +2335,12 @@ declare class LikeC4ScopeProvider extends DefaultScopeProvider {
|
|
|
2265
2335
|
viewOf,
|
|
2266
2336
|
extends: ext
|
|
2267
2337
|
}: ElementView): Generator<AstNodeDescription>;
|
|
2268
|
-
protected getScopeForStrictFqnRef(projectId: ProjectId, container: StrictFqnRef, context: ReferenceInfo): Scope;
|
|
2338
|
+
protected getScopeForStrictFqnRef(projectId: ProjectId$1, container: StrictFqnRef, context: ReferenceInfo): Scope;
|
|
2269
2339
|
protected genScopeExtendDeployment({
|
|
2270
2340
|
deploymentNode
|
|
2271
2341
|
}: ExtendDeployment): Generator<AstNodeDescription>;
|
|
2272
|
-
protected streamForFqnRef(projectId: ProjectId, container: FqnRef$2, context: ReferenceInfo): Stream<AstNodeDescription>;
|
|
2273
|
-
protected genScopeForParentlessFqnRef(projectId: ProjectId, container: FqnRef$2, context: ReferenceInfo): Generator<AstNodeDescription>;
|
|
2342
|
+
protected streamForFqnRef(projectId: ProjectId$1, container: FqnRef$2, context: ReferenceInfo): Stream<AstNodeDescription>;
|
|
2343
|
+
protected genScopeForParentlessFqnRef(projectId: ProjectId$1, container: FqnRef$2, context: ReferenceInfo): Generator<AstNodeDescription>;
|
|
2274
2344
|
/**
|
|
2275
2345
|
* Computes the scope for a given reference context.
|
|
2276
2346
|
*
|
|
@@ -2282,11 +2352,11 @@ declare class LikeC4ScopeProvider extends DefaultScopeProvider {
|
|
|
2282
2352
|
* It then iterates through the container hierarchy, collecting relevant scopes based on the reference type and container type.
|
|
2283
2353
|
* Finally, it combines the collected scopes with the global scope to produce the final scope.
|
|
2284
2354
|
*/
|
|
2285
|
-
protected computeScope(projectId: ProjectId, context: ReferenceInfo, referenceType?: string): Generator<AstNodeDescription>;
|
|
2355
|
+
protected computeScope(projectId: ProjectId$1, context: ReferenceInfo, referenceType?: string): Generator<AstNodeDescription>;
|
|
2286
2356
|
/**
|
|
2287
2357
|
* Create a global scope filtered for the given reference type.
|
|
2288
2358
|
*/
|
|
2289
|
-
protected getProjectScope(projectId: ProjectId, referenceType: string, context: ReferenceInfo): Scope;
|
|
2359
|
+
protected getProjectScope(projectId: ProjectId$1, referenceType: string, context: ReferenceInfo): Scope;
|
|
2290
2360
|
/**
|
|
2291
2361
|
* Create a global scope filtered for the given reference type.
|
|
2292
2362
|
*/
|
|
@@ -2311,15 +2381,15 @@ declare class FqnIndex<AstNd = Element> extends ADisposable {
|
|
|
2311
2381
|
constructor(services: LikeC4Services);
|
|
2312
2382
|
private documents;
|
|
2313
2383
|
get(document: LikeC4LangiumDocument): DocumentFqnIndex;
|
|
2314
|
-
resolve(reference: Referenceable): Fqn
|
|
2315
|
-
getFqn(el: AstNd): Fqn
|
|
2316
|
-
byFqn(projectId: ProjectId
|
|
2317
|
-
rootElements(projectId: ProjectId
|
|
2318
|
-
directChildrenOf(projectId: ProjectId
|
|
2384
|
+
resolve(reference: Referenceable): Fqn;
|
|
2385
|
+
getFqn(el: AstNd): Fqn;
|
|
2386
|
+
byFqn(projectId: ProjectId, fqn: Fqn): Stream<AstNodeDescriptionWithFqn>;
|
|
2387
|
+
rootElements(projectId: ProjectId): Stream<AstNodeDescriptionWithFqn>;
|
|
2388
|
+
directChildrenOf(projectId: ProjectId, parent: Fqn): Stream<AstNodeDescriptionWithFqn>;
|
|
2319
2389
|
/**
|
|
2320
2390
|
* Returns descedant elements with unique names in the scope
|
|
2321
2391
|
*/
|
|
2322
|
-
uniqueDescedants(projectId: ProjectId
|
|
2392
|
+
uniqueDescedants(projectId: ProjectId, parent: Fqn): Stream<AstNodeDescriptionWithFqn>;
|
|
2323
2393
|
protected createDocumentIndex(document: LikeC4LangiumDocument): DocumentFqnIndex;
|
|
2324
2394
|
}
|
|
2325
2395
|
declare class DocumentFqnIndex {
|
|
@@ -2336,28 +2406,28 @@ declare class DocumentFqnIndex {
|
|
|
2336
2406
|
* All elements by FQN
|
|
2337
2407
|
*/
|
|
2338
2408
|
private _byfqn;
|
|
2339
|
-
readonly projectId: ProjectId
|
|
2409
|
+
readonly projectId: ProjectId;
|
|
2340
2410
|
static readonly EMPTY: DocumentFqnIndex;
|
|
2341
2411
|
constructor(_rootElements: Array<AstNodeDescriptionWithFqn>,
|
|
2342
2412
|
/**
|
|
2343
2413
|
* direct children of elements
|
|
2344
2414
|
*/
|
|
2345
2415
|
|
|
2346
|
-
_children: MultiMap<Fqn
|
|
2416
|
+
_children: MultiMap<Fqn, AstNodeDescriptionWithFqn>,
|
|
2347
2417
|
/**
|
|
2348
2418
|
* All descendants of an element (unique by name)
|
|
2349
2419
|
*/
|
|
2350
2420
|
|
|
2351
|
-
_descendants: MultiMap<Fqn
|
|
2421
|
+
_descendants: MultiMap<Fqn, AstNodeDescriptionWithFqn>,
|
|
2352
2422
|
/**
|
|
2353
2423
|
* All elements by FQN
|
|
2354
2424
|
*/
|
|
2355
2425
|
|
|
2356
|
-
_byfqn: MultiMap<Fqn
|
|
2426
|
+
_byfqn: MultiMap<Fqn, AstNodeDescriptionWithFqn>, projectId: ProjectId);
|
|
2357
2427
|
rootElements(): readonly AstNodeDescriptionWithFqn[];
|
|
2358
|
-
byFqn(fqn: Fqn
|
|
2359
|
-
children(parent: Fqn
|
|
2360
|
-
descendants(nodeName: Fqn
|
|
2428
|
+
byFqn(fqn: Fqn): readonly AstNodeDescriptionWithFqn[];
|
|
2429
|
+
children(parent: Fqn): readonly AstNodeDescriptionWithFqn[];
|
|
2430
|
+
descendants(nodeName: Fqn): readonly AstNodeDescriptionWithFqn[];
|
|
2361
2431
|
} //#endregion
|
|
2362
2432
|
//#region src/model/deployments-index.d.ts
|
|
2363
2433
|
declare class DeploymentsIndex extends FqnIndex<DeploymentElement> {
|
|
@@ -2459,7 +2529,7 @@ declare class LastSeenArtifacts {
|
|
|
2459
2529
|
* @param projectId - Project id to look up.
|
|
2460
2530
|
* @returns LikeC4Styles or undefined.
|
|
2461
2531
|
*/
|
|
2462
|
-
styles(projectId: c4.ProjectId): LikeC4Styles
|
|
2532
|
+
styles(projectId: c4.ProjectId): LikeC4Styles | undefined;
|
|
2463
2533
|
/**
|
|
2464
2534
|
* Returns the last seen computed model for the given project, if available.
|
|
2465
2535
|
* @param projectId - Project id to look up.
|
|
@@ -2468,11 +2538,11 @@ declare class LastSeenArtifacts {
|
|
|
2468
2538
|
model(projectId: c4.ProjectId): LikeC4Model.Computed | undefined;
|
|
2469
2539
|
} //#endregion
|
|
2470
2540
|
//#region src/model/model-builder.d.ts
|
|
2471
|
-
type ModelParsedListener = (projectId: ProjectId, docs: URI[]) => void;
|
|
2541
|
+
type ModelParsedListener = (projectId: ProjectId$1, docs: URI[]) => void;
|
|
2472
2542
|
interface LikeC4ModelBuilder extends Disposable$1 {
|
|
2473
|
-
parseModel(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownParsed> | null>;
|
|
2474
|
-
unsafeSyncComputeModel(projectId: ProjectId): LikeC4Model<UnknownComputed>;
|
|
2475
|
-
computeModel(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownComputed>>;
|
|
2543
|
+
parseModel(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownParsed> | null>;
|
|
2544
|
+
unsafeSyncComputeModel(projectId: ProjectId$1): LikeC4Model<UnknownComputed>;
|
|
2545
|
+
computeModel(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownComputed>>;
|
|
2476
2546
|
onModelParsed(callback: ModelParsedListener): Disposable$1;
|
|
2477
2547
|
clearCache(): void;
|
|
2478
2548
|
} //#endregion
|
|
@@ -2548,15 +2618,15 @@ declare class LikeC4ModelLocator {
|
|
|
2548
2618
|
//#region src/views/LikeC4Views.d.ts
|
|
2549
2619
|
type GraphvizOut = {
|
|
2550
2620
|
readonly dot: string;
|
|
2551
|
-
readonly diagram: LayoutedView;
|
|
2621
|
+
readonly diagram: LayoutedView$1;
|
|
2552
2622
|
};
|
|
2553
2623
|
type GraphvizSvgOut = {
|
|
2554
|
-
readonly id: ViewId;
|
|
2624
|
+
readonly id: ViewId$1;
|
|
2555
2625
|
readonly dot: string;
|
|
2556
2626
|
readonly svg: string;
|
|
2557
2627
|
};
|
|
2558
2628
|
type LayoutViewParams = {
|
|
2559
|
-
viewId: ViewId;
|
|
2629
|
+
viewId: ViewId$1;
|
|
2560
2630
|
/**
|
|
2561
2631
|
* Type of layout to apply
|
|
2562
2632
|
* - 'manual' - applies manual layout if any
|
|
@@ -2564,8 +2634,9 @@ type LayoutViewParams = {
|
|
|
2564
2634
|
* - undefined - returns latest layout as is
|
|
2565
2635
|
*/
|
|
2566
2636
|
layoutType?: LayoutType | undefined;
|
|
2567
|
-
projectId?: ProjectId | undefined;
|
|
2568
|
-
cancelToken?: CancellationToken$1 | undefined;
|
|
2637
|
+
projectId?: ProjectId$1 | undefined;
|
|
2638
|
+
cancelToken?: CancellationToken$1 | undefined; /** Optional AI-generated layout hints */
|
|
2639
|
+
layoutHints?: AILayoutHints | undefined;
|
|
2569
2640
|
};
|
|
2570
2641
|
interface LikeC4Views {
|
|
2571
2642
|
readonly layouter: GraphvizLayouter;
|
|
@@ -2574,19 +2645,21 @@ interface LikeC4Views {
|
|
|
2574
2645
|
*
|
|
2575
2646
|
* @param projectId - project id, if not specified - uses the default project
|
|
2576
2647
|
*/
|
|
2577
|
-
computedViews(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<ComputedView[]>;
|
|
2648
|
+
computedViews(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<ComputedView[]>;
|
|
2578
2649
|
/**
|
|
2579
2650
|
* Layouts all views (ignoring any manual snapshots)
|
|
2580
2651
|
*
|
|
2581
2652
|
* @param projectId - project id, if not specified - uses the default project
|
|
2582
2653
|
*/
|
|
2583
|
-
layoutAllViews(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<GraphvizOut[]>;
|
|
2654
|
+
layoutAllViews(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<GraphvizOut[]>;
|
|
2584
2655
|
/**
|
|
2585
2656
|
* Layouts a view.
|
|
2586
|
-
* If layoutType is 'manual' - applies manual layout if any.
|
|
2587
|
-
* If layoutType is 'auto' - returns latest version with drifts from manual layout if any
|
|
2657
|
+
* If `layoutType` is 'manual' - applies manual layout if any.
|
|
2658
|
+
* If `layoutType` is 'auto' - returns latest version with drifts from manual layout if any
|
|
2588
2659
|
* If not specified - returns latest layout as is
|
|
2589
2660
|
*
|
|
2661
|
+
* If `layoutHints` are provided, they will be used, ignoring any manual snapshots, and the resulting layout will not be cached (i.e. it will be computed on every call)
|
|
2662
|
+
*
|
|
2590
2663
|
* If view not found in model, but there is a snapshot - it will be returned (with empty DOT)
|
|
2591
2664
|
*/
|
|
2592
2665
|
layoutView(params: LayoutViewParams): Promise<GraphvizOut | null>;
|
|
@@ -2595,25 +2668,25 @@ interface LikeC4Views {
|
|
|
2595
2668
|
* If diagram has manual layout, it will be used.
|
|
2596
2669
|
* @param projectId - project id, if not specified - uses the default project
|
|
2597
2670
|
*/
|
|
2598
|
-
diagrams(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<Array<DiagramView>>;
|
|
2671
|
+
diagrams(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<Array<DiagramView>>;
|
|
2599
2672
|
/**
|
|
2600
2673
|
* Returns all layouted views as Graphviz output (i.e. views with layout computed)
|
|
2601
2674
|
* @param projectId - project id, if not specified - uses the default project
|
|
2602
2675
|
*/
|
|
2603
|
-
viewsAsGraphvizOut(projectId?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<Array<GraphvizSvgOut>>;
|
|
2676
|
+
viewsAsGraphvizOut(projectId?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<Array<GraphvizSvgOut>>;
|
|
2604
2677
|
/**
|
|
2605
2678
|
* Open view in the preview panel.
|
|
2606
2679
|
* (works only if running as a vscode extension)
|
|
2607
2680
|
*
|
|
2608
2681
|
* @param projectId - project id, if not specified - uses the default project
|
|
2609
2682
|
*/
|
|
2610
|
-
openView(viewId: ViewId, projectId?: ProjectId | undefined): Promise<void>;
|
|
2683
|
+
openView(viewId: ViewId$1, projectId?: ProjectId$1 | undefined): Promise<void>;
|
|
2611
2684
|
/**
|
|
2612
2685
|
* Computes and layouts an adhoc view (not defined in the model)
|
|
2613
2686
|
*
|
|
2614
2687
|
* @param projectId - project id, if not specified - uses the default project
|
|
2615
2688
|
*/
|
|
2616
|
-
adhocView(predicates: AdhocViewPredicate[], projectId?: ProjectId | undefined): Promise<LayoutedView>;
|
|
2689
|
+
adhocView(predicates: AdhocViewPredicate[], projectId?: ProjectId$1 | undefined): Promise<LayoutedView$1>;
|
|
2617
2690
|
} //#endregion
|
|
2618
2691
|
//#region src/views/index.d.ts
|
|
2619
2692
|
//#endregion
|
|
@@ -2679,58 +2752,58 @@ declare class BaseParser {
|
|
|
2679
2752
|
declare const DocumentParserFromMixins: {
|
|
2680
2753
|
new (...args: any[]): {
|
|
2681
2754
|
parseGlobals(): void;
|
|
2682
|
-
parseAndStoreGlobalPredicateGroupOrDynamic(astRule: GlobalPredicateGroup | GlobalDynamicPredicateGroup, id: ProjectId, c4Globals: ParsedAstGlobals): void;
|
|
2683
|
-
parseGlobalPredicateGroup(astRule: GlobalPredicateGroup): ProjectId[];
|
|
2684
|
-
parseGlobalDynamicPredicateGroup(astRule: GlobalDynamicPredicateGroup): ProjectId[];
|
|
2685
|
-
parseGlobalStyleOrGroup(astRule: GlobalStyle | GlobalStyleGroup): ProjectId[];
|
|
2755
|
+
parseAndStoreGlobalPredicateGroupOrDynamic(astRule: GlobalPredicateGroup | GlobalDynamicPredicateGroup, id: ProjectId$1, c4Globals: ParsedAstGlobals): void;
|
|
2756
|
+
parseGlobalPredicateGroup(astRule: GlobalPredicateGroup): ProjectId$1[];
|
|
2757
|
+
parseGlobalDynamicPredicateGroup(astRule: GlobalDynamicPredicateGroup): ProjectId$1[];
|
|
2758
|
+
parseGlobalStyleOrGroup(astRule: GlobalStyle | GlobalStyleGroup): ProjectId$1[];
|
|
2686
2759
|
parseViews(): void;
|
|
2687
2760
|
parseElementView(astNode: ElementView, additionalStyles: any[]): ParsedAstElementView;
|
|
2688
|
-
parseElementViewRule(astRule: ViewRule): ProjectId;
|
|
2689
|
-
parseViewRulePredicate(astNode: ViewRulePredicate): ProjectId;
|
|
2690
|
-
parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): ProjectId;
|
|
2761
|
+
parseElementViewRule(astRule: ViewRule): ProjectId$1;
|
|
2762
|
+
parseViewRulePredicate(astNode: ViewRulePredicate): ProjectId$1;
|
|
2763
|
+
parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): ProjectId$1;
|
|
2691
2764
|
parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): any;
|
|
2692
|
-
parseViewRuleGroup(astNode: ViewRuleGroup): ProjectId;
|
|
2693
|
-
parseViewRuleRank(astRule: ViewRuleRank): ProjectId;
|
|
2694
|
-
parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): ProjectId;
|
|
2695
|
-
parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): ProjectId;
|
|
2765
|
+
parseViewRuleGroup(astNode: ViewRuleGroup): ProjectId$1;
|
|
2766
|
+
parseViewRuleRank(astRule: ViewRuleRank): ProjectId$1;
|
|
2767
|
+
parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): ProjectId$1;
|
|
2768
|
+
parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): ProjectId$1;
|
|
2696
2769
|
parseDynamicElementView(astNode: DynamicView, additionalStyles: any[]): ParsedAstDynamicView;
|
|
2697
|
-
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
|
|
2698
|
-
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
|
|
2699
|
-
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
|
|
2700
|
-
parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
|
|
2701
|
-
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
|
|
2702
|
-
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
|
|
2703
|
-
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest0.Writable<type_fest0.Except<ProjectId, "source", {
|
|
2770
|
+
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId$1;
|
|
2771
|
+
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId$1;
|
|
2772
|
+
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId$1;
|
|
2773
|
+
parseDynamicStep(node: DynamicViewStep): ProjectId$1 | ProjectId$1;
|
|
2774
|
+
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId$1, target: ProjectId$1]>): ProjectId$1[];
|
|
2775
|
+
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId$1;
|
|
2776
|
+
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest0.Writable<type_fest0.Except<ProjectId$1, "source", {
|
|
2704
2777
|
requireExactProps: true;
|
|
2705
2778
|
}>>;
|
|
2706
|
-
parsePredicate(astNode: ExpressionV2): ProjectId;
|
|
2707
|
-
parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
|
|
2708
|
-
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2709
|
-
parseElementExpression(astNode: FqnExpr$2): ProjectId;
|
|
2710
|
-
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId;
|
|
2711
|
-
parseElementPredicateWith(astNode: FqnExprWith): ProjectId;
|
|
2712
|
-
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId;
|
|
2713
|
-
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2714
|
-
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId;
|
|
2715
|
-
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId;
|
|
2716
|
-
parseRelationExpression(astNode: RelationExpr$1): ProjectId;
|
|
2717
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
2718
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
2719
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
2720
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
2721
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2722
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
2723
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
2724
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
2725
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
2726
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
2727
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
2728
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
2729
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2730
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
2731
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
2732
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
2733
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
2779
|
+
parsePredicate(astNode: ExpressionV2): ProjectId$1;
|
|
2780
|
+
parseElementPredicate(astNode: FqnExprOrWith): ProjectId$1;
|
|
2781
|
+
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
2782
|
+
parseElementExpression(astNode: FqnExpr$2): ProjectId$1;
|
|
2783
|
+
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
2784
|
+
parseElementPredicateWith(astNode: FqnExprWith): ProjectId$1;
|
|
2785
|
+
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId$1;
|
|
2786
|
+
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
2787
|
+
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
2788
|
+
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId$1;
|
|
2789
|
+
parseRelationExpression(astNode: RelationExpr$1): ProjectId$1;
|
|
2790
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
2791
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
2792
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
2793
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
2794
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
2795
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
2796
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
2797
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
2798
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
2799
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
2800
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
2801
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
2802
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
2803
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
2804
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
2805
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
2806
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
2734
2807
|
isValid: IsValidFn;
|
|
2735
2808
|
docUri: string;
|
|
2736
2809
|
docPathInProject: string;
|
|
@@ -2740,23 +2813,23 @@ declare const DocumentParserFromMixins: {
|
|
|
2740
2813
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
2741
2814
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
2742
2815
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
2743
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
2816
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
2744
2817
|
getAstNodePath(node: AstNode): string;
|
|
2745
2818
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
2746
2819
|
[key: string]: string | string[];
|
|
2747
2820
|
} | undefined;
|
|
2748
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
2821
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
2749
2822
|
convertTags<E extends {
|
|
2750
2823
|
tags?: Tags;
|
|
2751
2824
|
}>(withTags?: E | undefined): any;
|
|
2752
2825
|
parseTags<E extends {
|
|
2753
2826
|
tags?: Tags;
|
|
2754
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
2755
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2756
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2757
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
2827
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
2828
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2829
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2830
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
2758
2831
|
parseImageAlias(value: string): string | undefined;
|
|
2759
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
2832
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
2760
2833
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
2761
2834
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
2762
2835
|
parseBaseProps(props: {
|
|
@@ -2771,71 +2844,71 @@ declare const DocumentParserFromMixins: {
|
|
|
2771
2844
|
technology?: string | undefined;
|
|
2772
2845
|
}): {
|
|
2773
2846
|
title?: string;
|
|
2774
|
-
summary?: ProjectId;
|
|
2775
|
-
description?: ProjectId;
|
|
2847
|
+
summary?: ProjectId$1;
|
|
2848
|
+
description?: ProjectId$1;
|
|
2776
2849
|
technology?: string;
|
|
2777
2850
|
};
|
|
2778
2851
|
parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
|
|
2779
|
-
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId;
|
|
2780
|
-
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId;
|
|
2781
|
-
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId;
|
|
2852
|
+
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId$1;
|
|
2853
|
+
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId$1;
|
|
2854
|
+
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId$1;
|
|
2782
2855
|
parseDeployment(): void;
|
|
2783
2856
|
parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
|
|
2784
2857
|
parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
|
|
2785
2858
|
parseExtendDeployment(astNode: ExtendDeployment): ParsedAstExtend | null;
|
|
2786
|
-
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId;
|
|
2859
|
+
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId$1;
|
|
2787
2860
|
parseDeploymentRelation(astNode: DeploymentRelation): ParsedAstDeploymentRelation;
|
|
2788
2861
|
};
|
|
2789
2862
|
} & {
|
|
2790
2863
|
new (...args: any[]): {
|
|
2791
2864
|
parseViews(): void;
|
|
2792
2865
|
parseElementView(astNode: ElementView, additionalStyles: any[]): ParsedAstElementView;
|
|
2793
|
-
parseElementViewRule(astRule: ViewRule): ProjectId;
|
|
2794
|
-
parseViewRulePredicate(astNode: ViewRulePredicate): ProjectId;
|
|
2795
|
-
parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): ProjectId;
|
|
2866
|
+
parseElementViewRule(astRule: ViewRule): ProjectId$1;
|
|
2867
|
+
parseViewRulePredicate(astNode: ViewRulePredicate): ProjectId$1;
|
|
2868
|
+
parseViewRuleGlobalPredicateRef(astRule: ViewRuleGlobalPredicateRef | DynamicViewGlobalPredicateRef): ProjectId$1;
|
|
2796
2869
|
parseViewRuleStyleOrGlobalRef(astRule: ViewRuleStyleOrGlobalRef): any;
|
|
2797
|
-
parseViewRuleGroup(astNode: ViewRuleGroup): ProjectId;
|
|
2798
|
-
parseViewRuleRank(astRule: ViewRuleRank): ProjectId;
|
|
2799
|
-
parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): ProjectId;
|
|
2800
|
-
parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): ProjectId;
|
|
2870
|
+
parseViewRuleGroup(astNode: ViewRuleGroup): ProjectId$1;
|
|
2871
|
+
parseViewRuleRank(astRule: ViewRuleRank): ProjectId$1;
|
|
2872
|
+
parseViewRuleStyle(astRule: ViewRuleStyle | GlobalStyle): ProjectId$1;
|
|
2873
|
+
parseViewRuleGlobalStyle(astRule: ViewRuleGlobalStyle): ProjectId$1;
|
|
2801
2874
|
parseDynamicElementView(astNode: DynamicView, additionalStyles: any[]): ParsedAstDynamicView;
|
|
2802
|
-
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId;
|
|
2803
|
-
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId;
|
|
2804
|
-
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId;
|
|
2805
|
-
parseDynamicStep(node: DynamicViewStep): ProjectId | ProjectId;
|
|
2806
|
-
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId, target: ProjectId]>): ProjectId[];
|
|
2807
|
-
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId;
|
|
2808
|
-
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest0.Writable<type_fest0.Except<ProjectId, "source", {
|
|
2875
|
+
parseDynamicViewRule(astRule: DynamicViewRule): ProjectId$1;
|
|
2876
|
+
parseDynamicViewIncludePredicate(astRule: DynamicViewIncludePredicate): ProjectId$1;
|
|
2877
|
+
parseDynamicParallelSteps(node: DynamicViewParallelSteps): ProjectId$1;
|
|
2878
|
+
parseDynamicStep(node: DynamicViewStep): ProjectId$1 | ProjectId$1;
|
|
2879
|
+
recursiveParseDynamicStepChain(node: DynamicStepChain, callstack?: Array<[source: ProjectId$1, target: ProjectId$1]>): ProjectId$1[];
|
|
2880
|
+
parseDynamicStepSingle(node: DynamicStepSingle): ProjectId$1;
|
|
2881
|
+
parseAbstractDynamicStep(astnode: AbstractDynamicStep): type_fest0.Writable<type_fest0.Except<ProjectId$1, "source", {
|
|
2809
2882
|
requireExactProps: true;
|
|
2810
2883
|
}>>;
|
|
2811
|
-
parsePredicate(astNode: ExpressionV2): ProjectId;
|
|
2812
|
-
parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
|
|
2813
|
-
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2814
|
-
parseElementExpression(astNode: FqnExpr$2): ProjectId;
|
|
2815
|
-
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId;
|
|
2816
|
-
parseElementPredicateWith(astNode: FqnExprWith): ProjectId;
|
|
2817
|
-
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId;
|
|
2818
|
-
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2819
|
-
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId;
|
|
2820
|
-
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId;
|
|
2821
|
-
parseRelationExpression(astNode: RelationExpr$1): ProjectId;
|
|
2822
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
2823
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
2824
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
2825
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
2826
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2827
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
2828
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
2829
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
2830
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
2831
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
2832
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
2833
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
2834
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2835
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
2836
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
2837
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
2838
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
2884
|
+
parsePredicate(astNode: ExpressionV2): ProjectId$1;
|
|
2885
|
+
parseElementPredicate(astNode: FqnExprOrWith): ProjectId$1;
|
|
2886
|
+
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
2887
|
+
parseElementExpression(astNode: FqnExpr$2): ProjectId$1;
|
|
2888
|
+
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
2889
|
+
parseElementPredicateWith(astNode: FqnExprWith): ProjectId$1;
|
|
2890
|
+
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId$1;
|
|
2891
|
+
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
2892
|
+
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
2893
|
+
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId$1;
|
|
2894
|
+
parseRelationExpression(astNode: RelationExpr$1): ProjectId$1;
|
|
2895
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
2896
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
2897
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
2898
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
2899
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
2900
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
2901
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
2902
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
2903
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
2904
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
2905
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
2906
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
2907
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
2908
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
2909
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
2910
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
2911
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
2839
2912
|
isValid: IsValidFn;
|
|
2840
2913
|
docUri: string;
|
|
2841
2914
|
docPathInProject: string;
|
|
@@ -2845,23 +2918,23 @@ declare const DocumentParserFromMixins: {
|
|
|
2845
2918
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
2846
2919
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
2847
2920
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
2848
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
2921
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
2849
2922
|
getAstNodePath(node: AstNode): string;
|
|
2850
2923
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
2851
2924
|
[key: string]: string | string[];
|
|
2852
2925
|
} | undefined;
|
|
2853
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
2926
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
2854
2927
|
convertTags<E extends {
|
|
2855
2928
|
tags?: Tags;
|
|
2856
2929
|
}>(withTags?: E | undefined): any;
|
|
2857
2930
|
parseTags<E extends {
|
|
2858
2931
|
tags?: Tags;
|
|
2859
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
2860
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2861
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2862
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
2932
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
2933
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2934
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2935
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
2863
2936
|
parseImageAlias(value: string): string | undefined;
|
|
2864
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
2937
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
2865
2938
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
2866
2939
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
2867
2940
|
parseBaseProps(props: {
|
|
@@ -2876,19 +2949,19 @@ declare const DocumentParserFromMixins: {
|
|
|
2876
2949
|
technology?: string | undefined;
|
|
2877
2950
|
}): {
|
|
2878
2951
|
title?: string;
|
|
2879
|
-
summary?: ProjectId;
|
|
2880
|
-
description?: ProjectId;
|
|
2952
|
+
summary?: ProjectId$1;
|
|
2953
|
+
description?: ProjectId$1;
|
|
2881
2954
|
technology?: string;
|
|
2882
2955
|
};
|
|
2883
2956
|
parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
|
|
2884
|
-
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId;
|
|
2885
|
-
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId;
|
|
2886
|
-
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId;
|
|
2957
|
+
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId$1;
|
|
2958
|
+
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId$1;
|
|
2959
|
+
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId$1;
|
|
2887
2960
|
parseDeployment(): void;
|
|
2888
2961
|
parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
|
|
2889
2962
|
parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
|
|
2890
2963
|
parseExtendDeployment(astNode: ExtendDeployment): ParsedAstExtend | null;
|
|
2891
|
-
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId;
|
|
2964
|
+
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId$1;
|
|
2892
2965
|
parseDeploymentRelation(astNode: DeploymentRelation): ParsedAstDeploymentRelation;
|
|
2893
2966
|
};
|
|
2894
2967
|
} & {
|
|
@@ -2905,23 +2978,23 @@ declare const DocumentParserFromMixins: {
|
|
|
2905
2978
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
2906
2979
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
2907
2980
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
2908
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
2981
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
2909
2982
|
getAstNodePath(node: AstNode): string;
|
|
2910
2983
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
2911
2984
|
[key: string]: string | string[];
|
|
2912
2985
|
} | undefined;
|
|
2913
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
2986
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
2914
2987
|
convertTags<E extends {
|
|
2915
2988
|
tags?: Tags;
|
|
2916
2989
|
}>(withTags?: E | undefined): any;
|
|
2917
2990
|
parseTags<E extends {
|
|
2918
2991
|
tags?: Tags;
|
|
2919
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
2920
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2921
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2922
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
2992
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
2993
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2994
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
2995
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
2923
2996
|
parseImageAlias(value: string): string | undefined;
|
|
2924
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
2997
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
2925
2998
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
2926
2999
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
2927
3000
|
parseBaseProps(props: {
|
|
@@ -2936,41 +3009,41 @@ declare const DocumentParserFromMixins: {
|
|
|
2936
3009
|
technology?: string | undefined;
|
|
2937
3010
|
}): {
|
|
2938
3011
|
title?: string;
|
|
2939
|
-
summary?: ProjectId;
|
|
2940
|
-
description?: ProjectId;
|
|
3012
|
+
summary?: ProjectId$1;
|
|
3013
|
+
description?: ProjectId$1;
|
|
2941
3014
|
technology?: string;
|
|
2942
3015
|
};
|
|
2943
3016
|
};
|
|
2944
3017
|
} & {
|
|
2945
3018
|
new (...args: any[]): {
|
|
2946
|
-
parsePredicate(astNode: ExpressionV2): ProjectId;
|
|
2947
|
-
parseElementPredicate(astNode: FqnExprOrWith): ProjectId;
|
|
2948
|
-
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2949
|
-
parseElementExpression(astNode: FqnExpr$2): ProjectId;
|
|
2950
|
-
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId;
|
|
2951
|
-
parseElementPredicateWith(astNode: FqnExprWith): ProjectId;
|
|
2952
|
-
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId;
|
|
2953
|
-
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2954
|
-
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId;
|
|
2955
|
-
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId;
|
|
2956
|
-
parseRelationExpression(astNode: RelationExpr$1): ProjectId;
|
|
2957
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
2958
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
2959
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
2960
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
2961
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
2962
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
2963
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
2964
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
2965
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
2966
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
2967
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
2968
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
2969
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
2970
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
2971
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
2972
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
2973
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
3019
|
+
parsePredicate(astNode: ExpressionV2): ProjectId$1;
|
|
3020
|
+
parseElementPredicate(astNode: FqnExprOrWith): ProjectId$1;
|
|
3021
|
+
parseElementPredicateOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3022
|
+
parseElementExpression(astNode: FqnExpr$2): ProjectId$1;
|
|
3023
|
+
parseElementPredicateWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3024
|
+
parseElementPredicateWith(astNode: FqnExprWith): ProjectId$1;
|
|
3025
|
+
parseRelationPredicate(astNode: RelationExprOrWith): ProjectId$1;
|
|
3026
|
+
parseRelationPredicateOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3027
|
+
parseRelationPredicateWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3028
|
+
parseRelationPredicateWith(astNode: RelationExprWith): ProjectId$1;
|
|
3029
|
+
parseRelationExpression(astNode: RelationExpr$1): ProjectId$1;
|
|
3030
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
3031
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
3032
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
3033
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
3034
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3035
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3036
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
3037
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
3038
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
3039
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
3040
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
3041
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
3042
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3043
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3044
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
3045
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
3046
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
2974
3047
|
isValid: IsValidFn;
|
|
2975
3048
|
docUri: string;
|
|
2976
3049
|
docPathInProject: string;
|
|
@@ -2980,23 +3053,23 @@ declare const DocumentParserFromMixins: {
|
|
|
2980
3053
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
2981
3054
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
2982
3055
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
2983
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3056
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
2984
3057
|
getAstNodePath(node: AstNode): string;
|
|
2985
3058
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
2986
3059
|
[key: string]: string | string[];
|
|
2987
3060
|
} | undefined;
|
|
2988
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3061
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
2989
3062
|
convertTags<E extends {
|
|
2990
3063
|
tags?: Tags;
|
|
2991
3064
|
}>(withTags?: E | undefined): any;
|
|
2992
3065
|
parseTags<E extends {
|
|
2993
3066
|
tags?: Tags;
|
|
2994
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
2995
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2996
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
2997
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3067
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3068
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3069
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3070
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
2998
3071
|
parseImageAlias(value: string): string | undefined;
|
|
2999
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3072
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3000
3073
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3001
3074
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3002
3075
|
parseBaseProps(props: {
|
|
@@ -3011,34 +3084,34 @@ declare const DocumentParserFromMixins: {
|
|
|
3011
3084
|
technology?: string | undefined;
|
|
3012
3085
|
}): {
|
|
3013
3086
|
title?: string;
|
|
3014
|
-
summary?: ProjectId;
|
|
3015
|
-
description?: ProjectId;
|
|
3087
|
+
summary?: ProjectId$1;
|
|
3088
|
+
description?: ProjectId$1;
|
|
3016
3089
|
technology?: string;
|
|
3017
3090
|
};
|
|
3018
3091
|
};
|
|
3019
3092
|
} & {
|
|
3020
3093
|
new (...args: any[]): {
|
|
3021
3094
|
parseDeploymentView(astNode: DeploymentView): ParsedAstDeploymentView;
|
|
3022
|
-
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId;
|
|
3023
|
-
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId;
|
|
3024
|
-
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId;
|
|
3025
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
3026
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
3027
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
3028
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
3029
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
3030
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
3031
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
3032
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
3033
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
3034
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
3035
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
3036
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
3037
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
3038
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
3039
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
3040
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
3041
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
3095
|
+
parseDeploymentViewRule(astRule: DeploymentViewRule): ProjectId$1;
|
|
3096
|
+
parseDeploymentViewRulePredicate(astRule: DeploymentViewRulePredicate): ProjectId$1;
|
|
3097
|
+
parseDeploymentViewRuleStyle(astRule: DeploymentViewRuleStyle): ProjectId$1;
|
|
3098
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
3099
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
3100
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
3101
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
3102
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3103
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3104
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
3105
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
3106
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
3107
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
3108
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
3109
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
3110
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3111
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3112
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
3113
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
3114
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
3042
3115
|
isValid: IsValidFn;
|
|
3043
3116
|
docUri: string;
|
|
3044
3117
|
docPathInProject: string;
|
|
@@ -3048,23 +3121,23 @@ declare const DocumentParserFromMixins: {
|
|
|
3048
3121
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
3049
3122
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
3050
3123
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
3051
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3124
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
3052
3125
|
getAstNodePath(node: AstNode): string;
|
|
3053
3126
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
3054
3127
|
[key: string]: string | string[];
|
|
3055
3128
|
} | undefined;
|
|
3056
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3129
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
3057
3130
|
convertTags<E extends {
|
|
3058
3131
|
tags?: Tags;
|
|
3059
3132
|
}>(withTags?: E | undefined): any;
|
|
3060
3133
|
parseTags<E extends {
|
|
3061
3134
|
tags?: Tags;
|
|
3062
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
3063
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3064
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3065
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3135
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3136
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3137
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3138
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
3066
3139
|
parseImageAlias(value: string): string | undefined;
|
|
3067
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3140
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3068
3141
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3069
3142
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3070
3143
|
parseBaseProps(props: {
|
|
@@ -3079,15 +3152,15 @@ declare const DocumentParserFromMixins: {
|
|
|
3079
3152
|
technology?: string | undefined;
|
|
3080
3153
|
}): {
|
|
3081
3154
|
title?: string;
|
|
3082
|
-
summary?: ProjectId;
|
|
3083
|
-
description?: ProjectId;
|
|
3155
|
+
summary?: ProjectId$1;
|
|
3156
|
+
description?: ProjectId$1;
|
|
3084
3157
|
technology?: string;
|
|
3085
3158
|
};
|
|
3086
3159
|
parseDeployment(): void;
|
|
3087
3160
|
parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
|
|
3088
3161
|
parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
|
|
3089
3162
|
parseExtendDeployment(astNode: ExtendDeployment): ParsedAstExtend | null;
|
|
3090
|
-
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId;
|
|
3163
|
+
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId$1;
|
|
3091
3164
|
parseDeploymentRelation(astNode: DeploymentRelation): ParsedAstDeploymentRelation;
|
|
3092
3165
|
};
|
|
3093
3166
|
} & {
|
|
@@ -3096,25 +3169,25 @@ declare const DocumentParserFromMixins: {
|
|
|
3096
3169
|
parseDeploymentNode(astNode: DeploymentNode): ParsedAstDeployment.Node;
|
|
3097
3170
|
parseDeployedInstance(astNode: DeployedInstance): ParsedAstDeployment.Instance;
|
|
3098
3171
|
parseExtendDeployment(astNode: ExtendDeployment): ParsedAstExtend | null;
|
|
3099
|
-
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId;
|
|
3172
|
+
_resolveDeploymentRelationSource(node: DeploymentRelation): ProjectId$1;
|
|
3100
3173
|
parseDeploymentRelation(astNode: DeploymentRelation): ParsedAstDeploymentRelation;
|
|
3101
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
3102
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
3103
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
3104
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
3105
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
3106
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
3107
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
3108
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
3109
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
3110
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
3111
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
3112
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
3113
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
3114
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
3115
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
3116
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
3117
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
3174
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
3175
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
3176
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
3177
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
3178
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3179
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3180
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
3181
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
3182
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
3183
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
3184
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
3185
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
3186
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3187
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3188
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
3189
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
3190
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
3118
3191
|
isValid: IsValidFn;
|
|
3119
3192
|
docUri: string;
|
|
3120
3193
|
docPathInProject: string;
|
|
@@ -3124,23 +3197,23 @@ declare const DocumentParserFromMixins: {
|
|
|
3124
3197
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
3125
3198
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
3126
3199
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
3127
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3200
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
3128
3201
|
getAstNodePath(node: AstNode): string;
|
|
3129
3202
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
3130
3203
|
[key: string]: string | string[];
|
|
3131
3204
|
} | undefined;
|
|
3132
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3205
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
3133
3206
|
convertTags<E extends {
|
|
3134
3207
|
tags?: Tags;
|
|
3135
3208
|
}>(withTags?: E | undefined): any;
|
|
3136
3209
|
parseTags<E extends {
|
|
3137
3210
|
tags?: Tags;
|
|
3138
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
3139
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3140
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3141
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3211
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3212
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3213
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3214
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
3142
3215
|
parseImageAlias(value: string): string | undefined;
|
|
3143
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3216
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3144
3217
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3145
3218
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3146
3219
|
parseBaseProps(props: {
|
|
@@ -3155,8 +3228,8 @@ declare const DocumentParserFromMixins: {
|
|
|
3155
3228
|
technology?: string | undefined;
|
|
3156
3229
|
}): {
|
|
3157
3230
|
title?: string;
|
|
3158
|
-
summary?: ProjectId;
|
|
3159
|
-
description?: ProjectId;
|
|
3231
|
+
summary?: ProjectId$1;
|
|
3232
|
+
description?: ProjectId$1;
|
|
3160
3233
|
technology?: string;
|
|
3161
3234
|
};
|
|
3162
3235
|
};
|
|
@@ -3166,25 +3239,25 @@ declare const DocumentParserFromMixins: {
|
|
|
3166
3239
|
parseElement(astNode: Element): ParsedAstElement;
|
|
3167
3240
|
parseExtendElement(astNode: ExtendElement): ParsedAstExtend | null;
|
|
3168
3241
|
parseExtendRelation(astNode: ExtendRelation): ParsedAstExtendRelation | null;
|
|
3169
|
-
_resolveRelationSource(node: Relation): ProjectId | ProjectId;
|
|
3242
|
+
_resolveRelationSource(node: Relation): ProjectId$1 | ProjectId$1;
|
|
3170
3243
|
parseRelation(astNode: Relation): ParsedAstRelation;
|
|
3171
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
3172
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
3173
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
3174
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
3175
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
3176
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
3177
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
3178
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
3179
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
3180
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
3181
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
3182
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
3183
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
3184
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
3185
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
3186
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
3187
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
3244
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
3245
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
3246
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
3247
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
3248
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3249
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3250
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
3251
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
3252
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
3253
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
3254
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
3255
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
3256
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3257
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3258
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
3259
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
3260
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
3188
3261
|
isValid: IsValidFn;
|
|
3189
3262
|
docUri: string;
|
|
3190
3263
|
docPathInProject: string;
|
|
@@ -3194,23 +3267,23 @@ declare const DocumentParserFromMixins: {
|
|
|
3194
3267
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
3195
3268
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
3196
3269
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
3197
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3270
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
3198
3271
|
getAstNodePath(node: AstNode): string;
|
|
3199
3272
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
3200
3273
|
[key: string]: string | string[];
|
|
3201
3274
|
} | undefined;
|
|
3202
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3275
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
3203
3276
|
convertTags<E extends {
|
|
3204
3277
|
tags?: Tags;
|
|
3205
3278
|
}>(withTags?: E | undefined): any;
|
|
3206
3279
|
parseTags<E extends {
|
|
3207
3280
|
tags?: Tags;
|
|
3208
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
3209
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3210
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3211
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3281
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3282
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3283
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3284
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
3212
3285
|
parseImageAlias(value: string): string | undefined;
|
|
3213
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3286
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3214
3287
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3215
3288
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3216
3289
|
parseBaseProps(props: {
|
|
@@ -3225,8 +3298,8 @@ declare const DocumentParserFromMixins: {
|
|
|
3225
3298
|
technology?: string | undefined;
|
|
3226
3299
|
}): {
|
|
3227
3300
|
title?: string;
|
|
3228
|
-
summary?: ProjectId;
|
|
3229
|
-
description?: ProjectId;
|
|
3301
|
+
summary?: ProjectId$1;
|
|
3302
|
+
description?: ProjectId$1;
|
|
3230
3303
|
technology?: string;
|
|
3231
3304
|
};
|
|
3232
3305
|
};
|
|
@@ -3242,23 +3315,23 @@ declare const DocumentParserFromMixins: {
|
|
|
3242
3315
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
3243
3316
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
3244
3317
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
3245
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3318
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
3246
3319
|
getAstNodePath(node: AstNode): string;
|
|
3247
3320
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
3248
3321
|
[key: string]: string | string[];
|
|
3249
3322
|
} | undefined;
|
|
3250
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3323
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
3251
3324
|
convertTags<E extends {
|
|
3252
3325
|
tags?: Tags;
|
|
3253
3326
|
}>(withTags?: E | undefined): any;
|
|
3254
3327
|
parseTags<E extends {
|
|
3255
3328
|
tags?: Tags;
|
|
3256
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
3257
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3258
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3259
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3329
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3330
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3331
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3332
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
3260
3333
|
parseImageAlias(value: string): string | undefined;
|
|
3261
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3334
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3262
3335
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3263
3336
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3264
3337
|
parseBaseProps(props: {
|
|
@@ -3273,30 +3346,30 @@ declare const DocumentParserFromMixins: {
|
|
|
3273
3346
|
technology?: string | undefined;
|
|
3274
3347
|
}): {
|
|
3275
3348
|
title?: string;
|
|
3276
|
-
summary?: ProjectId;
|
|
3277
|
-
description?: ProjectId;
|
|
3349
|
+
summary?: ProjectId$1;
|
|
3350
|
+
description?: ProjectId$1;
|
|
3278
3351
|
technology?: string;
|
|
3279
3352
|
};
|
|
3280
3353
|
};
|
|
3281
3354
|
} & {
|
|
3282
3355
|
new (...args: any[]): {
|
|
3283
|
-
parseFqnRef(astNode: FqnRef$2): ProjectId;
|
|
3284
|
-
parseExpressionV2(astNode: ExpressionV2): ProjectId;
|
|
3285
|
-
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId;
|
|
3286
|
-
parseFqnExprWith(astNode: FqnExprWith): ProjectId;
|
|
3287
|
-
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId;
|
|
3288
|
-
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId;
|
|
3289
|
-
parseFqnExpr(astNode: FqnExpr$2): ProjectId;
|
|
3290
|
-
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId;
|
|
3291
|
-
parseFqnExpressions(astNode: FqnExpressions): ProjectId[];
|
|
3292
|
-
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId;
|
|
3293
|
-
parseRelationExprWith(astNode: RelationExprWith): ProjectId;
|
|
3294
|
-
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId["customRelation"], "expr">;
|
|
3295
|
-
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId;
|
|
3296
|
-
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId;
|
|
3297
|
-
parseRelationExpr(astNode: RelationExpr$1): ProjectId;
|
|
3298
|
-
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId | null;
|
|
3299
|
-
wrapInWhere(expr: ProjectId, condition: ProjectId | null): ProjectId;
|
|
3356
|
+
parseFqnRef(astNode: FqnRef$2): ProjectId$1;
|
|
3357
|
+
parseExpressionV2(astNode: ExpressionV2): ProjectId$1;
|
|
3358
|
+
parseFqnExprOrWith(astNode: FqnExprOrWith): ProjectId$1;
|
|
3359
|
+
parseFqnExprWith(astNode: FqnExprWith): ProjectId$1;
|
|
3360
|
+
parseFqnExprOrWhere(astNode: FqnExprOrWhere): ProjectId$1;
|
|
3361
|
+
parseFqnExprWhere(astNode: FqnExprWhere): ProjectId$1;
|
|
3362
|
+
parseFqnExpr(astNode: FqnExpr$2): ProjectId$1;
|
|
3363
|
+
parseFqnRefExpr(astNode: FqnRefExpr): ProjectId$1;
|
|
3364
|
+
parseFqnExpressions(astNode: FqnExpressions): ProjectId$1[];
|
|
3365
|
+
parseRelationExprOrWith(astNode: RelationExprOrWith): ProjectId$1;
|
|
3366
|
+
parseRelationExprWith(astNode: RelationExprWith): ProjectId$1;
|
|
3367
|
+
parseCustomRelationProperties(custom: CustomRelationProperties | undefined): type_fest0.Except<ProjectId$1["customRelation"], "expr">;
|
|
3368
|
+
parseRelationExprOrWhere(astNode: RelationExprOrWhere): ProjectId$1;
|
|
3369
|
+
parseRelationExprWhere(astNode: RelationExprWhere): ProjectId$1;
|
|
3370
|
+
parseRelationExpr(astNode: RelationExpr$1): ProjectId$1;
|
|
3371
|
+
parseInlineKindCondition(astNode: OutgoingRelationExpr): ProjectId$1 | null;
|
|
3372
|
+
wrapInWhere(expr: ProjectId$1, condition: ProjectId$1 | null): ProjectId$1;
|
|
3300
3373
|
isValid: IsValidFn;
|
|
3301
3374
|
docUri: string;
|
|
3302
3375
|
docPathInProject: string;
|
|
@@ -3306,23 +3379,23 @@ declare const DocumentParserFromMixins: {
|
|
|
3306
3379
|
logError(error: unknown, astNode?: AstNode | Reference<AstNode>, level?: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification"): void;
|
|
3307
3380
|
tryParse<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", node: N | undefined, fn: (node: NoInfer<N>) => T | undefined): T | undefined;
|
|
3308
3381
|
tryMap<N extends AstNode, T>(level: "base" | "model" | "deployment" | "fqnref" | "relation" | "views" | "globals" | "imports" | "specification", iterable: ReadonlyArray<N>, fn: (node: N) => T | undefined): T[];
|
|
3309
|
-
resolveFqn(node: FqnReferenceable): ProjectId;
|
|
3382
|
+
resolveFqn(node: FqnReferenceable): ProjectId$1;
|
|
3310
3383
|
getAstNodePath(node: AstNode): string;
|
|
3311
3384
|
getMetadata(metadataAstNode: MetadataProperty | undefined): {
|
|
3312
3385
|
[key: string]: string | string[];
|
|
3313
3386
|
} | undefined;
|
|
3314
|
-
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId | undefined;
|
|
3387
|
+
parseMarkdownOrString(markdownOrString: MarkdownOrString | undefined): ProjectId$1 | undefined;
|
|
3315
3388
|
convertTags<E extends {
|
|
3316
3389
|
tags?: Tags;
|
|
3317
3390
|
}>(withTags?: E | undefined): any;
|
|
3318
3391
|
parseTags<E extends {
|
|
3319
3392
|
tags?: Tags;
|
|
3320
|
-
}>(withTags?: E): ProjectId<ProjectId> | null;
|
|
3321
|
-
convertLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3322
|
-
parseLinks(source?: LinkProperty["$container"]): ProjectId<ProjectId> | undefined;
|
|
3323
|
-
parseIconProperty(prop: IconProperty | undefined): ProjectId | undefined;
|
|
3393
|
+
}>(withTags?: E): ProjectId$1<ProjectId$1> | null;
|
|
3394
|
+
convertLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3395
|
+
parseLinks(source?: LinkProperty["$container"]): ProjectId$1<ProjectId$1> | undefined;
|
|
3396
|
+
parseIconProperty(prop: IconProperty | undefined): ProjectId$1 | undefined;
|
|
3324
3397
|
parseImageAlias(value: string): string | undefined;
|
|
3325
|
-
parseColorLiteral(astNode: ColorLiteral$1): ProjectId | undefined;
|
|
3398
|
+
parseColorLiteral(astNode: ColorLiteral$1): ProjectId$1 | undefined;
|
|
3326
3399
|
parseElementStyle(elementProps: Array<ElementProperty> | ElementStyleProperty | undefined): ParsedElementStyle;
|
|
3327
3400
|
parseStyleProps(styleProps: Array<StyleProperty> | undefined): ParsedElementStyle;
|
|
3328
3401
|
parseBaseProps(props: {
|
|
@@ -3337,8 +3410,8 @@ declare const DocumentParserFromMixins: {
|
|
|
3337
3410
|
technology?: string | undefined;
|
|
3338
3411
|
}): {
|
|
3339
3412
|
title?: string;
|
|
3340
|
-
summary?: ProjectId;
|
|
3341
|
-
description?: ProjectId;
|
|
3413
|
+
summary?: ProjectId$1;
|
|
3414
|
+
description?: ProjectId$1;
|
|
3342
3415
|
technology?: string;
|
|
3343
3416
|
};
|
|
3344
3417
|
};
|
|
@@ -3348,7 +3421,7 @@ declare class LikeC4ModelParser {
|
|
|
3348
3421
|
private services;
|
|
3349
3422
|
protected cachedParsers: any;
|
|
3350
3423
|
constructor(services: LikeC4Services);
|
|
3351
|
-
documents(projectId: ProjectId): Stream<ParsedLikeC4LangiumDocument>;
|
|
3424
|
+
documents(projectId: ProjectId$1): Stream<ParsedLikeC4LangiumDocument>;
|
|
3352
3425
|
parse(doc: LangiumDocument): ParsedLikeC4LangiumDocument;
|
|
3353
3426
|
forDocument(doc: LangiumDocument): DocumentParser;
|
|
3354
3427
|
private createParser;
|
|
@@ -3368,7 +3441,7 @@ declare class LikeC4ModelChanges {
|
|
|
3368
3441
|
change
|
|
3369
3442
|
}: {
|
|
3370
3443
|
lookup: ViewLocateResult;
|
|
3371
|
-
change: Exclude<ViewChange, ViewChange.SaveViewSnapshot | ViewChange.ResetManualLayout>;
|
|
3444
|
+
change: Exclude<ViewChange, ViewChange.SaveViewSnapshot | ViewChange.ResetManualLayout | ViewChange.ChangeProperty>;
|
|
3372
3445
|
}): {
|
|
3373
3446
|
modifiedRange: Range;
|
|
3374
3447
|
edits: TextEdit[];
|
|
@@ -3386,8 +3459,8 @@ interface LikeC4LanguageServices {
|
|
|
3386
3459
|
/**
|
|
3387
3460
|
* Returns all projects with relevant documents
|
|
3388
3461
|
*/
|
|
3389
|
-
projects(): NonEmptyArray<{
|
|
3390
|
-
id: ProjectId;
|
|
3462
|
+
projects(): NonEmptyArray$1<{
|
|
3463
|
+
id: ProjectId$1;
|
|
3391
3464
|
folder: URI;
|
|
3392
3465
|
title: string;
|
|
3393
3466
|
documents: ReadonlyArray<URI>;
|
|
@@ -3396,8 +3469,8 @@ interface LikeC4LanguageServices {
|
|
|
3396
3469
|
/**
|
|
3397
3470
|
* Returns project by ID, returns default project if no ID is specified
|
|
3398
3471
|
*/
|
|
3399
|
-
project(projectId?: ProjectId): {
|
|
3400
|
-
id: ProjectId;
|
|
3472
|
+
project(projectId?: ProjectId$1): {
|
|
3473
|
+
id: ProjectId$1;
|
|
3401
3474
|
folder: URI;
|
|
3402
3475
|
title: string;
|
|
3403
3476
|
documents: ReadonlyArray<URI>;
|
|
@@ -3414,21 +3487,21 @@ interface LikeC4LanguageServices {
|
|
|
3414
3487
|
*
|
|
3415
3488
|
* If no {@link project} is specified, returns for default project
|
|
3416
3489
|
*/
|
|
3417
|
-
computedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownComputed>>;
|
|
3490
|
+
computedModel(project?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownComputed>>;
|
|
3418
3491
|
/**
|
|
3419
3492
|
* Returns {@link LikeC4Model} of the specified project, with layouted views {@link LayoutedView}
|
|
3420
3493
|
* Ready for rendering. Applies manual layouts if available.
|
|
3421
3494
|
*
|
|
3422
3495
|
* If no {@link project} is specified, returns for default project
|
|
3423
3496
|
*/
|
|
3424
|
-
layoutedModel(project?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownLayouted>>;
|
|
3497
|
+
layoutedModel(project?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<LikeC4Model<UnknownLayouted>>;
|
|
3425
3498
|
/**
|
|
3426
3499
|
* Returns diagrams (i.e. layouted views {@link LayoutedView}) for the specified project
|
|
3427
3500
|
* Applies manual layouts if available.
|
|
3428
3501
|
*
|
|
3429
3502
|
* If no {@link project} is specified, returns diagrams for default project
|
|
3430
3503
|
*/
|
|
3431
|
-
diagrams(project?: ProjectId | undefined, cancelToken?: CancellationToken$1): Promise<LayoutedView[]>;
|
|
3504
|
+
diagrams(project?: ProjectId$1 | undefined, cancelToken?: CancellationToken$1): Promise<LayoutedView$1[]>;
|
|
3432
3505
|
getErrors(): Array<{
|
|
3433
3506
|
message: string;
|
|
3434
3507
|
line: number;
|
|
@@ -3462,7 +3535,7 @@ interface LikeC4LanguageServices {
|
|
|
3462
3535
|
*/
|
|
3463
3536
|
interface FormatOptions {
|
|
3464
3537
|
/** Include all documents from these projects. */
|
|
3465
|
-
projectIds?: ReadonlyArray<ProjectId>;
|
|
3538
|
+
projectIds?: ReadonlyArray<ProjectId$1>;
|
|
3466
3539
|
/** Include these specific documents (by URI string). */
|
|
3467
3540
|
documentUris?: ReadonlyArray<string>;
|
|
3468
3541
|
/** Size of a tab in spaces (default: 2). */
|
|
@@ -3521,7 +3594,7 @@ declare class LikeC4DocumentSymbolProvider implements DocumentSymbolProvider {
|
|
|
3521
3594
|
protected getSpecSymbol(astSpec: SpecificationRule): DocumentSymbol[];
|
|
3522
3595
|
protected getModelSymbol(astModel: Model): DocumentSymbol[];
|
|
3523
3596
|
protected getDeploymentModelSymbol(astModel: ModelDeployments): DocumentSymbol[];
|
|
3524
|
-
protected getElementsSymbol(el: Element | Relation | ExtendElement): DocumentSymbol[];
|
|
3597
|
+
protected getElementsSymbol(el: Element | Relation | ExtendElement, parentFqn?: string): DocumentSymbol[];
|
|
3525
3598
|
protected getExtendElementSymbol(astElement: ExtendElement): DocumentSymbol[];
|
|
3526
3599
|
protected getElementSymbol(astElement: Element): DocumentSymbol[];
|
|
3527
3600
|
protected getModelViewsSymbol(astViews: ModelViews): DocumentSymbol[];
|
|
@@ -3558,7 +3631,7 @@ declare class LikeC4HoverProvider extends AstNodeHoverProvider {
|
|
|
3558
3631
|
* @param projectId - The project identifier for constructing view links.
|
|
3559
3632
|
* @returns Markdown string with model details, or undefined if no details available.
|
|
3560
3633
|
*/
|
|
3561
|
-
protected getElementModelHover(model: ElementModel, projectId: ProjectId): string | undefined;
|
|
3634
|
+
protected getElementModelHover(model: ElementModel, projectId: ProjectId$1): string | undefined;
|
|
3562
3635
|
/**
|
|
3563
3636
|
* Builds hover content for a deployment node (id, title, kind, summary).
|
|
3564
3637
|
* @param node - The deployment node AST node to generate hover content for.
|
|
@@ -3681,4 +3754,123 @@ interface LikeC4AddedServices {
|
|
|
3681
3754
|
}
|
|
3682
3755
|
type LikeC4Services = LangiumServices & LikeC4AddedServices;
|
|
3683
3756
|
//#endregion
|
|
3684
|
-
|
|
3757
|
+
//#region ../language-services/dist/_chunks/options.d.mts
|
|
3758
|
+
//#region src/common/LikeC4.d.ts
|
|
3759
|
+
interface LikeC4Langium {
|
|
3760
|
+
shared: LikeC4SharedServices;
|
|
3761
|
+
likec4: LikeC4Services;
|
|
3762
|
+
}
|
|
3763
|
+
declare class LikeC4 {
|
|
3764
|
+
protected readonly langium: LikeC4Langium;
|
|
3765
|
+
protected readonly logger: Logger;
|
|
3766
|
+
constructor(langium: LikeC4Langium, logger?: Logger);
|
|
3767
|
+
/**
|
|
3768
|
+
* File system path to the workspace root
|
|
3769
|
+
*/
|
|
3770
|
+
get workspace(): any;
|
|
3771
|
+
/**
|
|
3772
|
+
* URI of the workspace root
|
|
3773
|
+
*/
|
|
3774
|
+
get workspaceURI(): any;
|
|
3775
|
+
/**
|
|
3776
|
+
* URL of the workspace root
|
|
3777
|
+
*/
|
|
3778
|
+
get workspaceURL(): any;
|
|
3779
|
+
get languageServices(): LikeC4LanguageServices;
|
|
3780
|
+
get projectsManager(): ProjectsManager;
|
|
3781
|
+
get viewsService(): LikeC4Views;
|
|
3782
|
+
get modelBuilder(): LikeC4ModelBuilder;
|
|
3783
|
+
private get LangiumDocuments();
|
|
3784
|
+
ensureSingleProject(): void;
|
|
3785
|
+
/**
|
|
3786
|
+
* Diagram is a computed view, layouted using Graphviz
|
|
3787
|
+
* If diagram has manual layout, it will be used.
|
|
3788
|
+
* Used in React components
|
|
3789
|
+
*/
|
|
3790
|
+
diagrams(project?: string | undefined): Promise<LayoutedView[]>;
|
|
3791
|
+
/**
|
|
3792
|
+
* Builds LikeC4Model from all documents
|
|
3793
|
+
* Only computes view predicates {@link ComputedView} - i.e. no layout
|
|
3794
|
+
* Not ready for rendering, but enough to traverse
|
|
3795
|
+
*
|
|
3796
|
+
* Sync version does not read manual layouts
|
|
3797
|
+
* Use {@link computedModel} for a version that includes manual layouts
|
|
3798
|
+
*/
|
|
3799
|
+
syncComputedModel(project?: string | undefined): LikeC4Model.Computed;
|
|
3800
|
+
/**
|
|
3801
|
+
* Builds LikeC4Model from all documents
|
|
3802
|
+
* Only computes view predicates {@link ComputedView} - i.e. no layout
|
|
3803
|
+
* Not ready for rendering, but enough to traverse
|
|
3804
|
+
*/
|
|
3805
|
+
computedModel(project?: string | undefined): Promise<LikeC4Model.Computed>;
|
|
3806
|
+
projects(): NonEmptyArray<ProjectId>;
|
|
3807
|
+
/**
|
|
3808
|
+
* Same as {@link computedModel()}, but also applies layout
|
|
3809
|
+
* Ready for rendering
|
|
3810
|
+
*/
|
|
3811
|
+
layoutedModel(project?: string | undefined): Promise<LikeC4Model.Layouted>;
|
|
3812
|
+
getErrors(): Array<{
|
|
3813
|
+
message: string;
|
|
3814
|
+
line: number;
|
|
3815
|
+
range: {
|
|
3816
|
+
start: {
|
|
3817
|
+
line: number;
|
|
3818
|
+
character: number;
|
|
3819
|
+
};
|
|
3820
|
+
end: {
|
|
3821
|
+
line: number;
|
|
3822
|
+
character: number;
|
|
3823
|
+
};
|
|
3824
|
+
};
|
|
3825
|
+
sourceFsPath: string;
|
|
3826
|
+
}>;
|
|
3827
|
+
hasErrors(): boolean;
|
|
3828
|
+
/**
|
|
3829
|
+
* @returns true if there are errors
|
|
3830
|
+
*/
|
|
3831
|
+
printErrors(): boolean;
|
|
3832
|
+
/**
|
|
3833
|
+
* Returns the number of parsed documents in the workspace
|
|
3834
|
+
*/
|
|
3835
|
+
documentCount(): number;
|
|
3836
|
+
/**
|
|
3837
|
+
* @returns a function to dispose the listener
|
|
3838
|
+
*/
|
|
3839
|
+
onModelUpdate(listener: () => void): () => void;
|
|
3840
|
+
/**
|
|
3841
|
+
* Formats documents and returns a map of document URI → formatted source text.
|
|
3842
|
+
*
|
|
3843
|
+
* Target selection uses union semantics:
|
|
3844
|
+
* - Omit both `projects` and `documentUris` to format **all** documents.
|
|
3845
|
+
* - Provide `projects` to include all documents from those projects.
|
|
3846
|
+
* - Provide `documentUris` to include specific documents.
|
|
3847
|
+
* - Provide both to format the **union** (deduplicated).
|
|
3848
|
+
*/
|
|
3849
|
+
format(options?: LikeC4FormatOptions): Promise<Map<string, string>>;
|
|
3850
|
+
dispose(): Promise<void>;
|
|
3851
|
+
[Symbol.asyncDispose](): Promise<void>;
|
|
3852
|
+
}
|
|
3853
|
+
/**
|
|
3854
|
+
* Options for {@link LikeC4.format}.
|
|
3855
|
+
*
|
|
3856
|
+
* Same as {@link FormatOptions} but uses project name strings instead of {@link ProjectId}.
|
|
3857
|
+
*/
|
|
3858
|
+
interface LikeC4FormatOptions {
|
|
3859
|
+
/** Include all documents from these projects (by name). */
|
|
3860
|
+
projects?: ReadonlyArray<string>;
|
|
3861
|
+
/** Include these specific documents (by URI string). */
|
|
3862
|
+
documentUris?: ReadonlyArray<string>;
|
|
3863
|
+
/** Size of a tab in spaces (default: 2). */
|
|
3864
|
+
tabSize?: number;
|
|
3865
|
+
/** Prefer spaces over tabs (default: true). */
|
|
3866
|
+
insertSpaces?: boolean;
|
|
3867
|
+
/** Trim trailing whitespace on a line. */
|
|
3868
|
+
trimTrailingWhitespace?: boolean;
|
|
3869
|
+
/** Insert a newline character at the end of the file if one does not exist. */
|
|
3870
|
+
insertFinalNewline?: boolean;
|
|
3871
|
+
/** Trim all newlines after the final newline at the end of the file. */
|
|
3872
|
+
trimFinalNewlines?: boolean;
|
|
3873
|
+
} //#endregion
|
|
3874
|
+
//#region src/common/options.d.ts
|
|
3875
|
+
//#endregion
|
|
3876
|
+
export { LikeC4LanguageServices as n, LikeC4 as t };
|