Skip to content

Commit 79466eb

Browse files
committed
Update docs & TS definition
1 parent ba6aaf1 commit 79466eb

12 files changed

+127
-125
lines changed

lib/index.d.ts

Lines changed: 105 additions & 104 deletions
Large diffs are not rendered by default.

lib/requests/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ exports.ListItemViewPortions = require("./list-item-view-portions").ListItemView
5656
exports.ListUserViewPortions = require("./list-user-view-portions").ListUserViewPortions;
5757
exports.RecommendItemsToUser = require("./recommend-items-to-user").RecommendItemsToUser;
5858
exports.RecommendItemsToItem = require("./recommend-items-to-item").RecommendItemsToItem;
59+
exports.RecommendItemsToItemSegment = require("./recommend-items-to-item-segment").RecommendItemsToItemSegment;
5960
exports.RecommendNextItems = require("./recommend-next-items").RecommendNextItems;
6061
exports.RecommendUsersToUser = require("./recommend-users-to-user").RecommendUsersToUser;
6162
exports.RecommendUsersToItem = require("./recommend-users-to-item").RecommendUsersToItem;
6263
exports.RecommendItemSegmentsToUser = require("./recommend-item-segments-to-user").RecommendItemSegmentsToUser;
6364
exports.RecommendItemSegmentsToItem = require("./recommend-item-segments-to-item").RecommendItemSegmentsToItem;
6465
exports.RecommendItemSegmentsToItemSegment = require("./recommend-item-segments-to-item-segment").RecommendItemSegmentsToItemSegment;
65-
exports.RecommendItemsToItemSegment = require("./recommend-items-to-item-segment").RecommendItemsToItemSegment;
6666
exports.SearchItems = require("./search-items").SearchItems;
6767
exports.SearchItemSegments = require("./search-item-segments").SearchItemSegments;
6868
exports.AddSearchSynonym = require("./add-search-synonym").AddSearchSynonym;

