portal-www
Version:
Nova Portal Website. Based on Next starter by Ueno
64 lines (60 loc) • 1.11 kB
text/typescript
import gql from 'graphql-tag';
export const CURRENT_PERIOD = gql`
query CurrentPeriod($input: ContractInput!) {
currentPeriod(input: $input) {
adjustments {
amount
description
financeKey
id
reason
}
charges {
amount
description
financeKey
id
}
contractId
end
id
start
totalCharge
}
}
`;
export const CURRENT_PERIOD_TOTAL_CHARGE = gql`
query CurrentPeriodTotalCharge($input: ContractInput!) {
currentPeriod(input: $input) {
totalCharge
contractId
}
}
`;
export const CONTRACT_PERIODS = gql`
query ContractPeriods($input: ContractsPeriodInput!) {
contractPeriods(input: $input) {
contractPeriods {
adjustments {
amount
description
financeKey
id
reason
}
charges {
amount
description
financeKey
id
}
contractId
end
id
start
totalCharge
isFinalized
}
}
}
`;