mirror of
https://github.com/stablyai/orca.git
synced 2026-10-02 00:02:05 +00:00
115 lines
2.0 KiB
TypeScript
115 lines
2.0 KiB
TypeScript
import { ORCA_ISSUE_FIELDS, ORCA_PROJECT_FIELDS } from './linear-project-graphql'
|
|
|
|
export const CUSTOM_VIEWS_QUERY = `
|
|
query OrcaLinearCustomViews(
|
|
$first: Int,
|
|
$filter: CustomViewFilter,
|
|
$orderBy: PaginationOrderBy
|
|
) {
|
|
customViews(first: $first, filter: $filter, orderBy: $orderBy) {
|
|
nodes {
|
|
id
|
|
name
|
|
description
|
|
modelName
|
|
color
|
|
icon
|
|
shared
|
|
slugId
|
|
createdAt
|
|
updatedAt
|
|
team {
|
|
id
|
|
name
|
|
key
|
|
}
|
|
owner {
|
|
id
|
|
displayName
|
|
avatarUrl
|
|
}
|
|
creator {
|
|
id
|
|
displayName
|
|
avatarUrl
|
|
}
|
|
}
|
|
pageInfo {
|
|
hasNextPage
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const CUSTOM_VIEW_QUERY = `
|
|
query OrcaLinearCustomView($id: String!) {
|
|
customView(id: $id) {
|
|
id
|
|
name
|
|
description
|
|
modelName
|
|
color
|
|
icon
|
|
shared
|
|
slugId
|
|
createdAt
|
|
updatedAt
|
|
team {
|
|
id
|
|
name
|
|
key
|
|
}
|
|
owner {
|
|
id
|
|
displayName
|
|
avatarUrl
|
|
}
|
|
creator {
|
|
id
|
|
displayName
|
|
avatarUrl
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const CUSTOM_VIEW_ISSUES_QUERY = `
|
|
query OrcaLinearCustomViewIssues(
|
|
$id: String!,
|
|
$first: Int,
|
|
$after: String,
|
|
$orderBy: PaginationOrderBy
|
|
) {
|
|
customView(id: $id) {
|
|
id
|
|
modelName
|
|
issues(first: $first, after: $after, orderBy: $orderBy) {
|
|
nodes {
|
|
${ORCA_ISSUE_FIELDS}
|
|
}
|
|
pageInfo {
|
|
hasNextPage
|
|
endCursor
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const CUSTOM_VIEW_PROJECTS_QUERY = `
|
|
query OrcaLinearCustomViewProjects($id: String!, $first: Int, $orderBy: PaginationOrderBy) {
|
|
customView(id: $id) {
|
|
id
|
|
modelName
|
|
projects(first: $first, orderBy: $orderBy) {
|
|
nodes {
|
|
${ORCA_PROJECT_FIELDS}
|
|
}
|
|
pageInfo {
|
|
hasNextPage
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|