@algolia/ingestion 1.57.0 → 1.60.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 +6 -2
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +4 -4
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +9 -9
- 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 +6 -2
- package/dist/node.d.cts +6 -2
- package/dist/node.d.ts +6 -2
- package/dist/src/ingestionClient.cjs +1 -1
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +1 -1
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +6 -2
- package/package.json +9 -9
package/dist/fetch.d.ts
CHANGED
|
@@ -1528,7 +1528,7 @@ type WatchResponse = {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
|
|
1530
1530
|
/**
|
|
1531
|
-
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action
|
|
1531
|
+
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action adds the record to the index). - `partialUpdateObjectNoCreate`: same as `partialUpdateObject`, but with `createIfNoExists` set to false. (A record isn\'t added to the index if its `objectID` doesn\'t exist). - `deleteObject`: delete records from an index. Equivalent to the \"Delete a record\" operation. - `delete`. Delete an index. Equivalent to the \"Delete an index\" operation. - `clear`: delete all records from an index. Equivalent to the \"Delete all records from an index operation\".
|
|
1532
1532
|
*/
|
|
1533
1533
|
type Action = 'addObject' | 'updateObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'deleteObject' | 'delete' | 'clear';
|
|
1534
1534
|
|
|
@@ -1692,6 +1692,10 @@ type SourceUpdateCommercetools = {
|
|
|
1692
1692
|
* When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
1693
1693
|
*/
|
|
1694
1694
|
useImagesObjects?: boolean | undefined;
|
|
1695
|
+
/**
|
|
1696
|
+
* When set to true, the connector uses the complete category path (e.g. \"Root > Level 1 > Category name\") in `categoriesCustomFields`.
|
|
1697
|
+
*/
|
|
1698
|
+
categoriesCustomFieldsFullPath?: boolean | undefined;
|
|
1695
1699
|
customFields?: CommercetoolsCustomFields | undefined;
|
|
1696
1700
|
};
|
|
1697
1701
|
|
|
@@ -2540,7 +2544,7 @@ type ChunkedPushOptions = ChunkedHelperOptions & {
|
|
|
2540
2544
|
objects: Array<Record<string, unknown>>;
|
|
2541
2545
|
};
|
|
2542
2546
|
|
|
2543
|
-
declare const apiClientVersion = "1.
|
|
2547
|
+
declare const apiClientVersion = "1.60.0";
|
|
2544
2548
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2545
2549
|
type Region = (typeof REGIONS)[number];
|
|
2546
2550
|
type RegionOptions = {
|
package/dist/node.d.cts
CHANGED
|
@@ -1528,7 +1528,7 @@ type WatchResponse = {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
|
|
1530
1530
|
/**
|
|
1531
|
-
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action
|
|
1531
|
+
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action adds the record to the index). - `partialUpdateObjectNoCreate`: same as `partialUpdateObject`, but with `createIfNoExists` set to false. (A record isn\'t added to the index if its `objectID` doesn\'t exist). - `deleteObject`: delete records from an index. Equivalent to the \"Delete a record\" operation. - `delete`. Delete an index. Equivalent to the \"Delete an index\" operation. - `clear`: delete all records from an index. Equivalent to the \"Delete all records from an index operation\".
|
|
1532
1532
|
*/
|
|
1533
1533
|
type Action = 'addObject' | 'updateObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'deleteObject' | 'delete' | 'clear';
|
|
1534
1534
|
|
|
@@ -1692,6 +1692,10 @@ type SourceUpdateCommercetools = {
|
|
|
1692
1692
|
* When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
1693
1693
|
*/
|
|
1694
1694
|
useImagesObjects?: boolean | undefined;
|
|
1695
|
+
/**
|
|
1696
|
+
* When set to true, the connector uses the complete category path (e.g. \"Root > Level 1 > Category name\") in `categoriesCustomFields`.
|
|
1697
|
+
*/
|
|
1698
|
+
categoriesCustomFieldsFullPath?: boolean | undefined;
|
|
1695
1699
|
customFields?: CommercetoolsCustomFields | undefined;
|
|
1696
1700
|
};
|
|
1697
1701
|
|
|
@@ -2540,7 +2544,7 @@ type ChunkedPushOptions = ChunkedHelperOptions & {
|
|
|
2540
2544
|
objects: Array<Record<string, unknown>>;
|
|
2541
2545
|
};
|
|
2542
2546
|
|
|
2543
|
-
declare const apiClientVersion = "1.
|
|
2547
|
+
declare const apiClientVersion = "1.60.0";
|
|
2544
2548
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2545
2549
|
type Region = (typeof REGIONS)[number];
|
|
2546
2550
|
type RegionOptions = {
|
package/dist/node.d.ts
CHANGED
|
@@ -1528,7 +1528,7 @@ type WatchResponse = {
|
|
|
1528
1528
|
};
|
|
1529
1529
|
|
|
1530
1530
|
/**
|
|
1531
|
-
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action
|
|
1531
|
+
* Which indexing operation to perform: - `addObject`: adds records to an index. Equivalent to the \"Add a new record (with auto-generated object ID)\" operation. - `updateObject`: adds or replaces records in an index. Equivalent to the \"Add or replace a record\" operation. - `partialUpdateObject`: adds or updates attributes within records. Equivalent to the \"Add or update attributes\" operation with the `createIfNoExists` parameter set to true. (If a record with the specified `objectID` doesn\'t exist in the specified index, this action adds the record to the index). - `partialUpdateObjectNoCreate`: same as `partialUpdateObject`, but with `createIfNoExists` set to false. (A record isn\'t added to the index if its `objectID` doesn\'t exist). - `deleteObject`: delete records from an index. Equivalent to the \"Delete a record\" operation. - `delete`. Delete an index. Equivalent to the \"Delete an index\" operation. - `clear`: delete all records from an index. Equivalent to the \"Delete all records from an index operation\".
|
|
1532
1532
|
*/
|
|
1533
1533
|
type Action = 'addObject' | 'updateObject' | 'partialUpdateObject' | 'partialUpdateObjectNoCreate' | 'deleteObject' | 'delete' | 'clear';
|
|
1534
1534
|
|
|
@@ -1692,6 +1692,10 @@ type SourceUpdateCommercetools = {
|
|
|
1692
1692
|
* When set to true, the connector indexes objects with all images attributes instead of only the URLs.
|
|
1693
1693
|
*/
|
|
1694
1694
|
useImagesObjects?: boolean | undefined;
|
|
1695
|
+
/**
|
|
1696
|
+
* When set to true, the connector uses the complete category path (e.g. \"Root > Level 1 > Category name\") in `categoriesCustomFields`.
|
|
1697
|
+
*/
|
|
1698
|
+
categoriesCustomFieldsFullPath?: boolean | undefined;
|
|
1695
1699
|
customFields?: CommercetoolsCustomFields | undefined;
|
|
1696
1700
|
};
|
|
1697
1701
|
|
|
@@ -2540,7 +2544,7 @@ type ChunkedPushOptions = ChunkedHelperOptions & {
|
|
|
2540
2544
|
objects: Array<Record<string, unknown>>;
|
|
2541
2545
|
};
|
|
2542
2546
|
|
|
2543
|
-
declare const apiClientVersion = "1.
|
|
2547
|
+
declare const apiClientVersion = "1.60.0";
|
|
2544
2548
|
declare const REGIONS: readonly ["eu", "us"];
|
|
2545
2549
|
type Region = (typeof REGIONS)[number];
|
|
2546
2550
|
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.60.0";
|
|
33
33
|
var REGIONS = ["eu", "us"];
|
|
34
34
|
function getDefaultHosts(region) {
|
|
35
35
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|