@algolia/ingestion 1.22.0 → 1.23.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 CHANGED
@@ -41,11 +41,11 @@ All of our clients comes with type definition, and are available for both browse
41
41
  ### With a package manager
42
42
 
43
43
  ```bash
44
- yarn add @algolia/ingestion@1.22.0
44
+ yarn add @algolia/ingestion@1.23.0
45
45
  # or
46
- npm install @algolia/ingestion@1.22.0
46
+ npm install @algolia/ingestion@1.23.0
47
47
  # or
48
- pnpm add @algolia/ingestion@1.22.0
48
+ pnpm add @algolia/ingestion@1.23.0
49
49
  ```
50
50
 
51
51
  ### Without a package manager
@@ -53,7 +53,7 @@ pnpm add @algolia/ingestion@1.22.0
53
53
  Add the following JavaScript snippet to the <head> of your website:
54
54
 
55
55
  ```html
56
- <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.22.0/dist/builds/browser.umd.js"></script>
56
+ <script src="https://cdn.jsdelivr.net/npm/@algolia/ingestion@1.23.0/dist/builds/browser.umd.js"></script>
57
57
  ```
58
58
 
59
59
  ### Usage
package/dist/browser.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.0";
2305
2313
  declare const REGIONS: readonly ["eu", "us"];
2306
2314
  type Region = (typeof REGIONS)[number];
2307
2315
  type RegionOptions = {
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  // src/ingestionClient.ts
11
11
  import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
12
- var apiClientVersion = "1.22.0";
12
+ var apiClientVersion = "1.23.0";
13
13
  var REGIONS = ["eu", "us"];
14
14
  function getDefaultHosts(region) {
15
15
  const url = "data.{region}.algolia.com".replace("{region}", region);