fix: remove typing from dynamic keyed triggersAutomation

This commit is contained in:
Sérgio Salgado 2022-11-17 04:55:57 +00:00
parent b7b9daf08c
commit 493f4232df
2 changed files with 5 additions and 10 deletions

View file

@ -1,3 +1,4 @@
const { GraphQLJSONObject } = require('graphql-type-json')
const _ = require('lodash/fp') const _ = require('lodash/fp')
const nmd = require('nano-markdown') const nmd = require('nano-markdown')
@ -295,6 +296,7 @@ const terms = (parent, { currentConfigVersion, currentHash }, { deviceId, settin
module.exports = { module.exports = {
JSONObject: GraphQLJSONObject,
Query: { Query: {
configs, configs,
terms, terms,

View file

@ -1,5 +1,7 @@
const { gql } = require('apollo-server-express') const { gql } = require('apollo-server-express')
module.exports = gql` module.exports = gql`
scalar JSONObject
type Coin { type Coin {
cryptoCode: String! cryptoCode: String!
display: String! display: String!
@ -49,15 +51,6 @@ type SpeedtestFile {
size: Int! size: Int!
} }
# True if automatic, False otherwise
type TriggersAutomation {
sanctions: Boolean!
idCardPhoto: Boolean!
idCardData: Boolean!
facephoto: Boolean!
usSsn: Boolean!
}
type CustomScreen { type CustomScreen {
text: String! text: String!
title: String! title: String!
@ -129,7 +122,7 @@ type StaticConfig {
speedtestFiles: [SpeedtestFile!]! speedtestFiles: [SpeedtestFile!]!
urlsToPing: [String!]! urlsToPing: [String!]!
triggersAutomation: TriggersAutomation! triggersAutomation: JSONObject!
triggers: [Trigger!]! triggers: [Trigger!]!
} }