37d51072fb
* WIP new mutation arg * limited resource token creation done * token resource rule creation validation * updated authorizeResolver implementation * introduced resource access rule checks in authorizeResolver everywhere * more checks added * updated projects resolvers * updated stream resolvers * more checks added * error page theme resolution fix * WIP testss * more tests * implemented checks in REST auth pipeline * REST API coverage & tests * some tests fixed * test fixess * added tests * feat(server): new automation result reporting scope (#1976) * feat(server): new automation result reporting scope * tests fix
51 lines
860 B
TypeScript
51 lines
860 B
TypeScript
import { gql } from 'apollo-server-express'
|
|
|
|
export const basicProjectFieldsFragment = gql`
|
|
fragment BasicProjectFields on Project {
|
|
id
|
|
name
|
|
description
|
|
visibility
|
|
allowPublicComments
|
|
role
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
`
|
|
|
|
/**
|
|
* query: String
|
|
orderBy: String
|
|
visibility: String
|
|
limit: Int! = 25
|
|
cursor: String = null
|
|
*/
|
|
|
|
export const adminProjectList = gql`
|
|
query AdminProjectList(
|
|
$query: String
|
|
$orderBy: String
|
|
$visibility: String
|
|
$limit: Int! = 25
|
|
$cursor: String = null
|
|
) {
|
|
admin {
|
|
projectList(
|
|
query: $query
|
|
orderBy: $orderBy
|
|
visibility: $visibility
|
|
limit: $limit
|
|
cursor: $cursor
|
|
) {
|
|
cursor
|
|
totalCount
|
|
items {
|
|
...BasicProjectFields
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
${basicProjectFieldsFragment}
|
|
`
|