Skip to content

Commit 94ad6cb

Browse files
committed
chore: update snapshot
1 parent 2d978f8 commit 94ad6cb

16 files changed

Lines changed: 291 additions & 0 deletions

tests/__snapshots__/tsnapi/@devframes/hub-ui/index.snapshot.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,11 @@ export type ViewerBackground = ColorSchemeValue | {
4141

4242
// #region Functions
4343
export declare function createUi(_?: CreateUiOptions): DevframeHubUi;
44+
// #endregion
45+
46+
// #region Referenced (internal)
47+
type BrandingLogo = string | {
48+
light: string;
49+
dark: string;
50+
};
4451
// #endregion

tests/__snapshots__/tsnapi/@devframes/hub/initiate.snapshot.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ export type DevframesInput = Array<DevframeDefinition | HubDevframeEntry | Thena
6767
export declare function initHub(_: InitHubOptions): HubInstance;
6868
// #endregion
6969

70+
// #region Referenced (internal)
71+
type Arrayable<T> = T | readonly T[];
72+
type Thenable<T> = T | Promise<T>;
73+
// #endregion
74+
7075
// #region Other
7176
export { DEVFRAMES_HUB_BASE }
7277
// #endregion

tests/__snapshots__/tsnapi/@devframes/hub/node.snapshot.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ export declare const hubTerminalsWrite: {
269269
};
270270
// #endregion
271271

272+
// #region Referenced (internal)
273+
type PartialWithoutId<T extends {
274+
id: string;
275+
}> = Partial<T> & {
276+
id: string;
277+
};
278+
// #endregion
279+
272280
// #region Other
273281
export { createHubContext }
274282
export { CreateHubContextOptions }

tests/__snapshots__/tsnapi/@devframes/json-render/node.snapshot.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,19 @@ export declare const jsonRenderDiagnostics: Diagnostics<{
6161
}, readonly [(d: Diagnostic, { method }?: {
6262
method?: "log" | "warn" | "error";
6363
}) => void]>;
64+
// #endregion
65+
66+
// #region Referenced (internal)
67+
type AnyContext = DevframeNodeContext | DevframeScopedNodeContext<string>;
68+
declare class Diagnostic extends Error {
69+
name: string;
70+
code: string;
71+
docs?: string;
72+
fix?: string;
73+
sources?: string[];
74+
get why(): string;
75+
constructor(_: DiagnosticInit, _?: Function);
76+
toJSON(): object;
77+
}
78+
type Diagnostics<Codes extends Record<string, DiagnosticDefinition>, Reporters extends readonly AnyDiagnosticReporter[]> = { [Code in keyof Codes]: DiagnosticHandle<InferCodeParams<Codes[Code]>, Prettify<ExtractReportersOptions<Reporters>>>; };
6479
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-assets/node.snapshot.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,17 @@ export declare function guessAssetType(_: string): AssetType;
2020
export declare function resolveAssetPath(_: string, _: string): string;
2121
export declare function scanAssets(_: string, _: string, _?: boolean): Promise<AssetInfo[]>;
2222
export declare function setupAssets(_: DevframeNodeContext, _: SetupAssetsOptions): Promise<void>;
23+
// #endregion
24+
25+
// #region Referenced (internal)
26+
interface AssetsConfig {
27+
dir: string;
28+
write: boolean;
29+
uploadExtensions: readonly string[] | '*';
30+
baseURL: string;
31+
uploadChannel?: RpcStreamingChannel<Uint8Array>;
32+
}
33+
interface AssetsContext extends AssetsConfig {
34+
resolvePath: (_: string) => string;
35+
}
2336
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-code-server/node.snapshot.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,4 +128,32 @@ export declare const diagnostics: Diagnostics<{
128128
}, readonly [(d: Diagnostic, { method }?: {
129129
method?: "log" | "warn" | "error";
130130
}) => void]>;
131+
// #endregion
132+
133+
// #region Referenced (internal)
134+
interface DetectCodeServerResult {
135+
installed: boolean;
136+
version?: string;
137+
bin: string;
138+
}
139+
declare class Diagnostic extends Error {
140+
name: string;
141+
code: string;
142+
docs?: string;
143+
fix?: string;
144+
sources?: string[];
145+
get why(): string;
146+
constructor(_: DiagnosticInit, _?: Function);
147+
toJSON(): object;
148+
}
149+
type Diagnostics<Codes extends Record<string, DiagnosticDefinition>, Reporters extends readonly AnyDiagnosticReporter[]> = { [Code in keyof Codes]: DiagnosticHandle<InferCodeParams<Codes[Code]>, Prettify<ExtractReportersOptions<Reporters>>>; };
150+
interface ProfileContext {
151+
host: string;
152+
port: number;
153+
folder: string;
154+
secret: string;
155+
cookieName: string;
156+
extraArgs: string[];
157+
tunnelName: string;
158+
}
131159
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-data-inspector/client.snapshot.d.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ export type SkeletonOutcome = {
8181
export declare function connectDataInspector(_?: DevframeRpcClientOptions): Promise<DevframeRpcClient>;
8282
// #endregion
8383

84+
// #region Referenced (internal)
85+
interface NormalizeStatsWire {
86+
nodes: number;
87+
refs: number;
88+
truncatedDepth: number;
89+
truncatedEntries: number;
90+
truncatedProps: number;
91+
ms: number;
92+
}
93+
// #endregion
94+
8495
// #region Other
8596
export { DevframeConnectionStatus }
8697
export { DevframeRpcClient }

tests/__snapshots__/tsnapi/@devframes/plugin-data-inspector/index.snapshot.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,21 @@ export declare const DATA_SOURCES_SERVICE_ID: string;
4848
// #region Default Export
4949
declare function _default(_?: DataInspectorDevframeOptions): DevframeDefinition;
5050
export default _default
51+
// #endregion
52+
53+
// #region Referenced (internal)
54+
interface DataSourceMeta {
55+
id: string;
56+
title: string;
57+
description?: string;
58+
icon?: string;
59+
static: boolean;
60+
writable: boolean;
61+
queries?: Query[];
62+
}
63+
interface Query extends FilterOptions {
64+
query: string;
65+
title?: string;
66+
description?: string;
67+
}
5168
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-data-inspector/inject.snapshot.d.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,18 @@ export declare function exposeDataInspector(_?: ExposeDataInspectorOptions): Pro
4040
/** @deprecated */
4141
export declare const AGENT_DISCOVERY_FILE: string;
4242
export declare const DISCOVERY_FILE: string;
43+
// #endregion
44+
45+
// #region Referenced (internal)
46+
interface DataSourceEntry {
47+
id: string;
48+
title: string;
49+
description?: string;
50+
icon?: string;
51+
data: unknown | (() => unknown | Promise<unknown>);
52+
static?: boolean;
53+
writable?: boolean;
54+
subscribe?: (_: () => void) => (() => void) | void;
55+
queries?: Query[];
56+
}
4357
// #endregion

tests/__snapshots__/tsnapi/@devframes/plugin-data-inspector/node.snapshot.d.ts

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,4 +173,101 @@ export declare const serverFunctions: readonly [{
173173
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[sourceId: string, request: WriteRequest, options?: WriteApplyOptions | undefined], Promise<WriteOutcome>>> | undefined;
174174
}];
175175
export declare const SOURCES_CHANGED_EVENT: string;
176+
// #endregion
177+
178+
// #region Referenced (internal)
179+
interface DataSourceEntry {
180+
id: string;
181+
title: string;
182+
description?: string;
183+
icon?: string;
184+
data: unknown | (() => unknown | Promise<unknown>);
185+
static?: boolean;
186+
writable?: boolean;
187+
subscribe?: (_: () => void) => (() => void) | void;
188+
queries?: Query[];
189+
}
190+
interface DataSourceMeta {
191+
id: string;
192+
title: string;
193+
description?: string;
194+
icon?: string;
195+
static: boolean;
196+
writable: boolean;
197+
queries?: Query[];
198+
}
199+
interface FilterOptions {
200+
excludeFunctions?: boolean;
201+
excludeUnderscoreProps?: boolean;
202+
excludeDollarProps?: boolean;
203+
}
204+
type NodePath = PathSegment[];
205+
type QueryOutcome = {
206+
ok: true;
207+
result: unknown;
208+
stats: QueryStats;
209+
} | {
210+
ok: false;
211+
error: {
212+
name: string;
213+
message: string;
214+
};
215+
};
216+
interface SavedQuery extends Query {
217+
id: string;
218+
scope: SavedQueryScope;
219+
updatedAt: number;
220+
}
221+
type SavedQueryScope = 'workspace' | 'project';
222+
interface SaveQueryInput extends Query {
223+
id?: string;
224+
scope: SavedQueryScope;
225+
}
226+
type SkeletonOutcome = {
227+
ok: true;
228+
skeleton: unknown;
229+
nodes: number;
230+
ms: number;
231+
} | {
232+
ok: false;
233+
error: {
234+
name: string;
235+
message: string;
236+
};
237+
};
238+
interface SuggestOutcome {
239+
ok: boolean;
240+
suggestions: SuggestItem[];
241+
statMs: number;
242+
error?: string;
243+
}
244+
interface WriteApplyOptions {
245+
excludeFunctions?: boolean;
246+
}
247+
type WriteOutcome = {
248+
ok: true;
249+
} | {
250+
ok: false;
251+
error: {
252+
name: string;
253+
message: string;
254+
};
255+
};
256+
type WriteRequest = {
257+
op: 'set';
258+
path: NodePath;
259+
value: WriteValue;
260+
} | {
261+
op: 'delete';
262+
path: NodePath;
263+
} | {
264+
op: 'add';
265+
path: NodePath;
266+
key?: WriteValue;
267+
value: WriteValue;
268+
} | {
269+
op: 'rename';
270+
path: NodePath;
271+
key: WriteValue;
272+
};
176273
// #endregion

0 commit comments

Comments
 (0)