11// TODO: will gradually tighten these as we migrate to TS
22
33import { ES_TYPES } from '@/mapping/esToAggTypeMap' ;
4- import { DOCUMENT_TYPE } from './constants' ;
54
65export const ConfigOptionalProperties = {
76 DOWNLOADS : 'downloads' ,
@@ -55,7 +54,7 @@ export const TableProperties = {
5554 ROW_ID_FIELD_NAME : 'rowIdFieldName' ,
5655} as const ;
5756
58- export const NetworkAggregationProperties = {
57+ const NetworkAggregationProperties = {
5958 GRAPHQL_URL : 'graphqlUrl' ,
6059 DOCUMENT_TYPE : 'documentType' ,
6160 DISPLAY_NAME : 'displayName' ,
@@ -151,10 +150,12 @@ export interface TableConfigsInterface {
151150 [ ConfigProperties . ROW_ID_FIELD_NAME ] ?: string ;
152151}
153152
154- export interface NetworkAggregationInterface {
155- [ NetworkAggregationProperties . GRAPHQL_URL ] : string ;
156- [ NetworkAggregationProperties . DOCUMENT_TYPE ] : string ;
157- [ NetworkAggregationProperties . DISPLAY_NAME ] : string ;
153+ interface NetworkAggregationInterface {
154+ servers : {
155+ [ NetworkAggregationProperties . GRAPHQL_URL ] : string ;
156+ [ NetworkAggregationProperties . DOCUMENT_TYPE ] : string ;
157+ [ NetworkAggregationProperties . DISPLAY_NAME ] : string ;
158+ } [ ] ;
158159}
159160
160161export interface ConfigObject {
@@ -165,7 +166,7 @@ export interface ConfigObject {
165166 [ ConfigProperties . INDEX ] : string ;
166167 [ ConfigProperties . MATCHBOX ] : any [ ] ;
167168 [ ConfigProperties . TABLE ] : TableConfigsInterface ;
168- [ ConfigProperties . NETWORK_AGGREGATION ] : NetworkAggregationInterface [ ] ;
169+ [ ConfigProperties . NETWORK_AGGREGATION ] : NetworkAggregationInterface ;
169170}
170171
171172export interface FieldFromMapping {
0 commit comments