-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpreprint-json-api.models.ts
More file actions
88 lines (82 loc) · 2.29 KB
/
preprint-json-api.models.ts
File metadata and controls
88 lines (82 loc) · 2.29 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { UserPermissions } from '@osf/shared/enums/user-permissions.enum';
import { BooleanOrNull, StringOrNull } from '@osf/shared/helpers/types.helper';
import { ContributorDataJsonApi } from '@shared/models/contributors/contributor-response-json-api.model';
import { IdentifiersResponseJsonApi } from '@shared/models/identifiers/identifier-json-api.model';
import { LicenseRecordJsonApi, LicenseResponseJsonApi } from '@shared/models/license/licenses-json-api.model';
import { ApplicabilityStatus, PreregLinkInfo, ReviewsState } from '../enums';
export interface PreprintAttributesJsonApi {
date_created: string;
date_modified: string;
date_published: Date | null;
original_publication_date: Date | null;
date_last_transitioned: Date | null;
date_withdrawn: Date | null;
withdrawal_justification: StringOrNull;
custom_publication_citation: StringOrNull;
doi: StringOrNull;
preprint_doi_created: Date | null;
title: string;
description: string;
is_published: boolean;
is_preprint_orphan: boolean;
license_record: LicenseRecordJsonApi | null;
tags: string[];
current_user_permissions: UserPermissions[];
public: boolean;
reviews_state: ReviewsState;
version: number;
is_latest_version: boolean;
has_coi: BooleanOrNull;
conflict_of_interest_statement: StringOrNull;
has_data_links: ApplicabilityStatus | null;
data_links: string[];
why_no_data: StringOrNull;
has_prereg_links: ApplicabilityStatus | null;
why_no_prereg: StringOrNull;
prereg_links: string[];
prereg_link_info: PreregLinkInfo | null;
default_license_id: string;
}
export interface PreprintRelationshipsJsonApi {
primary_file: {
data: {
id: string;
type: 'files';
};
};
license: {
data: {
id: string;
type: 'licenses';
};
};
node: {
data: {
id: string;
type: 'nodes';
};
};
provider: {
data: {
id: string;
type: 'preprint-providers';
};
};
}
export interface PreprintEmbedsJsonApi {
bibliographic_contributors: {
data: ContributorDataJsonApi[];
};
license: LicenseResponseJsonApi;
identifiers: IdentifiersResponseJsonApi;
}
export interface PreprintMetaJsonApi {
metrics: {
downloads: number;
views: number;
};
}
export interface PreprintLinksJsonApi {
preprint_doi: string;
doi: string;
}