@algolia/client-query-suggestions 5.6.1 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/fetch.d.ts CHANGED
@@ -12,10 +12,40 @@ type BaseResponse = {
12
12
  message?: string;
13
13
  };
14
14
 
15
+ type ConfigStatus = {
16
+ /**
17
+ * Name of the Query Suggestions index (case-sensitive).
18
+ */
19
+ indexName?: string;
20
+ /**
21
+ * Whether the creation or update of the Query Suggestions index is in progress.
22
+ */
23
+ isRunning?: boolean;
24
+ /**
25
+ * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
26
+ */
27
+ lastBuiltAt?: string;
28
+ /**
29
+ * Date and time when the Query Suggestions index was last updated successfully.
30
+ */
31
+ lastSuccessfulBuiltAt?: string;
32
+ /**
33
+ * Duration of the last successful build in seconds.
34
+ */
35
+ lastSuccessfulBuildDuration?: string;
36
+ };
37
+
38
+ type AppID = {
39
+ /**
40
+ * Algolia application ID to which this Query Suggestions configuration belongs.
41
+ */
42
+ appID?: string;
43
+ };
44
+
15
45
  /**
16
46
  * Languages for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
17
47
  */
18
- type Languages = string[] | boolean;
48
+ type Languages = Array<string> | boolean;
19
49
 
20
50
  /**
21
51
  * Facet to use as category.
@@ -43,8 +73,8 @@ type SourceIndex = {
43
73
  * If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used.
44
74
  */
45
75
  replicas?: boolean;
46
- analyticsTags?: string[] | null;
47
- facets?: Facet[] | null;
76
+ analyticsTags?: Array<string> | null;
77
+ facets?: Array<Facet> | null;
48
78
  /**
49
79
  * Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` search results to be included in the Query Suggestions index.
50
80
  */
@@ -53,8 +83,8 @@ type SourceIndex = {
53
83
  * Minimum letters required to be included as a suggestion. A search query must be at least `minLetters` long to be included in the Query Suggestions index.
54
84
  */
55
85
  minLetters?: number;
56
- generate?: string[][] | null;
57
- external?: string[] | null;
86
+ generate?: Array<Array<string>> | null;
87
+ external?: Array<string> | null;
58
88
  };
59
89
 
60
90
  /**
@@ -64,9 +94,9 @@ type Configuration = {
64
94
  /**
65
95
  * Algolia indices from which to get the popular searches for query suggestions.
66
96
  */
67
- sourceIndices: SourceIndex[];
97
+ sourceIndices: Array<SourceIndex>;
68
98
  languages?: Languages;
69
- exclude?: string[] | null;
99
+ exclude?: Array<string> | null;
70
100
  /**
71
101
  * Whether to turn on personalized query suggestions.
72
102
  */
@@ -77,6 +107,37 @@ type Configuration = {
77
107
  allowSpecialCharacters?: boolean;
78
108
  };
79
109
 
110
+ /**
111
+ * Query Suggestions configuration.
112
+ */
113
+ type ConfigurationWithIndex = Record<string, unknown> & Configuration;
114
+
115
+ /**
116
+ * API response for retrieving Query Suggestions configurations.
117
+ */
118
+ type ConfigurationResponse = AppID & ConfigurationWithIndex;
119
+
120
+ /**
121
+ * Type of log entry. - `SKIP`. A query is skipped because it doesn\'t match the conditions for successful inclusion. For example, when a query doesn\'t generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
122
+ */
123
+ type LogLevel = 'SKIP' | 'INFO' | 'ERROR';
124
+
125
+ type LogFile = {
126
+ /**
127
+ * Date and time of the log entry, in RFC 3339 format.
128
+ */
129
+ timestamp?: string;
130
+ level?: LogLevel;
131
+ /**
132
+ * Details about this log entry.
133
+ */
134
+ message?: string;
135
+ /**
136
+ * Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.
137
+ */
138
+ contextLevel?: number;
139
+ };
140
+
80
141
  /**
81
142
  * Properties for the `customDelete` method.
82
143
  */
