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, speedtestFiles,
urlsToPing, urlsToPing,
}), }),
_.update('triggersAutomation', _.mapValues(_.eq('Automatic'))),
addOperatorInfo(operatorInfo), addOperatorInfo(operatorInfo),
addReceiptInfo(receiptInfo) addReceiptInfo(receiptInfo)
)(staticConf)) )(staticConf))

View file

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