Skip to content

Commit fd526b1

Browse files
committed
Pin dependencies, fix JSDoc comments; Version 5.1.1
1 parent 38654ee commit fd526b1

File tree

6 files changed

+34
-31
lines changed

6 files changed

+34
-31
lines changed

lib/api-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ApiClient {
4343
method: request.method,
4444
headers: {'Accept': 'application/json',
4545
'Content-Type': 'application/json',
46-
'User-Agent': 'recombee-node-api-client/5.1.0'},
46+
'User-Agent': 'recombee-node-api-client/5.1.1'},
4747
timeout: request.timeout,
4848
agent: this.options.agent
4949
};

lib/index.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2197,9 +2197,9 @@ declare module "recombee-api-client" {
21972197
returnProperties?: boolean;
21982198
/** Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. */
21992199
includedProperties?: string[];
2200-
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended items based on the values of their attributes. */
2200+
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes. */
22012201
filter?: string;
2202-
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes. */
2202+
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some users based on the values of their attributes. */
22032203
booster?: string;
22042204
/** Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. */
22052205
logic?: string | object;
@@ -2264,7 +2264,7 @@ declare module "recombee-api-client" {
22642264
export class RecommendUsersToItem extends requests.Request {
22652265
/**
22662266
* @param itemId - ID of the item for which the recommendations are to be generated.
2267-
* @param count - Number of items to be recommended (N for the top-N recommendation).
2267+
* @param count - Number of users to be recommended (N for the top-N recommendation).
22682268
* @param optional - Optional parameters given as an object.
22692269
*/
22702270
constructor(
@@ -2279,13 +2279,13 @@ declare module "recombee-api-client" {
22792279
returnProperties?: boolean;
22802280
/** Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. */
22812281
includedProperties?: string[];
2282-
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended items based on the values of their attributes. */
2282+
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes. */
22832283
filter?: string;
2284-
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes. */
2284+
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some users based on the values of their attributes. */
22852285
booster?: string;
22862286
/** Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. */
22872287
logic?: string | object;
2288-
/** **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended items should be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. */
2288+
/** **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended users should be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. */
22892289
diversity?: number;
22902290
/** Dictionary of custom options. */
22912291
expertSettings?: { [key: string]: unknown };

lib/requests/recommend-users-to-item.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class RecommendUsersToItem extends rqs.Request {
1515
/**
1616
* Construct the request
1717
* @param {string} itemId - ID of the item for which the recommendations are to be generated.
18-
* @param {number} count - Number of items to be recommended (N for the top-N recommendation).
18+
* @param {number} count - Number of users to be recommended (N for the top-N recommendation).
1919
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
2020
* - Allowed parameters:
2121
* - *scenario*
@@ -80,11 +80,11 @@ class RecommendUsersToItem extends rqs.Request {
8080
* ```
8181
* - *filter*
8282
* - Type: string
83-
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended items based on the values of their attributes.
83+
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes.
8484
* Filters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
8585
* - *booster*
8686
* - Type: string
87-
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
87+
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some users based on the values of their attributes.
8888
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
8989
* - *logic*
9090
* - Type: string | object
@@ -94,7 +94,7 @@ class RecommendUsersToItem extends rqs.Request {
9494
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
9595
* - *diversity*
9696
* - Type: number
97-
* - Description: **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended items should be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
97+
* - Description: **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended users should be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
9898
* - *expertSettings*
9999
* - Type: object
100100
* - Description: Dictionary of custom options.

lib/requests/recommend-users-to-user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ class RecommendUsersToUser extends rqs.Request {
8080
* ```
8181
* - *filter*
8282
* - Type: string
83-
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended items based on the values of their attributes.
83+
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes.
8484
* Filters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
8585
* - *booster*
8686
* - Type: string
87-
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
87+
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some users based on the values of their attributes.
8888
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
8989
* - *logic*
9090
* - Type: string | object

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "recombee-api-client",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "Node.js client (SDK) for easy use of the Recombee recommendation API",
55
"main": "index.js",
66
"types": "lib/index.d.ts",
7+
"packageManager": "[email protected]",
78
"scripts": {
89
"test": "mocha test"
910
},
@@ -21,7 +22,7 @@
2122
"SDK"
2223
],
2324
"engines": {
24-
"node": ">=13.2.0"
25+
"node": ">=18"
2526
},
2627
"author": "Ondrej Fiedler <[email protected]> (https://www.recombee.com/)",
2728
"license": "MIT",
@@ -30,12 +31,12 @@
3031
},
3132
"homepage": "https://github.com/Recombee/node-api-client#readme",
3233
"dependencies": {
33-
"jssha": "^2.3.0",
34-
"ky": "^1.7.2"
34+
"jssha": "2.4.2",
35+
"ky": "1.7.5"
3536
},
3637
"devDependencies": {
37-
"chai": "^3.5.0",
38-
"mocha": "~10.2.0",
39-
"typescript": "~5.3.3"
38+
"chai": "3.5.0",
39+
"mocha": "10.2.0",
40+
"typescript": "5.3.3"
4041
}
4142
}

pnpm-lock.yaml

Lines changed: 13 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)