Skip to content

Commit b137824

Browse files
authored
fix(javascript): allow batchSize on ReplaceAllObjectsOptions (#2788)
1 parent 19177f7 commit b137824

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

templates/javascript/clients/client/model/clientMethodProps.mustache

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ export type ChunkedBatchOptions = ReplaceAllObjectsOptions & {
153153
* Whether or not we should wait until every `batch` tasks has been processed, this operation may slow the total execution time of this method but is more reliable.
154154
*/
155155
waitForTasks?: boolean;
156-
157-
/**
158-
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
159-
*/
160-
batchSize?: number;
161156
}
162157

163158
export type ReplaceAllObjectsOptions = {
@@ -170,6 +165,11 @@ export type ReplaceAllObjectsOptions = {
170165
* The array of `objects` to store in the given Algolia `indexName`.
171166
*/
172167
objects: Array<Record<string, any>>;
168+
169+
/**
170+
* The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
171+
*/
172+
batchSize?: number;
173173
}
174174

175175
export type ReplaceAllObjectsResponse = {

0 commit comments

Comments
 (0)