lib/requests/list-items.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ListItems extends rqs.Request {
2727
* - Type: boolean
2828
* - Description: With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary.
2929
* Example response:
30-
* ```
30+
* ```json
3131
* [
3232
* {
3333
* "itemId": "tv-178",
@@ -49,7 +49,7 @@ class ListItems extends rqs.Request {
4949
* - Type: string[]
5050
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
5151
* Example response for `includedProperties=description,price`:
52-
* ```
52+
* ```json
5353
* [
5454
* {
5555
* "itemId": "tv-178",

lib/requests/list-users.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ListUsers extends rqs.Request {
2727
* - Type: boolean
2828
* - Description: With `returnProperties=true`, property values of the listed users are returned along with their IDs in a JSON dictionary.
2929
* Example response:
30-
* ```
30+
* ```json
3131
* [
3232
* {
3333
* "userId": "user-81",
@@ -45,7 +45,7 @@ class ListUsers extends rqs.Request {
4545
* - Type: string[]
4646
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
4747
* Example response for `includedProperties=country`:
48-
* ```
48+
* ```json
4949
* [
5050
* {
5151
* "userId": "user-81",

lib/requests/recommend-items-to-item-segment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class RecommendItemsToItemSegment extends rqs.Request {
4848
* - Type: boolean
4949
* - Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used to easily display the recommended items to the user.
5050
* Example response:
51-
* ```
51+
* ```json
5252
* {
5353
* "recommId": "0c6189e7-dc1a-429a-b613-192696309361",
5454
* "recomms":
@@ -79,7 +79,7 @@ class RecommendItemsToItemSegment extends rqs.Request {
7979
* - Type: string[]
8080
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
8181
* Example response for `includedProperties=description,price`:
82-
* ```
82+
* ```json
8383
* {
8484
* "recommId": "6842c725-a79f-4537-a02c-f34d668a3f80",
8585
* "recomms":

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class RecommendItemsToItem extends rqs.Request {
4646
* - Type: boolean
4747
* - Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used to easily display the recommended items to the user.
4848
* Example response:
49-
* ```
49+
* ```json
5050
* {
5151
* "recommId": "0c6189e7-dc1a-429a-b613-192696309361",
5252
* "recomms":
@@ -77,7 +77,7 @@ class RecommendItemsToItem extends rqs.Request {
7777
* - Type: string[]
7878
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
7979
* Example response for `includedProperties=description,price`:
80-
* ```
80+
* ```json
8181
* {
8282
* "recommId": "6842c725-a79f-4537-a02c-f34d668a3f80",
8383
* "recomms":

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RecommendItemsToUser extends rqs.Request {
3434
* - Type: boolean
3535
* - Description: With `returnProperties=true`, property values of the recommended items are returned along with their IDs in a JSON dictionary. The acquired property values can be used to easily display the recommended items to the user.
3636
* Example response:
37-
* ```
37+
* ```json
3838
* {
3939
* "recommId": "ce52ada4-e4d9-4885-943c-407db2dee837",
4040
* "recomms":
@@ -65,7 +65,7 @@ class RecommendItemsToUser extends rqs.Request {
6565
* - Type: string[]
6666
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
6767
* Example response for `includedProperties=description,price`:
68-
* ```
68+
* ```json
6969
* {
7070
* "recommId": "a86ee8d5-cd8e-46d1-886c-8b3771d0520b",
7171
* "recomms":

lib/requests/recommend-next-items.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const rqs = require("./request");
99
* Returns items that shall be shown to a user as next recommendations when the user e.g. scrolls the page down (*infinite scroll*) or goes to the next page.
1010
* It accepts `recommId` of a base recommendation request (e.g., request from the first page) and the number of items that shall be returned (`count`).
1111
* The base request can be one of:
12-
* - [Recommend items to item](https://docs.recombee.com/api.html#recommend-items-to-item)
13-
* - [Recommend items to user](https://docs.recombee.com/api.html#recommend-items-to-user)
14-
* - [Search items](https://docs.recombee.com/api.html#search-items)
12+
* - [Recommend Items to Item](https://docs.recombee.com/api.html#recommend-items-to-item)
13+
* - [Recommend Items to User](https://docs.recombee.com/api.html#recommend-items-to-user)
14+
* - [Recommend Items to Item Segment](https://docs.recombee.com/api.html#recommend-items-to-item-segment)
15+
* - [Search Items](https://docs.recombee.com/api.html#search-items)
1516
* All the other parameters are inherited from the base request.
1617
* *Recommend next items* can be called many times for a single `recommId` and each call returns different (previously not recommended) items.
1718
* The number of *Recommend next items* calls performed so far is returned in the `numberNextRecommsCalls` field.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RecommendUsersToItem extends rqs.Request {
3030
* - Type: boolean
3131
* - Description: With `returnProperties=true`, property values of the recommended users are returned along with their IDs in a JSON dictionary. The acquired property values can be used to easily display the recommended users.
3232
* Example response:
33-
* ```
33+
* ```json
3434
* {
3535
* "recommId": "039b71dc-b9cc-4645-a84f-62b841eecfce",
3636
* "recomms":
@@ -57,7 +57,7 @@ class RecommendUsersToItem extends rqs.Request {
5757
* - Type: string[]
5858
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
5959
* Example response for `includedProperties=country`:
60-
* ```
60+
* ```json
6161
* {
6262
* "recommId": "b2b355dd-972a-4728-9c6b-2dc229db0678",
6363
* "recomms":

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RecommendUsersToUser extends rqs.Request {
3030
* - Type: boolean
3131
* - Description: With `returnProperties=true`, property values of the recommended users are returned along with their IDs in a JSON dictionary. The acquired property values can be used to easily display the recommended users.
3232
* Example response:
33-
* ```
33+
* ```json
3434
* {
3535
* "recommId": "9cb9c55d-50ba-4478-84fd-ab456136156e",
3636
* "recomms":
@@ -57,7 +57,7 @@ class RecommendUsersToUser extends rqs.Request {
5757
* - Type: string[]
5858
* - Description: Allows specifying which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list.
5959
* Example response for `includedProperties=country`:
60-
* ```
60+
* ```json
6161
* {
6262
* "recommId": "b326d82d-5d57-4b45-b362-c9d6f0895855",
6363
* "recomms":

0 commit comments

Comments
 (0)