diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-06 12:29:33 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-06 12:29:33 -0300 |
commit | 2e344093305ddf72f97e099cba107356970bb1e4 (patch) | |
tree | 3051279ae2bc54b62597d045b37f7ee76370bf03 /packages/taler-util/src | |
parent | e89d2098041d265131915c4e006a51478ff664bb (diff) | |
download | wallet-core-2e344093305ddf72f97e099cba107356970bb1e4.tar.gz wallet-core-2e344093305ddf72f97e099cba107356970bb1e4.tar.bz2 wallet-core-2e344093305ddf72f97e099cba107356970bb1e4.zip |
transition when withdrawal operation updated
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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 |