-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
234 lines (217 loc) · 5.2 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
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
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type Mutation {
createSearch(input: CreateSearchInput!): Search @aws_cognito_user_pools @aws_iam
deleteSearch(input: DeleteSearchInput!): Search @aws_cognito_user_pools @aws_iam
updateSearch(input: UpdateSearchInput!): Search @aws_cognito_user_pools @aws_iam
}
type Query {
getSearch(id: ID!): Search @aws_auth(cognito_groups : ["neuronbridge-admins"]) @aws_cognito_user_pools @aws_iam
listAllSearches(filter: TableSearchFilterInput, limit: Int, nextToken: String): SearchConnection @aws_auth(cognito_groups : ["neuronbridge-admins"]) @aws_cognito_user_pools @aws_iam
listItemsByOwner(identityId: ID!, limit: Int, nextToken: String, sortDirection: String): SearchConnection @aws_cognito_user_pools @aws_iam
listSearches(filter: TableSearchFilterInput, limit: Int, nextToken: String): SearchConnection @aws_cognito_user_pools @aws_iam
}
type Search @aws_cognito_user_pools @aws_iam {
algorithm: Algorithm
alignFinished: AWSDateTime
alignStarted: AWSDateTime
alignmentErrorMessage: String
alignmentMovie: String
alignmentScore: String
alignmentSize: Int
anatomicalRegion: String
cdsFinished: AWSDateTime
cdsStarted: AWSDateTime
channel: Int
completedBatches: Int
computedMIPs: [String]
createdOn: AWSDateTime
dataThreshold: Int
displayableMask: String
errorMessage: String
id: ID!
identityId: String!
maskThreshold: Int
maxResultsPerMask: Int
mimeType: String
minMatchingPixRatio: Int
mirrorMask: Boolean
nBatches: Int
nTotalMatches: Int
owner: String
pixColorFluctuation: Float
referenceChannel: String
searchDir: String!
searchMask: String
searchType: SearchType
simulateMIPGeneration: Boolean
# step specifies the search phase:
# 0 image uploaded
# 1 alignment in progress
# 2 alignment complete
# 3 search in progress
# 4 search complete
step: Int
updatedOn: AWSDateTime
# upload is the filename or key of the uploaded image
upload: String!
uploadThumbnail: String
userDefinedImageParams: Boolean
voxelX: Float
voxelY: Float
voxelZ: Float
xyShift: Int
}
type SearchConnection @aws_cognito_user_pools @aws_iam {
items: [Search]
nextToken: String
}
type Subscription {
onCreateSearch(createdOn: String, id: ID, identityId: String, step: Int): Search @aws_subscribe(mutations : ["createSearch"])
onDeleteSearch(id: ID, identityId: String, step: Int): Search @aws_subscribe(mutations : ["deleteSearch"])
onUpdateSearch(id: ID, identityId: String, step: Int): Search @aws_subscribe(mutations : ["updateSearch"])
}
enum Algorithm {
avg
max
}
enum SearchType {
em2lm
lm2em
}
input CreateSearchInput {
algorithm: Algorithm
anatomicalRegion: String
channel: Int
dataThreshold: Int
identityId: String!
maskThreshold: Int
maxResultsPerMask: Int
mimeType: String
minMatchingPixRatio: Int
mirrorMask: Boolean
owner: String
pixColorFluctuation: Float
referenceChannel: String
searchDir: String!
searchMask: String
searchType: SearchType
simulateMIPGeneration: Boolean
step: Int!
upload: String!
uploadThumbnail: String
userDefinedImageParams: Boolean
voxelX: Float
voxelY: Float
voxelZ: Float
xyShift: Int
}
input DeleteSearchInput {
id: ID!
}
input TableBooleanFilterInput {
eq: Boolean
ne: Boolean
}
input TableDateFilterInput {
between: [AWSDateTime]
eq: AWSDateTime
ge: AWSDateTime
gt: AWSDateTime
le: AWSDateTime
lt: AWSDateTime
ne: AWSDateTime
}
input TableFloatFilterInput {
between: [Float]
contains: Float
eq: Float
ge: Float
gt: Float
le: Float
lt: Float
ne: Float
notContains: Float
}
input TableIDFilterInput {
beginsWith: ID
between: [ID]
contains: ID
eq: ID
ge: ID
gt: ID
le: ID
lt: ID
ne: ID
notContains: ID
}
input TableIntFilterInput {
between: [Int]
contains: Int
eq: Int
ge: Int
gt: Int
le: Int
lt: Int
ne: Int
notContains: Int
}
input TableSearchFilterInput {
algorithm: TableStringFilterInput
alignmentErrorMessage: TableStringFilterInput
cdsFinished: TableDateFilterInput
cdsStarted: TableDateFilterInput
createdOn: TableDateFilterInput
errorMessage: TableStringFilterInput
id: TableIDFilterInput
identityId: TableStringFilterInput
owner: TableStringFilterInput
searchType: TableStringFilterInput
step: TableIntFilterInput
updatedOn: TableDateFilterInput
}
input TableStringFilterInput {
beginsWith: String
between: [String]
contains: String
eq: String
ge: String
gt: String
le: String
lt: String
ne: String
notContains: String
}
input UpdateSearchInput {
alignFinished: AWSDateTime
alignStarted: AWSDateTime
alignmentErrorMessage: String
alignmentMovie: String
alignmentScore: String
alignmentSize: Int
anatomicalRegion: String
cdsFinished: AWSDateTime
cdsStarted: AWSDateTime
completedBatches: Int
computedMIPs: [String]
dataThreshold: Int
displayableMask: String
errorMessage: String
id: ID!
maskThreshold: Int
maxResultsPerMask: Int
minMatchingPixRatio: Int
mirrorMask: Boolean
nBatches: Int
nTotalMatches: Int
owner: String
pixColorFluctuation: Float
searchMask: String
searchType: SearchType
step: Int
uploadThumbnail: String
xyShift: Int
}