Arno Kaimbacher
080c21126b
- add notification messages via notiwind.ts - add Project.ts - add new component TabelPersons.vue - add additional routes - npm updates
44 lines
1006 B
TypeScript
44 lines
1006 B
TypeScript
import { Ref } from 'vue';
|
|
|
|
export interface Dataset {
|
|
[key: string]: string | Ref<string>| boolean | Array<Title> | Array<Description>| Array<Person> | number | (IErrorMessage | undefined);
|
|
language: Ref<string>;
|
|
// licenses: Array<number>;
|
|
rights: boolean;
|
|
type: string;
|
|
creating_corporation: string;
|
|
titles: Array<Title>;
|
|
descriptions: Array<Description>;
|
|
authors: Array<Person>;
|
|
contributors: Array<Person>;
|
|
project_id?: number;
|
|
embargo_date?: string,
|
|
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>;
|
|
}
|
|
|
|
export interface Person {
|
|
id: number;
|
|
name: string;
|
|
email: string;
|
|
name_type: string;
|
|
identifier_orcid: string;
|
|
datasetCount: string;
|
|
created_at: string;
|
|
}
|
|
|
|
interface IErrorMessage {
|
|
[key: string]: Array<string>;
|
|
} |