summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/db.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2022-11-24 23:16:01 -0300
committerSebastian <sebasjm@gmail.com>2022-11-24 23:16:01 -0300
commite05ba843a061c8050648ce922f36ed3d8e1cf24a (patch)
tree4daf3eccc5f2976b980e884499a756cc6f864c6e /packages/taler-wallet-core/src/db.ts
parent88618df7b870732f4f29a80686dd4f4cf20887f8 (diff)
downloadwallet-core-e05ba843a061c8050648ce922f36ed3d8e1cf24a.tar.gz
wallet-core-e05ba843a061c8050648ce922f36ed3d8e1cf24a.tar.bz2
wallet-core-e05ba843a061c8050648ce922f36ed3d8e1cf24a.zip
fix 7465
Diffstat (limited to 'packages/taler-wallet-core/src/db.ts')
-rw-r--r--packages/taler-wallet-core/src/db.ts27
1 files changed, 27 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/db.ts b/packages/taler-wallet-core/src/db.ts
index bbd93f669..2bf417cac 100644
--- a/packages/taler-wallet-core/src/db.ts
+++ b/packages/taler-wallet-core/src/db.ts
@@ -48,6 +48,9 @@ import {
WireInfo,
HashCodeString,
Amounts,
+ AttentionPriority,
+ AttentionInfo,
+ AbsoluteTime,
} from "@gnu-taler/taler-util";
import {
describeContents,
@@ -1540,6 +1543,8 @@ export interface BackupProviderRecord {
*/
currentPaymentProposalId?: string;
+ shouldRetryFreshProposal: boolean;
+
/**
* Proposals that were used to pay (or attempt to pay) the provider.
*
@@ -1841,6 +1846,21 @@ export interface ContractTermsRecord {
contractTermsRaw: any;
}
+export interface UserAttentionRecord {
+ info: AttentionInfo;
+
+ entityId: string;
+ /**
+ * When the notification was created.
+ */
+ createdMs: number;
+
+ /**
+ * When the user mark this notification as read.
+ */
+ read: TalerProtocolTimestamp | undefined;
+}
+
/**
* Schema definition for the IndexedDB
* wallet database.
@@ -2137,6 +2157,13 @@ export const WalletStoresV1 = {
}),
{},
),
+ userAttention: describeStore(
+ "userAttention",
+ describeContents<UserAttentionRecord>({
+ keyPath: ["entityId", "info.type"],
+ }),
+ {},
+ ),
};
/**