@@ -88,7 +149,9 @@ type CustomDeleteProps = {
88
149
  /**
89
150
  * Query parameters to apply to the current query.
90
151
  */
91
- parameters?: Record<string, any>;
152
+ parameters?: {
153
+ [key: string]: any;
154
+ };
92
155
  };
93
156
  /**
94
157
  * Properties for the `customGet` method.
@@ -101,7 +164,9 @@ type CustomGetProps = {
101
164
  /**
102
165
  * Query parameters to apply to the current query.
103
166
  */
104
- parameters?: Record<string, any>;
167
+ parameters?: {
168
+ [key: string]: any;
169
+ };
105
170
  };
106
171
  /**
107
172
  * Properties for the `customPost` method.
@@ -114,7 +179,9 @@ type CustomPostProps = {
114
179
  /**
115
180
  * Query parameters to apply to the current query.
116
181
  */
117
- parameters?: Record<string, any>;
182
+ parameters?: {
183
+ [key: string]: any;
184
+ };
118
185
  /**
119
186
  * Parameters to send with the custom request.
120
187
  */
@@ -131,7 +198,9 @@ type CustomPutProps = {
131
198
  /**
132
199
  * Query parameters to apply to the current query.
133
200
  */
134
- parameters?: Record<string, any>;
201
+ parameters?: {
202
+ [key: string]: any;
203
+ };
135
204
  /**
136
205
  * Parameters to send with the custom request.
137
206
  */
@@ -184,68 +253,7 @@ type UpdateConfigProps = {
184
253
  configuration: Configuration;
185
254
  };
186
255
 
187
- type ConfigStatus = {
188
- /**
189
- * Name of the Query Suggestions index (case-sensitive).
190
- */
191
- indexName?: string;
192
- /**
193
- * Whether the creation or update of the Query Suggestions index is in progress.
194
- */
195
- isRunning?: boolean;
196
- /**
197
- * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
198
- */
199
- lastBuiltAt?: string;
200
- /**
201
- * Date and time when the Query Suggestions index was last updated successfully.
202
- */
203
- lastSuccessfulBuiltAt?: string;
204
- /**
205
- * Duration of the last successful build in seconds.
206
- */
207
- lastSuccessfulBuildDuration?: string;
208
- };
209
-
210
- type AppID = {
211
- /**
212
- * Algolia application ID to which this Query Suggestions configuration belongs.
213
- */
214
- appID?: string;
215
- };
216
-
217
- /**
218
- * Query Suggestions configuration.
219
- */
220
- type ConfigurationWithIndex = Configuration & Record<string, unknown>;
221
-
222
- /**
223
- * API response for retrieving Query Suggestions configurations.
224
- */
225
- type ConfigurationResponse = AppID & ConfigurationWithIndex;
226
-
227
- /**
228
- * Type of log entry. - `SKIP`. A query is skipped because it doesn\'t match the conditions for successful inclusion. For example, when a query doesn\'t generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
229
- */
230
- type LogLevel = 'ERROR' | 'INFO' | 'SKIP';
231
-
232
- type LogFile = {
233
- /**
234
- * Date and time of the log entry, in RFC 3339 format.
235
- */
236
- timestamp?: string;
237
- level?: LogLevel;
238
- /**
239
- * Details about this log entry.
240
- */
241
- message?: string;
242
- /**
243
- * Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.
244
- */
245
- contextLevel?: number;
246
- };
247
-
248
- declare const apiClientVersion = "5.6.1";
256
+ declare const apiClientVersion = "5.8.0";
249
257
  declare const REGIONS: readonly ["eu", "us"];
250
258
  type Region = (typeof REGIONS)[number];
251
259
  declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -284,15 +292,13 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
284
292
  * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
285
293
  *
286
294
  * Required API Key ACLs:
287
- * - editSettings.
288
- *
295
+ * - editSettings
289
296
  * @param configurationWithIndex - The configurationWithIndex object.
290
297
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
291
298
  */
292
299
  createConfig(configurationWithIndex: ConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
293
300
  /**
294
301
  * This method allow you to send requests to the Algolia REST API.
295
- *
296
302
  * @param customDelete - The customDelete object.
297
303
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
298
304
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -301,7 +307,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
301
307
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
302
308
  /**
303
309
  * This method allow you to send requests to the Algolia REST API.
304
- *
305
310
  * @param customGet - The customGet object.
306
311
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
307
312
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -310,7 +315,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
310
315
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
311
316
  /**
312
317
  * This method allow you to send requests to the Algolia REST API.
313
- *
314
318
  * @param customPost - The customPost object.
315
319
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
316
320
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -320,7 +324,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
320
324
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
321
325
  /**
322
326
  * This method allow you to send requests to the Algolia REST API.
323
- *
324
327
  * @param customPut - The customPut object.
325
328
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
326
329
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -332,8 +335,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
332
335
  * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
333
336
  *
334
337
  * Required API Key ACLs:
335
- * - editSettings.
336
- *
338
+ * - editSettings
337
339
  * @param deleteConfig - The deleteConfig object.
338
340
  * @param deleteConfig.indexName - Query Suggestions index name.
339
341
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -343,17 +345,15 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
343
345
  * Retrieves all Query Suggestions configurations of your Algolia application.
344
346
  *
345
347
  * Required API Key ACLs:
346
- * - settings.
347
- *
348
+ * - settings
348
349
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
349
350
  */
350
- getAllConfigs(requestOptions?: RequestOptions): Promise<ConfigurationResponse[]>;
351
+ getAllConfigs(requestOptions?: RequestOptions): Promise<Array<ConfigurationResponse>>;
351
352
  /**
352
353
  * Retrieves a single Query Suggestions configuration by its index name.
353
354
  *
354
355
  * Required API Key ACLs:
355
- * - settings.
356
- *
356
+ * - settings
357
357
  * @param getConfig - The getConfig object.
358
358
  * @param getConfig.indexName - Query Suggestions index name.
359
359
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -363,8 +363,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
363
363
  * Reports the status of a Query Suggestions index.
364
364
  *
365
365
  * Required API Key ACLs:
366
- * - settings.
367
- *
366
+ * - settings
368
367
  * @param getConfigStatus - The getConfigStatus object.
369
368
  * @param getConfigStatus.indexName - Query Suggestions index name.
370
369
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -374,8 +373,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
374
373
  * Retrieves the logs for a single Query Suggestions index.
375
374
  *
376
375
  * Required API Key ACLs:
377
- * - settings.
378
- *
376
+ * - settings
379
377
  * @param getLogFile - The getLogFile object.
380
378
  * @param getLogFile.indexName - Query Suggestions index name.
381
379
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -385,8 +383,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
385
383
  * Updates a QuerySuggestions configuration.
386
384
  *
387
385
  * Required API Key ACLs:
388
- * - editSettings.
389
- *
386
+ * - editSettings
390
387
  * @param updateConfig - The updateConfig object.
391
388
  * @param updateConfig.indexName - Query Suggestions index name.
392
389
  * @param updateConfig.configuration - The configuration object.
package/dist/node.d.cts CHANGED
@@ -12,10 +12,40 @@ type BaseResponse = {
12
12
  message?: string;
13
13
  };
14
14
 
15
+ type ConfigStatus = {
16
+ /**
17
+ * Name of the Query Suggestions index (case-sensitive).
18
+ */
19
+ indexName?: string;
20
+ /**
21
+ * Whether the creation or update of the Query Suggestions index is in progress.
22
+ */
23
+ isRunning?: boolean;
24
+ /**
25
+ * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
26
+ */
27
+ lastBuiltAt?: string;
28
+ /**
29
+ * Date and time when the Query Suggestions index was last updated successfully.
30
+ */
31
+ lastSuccessfulBuiltAt?: string;
32
+ /**
33
+ * Duration of the last successful build in seconds.
34
+ */
35
+ lastSuccessfulBuildDuration?: string;
36
+ };
37
+
38
+ type AppID = {
39
+ /**
40
+ * Algolia application ID to which this Query Suggestions configuration belongs.
41
+ */
42
+ appID?: string;
43
+ };
44
+
15
45
  /**
16
46
  * Languages for deduplicating singular and plural suggestions. If specified, only the more popular form is included.
17
47
  */
18
- type Languages = string[] | boolean;
48
+ type Languages = Array<string> | boolean;
19
49
 
20
50
  /**
21
51
  * Facet to use as category.
@@ -43,8 +73,8 @@ type SourceIndex = {
43
73
  * If true, Query Suggestions uses all replica indices to find popular searches. If false, only the primary index is used.
44
74
  */
45
75
  replicas?: boolean;
46
- analyticsTags?: string[] | null;
47
- facets?: Facet[] | null;
76
+ analyticsTags?: Array<string> | null;
77
+ facets?: Array<Facet> | null;
48
78
  /**
49
79
  * Minimum number of hits required to be included as a suggestion. A search query must at least generate `minHits` search results to be included in the Query Suggestions index.
50
80
  */
@@ -53,8 +83,8 @@ type SourceIndex = {
53
83
  * Minimum letters required to be included as a suggestion. A search query must be at least `minLetters` long to be included in the Query Suggestions index.
54
84
  */
55
85
  minLetters?: number;
56
- generate?: string[][] | null;
57
- external?: string[] | null;
86
+ generate?: Array<Array<string>> | null;
87
+ external?: Array<string> | null;
58
88
  };
59
89
 
60
90
  /**
@@ -64,9 +94,9 @@ type Configuration = {
64
94
  /**
65
95
  * Algolia indices from which to get the popular searches for query suggestions.
66
96
  */
67
- sourceIndices: SourceIndex[];
97
+ sourceIndices: Array<SourceIndex>;
68
98
  languages?: Languages;
69
- exclude?: string[] | null;
99
+ exclude?: Array<string> | null;
70
100
  /**
71
101
  * Whether to turn on personalized query suggestions.
72
102
  */
@@ -77,6 +107,37 @@ type Configuration = {
77
107
  allowSpecialCharacters?: boolean;
78
108
  };
79
109
 
110
+ /**
111
+ * Query Suggestions configuration.
112
+ */
113
+ type ConfigurationWithIndex = Record<string, unknown> & Configuration;
114
+
115
+ /**
116
+ * API response for retrieving Query Suggestions configurations.
117
+ */
118
+ type ConfigurationResponse = AppID & ConfigurationWithIndex;
119
+
120
+ /**
121
+ * Type of log entry. - `SKIP`. A query is skipped because it doesn\'t match the conditions for successful inclusion. For example, when a query doesn\'t generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
122
+ */
123
+ type LogLevel = 'SKIP' | 'INFO' | 'ERROR';
124
+
125
+ type LogFile = {
126
+ /**
127
+ * Date and time of the log entry, in RFC 3339 format.
128
+ */
129
+ timestamp?: string;
130
+ level?: LogLevel;
131
+ /**
132
+ * Details about this log entry.
133
+ */
134
+ message?: string;
135
+ /**
136
+ * Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.
137
+ */
138
+ contextLevel?: number;
139
+ };
140
+
80
141
  /**
81
142
  * Properties for the `customDelete` method.
82
143
  */
@@ -88,7 +149,9 @@ type CustomDeleteProps = {
88
149
  /**
89
150
  * Query parameters to apply to the current query.
90
151
  */
91
- parameters?: Record<string, any>;
152
+ parameters?: {
153
+ [key: string]: any;
154
+ };
92
155
  };
93
156
  /**
94
157
  * Properties for the `customGet` method.
@@ -101,7 +164,9 @@ type CustomGetProps = {
101
164
  /**
102
165
  * Query parameters to apply to the current query.
103
166
  */
104
- parameters?: Record<string, any>;
167
+ parameters?: {
168
+ [key: string]: any;
169
+ };
105
170
  };
