backup WIP
This commit is contained in:
parent
a10f9650b2
commit
6772c54793
@ -1690,6 +1690,8 @@ export async function addBackupProvider(
|
|||||||
},
|
},
|
||||||
paymentProposalIds: [],
|
paymentProposalIds: [],
|
||||||
baseUrl: canonUrl,
|
baseUrl: canonUrl,
|
||||||
|
lastError: undefined,
|
||||||
|
retryInfo: initRetryInfo(false),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1808,6 +1810,8 @@ async function backupRecoveryTheirs(
|
|||||||
active: true,
|
active: true,
|
||||||
baseUrl: prov.url,
|
baseUrl: prov.url,
|
||||||
paymentProposalIds: [],
|
paymentProposalIds: [],
|
||||||
|
retryInfo: initRetryInfo(false),
|
||||||
|
lastError: undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,9 +36,7 @@ import {
|
|||||||
|
|
||||||
import { Index, Store } from "../util/query";
|
import { Index, Store } from "../util/query";
|
||||||
import { TalerErrorDetails, RefreshReason } from "./walletTypes";
|
import { TalerErrorDetails, RefreshReason } from "./walletTypes";
|
||||||
import {
|
import { ReserveTransaction } from "./ReserveTransaction";
|
||||||
ReserveTransaction,
|
|
||||||
} from "./ReserveTransaction";
|
|
||||||
import { Timestamp, Duration } from "../util/time";
|
import { Timestamp, Duration } from "../util/time";
|
||||||
import { IDBKeyPath } from "idb-bridge";
|
import { IDBKeyPath } from "idb-bridge";
|
||||||
import { RetryInfo } from "../util/retries";
|
import { RetryInfo } from "../util/retries";
|
||||||
@ -1444,7 +1442,7 @@ export interface BackupProviderRecord {
|
|||||||
terms?: {
|
terms?: {
|
||||||
supportedProtocolVersion: string;
|
supportedProtocolVersion: string;
|
||||||
annualFee: AmountString;
|
annualFee: AmountString;
|
||||||
storageLimitInMegabytes: number;
|
storageLimitInMegabytes: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
active: boolean;
|
active: boolean;
|
||||||
@ -1466,6 +1464,21 @@ export interface BackupProviderRecord {
|
|||||||
currentPaymentProposalId?: string;
|
currentPaymentProposalId?: string;
|
||||||
|
|
||||||
paymentProposalIds: 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> {
|
class ExchangesStore extends Store<"exchanges", ExchangeRecord> {
|
||||||
|
Loading…
Reference in New Issue
Block a user