|
1 | 1 | // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. |
2 | 2 |
|
3 | 3 | import type { ClientOptions, RequestOptions } from '@algolia/client-common'; |
| 4 | +import { DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES } from '@algolia/client-common'; |
4 | 5 |
|
5 | 6 | import type { AbtestingV3Client } from '@algolia/abtesting'; |
6 | 7 | import { abtestingV3Client } from '@algolia/abtesting'; |
@@ -102,7 +103,7 @@ export type Algoliasearch = SearchClient & { |
102 | 103 | * @param replaceAllObjects.objects - The array of `objects` to store in the given Algolia `indexName`. |
103 | 104 | * @param replaceAllObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `objects.length / batchSize`. Defaults to 1000. |
104 | 105 | * @param replaceAllObjects.scopes - The `scopes` to keep from the index. Defaults to ['settings', 'rules', 'synonyms']. |
105 | | - * @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion. 100 by default. |
| 106 | + * @param replaceAllObjects.maxRetries - The maximum number of retries when polling for task completion. 800 by default. |
106 | 107 | * @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `push`, `operationIndex` and `getEvent` method and merged with the transporter requestOptions. |
107 | 108 | */ |
108 | 109 | replaceAllObjectsWithTransformation: ( |
@@ -203,7 +204,13 @@ export function algoliasearch( |
203 | 204 | }, |
204 | 205 |
|
205 | 206 | async replaceAllObjectsWithTransformation( |
206 | | - { indexName, objects, batchSize, scopes, maxRetries = 100 }: ReplaceAllObjectsOptions, |
| 207 | + { |
| 208 | + indexName, |
| 209 | + objects, |
| 210 | + batchSize, |
| 211 | + scopes, |
| 212 | + maxRetries = DEFAULT_REPLACE_ALL_OBJECTS_MAX_RETRIES, |
| 213 | + }: ReplaceAllObjectsOptions, |
207 | 214 | requestOptions?: RequestOptions | undefined, |
208 | 215 | ): Promise<ReplaceAllObjectsWithTransformationResponse> { |
209 | 216 | if (!ingestionTransporter) { |
|
0 commit comments