1- # source: http ://server:4000 /api/graphql
2- # timestamp: Mon Apr 27 2020 13:17:23 GMT+0000 (Coordinated Universal Time)
1+ # source: https ://codesandbox.io /api/graphql
2+ # timestamp: Tue Apr 28 2020 12:51:15 GMT+0200 (Central European Summer Time)
33
44schema {
55 query : RootQuery
@@ -163,109 +163,90 @@ The metadata of a reference
163163union ReferenceMetadata = CodeReferenceMetadata
164164
165165type RootMutation {
166- """
167- Remove a collaborator
168- """
169- removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
170- createComment (
171- codeReference : CodeReference
172- content : String !
173- id : ID
174- parentCommentId : ID
175- sandboxId : ID !
176- ): Comment !
177-
178166 """
179167 Clear notification unread count
180168 """
181169 clearNotificationCount : User
182170
183171 """
184- Add sandboxes to a collection
185- """
186- addToCollection (
187- collectionPath : String !
188- sandboxIds : [ID ]!
189- teamId : ID
190- ): Collection !
191-
192- """
193- Set the description of the team
172+ Remove someone from a team
194173 """
195- setTeamDescription ( description : String ! , teamId : ID ! ): Team
174+ removeFromTeam ( teamId : ID ! , userId : ID ! ): Team !
196175
197176 """
198- Create a team
177+ Unbookmark a template
199178 """
200- createTeam ( name : String ! ): Team
179+ unbookmarkTemplate ( teamId : ID , templateId : ID ! ): Template
201180
202181 """
203- Revoke an invitation to a team
182+ Accept an invitation to a team
204183 """
205- revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
184+ acceptTeamInvitation (teamId : ID ! ): Team !
206185
207186 """
208- Unbookmark a template
187+ Change authorization of a collaborator
209188 """
210- unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
189+ changeCollaboratorAuthorization (
190+ authorization : Authorization !
191+ sandboxId : ID !
192+ username : String !
193+ ): Collaborator !
211194
212195 """
213- Invite someone to a team
196+ Leave a team
214197 """
215- inviteToTeam (email : String , teamId : ID ! , username : String ): Team
216- unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
198+ leaveTeam (teamId : ID ! ): String !
217199
218200 """
219- Delete a collection and all subfolders
201+ Add a collaborator
220202 """
221- deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
203+ addCollaborator (
204+ authorization : Authorization !
205+ sandboxId : ID !
206+ username : String !
207+ ): Collaborator !
222208
223209 """
224- Make templates from sandboxes
210+ Set the description of the team
225211 """
226- makeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
212+ setTeamDescription (description : String ! , teamId : ID ! ): Team !
213+ redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
227214
228215 """
229- Accept an invitation to a team
216+ Redeem an invite token from a team
230217 """
231- acceptTeamInvitation (teamId : ID ! ): Team
218+ redeemTeamInviteToken (inviteToken : String ! ): Team !
219+ revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
232220
233221 """
234- Redeem an invite token from a team
222+ Reject an invitation to a team
235223 """
236- redeemTeamInviteToken ( inviteToken : String ! ): Team
224+ rejectTeamInvitation ( teamId : ID ! ): String !
237225
238226 """
239- Delete sandboxes
227+ bookmark a template
240228 """
241- deleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
242- setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ! ]! ): [Sandbox ! ]!
243- createSandboxInvitation (
244- authorization : Authorization !
245- email : String !
246- sandboxId : ID !
247- ): Invitation !
229+ bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
248230
249231 """
250- Add a collaborator
232+ Delete a collection and all subfolders
251233 """
252- addCollaborator (
253- authorization : Authorization !
254- sandboxId : ID !
255- username : String !
256- ): Collaborator !
257- renameSandbox (id : ID ! , title : String ! ): Sandbox !
234+ deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
235+ permanentlyDeleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
258236
259237 """
260- Convert templates back to sandboxes
238+ Invite someone to a team
261239 """
262- unmakeSandboxesTemplates ( sandboxIds : [ ID ! ] ! ): [ Template ! ] !
240+ inviteToTeam ( teamId : ID ! , username : String ! ): Team !
263241
264242 """
265- Reject an invitation to a team
243+ Add sandboxes to a collection
266244 """
267- rejectTeamInvitation (teamId : ID ! ): String
268- permanentlyDeleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
245+ addToCollection (
246+ collectionPath : String !
247+ sandboxIds : [ID ]!
248+ teamId : ID
249+ ): Collection !
269250
270251 """
271252 Rename a collection and all subfolders
@@ -276,54 +257,78 @@ type RootMutation {
276257 path : String !
277258 teamId : ID
278259 ): [Collection ! ]!
260+ renameSandbox (id : ID ! , title : String ! ): Sandbox !
261+ changeSandboxInvitationAuthorization (
262+ authorization : Authorization !
263+ invitationId : ID !
264+ sandboxId : ID !
265+ ): Invitation !
266+ unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
279267
280268 """
281- bookmark a template
269+ Make templates from sandboxes
282270 """
283- bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
284- revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
271+ makeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
272+
273+ """
274+ Invite someone to a team via email
275+ """
276+ inviteToTeamViaEmail (email : String ! , teamId : ID ! ): String !
277+ createSandboxInvitation (
278+ authorization : Authorization !
279+ email : String !
280+ sandboxId : ID !
281+ ): Invitation !
282+
283+ """
284+ Remove a collaborator
285+ """
286+ removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
287+ setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ! ]! ): [Sandbox ! ]!
285288
286289 """
287290 Create a collection
288291 """
289292 createCollection (path : String ! , teamId : ID ): Collection !
293+ createComment (
294+ codeReference : CodeReference
295+ content : String !
296+ id : ID
297+ parentCommentId : ID
298+ sandboxId : ID !
299+ ): Comment !
300+ updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
290301
291302 """
292- Mark all notifications as read
303+ Convert templates back to sandboxes
293304 """
294- markAllNotificationsAsRead : User
295- redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
305+ unmakeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
296306
297307 """
298308 Soft delete a comment. Note: all child comments will also be deleted.
299309 """
300310 deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
301- resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
302- changeSandboxInvitationAuthorization (
303- authorization : Authorization !
304- invitationId : ID !
305- sandboxId : ID !
306- ): Invitation !
307- updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
308311
309312 """
310- Leave a team
313+ Create a team
311314 """
312- leaveTeam ( teamId : ID ! ): String
315+ createTeam ( name : String ! ): Team !
313316
314317 """
315- Remove someone from a team
318+ Delete sandboxes
316319 """
317- removeFromTeam ( teamId : ID ! , userId : ID ! ): Team
320+ deleteSandboxes ( sandboxIds : [ ID ! ] ! ): [ Sandbox ! ] !
318321
319322 """
320- Change authorization of a collaborator
323+ Revoke an invitation to a team
321324 """
322- changeCollaboratorAuthorization (
323- authorization : Authorization !
324- sandboxId : ID !
325- username : String !
326- ): Collaborator !
325+ revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team !
326+
327+ """
328+ Mark all notifications as read
329+ """
330+ markAllNotificationsAsRead : User
331+ resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
327332}
328333
329334type RootQuery {
@@ -340,7 +345,7 @@ type RootQuery {
340345 """
341346 A team from an invite token
342347 """
343- teamByToken (inviteToken : ID ! ): Team
348+ teamByToken (inviteToken : String ! ): Team
344349}
345350
346351type RootSubscriptionType {
0 commit comments