From 2e344093305ddf72f97e099cba107356970bb1e4 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Wed, 6 Mar 2024 12:29:33 -0300 Subject: transition when withdrawal operation updated --- packages/taler-util/src/notifications.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'packages/taler-util/src') diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index 023eb8ef4..ab28cc2ee 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -29,6 +29,7 @@ export enum NotificationType { BalanceChange = "balance-change", BackupOperationError = "backup-error", TransactionStateTransition = "transaction-state-transition", + WithdrawalOperationTransition = "withdrawal-operation-transition", ExchangeStateTransition = "exchange-state-transition", TaskObservabilityEvent = "task-observability-event", RequestObservabilityEvent = "request-observability-event", @@ -205,9 +206,20 @@ export interface BackupOperationErrorNotification { type: NotificationType.BackupOperationError; error: TalerErrorDetail; } +/** + * This notification is required to signal UI that + * the withdrawal operation changed the state. + * + * https://bugs.gnunet.org/view.php?id=8099 + */ +export interface WithdrawalOperationTransitionNotification { + type: NotificationType.WithdrawalOperationTransition; + uri: string; +} export type WalletNotification = | BalanceChangeNotification + | WithdrawalOperationTransitionNotification | BackupOperationErrorNotification | ExchangeStateTransitionNotification | TransactionStateTransitionNotification -- cgit v1.2.3