@algolia/ingestion 1.37.0 → 1.39.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/README.md +4 -4
- package/dist/browser.d.ts +9 -4
- package/dist/builds/browser.js +7 -3
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +1 -1
- package/dist/builds/fetch.js +7 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +7 -3
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +7 -3
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +7 -3
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +9 -4
- package/dist/node.d.cts +9 -4
- package/dist/node.d.ts +9 -4
- package/dist/src/ingestionClient.cjs +7 -3
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +7 -3
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +9 -4
- package/package.json +7 -7
package/dist/worker.d.ts
CHANGED
|
@@ -708,7 +708,7 @@ type ListSourcesResponse = {
|
|
|
708
708
|
/**
|
|
709
709
|
* Action to perform on the Algolia index.
|
|
710
710
|
*/
|
|
711
|
-
type ActionType = 'replace' | 'save' | 'partial' | 'append';
|
|
711
|
+
type ActionType = 'replace' | 'save' | 'partial' | 'partialNoCreate' | 'append';
|
|
712
712
|
|
|
713
713
|
type EmailNotifications = {
|
|
714
714
|
/**
|
|
@@ -2255,6 +2255,10 @@ type ListTransformationsProps = {
|
|
|
2255
2255
|
* Sort order of the response, ascending or descending.
|
|
2256
2256
|
*/
|
|
2257
2257
|
order?: OrderKeys | undefined;
|
|
2258
|
+
/**
|
|
2259
|
+
* Whether to filter the list of transformations by the type of transformation.
|
|
2260
|
+
*/
|
|
2261
|
+
type?: TransformationType | undefined;
|
|
2258
2262
|
};
|
|
2259
2263
|
/**
|
|
2260
2264
|
* Properties for the `push` method.
|
|
@@ -2453,7 +2457,7 @@ type ChunkedPushOptions = {
|
|
|
2453
2457
|
objects: Array<Record<string, unknown>>;
|
|
2454
2458
|
};
|
|
2455
2459
|
|
|
2456
|
-
declare const apiClientVersion = "1.
|
|
2460
|
+
declare const apiClientVersion = "1.39.0";
|
|
2457
2461
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2458
2462
|
type Region = (typeof REGIONS)[number];
|
|
2459
2463
|
type RegionOptions = {
|
|
@@ -2973,9 +2977,10 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2973
2977
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
2974
2978
|
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
2975
2979
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
2980
|
+
* @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
|
|
2976
2981
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
2977
2982
|
*/
|
|
2978
|
-
listTransformations({ itemsPerPage, page, sort, order }?: ListTransformationsProps, requestOptions?: RequestOptions | undefined): Promise<ListTransformationsResponse>;
|
|
2983
|
+
listTransformations({ itemsPerPage, page, sort, order, type }?: ListTransformationsProps, requestOptions?: RequestOptions | undefined): Promise<ListTransformationsResponse>;
|
|
2979
2984
|
/**
|
|
2980
2985
|
* Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data/), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
|
|
2981
2986
|
*
|
|
@@ -2992,7 +2997,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
|
|
|
2992
2997
|
*/
|
|
2993
2998
|
push({ indexName, pushTaskPayload, watch, referenceIndexName }: PushProps, requestOptions?: RequestOptions): Promise<WatchResponse>;
|
|
2994
2999
|
/**
|
|
2995
|
-
* Pushes records through the
|
|
3000
|
+
* Pushes records through the pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints or the debugger dashboard to see the status of your task. If you want to transform your data before indexing, this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
|
|
2996
3001
|
*
|
|
2997
3002
|
* Required API Key ACLs:
|
|
2998
3003
|
* - addObject
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.39.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.39.0",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.39.0",
|
|
54
|
+
"@algolia/requester-fetch": "5.39.0",
|
|
55
|
+
"@algolia/requester-node-http": "5.39.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@arethetypeswrong/cli": "0.18.2",
|
|
59
|
-
"@types/node": "22.18.
|
|
60
|
-
"publint": "0.3.
|
|
59
|
+
"@types/node": "22.18.6",
|
|
60
|
+
"publint": "0.3.13",
|
|
61
61
|
"rollup": "4.41.0",
|
|
62
62
|
"tsup": "8.5.0",
|
|
63
63
|
"typescript": "5.9.2"
|