-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
98 lines (92 loc) · 2 KB
/
types.ts
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
89
90
91
92
93
94
95
96
97
98
export interface Departments {
departmentId: number;
displayName: string;
}
// William interface
export interface ArtworkData {
objectID: number;
isHighlight: boolean;
accessionNumber: string;
accessionYear: string;
isPublicDomain: boolean;
primaryImage: string;
primaryImageSmall: string;
additionalImages: string[];
constituents: Constituent[];
department: string;
objectName: string;
title: string;
culture: string;
period: string;
dynasty: string;
reign: string;
portfolio: string;
artistRole: string;
artistPrefix: string;
artistDisplayName: string;
artistDisplayBio: string;
artistSuffix: string;
artistAlphaSort: string;
artistNationality: string;
artistBeginDate: string;
artistEndDate: string;
artistGender: string;
artistWikidata_URL: string;
artistULAN_URL: string;
objectDate: string;
objectBeginDate: number;
objectEndDate: number;
medium: string;
dimensions: string;
dimensionsParsed: DimensionElement[];
measurements: Measurement[];
creditLine: string;
geographyType: string;
city: string;
state: string;
county: string;
country: string;
region: string;
subregion: string;
locale: string;
locus: string;
excavation: string;
river: string;
classification: string;
rightsAndReproduction: string;
linkResource: string;
metadataDate: Date;
repository: string;
objectURL: string;
tags: Tag[];
objectWikidata_URL: string;
isTimelineWork: boolean;
GalleryNumber: string;
}
export interface Constituent {
constituentID: number;
role: string;
name: string;
constituentULAN_URL: string;
constituentWikidata_URL: string;
gender: string;
}
export interface DimensionElement {
element: string;
dimensionType: string;
dimension: number;
}
export interface Measurement {
elementName: string;
elementDescription: string;
elementMeasurements: {
Height: number;
Length: number;
Width: number;
};
}
export interface Tag {
term: string;
AAT_URL: string;
Wikidata_URL: string;
}