2021-11-11 23:37:42 +01:00
|
|
|
export type Address = string;
|
2022-01-28 20:51:34 +01:00
|
|
|
export type VALUE_TYPE = "Address" | "String" | "Number" | "Invalid";
|
2021-11-11 23:37:42 +01:00
|
|
|
|
|
|
|
export interface IEntry {
|
|
|
|
entity: Address;
|
|
|
|
attribute: string;
|
2022-01-09 21:24:49 +01:00
|
|
|
value: IValue;
|
|
|
|
}
|
|
|
|
|
2022-01-28 20:51:34 +01:00
|
|
|
export type IValue =
|
|
|
|
| {
|
|
|
|
t: "Address";
|
|
|
|
c: string;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
t: "String";
|
|
|
|
c: string;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
t: "Number";
|
|
|
|
c: number;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
t: "Invalid";
|
|
|
|
c: null;
|
|
|
|
};
|
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 IFile {
|
|
|
|
hash: string;
|
|
|
|
path: string;
|
|
|
|
valid: boolean;
|
|
|
|
added: string;
|
|
|
|
size: number;
|
|
|
|
mtime: string;
|
|
|
|
}
|
|
|
|
|
2021-12-21 16:10:16 +01:00
|
|
|
export interface IJob {
|
|
|
|
title: string;
|
|
|
|
progress: number;
|
|
|
|
state: "InProgress" | "Done" | "Failed";
|
|
|
|
}
|
|
|
|
|
2021-11-11 23:37:42 +01:00
|
|
|
export interface VaultInfo {
|
|
|
|
name: string | null;
|
|
|
|
location: string;
|
2022-02-02 22:36:45 +01:00
|
|
|
version: string;
|
2022-02-04 12:09:43 +01:00
|
|
|
desktop: boolean;
|
2022-01-09 21:24:49 +01:00
|
|
|
}
|