Skip to content

Commit

Permalink
feat: add RPC exports
Browse files Browse the repository at this point in the history
  • Loading branch information
thelicato committed Apr 13, 2023
1 parent 5c6cf4f commit 837a261
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { LogLevel } from "@robodroid/utils/types";
import { startBehavior as K9MailRefreshAndGetLink } from "@robodroid/behaviors/k9-mail-refresh-and-get-link";
import { startBehavior as K9MailAccountSetup } from "@robodroid/behaviors/k9-mail-account-setup";
import { startBehavior as firefoxAndroidOpenAndDownload } from "@robodroid/behaviors/firefox-android-open-and-download";

rpc.exports = {
k9MailRefreshAndGetLink: (logLevel?: LogLevel) => K9MailRefreshAndGetLink(logLevel),
k9MailAccountSetup: (
email: string,
password: string,
incomingServer: string,
incomingPort: number,
outgoingServer: string,
outgoingPort: number,
logLevel?: LogLevel
) => K9MailAccountSetup(email, password, incomingServer, incomingPort, outgoingServer, outgoingPort, logLevel),
firefoxAndroidOpenAndDownload: (link: string, logLevel?: LogLevel) => firefoxAndroidOpenAndDownload(link, logLevel),
}

0 comments on commit 837a261

Please sign in to comment.