@constructor-io/constructorio-node 4.7.2 → 4.7.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-node",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "description": "Constructor.io Node.js client",
5
5
  "main": "src/constructorio.js",
6
6
  "types": "src/types/constructorio.d.ts",
@@ -359,6 +359,7 @@ class Catalog {
359
359
  * @param {object[]} parameters.items - A list of items with the same attributes as defined in the Item schema resource (https://docs.constructor.io/rest_api/items/items/#item-schema)
360
360
  * @param {string} [parameters.section="Products"] - This indicates which section to operate on within the index
361
361
  * @param {string} [parameters.notificationEmail] - An email address where you'd like to receive an email notification in case the task fails
362
+ * @param {boolean} [parameters.force=false] - Process the request even if it will invalidate a large number of existing items
362
363
  * @param {object} [networkParameters] - Parameters relevant to the network request
363
364
  * @param {number} [networkParameters.timeout] - Request timeout (in milliseconds)
364
365
  * @returns {Promise}
@@ -29,6 +29,7 @@ export interface UpdateItemsParameters extends CreateOrReplaceItemsParameters {
29
29
 
30
30
  export interface DeleteItemsParameters {
31
31
  items: Pick<Item, 'id'>[];
32
+ force?: boolean;
32
33
  section?: string;
33
34
  notificationEmail?: string;
34
35
  }
@@ -2,7 +2,7 @@ import { ConstructorClientOptions, NetworkParameters, UserParameters, Variations
2
2
 
3
3
  export default Recommendations;
4
4
 
5
- interface RecommendationsParameters {
5
+ export interface RecommendationsParameters {
6
6
  itemIds?: string | string[];
7
7
  numResults?: number;
8
8
  section?: string;
@@ -46,7 +46,7 @@ export interface RecommendationsRequestType extends Record<string, any> {
46
46
  }
47
47
 
48
48
  export interface RecommendationsResponseType extends Record<string, any> {
49
- results: Partial<RecommendationsResultType>;
49
+ results: Partial<RecommendationsResultType>[];
50
50
  total_num_results: number;
51
51
  pod: {
52
52
  id: string;