fix: remove typing from dynamic keyed triggersAutomation
This commit is contained in:
parent
b7b9daf08c
commit
493f4232df
2 changed files with 5 additions and 10 deletions
|
|
@ -1,3 +1,4 @@
|
|||
const { GraphQLJSONObject } = require('graphql-type-json')
|
||||
const _ = require('lodash/fp')
|
||||
const nmd = require('nano-markdown')
|
||||
|
||||
|
|
@ -295,6 +296,7 @@ const terms = (parent, { currentConfigVersion, currentHash }, { deviceId, settin
|
|||
|
||||
|
||||
module.exports = {
|
||||
JSONObject: GraphQLJSONObject,
|
||||
Query: {
|
||||
configs,
|
||||
terms,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
const { gql } = require('apollo-server-express')
|
||||
module.exports = gql`
|
||||
scalar JSONObject
|
||||
|
||||
type Coin {
|
||||
cryptoCode: String!
|
||||
display: String!
|
||||
|
|
@ -49,15 +51,6 @@ type SpeedtestFile {
|
|||
size: Int!
|
||||
}
|
||||
|
||||
# True if automatic, False otherwise
|
||||
type TriggersAutomation {
|
||||
sanctions: Boolean!
|
||||
idCardPhoto: Boolean!
|
||||
idCardData: Boolean!
|
||||
facephoto: Boolean!
|
||||
usSsn: Boolean!
|
||||
}
|
||||
|
||||
type CustomScreen {
|
||||
text: String!
|
||||
title: String!
|
||||
|
|
@ -129,7 +122,7 @@ type StaticConfig {
|
|||
speedtestFiles: [SpeedtestFile!]!
|
||||
urlsToPing: [String!]!
|
||||
|
||||
triggersAutomation: TriggersAutomation!
|
||||
triggersAutomation: JSONObject!
|
||||
triggers: [Trigger!]!
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue