summaryrefslogtreecommitdiff
path: root/src/types/notifications.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/types/notifications.ts')
-rw-r--r--src/types/notifications.ts31
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