-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support setting the region of your DB. Added Update / Delete More Ite…
…ms 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
- Loading branch information
1 parent
c582fbd
commit c76b06d
Showing
55 changed files
with
741 additions
and
878 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
This file is auto-generated, do not edit | ||
*/ | ||
|
||
'use strict'; | ||
const rqs = require("./request"); | ||
|
||
/** | ||
* Delete all the items that pass the filter. | ||
* 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. | ||
*/ | ||
class DeleteMoreItems extends rqs.Request { | ||
|
||
/** | ||
* Construct the request | ||
* @param {string} filter - A [ReQL](https://docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated. | ||
*/ | ||
constructor(filter) { | ||
super('DELETE', '/more-items/', 1000, false); | ||
this.filter = filter; | ||
} | ||
|
||
/** | ||
* Get body parameters | ||
* @return {Object} The values of body parameters (name of parameter: value of the parameter) | ||
*/ | ||
bodyParameters() { | ||
let params = {}; | ||
params.filter = this.filter; | ||
|
||
return params; | ||
} | ||
|
||
/** | ||
* Get query parameters | ||
* @return {Object} The values of query parameters (name of parameter: value of the parameter) | ||
*/ | ||
queryParameters() { | ||
let params = {}; | ||
return params; | ||
} | ||
} | ||
|
||
exports.DeleteMoreItems = DeleteMoreItems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.