forked from geolba/tethys.backend
30 lines
661 B
TypeScript
30 lines
661 B
TypeScript
|
import { Ref } from 'vue';
|
||
|
|
||
|
export interface Dataset {
|
||
|
[key: string]: string | Ref<string>| boolean | Array<Title> | (IErrorMessage | undefined);
|
||
|
language: Ref<string>;
|
||
|
// licenses: Array<number>;
|
||
|
rights: boolean;
|
||
|
type: string;
|
||
|
creating_corporation: string;
|
||
|
titles: Array<Title>;
|
||
|
descriptions: Array<Description>;
|
||
|
errors?: IErrorMessage;
|
||
|
// async (user): Promise<void>;
|
||
|
}
|
||
|
|
||
|
export interface Title {
|
||
|
value: string;
|
||
|
type: string;
|
||
|
language: string | Ref<string>;
|
||
|
}
|
||
|
|
||
|
export interface Description {
|
||
|
value: string;
|
||
|
type: string;
|
||
|
language: string | Ref<string>;
|
||
|
}
|
||
|
|
||
|
interface IErrorMessage {
|
||
|
[key: string]: Array<string>;
|
||
|
}
|