-
Notifications
You must be signed in to change notification settings - Fork 0
/
blo2023_amplify_schema.graphql
260 lines (254 loc) · 9.6 KB
/
blo2023_amplify_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
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
type Document @model {
id: ID! @primaryKey(sortKeyFields:["filename"]) @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
audioVersion: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
blo2018Id: Int @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
collections: [Collection] @manyToMany(relationName: "CollectionDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
contributors: [Contributor] @manyToMany(relationName: "ContributorDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
crossReferences: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
dateOriginalPublication: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
dateCurrentPublication: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
description: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
editions: [Edition] @manyToMany(relationName: "EditionDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
filename: String! @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
fileSize: Int @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
languages: [Language] @manyToMany(relationName: "LanguageDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
locales: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
notes: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
pageRange: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
pageTotal: Int @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
permissionType: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
phelpsInfo: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
subtitle: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
tags: [Tag] @manyToMany(relationName: "TagDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
title: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
views: Int @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
}
type Collection @model {
name: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
documents: [Document] @manyToMany(relationName: "CollectionDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
}
type Contributor @model {
firstNames: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
surnames: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
publicationFirstNames: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
publicationSurnames: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isAuthor: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isEditor: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isTranslator: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isCompiler: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isIllustrator: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isOther: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
otherDescription: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
documents: [Document] @manyToMany(relationName: "ContributorDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
}
type Edition @model {
city: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
date: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isbn: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
isCurrentDocument: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
originalTitle: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
pageRange: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
publication: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
publisher: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
volume: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
documents: [Document] @manyToMany(relationName: "EditionDocuments") @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
}
type Language @model {
isCurrentDocument: Boolean @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
language: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
documents: [Document] @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
]) @manyToMany(relationName: "LanguageDocuments")
}
type Tag @model {
language: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
documents: [Document] @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
]) @manyToMany(relationName: "TagDocuments")
}
type Summary @model {
filename: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
collectionName: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
contributorName: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
dateCurrentPublication: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
language: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
title: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
tag: String @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
views: Int @auth(rules: [
{ allow: private, operations: [create, read, update, delete] },
{ allow: public, operations: [read] }
])
}