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! 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 {