You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/algoliasearch/builds/browser.ts
+110-2Lines changed: 110 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
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.
// Bridge helpers to expose along with the search endpoints at the root of the API client
51
+
52
+
/**
53
+
* Helper: Similar to the `saveObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must've been passed to the client instantiation method.
54
+
*
55
+
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
56
+
* @param saveObjects - The `saveObjects` object.
57
+
* @param saveObjects.indexName - The `indexName` to save `objects` in.
58
+
* @param saveObjects.objects - The array of `objects` to store in the given Algolia `indexName`.
59
+
* @param saveObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
60
+
* @param saveObjects.waitForTasks - 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.
61
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
62
+
*/
63
+
saveObjectsWithTransformation: (
64
+
options: SaveObjectsOptions,
65
+
requestOptions?: RequestOptions,
66
+
)=>Promise<WatchResponse>;
67
+
68
+
/**
69
+
* Helper: Similar to the `partialUpdateObjects` method but requires a Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/) to be created first, in order to transform records before indexing them to Algolia. The `region` must've been passed to the client instantiation method.
70
+
*
71
+
* @summary Save objects to an Algolia index by leveraging the Transformation pipeline setup in the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
72
+
* @param partialUpdateObjects - The `partialUpdateObjects` object.
73
+
* @param partialUpdateObjects.indexName - The `indexName` to update `objects` in.
74
+
* @param partialUpdateObjects.objects - The array of `objects` to update in the given Algolia `indexName`.
75
+
* @param partialUpdateObjects.createIfNotExists - To be provided if non-existing objects are passed, otherwise, the call will fail..
76
+
* @param partialUpdateObjects.batchSize - The size of the chunk of `objects`. The number of `batch` calls will be equal to `length(objects) / batchSize`. Defaults to 1000.
77
+
* @param partialUpdateObjects.waitForTasks - 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.
78
+
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
79
+
*/
80
+
partialUpdateObjectsWithTransformation: (
81
+
options: PartialUpdateObjectsOptions,
82
+
requestOptions?: RequestOptions,
83
+
)=>Promise<WatchResponse>;
84
+
};
85
+
86
+
exporttypeTransformationOptions={
87
+
// When provided, a second transporter will be created in order to leverage the `*WithTransformation` methods exposed by the Push connector (https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/connectors/push/).
88
+
transformation?: {
89
+
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
0 commit comments