diff options
Diffstat (limited to 'src/dbTypes.ts')
-rw-r--r-- | src/dbTypes.ts | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/dbTypes.ts b/src/dbTypes.ts index 3ffade4e3..e0abf1362 100644 --- a/src/dbTypes.ts +++ b/src/dbTypes.ts @@ -455,9 +455,10 @@ export interface ExchangeDetails { lastUpdateTime: Timestamp; } -export enum ExchangeUpdateStatus { +export const enum ExchangeUpdateStatus { FETCH_KEYS = "fetch_keys", FETCH_WIRE = "fetch_wire", + FETCH_TERMS = "fetch_terms", FINISHED = "finished", } @@ -495,6 +496,26 @@ export interface ExchangeRecord { timestampAdded: Timestamp; /** + * Terms of service text or undefined if not downloaded yet. + */ + termsOfServiceText: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceLastEtag: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceAcceptedEtag: string | undefined; + + /** + * ETag for last terms of service download. + */ + termsOfServiceAcceptedTimestamp: Timestamp | undefined; + + /** * Time when the update to the exchange has been started or * undefined if no update is in progress. */ |