recombee-api-client 4.1.0 → 4.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 +2 -2
- package/lib/index.d.ts +3202 -0
- package/lib/requests/add-bookmark.js +2 -2
- package/lib/requests/add-cart-addition.js +2 -2
- package/lib/requests/add-detail-view.js +2 -2
- package/lib/requests/add-purchase.js +2 -2
- package/lib/requests/add-rating.js +2 -2
- package/lib/requests/delete-more-items.js +1 -1
- package/lib/requests/recommend-item-segments-to-item-segment.js +2 -2
- package/lib/requests/recommend-item-segments-to-item.js +2 -2
- package/lib/requests/recommend-item-segments-to-user.js +2 -2
- package/lib/requests/recommend-items-to-item.js +2 -2
- package/lib/requests/recommend-items-to-user.js +2 -2
- package/lib/requests/recommend-users-to-item.js +2 -2
- package/lib/requests/recommend-users-to-user.js +2 -2
- package/lib/requests/request.js +0 -1
- package/lib/requests/search-item-segments.js +2 -2
- package/lib/requests/search-items.js +2 -2
- package/lib/requests/set-user-values.js +0 -1
- package/lib/requests/set-view-portion.js +2 -2
- package/lib/requests/update-more-items.js +2 -2
- package/package.json +2 -1
- package/doc/AddBookmark.html +0 -506
- package/doc/AddCartAddition.html +0 -512
- package/doc/AddDetailView.html +0 -509
- package/doc/AddGroup.html +0 -447
- package/doc/AddItem.html +0 -448
- package/doc/AddItemProperty.html +0 -478
- package/doc/AddPurchase.html +0 -515
- package/doc/AddRating.html +0 -529
- package/doc/AddSearchSynonym.html +0 -501
- package/doc/AddSeries.html +0 -447
- package/doc/AddUser.html +0 -447
- package/doc/AddUserProperty.html +0 -476
- package/doc/ApiClient.html +0 -433
- package/doc/ApiError.html +0 -170
- package/doc/Batch.html +0 -476
- package/doc/DeleteAllSearchSynonyms.html +0 -398
- package/doc/DeleteBookmark.html +0 -497
- package/doc/DeleteCartAddition.html +0 -497
- package/doc/DeleteDetailView.html +0 -497
- package/doc/DeleteGroup.html +0 -448
- package/doc/DeleteItem.html +0 -449
- package/doc/DeleteItemProperty.html +0 -447
- package/doc/DeleteMoreItems.html +0 -448
- package/doc/DeletePurchase.html +0 -497
- package/doc/DeleteRating.html +0 -497
- package/doc/DeleteSearchSynonym.html +0 -447
- package/doc/DeleteSeries.html +0 -448
- package/doc/DeleteUser.html +0 -448
- package/doc/DeleteUserProperty.html +0 -447
- package/doc/DeleteViewPortion.html +0 -497
- package/doc/GetItemPropertyInfo.html +0 -447
- package/doc/GetItemValues.html +0 -447
- package/doc/GetUserPropertyInfo.html +0 -447
- package/doc/GetUserValues.html +0 -447
- package/doc/InsertToGroup.html +0 -520
- package/doc/InsertToSeries.html +0 -543
- package/doc/ListGroupItems.html +0 -447
- package/doc/ListGroups.html +0 -398
- package/doc/ListItemBookmarks.html +0 -447
- package/doc/ListItemCartAdditions.html +0 -447
- package/doc/ListItemDetailViews.html +0 -447
- package/doc/ListItemProperties.html +0 -398
- package/doc/ListItemPurchases.html +0 -447
- package/doc/ListItemRatings.html +0 -447
- package/doc/ListItemViewPortions.html +0 -447
- package/doc/ListItems.html +0 -497
- package/doc/ListSearchSynonyms.html +0 -454
- package/doc/ListSeries.html +0 -398
- package/doc/ListSeriesItems.html +0 -447
- package/doc/ListUserBookmarks.html +0 -447
- package/doc/ListUserCartAdditions.html +0 -447
- package/doc/ListUserDetailViews.html +0 -447
- package/doc/ListUserProperties.html +0 -398
- package/doc/ListUserPurchases.html +0 -447
- package/doc/ListUserRatings.html +0 -447
- package/doc/ListUserViewPortions.html +0 -447
- package/doc/ListUsers.html +0 -491
- package/doc/MergeUsers.html +0 -498
- package/doc/RecommendItemsToItem.html +0 -635
- package/doc/RecommendItemsToUser.html +0 -598
- package/doc/RecommendNextItems.html +0 -480
- package/doc/RecommendUsersToItem.html +0 -579
- package/doc/RecommendUsersToUser.html +0 -588
- package/doc/RemoveFromGroup.html +0 -493
- package/doc/RemoveFromSeries.html +0 -516
- package/doc/Request.html +0 -292
- package/doc/ResetDatabase.html +0 -398
- package/doc/ResponseError.html +0 -269
- package/doc/SearchItems.html +0 -610
- package/doc/SetItemValues.html +0 -279
- package/doc/SetUserValues.html +0 -277
- package/doc/SetValues.html +0 -480
- package/doc/SetViewPortion.html +0 -533
- package/doc/TimeoutError.html +0 -246
- package/doc/UpdateMoreItems.html +0 -472
- package/doc/api-client.js.html +0 -248
- package/doc/errors_api-error.js.html +0 -71
- package/doc/errors_response-error.js.html +0 -72
- package/doc/errors_timeout-error.js.html +0 -71
- package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Bold-webfont.svg +0 -1830
- package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
- package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.svg +0 -1830
- package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Light-webfont.svg +0 -1831
- package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
- package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.svg +0 -1831
- package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/doc/index.html +0 -65
- package/doc/requests_add-bookmark.js.html +0 -128
- package/doc/requests_add-cart-addition.js.html +0 -142
- package/doc/requests_add-detail-view.js.html +0 -135
- package/doc/requests_add-group.js.html +0 -93
- package/doc/requests_add-item-property.js.html +0 -104
- package/doc/requests_add-item.js.html +0 -94
- package/doc/requests_add-purchase.js.html +0 -149
- package/doc/requests_add-rating.js.html +0 -131
- package/doc/requests_add-search-synonym.js.html +0 -111
- package/doc/requests_add-series.js.html +0 -93
- package/doc/requests_add-user-property.js.html +0 -102
- package/doc/requests_add-user.js.html +0 -93
- package/doc/requests_batch.js.html +0 -121
- package/doc/requests_delete-all-search-synonyms.js.html +0 -91
- package/doc/requests_delete-bookmark.js.html +0 -106
- package/doc/requests_delete-cart-addition.js.html +0 -106
- package/doc/requests_delete-detail-view.js.html +0 -106
- package/doc/requests_delete-group.js.html +0 -94
- package/doc/requests_delete-item-property.js.html +0 -93
- package/doc/requests_delete-item.js.html +0 -95
- package/doc/requests_delete-more-items.js.html +0 -95
- package/doc/requests_delete-purchase.js.html +0 -106
- package/doc/requests_delete-rating.js.html +0 -106
- package/doc/requests_delete-search-synonym.js.html +0 -93
- package/doc/requests_delete-series.js.html +0 -94
- package/doc/requests_delete-user-property.js.html +0 -93
- package/doc/requests_delete-user.js.html +0 -94
- package/doc/requests_delete-view-portion.js.html +0 -106
- package/doc/requests_get-item-property-info.js.html +0 -93
- package/doc/requests_get-item-values.js.html +0 -93
- package/doc/requests_get-user-property-info.js.html +0 -93
- package/doc/requests_get-user-values.js.html +0 -93
- package/doc/requests_insert-to-group.js.html +0 -109
- package/doc/requests_insert-to-series.js.html +0 -112
- package/doc/requests_list-group-items.js.html +0 -93
- package/doc/requests_list-groups.js.html +0 -91
- package/doc/requests_list-item-bookmarks.js.html +0 -93
- package/doc/requests_list-item-cart-additions.js.html +0 -93
- package/doc/requests_list-item-detail-views.js.html +0 -93
- package/doc/requests_list-item-properties.js.html +0 -91
- package/doc/requests_list-item-purchases.js.html +0 -93
- package/doc/requests_list-item-ratings.js.html +0 -93
- package/doc/requests_list-item-view-portions.js.html +0 -93
- package/doc/requests_list-items.js.html +0 -158
- package/doc/requests_list-search-synonyms.js.html +0 -106
- package/doc/requests_list-series-items.js.html +0 -93
- package/doc/requests_list-series.js.html +0 -91
- package/doc/requests_list-user-bookmarks.js.html +0 -93
- package/doc/requests_list-user-cart-additions.js.html +0 -93
- package/doc/requests_list-user-detail-views.js.html +0 -93
- package/doc/requests_list-user-properties.js.html +0 -91
- package/doc/requests_list-user-purchases.js.html +0 -93
- package/doc/requests_list-user-ratings.js.html +0 -93
- package/doc/requests_list-user-view-portions.js.html +0 -93
- package/doc/requests_list-users.js.html +0 -152
- package/doc/requests_merge-users.js.html +0 -105
- package/doc/requests_recommend-items-to-item.js.html +0 -276
- package/doc/requests_recommend-items-to-user.js.html +0 -255
- package/doc/requests_recommend-next-items.js.html +0 -106
- package/doc/requests_recommend-users-to-item.js.html +0 -224
- package/doc/requests_recommend-users-to-user.js.html +0 -245
- package/doc/requests_remove-from-group.js.html +0 -99
- package/doc/requests_remove-from-series.js.html +0 -102
- package/doc/requests_request.js.html +0 -73
- package/doc/requests_reset-database.js.html +0 -91
- package/doc/requests_search-items.js.html +0 -231
- package/doc/requests_set-item-values.js.html +0 -80
- package/doc/requests_set-user-values.js.html +0 -79
- package/doc/requests_set-values.js.html +0 -102
- package/doc/requests_set-view-portion.js.html +0 -139
- package/doc/requests_update-more-items.js.html +0 -104
- package/doc/scripts/linenumber.js +0 -25
- package/doc/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/doc/scripts/prettify/lang-css.js +0 -2
- package/doc/scripts/prettify/prettify.js +0 -28
- package/doc/styles/jsdoc-default.css +0 -358
- package/doc/styles/prettify-jsdoc.css +0 -111
- package/doc/styles/prettify-tomorrow.css +0 -132
|
@@ -17,7 +17,7 @@ class AddBookmark extends rqs.Request {
|
|
|
17
17
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
18
18
|
* - Allowed parameters:
|
|
19
19
|
* - *timestamp*
|
|
20
|
-
* - Type: string|number
|
|
20
|
+
* - Type: string | number
|
|
21
21
|
* - Description: UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
22
22
|
* - *cascadeCreate*
|
|
23
23
|
* - Type: boolean
|
|
@@ -26,7 +26,7 @@ class AddBookmark extends rqs.Request {
|
|
|
26
26
|
* - Type: string
|
|
27
27
|
* - Description: If this bookmark is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
28
28
|
* - *additionalData*
|
|
29
|
-
* - Type:
|
|
29
|
+
* - Type: object
|
|
30
30
|
* - Description: A dictionary of additional data for the interaction.
|
|
31
31
|
*/
|
|
32
32
|
constructor(userId, itemId, optional) {
|
|
@@ -17,7 +17,7 @@ class AddCartAddition extends rqs.Request {
|
|
|
17
17
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
18
18
|
* - Allowed parameters:
|
|
19
19
|
* - *timestamp*
|
|
20
|
-
* - Type: string|number
|
|
20
|
+
* - Type: string | number
|
|
21
21
|
* - Description: UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
22
22
|
* - *cascadeCreate*
|
|
23
23
|
* - Type: boolean
|
|
@@ -32,7 +32,7 @@ class AddCartAddition extends rqs.Request {
|
|
|
32
32
|
* - Type: string
|
|
33
33
|
* - Description: If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
34
34
|
* - *additionalData*
|
|
35
|
-
* - Type:
|
|
35
|
+
* - Type: object
|
|
36
36
|
* - Description: A dictionary of additional data for the interaction.
|
|
37
37
|
*/
|
|
38
38
|
constructor(userId, itemId, optional) {
|
|
@@ -17,7 +17,7 @@ class AddDetailView extends rqs.Request {
|
|
|
17
17
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
18
18
|
* - Allowed parameters:
|
|
19
19
|
* - *timestamp*
|
|
20
|
-
* - Type: string|number
|
|
20
|
+
* - Type: string | number
|
|
21
21
|
* - Description: UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
22
22
|
* - *duration*
|
|
23
23
|
* - Type: number
|
|
@@ -29,7 +29,7 @@ class AddDetailView extends rqs.Request {
|
|
|
29
29
|
* - Type: string
|
|
30
30
|
* - Description: If this detail view is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
31
31
|
* - *additionalData*
|
|
32
|
-
* - Type:
|
|
32
|
+
* - Type: object
|
|
33
33
|
* - Description: A dictionary of additional data for the interaction.
|
|
34
34
|
*/
|
|
35
35
|
constructor(userId, itemId, optional) {
|
|
@@ -17,7 +17,7 @@ class AddPurchase extends rqs.Request {
|
|
|
17
17
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
18
18
|
* - Allowed parameters:
|
|
19
19
|
* - *timestamp*
|
|
20
|
-
* - Type: string|number
|
|
20
|
+
* - Type: string | number
|
|
21
21
|
* - Description: UTC timestamp of the purchase as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
22
22
|
* - *cascadeCreate*
|
|
23
23
|
* - Type: boolean
|
|
@@ -35,7 +35,7 @@ class AddPurchase extends rqs.Request {
|
|
|
35
35
|
* - Type: string
|
|
36
36
|
* - Description: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
37
37
|
* - *additionalData*
|
|
38
|
-
* - Type:
|
|
38
|
+
* - Type: object
|
|
39
39
|
* - Description: A dictionary of additional data for the interaction.
|
|
40
40
|
*/
|
|
41
41
|
constructor(userId, itemId, optional) {
|
|
@@ -18,7 +18,7 @@ class AddRating extends rqs.Request {
|
|
|
18
18
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
19
19
|
* - Allowed parameters:
|
|
20
20
|
* - *timestamp*
|
|
21
|
-
* - Type: string|number
|
|
21
|
+
* - Type: string | number
|
|
22
22
|
* - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
23
23
|
* - *cascadeCreate*
|
|
24
24
|
* - Type: boolean
|
|
@@ -27,7 +27,7 @@ class AddRating extends rqs.Request {
|
|
|
27
27
|
* - Type: string
|
|
28
28
|
* - Description: If this rating is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
29
29
|
* - *additionalData*
|
|
30
|
-
* - Type:
|
|
30
|
+
* - Type: object
|
|
31
31
|
* - Description: A dictionary of additional data for the interaction.
|
|
32
32
|
*/
|
|
33
33
|
constructor(userId, itemId, rating, optional) {
|
|
@@ -16,7 +16,7 @@ class DeleteMoreItems extends rqs.Request {
|
|
|
16
16
|
* @param {string} filter - A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
|
|
17
17
|
*/
|
|
18
18
|
constructor(filter) {
|
|
19
|
-
super('DELETE', '/more-items/',
|
|
19
|
+
super('DELETE', '/more-items/', 100000, false);
|
|
20
20
|
this.filter = filter;
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -51,13 +51,13 @@ class RecommendItemSegmentsToItemSegment extends rqs.Request {
|
|
|
51
51
|
* - Type: string
|
|
52
52
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some segments based on the `segmentationId`.
|
|
53
53
|
* - *logic*
|
|
54
|
-
* - Type: string|
|
|
54
|
+
* - Type: string | object
|
|
55
55
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
56
56
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
57
57
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
58
58
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
59
59
|
* - *expertSettings*
|
|
60
|
-
* - Type:
|
|
60
|
+
* - Type: object
|
|
61
61
|
* - Description: Dictionary of custom options.
|
|
62
62
|
* - *returnAbGroup*
|
|
63
63
|
* - Type: boolean
|
|
@@ -52,13 +52,13 @@ class RecommendItemSegmentsToItem extends rqs.Request {
|
|
|
52
52
|
* - Type: string
|
|
53
53
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some segments based on the `segmentationId`.
|
|
54
54
|
* - *logic*
|
|
55
|
-
* - Type: string|
|
|
55
|
+
* - Type: string | object
|
|
56
56
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
57
57
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
58
58
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
59
59
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
60
60
|
* - *expertSettings*
|
|
61
|
-
* - Type:
|
|
61
|
+
* - Type: object
|
|
62
62
|
* - Description: Dictionary of custom options.
|
|
63
63
|
* - *returnAbGroup*
|
|
64
64
|
* - Type: boolean
|
|
@@ -39,13 +39,13 @@ class RecommendItemSegmentsToUser extends rqs.Request {
|
|
|
39
39
|
* - Type: string
|
|
40
40
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some segments based on the `segmentationId`.
|
|
41
41
|
* - *logic*
|
|
42
|
-
* - Type: string|
|
|
42
|
+
* - Type: string | object
|
|
43
43
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
44
44
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
45
45
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
46
46
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
47
47
|
* - *expertSettings*
|
|
48
|
-
* - Type:
|
|
48
|
+
* - Type: object
|
|
49
49
|
* - Description: Dictionary of custom options.
|
|
50
50
|
* - *returnAbGroup*
|
|
51
51
|
* - Type: boolean
|
|
@@ -109,7 +109,7 @@ class RecommendItemsToItem extends rqs.Request {
|
|
|
109
109
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
|
|
110
110
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
111
111
|
* - *logic*
|
|
112
|
-
* - Type: string|
|
|
112
|
+
* - Type: string | object
|
|
113
113
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
114
114
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
115
115
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
@@ -130,7 +130,7 @@ class RecommendItemsToItem extends rqs.Request {
|
|
|
130
130
|
* - Type: number
|
|
131
131
|
* - Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long it takes for an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized.
|
|
132
132
|
* - *expertSettings*
|
|
133
|
-
* - Type:
|
|
133
|
+
* - Type: object
|
|
134
134
|
* - Description: Dictionary of custom options.
|
|
135
135
|
* - *returnAbGroup*
|
|
136
136
|
* - Type: boolean
|
|
@@ -97,7 +97,7 @@ class RecommendItemsToUser extends rqs.Request {
|
|
|
97
97
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
|
|
98
98
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
99
99
|
* - *logic*
|
|
100
|
-
* - Type: string|
|
|
100
|
+
* - Type: string | object
|
|
101
101
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
102
102
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
103
103
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
@@ -115,7 +115,7 @@ class RecommendItemsToUser extends rqs.Request {
|
|
|
115
115
|
* - Type: number
|
|
116
116
|
* - Description: **Expert option** Taking *rotationRate* into account, specifies how long it takes for an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized. Default: `7200.0`.
|
|
117
117
|
* - *expertSettings*
|
|
118
|
-
* - Type:
|
|
118
|
+
* - Type: object
|
|
119
119
|
* - Description: Dictionary of custom options.
|
|
120
120
|
* - *returnAbGroup*
|
|
121
121
|
* - Type: boolean
|
|
@@ -87,7 +87,7 @@ class RecommendUsersToItem extends rqs.Request {
|
|
|
87
87
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
|
|
88
88
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
89
89
|
* - *logic*
|
|
90
|
-
* - Type: string|
|
|
90
|
+
* - Type: string | object
|
|
91
91
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
92
92
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
93
93
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
@@ -96,7 +96,7 @@ class RecommendUsersToItem extends rqs.Request {
|
|
|
96
96
|
* - Type: number
|
|
97
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.
|
|
98
98
|
* - *expertSettings*
|
|
99
|
-
* - Type:
|
|
99
|
+
* - Type: object
|
|
100
100
|
* - Description: Dictionary of custom options.
|
|
101
101
|
* - *returnAbGroup*
|
|
102
102
|
* - Type: boolean
|
|
@@ -87,7 +87,7 @@ class RecommendUsersToUser extends rqs.Request {
|
|
|
87
87
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
|
|
88
88
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
89
89
|
* - *logic*
|
|
90
|
-
* - Type: string|
|
|
90
|
+
* - Type: string | object
|
|
91
91
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
92
92
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
93
93
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
@@ -105,7 +105,7 @@ class RecommendUsersToUser extends rqs.Request {
|
|
|
105
105
|
* - Type: number
|
|
106
106
|
* - Description: **Expert option** Taking *rotationRate* into account, specifies how long it takes for a user to recover from the penalization. For example, `rotationTime=7200.0` means that users recommended less than 2 hours ago are penalized.
|
|
107
107
|
* - *expertSettings*
|
|
108
|
-
* - Type:
|
|
108
|
+
* - Type: object
|
|
109
109
|
* - Description: Dictionary of custom options.
|
|
110
110
|
* - *returnAbGroup*
|
|
111
111
|
* - Type: boolean
|
package/lib/requests/request.js
CHANGED
|
@@ -39,13 +39,13 @@ class SearchItemSegments extends rqs.Request {
|
|
|
39
39
|
* - Type: string
|
|
40
40
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some segments based on the `segmentationId`.
|
|
41
41
|
* - *logic*
|
|
42
|
-
* - Type: string|
|
|
42
|
+
* - Type: string | object
|
|
43
43
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
44
44
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
45
45
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
46
46
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
47
47
|
* - *expertSettings*
|
|
48
|
-
* - Type:
|
|
48
|
+
* - Type: object
|
|
49
49
|
* - Description: Dictionary of custom options.
|
|
50
50
|
* - *returnAbGroup*
|
|
51
51
|
* - Type: boolean
|
|
@@ -99,13 +99,13 @@ class SearchItems extends rqs.Request {
|
|
|
99
99
|
* - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to boost the recommendation rate of some items based on the values of their attributes.
|
|
100
100
|
* Boosters can also be assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
101
101
|
* - *logic*
|
|
102
|
-
* - Type: string|
|
|
102
|
+
* - Type: string | object
|
|
103
103
|
* - Description: Logic specifies the particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
|
|
104
104
|
* See [this section](https://docs.recombee.com/recommendation_logics.html) for a list of available logics and other details.
|
|
105
105
|
* The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
|
|
106
106
|
* Logic can also be set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
|
|
107
107
|
* - *expertSettings*
|
|
108
|
-
* - Type:
|
|
108
|
+
* - Type: object
|
|
109
109
|
* - Description: Dictionary of custom options.
|
|
110
110
|
* - *returnAbGroup*
|
|
111
111
|
* - Type: boolean
|
|
@@ -5,7 +5,6 @@ const svr = require("./set-values");
|
|
|
5
5
|
* Set/update (some) property values of a given user. The properties (columns) must be previously created by [Add user property](https://docs.recombee.com/api.html#add-user-property).
|
|
6
6
|
*/
|
|
7
7
|
class SetUserValues extends svr.SetValues {
|
|
8
|
-
|
|
9
8
|
/**
|
|
10
9
|
* Construct the request
|
|
11
10
|
* @param {string} userId - ID of the user which will be modified.
|
|
@@ -22,7 +22,7 @@ class SetViewPortion extends rqs.Request {
|
|
|
22
22
|
* - Type: string
|
|
23
23
|
* - Description: ID of the session in which the user viewed the item. Default is `null` (`None`, `nil`, `NULL` etc., depending on the language).
|
|
24
24
|
* - *timestamp*
|
|
25
|
-
* - Type: string|number
|
|
25
|
+
* - Type: string | number
|
|
26
26
|
* - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
|
|
27
27
|
* - *cascadeCreate*
|
|
28
28
|
* - Type: boolean
|
|
@@ -31,7 +31,7 @@ class SetViewPortion extends rqs.Request {
|
|
|
31
31
|
* - Type: string
|
|
32
32
|
* - Description: If this view portion is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
33
33
|
* - *additionalData*
|
|
34
|
-
* - Type:
|
|
34
|
+
* - Type: object
|
|
35
35
|
* - Description: A dictionary of additional data for the interaction.
|
|
36
36
|
*/
|
|
37
37
|
constructor(userId, itemId, portion, optional) {
|
|
@@ -20,10 +20,10 @@ class UpdateMoreItems extends rqs.Request {
|
|
|
20
20
|
/**
|
|
21
21
|
* Construct the request
|
|
22
22
|
* @param {string} filter - A [ReQL](https://docs.recombee.com/reql.html) expression, which returns `true` for the items that shall be updated.
|
|
23
|
-
* @param {} changes - A dictionary where the keys are properties that shall be updated.
|
|
23
|
+
* @param {object} changes - A dictionary where the keys are properties that shall be updated.
|
|
24
24
|
*/
|
|
25
25
|
constructor(filter, changes) {
|
|
26
|
-
super('POST', '/more-items/',
|
|
26
|
+
super('POST', '/more-items/', 100000, false);
|
|
27
27
|
this.filter = filter;
|
|
28
28
|
this.changes = changes;
|
|
29
29
|
}
|
package/package.json
CHANGED