diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-20 16:20:32 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-20 16:20:32 +0530 |
commit | d331f8b8b66e52a645dedefa7b7c31740dc309dc (patch) | |
tree | ea531549f67b23371b11c1e27361adc6356a9647 /src/types | |
parent | a2e7f216277bd8cb722b9662ed1d2d44f927de0d (diff) | |
download | wallet-core-d331f8b8b66e52a645dedefa7b7c31740dc309dc.tar.xz |
no more wildcard notifications
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/notifications.ts | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/src/types/notifications.ts b/src/types/notifications.ts index 3cd5be898..644dfdc80 100644 --- a/src/types/notifications.ts +++ b/src/types/notifications.ts @@ -55,7 +55,10 @@ export const enum NotificationType { PayOperationError = "pay-error", WithdrawOperationError = "withdraw-error", ReserveOperationError = "reserve-error", - Wildcard = "wildcard", + InternalError = "internal-error", + PendingOperationProcessed = "pending-operation-processed", + ProposalRefused = "proposal-refused", + ReserveRegisteredWithBank = "reserve-registered-with-bank", } export interface ProposalAcceptedNotification { @@ -63,6 +66,12 @@ export interface ProposalAcceptedNotification { proposalId: string; } +export interface InternalErrorNotification { + type: NotificationType.InternalError; + message: string; + exception: any; +} + export interface CoinWithdrawnNotification { type: NotificationType.CoinWithdrawn; } @@ -167,6 +176,7 @@ export interface TipOperationErrorNotification { export interface WithdrawOperationErrorNotification { type: NotificationType.WithdrawOperationError; + error: OperationError, } export interface RecoupOperationErrorNotification { @@ -182,8 +192,16 @@ export interface ReserveCreatedNotification { type: NotificationType.ReserveCreated; } -export interface WildcardNotification { - type: NotificationType.Wildcard; +export interface PendingOperationProcessedNotification { + type: NotificationType.PendingOperationProcessed; +} + +export interface ProposalRefusedNotification { + type: NotificationType.ProposalRefused; +} + +export interface ReserveRegisteredWithBankNotification { + type: NotificationType.ReserveRegisteredWithBank; } export type WalletNotification = @@ -215,5 +233,8 @@ export type WalletNotification = | RefundQueriedNotification | WithdrawalGroupCreatedNotification | CoinWithdrawnNotification - | WildcardNotification - | RecoupOperationErrorNotification; + | RecoupOperationErrorNotification + | InternalErrorNotification + | PendingOperationProcessedNotification + | ProposalRefusedNotification + | ReserveRegisteredWithBankNotification;
\ No newline at end of file |