1- # source: http ://server:4000 /api/graphql
2- # timestamp: Fri Apr 03 2020 11:58:51 GMT+0000 (Coordinated Universal Time)
1+ # source: https ://codesandbox.io /api/graphql
2+ # timestamp: Wed Apr 08 2020 13:07:11 GMT+0200 (Central European Summer Time)
33
44schema {
55 query : RootQuery
@@ -21,9 +21,7 @@ type Bookmarked {
2121 isBookmarked : Boolean
2222}
2323
24- """
25- A team or the current user
26- """
24+ """A team or the current user"""
2725union BookmarkEntity = Team | User
2826
2927input CodeReference {
@@ -40,9 +38,7 @@ type CodeReferenceMetadata {
4038 path : String !
4139}
4240
43- """
44- A collaborator on a sandbox
45- """
41+ """A collaborator on a sandbox"""
4642type Collaborator {
4743 authorization : Authorization !
4844 id : ID !
@@ -118,9 +114,7 @@ type Git {
118114 username : String
119115}
120116
121- """
122- An invitation to a sandbox
123- """
117+ """An invitation to a sandbox"""
124118type Invitation {
125119 authorization : Authorization !
126120 email : String
@@ -155,178 +149,96 @@ type Reference {
155149 type : String !
156150}
157151
158- """
159- The metadata of a reference
160- """
152+ """The metadata of a reference"""
161153union ReferenceMetadata = CodeReferenceMetadata
162154
163155type RootMutation {
164- """
165- Leave a team
166- """
167- leaveTeam (teamId : ID ! ): String
168-
169- """
170- Clear notification unread count
171- """
172- clearNotificationCount : User
156+ """Reject an invitation to a team"""
157+ rejectTeamInvitation (teamId : ID ! ): String
173158
174- """
175- Remove a collaborator
176- """
177- removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
178- createSandboxInvitation (
179- authorization : Authorization !
180- email : String !
181- sandboxId : ID !
182- ): Invitation !
183-
184- """
185- Add sandboxes to a collection
186- """
187- addToCollection (
188- collectionPath : String !
189- sandboxIds : [ID ]!
190- teamId : ID
191- ): Collection !
192- renameSandbox (id : ID ! , title : String ! ): Sandbox !
159+ """Rename a collection and all subfolders"""
160+ renameCollection (newPath : String ! , newTeamId : ID , path : String ! , teamId : ID ): [Collection ! ]!
193161
194- """
195- Revoke an invitation to a team
196- """
162+ """Revoke an invitation to a team"""
197163 revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
198- unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
164+ revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
165+ updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
166+ changeSandboxInvitationAuthorization (authorization : Authorization ! , invitationId : ID ! , sandboxId : ID ! ): Invitation !
199167
200- """
201- Soft delete a comment. Note: all child comments will also be deleted.
202- """
203- deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
168+ """Delete a collection and all subfolders"""
169+ deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
170+ redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
204171
205- """
206- bookmark a template
207- """
208- bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
172+ """Unbookmark a template"""
173+ unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
209174
210- """
211- Set the description of the team
212- """
175+ """Set the description of the team"""
213176 setTeamDescription (description : String ! , teamId : ID ! ): Team
177+ createSandboxInvitation (authorization : Authorization ! , email : String ! , sandboxId : ID ! ): Invitation !
214178
215- """
216- Accept an invitation to a team
217- """
179+ """Accept an invitation to a team"""
218180 acceptTeamInvitation (teamId : ID ! ): Team
219181
220- """
221- Rename a collection and all subfolders
222- """
223- renameCollection (
224- newPath : String !
225- newTeamId : ID
226- path : String !
227- teamId : ID
228- ): [Collection ! ]!
229-
230- """
231- Reject an invitation to a team
232- """
233- rejectTeamInvitation (teamId : ID ! ): String
234-
235- """
236- Create a collection
237- """
182+ """Create a collection"""
238183 createCollection (path : String ! , teamId : ID ): Collection !
239- updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
184+ unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
240185
241- """
242- Make templates from sandboxes
243- """
244- makeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
186+ """Mark all notifications as read"""
187+ markAllNotificationsAsRead : User
245188
246- """
247- Remove someone from a team
248- """
249- removeFromTeam (teamId : ID ! , userId : ID ! ): Team
189+ """Delete sandboxes"""
190+ deleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
250191
251- """
252- Unbookmark a template
253- """
254- unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
192+ """Remove a collaborator"""
193+ removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
194+ permanentlyDeleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
255195 resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
196+ setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ! ]! ): [Sandbox ! ]!
256197
257- """
258- Change authorization of a collaborator
259- """
260- changeCollaboratorAuthorization (
261- authorization : Authorization !
262- sandboxId : ID !
263- username : String !
264- ): Collaborator !
265- revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
198+ """Soft delete a comment. Note: all child comments will also be deleted."""
199+ deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
266200
267- """
268- Mark all notifications as read
269- """
270- markAllNotificationsAsRead : User
201+ """Invite someone to a team"""
202+ inviteToTeam (teamId : ID ! , username : String ): Team
203+ renameSandbox (id : ID ! , title : String ! ): Sandbox !
271204
272- """
273- Delete a collection and all subfolders
274- """
275- deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
276- redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
205+ """Leave a team"""
206+ leaveTeam (teamId : ID ! ): String
277207
278- """
279- Add a collaborator
280- """
281- addCollaborator (
282- authorization : Authorization !
283- sandboxId : ID !
284- username : String !
285- ): Collaborator !
286-
287- """
288- Create a team
289- """
290- createTeam (name : String ! ): Team
208+ """Add a collaborator"""
209+ addCollaborator (authorization : Authorization ! , sandboxId : ID ! , username : String ! ): Collaborator !
291210
292- """
293- Invite someone to a team
294- """
295- inviteToTeam ( teamId : ID ! , username : String ): Team
296- setSandboxesPrivacy ( privacy : Int , sandboxIds : [ ID ! ] ! ): [ Sandbox ! ] !
211+ """Add sandboxes to a collection"""
212+ addToCollection ( collectionPath : String ! , sandboxIds : [ ID ] ! , teamId : ID ): Collection !
213+
214+ """Clear notification unread count"""
215+ clearNotificationCount : User
297216
298- """
299- Convert templates back to sandboxes
300- """
217+ """Make templates from sandboxes"""
218+ makeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
219+
220+ """Change authorization of a collaborator"""
221+ changeCollaboratorAuthorization (authorization : Authorization ! , sandboxId : ID ! , username : String ! ): Collaborator !
222+
223+ """Remove someone from a team"""
224+ removeFromTeam (teamId : ID ! , userId : ID ! ): Team
225+
226+ """bookmark a template"""
227+ bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
228+ createComment (codeReference : CodeReference , content : String ! , id : ID , parentCommentId : ID , sandboxId : ID ! ): Comment !
229+
230+ """Convert templates back to sandboxes"""
301231 unmakeSandboxesTemplates (sandboxIds : [ID ! ]! ): [Template ! ]!
302232
303- """
304- Delete sandboxes
305- """
306- deleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
307- changeSandboxInvitationAuthorization (
308- authorization : Authorization !
309- invitationId : ID !
310- sandboxId : ID !
311- ): Invitation !
312- permanentlyDeleteSandboxes (sandboxIds : [ID ! ]! ): [Sandbox ! ]!
313- createComment (
314- codeReference : CodeReference
315- content : String !
316- parentCommentId : ID
317- sandboxId : ID !
318- ): Comment !
233+ """Create a team"""
234+ createTeam (name : String ! ): Team
319235}
320236
321237type RootQuery {
322- """
323- Get current user
324- """
238+ """Get current user"""
325239 me : CurrentUser
326240
327- """
328- Get a sandbox
329- """
241+ """Get a sandbox"""
330242 sandbox (sandboxId : ID ! ): Sandbox
331243}
332244
@@ -343,9 +255,7 @@ type RootSubscriptionType {
343255 sandboxChanged (sandboxId : ID ! ): Sandbox !
344256}
345257
346- """
347- A Sandbox
348- """
258+ """A Sandbox"""
349259type Sandbox {
350260 alias : String
351261 author : User
@@ -355,16 +265,12 @@ type Sandbox {
355265 comment (commentId : ID ! ): Comment
356266 comments : [Comment ! ]!
357267
358- """
359- If the sandbox is a template this will be set
360- """
268+ """If the sandbox is a template this will be set"""
361269 customTemplate : Template
362270 description : String
363271 forkedTemplate : Template
364272
365- """
366- If the sandbox has a git repo tied to it this will be set
367- """
273+ """If the sandbox has a git repo tied to it this will be set"""
368274 git : Git
369275 id : ID !
370276 insertedAt : String !
@@ -395,9 +301,7 @@ type Team {
395301 users : [User ! ]!
396302}
397303
398- """
399- A Template
400- """
304+ """A Template"""
401305type Template {
402306 bookmarked : [Bookmarked ]
403307 color : String
@@ -411,9 +315,7 @@ type Template {
411315 updatedAt : String
412316}
413317
414- """
415- A CodeSandbox User
416- """
318+ """A CodeSandbox User"""
417319type User {
418320 avatarUrl : String !
419321 firstName : String
0 commit comments