first commit
This commit is contained in:
@@ -0,0 +1,102 @@
|
||||
fragment UserRefFields on UserRef {
|
||||
id
|
||||
name
|
||||
}
|
||||
|
||||
fragment ProjectFields on Project {
|
||||
id
|
||||
key
|
||||
name
|
||||
description
|
||||
updatedAt
|
||||
version
|
||||
owner {
|
||||
...UserRefFields
|
||||
}
|
||||
members {
|
||||
role
|
||||
user {
|
||||
...UserRefFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment IssueSummaryFields on Issue {
|
||||
id
|
||||
projectId
|
||||
key
|
||||
type
|
||||
area
|
||||
title
|
||||
status
|
||||
priority
|
||||
labels
|
||||
commentCount
|
||||
updatedAt
|
||||
version
|
||||
assignee {
|
||||
...UserRefFields
|
||||
}
|
||||
release {
|
||||
id
|
||||
name
|
||||
}
|
||||
}
|
||||
|
||||
fragment IssueFields on Issue {
|
||||
...IssueSummaryFields
|
||||
description
|
||||
figmaUrl
|
||||
storyPoints
|
||||
dueDate
|
||||
createdAt
|
||||
allowedTransitions
|
||||
reporter {
|
||||
...UserRefFields
|
||||
}
|
||||
links {
|
||||
type
|
||||
direction
|
||||
issueId
|
||||
issueKey
|
||||
}
|
||||
}
|
||||
|
||||
fragment CommentFields on Comment {
|
||||
id
|
||||
issueId
|
||||
body
|
||||
createdAt
|
||||
editedAt
|
||||
author {
|
||||
...UserRefFields
|
||||
}
|
||||
}
|
||||
|
||||
fragment ReleaseFields on Release {
|
||||
id
|
||||
projectId
|
||||
name
|
||||
description
|
||||
targetDate
|
||||
status
|
||||
releasedAt
|
||||
}
|
||||
|
||||
fragment ActivityFields on Activity {
|
||||
id
|
||||
type
|
||||
issueId
|
||||
issueKey
|
||||
summary
|
||||
occurredAt
|
||||
actor {
|
||||
...UserRefFields
|
||||
}
|
||||
}
|
||||
|
||||
fragment CommandResultFields on CommandResult {
|
||||
id
|
||||
key
|
||||
version
|
||||
}
|
||||
4412
libs/web/tracker/infrastructure/src/lib/graphql/generated.ts
Normal file
4412
libs/web/tracker/infrastructure/src/lib/graphql/generated.ts
Normal file
File diff suppressed because it is too large
Load Diff
107
libs/web/tracker/infrastructure/src/lib/graphql/issues.graphql
Normal file
107
libs/web/tracker/infrastructure/src/lib/graphql/issues.graphql
Normal file
@@ -0,0 +1,107 @@
|
||||
query Board(
|
||||
$idOrKey: String!
|
||||
$releaseId: ID
|
||||
$assigneeId: ID
|
||||
$area: IssueArea
|
||||
) {
|
||||
project(idOrKey: $idOrKey) {
|
||||
id
|
||||
board(
|
||||
releaseId: $releaseId
|
||||
assigneeId: $assigneeId
|
||||
area: $area
|
||||
perColumn: 100
|
||||
) {
|
||||
status
|
||||
total
|
||||
issues {
|
||||
...IssueSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query Issue($idOrKey: String!) {
|
||||
issue(idOrKey: $idOrKey) {
|
||||
...IssueFields
|
||||
}
|
||||
}
|
||||
|
||||
query SearchIssues($filter: IssueFilterInput!) {
|
||||
issues(filter: $filter, limit: 20) {
|
||||
items {
|
||||
...IssueSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateIssue($input: CreateIssueInput!) {
|
||||
createIssue(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation UpdateIssue($input: UpdateIssueInput!) {
|
||||
updateIssue(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation ChangeIssueStatus($input: ChangeIssueStatusInput!) {
|
||||
changeIssueStatus(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation AssignIssue($issueId: ID!, $assigneeId: ID) {
|
||||
assignIssue(issueId: $issueId, assigneeId: $assigneeId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation LinkIssues($input: LinkIssuesInput!) {
|
||||
linkIssues(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation UnlinkIssues($input: LinkIssuesInput!) {
|
||||
unlinkIssues(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation SetIssueRelease($issueId: ID!, $releaseId: ID) {
|
||||
setIssueRelease(issueId: $issueId, releaseId: $releaseId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
query IssueComments($idOrKey: String!) {
|
||||
issue(idOrKey: $idOrKey) {
|
||||
id
|
||||
comments(limit: 200) {
|
||||
items {
|
||||
...CommentFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation AddComment($issueId: ID!, $body: String!) {
|
||||
addComment(issueId: $issueId, body: $body) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation EditComment($commentId: ID!, $body: String!) {
|
||||
editComment(commentId: $commentId, body: $body) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation DeleteComment($commentId: ID!) {
|
||||
deleteComment(commentId: $commentId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
query MyProjects {
|
||||
myProjects {
|
||||
...ProjectFields
|
||||
}
|
||||
}
|
||||
|
||||
query Project($idOrKey: String!) {
|
||||
project(idOrKey: $idOrKey) {
|
||||
...ProjectFields
|
||||
}
|
||||
}
|
||||
|
||||
query ProjectStats($idOrKey: String!) {
|
||||
project(idOrKey: $idOrKey) {
|
||||
id
|
||||
stats {
|
||||
total
|
||||
open
|
||||
byStatus {
|
||||
key
|
||||
count
|
||||
}
|
||||
byType {
|
||||
key
|
||||
count
|
||||
}
|
||||
byPriority {
|
||||
key
|
||||
count
|
||||
}
|
||||
byArea {
|
||||
key
|
||||
count
|
||||
}
|
||||
byAssignee {
|
||||
count
|
||||
user {
|
||||
...UserRefFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateProject($input: CreateProjectInput!) {
|
||||
createProject(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation AddProjectMember($input: ProjectMemberInput!) {
|
||||
addProjectMember(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation ChangeProjectMemberRole($input: ProjectMemberInput!) {
|
||||
changeProjectMemberRole(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation RemoveProjectMember($projectId: ID!, $userId: ID!) {
|
||||
removeProjectMember(projectId: $projectId, userId: $userId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
query SearchUsers($search: String!) {
|
||||
users(search: $search, limit: 20) {
|
||||
id
|
||||
name
|
||||
email
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
query Releases($idOrKey: String!) {
|
||||
project(idOrKey: $idOrKey) {
|
||||
id
|
||||
releases {
|
||||
...ReleaseFields
|
||||
progress {
|
||||
total
|
||||
finished
|
||||
percent
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation CreateRelease($input: CreateReleaseInput!) {
|
||||
createRelease(input: $input) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation PublishRelease($releaseId: ID!, $force: Boolean!) {
|
||||
publishRelease(releaseId: $releaseId, force: $force) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
mutation ArchiveRelease($releaseId: ID!) {
|
||||
archiveRelease(releaseId: $releaseId) {
|
||||
...CommandResultFields
|
||||
}
|
||||
}
|
||||
|
||||
query Activity($projectId: ID!, $issueId: ID) {
|
||||
activity(projectId: $projectId, issueId: $issueId, limit: 100) {
|
||||
...ActivityFields
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
subscription IssueChanged($projectId: ID!) {
|
||||
issueChanged(projectId: $projectId) {
|
||||
action
|
||||
version
|
||||
actorId
|
||||
issue {
|
||||
...IssueSummaryFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subscription CommentChanged($issueId: ID!) {
|
||||
commentChanged(issueId: $issueId) {
|
||||
action
|
||||
commentId
|
||||
comment {
|
||||
...CommentFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subscription ActivityAdded($projectId: ID!) {
|
||||
activityAdded(projectId: $projectId) {
|
||||
...ActivityFields
|
||||
}
|
||||
}
|
||||
|
||||
subscription ReleaseChanged($projectId: ID!) {
|
||||
releaseChanged(projectId: $projectId) {
|
||||
release {
|
||||
...ReleaseFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subscription ProjectChanged($projectId: ID!) {
|
||||
projectChanged(projectId: $projectId) {
|
||||
project {
|
||||
...ProjectFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
subscription MyProjectsChanged {
|
||||
myProjectsChanged {
|
||||
project {
|
||||
...ProjectFields
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user