2021-11-11 23:37:42 +01:00
|
|
|
export type Address = string;
|
|
|
|
export type VALUE_TYPE = "Value" | "Address" | "Invalid";
|
|
|
|
|
|
|
|
export interface IEntry {
|
|
|
|
entity: Address;
|
|
|
|
attribute: string;
|
2021-12-18 15:12:22 +01:00
|
|
|
value: { t: VALUE_TYPE; c: string | number };
|
2021-11-11 23:37:42 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface ListingResult {
|
|
|
|
[key: string]: IEntry;
|
|
|
|
}
|
|
|
|
|
2021-12-19 13:54:16 +01:00
|
|
|
// export type OrderedListing = [Address, IEntry][];
|
2021-11-11 23:37:42 +01:00
|
|
|
|
|
|
|
export interface Job {
|
|
|
|
title: string;
|
|
|
|
progress: number;
|
|
|
|
state: "InProgress" | "Done" | "Failed";
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface IFile {
|
|
|
|
hash: string;
|
|
|
|
path: string;
|
|
|
|
valid: boolean;
|
|
|
|
added: string;
|
|
|
|
size: number;
|
|
|
|
mtime: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface VaultInfo {
|
|
|
|
name: string | null;
|
|
|
|
location: string;
|
|
|
|
}
|