aboutsummaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-01-22 12:22:57 +0100
committerFlorian Dold <florian.dold@gmail.com>2020-01-22 12:22:57 +0100
commit14103aa0750fd2874480a564b2f0be0932c13e21 (patch)
treeb88cda4f36bdd563849aacafc220b794afce64f7 /src/types
parent21194fa78137ca0a60487968e32ee9c3941ad812 (diff)
downloadwallet-core-14103aa0750fd2874480a564b2f0be0932c13e21.tar.xz
make verbose details an option
Diffstat (limited to 'src/types')
-rw-r--r--src/types/history.ts15
-rw-r--r--src/types/pending.ts8
2 files changed, 19 insertions, 4 deletions
diff --git a/src/types/history.ts b/src/types/history.ts
index ad7d98df0..52148cb04 100644
--- a/src/types/history.ts
+++ b/src/types/history.ts
@@ -509,7 +509,7 @@ export interface HistoryPaymentSent {
*/
sessionId: string | undefined;
- verboseDetails: VerbosePayCoinDetails;
+ verboseDetails?: VerbosePayCoinDetails;
}
/**
@@ -590,7 +590,7 @@ export interface HistoryRefreshedEvent {
*/
refreshGroupId: string;
- verboseDetails: VerboseRefreshDetails;
+ verboseDetails?: VerboseRefreshDetails;
}
export interface VerboseWithdrawDetails {
@@ -630,7 +630,10 @@ export interface HistoryWithdrawnEvent {
*/
amountWithdrawnEffective: string;
- verboseDetails: VerboseWithdrawDetails;
+ /**
+ * Verbose details of the operations, only generated when requested.
+ */
+ verboseDetails?: VerboseWithdrawDetails;
}
/**
@@ -684,5 +687,9 @@ export type HistoryEvent = HistoryEventBase &
);
export interface HistoryQuery {
- // TBD
+ /**
+ * Output extra verbose details, intended for debugging
+ * and not for end users.
+ */
+ verboseDetails?: boolean;
}
diff --git a/src/types/pending.ts b/src/types/pending.ts
index 15299dec4..b6b0849ac 100644
--- a/src/types/pending.ts
+++ b/src/types/pending.ts
@@ -60,6 +60,9 @@ export type PendingOperationInfo = PendingOperationInfoCommon &
| PendingWithdrawOperation
);
+/**
+ * The wallet is currently updating information about an exchange.
+ */
export interface PendingExchangeUpdateOperation {
type: PendingOperationType.ExchangeUpdate;
stage: string;
@@ -68,6 +71,11 @@ export interface PendingExchangeUpdateOperation {
lastError: OperationError | undefined;
}
+/**
+ * Some interal error happened in the wallet. This pending operation
+ * should *only* be reported for problems in the wallet, not when
+ * a problem with a merchant/exchange/etc. occurs.
+ */
export interface PendingBugOperation {
type: PendingOperationType.Bug;
message: string;