forked from CenterForOpenScience/angular-osf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-file-target-response.model.ts
More file actions
42 lines (40 loc) · 1.07 KB
/
get-file-target-response.model.ts
File metadata and controls
42 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { ApiData, FileLinks, FileRelationshipsResponse, FileResponse, JsonApiResponse } from '@shared/models';
export type GetFileTargetResponse = JsonApiResponse<
ApiData<FileResponse, FileTargetResponse, FileRelationshipsResponse, FileLinks>,
null
>;
export interface FileTargetResponse {
target: JsonApiResponse<
ApiData<
{
title: string;
description: string;
category: string;
custom_citation: string;
date_created: string;
date_modified: string;
registration: boolean;
preprint: boolean;
fork: boolean;
collection: boolean;
tags: string[];
node_license: string;
analytics_key: string;
current_user_can_comment: boolean;
current_user_permissions: string[];
current_user_is_contributor: boolean;
current_user_is_contributor_or_group_member: boolean;
wiki_enabled: boolean;
public: boolean;
},
null,
null,
{
html: string;
self: string;
iri: string;
}
>,
null
>;
}