recombee-api-client 5.1.0 → 5.1.1
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/lib/api-client.js
CHANGED
|
@@ -43,7 +43,7 @@ class ApiClient {
|
|
|
43
43
|
method: request.method,
|
|
44
44
|
headers: {'Accept': 'application/json',
|
|
45
45
|
'Content-Type': 'application/json',
|
|
46
|
-
'User-Agent': 'recombee-node-api-client/5.1.
|
|
46
|
+
'User-Agent': 'recombee-node-api-client/5.1.1'},
|
|
47
47
|
timeout: request.timeout,
|
|
48
48
|
agent: this.options.agent
|
|
49
49
|
};
|
package/lib/index.d.ts
CHANGED
|
@@ -2197,9 +2197,9 @@ declare module "recombee-api-client" {
|
|
|
2197
2197
|
returnProperties?: boolean;
|
|
2198
2198
|
/** Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. */
|
|
2199
2199
|
includedProperties?: string[];
|
|
2200
|
-
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended
|
|
2200
|
+
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes. */
|
|
2201
2201
|
filter?: string;
|
|
2202
|
-
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some
|
|
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. */
|
|
2203
2203
|
booster?: string;
|
|
2204
2204
|
/** Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. */
|
|
2205
2205
|
logic?: string | object;
|
|
@@ -2264,7 +2264,7 @@ declare module "recombee-api-client" {
|
|
|
2264
2264
|
export class RecommendUsersToItem extends requests.Request {
|
|
2265
2265
|
/**
|
|
2266
2266
|
* @param itemId - ID of the item for which the recommendations are to be generated.
|
|
2267
|
-
* @param count - Number of
|
|
2267
|
+
* @param count - Number of users to be recommended (N for the top-N recommendation).
|
|
2268
2268
|
* @param optional - Optional parameters given as an object.
|
|
2269
2269
|
*/
|
|
2270
2270
|
constructor(
|
|
@@ -2279,13 +2279,13 @@ declare module "recombee-api-client" {
|
|
|
2279
2279
|
returnProperties?: boolean;
|
|
2280
2280
|
/** Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. */
|
|
2281
2281
|
includedProperties?: string[];
|
|
2282
|
-
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended
|
|
2282
|
+
/** Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended users based on the values of their attributes. */
|
|
2283
2283
|
filter?: string;
|
|
2284
|
-
/** Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some
|
|
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. */
|
|
2285
2285
|
booster?: string;
|
|
2286
2286
|
/** Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. */
|
|
2287
2287
|
logic?: string | object;
|
|
2288
|
-
/** **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended
|
|
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. */
|
|
2289
2289
|
diversity?: number;
|
|
2290
2290
|
/** Dictionary of custom options. */
|
|
2291
2291
|
expertSettings?: { [key: string]: unknown };
|
|
@@ -15,7 +15,7 @@ class RecommendUsersToItem extends rqs.Request {
|
|
|
15
15
|
/**
|
|
16
16
|
* Construct the request
|
|
17
17
|
* @param {string} itemId - ID of the item for which the recommendations are to be generated.
|
|
18
|
-
* @param {number} count - Number of
|
|
18
|
+
* @param {number} count - Number of users to be recommended (N for the top-N recommendation).
|
|
19
19
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
20
20
|
* - Allowed parameters:
|
|
21
21
|
* - *scenario*
|
|
@@ -80,11 +80,11 @@ class RecommendUsersToItem extends rqs.Request {
|
|
|
80
80
|
* ```
|
|
81
81
|
* - *filter*
|
|
82
82
|
* - Type: string
|
|
83
|
-
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended
|
|
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.
|
|
84
84
|
* Filters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
|
|
85
85
|
* - *booster*
|
|
86
86
|
* - Type: string
|
|
87
|
-
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some
|
|
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.
|
|
88
88
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
|
|
89
89
|
* - *logic*
|
|
90
90
|
* - Type: string | object
|
|
@@ -94,7 +94,7 @@ class RecommendUsersToItem extends rqs.Request {
|
|
|
94
94
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
|
|
95
95
|
* - *diversity*
|
|
96
96
|
* - Type: number
|
|
97
|
-
* - Description: **Expert option:** Real number from [0.0, 1.0], which determines how mutually dissimilar the recommended
|
|
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.
|
|
98
98
|
* - *expertSettings*
|
|
99
99
|
* - Type: object
|
|
100
100
|
* - Description: Dictionary of custom options.
|
|
@@ -80,11 +80,11 @@ class RecommendUsersToUser extends rqs.Request {
|
|
|
80
80
|
* ```
|
|
81
81
|
* - *filter*
|
|
82
82
|
* - Type: string
|
|
83
|
-
* - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to filter recommended
|
|
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.
|
|
84
84
|
* Filters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
|
|
85
85
|
* - *booster*
|
|
86
86
|
* - Type: string
|
|
87
|
-
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql) expression, which allows you to boost the recommendation rate of some
|
|
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.
|
|
88
88
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios) in the [Admin UI](https://admin.recombee.com).
|
|
89
89
|
* - *logic*
|
|
90
90
|
* - Type: string | object
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "recombee-api-client",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.1",
|
|
4
4
|
"description": "Node.js client (SDK) for easy use of the Recombee recommendation API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
|
+
"packageManager": "pnpm@8.12.0",
|
|
7
8
|
"scripts": {
|
|
8
9
|
"test": "mocha test"
|
|
9
10
|
},
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
"SDK"
|
|
22
23
|
],
|
|
23
24
|
"engines": {
|
|
24
|
-
"node": ">=
|
|
25
|
+
"node": ">=18"
|
|
25
26
|
},
|
|
26
27
|
"author": "Ondrej Fiedler <ondrej.fiedler@recombee.com> (https://www.recombee.com/)",
|
|
27
28
|
"license": "MIT",
|
|
@@ -30,12 +31,12 @@
|
|
|
30
31
|
},
|
|
31
32
|
"homepage": "https://github.com/Recombee/node-api-client#readme",
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"jssha": "
|
|
34
|
-
"ky": "
|
|
34
|
+
"jssha": "2.4.2",
|
|
35
|
+
"ky": "1.7.5"
|
|
35
36
|
},
|
|
36
37
|
"devDependencies": {
|
|
37
|
-
"chai": "
|
|
38
|
-
"mocha": "
|
|
39
|
-
"typescript": "
|
|
38
|
+
"chai": "3.5.0",
|
|
39
|
+
"mocha": "10.2.0",
|
|
40
|
+
"typescript": "5.3.3"
|
|
40
41
|
}
|
|
41
42
|
}
|