Merge pull request #1460 from siiky/fix/lam-728/gql-resolver-trigger-automation
fix: GraphQL types of `TriggersAutomation`
This commit is contained in:
commit
ef8ad829d2
2 changed files with 13 additions and 10 deletions
|
|
@ -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))
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue