diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-30 18:33:28 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-30 18:33:28 +0200 |
commit | e5b88ee00392d855b9d343a3dd80afeb33f44d79 (patch) | |
tree | be4a882fbefd8797acfc37e2fb32b80001d37a1c /src/types.ts | |
parent | b6df47f25e6db2de0a7563730f8881f935a94f29 (diff) | |
download | wallet-core-e5b88ee00392d855b9d343a3dd80afeb33f44d79.tar.xz |
skeleton for better RPC types
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts index c4b6c466a..4dee93a10 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1358,3 +1358,49 @@ export type CheckPayResult = "paid" | "payment-possible" | "insufficient-balance * Possible results for confirmPay. */ export type ConfirmPayResult = "paid" | "insufficient-balance"; + + +/** + * Level of detail at which a history + * entry should be shown. + */ +export enum HistoryLevel { + Trace = 1, + Developer = 2, + Expert = 3, + User = 4, +} + + +/* + * Activity history record. + */ +export interface HistoryRecord { + /** + * Type of the history event. + */ + type: string; + + /** + * Time when the activity was recorded. + */ + timestamp: number; + + /** + * Subject of the entry. Used to group multiple history records together. + * Only the latest history record with the same subjectId will be shown. + */ + subjectId?: string; + + /** + * Details used when rendering the history record. + */ + detail: any; + + /** + * Level of detail of the history entry. + */ + level: HistoryLevel; +} + + |