App directory refactoring
This commit is contained in:
parent
a53a26f4c0
commit
b312a8c862
153 changed files with 1532 additions and 1447 deletions
19
apps/link/app/_graphql/getTicketOverviewCountsQuery.ts
Normal file
19
apps/link/app/_graphql/getTicketOverviewCountsQuery.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { gql } from 'graphql-request';
|
||||
|
||||
export const getTicketOverviewCountsQuery = gql`
|
||||
query ticketOverviewTicketCount {
|
||||
ticketOverviews {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
name
|
||||
ticketCount
|
||||
}
|
||||
cursor
|
||||
}
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
}
|
||||
}`;
|
||||
40
apps/link/app/_graphql/getTicketQuery.ts
Normal file
40
apps/link/app/_graphql/getTicketQuery.ts
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
import { gql } from 'graphql-request';
|
||||
|
||||
export const getTicketQuery = gql`
|
||||
query getTicket($ticketId: ID!) {
|
||||
ticket(ticket: { ticketId: $ticketId }) {
|
||||
id
|
||||
internalId
|
||||
title
|
||||
note
|
||||
number
|
||||
createdAt
|
||||
updatedAt
|
||||
closeAt
|
||||
tags
|
||||
state {
|
||||
id
|
||||
name
|
||||
}
|
||||
owner {
|
||||
id
|
||||
email
|
||||
}
|
||||
articles {
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
body
|
||||
internal
|
||||
type {
|
||||
name
|
||||
}
|
||||
sender {
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
60
apps/link/app/_graphql/getTicketsByOverviewQuery.ts
Normal file
60
apps/link/app/_graphql/getTicketsByOverviewQuery.ts
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
import { gql } from 'graphql-request';
|
||||
|
||||
export const getTicketsByOverviewQuery = gql`
|
||||
query ticketsByOverview($overviewId: ID!, $orderBy: String, $orderDirection: EnumOrderDirection, $cursor: String, $showPriority: Boolean = false, $showUpdatedBy: Boolean = false, $pageSize: Int = 10) {
|
||||
ticketsByOverview(
|
||||
overviewId: $overviewId
|
||||
orderBy: $orderBy
|
||||
orderDirection: $orderDirection
|
||||
after: $cursor
|
||||
first: $pageSize
|
||||
) {
|
||||
totalCount
|
||||
edges {
|
||||
node {
|
||||
id
|
||||
internalId
|
||||
number
|
||||
title
|
||||
createdAt
|
||||
updatedAt
|
||||
updatedBy @include(if: $showUpdatedBy) {
|
||||
id
|
||||
fullname
|
||||
}
|
||||
customer {
|
||||
id
|
||||
firstname
|
||||
lastname
|
||||
fullname
|
||||
}
|
||||
organization {
|
||||
id
|
||||
name
|
||||
}
|
||||
state {
|
||||
id
|
||||
name
|
||||
stateType {
|
||||
name
|
||||
}
|
||||
}
|
||||
group {
|
||||
id
|
||||
name
|
||||
}
|
||||
priority @include(if: $showPriority) {
|
||||
id
|
||||
name
|
||||
uiColor
|
||||
defaultCreate
|
||||
}
|
||||
}
|
||||
cursor
|
||||
}
|
||||
pageInfo {
|
||||
endCursor
|
||||
hasNextPage
|
||||
}
|
||||
}
|
||||
}`;
|
||||
10
apps/link/app/_graphql/updateTicketMutation.ts
Normal file
10
apps/link/app/_graphql/updateTicketMutation.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { gql } from "graphql-request";
|
||||
|
||||
export const updateTicketMutation = gql`
|
||||
mutation UpdateTicket($ticketId: ID!, $input: TicketUpdateInput!) {
|
||||
ticketUpdate(ticketId: $ticketId, input: $input) {
|
||||
ticket {
|
||||
id
|
||||
}
|
||||
}
|
||||
}`;
|
||||
Loading…
Add table
Add a link
Reference in a new issue