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)
3
3
4
4
schema {
5
5
query : RootQuery
@@ -54,8 +54,8 @@ type Collaborator {
54
54
55
55
type Collection {
56
56
id : ID
57
- path : String
58
- sandboxes : [Sandbox ]
57
+ path : String !
58
+ sandboxes : [Sandbox ! ] !
59
59
team : Team
60
60
teamId : ID
61
61
user : User
@@ -73,26 +73,27 @@ type Comment {
73
73
isResolved : Boolean !
74
74
parentComment : Comment
75
75
references : [Reference ! ]!
76
+ replyCount : Int !
76
77
sandbox : Sandbox !
77
78
updatedAt : NaiveDateTime !
78
79
user : User !
79
80
}
80
81
81
82
type CurrentUser {
82
- bookmarkedTemplates : [Template ]
83
+ bookmarkedTemplates : [Template ! ] !
83
84
collection (path : String ! , teamId : ID ): Collection
84
- collections (teamId : ID ): [Collection ]
85
- email : String
85
+ collections (teamId : ID ): [Collection ! ] !
86
+ email : String !
86
87
firstName : String
87
- id : ID
88
+ id : ID !
88
89
lastName : String
89
90
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 ! ] !
92
93
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 !
96
97
}
97
98
98
99
"""
@@ -160,61 +161,61 @@ The metadata of a reference
160
161
union ReferenceMetadata = CodeReferenceMetadata
161
162
162
163
type RootMutation {
163
- revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
164
-
165
164
"""
166
- Revoke an invitation to a team
165
+ Leave a team
167
166
"""
168
- revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
167
+ leaveTeam (teamId : ID ! ): String
169
168
170
169
"""
171
- Change authorization of a collaborator
170
+ Clear notification unread count
172
171
"""
173
- changeCollaboratorAuthorization (
174
- authorization : Authorization !
175
- sandboxId : ID !
176
- username : String !
177
- ): Collaborator !
172
+ clearNotificationCount : User
178
173
179
174
"""
180
- Convert templates back to sandboxes
175
+ Remove a collaborator
181
176
"""
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 !
183
183
184
184
"""
185
- Remove a collaborator
185
+ Add sandboxes to a collection
186
186
"""
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 !
188
193
189
194
"""
190
- Unbookmark a template
195
+ Revoke an invitation to a team
191
196
"""
192
- unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
197
+ revokeTeamInvitation (teamId : ID ! , userId : ID ! ): Team
198
+ unresolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
193
199
194
200
"""
195
- Make templates from sandboxes
201
+ Soft delete a comment. Note: all child comments will also be deleted.
196
202
"""
197
- makeSandboxesTemplates (sandboxIds : [ID ]! ): [Template ]
198
- updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
203
+ deleteComment (commentId : ID ! , sandboxId : ID ! ): Comment !
199
204
200
205
"""
201
- Reject an invitation to a team
206
+ bookmark a template
202
207
"""
203
- rejectTeamInvitation (teamId : ID ! ): String
208
+ bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
204
209
205
210
"""
206
- Create a collection
211
+ Set the description of the team
207
212
"""
208
- createCollection ( path : String ! , teamId : ID ): Collection
213
+ setTeamDescription ( description : String ! , teamId : ID ! ): Team
209
214
210
215
"""
211
- Add a collaborator
216
+ Accept an invitation to a team
212
217
"""
213
- addCollaborator (
214
- authorization : Authorization !
215
- sandboxId : ID !
216
- username : String !
217
- ): Collaborator !
218
+ acceptTeamInvitation (teamId : ID ! ): Team
218
219
219
220
"""
220
221
Rename a collection and all subfolders
@@ -224,98 +225,97 @@ type RootMutation {
224
225
newTeamId : ID
225
226
path : String !
226
227
teamId : ID
227
- ): [Collection ]
228
+ ): [Collection ! ] !
228
229
229
230
"""
230
- Remove someone from a team
231
+ Reject an invitation to a team
231
232
"""
232
- removeFromTeam (teamId : ID ! , userId : ID ! ): Team
233
+ rejectTeamInvitation (teamId : ID ! ): String
233
234
234
235
"""
235
- bookmark a template
236
+ Create a collection
236
237
"""
237
- bookmarkTemplate (teamId : ID , templateId : ID ! ): Template
238
+ createCollection (path : String ! , teamId : ID ): Collection !
239
+ updateComment (commentId : ID ! , content : String , sandboxId : ID ! ): Comment !
238
240
239
241
"""
240
- Invite someone to a team
242
+ Make templates from sandboxes
241
243
"""
242
- inviteToTeam ( teamId : ID ! , username : String ): Team
244
+ makeSandboxesTemplates ( sandboxIds : [ ID ! ] ! ): [ Template ! ] !
243
245
244
246
"""
245
- Delete sandboxes
247
+ Remove someone from a team
246
248
"""
247
- deleteSandboxes (sandboxIds : [ID ]! ): [Sandbox ]
248
- renameSandbox (id : ID ! , title : String ! ): Sandbox
249
+ removeFromTeam (teamId : ID ! , userId : ID ! ): Team
249
250
250
251
"""
251
- Create a team
252
+ Unbookmark a template
252
253
"""
253
- createTeam (name : String ! ): Team
254
+ unbookmarkTemplate (teamId : ID , templateId : ID ! ): Template
255
+ resolveComment (commentId : ID ! , sandboxId : ID ! ): Comment !
254
256
255
257
"""
256
- Set the description of the team
258
+ Change authorization of a collaborator
257
259
"""
258
- setTeamDescription (description : String ! , teamId : ID ! ): Team
259
- createSandboxInvitation (
260
+ changeCollaboratorAuthorization (
260
261
authorization : Authorization !
261
- email : String !
262
262
sandboxId : ID !
263
- ): Invitation !
263
+ username : String !
264
+ ): Collaborator !
265
+ revokeSandboxInvitation (invitationId : ID ! , sandboxId : ID ! ): Invitation !
264
266
265
267
"""
266
- Add sandboxes to a collection
268
+ Mark all notifications as read
267
269
"""
268
- addToCollection (
269
- collectionPath : String !
270
- sandboxIds : [ID ]!
271
- teamId : ID
272
- ): Collection
273
- redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
270
+ markAllNotificationsAsRead : User
274
271
275
272
"""
276
- Leave a team
273
+ Delete a collection and all subfolders
277
274
"""
278
- leaveTeam (teamId : ID ! ): String
275
+ deleteCollection (path : String ! , teamId : ID ): [Collection ! ]!
276
+ redeemSandboxInvitation (invitationToken : String ! , sandboxId : ID ! ): Invitation !
279
277
280
278
"""
281
- Delete a collection and all subfolders
279
+ Add a collaborator
282
280
"""
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 !
287
286
288
287
"""
289
- Soft delete a comment. Note: all child comments will also be deleted.
288
+ Create a team
290
289
"""
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
299
291
300
292
"""
301
- Clear notification unread count
293
+ Invite someone to a team
302
294
"""
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 ! ]!
309
297
310
298
"""
311
- Accept an invitation to a team
299
+ Convert templates back to sandboxes
312
300
"""
313
- acceptTeamInvitation ( teamId : ID ! ): Team
301
+ unmakeSandboxesTemplates ( sandboxIds : [ ID ! ] ! ): [ Template ! ] !
314
302
315
303
"""
316
- Mark all notifications as read
304
+ Delete sandboxes
317
305
"""
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 !
319
319
}
320
320
321
321
type RootQuery {
@@ -371,7 +371,7 @@ type Sandbox {
371
371
invitations : [Invitation ! ]!
372
372
privacy : Int !
373
373
removedAt : String
374
- screenshotOutdated : Boolean
374
+ screenshotOutdated : Boolean !
375
375
screenshotUrl : String
376
376
source : Source !
377
377
title : String
@@ -384,14 +384,14 @@ type Source {
384
384
}
385
385
386
386
type Team {
387
- bookmarkedTemplates : [Template ]
388
- collections : [Collection ]
387
+ bookmarkedTemplates : [Template ! ] !
388
+ collections : [Collection ! ] !
389
389
creatorId : ID
390
390
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 ! ] !
395
395
users : [User ! ]!
396
396
}
397
397
@@ -415,10 +415,10 @@ type Template {
415
415
A CodeSandbox User
416
416
"""
417
417
type User {
418
- avatarUrl : String
418
+ avatarUrl : String !
419
419
firstName : String
420
- id : ID
420
+ id : ID !
421
421
lastName : String
422
422
name : String
423
- username : String
423
+ username : String !
424
424
}
0 commit comments