Merge pull request #1460 from siiky/fix/lam-728/gql-resolver-trigger-automation

fix: GraphQL types of `TriggersAutomation`
This commit is contained in:
Rafael Taranto 2022-11-29 09:44:25 +00:00 committed by GitHub
commit ef8ad829d2
2 changed files with 13 additions and 10 deletions

View file

@ -142,7 +142,6 @@ const staticConfig = ({ currentConfigVersion, deviceId, deviceName, pq, settings
speedtestFiles,
urlsToPing,
}),
_.update('triggersAutomation', _.mapValues(_.eq('Automatic'))),
addOperatorInfo(operatorInfo),
addReceiptInfo(receiptInfo)
)(staticConf))

View file

@ -49,19 +49,23 @@ type SpeedtestFile {
size: Int!
}
# True if automatic, False otherwise
type TriggersAutomation {
sanctions: Boolean!
idCardPhoto: Boolean!
idCardData: Boolean!
facephoto: Boolean!
usSsn: Boolean!
custom: [CustomTriggersAutomation]
enum TriggerAutomationType {
Automatic
Manual
}
type CustomTriggersAutomation {
id: ID!
type: String!
type: TriggerAutomationType!
}
type TriggersAutomation {
sanctions: TriggerAutomationType!
idCardPhoto: TriggerAutomationType!
idCardData: TriggerAutomationType!
facephoto: TriggerAutomationType!
usSsn: TriggerAutomationType!
custom: [CustomTriggersAutomation]!
}
type CustomScreen {