1- # source: https ://codesandbox.stream /api/graphql
2- # timestamp: Wed Apr 01 2020 16:03:34 GMT+0200 (Central European Summer Time)
1+ # source: http ://server:4000 /api/graphql
2+ # timestamp: Fri Apr 03 2020 11:58:51 GMT+0000 (Coordinated Universal Time)
33
44schema {
55 query : RootQuery
@@ -54,8 +54,8 @@ type Collaborator {
5454
5555type Collection {
5656 id : ID
57- path : String
58- sandboxes : [Sandbox ]
57+ path : String !
58+ sandboxes : [Sandbox ! ] !
5959 team : Team
6060 teamId : ID
6161 user : User
@@ -73,26 +73,27 @@ type Comment {
7373 isResolved : Boolean !
7474 parentComment : Comment
7575 references : [Reference ! ]!
76+ replyCount : Int !
7677 sandbox : Sandbox !
7778 updatedAt : NaiveDateTime !
7879 user : User !
7980}
8081
8182type CurrentUser {
82- bookmarkedTemplates : [Template ]
83+ bookmarkedTemplates : [Template ! ] !
8384 collection (path : String ! , teamId : ID ): Collection
84- collections (teamId : ID ): [Collection ]
85- email : String
85+ collections (teamId : ID ): [Collection ! ] !
86+ email : String !
8687 firstName : String
87- id : ID
88+ id : ID !
8889 lastName : String
8990 notifications (limit : Int , orderBy : OrderBy ): [Notification ]
90- recentlyUsedTemplates : [Template ]
91- sandboxes (limit : Int , orderBy : OrderBy , showDeleted : Boolean ): [Sandbox ]
91+ recentlyUsedTemplates : [Template ! ] !
92+ sandboxes (limit : Int , orderBy : OrderBy , showDeleted : Boolean ): [Sandbox ! ] !
9293 team (id : ID ! ): Team
93- teams : [Team ]
94- templates (showAll : Boolean , teamId : ID ): [Template ]
95- username : String
94+ teams : [Team ! ] !
95+ templates (showAll : Boolean , teamId : ID ): [Template ! ] !
96+ username : String !
9697}
9798
9899"""
@@ -160,61 +161,61 @@ The metadata of a reference
160161union ReferenceMetadata = CodeReferenceMetadata
161162
162163type RootMutation {
163- revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
164-
165164 """
166- Revoke an invitation to a team
165+ Leave a team
167166 """
168- revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
167+ leaveTeam (teamId : ID ! ): String
169168
170169 """
171- Change authorization of a collaborator
170+ Clear notification unread count
172171 """
173- changeCollaboratorAuthorization (
174- authorization : Authorization !
175- sandboxId : ID !
176- username : String !
177- ): Collaborator !
172+ clearNotificationCount : User
178173
179174 """
180- Convert templates back to sandboxes
175+ Remove a collaborator
181176 """
182- unmakeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
177+ removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
178+ createSandboxInvitation (
179+ authorization : Authorization !
180+ email : String !
181+ sandboxId : ID !
182+ ): Invitation !
183183
184184 """
185- Remove a collaborator
185+ Add sandboxes to a collection
186186 """
187- removeCollaborator (sandboxId : ID ! , username : String ! ): Collaborator !
187+ addToCollection (
188+ collectionPath : String !
189+ sandboxIds : [ID ]!
190+ teamId : ID
191+ ): Collection !
192+ renameSandbox (id : ID ! , title : String ! ): Sandbox !
188193
189194 """
190- Unbookmark a template
195+ Revoke an invitation to a team
191196 """
192- unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
197+ revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
198+ unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
193199
194200 """
195- Make templates from sandboxes
201+ Soft delete a comment. Note: all child comments will also be deleted.
196202 """
197- makeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
198- updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
203+ deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
199204
200205 """
201- Reject an invitation to a team
206+ bookmark a template
202207 """
203- rejectTeamInvitation (teamId : ID ! ): String
208+ bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
204209
205210 """
206- Create a collection
211+ Set the description of the team
207212 """
208- createCollection ( path : String ! , teamId : ID ): Collection
213+ setTeamDescription ( description : String ! , teamId : ID ! ): Team
209214
210215 """
211- Add a collaborator
216+ Accept an invitation to a team
212217 """
213- addCollaborator (
214- authorization : Authorization !
215- sandboxId : ID !
216- username : String !
217- ): Collaborator !
218+ acceptTeamInvitation (teamId : ID ! ): Team
218219
219220 """
220221 Rename a collection and all subfolders
@@ -224,98 +225,97 @@ type RootMutation {
224225 newTeamId : ID
225226 path : String !
226227 teamId : ID
227- ): [Collection ]
228+ ): [Collection ! ] !
228229
229230 """
230- Remove someone from a team
231+ Reject an invitation to a team
231232 """
232- removeFromTeam (teamId : ID ! , userId : ID ! ): Team
233+ rejectTeamInvitation (teamId : ID ! ): String
233234
234235 """
235- bookmark a template
236+ Create a collection
236237 """
237- bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
238+ createCollection (path : String ! , teamId : ID ): Collection !
239+ updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
238240
239241 """
240- Invite someone to a team
242+ Make templates from sandboxes
241243 """
242- inviteToTeam ( teamId : ID ! , username : String ): Team
244+ makeSandboxesTemplates ( sandboxIds : [ ID ! ] ! ): [ Template ! ] !
243245
244246 """
245- Delete sandboxes
247+ Remove someone from a team
246248 """
247- deleteSandboxes (sandboxIds : [ID ]! ): [Sandbox ]
248- renameSandbox (id : ID ! , title : String ! ): Sandbox
249+ removeFromTeam (teamId : ID ! , userId : ID ! ): Team
249250
250251 """
251- Create a team
252+ Unbookmark a template
252253 """
253- createTeam (name : String ! ): Team
254+ unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
255+ resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
254256
255257 """
256- Set the description of the team
258+ Change authorization of a collaborator
257259 """
258- setTeamDescription (description : String ! , teamId : ID ! ): Team
259- createSandboxInvitation (
260+ changeCollaboratorAuthorization (
260261 authorization : Authorization !
261- email : String !
262262 sandboxId : ID !
263- ): Invitation !
263+ username : String !
264+ ): Collaborator !
265+ revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
264266
265267 """
266- Add sandboxes to a collection
268+ Mark all notifications as read
267269 """
268- addToCollection (
269- collectionPath : String !
270- sandboxIds : [ID ]!
271- teamId : ID
272- ): Collection
273- redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
270+ markAllNotificationsAsRead : User
274271
275272 """
276- Leave a team
273+ Delete a collection and all subfolders
277274 """
278- leaveTeam (teamId : ID ! ): String
275+ deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
276+ redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
279277
280278 """
281- Delete a collection and all subfolders
279+ Add a collaborator
282280 """
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 ]
281+ addCollaborator (
282+ authorization : Authorization !
283+ sandboxId : ID !
284+ username : String !
285+ ): Collaborator !
287286
288287 """
289- Soft delete a comment. Note: all child comments will also be deleted.
288+ Create a team
290289 """
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 !
290+ createTeam (name : String ! ): Team
299291
300292 """
301- Clear notification unread count
293+ Invite someone to a team
302294 """
303- clearNotificationCount : User
304- changeSandboxInvitationAuthorization (
305- authorization : Authorization !
306- invitationId : ID !
307- sandboxId : ID !
308- ): Invitation !
295+ inviteToTeam (teamId : ID ! , username : String ): Team
296+ setSandboxesPrivacy (privacy : Int , sandboxIds : [ID ! ]! ): [Sandbox ! ]!
309297
310298 """
311- Accept an invitation to a team
299+ Convert templates back to sandboxes
312300 """
313- acceptTeamInvitation ( teamId : ID ! ): Team
301+ unmakeSandboxesTemplates ( sandboxIds : [ ID ! ] ! ): [ Template ! ] !
314302
315303 """
316- Mark all notifications as read
304+ Delete sandboxes
317305 """
318- markAllNotificationsAsRead : User
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 !
319319}
320320
321321type RootQuery {
@@ -371,7 +371,7 @@ type Sandbox {
371371 invitations : [Invitation ! ]!
372372 privacy : Int !
373373 removedAt : String
374- screenshotOutdated : Boolean
374+ screenshotOutdated : Boolean !
375375 screenshotUrl : String
376376 source : Source !
377377 title : String
@@ -384,14 +384,14 @@ type Source {
384384}
385385
386386type Team {
387- bookmarkedTemplates : [Template ]
388- collections : [Collection ]
387+ bookmarkedTemplates : [Template ! ] !
388+ collections : [Collection ! ] !
389389 creatorId : ID
390390 description : String
391- id : ID
392- invitees : [User ]
393- name : String
394- templates : [Template ]
391+ id : ID !
392+ invitees : [User ! ] !
393+ name : String !
394+ templates : [Template ! ] !
395395 users : [User ! ]!
396396}
397397
@@ -415,10 +415,10 @@ type Template {
415415A CodeSandbox User
416416"""
417417type User {
418- avatarUrl : String
418+ avatarUrl : String !
419419 firstName : String
420- id : ID
420+ id : ID !
421421 lastName : String
422422 name : String
423- username : String
423+ username : String !
424424}
0 commit comments