diff options
author | Florian Dold <florian@dold.me> | 2021-01-12 17:17:34 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-01-12 17:17:34 +0100 |
commit | 6772c5479394cbdf404857f75263749a5c91bd41 (patch) | |
tree | f81f7f36584c85246aed367ab5cd2d7fbcb82039 /packages/taler-wallet-core/src/types/dbTypes.ts | |
parent | a10f9650b27d43481992885435ed225c068f7ca9 (diff) | |
download | wallet-core-6772c5479394cbdf404857f75263749a5c91bd41.tar.xz |
backup WIP
Diffstat (limited to 'packages/taler-wallet-core/src/types/dbTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/dbTypes.ts | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/packages/taler-wallet-core/src/types/dbTypes.ts b/packages/taler-wallet-core/src/types/dbTypes.ts index 62ad01d25..f55dcb2f6 100644 --- a/packages/taler-wallet-core/src/types/dbTypes.ts +++ b/packages/taler-wallet-core/src/types/dbTypes.ts @@ -36,9 +36,7 @@ import { import { Index, Store } from "../util/query"; import { TalerErrorDetails, RefreshReason } from "./walletTypes"; -import { - ReserveTransaction, -} from "./ReserveTransaction"; +import { ReserveTransaction } from "./ReserveTransaction"; import { Timestamp, Duration } from "../util/time"; import { IDBKeyPath } from "idb-bridge"; import { RetryInfo } from "../util/retries"; @@ -1444,7 +1442,7 @@ export interface BackupProviderRecord { terms?: { supportedProtocolVersion: string; annualFee: AmountString; - storageLimitInMegabytes: number; + storageLimitInMegabytes: number; }; active: boolean; @@ -1466,6 +1464,21 @@ export interface BackupProviderRecord { currentPaymentProposalId?: string; paymentProposalIds: string[]; + + /** + * Next scheduled backup. + */ + nextBackupTimestamp?: Timestamp; + + /** + * Retry info. + */ + retryInfo: RetryInfo; + + /** + * Last error that occured, if any. + */ + lastError: TalerErrorDetails | undefined; } class ExchangesStore extends Store<"exchanges", ExchangeRecord> { |