diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-12 19:25:38 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-12 19:25:38 +0530 |
commit | b5b8f96cc94e3a3c0ee7d989819197ab5df393cd (patch) | |
tree | 0382770a735c4f43e09bfb9d03345bc93ecc498a /src/types/notifications.ts | |
parent | 2ec6799c8c6836d44944460a41fabefb8eb8186f (diff) | |
download | wallet-core-b5b8f96cc94e3a3c0ee7d989819197ab5df393cd.tar.xz |
improved error reporting / towards a working recoup
Diffstat (limited to 'src/types/notifications.ts')
-rw-r--r-- | src/types/notifications.ts | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/types/notifications.ts b/src/types/notifications.ts index 34e98fe2c..39930dcca 100644 --- a/src/types/notifications.ts +++ b/src/types/notifications.ts @@ -26,8 +26,8 @@ export const enum NotificationType { ProposalAccepted = "proposal-accepted", ProposalDownloaded = "proposal-downloaded", RefundsSubmitted = "refunds-submitted", - RecoupStarted = "payback-started", - RecoupFinished = "payback-finished", + RecoupStarted = "recoup-started", + RecoupFinished = "recoup-finished", RefreshRevealed = "refresh-revealed", RefreshMelted = "refresh-melted", RefreshStarted = "refresh-started", @@ -44,7 +44,7 @@ export const enum NotificationType { RefundFinished = "refund-finished", ExchangeOperationError = "exchange-operation-error", RefreshOperationError = "refresh-operation-error", - RecoupOperationError = "refresh-operation-error", + RecoupOperationError = "recoup-operation-error", RefundApplyOperationError = "refund-apply-error", RefundStatusOperationError = "refund-status-error", ProposalOperationError = "proposal-error", @@ -82,11 +82,11 @@ export interface RefundsSubmittedNotification { proposalId: string; } -export interface PaybackStartedNotification { +export interface RecoupStartedNotification { type: NotificationType.RecoupStarted; } -export interface PaybackFinishedNotification { +export interface RecoupFinishedNotification { type: NotificationType.RecoupFinished; } @@ -171,6 +171,10 @@ export interface WithdrawOperationErrorNotification { type: NotificationType.WithdrawOperationError; } +export interface RecoupOperationErrorNotification { + type: NotificationType.RecoupOperationError; +} + export interface ReserveOperationErrorNotification { type: NotificationType.ReserveOperationError; operationError: OperationError; @@ -197,8 +201,8 @@ export type WalletNotification = | ProposalAcceptedNotification | ProposalDownloadedNotification | RefundsSubmittedNotification - | PaybackStartedNotification - | PaybackFinishedNotification + | RecoupStartedNotification + | RecoupFinishedNotification | RefreshMeltedNotification | RefreshRevealedNotification | RefreshStartedNotification @@ -214,4 +218,5 @@ export type WalletNotification = | RefundQueriedNotification | WithdrawSessionCreatedNotification | CoinWithdrawnNotification - | WildcardNotification; + | WildcardNotification + | RecoupOperationErrorNotification; |