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