@@ -65,10 +65,10 @@ export default class AsyncSearch {
65
65
return await this . transport . request ( { path, method, querystring, body } , options )
66
66
}
67
67
68
- async get < TDocument = unknown > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . AsyncSearchGetResponse < TDocument > >
69
- async get < TDocument = unknown > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . AsyncSearchGetResponse < TDocument > , unknown > >
70
- async get < TDocument = unknown > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptions ) : Promise < T . AsyncSearchGetResponse < TDocument > >
71
- async get < TDocument = unknown > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptions ) : Promise < any > {
68
+ async get < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . AsyncSearchGetResponse < TDocument , TAggregations > >
69
+ async get < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . AsyncSearchGetResponse < TDocument , TAggregations > , unknown > >
70
+ async get < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptions ) : Promise < T . AsyncSearchGetResponse < TDocument , TAggregations > >
71
+ async get < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params : T . AsyncSearchGetRequest | TB . AsyncSearchGetRequest , options ?: TransportRequestOptions ) : Promise < any > {
72
72
const acceptedPath : string [ ] = [ 'id' ]
73
73
const querystring : Record < string , any > = { }
74
74
const body = undefined
@@ -109,10 +109,10 @@ export default class AsyncSearch {
109
109
return await this . transport . request ( { path, method, querystring, body } , options )
110
110
}
111
111
112
- async submit < TDocument = unknown > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . AsyncSearchSubmitResponse < TDocument > >
113
- async submit < TDocument = unknown > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . AsyncSearchSubmitResponse < TDocument > , unknown > >
114
- async submit < TDocument = unknown > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptions ) : Promise < T . AsyncSearchSubmitResponse < TDocument > >
115
- async submit < TDocument = unknown > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptions ) : Promise < any > {
112
+ async submit < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptionsWithOutMeta ) : Promise < T . AsyncSearchSubmitResponse < TDocument , TAggregations > >
113
+ async submit < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptionsWithMeta ) : Promise < TransportResult < T . AsyncSearchSubmitResponse < TDocument , TAggregations > , unknown > >
114
+ async submit < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptions ) : Promise < T . AsyncSearchSubmitResponse < TDocument , TAggregations > >
115
+ async submit < TDocument = unknown , TAggregations = Record < T . AggregateName , T . AggregationsAggregate > > ( this : That , params ?: T . AsyncSearchSubmitRequest | TB . AsyncSearchSubmitRequest , options ?: TransportRequestOptions ) : Promise < any > {
116
116
const acceptedPath : string [ ] = [ 'index' ]
117
117
const acceptedBody : string [ ] = [ 'aggregations' , 'aggs' , 'collapse' , 'explain' , 'from' , 'highlight' , 'track_total_hits' , 'indices_boost' , 'docvalue_fields' , 'min_score' , 'post_filter' , 'profile' , 'query' , 'rescore' , 'script_fields' , 'search_after' , 'size' , 'slice' , 'sort' , '_source' , 'fields' , 'suggest' , 'terminate_after' , 'timeout' , 'track_scores' , 'version' , 'seq_no_primary_term' , 'stored_fields' , 'pit' , 'runtime_mappings' , 'stats' ]
118
118
const querystring : Record < string , any > = { }
0 commit comments