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/src/types/Ingestion.ts
+1-6Lines changed: 1 addition & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,22 +7,18 @@ import {
7
7
}from'@algolia/client-search';
8
8
import{RequestOptions}from'@algolia/transporter';
9
9
10
-
exportconstREGIONS=['eu','us']asconst;
11
-
exporttypeRegion=typeofREGIONS[number];
12
-
13
10
exporttypeTransformationOptions={
14
11
// 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/).
15
12
readonlytransformation?: {
16
13
// The region of your Algolia application ID, used to target the correct hosts of the transformation service.
17
-
readonlyregion: Region;
14
+
readonlyregion: 'eu'|'us';
18
15
};
19
16
};
20
17
21
18
exporttypeIngestionMethods={
22
19
/**
23
20
* 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.
24
21
*
25
-
* @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/).
26
22
* @param objects - The array of `objects` to store in the given Algolia `indexName`.
27
23
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `batch` method and merged with the transporter requestOptions.
28
24
*/
@@ -34,7 +30,6 @@ export type IngestionMethods = {
34
30
/**
35
31
* 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.
36
32
*
37
-
* @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/).
38
33
* @param objects - The array of `objects` to update in the given Algolia `indexName`.
39
34
* @param requestOptions - The requestOptions to send along with the query, they will be forwarded to the `getTask` method and merged with the transporter requestOptions.
0 commit comments