summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-08 13:30:29 +0100
committerFlorian Dold <florian@dold.me>2021-01-08 13:30:29 +0100
commit8921a5e8f2f47c113eeeaa1bf14937c5b6cfb0ac (patch)
tree956d493e976b9316b23332cab6e3057933db2a3a /packages/taler-wallet-core/src/wallet.ts
parent324f44ae6954ef7a75a67838a7f0cbf2a6dc6d76 (diff)
downloadwallet-core-8921a5e8f2f47c113eeeaa1bf14937c5b6cfb0ac.tar.gz
wallet-core-8921a5e8f2f47c113eeeaa1bf14937c5b6cfb0ac.tar.bz2
wallet-core-8921a5e8f2f47c113eeeaa1bf14937c5b6cfb0ac.zip
implement import of backup recovery document
Diffstat (limited to 'packages/taler-wallet-core/src/wallet.ts')
-rw-r--r--packages/taler-wallet-core/src/wallet.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts
index 0b2b4d639..56e3d82d1 100644
--- a/packages/taler-wallet-core/src/wallet.ts
+++ b/packages/taler-wallet-core/src/wallet.ts
@@ -94,6 +94,7 @@ import {
codecForAcceptTipRequest,
codecForAbortPayWithRefundRequest,
ApplyRefundResponse,
+ RecoveryLoadRequest,
} from "./types/walletTypes";
import { Logger } from "./util/logging";
@@ -167,6 +168,9 @@ import {
BackupRecovery,
getBackupRecovery,
AddBackupProviderRequest,
+ getBackupInfo,
+ BackupInfo,
+ loadBackupRecovery,
} from "./operations/backup";
const builtinCurrencies: CurrencyRecord[] = [
@@ -959,6 +963,10 @@ export class Wallet {
return getBackupRecovery(this.ws);
}
+ async loadBackupRecovery(req: RecoveryLoadRequest): Promise<void> {
+ return loadBackupRecovery(this.ws, req);
+ }
+
async addBackupProvider(req: AddBackupProviderRequest): Promise<void> {
return addBackupProvider(this.ws, req);
}
@@ -967,6 +975,10 @@ export class Wallet {
return runBackupCycle(this.ws);
}
+ async getBackupStatus(): Promise<BackupInfo> {
+ return getBackupInfo(this.ws);
+ }
+
/**
* Implementation of the "wallet-core" API.
*/