106
171
  /**
107
172
  * Properties for the `customPost` method.
@@ -114,7 +179,9 @@ type CustomPostProps = {
114
179
  /**
115
180
  * Query parameters to apply to the current query.
116
181
  */
117
- parameters?: Record<string, any>;
182
+ parameters?: {
183
+ [key: string]: any;
184
+ };
118
185
  /**
119
186
  * Parameters to send with the custom request.
120
187
  */
@@ -131,7 +198,9 @@ type CustomPutProps = {
131
198
  /**
132
199
  * Query parameters to apply to the current query.
133
200
  */
134
- parameters?: Record<string, any>;
201
+ parameters?: {
202
+ [key: string]: any;
203
+ };
135
204
  /**
136
205
  * Parameters to send with the custom request.
137
206
  */
@@ -184,68 +253,7 @@ type UpdateConfigProps = {
184
253
  configuration: Configuration;
185
254
  };
186
255
 
187
- type ConfigStatus = {
188
- /**
189
- * Name of the Query Suggestions index (case-sensitive).
190
- */
191
- indexName?: string;
192
- /**
193
- * Whether the creation or update of the Query Suggestions index is in progress.
194
- */
195
- isRunning?: boolean;
196
- /**
197
- * Date and time when the Query Suggestions index was last built, in RFC 3339 format.
198
- */
199
- lastBuiltAt?: string;
200
- /**
201
- * Date and time when the Query Suggestions index was last updated successfully.
202
- */
203
- lastSuccessfulBuiltAt?: string;
204
- /**
205
- * Duration of the last successful build in seconds.
206
- */
207
- lastSuccessfulBuildDuration?: string;
208
- };
209
-
210
- type AppID = {
211
- /**
212
- * Algolia application ID to which this Query Suggestions configuration belongs.
213
- */
214
- appID?: string;
215
- };
216
-
217
- /**
218
- * Query Suggestions configuration.
219
- */
220
- type ConfigurationWithIndex = Configuration & Record<string, unknown>;
221
-
222
- /**
223
- * API response for retrieving Query Suggestions configurations.
224
- */
225
- type ConfigurationResponse = AppID & ConfigurationWithIndex;
226
-
227
- /**
228
- * Type of log entry. - `SKIP`. A query is skipped because it doesn\'t match the conditions for successful inclusion. For example, when a query doesn\'t generate enough search results. - `INFO`. An informative log entry. - `ERROR`. The Query Suggestions process encountered an error.
229
- */
230
- type LogLevel = 'ERROR' | 'INFO' | 'SKIP';
231
-
232
- type LogFile = {
233
- /**
234
- * Date and time of the log entry, in RFC 3339 format.
235
- */
236
- timestamp?: string;
237
- level?: LogLevel;
238
- /**
239
- * Details about this log entry.
240
- */
241
- message?: string;
242
- /**
243
- * Level indicating the position of a suggestion in a hierarchy of records. For example, a `contextLevel` of 1 indicates that this suggestion belongs to a previous suggestion with `contextLevel` 0.
244
- */
245
- contextLevel?: number;
246
- };
247
-
248
- declare const apiClientVersion = "5.6.1";
256
+ declare const apiClientVersion = "5.8.0";
249
257
  declare const REGIONS: readonly ["eu", "us"];
250
258
  type Region = (typeof REGIONS)[number];
251
259
  declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, region: regionOption, ...options }: CreateClientOptions & {
@@ -284,15 +292,13 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
284
292
  * Creates a new Query Suggestions configuration. You can have up to 100 configurations per Algolia application.
285
293
  *
286
294
  * Required API Key ACLs:
287
- * - editSettings.
288
- *
295
+ * - editSettings
289
296
  * @param configurationWithIndex - The configurationWithIndex object.
290
297
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
291
298
  */
292
299
  createConfig(configurationWithIndex: ConfigurationWithIndex, requestOptions?: RequestOptions): Promise<BaseResponse>;
293
300
  /**
294
301
  * This method allow you to send requests to the Algolia REST API.
295
- *
296
302
  * @param customDelete - The customDelete object.
297
303
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
298
304
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -301,7 +307,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
301
307
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
302
308
  /**
303
309
  * This method allow you to send requests to the Algolia REST API.
304
- *
305
310
  * @param customGet - The customGet object.
306
311
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
307
312
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -310,7 +315,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
310
315
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
311
316
  /**
312
317
  * This method allow you to send requests to the Algolia REST API.
313
- *
314
318
  * @param customPost - The customPost object.
315
319
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
316
320
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -320,7 +324,6 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
320
324
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
321
325
  /**
322
326
  * This method allow you to send requests to the Algolia REST API.
323
- *
324
327
  * @param customPut - The customPut object.
325
328
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
326
329
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -332,8 +335,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
332
335
  * Deletes a Query Suggestions configuration. Deleting only removes the configuration and stops updates to the Query Suggestions index. To delete the Query Suggestions index itself, use the Search API and the `Delete an index` operation.
333
336
  *
334
337
  * Required API Key ACLs:
335
- * - editSettings.
336
- *
338
+ * - editSettings
337
339
  * @param deleteConfig - The deleteConfig object.
338
340
  * @param deleteConfig.indexName - Query Suggestions index name.
339
341
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -343,17 +345,15 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
343
345
  * Retrieves all Query Suggestions configurations of your Algolia application.
344
346
  *
345
347
  * Required API Key ACLs:
346
- * - settings.
347
- *
348
+ * - settings
348
349
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
349
350
  */
350
- getAllConfigs(requestOptions?: RequestOptions): Promise<ConfigurationResponse[]>;
351
+ getAllConfigs(requestOptions?: RequestOptions): Promise<Array<ConfigurationResponse>>;
351
352
  /**
352
353
  * Retrieves a single Query Suggestions configuration by its index name.
353
354
  *
354
355
  * Required API Key ACLs:
355
- * - settings.
356
- *
356
+ * - settings
357
357
  * @param getConfig - The getConfig object.
358
358
  * @param getConfig.indexName - Query Suggestions index name.
359
359
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -363,8 +363,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
363
363
  * Reports the status of a Query Suggestions index.
364
364
  *
365
365
  * Required API Key ACLs:
366
- * - settings.
367
- *
366
+ * - settings
368
367
  * @param getConfigStatus - The getConfigStatus object.
369
368
  * @param getConfigStatus.indexName - Query Suggestions index name.
370
369
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -374,8 +373,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
374
373
  * Retrieves the logs for a single Query Suggestions index.
375
374
  *
376
375
  * Required API Key ACLs:
377
- * - settings.
378
- *
376
+ * - settings
379
377
  * @param getLogFile - The getLogFile object.
380
378
  * @param getLogFile.indexName - Query Suggestions index name.
381
379
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -385,8 +383,7 @@ declare function createQuerySuggestionsClient({ appId: appIdOption, apiKey: apiK
385
383
  * Updates a QuerySuggestions configuration.
386
384
  *
387
385
  * Required API Key ACLs:
388
- * - editSettings.
389
- *
386
+ * - editSettings
390
387
  * @param updateConfig - The updateConfig object.
391
388
  * @param updateConfig.indexName - Query Suggestions index name.
392
389
  * @param updateConfig.configuration - The configuration object.