@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
package/src/modules/catalog.js
CHANGED
|
@@ -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}
|
package/src/types/catalog.d.ts
CHANGED
|
@@ -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;
|