This repository has been archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
194 lines (169 loc) · 2.84 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
export interface WPPage {
date: string
title: string
link: string
body: string
yoastHtml: string
yoastTitle: string
}
export interface Category {
id: number
}
export interface Pagination {
totalItems: number
pageCount: number
currentPage?: number
}
export interface Testimonial {
quote: string
projectUrl: string
quoteAuthor: string
}
export interface Article {
id: string
date: string
title: string
link: string
}
export interface Service {
body: string
title: string
imageUrl: string
}
export interface Taxonomy {
link: string
name: string
slug: string
taxonomy: string
}
export interface Post {
yoastHtml: string
date: string
slug: string
link: string
id: number
title: string
content: string
taxonomies: Taxonomy[]
teamMember?: {
position: string
name: string
imageUrl: string
}
}
export interface Project {
id: number
heroMedia: MediaItem
title: string
blocks: any[]
logoUrl?: string
}
export interface ProjectListItem {
id: string
logoUrl: string
link: string
title: string
}
export interface GalleryImage {
alt: string
url: string
}
export interface Guid {
rendered: string
}
export interface Title {
rendered: string
}
export interface Description {
rendered: string
}
export interface Caption {
rendered: string
}
export interface MediaItemImage {
file: string
width: number
height: number
mime_type: string
source_url: string
}
export interface Sizes {
thumbnail: MediaItemImage
medium: MediaItemImage
medium_large: MediaItemImage
large: MediaItemImage
full: MediaItemImage
}
export interface ImageMeta {
aperture: string
credit: string
camera: string
caption: string
created_timestamp: string
copyright: string
focal_length: string
iso: string
shutter_speed: string
title: string
orientation: string
keywords: any[]
}
export interface MediaDetails {
width: number
height: number
file: string
sizes: Sizes
image_meta: ImageMeta
}
export interface Self {
href: string
}
export interface Collection {
href: string
}
export interface About {
href: string
}
export interface Author {
embeddable: boolean
href: string
}
export interface Reply {
embeddable: boolean
href: string
}
export interface Links {
self: Self[]
collection: Collection[]
about: About[]
author: Author[]
replies: Reply[]
}
export interface MediaItem {
id: number
date: Date
date_gmt: Date
guid: Guid
modified: Date
modified_gmt: Date
slug: string
status: string
type: string
link: string
title: Title
author: number
comment_status: string
ping_status: string
template: string
meta: any[]
acf: any[]
description: Description
caption: Caption
alt_text: string
media_type: string
mime_type: string
media_details: MediaDetails
post: number
source_url: string
_links: Links
}