Repository navigation
Expand file tree
/
Copy pathtypes.ts
More file actions
105 lines (93 loc) · 1.74 KB
/
Copy pathtypes.ts
File metadata and controls
105 lines (93 loc) · 1.74 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
export interface TEntry {
uid: string;
title: string;
created_at: string;
_version: number;
locale: string;
created_by: string;
updated_by: string;
_branch?: string;
publish_details: PublishDetails;
author: Author[];
url: string;
reference?: any;
}
export interface TEntries {
entries: TEntry[];
}
interface PublishDetails {
environment: string;
locale: string;
time: string;
user: string;
}
interface Author {
uid: string;
_content_type_uid: string;
}
interface Reference {
uid: string;
_content_type_uid: string;
}
export interface TAsset {
_version: number;
uid: string;
filename: string;
content_type: string;
created_by: string;
updated_by: string;
publish_details: PublishDetails;
url: string;
_branch?: string;
_metadata?: { [key: string]: any }
dimension?: {
height: string;
width: string;
};
}
export interface TGlobalField {
uid: string;
title: string;
schema: any[];
_version: number;
created_at: string;
updated_at: string;
created_by: string;
updated_by: string;
_branch?: string;
}
export interface TAssets {
assets: TAsset[];
}
export interface TContentType {
title: string;
uid: string;
_version: number;
schema: {
display_name: string;
uid: string;
data_type: string;
mandatory: string;
};
description: string;
created_at: string;
updated_at: string;
}
export interface TContentTypes {
content_types: TContentType[];
}
export interface TTaxonomies {
taxonomies: TTaxonomy[];
}
export interface TTaxonomy {
uid: string;
name: string;
description?: string;
terms_count: number;
created_at: string;
updated_at: string;
created_by: string;
updated_by: string;
type: string;
publish_details: PublishDetails;
}