-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
83 lines (75 loc) · 1.3 KB
/
index.d.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
interface IStrapiResponse<T> {
data: T[];
meta: {
pagination: {
page: number;
pageSize: number;
pageCount: number;
total: number;
}
}
}
export interface IEvent {
id: number;
attributes: EventAttributes;
}
export interface EventAttributes {
title: string;
createdAt: Date;
updatedAt: Date;
publishedAt: Date;
content: string;
start_date: Date;
end_date: Date;
slug: string;
type: string;
gems: number;
locale: string;
image: Image;
localizations: Localizations;
}
export interface Image {
data: ImageData;
}
export interface ImageData {
id: number;
attributes: StrapiImageAttributes;
}
export interface StrapiImageAttributes {
name: string;
alternativeText: string;
caption: string;
width: number;
height: number;
formats: Formats;
hash: string;
ext: string;
mime: string;
size: number;
url: string;
previewUrl: null;
provider: string;
provider_metadata: null;
createdAt: Date;
updatedAt: Date;
}
export interface Formats {
large: Large;
small: Large;
medium: Large;
thumbnail: Large;
}
export interface Large {
ext: string;
url: string;
hash: string;
mime: string;
name: string;
path: null;
size: number;
width: number;
height: number;
}
export interface Localizations {
data: any[];
}