Created
October 28, 2019 15:04
-
-
Save acomito/7a40c7c0f43bcdf311ebf7d630f1eb3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TOP LEVEL IMPORTS | |
import gql from 'graphql-tag'; | |
export default gql` | |
query getcoffeecupreport($timestamp: Float, $shift: String, $count: Int, $skip: Int) { | |
getcoffeecupreport(timestamp: $timestamp, shift: $shift, count: $count, skip: $skip) { | |
total | |
machines { | |
id | |
name | |
uuid | |
manufacturer | |
model | |
state { | |
state | |
path | |
timeInState | |
} | |
displayName | |
currentProgram { | |
program | |
programBlockId | |
firstPartMade(startTime: $timestamp) | |
score | |
typicalScore | |
programStart | |
programStart | |
productionTime | |
partsProduced | |
notes { | |
id: documentId | |
message | |
title | |
timestamp | |
} | |
notifications { | |
id | |
content | |
shortContent | |
timestamp | |
} | |
notes { | |
documentId | |
message | |
title | |
timestamp | |
} | |
notifications { | |
id | |
content | |
shortContent | |
timestamp | |
} | |
programCharts { | |
rollingProgramScore | |
cycleTimeBaseline | |
cycleTimeComp | |
cycleTime { | |
timestamp | |
cycleTime | |
} | |
partsProduced { | |
timestamp | |
partsProduced | |
} | |
scoreBaseline | |
scoreComp | |
score { | |
timestamp | |
score | |
} | |
} | |
} | |
granularUtilization { | |
utilizationPercentage | |
granularUtilizationBuckets { | |
state | |
startTime | |
endTime | |
} | |
} | |
} | |
} | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment