-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
157 lines (133 loc) · 2.81 KB
/
schema.graphql
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
# A date-time string at UTC, such as 2007-12-03T10:15:30Z,
# compliant with the 'date-time' format outlined in section 5.6 of
# the RFC 3339 profile of the ISO 8601 standard for representation
# of dates and times using the Gregorian calendar.
scalar DateTime
# The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
scalar JSON
type ContentfulTag {
id: String
name: String
}
type ContentfulMetadata {
tags: [ContentfulTag]!
}
interface Entry {
contentfulMetadata: ContentfulMetadata!
}
type Sys {
id: String!
}
# Represents a binary file in a space. An asset can be any file type.
type Asset {
contentfulMetadata: ContentfulMetadata!
sys: Sys!
title: String
description: String
contentType: String
fileName: String
size: Int
url: String
width: Int
height: Int
}
type AssetCollection {
total: Int!
skip: Int!
limit: Int!
items: [Asset]!
}
type Richtext {
json: JSON!
links: RichtextLinks!
}
type RichtextLinks {
assets: ProjectRichtextAssets!
entries: ProjectRichtextEntries!
}
type ProjectRichtextAssets {
block: [Asset]!
}
type ProjectRichtextEntries {
block: [Entry]!
}
type Project implements Entry {
sys: Sys!
title: String
slug: String
metaDescription: String
mainImage: Asset
thumbnailImage: Asset
order: Int
category: String
categoryText: String
intro: String
isPasswordProtected: Boolean
protectionPassword: String
comingSoon: Boolean
blocksCollection: ProjectBlocksCollection
}
type ProjectBlocksCollection {
total: Int!
skip: Int!
limit: Int!
items: [ProjectBlocksItem]!
}
union ProjectBlocksItem =
| CarouselBlock
| FullScreenBlock
| ProjectInfoBlock
| TitleTextBlock
| GridBlock
| TitlesWithSideParagraphsBlock
type CarouselBlock implements Entry {
title: String
carouselDescription: String
colorCode: String
imagesCollection: AssetCollection
}
type FullScreenBlock {
image: Asset
}
type ProjectInfoBlock implements Entry {
title: String
subtitle: String
description: Richtext
team: String
client: String
role: String
skills: String
}
type TitleTextBlock implements Entry {
title: String
colorCode: String
description: Richtext
}
type TitlesWithSideParagraphsBlock implements Entry {
title1: String
description1: String
title2: String
description2: String
colorCode: String
}
type GridBlock implements Entry {
sys: Sys!
spacing: String
imagesCollection: GridBlockImagesCollection
}
type GridBlockImagesCollection {
total: Int!
skip: Int!
limit: Int!
items: [GridImages]!
}
type GridImages implements Entry {
imagesCollection: AssetCollection
}
type Homepage implements Entry {
quote: String
mainText: Richtext
}
type AboutPage implements Entry {
lefttColumnText: Richtext
}