@@ -513,15 +513,14 @@ export default class Indices {
513
513
return await this . transport . request ( { path, method, querystring, body } , options )
514
514
}
515
515
516
- async fieldUsageStats ( this : That , params ? : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesFieldUsageStatsResponse >
517
- async fieldUsageStats ( this : That , params ? : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesFieldUsageStatsResponse , unknown > >
518
- async fieldUsageStats ( this : That , params ? : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesFieldUsageStatsResponse >
519
- async fieldUsageStats ( this : That , params ? : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptions ) : Promise < any > {
516
+ async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . IndicesFieldUsageStatsResponse >
517
+ async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . IndicesFieldUsageStatsResponse , unknown > >
518
+ async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptions ) : Promise < T . IndicesFieldUsageStatsResponse >
519
+ async fieldUsageStats ( this : That , params : T . IndicesFieldUsageStatsRequest | TB . IndicesFieldUsageStatsRequest , options ?: TransportRequestOptions ) : Promise < any > {
520
520
const acceptedPath : string [ ] = [ 'index' ]
521
521
const querystring : Record < string , any > = { }
522
522
const body = undefined
523
523
524
- params = params ?? { }
525
524
for ( const key in params ) {
526
525
if ( acceptedPath . includes ( key ) ) {
527
526
continue
0 commit comments