diff options
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 705df48b1..3b53bbf35 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -151,7 +151,7 @@ export const CURRENT_DB_CONFIG_KEY = "currentMainDbName"; * backwards-compatible way or object stores and indices * are added. */ -export const WALLET_DB_MINOR_VERSION = 5; +export const WALLET_DB_MINOR_VERSION = 6; declare const symDbProtocolTimestamp: unique symbol; @@ -1561,6 +1561,14 @@ export interface BankWithdrawUriRecord { reservePub: string; } +export enum RecoupOperationStatus { + Pending = 0x0100_0000, + Suspended = 0x0110_0000, + + Finished = 0x0500_000, + Failed = 0x0501_000, +} + /** * Status of recoup operations that were grouped together. * @@ -1575,6 +1583,8 @@ export interface RecoupGroupRecord { exchangeBaseUrl: string; + operationStatus: RecoupOperationStatus; + timestampStarted: DbPreciseTimestamp; timestampFinished: DbPreciseTimestamp | undefined; @@ -2471,7 +2481,11 @@ export const WalletStoresV1 = { describeContents<RecoupGroupRecord>({ keyPath: "recoupGroupId", }), - {}, + { + byStatus: describeIndex("byStatus", "operationStatus", { + versionAdded: 6, + }), + }, ), purchases: describeStore( "purchases", |