File tree Expand file tree Collapse file tree 2 files changed +58
-7
lines changed Expand file tree Collapse file tree 2 files changed +58
-7
lines changed Original file line number Diff line number Diff line change @@ -6263,6 +6263,29 @@ export type PathedSandboxesQuery = {
62636263 } | null ;
62646264} ;
62656265
6266+ export type RecentSandboxFragment = {
6267+ __typename ?: 'Sandbox' ;
6268+ id : string ;
6269+ alias : string | null ;
6270+ title : string | null ;
6271+ lastAccessedAt : any ;
6272+ screenshotUrl : string | null ;
6273+ privacy : number ;
6274+ teamId : any | null ;
6275+ source : { __typename ?: 'Source' ; template : string | null } ;
6276+ customTemplate : { __typename ?: 'Template' ; id : any | null } | null ;
6277+ forkedTemplate : {
6278+ __typename ?: 'Template' ;
6279+ id : any | null ;
6280+ color : string | null ;
6281+ } | null ;
6282+ collection : {
6283+ __typename ?: 'Collection' ;
6284+ path : string ;
6285+ teamId : any | null ;
6286+ } | null ;
6287+ } ;
6288+
62666289export type RecentSandboxesQueryVariables = Exact < {
62676290 orderField : Scalars [ 'String' ] ;
62686291 orderDirection : Direction ;
@@ -6278,12 +6301,9 @@ export type RecentSandboxesQuery = {
62786301 id : string ;
62796302 alias : string | null ;
62806303 title : string | null ;
6281- description : string | null ;
6282- insertedAt : string ;
6283- updatedAt : string ;
6284- removedAt : string | null ;
6285- privacy : number ;
6304+ lastAccessedAt : any ;
62866305 screenshotUrl : string | null ;
6306+ privacy : number ;
62876307 teamId : any | null ;
62886308 source : { __typename ?: 'Source' ; template : string | null } ;
62896309 customTemplate : { __typename ?: 'Template' ; id : any | null } | null ;
Original file line number Diff line number Diff line change @@ -214,6 +214,37 @@ export const PATHED_SANDBOXES_CONTENT_QUERY = gql`
214214 ${ SIDEBAR_COLLECTION_FRAGMENT }
215215` ;
216216
217+ const RECENT_SANDBOX_FRAGMENT = gql `
218+ fragment RecentSandbox on Sandbox {
219+ id
220+ alias
221+ title
222+ lastAccessedAt
223+ screenshotUrl
224+ privacy
225+
226+ source {
227+ template
228+ }
229+
230+ customTemplate {
231+ id
232+ }
233+
234+ forkedTemplate {
235+ id
236+ color
237+ }
238+
239+ collection {
240+ path
241+ teamId
242+ }
243+
244+ teamId
245+ }
246+ ` ;
247+
217248export const RECENT_SANDBOXES_CONTENT_QUERY = gql `
218249 query RecentSandboxes($orderField: String!, $orderDirection: Direction!) {
219250 me {
@@ -223,11 +254,11 @@ export const RECENT_SANDBOXES_CONTENT_QUERY = gql`
223254 limit: 20
224255 orderBy: { field: $orderField, direction: $orderDirection }
225256 ) {
226- ...Sandbox
257+ ...RecentSandbox
227258 }
228259 }
229260 }
230- ${ SANDBOX_FRAGMENT }
261+ ${ RECENT_SANDBOX_FRAGMENT }
231262` ;
232263
233264export const SEARCH_SANDBOXES_QUERY = gql `
You can’t perform that action at this time.
0 commit comments