feat: camera diagnostics (#1681)

This commit is contained in:
Rafael Taranto 2024-05-28 21:42:05 +01:00 committed by GitHub
parent 5ae9b76c3b
commit e1c2cc8619
13 changed files with 395 additions and 3 deletions

View file

@ -12,6 +12,7 @@ const typeDef = gql`
paired: Boolean!
lastPing: Date
pairedAt: Date
diagnostics: Diagnostics
version: String
model: String
cashUnits: CashUnits
@ -24,6 +25,12 @@ const typeDef = gql`
packetLoss: String
}
type Diagnostics {
timestamp: Date
frontTimestamp: Date
scanTimestamp: Date
}
type CashUnits {
cashbox: Int
cassette1: Int
@ -81,6 +88,7 @@ const typeDef = gql`
restartServices
emptyUnit
refillUnit
diagnostics
}
type Query {