Skip to content

Commit 6606ba5

Browse files
committed
test: update RPC API snapshots
1 parent 560d418 commit 6606ba5

7 files changed

Lines changed: 422 additions & 2374 deletions

File tree

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

Lines changed: 14 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -89,186 +89,20 @@ export declare function createSimpleClientScript(_: string | ((_: any) => void))
8989

9090
// #region Variables
9191
export declare const builtinHubRpcDeclarations: readonly RpcFunctionDefinitionAny[];
92-
export declare const hubCommandsExecute: {
93-
name: "hub:commands:execute";
94-
type?: "action" | undefined;
95-
cacheable?: boolean;
96-
args?: undefined;
97-
returns?: undefined;
98-
jsonSerializable?: boolean;
99-
agent?: import("devframe").RpcFunctionAgentOptions;
100-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>>) | undefined;
101-
handler?: ((id: string, ...args: any[]) => Promise<unknown>) | undefined;
102-
dump?: import("devframe/rpc").RpcDump<[id: string, ...args: any[]], Promise<unknown>, DevframeHubContext> | undefined;
103-
snapshot?: boolean;
104-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>>> | undefined;
105-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, ...args: any[]], Promise<unknown>>> | undefined;
106-
};
107-
export declare const hubDocksActivate: {
108-
name: "hub:docks:activate";
109-
type?: "action" | undefined;
110-
cacheable?: boolean;
111-
args?: undefined;
112-
returns?: undefined;
113-
jsonSerializable?: boolean;
114-
agent?: import("devframe").RpcFunctionAgentOptions;
115-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: {
116-
dockId: string;
117-
params?: Record<string, unknown>;
118-
}], Promise<void>>>) | undefined;
119-
handler?: ((input: {
120-
dockId: string;
121-
params?: Record<string, unknown>;
122-
}) => Promise<void>) | undefined;
123-
dump?: import("devframe/rpc").RpcDump<[input: {
124-
dockId: string;
125-
params?: Record<string, unknown>;
126-
}], Promise<void>, DevframeHubContext> | undefined;
127-
snapshot?: boolean;
128-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: {
129-
dockId: string;
130-
params?: Record<string, unknown>;
131-
}], Promise<void>>>> | undefined;
132-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: {
133-
dockId: string;
134-
params?: Record<string, unknown>;
135-
}], Promise<void>>> | undefined;
136-
};
137-
export declare const hubMessagesAdd: {
138-
name: "hub:messages:add";
139-
type?: "action" | undefined;
140-
cacheable?: boolean;
141-
args?: undefined;
142-
returns?: undefined;
143-
jsonSerializable?: boolean;
144-
agent?: import("devframe").RpcFunctionAgentOptions;
145-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: DevframeMessageEntryInput], Promise<DevframeMessageEntry>>>) | undefined;
146-
handler?: ((input: DevframeMessageEntryInput) => Promise<DevframeMessageEntry>) | undefined;
147-
dump?: import("devframe/rpc").RpcDump<[input: DevframeMessageEntryInput], Promise<DevframeMessageEntry>, DevframeHubContext> | undefined;
148-
snapshot?: boolean;
149-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: DevframeMessageEntryInput], Promise<DevframeMessageEntry>>>> | undefined;
150-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[input: DevframeMessageEntryInput], Promise<DevframeMessageEntry>>> | undefined;
151-
};
152-
export declare const hubMessagesClear: {
153-
name: "hub:messages:clear";
154-
type?: "action" | undefined;
155-
cacheable?: boolean;
156-
args?: undefined;
157-
returns?: undefined;
158-
jsonSerializable?: boolean;
159-
agent?: import("devframe").RpcFunctionAgentOptions;
160-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], Promise<void>>>) | undefined;
161-
handler?: (() => Promise<void>) | undefined;
162-
dump?: import("devframe/rpc").RpcDump<[], Promise<void>, DevframeHubContext> | undefined;
163-
snapshot?: boolean;
164-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], Promise<void>>>> | undefined;
165-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[], Promise<void>>> | undefined;
166-
};
167-
export declare const hubMessagesRemove: {
168-
name: "hub:messages:remove";
169-
type?: "action" | undefined;
170-
cacheable?: boolean;
171-
args?: undefined;
172-
returns?: undefined;
173-
jsonSerializable?: boolean;
174-
agent?: import("devframe").RpcFunctionAgentOptions;
175-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
176-
handler?: ((id: string) => Promise<void>) | undefined;
177-
dump?: import("devframe/rpc").RpcDump<[id: string], Promise<void>, DevframeHubContext> | undefined;
178-
snapshot?: boolean;
179-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>> | undefined;
180-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
181-
};
182-
export declare const hubMessagesUpdate: {
183-
name: "hub:messages:update";
184-
type?: "action" | undefined;
185-
cacheable?: boolean;
186-
args?: undefined;
187-
returns?: undefined;
188-
jsonSerializable?: boolean;
189-
agent?: import("devframe").RpcFunctionAgentOptions;
190-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, patch: Partial<DevframeMessageEntryInput>], Promise<DevframeMessageEntry | undefined>>>) | undefined;
191-
handler?: ((id: string, patch: Partial<DevframeMessageEntryInput>) => Promise<DevframeMessageEntry | undefined>) | undefined;
192-
dump?: import("devframe/rpc").RpcDump<[id: string, patch: Partial<DevframeMessageEntryInput>], Promise<DevframeMessageEntry | undefined>, DevframeHubContext> | undefined;
193-
snapshot?: boolean;
194-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, patch: Partial<DevframeMessageEntryInput>], Promise<DevframeMessageEntry | undefined>>>> | undefined;
195-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, patch: Partial<DevframeMessageEntryInput>], Promise<DevframeMessageEntry | undefined>>> | undefined;
196-
};
197-
export declare const hubTerminalsRemove: {
198-
name: "hub:terminals:remove";
199-
type?: "action" | undefined;
200-
cacheable?: boolean;
201-
args?: undefined;
202-
returns?: undefined;
203-
jsonSerializable?: boolean;
204-
agent?: import("devframe").RpcFunctionAgentOptions;
205-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
206-
handler?: ((id: string) => Promise<void>) | undefined;
207-
dump?: import("devframe/rpc").RpcDump<[id: string], Promise<void>, DevframeHubContext> | undefined;
208-
snapshot?: boolean;
209-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>> | undefined;
210-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
211-
};
212-
export declare const hubTerminalsResize: {
213-
name: "hub:terminals:resize";
214-
type?: "action" | undefined;
215-
cacheable?: boolean;
216-
args?: undefined;
217-
returns?: undefined;
218-
jsonSerializable?: boolean;
219-
agent?: import("devframe").RpcFunctionAgentOptions;
220-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, cols: number, rows: number], Promise<void>>>) | undefined;
221-
handler?: ((id: string, cols: number, rows: number) => Promise<void>) | undefined;
222-
dump?: import("devframe/rpc").RpcDump<[id: string, cols: number, rows: number], Promise<void>, DevframeHubContext> | undefined;
223-
snapshot?: boolean;
224-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, cols: number, rows: number], Promise<void>>>> | undefined;
225-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, cols: number, rows: number], Promise<void>>> | undefined;
226-
};
227-
export declare const hubTerminalsRestart: {
228-
name: "hub:terminals:restart";
229-
type?: "action" | undefined;
230-
cacheable?: boolean;
231-
args?: undefined;
232-
returns?: undefined;
233-
jsonSerializable?: boolean;
234-
agent?: import("devframe").RpcFunctionAgentOptions;
235-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
236-
handler?: ((id: string) => Promise<void>) | undefined;
237-
dump?: import("devframe/rpc").RpcDump<[id: string], Promise<void>, DevframeHubContext> | undefined;
238-
snapshot?: boolean;
239-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>> | undefined;
240-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
241-
};
242-
export declare const hubTerminalsTerminate: {
243-
name: "hub:terminals:terminate";
244-
type?: "action" | undefined;
245-
cacheable?: boolean;
246-
args?: undefined;
247-
returns?: undefined;
248-
jsonSerializable?: boolean;
249-
agent?: import("devframe").RpcFunctionAgentOptions;
250-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>) | undefined;
251-
handler?: ((id: string) => Promise<void>) | undefined;
252-
dump?: import("devframe/rpc").RpcDump<[id: string], Promise<void>, DevframeHubContext> | undefined;
253-
snapshot?: boolean;
254-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>>> | undefined;
255-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string], Promise<void>>> | undefined;
256-
};
257-
export declare const hubTerminalsWrite: {
258-
name: "hub:terminals:write";
259-
type?: "action" | undefined;
260-
cacheable?: boolean;
261-
args?: undefined;
262-
returns?: undefined;
263-
jsonSerializable?: boolean;
264-
agent?: import("devframe").RpcFunctionAgentOptions;
265-
setup?: ((context: DevframeHubContext) => import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, data: string], Promise<void>>>) | undefined;
266-
handler?: ((id: string, data: string) => Promise<void>) | undefined;
267-
dump?: import("devframe/rpc").RpcDump<[id: string, data: string], Promise<void>, DevframeHubContext> | undefined;
268-
snapshot?: boolean;
269-
__cache?: WeakMap<object, import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, data: string], Promise<void>>>> | undefined;
270-
__promise?: import("devframe/rpc").Thenable<import("devframe/rpc").RpcFunctionSetupResult<[id: string, data: string], Promise<void>>> | undefined;
271-
};
92+
export declare const hubCommandsExecute: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:commands:execute", "action", [id: string, ...args: any[]], Promise<unknown>, undefined, undefined, DevframeHubContext>;
93+
export declare const hubDocksActivate: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:docks:activate", "action", [input: {
94+
dockId: string;
95+
params?: Record<string, unknown>;
96+
}], Promise<void>, undefined, undefined, DevframeHubContext>;
97+
export declare const hubMessagesAdd: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:messages:add", "action", [input: DevframeMessageEntryInput], Promise<DevframeMessageEntry>, undefined, undefined, DevframeHubContext>;
98+
export declare const hubMessagesClear: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:messages:clear", "action", [], Promise<void>, undefined, undefined, DevframeHubContext>;
99+
export declare const hubMessagesRemove: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:messages:remove", "action", [id: string], Promise<void>, undefined, undefined, DevframeHubContext>;
100+
export declare const hubMessagesUpdate: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:messages:update", "action", [id: string, patch: Partial<DevframeMessageEntryInput>], Promise<DevframeMessageEntry | undefined>, undefined, undefined, DevframeHubContext>;
101+
export declare const hubTerminalsRemove: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:terminals:remove", "action", [id: string], Promise<void>, undefined, undefined, DevframeHubContext>;
102+
export declare const hubTerminalsResize: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:terminals:resize", "action", [id: string, cols: number, rows: number], Promise<void>, undefined, undefined, DevframeHubContext>;
103+
export declare const hubTerminalsRestart: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:terminals:restart", "action", [id: string], Promise<void>, undefined, undefined, DevframeHubContext>;
104+
export declare const hubTerminalsTerminate: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:terminals:terminate", "action", [id: string], Promise<void>, undefined, undefined, DevframeHubContext>;
105+
export declare const hubTerminalsWrite: import("devframe/rpc").RpcFunctionDefinitionWithoutSchemas<"hub:terminals:write", "action", [id: string, data: string], Promise<void>, undefined, undefined, DevframeHubContext>;
272106
// #endregion
273107

274108
// #region Referenced (internal)

0 commit comments

Comments
 (0)