48 lines
678 B
TypeScript
48 lines
678 B
TypeScript
import { gql } from '@apollo/client';
|
|
|
|
export const FRAGMENT_FULL_TASK = gql`
|
|
fragment FullTask on Task {
|
|
id
|
|
label
|
|
category {
|
|
id
|
|
label
|
|
}
|
|
estimations {
|
|
optimistic
|
|
likely
|
|
pessimistic
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const FRAGMENT_FULL_PROJECT_PARAMS = gql`
|
|
fragment FullProjectParams on ProjectParams {
|
|
timeUnit {
|
|
label
|
|
acronym
|
|
}
|
|
currency
|
|
hideFinancialPreviewOnPrint
|
|
}
|
|
`;
|
|
|
|
export const FRAGMENT_FULL_PROJECT = gql`
|
|
fragment FullProject on Project {
|
|
id
|
|
title
|
|
taskCategories {
|
|
id
|
|
label
|
|
costPerTimeUnit
|
|
}
|
|
tasks {
|
|
...FullTask
|
|
}
|
|
params {
|
|
...FullProjectParams
|
|
}
|
|
}
|
|
${FRAGMENT_FULL_TASK}
|
|
${FRAGMENT_FULL_PROJECT_PARAMS}
|
|
` |