refactor: use an enum instead of strings

This commit is contained in:
siiky 2022-11-28 18:25:06 +00:00
parent f9e7631eee
commit b9a6a55622

View file

@ -49,19 +49,23 @@ type SpeedtestFile {
size: Int!
}
# True if automatic, False otherwise
type TriggersAutomation {
sanctions: String!
idCardPhoto: String!
idCardData: String!
facephoto: String!
usSsn: String!
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 {