diff options
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r-- | packages/taler-wallet-core/src/db.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts index 73739c19c..f16600f5d 100644 --- a/packages/taler-wallet-core/src/db.ts +++ b/packages/taler-wallet-core/src/db.ts @@ -2217,6 +2217,7 @@ export enum RefundGroupStatus { Done = 0x0500_0000, Failed = 0x0501_0000, Aborted = 0x0503_0000, + Expired = 0x0502_0000, } /** @@ -2641,6 +2642,7 @@ export const WalletStoresV1 = { "coinPub", "rtxid", ]), + // FIXME: Why is this a list of index keys? Confusing! byRefundGroupId: describeIndex("byRefundGroupId", ["refundGroupId"]), }, ), @@ -2663,6 +2665,14 @@ export type WalletDbReadWriteTransaction< Stores extends StoreNames<typeof WalletStoresV1> & string, > = DbReadWriteTransaction<typeof WalletStoresV1, Stores>; +export type WalletDbReadWriteTransactionArr< + StoresArr extends Array<StoreNames<typeof WalletStoresV1>>, +> = DbReadWriteTransactionArr<typeof WalletStoresV1, StoresArr>; + +export type WalletDbReadOnlyTransactionArr< + StoresArr extends Array<StoreNames<typeof WalletStoresV1>>, +> = DbReadOnlyTransactionArr<typeof WalletStoresV1, StoresArr>; + /** * An applied migration. */ |