@algolia/ingestion 1.22.0 → 1.23.1

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/dist/worker.d.ts CHANGED
@@ -609,6 +609,10 @@ type SourceCommercetools = {
609
609
  * Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
610
610
  */
611
611
  fallbackIsInStockValue?: boolean;
612
+ /**
613
+ * Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
614
+ */
615
+ productQueryPredicate?: string;
612
616
  customFields?: CommercetoolsCustomFields;
613
617
  };
614
618
 
@@ -1550,6 +1554,10 @@ type SourceUpdateCommercetools = {
1550
1554
  * Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
1551
1555
  */
1552
1556
  fallbackIsInStockValue?: boolean;
1557
+ /**
1558
+ * Predicate to filter out specific products when indexing. For more information, see [Query Predicate](https://docs.commercetools.com/api/predicates/query).
1559
+ */
1560
+ productQueryPredicate?: string;
1553
1561
  customFields?: CommercetoolsCustomFields;
1554
1562
  };
1555
1563
 
@@ -2301,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
2301
2309
  sourceUpdate: SourceUpdate;
2302
2310
  };
2303
2311
 
2304
- declare const apiClientVersion = "1.22.0";
2312
+ declare const apiClientVersion = "1.23.1";
2305
2313
  declare const REGIONS: readonly ["eu", "us"];
2306
2314
  type Region = (typeof REGIONS)[number];
2307
2315
  type RegionOptions = {
@@ -2403,6 +2411,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2403
2411
  createTask(taskCreate: TaskCreate, requestOptions?: RequestOptions): Promise<TaskCreateResponse>;
2404
2412
  /**
2405
2413
  * Creates a new task using the v1 endpoint, please use `createTask` instead.
2414
+ *
2415
+ * @deprecated
2406
2416
  * @param taskCreate - Request body for creating a task.
2407
2417
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2408
2418
  */
@@ -2492,6 +2502,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2492
2502
  deleteTask({ taskID }: DeleteTaskProps, requestOptions?: RequestOptions): Promise<DeleteResponse>;
2493
2503
  /**
2494
2504
  * Deletes a task by its ID using the v1 endpoint, please use `deleteTask` instead.
2505
+ *
2506
+ * @deprecated
2495
2507
  * @param deleteTaskV1 - The deleteTaskV1 object.
2496
2508
  * @param deleteTaskV1.taskID - Unique identifier of a task.
2497
2509
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -2523,6 +2535,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2523
2535
  * - addObject
2524
2536
  * - deleteIndex
2525
2537
  * - editSettings
2538
+ *
2539
+ * @deprecated
2526
2540
  * @param disableTaskV1 - The disableTaskV1 object.
2527
2541
  * @param disableTaskV1.taskID - Unique identifier of a task.
2528
2542
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -2547,6 +2561,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2547
2561
  * - addObject
2548
2562
  * - deleteIndex
2549
2563
  * - editSettings
2564
+ *
2565
+ * @deprecated
2550
2566
  * @param enableTaskV1 - The enableTaskV1 object.
2551
2567
  * @param enableTaskV1.taskID - Unique identifier of a task.
2552
2568
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -2632,6 +2648,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2632
2648
  * - addObject
2633
2649
  * - deleteIndex
2634
2650
  * - editSettings
2651
+ *
2652
+ * @deprecated
2635
2653
  * @param getTaskV1 - The getTaskV1 object.
2636
2654
  * @param getTaskV1.taskID - Unique identifier of a task.
2637
2655
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -2770,6 +2788,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2770
2788
  * - addObject
2771
2789
  * - deleteIndex
2772
2790
  * - editSettings
2791
+ *
2792
+ * @deprecated
2773
2793
  * @param listTasksV1 - The listTasksV1 object.
2774
2794
  * @param listTasksV1.itemsPerPage - Number of items per page.
2775
2795
  * @param listTasksV1.page - Page number of the paginated API response.
@@ -2844,6 +2864,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2844
2864
  * - addObject
2845
2865
  * - deleteIndex
2846
2866
  * - editSettings
2867
+ *
2868
+ * @deprecated
2847
2869
  * @param runTaskV1 - The runTaskV1 object.
2848
2870
  * @param runTaskV1.taskID - Unique identifier of a task.
2849
2871
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -2900,6 +2922,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2900
2922
  * - addObject
2901
2923
  * - deleteIndex
2902
2924
  * - editSettings
2925
+ *
2926
+ * @deprecated
2903
2927
  * @param taskSearch - The taskSearch object.
2904
2928
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2905
2929
  */
@@ -3000,6 +3024,8 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
3000
3024
  updateTask({ taskID, taskUpdate }: UpdateTaskProps, requestOptions?: RequestOptions): Promise<TaskUpdateResponse>;
3001
3025
  /**
3002
3026
  * Updates a task by its ID using the v1 endpoint, please use `updateTask` instead.
3027
+ *
3028
+ * @deprecated
3003
3029
  * @param updateTaskV1 - The updateTaskV1 object.
3004
3030
  * @param updateTaskV1.taskID - Unique identifier of a task.
3005
3031
  * @param updateTaskV1.taskUpdate - The taskUpdate object.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.22.0",
2
+ "version": "1.23.1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
@@ -49,18 +49,18 @@
49
49
  "index.d.ts"
50
50
  ],
51
51
  "dependencies": {
52
- "@algolia/client-common": "5.22.0",
53
- "@algolia/requester-browser-xhr": "5.22.0",
54
- "@algolia/requester-fetch": "5.22.0",
55
- "@algolia/requester-node-http": "5.22.0"
52
+ "@algolia/client-common": "5.23.1",
53
+ "@algolia/requester-browser-xhr": "5.23.1",
54
+ "@algolia/requester-fetch": "5.23.1",
55
+ "@algolia/requester-node-http": "5.23.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "0.17.4",
59
- "@types/node": "22.13.11",
59
+ "@types/node": "22.13.14",
60
60
  "publint": "0.3.9",
61
61
  "rollup": "4.36.0",
62
62
  "tsup": "8.4.0",
63
- "typescript": "5.7.3"
63
+ "typescript": "5.8.2"
64
64
  },
65
65
  "engines": {
66
66
  "node": ">= 14.0.0"