@@ -78,14 +78,10 @@ export class SearchApi {
78
78
/**
79
79
*
80
80
* @summary Performs multiple write operations in a single API call
81
- * @param xAlgoliaApplicationId Algolia appID
82
- * @param xAlgoliaAPIKey Algolia API key
83
81
* @param indexName The index in which to perform the request
84
82
* @param batchObject
85
83
*/
86
84
public async batch (
87
- xAlgoliaApplicationId : string ,
88
- xAlgoliaAPIKey : string ,
89
85
indexName : string ,
90
86
batchObject : BatchObject ,
91
87
options : { headers : { [ name : string ] : string } } = { headers : { } }
@@ -107,20 +103,6 @@ export class SearchApi {
107
103
}
108
104
let localVarFormParams : any = { } ;
109
105
110
- // verify required parameter 'xAlgoliaApplicationId' is not null or undefined
111
- if ( xAlgoliaApplicationId === null || xAlgoliaApplicationId === undefined ) {
112
- throw new Error (
113
- 'Required parameter xAlgoliaApplicationId was null or undefined when calling batch.'
114
- ) ;
115
- }
116
-
117
- // verify required parameter 'xAlgoliaAPIKey' is not null or undefined
118
- if ( xAlgoliaAPIKey === null || xAlgoliaAPIKey === undefined ) {
119
- throw new Error (
120
- 'Required parameter xAlgoliaAPIKey was null or undefined when calling batch.'
121
- ) ;
122
- }
123
-
124
106
// verify required parameter 'indexName' is not null or undefined
125
107
if ( indexName === null || indexName === undefined ) {
126
108
throw new Error ( 'Required parameter indexName was null or undefined when calling batch.' ) ;
@@ -131,14 +113,6 @@ export class SearchApi {
131
113
throw new Error ( 'Required parameter batchObject was null or undefined when calling batch.' ) ;
132
114
}
133
115
134
- localVarHeaderParams [ 'X-Algolia-Application-Id' ] = ObjectSerializer . serialize (
135
- xAlgoliaApplicationId ,
136
- 'string'
137
- ) ;
138
- localVarHeaderParams [ 'X-Algolia-API-Key' ] = ObjectSerializer . serialize (
139
- xAlgoliaAPIKey ,
140
- 'string'
141
- ) ;
142
116
( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
143
117
144
118
let localVarUseFormData = false ;
@@ -192,13 +166,9 @@ export class SearchApi {
192
166
/**
193
167
*
194
168
* @summary Get search results for the given requests.
195
- * @param xAlgoliaApplicationId Algolia appID
196
- * @param xAlgoliaAPIKey Algolia API key
197
169
* @param multipleQueriesObject
198
170
*/
199
171
public async multipleQueries (
200
- xAlgoliaApplicationId : string ,
201
- xAlgoliaAPIKey : string ,
202
172
multipleQueriesObject : MultipleQueriesObject ,
203
173
options : { headers : { [ name : string ] : string } } = { headers : { } }
204
174
) : Promise < { response : http . IncomingMessage ; body : MultipleQueriesResponse } > {
@@ -214,35 +184,13 @@ export class SearchApi {
214
184
}
215
185
let localVarFormParams : any = { } ;
216
186
217
- // verify required parameter 'xAlgoliaApplicationId' is not null or undefined
218
- if ( xAlgoliaApplicationId === null || xAlgoliaApplicationId === undefined ) {
219
- throw new Error (
220
- 'Required parameter xAlgoliaApplicationId was null or undefined when calling multipleQueries.'
221
- ) ;
222
- }
223
-
224
- // verify required parameter 'xAlgoliaAPIKey' is not null or undefined
225
- if ( xAlgoliaAPIKey === null || xAlgoliaAPIKey === undefined ) {
226
- throw new Error (
227
- 'Required parameter xAlgoliaAPIKey was null or undefined when calling multipleQueries.'
228
- ) ;
229
- }
230
-
231
187
// verify required parameter 'multipleQueriesObject' is not null or undefined
232
188
if ( multipleQueriesObject === null || multipleQueriesObject === undefined ) {
233
189
throw new Error (
234
190
'Required parameter multipleQueriesObject was null or undefined when calling multipleQueries.'
235
191
) ;
236
192
}
237
193
238
- localVarHeaderParams [ 'X-Algolia-Application-Id' ] = ObjectSerializer . serialize (
239
- xAlgoliaApplicationId ,
240
- 'string'
241
- ) ;
242
- localVarHeaderParams [ 'X-Algolia-API-Key' ] = ObjectSerializer . serialize (
243
- xAlgoliaAPIKey ,
244
- 'string'
245
- ) ;
246
194
( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
247
195
248
196
let localVarUseFormData = false ;
@@ -296,14 +244,10 @@ export class SearchApi {
296
244
/**
297
245
* Add an object to the index, automatically assigning it an object ID
298
246
* @summary Save object
299
- * @param xAlgoliaApplicationId Algolia appID
300
- * @param xAlgoliaAPIKey Algolia API key
301
247
* @param indexName The index in which to perform the request
302
248
* @param requestBody
303
249
*/
304
250
public async saveObject (
305
- xAlgoliaApplicationId : string ,
306
- xAlgoliaAPIKey : string ,
307
251
indexName : string ,
308
252
requestBody : { [ key : string ] : object } ,
309
253
options : { headers : { [ name : string ] : string } } = { headers : { } }
@@ -325,20 +269,6 @@ export class SearchApi {
325
269
}
326
270
let localVarFormParams : any = { } ;
327
271
328
- // verify required parameter 'xAlgoliaApplicationId' is not null or undefined
329
- if ( xAlgoliaApplicationId === null || xAlgoliaApplicationId === undefined ) {
330
- throw new Error (
331
- 'Required parameter xAlgoliaApplicationId was null or undefined when calling saveObject.'
332
- ) ;
333
- }
334
-
335
- // verify required parameter 'xAlgoliaAPIKey' is not null or undefined
336
- if ( xAlgoliaAPIKey === null || xAlgoliaAPIKey === undefined ) {
337
- throw new Error (
338
- 'Required parameter xAlgoliaAPIKey was null or undefined when calling saveObject.'
339
- ) ;
340
- }
341
-
342
272
// verify required parameter 'indexName' is not null or undefined
343
273
if ( indexName === null || indexName === undefined ) {
344
274
throw new Error (
@@ -353,14 +283,6 @@ export class SearchApi {
353
283
) ;
354
284
}
355
285
356
- localVarHeaderParams [ 'X-Algolia-Application-Id' ] = ObjectSerializer . serialize (
357
- xAlgoliaApplicationId ,
358
- 'string'
359
- ) ;
360
- localVarHeaderParams [ 'X-Algolia-API-Key' ] = ObjectSerializer . serialize (
361
- xAlgoliaAPIKey ,
362
- 'string'
363
- ) ;
364
286
( < any > Object ) . assign ( localVarHeaderParams , options . headers ) ;
365
287
366
288
let localVarUseFormData = false ;
0 commit comments