mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-22 10:02:36 +02:00
32 lines
588 B
JavaScript
32 lines
588 B
JavaScript
module.exports.typeDefs = `
|
|
type Query {
|
|
Settings: SettingsActions
|
|
}
|
|
|
|
enum MinerMode { eco, balanced, turbo, custom }
|
|
enum TemperatureUnit { f, c }
|
|
|
|
type Settings {
|
|
id: Int!
|
|
createdAt: String!
|
|
minerMode: MinerMode!
|
|
voltage: Float!
|
|
frequency: Int!
|
|
fan: Int!
|
|
customApproval: Boolean
|
|
connectedWifi: String
|
|
leftSidebarVisibility: Boolean!
|
|
leftSidebarExtended: Boolean!
|
|
rightSidebarVisibility: Boolean!
|
|
temperatureUnit: TemperatureUnit!
|
|
}
|
|
`
|
|
|
|
module.exports.resolvers = {
|
|
Query: {
|
|
Settings () {
|
|
return {}
|
|
}
|
|
}
|
|
}
|