@@ -52,7 +52,7 @@ export class DataVisualizer {
5252 timeFieldName : string | undefined ,
5353 earliestMs : number | undefined ,
5454 latestMs : number | undefined ,
55- runtimeMappings ?: estypes . RuntimeFields
55+ runtimeMappings ?: estypes . MappingRuntimeFields
5656 ) {
5757 const stats = {
5858 totalCount : 0 ,
@@ -134,7 +134,7 @@ export class DataVisualizer {
134134 query : any ,
135135 fields : HistogramField [ ] ,
136136 samplerShardSize : number ,
137- runtimeMappings ?: estypes . RuntimeFields
137+ runtimeMappings ?: estypes . MappingRuntimeFields
138138 ) : Promise < any > {
139139 return await getHistogramsForFields (
140140 this . _client ,
@@ -159,7 +159,7 @@ export class DataVisualizer {
159159 latestMs : number | undefined ,
160160 intervalMs : number | undefined ,
161161 maxExamples : number ,
162- runtimeMappings : estypes . RuntimeFields
162+ runtimeMappings : estypes . MappingRuntimeFields
163163 ) : Promise < BatchStats [ ] > {
164164 // Batch up fields by type, getting stats for multiple fields at a time.
165165 const batches : Field [ ] [ ] = [ ] ;
@@ -299,8 +299,8 @@ export class DataVisualizer {
299299 timeFieldName : string | undefined ,
300300 earliestMs ?: number ,
301301 latestMs ?: number ,
302- datafeedConfig ?: estypes . Datafeed ,
303- runtimeMappings ?: estypes . RuntimeFields
302+ datafeedConfig ?: estypes . MlDatafeed ,
303+ runtimeMappings ?: estypes . MappingRuntimeFields
304304 ) {
305305 return await checkAggregatableFieldsExist (
306306 this . _client ,
@@ -323,7 +323,7 @@ export class DataVisualizer {
323323 timeFieldName : string | undefined ,
324324 earliestMs : number | undefined ,
325325 latestMs : number | undefined ,
326- runtimeMappings ?: estypes . RuntimeFields
326+ runtimeMappings ?: estypes . MappingRuntimeFields
327327 ) {
328328 return await checkNonAggregatableFieldExists (
329329 this . _client ,
@@ -344,7 +344,7 @@ export class DataVisualizer {
344344 earliestMs : number | undefined ,
345345 latestMs : number | undefined ,
346346 intervalMs : number ,
347- runtimeMappings : estypes . RuntimeFields
347+ runtimeMappings : estypes . MappingRuntimeFields
348348 ) : Promise < DocumentCountStats > {
349349 return await getDocumentCountStats (
350350 this . _client ,
@@ -366,7 +366,7 @@ export class DataVisualizer {
366366 timeFieldName : string | undefined ,
367367 earliestMs : number | undefined ,
368368 latestMs : number | undefined ,
369- runtimeMappings ?: estypes . RuntimeFields
369+ runtimeMappings ?: estypes . MappingRuntimeFields
370370 ) {
371371 return await getNumericFieldsStats (
372372 this . _client ,
@@ -389,7 +389,7 @@ export class DataVisualizer {
389389 timeFieldName : string | undefined ,
390390 earliestMs : number | undefined ,
391391 latestMs : number | undefined ,
392- runtimeMappings ?: estypes . RuntimeFields
392+ runtimeMappings ?: estypes . MappingRuntimeFields
393393 ) {
394394 return await getStringFieldsStats (
395395 this . _client ,
@@ -412,7 +412,7 @@ export class DataVisualizer {
412412 timeFieldName : string | undefined ,
413413 earliestMs : number | undefined ,
414414 latestMs : number | undefined ,
415- runtimeMappings ?: estypes . RuntimeFields
415+ runtimeMappings ?: estypes . MappingRuntimeFields
416416 ) {
417417 return await getDateFieldsStats (
418418 this . _client ,
@@ -435,7 +435,7 @@ export class DataVisualizer {
435435 timeFieldName : string | undefined ,
436436 earliestMs : number | undefined ,
437437 latestMs : number | undefined ,
438- runtimeMappings ?: estypes . RuntimeFields
438+ runtimeMappings ?: estypes . MappingRuntimeFields
439439 ) {
440440 return await getBooleanFieldsStats (
441441 this . _client ,
@@ -458,7 +458,7 @@ export class DataVisualizer {
458458 earliestMs : number | undefined ,
459459 latestMs : number | undefined ,
460460 maxExamples : number ,
461- runtimeMappings ?: estypes . RuntimeFields
461+ runtimeMappings ?: estypes . MappingRuntimeFields
462462 ) : Promise < FieldExamples > {
463463 return await getFieldExamples (
464464 this . _client ,
0 commit comments