- added npm package dotenv-webpack for using env variables on clientside
All checks were successful
CI Pipeline / japa-tests (push) Successful in 53s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 53s
- added API File Controller for downloading files e.g. /api/download/1022 - also create has codes by submitting new dataset - added edit dataset functionalities for role submitter - added the following route for role submitter: /dataset/:id/update', 'DatasetController.update' - created extra UpdateDatasetValidator.ts for validating updated dataset - npm updates
This commit is contained in:
parent
a7142f694f
commit
d8bdce1369
23 changed files with 2181 additions and 853 deletions
|
@ -12,9 +12,10 @@ export interface Dataset {
|
|||
| (IErrorMessage | undefined)
|
||||
| Coverage
|
||||
| Array<DatasetReference>
|
||||
| Array<File>;
|
||||
| Array<File>
|
||||
| (Array<number> | Array<Object>);
|
||||
language: Ref<string>;
|
||||
// licenses: Array<number>;
|
||||
licenses: Array<number> | Array<Object>;
|
||||
rights: boolean;
|
||||
type: string;
|
||||
creating_corporation: string;
|
||||
|
@ -29,24 +30,49 @@ export interface Dataset {
|
|||
// async (user): Promise<void>;
|
||||
subjects: Array<Subject>;
|
||||
references: Array<DatasetReference>;
|
||||
files: Array<TestFile> | undefined;
|
||||
files: Array<TethysFile>;
|
||||
// upload: TethysFile
|
||||
}
|
||||
|
||||
/** Provides information about files and allows JavaScript in a web page to access their content. */
|
||||
export interface TestFile extends Blob {
|
||||
// export interface TethysFile {
|
||||
|
||||
// readonly lastModified: number;
|
||||
// readonly name: string;
|
||||
// readonly webkitRelativePath: string;
|
||||
// id: number;
|
||||
// label: string;
|
||||
// sorting: number;
|
||||
// filePath: string;
|
||||
// fileSrc: string;
|
||||
// }
|
||||
|
||||
export interface TethysFile {
|
||||
readonly lastModified: number;
|
||||
readonly name: string;
|
||||
readonly webkitRelativePath: string;
|
||||
id?: number;
|
||||
label: string;
|
||||
sorting: number;
|
||||
}
|
||||
// sorting: number;
|
||||
// path_name?: string; //only db path_name
|
||||
filePath?: string;
|
||||
fileSrc?: string;
|
||||
blob: Blob;
|
||||
fileData?: any;
|
||||
|
||||
// export interface TethysFile {
|
||||
// label: string,
|
||||
// sorting: number,
|
||||
// upload: File,
|
||||
// }
|
||||
//additional:
|
||||
comment?: string;
|
||||
document_id?: number;
|
||||
file_size: number;
|
||||
language?: string;
|
||||
mime_type: string;
|
||||
type?: string;
|
||||
|
||||
size: number;
|
||||
sort_order: number;
|
||||
visible_in_frontdoor: boolean;
|
||||
visible_in_oai: boolean;
|
||||
}
|
||||
|
||||
export interface Subject {
|
||||
// id: number;
|
||||
|
@ -64,12 +90,14 @@ export interface DatasetReference {
|
|||
}
|
||||
|
||||
export interface Title {
|
||||
id?: number;
|
||||
value: string;
|
||||
type: string;
|
||||
language: string | Ref<string>;
|
||||
}
|
||||
|
||||
export interface Description {
|
||||
id?: number;
|
||||
value: string;
|
||||
type: string;
|
||||
language: string | Ref<string>;
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue