refactor: use an enum instead of strings
This commit is contained in:
parent
f9e7631eee
commit
b9a6a55622
1 changed files with 13 additions and 9 deletions
|
|
@ -49,19 +49,23 @@ type SpeedtestFile {
|
||||||
size: Int!
|
size: Int!
|
||||||
}
|
}
|
||||||
|
|
||||||
# True if automatic, False otherwise
|
enum TriggerAutomationType {
|
||||||
type TriggersAutomation {
|
Automatic
|
||||||
sanctions: String!
|
Manual
|
||||||
idCardPhoto: String!
|
|
||||||
idCardData: String!
|
|
||||||
facephoto: String!
|
|
||||||
usSsn: String!
|
|
||||||
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