11# source: https://codesandbox.stream/api/graphql
2- # timestamp: Mon Mar 30 2020 21:53:59 GMT+0200 (Central European Summer Time)
2+ # timestamp: Wed Apr 01 2020 16:03:34 GMT+0200 (Central European Summer Time)
33
44schema {
55 query : RootQuery
@@ -69,6 +69,7 @@ type Comment {
6969 content : String
7070 id : ID !
7171 insertedAt : NaiveDateTime !
72+ isRead : Boolean !
7273 isResolved : Boolean !
7374 parentComment : Comment
7475 references : [Reference ! ]!
@@ -159,58 +160,52 @@ The metadata of a reference
159160union ReferenceMetadata = CodeReferenceMetadata
160161
161162type RootMutation {
163+ revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
164+
162165 """
163- Set the description of the team
166+ Revoke an invitation to a team
164167 """
165- setTeamDescription ( description : String ! , teamId : ID ! ): Team
168+ revokeTeamInvitation ( teamId : ID ! , userId : ID ! ): Team
166169
167170 """
168- Unbookmark a template
171+ Change authorization of a collaborator
169172 """
170- unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
173+ changeCollaboratorAuthorization (
174+ authorization : Authorization !
175+ sandboxId : ID !
176+ username : String !
177+ ): Collaborator !
171178
172179 """
173- Reject an invitation to a team
180+ Convert templates back to sandboxes
174181 """
175- rejectTeamInvitation (teamId : ID ! ): String
176- revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
182+ unmakeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
177183
178184 """
179- Remove someone from a team
185+ Remove a collaborator
180186 """
181- removeFromTeam ( teamId : ID ! , userId : ID ! ): Team
187+ removeCollaborator ( sandboxId : ID ! , username : String ! ): Collaborator !
182188
183189 """
184- Delete a collection and all subfolders
190+ Unbookmark a template
185191 """
186- deleteCollection ( path : String ! , teamId : ID ): [ Collection ]
192+ unbookmarkTemplate ( teamId : ID , templateId : ID ! ): Template
187193
188194 """
189195 Make templates from sandboxes
190196 """
191197 makeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
192- renameSandbox (id : ID ! , title : String ! ): Sandbox
193- createSandboxInvitation (
194- authorization : Authorization !
195- email : String !
196- sandboxId : ID !
197- ): Invitation !
198+ updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
198199
199200 """
200- Rename a collection and all subfolders
201+ Reject an invitation to a team
201202 """
202- renameCollection (
203- newPath : String !
204- newTeamId : ID
205- path : String !
206- teamId : ID
207- ): [Collection ]
203+ rejectTeamInvitation (teamId : ID ! ): String
208204
209205 """
210206 Create a collection
211207 """
212208 createCollection (path : String ! , teamId : ID ): Collection
213- setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ]! ): [Sandbox ]
214209
215210 """
216211 Add a collaborator
@@ -220,103 +215,107 @@ type RootMutation {
220215 sandboxId : ID !
221216 username : String !
222217 ): Collaborator !
223- redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
224218
225219 """
226- Convert templates back to sandboxes
220+ Rename a collection and all subfolders
227221 """
228- unmakeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
222+ renameCollection (
223+ newPath : String !
224+ newTeamId : ID
225+ path : String !
226+ teamId : ID
227+ ): [Collection ]
229228
230229 """
231- Clear notification unread count
230+ Remove someone from a team
232231 """
233- clearNotificationCount : User
234- changeSandboxInvitationAuthorization (
235- authorization : Authorization !
236- invitationId : ID !
237- sandboxId : ID !
238- ): Invitation !
232+ removeFromTeam (teamId : ID ! , userId : ID ! ): Team
239233
240234 """
241- Mark all notifications as read
235+ bookmark a template
242236 """
243- markAllNotificationsAsRead : User
237+ bookmarkTemplate ( teamId : ID , templateId : ID ! ): Template
244238
245239 """
246- Add sandboxes to a collection
240+ Invite someone to a team
247241 """
248- addToCollection (
249- collectionPath : String !
250- sandboxIds : [ID ]!
251- teamId : ID
252- ): Collection
242+ inviteToTeam (teamId : ID ! , username : String ): Team
253243
254244 """
255- Accept an invitation to a team
245+ Delete sandboxes
256246 """
257- acceptTeamInvitation ( teamId : ID ! ): Team
258- permanentlyDeleteSandboxes ( sandboxIds : [ ID ] ! ): [ Sandbox ]
247+ deleteSandboxes ( sandboxIds : [ ID ] ! ): [ Sandbox ]
248+ renameSandbox ( id : ID ! , title : String ! ): Sandbox
259249
260250 """
261251 Create a team
262252 """
263253 createTeam (name : String ! ): Team
264254
265255 """
266- Invite someone to a team
256+ Set the description of the team
267257 """
268- inviteToTeam (teamId : ID ! , username : String ): Team
269- createComment (
270- codeReference : CodeReference
271- content : String !
272- parentCommentId : ID
273- sandboxId : ID !
274- ): Comment !
275- updateComment (
276- commentId : ID !
277- content : String
278- isResolved : Boolean
258+ setTeamDescription (description : String ! , teamId : ID ! ): Team
259+ createSandboxInvitation (
260+ authorization : Authorization !
261+ email : String !
279262 sandboxId : ID !
280- ): Comment !
263+ ): Invitation !
281264
282265 """
283- Revoke an invitation to a team
266+ Add sandboxes to a collection
284267 """
285- revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
268+ addToCollection (
269+ collectionPath : String !
270+ sandboxIds : [ID ]!
271+ teamId : ID
272+ ): Collection
273+ redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
286274
287275 """
288- Delete sandboxes
276+ Leave a team
289277 """
290- deleteSandboxes ( sandboxIds : [ ID ] ! ): [ Sandbox ]
278+ leaveTeam ( teamId : ID ! ): String
291279
292280 """
293- Change authorization of a collaborator
281+ Delete a collection and all subfolders
294282 """
295- changeCollaboratorAuthorization (
296- authorization : Authorization !
297- sandboxId : ID !
298- username : String !
299- ): Collaborator !
283+ deleteCollection (path : String ! , teamId : ID ): [Collection ]
284+ permanentlyDeleteSandboxes (sandboxIds : [ID ]! ): [Sandbox ]
285+ resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
286+ setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ]! ): [Sandbox ]
300287
301288 """
302- bookmark a template
289+ Soft delete a comment. Note: all child comments will also be deleted.
303290 """
304- bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
291+ deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
292+ createComment (
293+ codeReference : CodeReference
294+ content : String !
295+ parentCommentId : ID
296+ sandboxId : ID !
297+ ): Comment !
298+ unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
305299
306300 """
307- Leave a team
301+ Clear notification unread count
308302 """
309- leaveTeam (teamId : ID ! ): String
303+ clearNotificationCount : User
304+ changeSandboxInvitationAuthorization (
305+ authorization : Authorization !
306+ invitationId : ID !
307+ sandboxId : ID !
308+ ): Invitation !
310309
311310 """
312- Remove a collaborator
311+ Accept an invitation to a team
313312 """
314- removeCollaborator ( sandboxId : ID ! , username : String ! ): Collaborator !
313+ acceptTeamInvitation ( teamId : ID ! ): Team
315314
316315 """
317- Delete a comment. Note: all child comments will also be deleted.
316+ Mark all notifications as read
318317 """
319- deleteComment ( commentId : ID ! , sandboxId : ID ! ): Comment !
318+ markAllNotificationsAsRead : User
320319}
321320
322321type RootQuery {
0 commit comments