@lvce-editor/rpc-registry 9.15.0 → 9.17.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, registerMockRpc: (commandMap: Record<string, any>) => import("../DisposableMockRpc/DisposableMockRpc.ts").DisposableMockRpc, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const login: (options: any) => Promise<any>;
|
|
3
|
+
export declare const logout: (options: any) => Promise<any>;
|
|
4
|
+
export declare const clearMocks: () => Promise<void>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
2
|
export const { dispose, invoke, invokeAndTransfer, registerMockRpc, set } = RpcFactory.create(6010);
|
|
3
|
-
export const
|
|
4
|
-
return invoke('
|
|
3
|
+
export const login = async (options) => {
|
|
4
|
+
return invoke('Auth.login', options);
|
|
5
5
|
};
|
|
6
|
-
export const
|
|
7
|
-
return invoke('
|
|
6
|
+
export const logout = async (options) => {
|
|
7
|
+
return invoke('Auth.logout', options);
|
|
8
|
+
};
|
|
9
|
+
export const clearMocks = async () => {
|
|
10
|
+
return invoke('Auth.clearMocks');
|
|
8
11
|
};
|
|
@@ -27,6 +27,7 @@ export declare const sendMessagePortToChatMessageParsingWorker: (port: MessagePo
|
|
|
27
27
|
export declare const sendMessagePortToMainAreaWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
28
28
|
export declare const sendMessagePortToTerminalProcess: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
29
29
|
export declare const sendMessagePortToTextSearchWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
30
|
+
export declare const sendMessagePortToAuthWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
30
31
|
export declare const sendMessagePortToErrorWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
31
32
|
export declare const sendMessagePortToMarkdownWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
32
33
|
export declare const sendMessagePortToIconThemeWorker: (port: MessagePort, rpcId: number) => Promise<void>;
|
|
@@ -87,13 +87,17 @@ export const sendMessagePortToMainAreaWorker = async (port, rpcId) => {
|
|
|
87
87
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToMainAreaWorker', port, command, rpcId);
|
|
88
88
|
};
|
|
89
89
|
export const sendMessagePortToTerminalProcess = async (port, rpcId) => {
|
|
90
|
-
const command = '
|
|
90
|
+
const command = 'HandleMessagePortForTerminalProcess.handleMessagePortForTerminalProcess';
|
|
91
91
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTerminalProcess', port, command, rpcId);
|
|
92
92
|
};
|
|
93
93
|
export const sendMessagePortToTextSearchWorker = async (port, rpcId) => {
|
|
94
94
|
const command = 'HandleMessagePort.handleMessagePort';
|
|
95
95
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToTextSearchWorker', port, command, rpcId);
|
|
96
96
|
};
|
|
97
|
+
export const sendMessagePortToAuthWorker = async (port, rpcId) => {
|
|
98
|
+
const command = 'HandleMessagePort.handleMessagePort';
|
|
99
|
+
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToAuthWorker', port, command, rpcId);
|
|
100
|
+
};
|
|
97
101
|
export const sendMessagePortToErrorWorker = async (port, rpcId) => {
|
|
98
102
|
const command = 'Errors.handleMessagePort';
|
|
99
103
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToErrorWorker', port, command, rpcId);
|