recombee-api-client 4.1.0 → 4.1.2

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.
Files changed (198) hide show
  1. package/lib/api-client.js +2 -2
  2. package/lib/index.d.ts +3207 -0
  3. package/lib/requests/add-bookmark.js +2 -2
  4. package/lib/requests/add-cart-addition.js +2 -2
  5. package/lib/requests/add-detail-view.js +2 -2
  6. package/lib/requests/add-purchase.js +2 -2
  7. package/lib/requests/add-rating.js +2 -2
  8. package/lib/requests/delete-more-items.js +1 -1
  9. package/lib/requests/recommend-item-segments-to-item-segment.js +2 -2
  10. package/lib/requests/recommend-item-segments-to-item.js +2 -2
  11. package/lib/requests/recommend-item-segments-to-user.js +2 -2
  12. package/lib/requests/recommend-items-to-item.js +2 -2
  13. package/lib/requests/recommend-items-to-user.js +2 -2
  14. package/lib/requests/recommend-users-to-item.js +2 -2
  15. package/lib/requests/recommend-users-to-user.js +2 -2
  16. package/lib/requests/request.js +0 -1
  17. package/lib/requests/search-item-segments.js +2 -2
  18. package/lib/requests/search-items.js +2 -2
  19. package/lib/requests/set-user-values.js +0 -1
  20. package/lib/requests/set-view-portion.js +2 -2
  21. package/lib/requests/update-more-items.js +2 -2
  22. package/package.json +2 -1
  23. package/doc/AddBookmark.html +0 -506
  24. package/doc/AddCartAddition.html +0 -512
  25. package/doc/AddDetailView.html +0 -509
  26. package/doc/AddGroup.html +0 -447
  27. package/doc/AddItem.html +0 -448
  28. package/doc/AddItemProperty.html +0 -478
  29. package/doc/AddPurchase.html +0 -515
  30. package/doc/AddRating.html +0 -529
  31. package/doc/AddSearchSynonym.html +0 -501
  32. package/doc/AddSeries.html +0 -447
  33. package/doc/AddUser.html +0 -447
  34. package/doc/AddUserProperty.html +0 -476
  35. package/doc/ApiClient.html +0 -433
  36. package/doc/ApiError.html +0 -170
  37. package/doc/Batch.html +0 -476
  38. package/doc/DeleteAllSearchSynonyms.html +0 -398
  39. package/doc/DeleteBookmark.html +0 -497
  40. package/doc/DeleteCartAddition.html +0 -497
  41. package/doc/DeleteDetailView.html +0 -497
  42. package/doc/DeleteGroup.html +0 -448
  43. package/doc/DeleteItem.html +0 -449
  44. package/doc/DeleteItemProperty.html +0 -447
  45. package/doc/DeleteMoreItems.html +0 -448
  46. package/doc/DeletePurchase.html +0 -497
  47. package/doc/DeleteRating.html +0 -497
  48. package/doc/DeleteSearchSynonym.html +0 -447
  49. package/doc/DeleteSeries.html +0 -448
  50. package/doc/DeleteUser.html +0 -448
  51. package/doc/DeleteUserProperty.html +0 -447
  52. package/doc/DeleteViewPortion.html +0 -497
  53. package/doc/GetItemPropertyInfo.html +0 -447
  54. package/doc/GetItemValues.html +0 -447
  55. package/doc/GetUserPropertyInfo.html +0 -447
  56. package/doc/GetUserValues.html +0 -447
  57. package/doc/InsertToGroup.html +0 -520
  58. package/doc/InsertToSeries.html +0 -543
  59. package/doc/ListGroupItems.html +0 -447
  60. package/doc/ListGroups.html +0 -398
  61. package/doc/ListItemBookmarks.html +0 -447
  62. package/doc/ListItemCartAdditions.html +0 -447
  63. package/doc/ListItemDetailViews.html +0 -447
  64. package/doc/ListItemProperties.html +0 -398
  65. package/doc/ListItemPurchases.html +0 -447
  66. package/doc/ListItemRatings.html +0 -447
  67. package/doc/ListItemViewPortions.html +0 -447
  68. package/doc/ListItems.html +0 -497
  69. package/doc/ListSearchSynonyms.html +0 -454
  70. package/doc/ListSeries.html +0 -398
  71. package/doc/ListSeriesItems.html +0 -447
  72. package/doc/ListUserBookmarks.html +0 -447
  73. package/doc/ListUserCartAdditions.html +0 -447
  74. package/doc/ListUserDetailViews.html +0 -447
  75. package/doc/ListUserProperties.html +0 -398
  76. package/doc/ListUserPurchases.html +0 -447
  77. package/doc/ListUserRatings.html +0 -447
  78. package/doc/ListUserViewPortions.html +0 -447
  79. package/doc/ListUsers.html +0 -491
  80. package/doc/MergeUsers.html +0 -498
  81. package/doc/RecommendItemsToItem.html +0 -635
  82. package/doc/RecommendItemsToUser.html +0 -598
  83. package/doc/RecommendNextItems.html +0 -480
  84. package/doc/RecommendUsersToItem.html +0 -579
  85. package/doc/RecommendUsersToUser.html +0 -588
  86. package/doc/RemoveFromGroup.html +0 -493
  87. package/doc/RemoveFromSeries.html +0 -516
  88. package/doc/Request.html +0 -292
  89. package/doc/ResetDatabase.html +0 -398
  90. package/doc/ResponseError.html +0 -269
  91. package/doc/SearchItems.html +0 -610
  92. package/doc/SetItemValues.html +0 -279
  93. package/doc/SetUserValues.html +0 -277
  94. package/doc/SetValues.html +0 -480
  95. package/doc/SetViewPortion.html +0 -533
  96. package/doc/TimeoutError.html +0 -246
  97. package/doc/UpdateMoreItems.html +0 -472
  98. package/doc/api-client.js.html +0 -248
  99. package/doc/errors_api-error.js.html +0 -71
  100. package/doc/errors_response-error.js.html +0 -72
  101. package/doc/errors_timeout-error.js.html +0 -71
  102. package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
  103. package/doc/fonts/OpenSans-Bold-webfont.svg +0 -1830
  104. package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
  105. package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  106. package/doc/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  107. package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  108. package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
  109. package/doc/fonts/OpenSans-Italic-webfont.svg +0 -1830
  110. package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
  111. package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
  112. package/doc/fonts/OpenSans-Light-webfont.svg +0 -1831
  113. package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
  114. package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  115. package/doc/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  116. package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  117. package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
  118. package/doc/fonts/OpenSans-Regular-webfont.svg +0 -1831
  119. package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
  120. package/doc/index.html +0 -65
  121. package/doc/requests_add-bookmark.js.html +0 -128
  122. package/doc/requests_add-cart-addition.js.html +0 -142
  123. package/doc/requests_add-detail-view.js.html +0 -135
  124. package/doc/requests_add-group.js.html +0 -93
  125. package/doc/requests_add-item-property.js.html +0 -104
  126. package/doc/requests_add-item.js.html +0 -94
  127. package/doc/requests_add-purchase.js.html +0 -149
  128. package/doc/requests_add-rating.js.html +0 -131
  129. package/doc/requests_add-search-synonym.js.html +0 -111
  130. package/doc/requests_add-series.js.html +0 -93
  131. package/doc/requests_add-user-property.js.html +0 -102
  132. package/doc/requests_add-user.js.html +0 -93
  133. package/doc/requests_batch.js.html +0 -121
  134. package/doc/requests_delete-all-search-synonyms.js.html +0 -91
  135. package/doc/requests_delete-bookmark.js.html +0 -106
  136. package/doc/requests_delete-cart-addition.js.html +0 -106
  137. package/doc/requests_delete-detail-view.js.html +0 -106
  138. package/doc/requests_delete-group.js.html +0 -94
  139. package/doc/requests_delete-item-property.js.html +0 -93
  140. package/doc/requests_delete-item.js.html +0 -95
  141. package/doc/requests_delete-more-items.js.html +0 -95
  142. package/doc/requests_delete-purchase.js.html +0 -106
  143. package/doc/requests_delete-rating.js.html +0 -106
  144. package/doc/requests_delete-search-synonym.js.html +0 -93
  145. package/doc/requests_delete-series.js.html +0 -94
  146. package/doc/requests_delete-user-property.js.html +0 -93
  147. package/doc/requests_delete-user.js.html +0 -94
  148. package/doc/requests_delete-view-portion.js.html +0 -106
  149. package/doc/requests_get-item-property-info.js.html +0 -93
  150. package/doc/requests_get-item-values.js.html +0 -93
  151. package/doc/requests_get-user-property-info.js.html +0 -93
  152. package/doc/requests_get-user-values.js.html +0 -93
  153. package/doc/requests_insert-to-group.js.html +0 -109
  154. package/doc/requests_insert-to-series.js.html +0 -112
  155. package/doc/requests_list-group-items.js.html +0 -93
  156. package/doc/requests_list-groups.js.html +0 -91
  157. package/doc/requests_list-item-bookmarks.js.html +0 -93
  158. package/doc/requests_list-item-cart-additions.js.html +0 -93
  159. package/doc/requests_list-item-detail-views.js.html +0 -93
  160. package/doc/requests_list-item-properties.js.html +0 -91
  161. package/doc/requests_list-item-purchases.js.html +0 -93
  162. package/doc/requests_list-item-ratings.js.html +0 -93
  163. package/doc/requests_list-item-view-portions.js.html +0 -93
  164. package/doc/requests_list-items.js.html +0 -158
  165. package/doc/requests_list-search-synonyms.js.html +0 -106
  166. package/doc/requests_list-series-items.js.html +0 -93
  167. package/doc/requests_list-series.js.html +0 -91
  168. package/doc/requests_list-user-bookmarks.js.html +0 -93
  169. package/doc/requests_list-user-cart-additions.js.html +0 -93
  170. package/doc/requests_list-user-detail-views.js.html +0 -93
  171. package/doc/requests_list-user-properties.js.html +0 -91
  172. package/doc/requests_list-user-purchases.js.html +0 -93
  173. package/doc/requests_list-user-ratings.js.html +0 -93
  174. package/doc/requests_list-user-view-portions.js.html +0 -93
  175. package/doc/requests_list-users.js.html +0 -152
  176. package/doc/requests_merge-users.js.html +0 -105
  177. package/doc/requests_recommend-items-to-item.js.html +0 -276
  178. package/doc/requests_recommend-items-to-user.js.html +0 -255
  179. package/doc/requests_recommend-next-items.js.html +0 -106
  180. package/doc/requests_recommend-users-to-item.js.html +0 -224
  181. package/doc/requests_recommend-users-to-user.js.html +0 -245
  182. package/doc/requests_remove-from-group.js.html +0 -99
  183. package/doc/requests_remove-from-series.js.html +0 -102
  184. package/doc/requests_request.js.html +0 -73
  185. package/doc/requests_reset-database.js.html +0 -91
  186. package/doc/requests_search-items.js.html +0 -231
  187. package/doc/requests_set-item-values.js.html +0 -80
  188. package/doc/requests_set-user-values.js.html +0 -79
  189. package/doc/requests_set-values.js.html +0 -102
  190. package/doc/requests_set-view-portion.js.html +0 -139
  191. package/doc/requests_update-more-items.js.html +0 -104
  192. package/doc/scripts/linenumber.js +0 -25
  193. package/doc/scripts/prettify/Apache-License-2.0.txt +0 -202
  194. package/doc/scripts/prettify/lang-css.js +0 -2
  195. package/doc/scripts/prettify/prettify.js +0 -28
  196. package/doc/styles/jsdoc-default.css +0 -358
  197. package/doc/styles/prettify-jsdoc.css +0 -111
  198. 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/', 1000, false);
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
@@ -4,7 +4,6 @@
4
4
  * Base class for all the requests
5
5
  */
6
6
  class Request {
7
-
8
7
  /**
9
8
  * Construct the basis of request
10
9
  * @param {string} method - GET/PUT/POST/DELETE
@@ -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/', 1000, false);
26
+ super('POST', '/more-items/', 100000, false);
27
27
  this.filter = filter;
28
28
  this.changes = changes;
29
29
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "recombee-api-client",
3
- "version": "4.1.0",
3
+ "version": "4.1.2",
4
4
  "description": "Node.js client (SDK) for easy use of the Recombee recommendation API",
5
5
  "main": "index.js",
6
+ "types": "lib/index.d.ts",
6
7
  "scripts": {
7
8
  "test": "mocha test"
8
9
  },