From e05ba843a061c8050648ce922f36ed3d8e1cf24a Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 24 Nov 2022 23:16:01 -0300 Subject: fix 7465 --- packages/taler-wallet-core/src/db.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'packages/taler-wallet-core/src/db.ts') 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({ + keyPath: ["entityId", "info.type"], + }), + {}, + ), }; /** -- cgit v1.2.3