diff options
author | Sebastian <sebasjm@gmail.com> | 2024-03-11 14:57:35 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-03-11 14:57:49 -0300 |
commit | 9c16a25883e9dc03768bfbef6da330260149d74f (patch) | |
tree | 12cd49f55f3e8c962ce41c76cee79a77d1ecb6e0 /packages/taler-util/src/notifications.ts | |
parent | 6e02a3852590f39cdd414a1caf89506bcd9dc83a (diff) | |
download | wallet-core-9c16a25883e9dc03768bfbef6da330260149d74f.tar.xz |
adding id and time to obs event, plus pretty
Diffstat (limited to 'packages/taler-util/src/notifications.ts')
-rw-r--r-- | packages/taler-util/src/notifications.ts | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/taler-util/src/notifications.ts b/packages/taler-util/src/notifications.ts index ab28cc2ee..f439b4a6f 100644 --- a/packages/taler-util/src/notifications.ts +++ b/packages/taler-util/src/notifications.ts @@ -22,6 +22,8 @@ /** * Imports. */ +import { CancellationToken } from "./CancellationToken.js"; +import { AbsoluteTime } from "./time.js"; import { TransactionState } from "./transactions-types.js"; import { ExchangeEntryState, TalerErrorDetail } from "./wallet-types.js"; @@ -132,15 +134,21 @@ export enum ObservabilityEventType { export type ObservabilityEvent = | { + id: string; + when: AbsoluteTime; type: ObservabilityEventType.HttpFetchStart; url: string; } | { + id: string; + when: AbsoluteTime; type: ObservabilityEventType.HttpFetchFinishSuccess; url: string; status: number; } | { + id: string; + when: AbsoluteTime; type: ObservabilityEventType.HttpFetchFinishError; url: string; error: TalerErrorDetail; @@ -207,9 +215,9 @@ export interface BackupOperationErrorNotification { error: TalerErrorDetail; } /** - * This notification is required to signal UI that + * 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 { |