Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import {ZoneApiParameter} from "src/shared/api/common";
import {buildLoggerBundle} from "src/electron-preload/util";
import {buildWebViewApiDefinition, channel} from "./common";
export type ProtonmailApiScan = ScanService;
export type ProtonmailApi = ProtonmailApiScan["ApiClient"];
export type ProtonmailNotificationOutput = Partial & Partial<{ batchEntityUpdatesCounter: number }>;
export const PROTONMAIL_IPC_WEBVIEW_API_DEFINITION = {
...buildWebViewApiDefinition<"protonmail", ProtonmailNotificationOutput>(),
unlock: ActionType.Promise(),
} as const;
export const PROTONMAIL_IPC_WEBVIEW_API = createWebViewApiService({
channel,
apiDefinition: PROTONMAIL_IPC_WEBVIEW_API_DEFINITION,
logger: buildLoggerBundle("[IPC_WEBVIEW_API:protonmail]"),
});
import {NotificationsTutanota} from "src/shared/model/account";
import {buildLoggerBundle} from "src/electron-preload/util";
import {buildWebViewApiDefinition, channel} from "./common";
export type TutanotaNotificationOutput = Partial & Partial<{ batchEntityUpdatesCounter: number }>;
export type TutanotaScanApi = ScanService;
export type TutanotaApi = TutanotaScanApi["ApiClient"];
export const TUTANOTA_IPC_WEBVIEW_API_DEFINITION = {
...buildWebViewApiDefinition<"tutanota", TutanotaNotificationOutput>(),
} as const;
export const TUTANOTA_IPC_WEBVIEW_API = createWebViewApiService({
channel,
apiDefinition: TUTANOTA_IPC_WEBVIEW_API_DEFINITION,
logger: buildLoggerBundle("[IPC_WEBVIEW_API:tutanota]"),
});