@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 +4 -4
- package/dist/browser.d.ts +29 -1
- package/dist/builds/browser.js +1 -1
- 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 +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1 -1
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +29 -1
- package/dist/node.d.cts +29 -1
- package/dist/node.d.ts +29 -1
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +5 -5
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +29 -1
- package/package.json +8 -8
package/dist/fetch.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.
|
|
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 = {
|
package/dist/node.d.cts
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.
|
|
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 = {
|
package/dist/node.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.
|
|
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 = {
|
|
@@ -29,7 +29,7 @@ __export(ingestionClient_exports, {
|
|
|
29
29
|
});
|
|
30
30
|
module.exports = __toCommonJS(ingestionClient_exports);
|
|
31
31
|
var import_client_common = require("@algolia/client-common");
|
|
32
|
-
var apiClientVersion = "1.
|
|
32
|
+
var apiClientVersion = "1.23.0";
|
|
33
33
|
var REGIONS = ["eu", "us"];
|
|
34
34
|
function getDefaultHosts(region) {
|
|
35
35
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|