You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support setting the region of your DB. Added Update / Delete More Items endpoints.
Use got as the HTTP library instead of the deprecated request library.
Breaking changes:
ApiClient constructor: Removed alwaysUseHttps parameter. Use options.protocol instead.
Removed deprecated endpoints Item Based Recommendation and User Based Recommendation
Copy file name to clipboardExpand all lines: lib/requests/delete-item.js
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ const rqs = require("./request");
8
8
/**
9
9
* Deletes an item of given `itemId` from the catalog.
10
10
* If there are any *purchases*, *ratings*, *bookmarks*, *cart additions* or *detail views* of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some *series*, it will be removed from all the *series* where present.
11
-
* If an item becomes obsolete/no longer available, it is often meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and only exclude the item from recommendations. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
11
+
* If an item becomes obsolete/no longer available, it is meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
* If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
11
+
*/
12
+
classDeleteMoreItemsextendsrqs.Request{
13
+
14
+
/**
15
+
* Construct the request
16
+
* @param {string} filter - A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated.
17
+
*/
18
+
constructor(filter){
19
+
super('DELETE','/more-items/',1000,false);
20
+
this.filter=filter;
21
+
}
22
+
23
+
/**
24
+
* Get body parameters
25
+
* @return {Object} The values of body parameters (name of parameter: value of the parameter)
26
+
*/
27
+
bodyParameters(){
28
+
letparams={};
29
+
params.filter=this.filter;
30
+
31
+
returnparams;
32
+
}
33
+
34
+
/**
35
+
* Get query parameters
36
+
* @return {Object} The values of query parameters (name of parameter: value of the parameter)
0 commit comments