@algolia/ingestion 1.21.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.21.0
44
+ yarn add @algolia/ingestion@1.23.0
45
45
  # or
46
- npm install @algolia/ingestion@1.21.0
46
+ npm install @algolia/ingestion@1.23.0
47
47
  # or
48
- pnpm add @algolia/ingestion@1.21.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.21.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.21.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
@@ -117,6 +117,10 @@ type Authentication = {
117
117
  */
118
118
  name: string;
119
119
  platform?: Platform | null;
120
+ /**
121
+ * Owner of the resource.
122
+ */
123
+ owner?: string | null;
120
124
  input: AuthInputPartial;
121
125
  /**
122
126
  * Date of creation in RFC 3339 format.
@@ -320,6 +324,10 @@ type Destination = {
320
324
  * Descriptive name for the resource.
321
325
  */
322
326
  name: string;
327
+ /**
328
+ * Owner of the resource.
329
+ */
330
+ owner?: string | null;
323
331
  input: DestinationInput;
324
332
  /**
325
333
  * Date of creation in RFC 3339 format.
@@ -601,6 +609,10 @@ type SourceCommercetools = {
601
609
  * Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
602
610
  */
603
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;
604
616
  customFields?: CommercetoolsCustomFields;
605
617
  };
606
618
 
@@ -671,6 +683,10 @@ type Source = {
671
683
  sourceID: string;
672
684
  type: SourceType;
673
685
  name: string;
686
+ /**
687
+ * Owner of the resource.
688
+ */
689
+ owner?: string | null;
674
690
  input?: SourceInput;
675
691
  /**
676
692
  * Universally unique identifier (UUID) of an authentication resource.
@@ -855,6 +871,10 @@ type Task = {
855
871
  * The next scheduled run of the task in RFC 3339 format.
856
872
  */
857
873
  nextRun?: string;
874
+ /**
875
+ * Owner of the resource.
876
+ */
877
+ owner?: string | null;
858
878
  input?: TaskInput;
859
879
  /**
860
880
  * Whether the task is enabled.
@@ -1031,6 +1051,10 @@ type Transformation = {
1031
1051
  * A descriptive name for your transformation of what it does.
1032
1052
  */
1033
1053
  description?: string;
1054
+ /**
1055
+ * Owner of the resource.
1056
+ */
1057
+ owner?: string | null;
1034
1058
  /**
1035
1059
  * Date of creation in RFC 3339 format.
1036
1060
  */
@@ -1530,6 +1554,10 @@ type SourceUpdateCommercetools = {
1530
1554
  * Whether a fallback value is stored in the Algolia record if there\'s no inventory information about the product.
1531
1555
  */
1532
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;
1533
1561
  customFields?: CommercetoolsCustomFields;
1534
1562
  };
1535
1563
 
@@ -2281,7 +2309,7 @@ type ValidateSourceBeforeUpdateProps = {
2281
2309
  sourceUpdate: SourceUpdate;
2282
2310
  };
2283
2311
 
2284
- declare const apiClientVersion = "1.21.0";
2312
+ declare const apiClientVersion = "1.23.0";
2285
2313
  declare const REGIONS: readonly ["eu", "us"];
2286
2314
  type Region = (typeof REGIONS)[number];
2287
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.21.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);