-
Notifications
You must be signed in to change notification settings - Fork 96
/
index.ts
14 lines (11 loc) · 789 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {ApiMethod, ApiMethodNoArgument, WebViewApiService} from "electron-rpc-api";
import {LoginFieldContainer, MailPasswordFieldContainer, PasswordFieldContainer} from "_@shared/model/container";
import {AccountNotificationOutput} from "./notification-output";
export interface Endpoints {
fillLogin: ApiMethod<LoginFieldContainer, { message: string }>;
login2fa: ApiMethod<PasswordFieldContainer, { message: string }>;
login: ApiMethod<LoginFieldContainer & PasswordFieldContainer, { message: string }>;
notification: ApiMethodNoArgument<AccountNotificationOutput>;
unlock: ApiMethod<MailPasswordFieldContainer, { message: string }>;
}
export const IPC_WEBVIEW_API = new WebViewApiService<Endpoints>({channel: `${process.env.APP_ENV_PACKAGE_NAME}:webview-api`});