diff --git a/.npmignore b/.npmignore deleted file mode 100644 index cc786a9..0000000 --- a/.npmignore +++ /dev/null @@ -1 +0,0 @@ -doc/ \ No newline at end of file diff --git a/doc/AddBookmark.html b/doc/AddBookmark.html deleted file mode 100644 index 2650a6a..0000000 --- a/doc/AddBookmark.html +++ /dev/null @@ -1,506 +0,0 @@ - - - - - JSDoc: Class: AddBookmark - - - - - - - - - - -
- -

Class: AddBookmark

- - - - - - -
- -
- -

AddBookmark(userId, itemId, optional)

- -
Adds a bookmark of a given item made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddBookmark(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who bookmarked the item
itemId - - -string - - - - Bookmarked item
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *recommId* - - Type: string - - Description: If this bookmark is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddCartAddition.html b/doc/AddCartAddition.html deleted file mode 100644 index b65257d..0000000 --- a/doc/AddCartAddition.html +++ /dev/null @@ -1,512 +0,0 @@ - - - - - JSDoc: Class: AddCartAddition - - - - - - - - - - -
- -

Class: AddCartAddition

- - - - - - -
- -
- -

AddCartAddition(userId, itemId, optional)

- -
Adds a cart addition of a given item made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddCartAddition(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who added the item to the cart
itemId - - -string - - - - Item added to the cart
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *amount* - - Type: number - - Description: Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2. - - *price* - - Type: number - - Description: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given. - - *recommId* - - Type: string - - Description: If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddDetailView.html b/doc/AddDetailView.html deleted file mode 100644 index e9ccce6..0000000 --- a/doc/AddDetailView.html +++ /dev/null @@ -1,509 +0,0 @@ - - - - - JSDoc: Class: AddDetailView - - - - - - - - - - -
- -

Class: AddDetailView

- - - - - - -
- -
- -

AddDetailView(userId, itemId, optional)

- -
Adds a detail view of a given item made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddDetailView(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who viewed the item
itemId - - -string - - - - Viewed item
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *duration* - - Type: number - - Description: Duration of the view - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *recommId* - - Type: string - - Description: If this detail view is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddGroup.html b/doc/AddGroup.html deleted file mode 100644 index 1b56ec4..0000000 --- a/doc/AddGroup.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: AddGroup - - - - - - - - - - -
- -

Class: AddGroup

- - - - - - -
- -
- -

AddGroup(groupId)

- -
Creates new group in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddGroup(groupId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupId - - -string - - - - ID of the group to be created.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddItem.html b/doc/AddItem.html deleted file mode 100644 index d178e9a..0000000 --- a/doc/AddItem.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - JSDoc: Class: AddItem - - - - - - - - - - -
- -

Class: AddItem

- - - - - - -
- -
- -

AddItem(itemId)

- -
Adds new item of given `itemId` to the items catalog. -All the item properties for the newly created items are set null.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddItem(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item to be created.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddItemProperty.html b/doc/AddItemProperty.html deleted file mode 100644 index 9f0a5b8..0000000 --- a/doc/AddItemProperty.html +++ /dev/null @@ -1,478 +0,0 @@ - - - - - JSDoc: Class: AddItemProperty - - - - - - - - - - -
- -

Class: AddItemProperty

- - - - - - -
- -
- -

AddItemProperty(propertyName, type)

- -
Adding an item property is somehow equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddItemProperty(propertyName, type)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
type - - -string - - - - Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`. -* `int`- Signed integer number. -* `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard). -* `string` - UTF-8 string. -* `boolean` - *true* / *false* -* `timestamp` - Value representing date and time. -* `set` - Set of strings. -* `image` - URL of an image (`jpeg`, `png` or `gif`). -* `imageList` - List of URLs that refer to images.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddPurchase.html b/doc/AddPurchase.html deleted file mode 100644 index ecf78ac..0000000 --- a/doc/AddPurchase.html +++ /dev/null @@ -1,515 +0,0 @@ - - - - - JSDoc: Class: AddPurchase - - - - - - - - - - -
- -

Class: AddPurchase

- - - - - - -
- -
- -

AddPurchase(userId, itemId, optional)

- -
Adds a purchase of a given item made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddPurchase(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who purchased the item
itemId - - -string - - - - Purchased item
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the purchase as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *amount* - - Type: number - - Description: Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2. - - *price* - - Type: number - - Description: Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given. - - *profit* - - Type: number - - Description: Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given. - - *recommId* - - Type: string - - Description: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddRating.html b/doc/AddRating.html deleted file mode 100644 index c0c50ad..0000000 --- a/doc/AddRating.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - JSDoc: Class: AddRating - - - - - - - - - - -
- -

Class: AddRating

- - - - - - -
- -
- -

AddRating(userId, itemId, rating, optional)

- -
Adds a rating of given item made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddRating(userId, itemId, rating, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who submitted the rating
itemId - - -string - - - - Rated item
rating - - -number - - - - Rating rescaled to interval [-1.0,1.0], where -1.0 means the worst rating possible, 0.0 means neutral, and 1.0 means absolutely positive rating. For example, in the case of 5-star evaluations, rating = (numStars-3)/2 formula may be used for the conversion.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *recommId* - - Type: string - - Description: If this rating is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddSearchSynonym.html b/doc/AddSearchSynonym.html deleted file mode 100644 index 5e10c23..0000000 --- a/doc/AddSearchSynonym.html +++ /dev/null @@ -1,501 +0,0 @@ - - - - - JSDoc: Class: AddSearchSynonym - - - - - - - - - - -
- -

Class: AddSearchSynonym

- - - - - - -
- -
- -

AddSearchSynonym(term, synonym, optional)

- -
Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items). -When the `term` is used in the search query, the `synonym` is also used for the full-text search. -Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`). -An example of a synonym can be `science fiction` for the term `sci-fi`.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddSearchSynonym(term, synonym, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
term - - -string - - - - A word to which the `synonym` is specified.
synonym - - -string - - - - A word that should be considered equal to the `term` by the full-text search engine.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *oneWay* - - Type: boolean - - Description: If set to `true`, only `term` -> `synonym` is considered. If set to `false`, also `synonym` -> `term` works. -Default: `false`.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddSeries.html b/doc/AddSeries.html deleted file mode 100644 index eb654c9..0000000 --- a/doc/AddSeries.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: AddSeries - - - - - - - - - - -
- -

Class: AddSeries

- - - - - - -
- -
- -

AddSeries(seriesId)

- -
Creates new series in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddSeries(seriesId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
seriesId - - -string - - - - ID of the series to be created.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddUser.html b/doc/AddUser.html deleted file mode 100644 index 5caf6fd..0000000 --- a/doc/AddUser.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: AddUser - - - - - - - - - - -
- -

Class: AddUser

- - - - - - -
- -
- -

AddUser(userId)

- -
Adds a new user to the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddUser(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user to be added.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/AddUserProperty.html b/doc/AddUserProperty.html deleted file mode 100644 index 95664f8..0000000 --- a/doc/AddUserProperty.html +++ /dev/null @@ -1,476 +0,0 @@ - - - - - JSDoc: Class: AddUserProperty - - - - - - - - - - -
- -

Class: AddUserProperty

- - - - - - -
- -
- -

AddUserProperty(propertyName, type)

- -
Adding an user property is somehow equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
- - -
- -
-
- - - - -

Constructor

- - - -

new AddUserProperty(propertyName, type)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
type - - -string - - - - Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`. -* `int` - Signed integer number. -* `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard). -* `string` - UTF-8 string. -* `boolean` - *true* / *false* -* `timestamp` - Value representing date and time. -* `set` - Set of strings.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ApiClient.html b/doc/ApiClient.html deleted file mode 100644 index bf663c4..0000000 --- a/doc/ApiClient.html +++ /dev/null @@ -1,456 +0,0 @@ - - - - - JSDoc: Class: ApiClient - - - - - - - - - - -
- -

Class: ApiClient

- - - - - - -
- -
- -

ApiClient(databaseId, secretToken, alwaysUseHttps, options)

- -
Client for sending requests to Recombee and getting replies
- - -
- -
-
- - - - -

Constructor

- - - -

new ApiClient(databaseId, secretToken, alwaysUseHttps, options)

- - - - - - -
- Construct the client -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
databaseId - - -string - - - - ID of your database
secretToken - - -string - - - - Corresponding secret token
alwaysUseHttps - - -boolean - - - - If true, all requests are sent using HTTPS (default: true)
options - - -Object - - - - Other custom options
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

send(request, callback)

- - - - - - -
- Send the request to Recombee -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
request - - -Request - - - - Request to be sent
callback - - -Object - - - - Optional callback (send returns Promise if omitted)
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ApiError.html b/doc/ApiError.html deleted file mode 100644 index d77f9fc..0000000 --- a/doc/ApiError.html +++ /dev/null @@ -1,170 +0,0 @@ - - - - - JSDoc: Class: ApiError - - - - - - - - - - -
- -

Class: ApiError

- - - - - - -
- -
- -

ApiError()

- -
Base class for errors that occur because of errors in requests reported by API or because of a timeout
- - -
- -
-
- - - - -

Constructor

- - - -

new ApiError()

- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/Batch.html b/doc/Batch.html deleted file mode 100644 index d2c2709..0000000 --- a/doc/Batch.html +++ /dev/null @@ -1,476 +0,0 @@ - - - - - JSDoc: Class: Batch - - - - - - - - - - -
- -

Class: Batch

- - - - - - -
- -
- -

Batch(requests, optional)

- -
In many cases, it may be desirable to execute multiple requests at once. For example, when synchronizing the catalog of items in a periodical manner, you would have to execute a sequence of thousands of separate POST requests, which is very ineffective and may take a very long time to complete. Most notably, network latencies can make execution of such sequence very slow and even if executed in multiple parallel threads, there will still be unreasonable overhead caused by the HTTP(s). To avoid the mentioned problems, batch processing may be used, encapsulating a sequence of requests into a single HTTPS request. -Batch processing allows you to submit arbitrary sequence of requests and the batch may combine different types of requests arbitrarily as well. -Note that the status code of the batch request itself is 200 even if the individual requests result in error – you have to inspect the code values in the resulting array.
- - -
- -
-
- - - - -

Constructor

- - - -

new Batch(requests, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
requests - - -Array.<Request> - - - - Array containing the requests.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *distinctRecomms* - - Type: boolean - - Description: Makes all the recommended items for a certain user distinct among multiple recommendation requests in the batch.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteAllSearchSynonyms.html b/doc/DeleteAllSearchSynonyms.html deleted file mode 100644 index d4cedd9..0000000 --- a/doc/DeleteAllSearchSynonyms.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: DeleteAllSearchSynonyms - - - - - - - - - - -
- -

Class: DeleteAllSearchSynonyms

- - - - - - -
- -
- -

DeleteAllSearchSynonyms()

- -
Deletes all synonyms defined in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteAllSearchSynonyms()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteBookmark.html b/doc/DeleteBookmark.html deleted file mode 100644 index 8286596..0000000 --- a/doc/DeleteBookmark.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeleteBookmark - - - - - - - - - - -
- -

Class: DeleteBookmark

- - - - - - -
- -
- -

DeleteBookmark(userId, itemId, optional)

- -
Deletes a bookmark uniquely specified by `userId`, `itemId`, and `timestamp` or all the bookmarks with given `userId` and `itemId` if `timestamp` is omitted.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteBookmark(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who made the bookmark.
itemId - - -string - - - - ID of the item of which was bookmarked.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: number - - Description: Unix timestamp of the bookmark. If the `timestamp` is omitted, then all the bookmarks with given `userId` and `itemId` are deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteCartAddition.html b/doc/DeleteCartAddition.html deleted file mode 100644 index 87df7e5..0000000 --- a/doc/DeleteCartAddition.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeleteCartAddition - - - - - - - - - - -
- -

Class: DeleteCartAddition

- - - - - - -
- -
- -

DeleteCartAddition(userId, itemId, optional)

- -
Deletes an existing cart addition uniquely specified by `userId`, `itemId`, and `timestamp` or all the cart additions with given `userId` and `itemId` if `timestamp` is omitted.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteCartAddition(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who made the cart addition.
itemId - - -string - - - - ID of the item of which was added to cart.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: number - - Description: Unix timestamp of the cart addition. If the `timestamp` is omitted, then all the cart additions with given `userId` and `itemId` are deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteDetailView.html b/doc/DeleteDetailView.html deleted file mode 100644 index f807508..0000000 --- a/doc/DeleteDetailView.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeleteDetailView - - - - - - - - - - -
- -

Class: DeleteDetailView

- - - - - - -
- -
- -

DeleteDetailView(userId, itemId, optional)

- -
Deletes an existing detail view uniquely specified by (`userId`, `itemId`, and `timestamp`) or all the detail views with given `userId` and `itemId` if `timestamp` is omitted.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteDetailView(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who made the detail view.
itemId - - -string - - - - ID of the item of which the details were viewed.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: number - - Description: Unix timestamp of the detail view. If the `timestamp` is omitted, then all the detail views with given `userId` and `itemId` are deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteGroup.html b/doc/DeleteGroup.html deleted file mode 100644 index e41d643..0000000 --- a/doc/DeleteGroup.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - JSDoc: Class: DeleteGroup - - - - - - - - - - -
- -

Class: DeleteGroup

- - - - - - -
- -
- -

DeleteGroup(groupId)

- -
Deletes the group of given `groupId` from the database. -Deleting a group will only delete assignment of items to it, not the items themselves!
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteGroup(groupId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupId - - -string - - - - ID of the group to be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteItem.html b/doc/DeleteItem.html deleted file mode 100644 index e7fe8be..0000000 --- a/doc/DeleteItem.html +++ /dev/null @@ -1,449 +0,0 @@ - - - - - JSDoc: Class: DeleteItem - - - - - - - - - - -
- -

Class: DeleteItem

- - - - - - -
- -
- -

DeleteItem(itemId)

- -
Deletes an item of given `itemId` from the catalog. -If there are any *purchases*, *ratings*, *bookmarks*, *cart additions* or *detail views* of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some *series*, it will be removed from all the *series* where present. -If an item becomes obsolete/no longer available, it is often meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and only exclude the item from recommendations. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteItem(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item to be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteItemProperty.html b/doc/DeleteItemProperty.html deleted file mode 100644 index 57538d1..0000000 --- a/doc/DeleteItemProperty.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: DeleteItemProperty - - - - - - - - - - -
- -

Class: DeleteItemProperty

- - - - - - -
- -
- -

DeleteItemProperty(propertyName)

- -
Deleting an item property is roughly equivalent to removing a column from the table of items.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteItemProperty(propertyName)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the property to be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeletePurchase.html b/doc/DeletePurchase.html deleted file mode 100644 index 3811b2c..0000000 --- a/doc/DeletePurchase.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeletePurchase - - - - - - - - - - -
- -

Class: DeletePurchase

- - - - - - -
- -
- -

DeletePurchase(userId, itemId, optional)

- -
Deletes an existing purchase uniquely specified by `userId`, `itemId`, and `timestamp` or all the purchases with given `userId` and `itemId` if `timestamp` is omitted.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeletePurchase(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who made the purchase.
itemId - - -string - - - - ID of the item of which was purchased.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: number - - Description: Unix timestamp of the purchase. If the `timestamp` is omitted, then all the purchases with given `userId` and `itemId` are deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteRating.html b/doc/DeleteRating.html deleted file mode 100644 index 979d147..0000000 --- a/doc/DeleteRating.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeleteRating - - - - - - - - - - -
- -

Class: DeleteRating

- - - - - - -
- -
- -

DeleteRating(userId, itemId, optional)

- -
Deletes an existing rating specified by (`userId`, `itemId`, `timestamp`) from the database or all the ratings with given `userId` and `itemId` if `timestamp` is omitted.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteRating(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who rated the item.
itemId - - -string - - - - ID of the item which was rated.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *timestamp* - - Type: number - - Description: Unix timestamp of the rating. If the `timestamp` is omitted, then all the ratings with given `userId` and `itemId` are deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteSearchSynonym.html b/doc/DeleteSearchSynonym.html deleted file mode 100644 index f0d40bf..0000000 --- a/doc/DeleteSearchSynonym.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: DeleteSearchSynonym - - - - - - - - - - -
- -

Class: DeleteSearchSynonym

- - - - - - -
- -
- -

DeleteSearchSynonym(id)

- -
Deletes synonym of given `id` and this synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api.html#search-items).
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteSearchSynonym(id)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
id - - -string - - - - ID of the synonym that should be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteSeries.html b/doc/DeleteSeries.html deleted file mode 100644 index 10bd377..0000000 --- a/doc/DeleteSeries.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - JSDoc: Class: DeleteSeries - - - - - - - - - - -
- -

Class: DeleteSeries

- - - - - - -
- -
- -

DeleteSeries(seriesId)

- -
Deletes the series of given `seriesId` from the database. -Deleting a series will only delete assignment of items to it, not the items themselves!
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteSeries(seriesId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
seriesId - - -string - - - - ID of the series to be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteUser.html b/doc/DeleteUser.html deleted file mode 100644 index 86cd96e..0000000 --- a/doc/DeleteUser.html +++ /dev/null @@ -1,448 +0,0 @@ - - - - - JSDoc: Class: DeleteUser - - - - - - - - - - -
- -

Class: DeleteUser

- - - - - - -
- -
- -

DeleteUser(userId)

- -
Deletes a user of given *userId* from the database. -If there are any purchases, ratings, bookmarks, cart additions or detail views made by the user present in the database, they will be deleted in cascade as well.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteUser(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user to be added.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteUserProperty.html b/doc/DeleteUserProperty.html deleted file mode 100644 index 7b1ff63..0000000 --- a/doc/DeleteUserProperty.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: DeleteUserProperty - - - - - - - - - - -
- -

Class: DeleteUserProperty

- - - - - - -
- -
- -

DeleteUserProperty(propertyName)

- -
Deleting an user property is roughly equivalent to removing a column from the table of users.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteUserProperty(propertyName)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the property to be deleted.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/DeleteViewPortion.html b/doc/DeleteViewPortion.html deleted file mode 100644 index e4fe399..0000000 --- a/doc/DeleteViewPortion.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: DeleteViewPortion - - - - - - - - - - -
- -

Class: DeleteViewPortion

- - - - - - -
- -
- -

DeleteViewPortion(userId, itemId, optional)

- -
Deletes an existing view portion specified by (`userId`, `itemId`, `sessionId`) from the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new DeleteViewPortion(userId, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user who rated the item.
itemId - - -string - - - - ID of the item which was rated.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *sessionId* - - Type: string - - Description: Identifier of a session.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/GetItemPropertyInfo.html b/doc/GetItemPropertyInfo.html deleted file mode 100644 index 838046d..0000000 --- a/doc/GetItemPropertyInfo.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: GetItemPropertyInfo - - - - - - - - - - -
- -

Class: GetItemPropertyInfo

- - - - - - -
- -
- -

GetItemPropertyInfo(propertyName)

- -
Gets information about specified item property.
- - -
- -
-
- - - - -

Constructor

- - - -

new GetItemPropertyInfo(propertyName)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the property about which the information is to be retrieved.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/GetItemValues.html b/doc/GetItemValues.html deleted file mode 100644 index c7ab181..0000000 --- a/doc/GetItemValues.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: GetItemValues - - - - - - - - - - -
- -

Class: GetItemValues

- - - - - - -
- -
- -

GetItemValues(itemId)

- -
Get all the current property values of a given item.
- - -
- -
-
- - - - -

Constructor

- - - -

new GetItemValues(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item properties of which are to be obtained.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/GetUserPropertyInfo.html b/doc/GetUserPropertyInfo.html deleted file mode 100644 index 98a977d..0000000 --- a/doc/GetUserPropertyInfo.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: GetUserPropertyInfo - - - - - - - - - - -
- -

Class: GetUserPropertyInfo

- - - - - - -
- -
- -

GetUserPropertyInfo(propertyName)

- -
Gets information about specified user property.
- - -
- -
-
- - - - -

Constructor

- - - -

new GetUserPropertyInfo(propertyName)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
propertyName - - -string - - - - Name of the property about which the information is to be retrieved.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/GetUserValues.html b/doc/GetUserValues.html deleted file mode 100644 index 0093eb0..0000000 --- a/doc/GetUserValues.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: GetUserValues - - - - - - - - - - -
- -

Class: GetUserValues

- - - - - - -
- -
- -

GetUserValues(userId)

- -
Get all the current property values of a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new GetUserValues(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user properties of which are to be obtained.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/InsertToGroup.html b/doc/InsertToGroup.html deleted file mode 100644 index 324d5b8..0000000 --- a/doc/InsertToGroup.html +++ /dev/null @@ -1,520 +0,0 @@ - - - - - JSDoc: Class: InsertToGroup - - - - - - - - - - -
- -

Class: InsertToGroup

- - - - - - -
- -
- -

InsertToGroup(groupId, itemType, itemId, optional)

- -
Inserts an existing item/group into group of given `groupId`.
- - -
- -
-
- - - - -

Constructor

- - - -

new InsertToGroup(groupId, itemType, itemId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupId - - -string - - - - ID of the group to be inserted into.
itemType - - -string - - - - `item` iff the regular item from the catalog is to be inserted, `group` iff group is inserted as the item.
itemId - - -string - - - - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/InsertToSeries.html b/doc/InsertToSeries.html deleted file mode 100644 index ba7c987..0000000 --- a/doc/InsertToSeries.html +++ /dev/null @@ -1,543 +0,0 @@ - - - - - JSDoc: Class: InsertToSeries - - - - - - - - - - -
- -

Class: InsertToSeries

- - - - - - -
- -
- -

InsertToSeries(seriesId, itemType, itemId, time, optional)

- -
Inserts an existing item/series into series of given seriesId at position determined by time.
- - -
- -
-
- - - - -

Constructor

- - - -

new InsertToSeries(seriesId, itemType, itemId, time, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
seriesId - - -string - - - - ID of the series to be inserted into.
itemType - - -string - - - - `item` iff the regular item from the catalog is to be inserted, `series` iff series is inserted as the item.
itemId - - -string - - - - ID of the item iff `itemType` is `item`. ID of the series iff `itemType` is `series`.
time - - -number - - - - Time index used for sorting items in the series. According to time, items are sorted within series in ascending order. In the example of TV show episodes, the episode number is a natural choice to be passed as time.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ItemBasedRecommendation.html b/doc/ItemBasedRecommendation.html deleted file mode 100644 index 42df0be..0000000 --- a/doc/ItemBasedRecommendation.html +++ /dev/null @@ -1,578 +0,0 @@ - - - - - JSDoc: Class: ItemBasedRecommendation - - - - - - - - - - -
- -

Class: ItemBasedRecommendation

- - - - - - -
- -
- -

ItemBasedRecommendation(itemId, count, optional)

- -
Recommends set of items that are somehow related to one given item, *X*. Typical scenario for using item-based recommendation is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Item-recommendation request gives you Top-N such items, optionally taking the target user *A* into account. - It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- - -
- -
-
- - - - -

Constructor

- - - -

new ItemBasedRecommendation(itemId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item for which the recommendations are to be generated.
count - - -number - - - - Number of items to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *targetUserId* - - Type: string - - Description: ID of the user who will see the recommendations. -Specifying the *targetUserId* is beneficial because: -* It makes the recommendations personalized -* Allows the calculation of Actions and Conversions in the graphical user interface, - as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item. -For the above reasons, we encourage you to set the *targetUserId* even for anonymous/unregistered users (i.e. use their session ID). - - *userImpact* - - Type: number - - Description: If *targetUserId* parameter is present, the recommendations are biased towards the user given. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`. - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. - - *allowNonexistent* - - Type: boolean - - Description: Instead of causing HTTP 404 error, returns some (non-personalized) recommendations if either item of given *itemId* or user of given *targetUserId* does not exist in the database. It creates neither of the missing entities in the database. - - *cascadeCreate* - - Type: boolean - - Description: If item of given *itemId* or user of given *targetUserId* doesn't exist in the database, it creates the missing enity/entities and returns some (non-personalized) recommendations. This allows for example rotations in the following recommendations for the user of given *targetUserId*, as the user will be already known to the system. - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *returnProperties* - - Type: boolean - - 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 for easy displaying of the recommended items to the user. -Example response: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - ] -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "price": 342 - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "price": 39 - } - ] -``` - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *minRelevance* - - Type: string - - Description: **Expert option** If the *targetUserId* is provided: Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested qualit, and may return less than *count* items when there is not enough data to fulfill it. - - *rotationRate* - - Type: number - - Description: **Expert option** If the *targetUserId* is provided: If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.01`. - - *rotationTime* - - Type: number - - Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long time it takes to 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`. - - *expertSettings* - - Type: - - Description: Dictionary of custom options.
- - - - - - -
- - - - - - - - - - - - - - - - -
Deprecated:
  • Deprecated since version 2.0.0. Use RecommendItemsToItem request instead.
- - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListGroupItems.html b/doc/ListGroupItems.html deleted file mode 100644 index 7c6ebbe..0000000 --- a/doc/ListGroupItems.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListGroupItems - - - - - - - - - - -
- -

Class: ListGroupItems

- - - - - - -
- -
- -

ListGroupItems(groupId)

- -
List all the items present in the given group.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListGroupItems(groupId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupId - - -string - - - - ID of the group items of which are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListGroups.html b/doc/ListGroups.html deleted file mode 100644 index e9c0e47..0000000 --- a/doc/ListGroups.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: ListGroups - - - - - - - - - - -
- -

Class: ListGroups

- - - - - - -
- -
- -

ListGroups()

- -
Gets the list of all the groups currently present in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListGroups()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemBookmarks.html b/doc/ListItemBookmarks.html deleted file mode 100644 index d432149..0000000 --- a/doc/ListItemBookmarks.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemBookmarks - - - - - - - - - - -
- -

Class: ListItemBookmarks

- - - - - - -
- -
- -

ListItemBookmarks(itemId)

- -
List all the ever-made bookmarks of a given item.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemBookmarks(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the bookmarks are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemCartAdditions.html b/doc/ListItemCartAdditions.html deleted file mode 100644 index a49c6ac..0000000 --- a/doc/ListItemCartAdditions.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemCartAdditions - - - - - - - - - - -
- -

Class: ListItemCartAdditions

- - - - - - -
- -
- -

ListItemCartAdditions(itemId)

- -
List all the ever-made cart addition of a given item.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemCartAdditions(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the cart addition are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemDetailViews.html b/doc/ListItemDetailViews.html deleted file mode 100644 index 17da932..0000000 --- a/doc/ListItemDetailViews.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemDetailViews - - - - - - - - - - -
- -

Class: ListItemDetailViews

- - - - - - -
- -
- -

ListItemDetailViews(itemId)

- -
List all the detail views of a given item ever made by different users.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemDetailViews(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the detail views are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemProperties.html b/doc/ListItemProperties.html deleted file mode 100644 index 77e0cc9..0000000 --- a/doc/ListItemProperties.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: ListItemProperties - - - - - - - - - - -
- -

Class: ListItemProperties

- - - - - - -
- -
- -

ListItemProperties()

- -
Gets the list of all the item properties in your database.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemProperties()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemPurchases.html b/doc/ListItemPurchases.html deleted file mode 100644 index b792f87..0000000 --- a/doc/ListItemPurchases.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemPurchases - - - - - - - - - - -
- -

Class: ListItemPurchases

- - - - - - -
- -
- -

ListItemPurchases(itemId)

- -
List all the ever-made purchases of a given item.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemPurchases(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the pucrhases are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemRatings.html b/doc/ListItemRatings.html deleted file mode 100644 index 1018bbf..0000000 --- a/doc/ListItemRatings.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemRatings - - - - - - - - - - -
- -

Class: ListItemRatings

- - - - - - -
- -
- -

ListItemRatings(itemId)

- -
List all the ratings of an item ever submitted by different users.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemRatings(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the ratings are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItemViewPortions.html b/doc/ListItemViewPortions.html deleted file mode 100644 index 1ce9fa6..0000000 --- a/doc/ListItemViewPortions.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListItemViewPortions - - - - - - - - - - -
- -

Class: ListItemViewPortions

- - - - - - -
- -
- -

ListItemViewPortions(itemId)

- -
List all the view portions of an item ever submitted by different users.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItemViewPortions(itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item of which the view portions are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListItems.html b/doc/ListItems.html deleted file mode 100644 index 866e800..0000000 --- a/doc/ListItems.html +++ /dev/null @@ -1,497 +0,0 @@ - - - - - JSDoc: Class: ListItems - - - - - - - - - - -
- -

Class: ListItems

- - - - - - -
- -
- -

ListItems(optional)

- -
Gets a list of IDs of items currently present in the catalog.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListItems(optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned. - - *count* - - Type: number - - Description: The number of items to be listed. - - *offset* - - Type: number - - Description: Specifies the number of items to skip (ordered by `itemId`). - - *returnProperties* - - Type: boolean - - Description: With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary. -Example response: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - ] -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "price": 342 - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "price": 39 - } - ] -```
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListSearchSynonyms.html b/doc/ListSearchSynonyms.html deleted file mode 100644 index f8e03ca..0000000 --- a/doc/ListSearchSynonyms.html +++ /dev/null @@ -1,454 +0,0 @@ - - - - - JSDoc: Class: ListSearchSynonyms - - - - - - - - - - -
- -

Class: ListSearchSynonyms

- - - - - - -
- -
- -

ListSearchSynonyms(optional)

- -
Gives the list of synonyms defined in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListSearchSynonyms(optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *count* - - Type: number - - Description: The number of synonyms to be listed. - - *offset* - - Type: number - - Description: Specifies the number of synonyms to skip (ordered by `term`).
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListSeries.html b/doc/ListSeries.html deleted file mode 100644 index a36a968..0000000 --- a/doc/ListSeries.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: ListSeries - - - - - - - - - - -
- -

Class: ListSeries

- - - - - - -
- -
- -

ListSeries()

- -
Gets the list of all the series currently present in the database.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListSeries()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListSeriesItems.html b/doc/ListSeriesItems.html deleted file mode 100644 index 06f5ec5..0000000 --- a/doc/ListSeriesItems.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListSeriesItems - - - - - - - - - - -
- -

Class: ListSeriesItems

- - - - - - -
- -
- -

ListSeriesItems(seriesId)

- -
List all the items present in the given series, sorted according to their time index values.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListSeriesItems(seriesId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
seriesId - - -string - - - - ID of the series items of which are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserBookmarks.html b/doc/ListUserBookmarks.html deleted file mode 100644 index 1a19b02..0000000 --- a/doc/ListUserBookmarks.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserBookmarks - - - - - - - - - - -
- -

Class: ListUserBookmarks

- - - - - - -
- -
- -

ListUserBookmarks(userId)

- -
List all the bookmarks ever made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserBookmarks(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose bookmarks are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserCartAdditions.html b/doc/ListUserCartAdditions.html deleted file mode 100644 index cb980ee..0000000 --- a/doc/ListUserCartAdditions.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserCartAdditions - - - - - - - - - - -
- -

Class: ListUserCartAdditions

- - - - - - -
- -
- -

ListUserCartAdditions(userId)

- -
List all the cart additions ever made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserCartAdditions(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose cart additions are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserDetailViews.html b/doc/ListUserDetailViews.html deleted file mode 100644 index 575c8ea..0000000 --- a/doc/ListUserDetailViews.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserDetailViews - - - - - - - - - - -
- -

Class: ListUserDetailViews

- - - - - - -
- -
- -

ListUserDetailViews(userId)

- -
Lists all the detail views of different items ever made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserDetailViews(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose detail views are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserProperties.html b/doc/ListUserProperties.html deleted file mode 100644 index a9a09d9..0000000 --- a/doc/ListUserProperties.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: ListUserProperties - - - - - - - - - - -
- -

Class: ListUserProperties

- - - - - - -
- -
- -

ListUserProperties()

- -
Gets the list of all the user properties in your database.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserProperties()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserPurchases.html b/doc/ListUserPurchases.html deleted file mode 100644 index fba33aa..0000000 --- a/doc/ListUserPurchases.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserPurchases - - - - - - - - - - -
- -

Class: ListUserPurchases

- - - - - - -
- -
- -

ListUserPurchases(userId)

- -
List all the purchases ever made by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserPurchases(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose purchases are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserRatings.html b/doc/ListUserRatings.html deleted file mode 100644 index fb7406f..0000000 --- a/doc/ListUserRatings.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserRatings - - - - - - - - - - -
- -

Class: ListUserRatings

- - - - - - -
- -
- -

ListUserRatings(userId)

- -
List all the ratings ever submitted by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserRatings(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose ratings are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUserViewPortions.html b/doc/ListUserViewPortions.html deleted file mode 100644 index 4d5e5ce..0000000 --- a/doc/ListUserViewPortions.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - JSDoc: Class: ListUserViewPortions - - - - - - - - - - -
- -

Class: ListUserViewPortions

- - - - - - -
- -
- -

ListUserViewPortions(userId)

- -
List all the view portions ever submitted by a given user.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUserViewPortions(userId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user whose view portions are to be listed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ListUsers.html b/doc/ListUsers.html deleted file mode 100644 index f9d5dfd..0000000 --- a/doc/ListUsers.html +++ /dev/null @@ -1,491 +0,0 @@ - - - - - JSDoc: Class: ListUsers - - - - - - - - - - -
- -

Class: ListUsers

- - - - - - -
- -
- -

ListUsers(optional)

- -
Gets a list of IDs of users currently present in the catalog.
- - -
- -
-
- - - - -

Constructor

- - - -

new ListUsers(optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter users to be listed. Only the users for which the expression is *true* will be returned. - - *count* - - Type: number - - Description: The number of users to be listed. - - *offset* - - Type: number - - Description: Specifies the number of users to skip (ordered by `userId`). - - *returnProperties* - - Type: boolean - - Description: With `returnProperties=true`, property values of the listed users are returned along with their IDs in a JSON dictionary. -Example response: -``` - [ - { - "userId": "user-81", - "country": "US", - "sex": "M" - }, - { - "userId": "user-314", - "country": "CAN", - "sex": "F" - } - ] -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=country`: -``` - [ - { - "userId": "user-81", - "country": "US" - }, - { - "userId": "user-314", - "country": "CAN" - } - ] -```
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/MergeUsers.html b/doc/MergeUsers.html deleted file mode 100644 index 1e76560..0000000 --- a/doc/MergeUsers.html +++ /dev/null @@ -1,498 +0,0 @@ - - - - - JSDoc: Class: MergeUsers - - - - - - - - - - -
- -

Class: MergeUsers

- - - - - - -
- -
- -

MergeUsers(targetUserId, sourceUserId, optional)

- -
Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable. -Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted**.
- - -
- -
-
- - - - -

Constructor

- - - -

new MergeUsers(targetUserId, sourceUserId, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
targetUserId - - -string - - - - ID of the targer user.
sourceUserId - - -string - - - - ID of the source user.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the user *targetUserId* should be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RecommendItemsToItem.html b/doc/RecommendItemsToItem.html deleted file mode 100644 index 816c77a..0000000 --- a/doc/RecommendItemsToItem.html +++ /dev/null @@ -1,635 +0,0 @@ - - - - - JSDoc: Class: RecommendItemsToItem - - - - - - - - - - -
- -

Class: RecommendItemsToItem

- - - - - - -
- -
- -

RecommendItemsToItem(itemId, targetUserId, count, optional)

- -
Recommends set of items that are somehow related to one given item, *X*. Typical scenario is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Recommend items to item request gives you Top-N such items, optionally taking the target user *A* into account. -The returned items are sorted by relevance (first item being the most relevant). -Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to: -- Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics). -- Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items). -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- - -
- -
-
- - - - -

Constructor

- - - -

new RecommendItemsToItem(itemId, targetUserId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item for which the recommendations are to be generated.
targetUserId - - -string - - - - ID of the user who will see the recommendations. -Specifying the *targetUserId* is beneficial because: -* It makes the recommendations personalized -* Allows the calculation of Actions and Conversions - in the graphical user interface, - as Recombee can pair the user who got recommendations - and who afterwards viewed/purchased an item. -If you insist on not specifying the user, pass `null` -(`None`, `nil`, `NULL` etc. depending on language) to *targetUserId*. -Do not create some special dummy user for getting recommendations, -as it could mislead the recommendation models, -and result in wrong recommendations. -For anonymous/unregistered users it is possible to use for example their session ID.
count - - -number - - - - Number of items to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". -You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs. -The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *cascadeCreate* - - Type: boolean - - Description: If item of given *itemId* or user of given *targetUserId* doesn't exist in the database, it creates the missing entity/entities and returns some (non-personalized) recommendations. This allows for example rotations in the following recommendations for the user of given *targetUserId*, as the user will be already known to the system. - - *returnProperties* - - Type: boolean - - 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 for easy displaying of the recommended items to the user. -Example response: -``` - { - "recommId": "0c6189e7-dc1a-429a-b613-192696309361", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - { - "recommId": "6842c725-a79f-4537-a02c-f34d668a3f80", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "price": 342 - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "price": 39 - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. -Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. -Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *logic* - - Type: string| - - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. -See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details. -The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users. -Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *userImpact* - - Type: number - - Description: **Expert option** If *targetUserId* parameter is present, the recommendations are biased towards the given user. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`. - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *minRelevance* - - Type: string - - Description: **Expert option** If the *targetUserId* is provided: Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it. - - *rotationRate* - - Type: number - - Description: **Expert option** If the *targetUserId* is provided: If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. - - *rotationTime* - - Type: number - - Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long time it takes to an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized. - - *expertSettings* - - Type: - - Description: Dictionary of custom options. - - *returnAbGroup* - - Type: boolean - - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RecommendItemsToUser.html b/doc/RecommendItemsToUser.html deleted file mode 100644 index 62c2ed2..0000000 --- a/doc/RecommendItemsToUser.html +++ /dev/null @@ -1,598 +0,0 @@ - - - - - JSDoc: Class: RecommendItemsToUser - - - - - - - - - - -
- -

Class: RecommendItemsToUser

- - - - - - -
- -
- -

RecommendItemsToUser(userId, count, optional)

- -
Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user. -The most typical use cases are recommendations at homepage, in some "Picked just for you" section or in email. -The returned items are sorted by relevance (first item being the most relevant). -Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to: -- Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics). -- Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items). -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- - -
- -
-
- - - - -

Constructor

- - - -

new RecommendItemsToUser(userId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user for whom personalized recommendations are to be generated.
count - - -number - - - - Number of items to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". -You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs. -The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *cascadeCreate* - - Type: boolean - - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system. - - *returnProperties* - - Type: boolean - - 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 for easy displaying of the recommended items to the user. -Example response: -``` - { - "recommId": "ce52ada4-e4d9-4885-943c-407db2dee837", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - { - "recommId": "a86ee8d5-cd8e-46d1-886c-8b3771d0520b", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "price": 342 - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "price": 39 - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. -Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. -Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *logic* - - Type: string| - - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. -See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details. -The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users. -Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *minRelevance* - - Type: string - - Description: **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it. - - *rotationRate* - - Type: number - - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.1`. - - *rotationTime* - - Type: number - - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to 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`. - - *expertSettings* - - Type: - - Description: Dictionary of custom options. - - *returnAbGroup* - - Type: boolean - - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RecommendNextItems.html b/doc/RecommendNextItems.html deleted file mode 100644 index 7a7234a..0000000 --- a/doc/RecommendNextItems.html +++ /dev/null @@ -1,480 +0,0 @@ - - - - - JSDoc: Class: RecommendNextItems - - - - - - - - - - -
- -

Class: RecommendNextItems

- - - - - - -
- -
- -

RecommendNextItems(recommId, count)

- -
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 a next page. -It accepts `recommId` of a base recommendation request (e.g. request from the first page) and number of items that shall be returned (`count`). -The base request can be one of: - - [Recommend items to item](https://docs.recombee.com/api.html#recommend-items-to-item) - - [Recommend items to user](https://docs.recombee.com/api.html#recommend-items-to-user) - - [Search items](https://docs.recombee.com/api.html#search-items) -All the other parameters are inherited from the base request. -*Recommend next items* can be called many times for a single `recommId` and each call returns different (previously not recommended) items. -The number of *Recommend next items* calls performed so far is returned in the `numberNextRecommsCalls` field. -*Recommend next items* can be requested up to 30 minutes after the base request or a previous *Recommend next items* call. -For billing purposes, each call to *Recommend next items* is counted as a separate recommendation request.
- - -
- -
-
- - - - -

Constructor

- - - -

new RecommendNextItems(recommId, count)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
recommId - - -string - - - - ID of the base recommendation request for which next recommendations should be returned
count - - -number - - - - Number of items to be recommended
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RecommendUsersToItem.html b/doc/RecommendUsersToItem.html deleted file mode 100644 index a4d73b8..0000000 --- a/doc/RecommendUsersToItem.html +++ /dev/null @@ -1,579 +0,0 @@ - - - - - JSDoc: Class: RecommendUsersToItem - - - - - - - - - - -
- -

Class: RecommendUsersToItem

- - - - - - -
- -
- -

RecommendUsersToItem(itemId, count, optional)

- -
Recommend users that are likely to be interested in a given item. -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters. -The returned users are sorted by predicted interest in the item (first user being the most interested).
- - -
- -
-
- - - - -

Constructor

- - - -

new RecommendUsersToItem(itemId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item for which the recommendations are to be generated.
count - - -number - - - - Number of items to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". -You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs. -The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *cascadeCreate* - - Type: boolean - - Description: If item of given *itemId* doesn't exist in the database, it creates the missing item. - - *returnProperties* - - Type: boolean - - 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 for easy displaying the recommended users. -Example response: -``` - { - "recommId": "039b71dc-b9cc-4645-a84f-62b841eecfce", - "recomms": - [ - { - "id": "user-17", - "values": { - "country": "US", - "sex": "F" - } - }, - { - "id": "user-2", - "values": { - "country": "CAN", - "sex": "M" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=country`: -``` - { - "recommId": "b2b355dd-972a-4728-9c6b-2dc229db0678", - "recomms": - [ - { - "id": "user-17", - "values": { - "country": "US" - } - }, - { - "id": "user-2", - "values": { - "country": "CAN" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. -Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. -Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *logic* - - Type: string| - - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. -See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details. -The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users. -Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *expertSettings* - - Type: - - Description: Dictionary of custom options. - - *returnAbGroup* - - Type: boolean - - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RecommendUsersToUser.html b/doc/RecommendUsersToUser.html deleted file mode 100644 index 0cb386a..0000000 --- a/doc/RecommendUsersToUser.html +++ /dev/null @@ -1,588 +0,0 @@ - - - - - JSDoc: Class: RecommendUsersToUser - - - - - - - - - - -
- -

Class: RecommendUsersToUser

- - - - - - -
- -
- -

RecommendUsersToUser(userId, count, optional)

- -
Get similar users as some given user, based on the user's past interactions (purchases, ratings, etc.) and values of properties. -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters. -The returned users are sorted by similarity (first user being the most similar).
- - -
- -
-
- - - - -

Constructor

- - - -

new RecommendUsersToUser(userId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User to whom we find similar users
count - - -number - - - - Number of users to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". -You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs. -The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *cascadeCreate* - - Type: boolean - - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system. - - *returnProperties* - - Type: boolean - - 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 for easy displaying the recommended users. -Example response: -``` - { - "recommId": "9cb9c55d-50ba-4478-84fd-ab456136156e", - "recomms": - [ - { - "id": "user-17", - "values": { - "country": "US", - "sex": "F" - } - }, - { - "id": "user-2", - "values": { - "country": "CAN", - "sex": "M" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=country`: -``` - { - "recommId": "b326d82d-5d57-4b45-b362-c9d6f0895855", - "recomms": - [ - { - "id": "user-17", - "values": { - "country": "US" - } - }, - { - "id": "user-2", - "values": { - "country": "CAN" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. -Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. -Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *logic* - - Type: string| - - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. -See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details. -The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users. -Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended users be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *minRelevance* - - Type: string - - Description: **Expert option** Specifies the threshold of how much relevant must the recommended users be. Possible values one of: "low", "medium", "high". - - *rotationRate* - - Type: number - - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an user for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended users. - - *rotationTime* - - Type: number - - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to an user to recover from the penalization. For example, `rotationTime=7200.0` means that users recommended less than 2 hours ago are penalized. - - *expertSettings* - - Type: - - Description: Dictionary of custom options. - - *returnAbGroup* - - Type: boolean - - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RemoveFromGroup.html b/doc/RemoveFromGroup.html deleted file mode 100644 index 7a5dbb7..0000000 --- a/doc/RemoveFromGroup.html +++ /dev/null @@ -1,493 +0,0 @@ - - - - - JSDoc: Class: RemoveFromGroup - - - - - - - - - - -
- -

Class: RemoveFromGroup

- - - - - - -
- -
- -

RemoveFromGroup(groupId, itemType, itemId)

- -
Removes an existing group item from the group.
- - -
- -
-
- - - - -

Constructor

- - - -

new RemoveFromGroup(groupId, itemType, itemId)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
groupId - - -string - - - - ID of the group from which a group item is to be removed.
itemType - - -string - - - - Type of the item to be removed.
itemId - - -string - - - - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/RemoveFromSeries.html b/doc/RemoveFromSeries.html deleted file mode 100644 index 1128d3a..0000000 --- a/doc/RemoveFromSeries.html +++ /dev/null @@ -1,516 +0,0 @@ - - - - - JSDoc: Class: RemoveFromSeries - - - - - - - - - - -
- -

Class: RemoveFromSeries

- - - - - - -
- -
- -

RemoveFromSeries(seriesId, itemType, itemId, time)

- -
Removes an existing series item from the series.
- - -
- -
-
- - - - -

Constructor

- - - -

new RemoveFromSeries(seriesId, itemType, itemId, time)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
seriesId - - -string - - - - ID of the series from which a series item is to be removed.
itemType - - -string - - - - Type of the item to be removed.
itemId - - -string - - - - ID of the item iff `itemType` is `item`. ID of the series iff `itemType` is `series`.
time - - -number - - - - Time index of the item to be removed.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/Request.html b/doc/Request.html deleted file mode 100644 index 6a228b6..0000000 --- a/doc/Request.html +++ /dev/null @@ -1,292 +0,0 @@ - - - - - JSDoc: Class: Request - - - - - - - - - - -
- -

Class: Request

- - - - - - -
- -
- -

Request(method, path, timeout, ensureHttps)

- -
Base class for all the requests
- - -
- -
-
- - - - -

Constructor

- - - -

new Request(method, path, timeout, ensureHttps)

- - - - - - -
- Construct the basis of request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
method - - -string - - - - GET/PUT/POST/DELETE
path - - -string - - - - Path to the endpoint
timeout - - -number - - - - Timeout in milliseconds
ensureHttps - - -boolean - - - - If true, always use HTTPS
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ResetDatabase.html b/doc/ResetDatabase.html deleted file mode 100644 index 541d9cd..0000000 --- a/doc/ResetDatabase.html +++ /dev/null @@ -1,398 +0,0 @@ - - - - - JSDoc: Class: ResetDatabase - - - - - - - - - - -
- -

Class: ResetDatabase

- - - - - - -
- -
- -

ResetDatabase()

- -
Completely erases all your data, including items, item properties, series, user database, purchases, ratings, detail views, and bookmarks. Make sure the request to be never executed in production environment! Resetting your database is irreversible.
- - -
- -
-
- - - - -

Constructor

- - - -

new ResetDatabase()

- - - - - - -
- Construct the request -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/ResponseError.html b/doc/ResponseError.html deleted file mode 100644 index 6843921..0000000 --- a/doc/ResponseError.html +++ /dev/null @@ -1,269 +0,0 @@ - - - - - JSDoc: Class: ResponseError - - - - - - - - - - -
- -

Class: ResponseError

- - - - - - -
- -
- -

ResponseError(request, statusCode, message)

- -
Error thrown when a request did not succeed (did not return 200 or 201)
- - -
- -
-
- - - - -

Constructor

- - - -

new ResponseError(request, statusCode, message)

- - - - - - -
- Create the exception -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
request - - -Request - - - - Request which caused the exception
statusCode - - -number - - - - The returned status code
message - - -string - - - - Error message from the API
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/SearchItems.html b/doc/SearchItems.html deleted file mode 100644 index 5cecc6d..0000000 --- a/doc/SearchItems.html +++ /dev/null @@ -1,610 +0,0 @@ - - - - - JSDoc: Class: SearchItems - - - - - - - - - - -
- -

Class: SearchItems

- - - - - - -
- -
- -

SearchItems(userId, searchQuery, count, optional)

- -
Full-text personalized search. The results are based on the provided `searchQuery` and also on the user's past interactions (purchases, ratings, etc.) with the items (items more suitable for the user are preferred in the results). -All the string and set item properties are indexed by the search engine. -This endpoint should be used in a search box at your website/app. It can be called multiple times as the user is typing the query in order to get the most viable suggestions based on current state of the query, or once after submitting the whole query. -The returned items are sorted by relevance (first item being the most relevant). -Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to: -- Let Recombee know that this search was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics). -- Get subsequent search results when the user scrolls down or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items). -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- - -
- -
-
- - - - -

Constructor

- - - -

new SearchItems(userId, searchQuery, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user for whom personalized search will be performed.
searchQuery - - -string - - - - Search query provided by the user. It is used for the full-text search.
count - - -number - - - - Number of items to be returned (N for the top-N results).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *scenario* - - Type: string - - Description: Scenario defines a particular search field in your user interface. -You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each field performs. -The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *cascadeCreate* - - Type: boolean - - Description: If the user does not exist in the database, returns a list of non-personalized search results and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system. - - *returnProperties* - - Type: boolean - - 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 for easy displaying of the recommended items to the user. -Example response: -``` - { - "recommId": "ce52ada4-e4d9-4885-943c-407db2dee837", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - { - "recommId": "a86ee8d5-cd8e-46d1-886c-8b3771d0520b", - "recomms": - [ - { - "id": "tv-178", - "values": { - "description": "4K TV with 3D feature", - "price": 342 - } - }, - { - "id": "mixer-42", - "values": { - "description": "Stainless Steel Mixer", - "price": 39 - } - } - ], - "numberNextRecommsCalls": 0 - } -``` - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. -Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. -Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *logic* - - Type: string| - - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case. -See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details. -The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users. -Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). - - *expertSettings* - - Type: - - Description: Dictionary of custom options. - - *returnAbGroup* - - Type: boolean - - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/SetItemValues.html b/doc/SetItemValues.html deleted file mode 100644 index 4d36083..0000000 --- a/doc/SetItemValues.html +++ /dev/null @@ -1,279 +0,0 @@ - - - - - JSDoc: Class: SetItemValues - - - - - - - - - - -
- -

Class: SetItemValues

- - - - - - -
- -
- -

SetItemValues(itemId, values, optional)

- -
Set/update (some) property values of a given item. The properties (columns) must be previously created by [Add item property](https://docs.recombee.com/api.html#add-item-property).
- - -
- -
-
- - - - -

Constructor

- - - -

new SetItemValues(itemId, values, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
itemId - - -string - - - - ID of the item which will be modified.
values - - -Object - - - - The values for the individual properties. - { - product_description: '4K TV with 3D feature', - categories: ['Electronics', 'Televisions'], - price_usd: 342, - in_stock_from: '2016-11-16T08:00Z' - }
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the item should be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/SetUserValues.html b/doc/SetUserValues.html deleted file mode 100644 index 492e81f..0000000 --- a/doc/SetUserValues.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - JSDoc: Class: SetUserValues - - - - - - - - - - -
- -

Class: SetUserValues

- - - - - - -
- -
- -

SetUserValues(userId, values, optional)

- -
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).
- - -
- -
-
- - - - -

Constructor

- - - -

new SetUserValues(userId, values, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user which will be modified.
values - - -Object - - - - The values for the individual properties. - { - country: 'US', - sex: 'F' - }
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the user should be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/SetValues.html b/doc/SetValues.html deleted file mode 100644 index eef7e70..0000000 --- a/doc/SetValues.html +++ /dev/null @@ -1,480 +0,0 @@ - - - - - JSDoc: Class: SetValues - - - - - - - - - - -
- -

Class: SetValues

- - - - - - -
- -
- -

SetValues(values, optional)

- -
Set/update (some) property values of a given entity.
- - -
- -
-
- - - - -

Constructor

- - - -

new SetValues(values, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
values - - -Object - - - - The values for the individual properties. - { - product_description: '4K TV with 3D feature', - categories: ['Electronics', 'Televisions'], - price_usd: 342, - in_stock_from: '2016-11-16T08:00Z' - }
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the item should be created if not present in the database.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/SetViewPortion.html b/doc/SetViewPortion.html deleted file mode 100644 index 7ff3759..0000000 --- a/doc/SetViewPortion.html +++ /dev/null @@ -1,533 +0,0 @@ - - - - - JSDoc: Class: SetViewPortion - - - - - - - - - - -
- -

Class: SetViewPortion

- - - - - - -
- -
- -

SetViewPortion(userId, itemId, portion, optional)

- -
Sets viewed portion of an item (for example a video or article) by a user (at a session). -If you send new request with the same (`userId`, `itemId`, `sessionId`), the portion gets updated.
- - -
- -
-
- - - - -

Constructor

- - - -

new SetViewPortion(userId, itemId, portion, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - User who viewed a portion of the item
itemId - - -string - - - - Viewed item
portion - - -number - - - - Viewed portion of the item (number between 0.0 (viewed nothing) and 1.0 (viewed full item) ). It should be the really viewed part of the item, no matter seeking, so for example if the user seeked immediately to half of the item and then viewed 10% of the item, the `portion` should still be `0.1`.
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *sessionId* - - Type: string - - Description: ID of session in which the user viewed the item. Default is `null` (`None`, `nil`, `NULL` etc. depending on language). - - *timestamp* - - Type: string|number - - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time. - - *cascadeCreate* - - Type: boolean - - Description: Sets whether the given user/item should be created if not present in the database. - - *recommId* - - Type: string - - Description: If this view portion is based on a recommendation request, `recommId` is the id of the clicked recommendation. - - *additionalData* - - Type: - - Description: A dictionary of additional data for the interaction.
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/TimeoutError.html b/doc/TimeoutError.html deleted file mode 100644 index 4203d2b..0000000 --- a/doc/TimeoutError.html +++ /dev/null @@ -1,246 +0,0 @@ - - - - - JSDoc: Class: TimeoutError - - - - - - - - - - -
- -

Class: TimeoutError

- - - - - - -
- -
- -

TimeoutError(request, innerException)

- -
Error thrown when a request is not processed within the timeout
- - -
- -
-
- - - - -

Constructor

- - - -

new TimeoutError(request, innerException)

- - - - - - -
- Create the exception -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
request - - -Request - - - - Request which caused the exception
innerException - - -Object - - - - Exception from underlying HTTP library
- - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/UserBasedRecommendation.html b/doc/UserBasedRecommendation.html deleted file mode 100644 index c195b93..0000000 --- a/doc/UserBasedRecommendation.html +++ /dev/null @@ -1,567 +0,0 @@ - - - - - JSDoc: Class: UserBasedRecommendation - - - - - - - - - - -
- -

Class: UserBasedRecommendation

- - - - - - -
- -
- -

UserBasedRecommendation(userId, count, optional)

- -
Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user. -It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- - -
- -
-
- - - - -

Constructor

- - - -

new UserBasedRecommendation(userId, count, optional)

- - - - - - -
- Construct the request -
- - - - - - - - - -
Parameters:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
NameTypeDescription
userId - - -string - - - - ID of the user for whom the personalized recommendations are to be generated.
count - - -number - - - - Number of items to be recommended (N for the top-N recommendation).
optional - - -Object - - - - Optional parameters given as an object with structure name of the parameter: value -- Allowed parameters: - - *filter* - - Type: string - - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes. - - *booster* - - Type: string - - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes. - - *allowNonexistent* - - Type: boolean - - Description: If the user does not exist in the database, returns a list of non-personalized recommendations instead of causing HTTP 404 error. It doesn't create the user in the database. - - *cascadeCreate* - - Type: boolean - - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system. - - *scenario* - - Type: string - - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios. - - *returnProperties* - - Type: boolean - - 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 for easy displaying of the recommended items to the user. -Example response: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "categories": ["Electronics", "Televisions"], - "price": 342, - "url": "myshop.com/tv-178" - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "categories": ["Home & Kitchen"], - "price": 39, - "url": "myshop.com/mixer-42" - } - ] -``` - - *includedProperties* - - Type: string[] - - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. -Example response for `includedProperties=description,price`: -``` - [ - { - "itemId": "tv-178", - "description": "4K TV with 3D feature", - "price": 342 - }, - { - "itemId": "mixer-42", - "description": "Stainless Steel Mixer", - "price": 39 - } - ] -``` - - *diversity* - - Type: number - - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification. - - *minRelevance* - - Type: string - - Description: **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested qualit, and may return less than *count* items when there is not enough data to fulfill it. - - *rotationRate* - - Type: number - - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.1`. - - *rotationTime* - - Type: number - - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to 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`. - - *expertSettings* - - Type: - - Description: Dictionary of custom options.
- - - - - - -
- - - - - - - - - - - - - - - - -
Deprecated:
  • Deprecated since version 2.0.0. Use RecommendItemsToUser request instead.
- - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - -

Methods

- - - - - - - -

bodyParameters() → {Object}

- - - - - - -
- Get body parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of body parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -

queryParameters() → {Object}

- - - - - - -
- Get query parameters -
- - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Source:
-
- - - - - - - -
- - - - - - - - - - - - - - - -
Returns:
- - -
- The values of query parameters (name of parameter: value of the parameter) -
- - - -
-
- Type -
-
- -Object - - -
-
- - - - - - - - - - - - - -
- -
- - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/api-client.js.html b/doc/api-client.js.html deleted file mode 100644 index 26f589d..0000000 --- a/doc/api-client.js.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - JSDoc: Source: api-client.js - - - - - - - - - - -
- -

Source: api-client.js

- - - - - - -
-
-
'use strict';
-
-const jsSHA = require("jssha");
-const rp = require('request-promise');
-const rp_errors = require('request-promise/errors');
-
-const api_errors = require('./errors');
-const requests = require('./requests');
-
-const BATCH_MAX_SIZE = 10000;
-/**
-  * Client for sending requests to Recombee and getting replies
-  */
-class ApiClient {
-
-  /**
-   * Construct the client
-   * @param {string} databaseId - ID of your database
-   * @param {string} secretToken - Corresponding secret token
-   * @param {boolean} alwaysUseHttps - If true, all requests are sent using HTTPS (default: true)
-   * @param {Object} options - Other custom options
-   */
-  constructor (databaseId, token, alwaysUseHttps, options) {
-      this.databaseId = databaseId;
-      this.token = token;
-      this.alwaysUseHttps = (alwaysUseHttps === undefined) ? true : alwaysUseHttps;
-      this.options = options || {};
-      this.baseUri = process.env.RAPI_URI || this.options.baseUri || 'rapi.recombee.com';
-  }
-
-  /**
-   * Send the request to Recombee
-   * @param {Request} request - Request to be sent
-   * @param {Object} callback - Optional callback (send returns Promise if omitted) 
-   */
-  send(request, callback) {
-
-    if (request instanceof requests.Batch && request.requests.length > BATCH_MAX_SIZE)
-      return this._send_multipart_batch(request);
-
-    let url = this._buildRequestUrl(request);
-    let options = {
-        method: request.method,
-        uri: url,
-        headers: {'Accept': 'application/json',
-                  'Content-Type': 'application/json',
-                  'User-Agent': 'recombee-node-api-client/3.2.0'},
-        timeout: request.timeout,
-        resolveWithFullResponse: true,
-        json: true
-    };
-
-    if (this.options.proxy)
-      options.proxy = this.options.proxy;
-
-    if (request.bodyParameters()) 
-      options.body = request.bodyParameters();
-
-    return rp(options)
-           .then(this._parseResponse)
-           .then((response)=> {
-              return new Promise( (resolve) => {
-                if (callback) { return callback(null, response); }
-                return resolve(response);
-              });
-            })
-            .catch(rp_errors.StatusCodeError,((error) => {
-                throw new api_errors.ResponseError(request, error.statusCode, error.message);
-              }
-            ))
-            .catch(rp_errors.RequestError,((error) => {
-                if(error.cause.code === 'ETIMEDOUT' || error.cause.code === 'ESOCKETTIMEDOUT')
-                  throw new api_errors.TimeoutError(request, error);
-                throw error;
-              }
-            ))
-            .catch((error) => {
-              if (callback) {return callback(error)};
-              throw error;
-            });
-  }
-
-  _buildRequestUrl(request) {
-    let protocol = (request.ensureHttps || this.alwaysUseHttps) ? 'https' : 'http';
-    let reqUrl = request.path + this._encodeRequestQueryParams(request);
-    let signedUrl = this._signUrl(reqUrl);
-    return protocol + '://' + this.baseUri + signedUrl;
-  }
-
-  _encodeRequestQueryParams(request) {
-    let res = ''
-    let queryParams = request.queryParameters();
-    let paramPairs = [];
-    for (let d in queryParams)
-      paramPairs.push(this._rfc3986EncodeURIComponent(d) + '=' + this._formatQueryParameterValue(queryParams[d]));
-    res += paramPairs.join('&');
-    if (res.length > 0) {
-      res = '?' + res;
-    }
-    return res;
-  }
-
-  //https://stackoverflow.com/questions/18251399/why-doesnt-encodeuricomponent-encode-single-quotes-apostrophes
-  _rfc3986EncodeURIComponent (str) {  
-    return encodeURIComponent(str).replace(/[!'()*]/g, escape);  
-  }
-
-  _formatQueryParameterValue(value) {
-    if (value instanceof Array) {
-      return value.map((v) => this._rfc3986EncodeURIComponent(v.toString())).join(',');
-    }
-    return this._rfc3986EncodeURIComponent(value.toString());
-  }
-
-  _split_requests(requests, chunk_size) {
-    //http://stackoverflow.com/questions/8495687/split-array-into-chunks
-    let result = [];
-    let i,j;
-    for (i=0,j=requests.length; i<j; i+=chunk_size) {
-        result.push(requests.slice(i,i+chunk_size));
-    }
-    return result;
-  }
-
-  _concat_multipart_results(responses) {
-    return new Promise(
-      function (resolve, reject) {
-        let result = [].concat.apply([], responses);
-        resolve(result);
-      }
-    );
-  }
-
-  _send_batch_part_rec(requests, results) {
-    if (requests.length == 0)
-      return new Promise((resolve) => {resolve(results)});
-    let request = requests.shift();
-    return this.send(request)
-    .then((result) => {
-      results.push(result);
-      return this._send_batch_part_rec(requests, results);
-    });
-  }
-
-  _send_multipart_batch(batch, callback) {
-    let chunks = this._split_requests(batch.requests, BATCH_MAX_SIZE);
-    let rqs = chunks.map((rqs) => new requests.Batch(rqs));
-    
-    return this._send_batch_part_rec(rqs, [])
-      .then(this._concat_multipart_results)
-      .then((response)=> {
-
-        return new Promise( (resolve) => {
-          if (callback) { return callback(null, response); }
-          return resolve(response);
-        });
-      })
-      .catch((error) => {
-        if (callback) {return callback(error)};
-        throw error;
-      });
-  }
-
-  _parseResponse(response) {
-    return new Promise(
-      function (resolve, reject) {
-        resolve(response.body);
-      }
-    );
-  }
-
-  _signUrl (req_part) {
-    let url = '/' + this.databaseId + req_part;
-    url += (req_part.indexOf("?") == -1 ? "?" : "&" ) + "hmac_timestamp=" + parseInt(new Date().getTime() / 1000);
-    
-    let shaObj = new jsSHA("SHA-1", "TEXT");
-    shaObj.setHMACKey(this.token, "TEXT");
-    shaObj.update(url);
-
-    url += "&hmac_sign=" + shaObj.getHMAC("HEX");
-    return url;
-  }
-}
-
-exports.ApiClient = ApiClient
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/errors_api-error.js.html b/doc/errors_api-error.js.html deleted file mode 100644 index bece23f..0000000 --- a/doc/errors_api-error.js.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - JSDoc: Source: errors/api-error.js - - - - - - - - - - -
- -

Source: errors/api-error.js

- - - - - - -
-
-
'use strict';
-
-//http://stackoverflow.com/questions/31089801/extending-error-in-javascript-with-es6-syntax
-
-/**
- * Base class for errors that occur because of errors in requests reported by API or because of a timeout
- */
-class ApiError extends Error {
-  constructor(message) {
-    super(message);
-    this.name = this.constructor.name;
-    if (typeof Error.captureStackTrace === 'function') {
-      Error.captureStackTrace(this, this.constructor);
-    } else { 
-      this.stack = (new Error(message)).stack; 
-    }
-  }
-}
-
-exports.ApiError = ApiError
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/errors_response-error.js.html b/doc/errors_response-error.js.html deleted file mode 100644 index 2ba9c4c..0000000 --- a/doc/errors_response-error.js.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - JSDoc: Source: errors/response-error.js - - - - - - - - - - -
- -

Source: errors/response-error.js

- - - - - - -
-
-
'use strict';
-const ae = require("./api-error");
-
-/**
- * Error thrown when a request did not succeed (did not return 200 or 201)
- */
-class ResponseError extends ae.ApiError {
-  /**
-   * Create the exception
-   * @param {Request} request - Request which caused the exception
-   * @param {number} statusCode - The returned status code
-   * @param {string} message - Error message from the API
-   */
-  constructor(request, statusCode, message) {
-    super(message);
-    this.request = request;
-    this.statusCode = statusCode;
-  }
-}
-
-exports.ResponseError = ResponseError
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/errors_timeout-error.js.html b/doc/errors_timeout-error.js.html deleted file mode 100644 index a9ff13a..0000000 --- a/doc/errors_timeout-error.js.html +++ /dev/null @@ -1,71 +0,0 @@ - - - - - JSDoc: Source: errors/timeout-error.js - - - - - - - - - - -
- -

Source: errors/timeout-error.js

- - - - - - -
-
-
'use strict';
-const ae = require("./api-error");
-
-/**
- * Error thrown when a request is not processed within the timeout
- */
-class TimeoutError extends ae.ApiError {
-  /**
-   * Create the exception
-   * @param {Request} request - Request which caused the exception
-   * @param {Object} innerException - Exception from underlying HTTP library
-   */
-  constructor(request, innerException) {
-    super(`Client did not get response within ${request.timeout} ms`);
-    this.request = request;
-    this.innerException = innerException;
-  }
-}
-
-exports.TimeoutError = TimeoutError
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/fonts/OpenSans-Bold-webfont.eot b/doc/fonts/OpenSans-Bold-webfont.eot deleted file mode 100644 index 5d20d91..0000000 Binary files a/doc/fonts/OpenSans-Bold-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-Bold-webfont.svg b/doc/fonts/OpenSans-Bold-webfont.svg deleted file mode 100644 index 3ed7be4..0000000 --- a/doc/fonts/OpenSans-Bold-webfont.svg +++ /dev/null @@ -1,1830 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-Bold-webfont.woff b/doc/fonts/OpenSans-Bold-webfont.woff deleted file mode 100644 index 1205787..0000000 Binary files a/doc/fonts/OpenSans-Bold-webfont.woff and /dev/null differ diff --git a/doc/fonts/OpenSans-BoldItalic-webfont.eot b/doc/fonts/OpenSans-BoldItalic-webfont.eot deleted file mode 100644 index 1f639a1..0000000 Binary files a/doc/fonts/OpenSans-BoldItalic-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-BoldItalic-webfont.svg b/doc/fonts/OpenSans-BoldItalic-webfont.svg deleted file mode 100644 index 6a2607b..0000000 --- a/doc/fonts/OpenSans-BoldItalic-webfont.svg +++ /dev/null @@ -1,1830 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-BoldItalic-webfont.woff b/doc/fonts/OpenSans-BoldItalic-webfont.woff deleted file mode 100644 index ed760c0..0000000 Binary files a/doc/fonts/OpenSans-BoldItalic-webfont.woff and /dev/null differ diff --git a/doc/fonts/OpenSans-Italic-webfont.eot b/doc/fonts/OpenSans-Italic-webfont.eot deleted file mode 100644 index 0c8a0ae..0000000 Binary files a/doc/fonts/OpenSans-Italic-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-Italic-webfont.svg b/doc/fonts/OpenSans-Italic-webfont.svg deleted file mode 100644 index e1075dc..0000000 --- a/doc/fonts/OpenSans-Italic-webfont.svg +++ /dev/null @@ -1,1830 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-Italic-webfont.woff b/doc/fonts/OpenSans-Italic-webfont.woff deleted file mode 100644 index ff652e6..0000000 Binary files a/doc/fonts/OpenSans-Italic-webfont.woff and /dev/null differ diff --git a/doc/fonts/OpenSans-Light-webfont.eot b/doc/fonts/OpenSans-Light-webfont.eot deleted file mode 100644 index 1486840..0000000 Binary files a/doc/fonts/OpenSans-Light-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-Light-webfont.svg b/doc/fonts/OpenSans-Light-webfont.svg deleted file mode 100644 index 11a472c..0000000 --- a/doc/fonts/OpenSans-Light-webfont.svg +++ /dev/null @@ -1,1831 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-Light-webfont.woff b/doc/fonts/OpenSans-Light-webfont.woff deleted file mode 100644 index e786074..0000000 Binary files a/doc/fonts/OpenSans-Light-webfont.woff and /dev/null differ diff --git a/doc/fonts/OpenSans-LightItalic-webfont.eot b/doc/fonts/OpenSans-LightItalic-webfont.eot deleted file mode 100644 index 8f44592..0000000 Binary files a/doc/fonts/OpenSans-LightItalic-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-LightItalic-webfont.svg b/doc/fonts/OpenSans-LightItalic-webfont.svg deleted file mode 100644 index 431d7e3..0000000 --- a/doc/fonts/OpenSans-LightItalic-webfont.svg +++ /dev/null @@ -1,1835 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-LightItalic-webfont.woff b/doc/fonts/OpenSans-LightItalic-webfont.woff deleted file mode 100644 index 43e8b9e..0000000 Binary files a/doc/fonts/OpenSans-LightItalic-webfont.woff and /dev/null differ diff --git a/doc/fonts/OpenSans-Regular-webfont.eot b/doc/fonts/OpenSans-Regular-webfont.eot deleted file mode 100644 index 6bbc3cf..0000000 Binary files a/doc/fonts/OpenSans-Regular-webfont.eot and /dev/null differ diff --git a/doc/fonts/OpenSans-Regular-webfont.svg b/doc/fonts/OpenSans-Regular-webfont.svg deleted file mode 100644 index 25a3952..0000000 --- a/doc/fonts/OpenSans-Regular-webfont.svg +++ /dev/null @@ -1,1831 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/doc/fonts/OpenSans-Regular-webfont.woff b/doc/fonts/OpenSans-Regular-webfont.woff deleted file mode 100644 index e231183..0000000 Binary files a/doc/fonts/OpenSans-Regular-webfont.woff and /dev/null differ diff --git a/doc/index.html b/doc/index.html deleted file mode 100644 index eae186c..0000000 --- a/doc/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - JSDoc: Home - - - - - - - - - - -
- -

Home

- - - - - - - - -

- - - - - - - - - - - - - - - - - - - - -
- - - -
- - - - - - - \ No newline at end of file diff --git a/doc/requests_add-bookmark.js.html b/doc/requests_add-bookmark.js.html deleted file mode 100644 index 5b55fcf..0000000 --- a/doc/requests_add-bookmark.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - JSDoc: Source: requests/add-bookmark.js - - - - - - - - - - -
- -

Source: requests/add-bookmark.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a bookmark of a given item made by a given user.
- */
-class AddBookmark extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who bookmarked the item
-   * @param {string} itemId - Bookmarked item
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the bookmark as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this bookmark is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, optional) {
-    super('POST', '/bookmarks/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddBookmark = AddBookmark
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-cart-addition.js.html b/doc/requests_add-cart-addition.js.html deleted file mode 100644 index 6c13773..0000000 --- a/doc/requests_add-cart-addition.js.html +++ /dev/null @@ -1,142 +0,0 @@ - - - - - JSDoc: Source: requests/add-cart-addition.js - - - - - - - - - - -
- -

Source: requests/add-cart-addition.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a cart addition of a given item made by a given user.
- */
-class AddCartAddition extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who added the item to the cart
-   * @param {string} itemId - Item added to the cart
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the cart addition as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *amount*
-   *         - Type: number
-   *         - Description: Amount (number) added to cart. The default is 1. For example if `user-x` adds two `item-y` during a single order (session...), the `amount` should equal to 2.
-   *     - *price*
-   *         - Type: number
-   *         - Description: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, optional) {
-    super('POST', '/cartadditions/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.amount = optional.amount;
-    this.price = optional.price;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.amount !== undefined)
-      params.amount = this.amount;
-
-    if(this.price !== undefined)
-      params.price = this.price;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddCartAddition = AddCartAddition
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-detail-view.js.html b/doc/requests_add-detail-view.js.html deleted file mode 100644 index 45b5a17..0000000 --- a/doc/requests_add-detail-view.js.html +++ /dev/null @@ -1,135 +0,0 @@ - - - - - JSDoc: Source: requests/add-detail-view.js - - - - - - - - - - -
- -

Source: requests/add-detail-view.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a detail view of a given item made by a given user.
- */
-class AddDetailView extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who viewed the item
-   * @param {string} itemId - Viewed item
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the view as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *duration*
-   *         - Type: number
-   *         - Description: Duration of the view
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this detail view is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, optional) {
-    super('POST', '/detailviews/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-    this.duration = optional.duration;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.duration !== undefined)
-      params.duration = this.duration;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddDetailView = AddDetailView
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-group.js.html b/doc/requests_add-group.js.html deleted file mode 100644 index c8051b6..0000000 --- a/doc/requests_add-group.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/add-group.js - - - - - - - - - - -
- -

Source: requests/add-group.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Creates new group in the database.
- */
-class AddGroup extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} groupId - ID of the group to be created.
-   */
-  constructor(groupId) {
-    super('PUT', `/groups/${groupId}`, 1000, false);
-    this.groupId = groupId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddGroup = AddGroup
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-item-property.js.html b/doc/requests_add-item-property.js.html deleted file mode 100644 index c0af9a9..0000000 --- a/doc/requests_add-item-property.js.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - JSDoc: Source: requests/add-item-property.js - - - - - - - - - - -
- -

Source: requests/add-item-property.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adding an item property is somehow equivalent to adding a column to the table of items. The items may be characterized by various properties of different types.
- */
-class AddItemProperty extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the item property to be created. Currently, the following names are reserved:`id`, `itemid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
-   * @param {string} type - Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
-   * * `int`- Signed integer number.
-   * * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
-   * * `string` - UTF-8 string.
-   * * `boolean` - *true* / *false*
-   * * `timestamp` - Value representing date and time.
-   * * `set` - Set of strings.
-   * * `image` - URL of an image (`jpeg`, `png` or `gif`).
-   * * `imageList` - List of URLs that refer to images. 
-   */
-  constructor(propertyName, type) {
-    super('PUT', `/items/properties/${propertyName}`, 100000, false);
-    this.propertyName = propertyName;
-    this.type = type;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.type = this.type;
-    return params;
-  }
-}
-
-exports.AddItemProperty = AddItemProperty
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-item.js.html b/doc/requests_add-item.js.html deleted file mode 100644 index b9dc11f..0000000 --- a/doc/requests_add-item.js.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - JSDoc: Source: requests/add-item.js - - - - - - - - - - -
- -

Source: requests/add-item.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds new item of given `itemId` to the items catalog.
- * All the item properties for the newly created items are set null.
- */
-class AddItem extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item to be created.
-   */
-  constructor(itemId) {
-    super('PUT', `/items/${itemId}`, 1000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddItem = AddItem
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-purchase.js.html b/doc/requests_add-purchase.js.html deleted file mode 100644 index 55c0484..0000000 --- a/doc/requests_add-purchase.js.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - JSDoc: Source: requests/add-purchase.js - - - - - - - - - - -
- -

Source: requests/add-purchase.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a purchase of a given item made by a given user.
- */
-class AddPurchase extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who purchased the item
-   * @param {string} itemId - Purchased item
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the purchase as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *amount*
-   *         - Type: number
-   *         - Description: Amount (number) of purchased items. The default is 1. For example if `user-x` purchases two `item-y` during a single order (session...), the `amount` should equal to 2.
-   *     - *price*
-   *         - Type: number
-   *         - Description: Price paid by the user for the item. If `amount` is greater than 1, sum of prices of all the items should be given.
-   *     - *profit*
-   *         - Type: number
-   *         - Description: Your profit from the purchased item. The profit is natural in e-commerce domain (for example if `user-x` purchases `item-y` for $100 and the gross margin is 30 %, then the profit is $30), but is applicable also in other domains (for example at a news company it may be income from displayed advertisement on article page). If `amount` is greater than 1, sum of profit of all the items should be given.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, optional) {
-    super('POST', '/purchases/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.amount = optional.amount;
-    this.price = optional.price;
-    this.profit = optional.profit;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.amount !== undefined)
-      params.amount = this.amount;
-
-    if(this.price !== undefined)
-      params.price = this.price;
-
-    if(this.profit !== undefined)
-      params.profit = this.profit;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddPurchase = AddPurchase
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-rating.js.html b/doc/requests_add-rating.js.html deleted file mode 100644 index 992ff9e..0000000 --- a/doc/requests_add-rating.js.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - JSDoc: Source: requests/add-rating.js - - - - - - - - - - -
- -

Source: requests/add-rating.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a rating of given item made by a given user.
- */
-class AddRating extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who submitted the rating
-   * @param {string} itemId - Rated item
-   * @param {number} rating - Rating rescaled to interval [-1.0,1.0], where -1.0 means the worst rating possible, 0.0 means neutral, and 1.0 means absolutely positive rating. For example, in the case of 5-star evaluations, rating = (numStars-3)/2 formula may be used for the conversion.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this rating is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, rating, optional) {
-    super('POST', '/ratings/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    this.rating = rating;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    params.rating = this.rating;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddRating = AddRating
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-search-synonym.js.html b/doc/requests_add-search-synonym.js.html deleted file mode 100644 index 491979d..0000000 --- a/doc/requests_add-search-synonym.js.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - JSDoc: Source: requests/add-search-synonym.js - - - - - - - - - - -
- -

Source: requests/add-search-synonym.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a new synonym for the [Search items](https://docs.recombee.com/api.html#search-items).
- * When the `term` is used in the search query, the `synonym` is also used for the full-text search.
- * Unless `oneWay=true`, it works also in the opposite way (`synonym` -> `term`).
- * An example of a synonym can be `science fiction` for the term `sci-fi`.
- */
-class AddSearchSynonym extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} term - A word to which the `synonym` is specified.
-   * @param {string} synonym - A word that should be considered equal to the `term` by the full-text search engine.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *oneWay*
-   *         - Type: boolean
-   *         - Description: If set to `true`, only `term` -> `synonym` is considered. If set to `false`, also `synonym` -> `term` works.
-   * Default: `false`.
-   */
-  constructor(term, synonym, optional) {
-    super('POST', '/synonyms/items/', 10000, false);
-    this.term = term;
-    this.synonym = synonym;
-    optional = optional || {};
-    this.oneWay = optional.oneWay;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.term = this.term;
-    params.synonym = this.synonym;
-
-    if(this.oneWay !== undefined)
-      params.oneWay = this.oneWay;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddSearchSynonym = AddSearchSynonym
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-series.js.html b/doc/requests_add-series.js.html deleted file mode 100644 index d49663b..0000000 --- a/doc/requests_add-series.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/add-series.js - - - - - - - - - - -
- -

Source: requests/add-series.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Creates new series in the database.
- */
-class AddSeries extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} seriesId - ID of the series to be created.
-   */
-  constructor(seriesId) {
-    super('PUT', `/series/${seriesId}`, 1000, false);
-    this.seriesId = seriesId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddSeries = AddSeries
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-user-property.js.html b/doc/requests_add-user-property.js.html deleted file mode 100644 index 3ec084a..0000000 --- a/doc/requests_add-user-property.js.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - JSDoc: Source: requests/add-user-property.js - - - - - - - - - - -
- -

Source: requests/add-user-property.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adding an user property is somehow equivalent to adding a column to the table of users. The users may be characterized by various properties of different types.
- */
-class AddUserProperty extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the user property to be created. Currently, the following names are reserved:`id`, `userid`, case insensitively. Also, the length of the property name must not exceed 63 characters.
-   * @param {string} type - Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
-   * * `int` - Signed integer number.
-   * * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
-   * * `string` - UTF-8 string.
-   * * `boolean` - *true* / *false*
-   * * `timestamp` - Value representing date and time.
-   * * `set` - Set of strings.
-   */
-  constructor(propertyName, type) {
-    super('PUT', `/users/properties/${propertyName}`, 100000, false);
-    this.propertyName = propertyName;
-    this.type = type;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.type = this.type;
-    return params;
-  }
-}
-
-exports.AddUserProperty = AddUserProperty
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_add-user.js.html b/doc/requests_add-user.js.html deleted file mode 100644 index a477f6e..0000000 --- a/doc/requests_add-user.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/add-user.js - - - - - - - - - - -
- -

Source: requests/add-user.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Adds a new user to the database.
- */
-class AddUser extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user to be added.
-   */
-  constructor(userId) {
-    super('PUT', `/users/${userId}`, 1000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.AddUser = AddUser
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_batch.js.html b/doc/requests_batch.js.html deleted file mode 100644 index 8e3c3bd..0000000 --- a/doc/requests_batch.js.html +++ /dev/null @@ -1,121 +0,0 @@ - - - - - JSDoc: Source: requests/batch.js - - - - - - - - - - -
- -

Source: requests/batch.js

- - - - - - -
-
-
'use strict';
-const rqs = require("./request");
-
-var sum_timeouts = ((requests) => {
-  return requests.map((r) => r.timeout).reduce((a, b) => a + b, 0);
-});
-
-/**
- * In many cases, it may be desirable to execute multiple requests at once. For example, when synchronizing the catalog of items in a periodical manner, you would have to execute a sequence of thousands of separate POST requests, which is very ineffective and may take a very long time to complete. Most notably, network latencies can make execution of such sequence very slow and even if executed in multiple parallel threads, there will still be unreasonable overhead caused by the HTTP(s). To avoid the mentioned problems, batch processing may be used, encapsulating a sequence of requests into a single HTTPS request.
- * Batch processing allows you to submit arbitrary sequence of requests and the batch may combine different types of requests arbitrarily as well.
- * Note that the status code of the batch request itself is 200 even if the individual requests result in error – you have to inspect the code values in the resulting array.
-  */
-class Batch extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {Request[]} requests - Array containing the requests.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *distinctRecomms*
-   *         - Type: boolean
-   *         - Description: Makes all the recommended items for a certain user distinct among multiple recommendation requests in the batch.
-   */
-  constructor(requests, optional) {
-    super('POST', '/batch/', sum_timeouts(requests), true);
-    this.requests = requests;
-    optional = optional || {};
-    this.distinctRecomms = optional.distinctRecomms;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let reqs = this.requests.map((r) => this._request_to_batch_object(r));
-    let result = {requests: reqs};
-
-    if(this.distinctRecomms !== undefined)
-      result.distinctRecomms = this.distinctRecomms;
-    
-    return result;
-  }
-
-  _request_to_batch_object(req) {
-    let bo = {
-      method: req.method,
-      path: req.path
-    };
-
-    let params = req.queryParameters();
-    let bodyParams = req.bodyParameters();
-    for (var attrname in bodyParams) { params[attrname] = bodyParams[attrname]; }
-
-    if(Object.keys(params).length > 0)
-      bo.params = params;
-
-    return bo;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    return {};
-  }
-}
-
-exports.Batch = Batch
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-all-search-synonyms.js.html b/doc/requests_delete-all-search-synonyms.js.html deleted file mode 100644 index ee717a6..0000000 --- a/doc/requests_delete-all-search-synonyms.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/delete-all-search-synonyms.js - - - - - - - - - - -
- -

Source: requests/delete-all-search-synonyms.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes all synonyms defined in the database.
- */
-class DeleteAllSearchSynonyms extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('DELETE', '/synonyms/items/', 10000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteAllSearchSynonyms = DeleteAllSearchSynonyms
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-bookmark.js.html b/doc/requests_delete-bookmark.js.html deleted file mode 100644 index 291c6a1..0000000 --- a/doc/requests_delete-bookmark.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-bookmark.js - - - - - - - - - - -
- -

Source: requests/delete-bookmark.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes a bookmark uniquely specified by `userId`, `itemId`, and `timestamp` or all the bookmarks with given `userId` and `itemId` if `timestamp` is omitted.
- */
-class DeleteBookmark extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who made the bookmark.
-   * @param {string} itemId - ID of the item of which was bookmarked.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: number
-   *         - Description: Unix timestamp of the bookmark. If the `timestamp` is omitted, then all the bookmarks with given `userId` and `itemId` are deleted.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/bookmarks/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-    return params;
-  }
-}
-
-exports.DeleteBookmark = DeleteBookmark
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-cart-addition.js.html b/doc/requests_delete-cart-addition.js.html deleted file mode 100644 index 71a19ec..0000000 --- a/doc/requests_delete-cart-addition.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-cart-addition.js - - - - - - - - - - -
- -

Source: requests/delete-cart-addition.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an existing cart addition uniquely specified by `userId`, `itemId`, and `timestamp` or all the cart additions with given `userId` and `itemId` if `timestamp` is omitted.
- */
-class DeleteCartAddition extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who made the cart addition.
-   * @param {string} itemId - ID of the item of which was added to cart.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: number
-   *         - Description: Unix timestamp of the cart addition. If the `timestamp` is omitted, then all the cart additions with given `userId` and `itemId` are deleted.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/cartadditions/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-    return params;
-  }
-}
-
-exports.DeleteCartAddition = DeleteCartAddition
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-detail-view.js.html b/doc/requests_delete-detail-view.js.html deleted file mode 100644 index 5cf6923..0000000 --- a/doc/requests_delete-detail-view.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-detail-view.js - - - - - - - - - - -
- -

Source: requests/delete-detail-view.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an existing detail view uniquely specified by (`userId`, `itemId`, and `timestamp`) or all the detail views with given `userId` and `itemId` if `timestamp` is omitted.
- */
-class DeleteDetailView extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who made the detail view.
-   * @param {string} itemId - ID of the item of which the details were viewed.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: number
-   *         - Description: Unix timestamp of the detail view. If the `timestamp` is omitted, then all the detail views with given `userId` and `itemId` are deleted.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/detailviews/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-    return params;
-  }
-}
-
-exports.DeleteDetailView = DeleteDetailView
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-group.js.html b/doc/requests_delete-group.js.html deleted file mode 100644 index b5ea466..0000000 --- a/doc/requests_delete-group.js.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - JSDoc: Source: requests/delete-group.js - - - - - - - - - - -
- -

Source: requests/delete-group.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes the group of given `groupId` from the database.
- * Deleting a group will only delete assignment of items to it, not the items themselves!
- */
-class DeleteGroup extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} groupId - ID of the group to be deleted.
-   */
-  constructor(groupId) {
-    super('DELETE', `/groups/${groupId}`, 1000, false);
-    this.groupId = groupId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteGroup = DeleteGroup
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-item-property.js.html b/doc/requests_delete-item-property.js.html deleted file mode 100644 index 8dd0a34..0000000 --- a/doc/requests_delete-item-property.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/delete-item-property.js - - - - - - - - - - -
- -

Source: requests/delete-item-property.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deleting an item property is roughly equivalent to removing a column from the table of items.
- */
-class DeleteItemProperty extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the property to be deleted.
-   */
-  constructor(propertyName) {
-    super('DELETE', `/items/properties/${propertyName}`, 100000, false);
-    this.propertyName = propertyName;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteItemProperty = DeleteItemProperty
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-item.js.html b/doc/requests_delete-item.js.html deleted file mode 100644 index ae59679..0000000 --- a/doc/requests_delete-item.js.html +++ /dev/null @@ -1,95 +0,0 @@ - - - - - JSDoc: Source: requests/delete-item.js - - - - - - - - - - -
- -

Source: requests/delete-item.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an item of given `itemId` from the catalog.
- * If there are any *purchases*, *ratings*, *bookmarks*, *cart additions* or *detail views* of the item present in the database, they will be deleted in cascade as well. Also, if the item is present in some *series*, it will be removed from all the *series* where present.
- * If an item becomes obsolete/no longer available, it is often meaningful to keep it in the catalog (along with all the interaction data, which are very useful), and only exclude the item from recommendations. In such a case, use [ReQL filter](https://docs.recombee.com/reql.html) instead of deleting the item completely.
- */
-class DeleteItem extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item to be deleted.
-   */
-  constructor(itemId) {
-    super('DELETE', `/items/${itemId}`, 1000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteItem = DeleteItem
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-purchase.js.html b/doc/requests_delete-purchase.js.html deleted file mode 100644 index a684f38..0000000 --- a/doc/requests_delete-purchase.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-purchase.js - - - - - - - - - - -
- -

Source: requests/delete-purchase.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an existing purchase uniquely specified by `userId`, `itemId`, and `timestamp` or all the purchases with given `userId` and `itemId` if `timestamp` is omitted.
- */
-class DeletePurchase extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who made the purchase.
-   * @param {string} itemId - ID of the item of which was purchased.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: number
-   *         - Description: Unix timestamp of the purchase. If the `timestamp` is omitted, then all the purchases with given `userId` and `itemId` are deleted.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/purchases/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-    return params;
-  }
-}
-
-exports.DeletePurchase = DeletePurchase
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-rating.js.html b/doc/requests_delete-rating.js.html deleted file mode 100644 index 8082282..0000000 --- a/doc/requests_delete-rating.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-rating.js - - - - - - - - - - -
- -

Source: requests/delete-rating.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an existing rating specified by (`userId`, `itemId`, `timestamp`) from the database or all the ratings with given `userId` and `itemId` if `timestamp` is omitted.
- */
-class DeleteRating extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who rated the item.
-   * @param {string} itemId - ID of the item which was rated.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *timestamp*
-   *         - Type: number
-   *         - Description: Unix timestamp of the rating. If the `timestamp` is omitted, then all the ratings with given `userId` and `itemId` are deleted.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/ratings/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.timestamp = optional.timestamp;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-    return params;
-  }
-}
-
-exports.DeleteRating = DeleteRating
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-search-synonym.js.html b/doc/requests_delete-search-synonym.js.html deleted file mode 100644 index c5394d9..0000000 --- a/doc/requests_delete-search-synonym.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/delete-search-synonym.js - - - - - - - - - - -
- -

Source: requests/delete-search-synonym.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes synonym of given `id` and this synonym is no longer taken into account in the [Search items](https://docs.recombee.com/api.html#search-items).
- */
-class DeleteSearchSynonym extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} id - ID of the synonym that should be deleted.
-   */
-  constructor(id) {
-    super('DELETE', `/synonyms/items/${id}`, 10000, false);
-    this.id = id;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteSearchSynonym = DeleteSearchSynonym
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-series.js.html b/doc/requests_delete-series.js.html deleted file mode 100644 index 5987f74..0000000 --- a/doc/requests_delete-series.js.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - JSDoc: Source: requests/delete-series.js - - - - - - - - - - -
- -

Source: requests/delete-series.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes the series of given `seriesId` from the database.
- * Deleting a series will only delete assignment of items to it, not the items themselves!
- */
-class DeleteSeries extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} seriesId - ID of the series to be deleted.
-   */
-  constructor(seriesId) {
-    super('DELETE', `/series/${seriesId}`, 1000, false);
-    this.seriesId = seriesId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteSeries = DeleteSeries
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-user-property.js.html b/doc/requests_delete-user-property.js.html deleted file mode 100644 index ffb0b3d..0000000 --- a/doc/requests_delete-user-property.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/delete-user-property.js - - - - - - - - - - -
- -

Source: requests/delete-user-property.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deleting an user property is roughly equivalent to removing a column from the table of users.
- */
-class DeleteUserProperty extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the property to be deleted.
-   */
-  constructor(propertyName) {
-    super('DELETE', `/users/properties/${propertyName}`, 100000, false);
-    this.propertyName = propertyName;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteUserProperty = DeleteUserProperty
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-user.js.html b/doc/requests_delete-user.js.html deleted file mode 100644 index 561913c..0000000 --- a/doc/requests_delete-user.js.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - JSDoc: Source: requests/delete-user.js - - - - - - - - - - -
- -

Source: requests/delete-user.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes a user of given *userId* from the database.
- * If there are any purchases, ratings, bookmarks, cart additions or detail views made by the user present in the database, they will be deleted in cascade as well.
- */
-class DeleteUser extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user to be added.
-   */
-  constructor(userId) {
-    super('DELETE', `/users/${userId}`, 1000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.DeleteUser = DeleteUser
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_delete-view-portion.js.html b/doc/requests_delete-view-portion.js.html deleted file mode 100644 index 5691d45..0000000 --- a/doc/requests_delete-view-portion.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/delete-view-portion.js - - - - - - - - - - -
- -

Source: requests/delete-view-portion.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Deletes an existing view portion specified by (`userId`, `itemId`, `sessionId`) from the database.
- */
-class DeleteViewPortion extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user who rated the item.
-   * @param {string} itemId - ID of the item which was rated.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *sessionId*
-   *         - Type: string
-   *         - Description: Identifier of a session.
-   */
-  constructor(userId, itemId, optional) {
-    super('DELETE', '/viewportions/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.sessionId = optional.sessionId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    if (this.sessionId !== undefined)
-      params.sessionId = this.sessionId;
-    return params;
-  }
-}
-
-exports.DeleteViewPortion = DeleteViewPortion
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_get-item-property-info.js.html b/doc/requests_get-item-property-info.js.html deleted file mode 100644 index 8108d51..0000000 --- a/doc/requests_get-item-property-info.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/get-item-property-info.js - - - - - - - - - - -
- -

Source: requests/get-item-property-info.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets information about specified item property.
- */
-class GetItemPropertyInfo extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the property about which the information is to be retrieved.
-   */
-  constructor(propertyName) {
-    super('GET', `/items/properties/${propertyName}`, 1000, false);
-    this.propertyName = propertyName;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.GetItemPropertyInfo = GetItemPropertyInfo
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_get-item-values.js.html b/doc/requests_get-item-values.js.html deleted file mode 100644 index 4201a6a..0000000 --- a/doc/requests_get-item-values.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/get-item-values.js - - - - - - - - - - -
- -

Source: requests/get-item-values.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Get all the current property values of a given item.
- */
-class GetItemValues extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item properties of which are to be obtained.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}`, 1000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.GetItemValues = GetItemValues
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_get-user-property-info.js.html b/doc/requests_get-user-property-info.js.html deleted file mode 100644 index 76cb1cf..0000000 --- a/doc/requests_get-user-property-info.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/get-user-property-info.js - - - - - - - - - - -
- -

Source: requests/get-user-property-info.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets information about specified user property.
- */
-class GetUserPropertyInfo extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} propertyName - Name of the property about which the information is to be retrieved.
-   */
-  constructor(propertyName) {
-    super('GET', `/users/properties/${propertyName}`, 100000, false);
-    this.propertyName = propertyName;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.GetUserPropertyInfo = GetUserPropertyInfo
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_get-user-values.js.html b/doc/requests_get-user-values.js.html deleted file mode 100644 index 61d7361..0000000 --- a/doc/requests_get-user-values.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/get-user-values.js - - - - - - - - - - -
- -

Source: requests/get-user-values.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Get all the current property values of a given user.
- */
-class GetUserValues extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user properties of which are to be obtained.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}`, 1000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.GetUserValues = GetUserValues
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_insert-to-group.js.html b/doc/requests_insert-to-group.js.html deleted file mode 100644 index cfe85ad..0000000 --- a/doc/requests_insert-to-group.js.html +++ /dev/null @@ -1,109 +0,0 @@ - - - - - JSDoc: Source: requests/insert-to-group.js - - - - - - - - - - -
- -

Source: requests/insert-to-group.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Inserts an existing item/group into group of given `groupId`.
- */
-class InsertToGroup extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} groupId - ID of the group to be inserted into.
-   * @param {string} itemType - `item` iff the regular item from the catalog is to be inserted, `group` iff group is inserted as the item.
-   * @param {string} itemId - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `groupId` and the `groupId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either items or group may be created if not present in the database.
-   */
-  constructor(groupId, itemType, itemId, optional) {
-    super('POST', `/groups/${groupId}/items/`, 1000, false);
-    this.groupId = groupId;
-    this.itemType = itemType;
-    this.itemId = itemId;
-    optional = optional || {};
-    this.cascadeCreate = optional.cascadeCreate;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.itemType = this.itemType;
-    params.itemId = this.itemId;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.InsertToGroup = InsertToGroup
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_insert-to-series.js.html b/doc/requests_insert-to-series.js.html deleted file mode 100644 index 8d4655b..0000000 --- a/doc/requests_insert-to-series.js.html +++ /dev/null @@ -1,112 +0,0 @@ - - - - - JSDoc: Source: requests/insert-to-series.js - - - - - - - - - - -
- -

Source: requests/insert-to-series.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Inserts an existing item/series into series of given seriesId at position determined by time.
- */
-class InsertToSeries extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} seriesId - ID of the series to be inserted into.
-   * @param {string} itemType - `item` iff the regular item from the catalog is to be inserted, `series` iff series is inserted as the item.
-   * @param {string} itemId - ID of the item iff `itemType` is `item`. ID of the series iff `itemType` is `series`.
-   * @param {number} time - Time index used for sorting items in the series. According to time, items are sorted within series in ascending order. In the example of TV show episodes, the episode number is a natural choice to be passed as time.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Indicates that any non-existing entity specified within the request should be created (as is corresponding PUT requests were invoked). This concerns both the `seriesId` and the `itemId`. If `cascadeCreate` is set true, the behavior also depends on the `itemType`. Either item or series may be created if not present in the database.
-   */
-  constructor(seriesId, itemType, itemId, time, optional) {
-    super('POST', `/series/${seriesId}/items/`, 1000, false);
-    this.seriesId = seriesId;
-    this.itemType = itemType;
-    this.itemId = itemId;
-    this.time = time;
-    optional = optional || {};
-    this.cascadeCreate = optional.cascadeCreate;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.itemType = this.itemType;
-    params.itemId = this.itemId;
-    params.time = this.time;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.InsertToSeries = InsertToSeries
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_item-based-recommendation.js.html b/doc/requests_item-based-recommendation.js.html deleted file mode 100644 index a1adc46..0000000 --- a/doc/requests_item-based-recommendation.js.html +++ /dev/null @@ -1,238 +0,0 @@ - - - - - JSDoc: Source: requests/item-based-recommendation.js - - - - - - - - - - -
- -

Source: requests/item-based-recommendation.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Recommends set of items that are somehow related to one given item, *X*. Typical scenario for using item-based recommendation is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Item-recommendation request gives you Top-N such items, optionally taking the target user *A* into account.
- *  It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- * @deprecated Deprecated since version 2.0.0. Use RecommendItemsToItem request instead.
- */
-class ItemBasedRecommendation extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item for which the recommendations are to be generated.
-   * @param {number} count - Number of items to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *targetUserId*
-   *         - Type: string
-   *         - Description: ID of the user who will see the recommendations.
-   * Specifying the *targetUserId* is beneficial because:
-   * * It makes the recommendations personalized
-   * * Allows the calculation of Actions and Conversions in the graphical user interface,
-   *   as Recombee can pair the user who got recommendations and who afterwards viewed/purchased an item.
-   * For the above reasons, we encourage you to set the *targetUserId* even for anonymous/unregistered users (i.e. use their session ID).
-   *     - *userImpact*
-   *         - Type: number
-   *         - Description: If *targetUserId* parameter is present, the recommendations are biased towards the user given. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`.
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   *     - *allowNonexistent*
-   *         - Type: boolean
-   *         - Description: Instead of causing HTTP 404 error, returns some (non-personalized) recommendations if either item of given *itemId* or user of given *targetUserId* does not exist in the database. It creates neither of the missing entities in the database.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If item of given *itemId* or user of given *targetUserId* doesn't exist in the database, it creates the missing enity/entities and returns some (non-personalized) recommendations. This allows for example rotations in the following recommendations for the user of given *targetUserId*, as the user will be already known to the system.
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying of the recommended items to the user. 
-   * Example response:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "categories":   ["Electronics", "Televisions"],
-   *       "price": 342,
-   *       "url": "myshop.com/tv-178"
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "categories":   ["Home & Kitchen"],
-   *       "price": 39,
-   *       "url": "myshop.com/mixer-42"
-   *     }
-   *   ]
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "price": 342
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "price": 39
-   *     }
-   *   ]
-   * ```
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *minRelevance*
-   *         - Type: string
-   *         - Description: **Expert option** If the *targetUserId* is provided:  Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested qualit, and may return less than *count* items when there is not enough data to fulfill it.
-   *     - *rotationRate*
-   *         - Type: number
-   *         - Description: **Expert option** If the *targetUserId* is provided: If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.01`.
-   *     - *rotationTime*
-   *         - Type: number
-   *         - Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long time it takes to 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`.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   */
-  constructor(itemId, count, optional) {
-    super('POST', `/items/${itemId}/recomms/`, 3000, false);
-    this.itemId = itemId;
-    this.count = count;
-    optional = optional || {};
-    this.targetUserId = optional.targetUserId;
-    this.userImpact = optional.userImpact;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.allowNonexistent = optional.allowNonexistent;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.scenario = optional.scenario;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.diversity = optional.diversity;
-    this.minRelevance = optional.minRelevance;
-    this.rotationRate = optional.rotationRate;
-    this.rotationTime = optional.rotationTime;
-    this.expertSettings = optional.expertSettings;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    if(this.targetUserId !== undefined)
-      params.targetUserId = this.targetUserId;
-
-    if(this.userImpact !== undefined)
-      params.userImpact = this.userImpact;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.allowNonexistent !== undefined)
-      params.allowNonexistent = this.allowNonexistent;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.minRelevance !== undefined)
-      params.minRelevance = this.minRelevance;
-
-    if(this.rotationRate !== undefined)
-      params.rotationRate = this.rotationRate;
-
-    if(this.rotationTime !== undefined)
-      params.rotationTime = this.rotationTime;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ItemBasedRecommendation = ItemBasedRecommendation
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-group-items.js.html b/doc/requests_list-group-items.js.html deleted file mode 100644 index 38a5b11..0000000 --- a/doc/requests_list-group-items.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-group-items.js - - - - - - - - - - -
- -

Source: requests/list-group-items.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the items present in the given group.
- */
-class ListGroupItems extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} groupId - ID of the group items of which are to be listed.
-   */
-  constructor(groupId) {
-    super('GET', `/groups/${groupId}/items/`, 100000, false);
-    this.groupId = groupId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListGroupItems = ListGroupItems
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-groups.js.html b/doc/requests_list-groups.js.html deleted file mode 100644 index b99e4cd..0000000 --- a/doc/requests_list-groups.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/list-groups.js - - - - - - - - - - -
- -

Source: requests/list-groups.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets the list of all the groups currently present in the database.
- */
-class ListGroups extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('GET', '/groups/list/', 100000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListGroups = ListGroups
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-bookmarks.js.html b/doc/requests_list-item-bookmarks.js.html deleted file mode 100644 index 667e4db..0000000 --- a/doc/requests_list-item-bookmarks.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-bookmarks.js - - - - - - - - - - -
- -

Source: requests/list-item-bookmarks.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the ever-made bookmarks of a given item.
- */
-class ListItemBookmarks extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the bookmarks are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/bookmarks/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemBookmarks = ListItemBookmarks
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-cart-additions.js.html b/doc/requests_list-item-cart-additions.js.html deleted file mode 100644 index 2f9d6e7..0000000 --- a/doc/requests_list-item-cart-additions.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-cart-additions.js - - - - - - - - - - -
- -

Source: requests/list-item-cart-additions.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the ever-made cart addition of a given item.
- */
-class ListItemCartAdditions extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the cart addition are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/cartadditions/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemCartAdditions = ListItemCartAdditions
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-detail-views.js.html b/doc/requests_list-item-detail-views.js.html deleted file mode 100644 index ae5d7e4..0000000 --- a/doc/requests_list-item-detail-views.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-detail-views.js - - - - - - - - - - -
- -

Source: requests/list-item-detail-views.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the detail views of a given item ever made by different users.
- */
-class ListItemDetailViews extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the detail views are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/detailviews/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemDetailViews = ListItemDetailViews
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-properties.js.html b/doc/requests_list-item-properties.js.html deleted file mode 100644 index a8740a9..0000000 --- a/doc/requests_list-item-properties.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-properties.js - - - - - - - - - - -
- -

Source: requests/list-item-properties.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets the list of all the item properties in your database.
- */
-class ListItemProperties extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('GET', '/items/properties/list/', 100000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemProperties = ListItemProperties
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-purchases.js.html b/doc/requests_list-item-purchases.js.html deleted file mode 100644 index bd9d957..0000000 --- a/doc/requests_list-item-purchases.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-purchases.js - - - - - - - - - - -
- -

Source: requests/list-item-purchases.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the ever-made purchases of a given item.
- */
-class ListItemPurchases extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the pucrhases are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/purchases/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemPurchases = ListItemPurchases
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-ratings.js.html b/doc/requests_list-item-ratings.js.html deleted file mode 100644 index fc21819..0000000 --- a/doc/requests_list-item-ratings.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-ratings.js - - - - - - - - - - -
- -

Source: requests/list-item-ratings.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the ratings of an item ever submitted by different users.
- */
-class ListItemRatings extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the ratings are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/ratings/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemRatings = ListItemRatings
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-item-view-portions.js.html b/doc/requests_list-item-view-portions.js.html deleted file mode 100644 index b9adb55..0000000 --- a/doc/requests_list-item-view-portions.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-item-view-portions.js - - - - - - - - - - -
- -

Source: requests/list-item-view-portions.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the view portions of an item ever submitted by different users.
- */
-class ListItemViewPortions extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item of which the view portions are to be listed.
-   */
-  constructor(itemId) {
-    super('GET', `/items/${itemId}/viewportions/`, 100000, false);
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListItemViewPortions = ListItemViewPortions
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-items.js.html b/doc/requests_list-items.js.html deleted file mode 100644 index 5cbc928..0000000 --- a/doc/requests_list-items.js.html +++ /dev/null @@ -1,158 +0,0 @@ - - - - - JSDoc: Source: requests/list-items.js - - - - - - - - - - -
- -

Source: requests/list-items.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets a list of IDs of items currently present in the catalog.
- */
-class ListItems extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter items to be listed. Only the items for which the expression is *true* will be returned.
-   *     - *count*
-   *         - Type: number
-   *         - Description: The number of items to be listed.
-   *     - *offset*
-   *         - Type: number
-   *         - Description: Specifies the number of items to skip (ordered by `itemId`).
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - Description: With `returnProperties=true`, property values of the listed items are returned along with their IDs in a JSON dictionary. 
-   * Example response:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "categories":   ["Electronics", "Televisions"],
-   *       "price": 342,
-   *       "url": "myshop.com/tv-178"
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "categories":   ["Home & Kitchen"],
-   *       "price": 39,
-   *       "url": "myshop.com/mixer-42"
-   *     }
-   *   ]
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "price": 342
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "price": 39
-   *     }
-   *   ]
-   * ```
-   */
-  constructor(optional) {
-    super('GET', '/items/list/', 100000, false);
-    optional = optional || {};
-    this.filter = optional.filter;
-    this.count = optional.count;
-    this.offset = optional.offset;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    if (this.filter !== undefined)
-      params.filter = this.filter;
-    if (this.count !== undefined)
-      params.count = this.count;
-    if (this.offset !== undefined)
-      params.offset = this.offset;
-    if (this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-    if (this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-    return params;
-  }
-}
-
-exports.ListItems = ListItems
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-search-synonyms.js.html b/doc/requests_list-search-synonyms.js.html deleted file mode 100644 index d2bc279..0000000 --- a/doc/requests_list-search-synonyms.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/list-search-synonyms.js - - - - - - - - - - -
- -

Source: requests/list-search-synonyms.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gives the list of synonyms defined in the database.
- */
-class ListSearchSynonyms extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *count*
-   *         - Type: number
-   *         - Description: The number of synonyms to be listed.
-   *     - *offset*
-   *         - Type: number
-   *         - Description: Specifies the number of synonyms to skip (ordered by `term`).
-   */
-  constructor(optional) {
-    super('GET', '/synonyms/items/', 100000, false);
-    optional = optional || {};
-    this.count = optional.count;
-    this.offset = optional.offset;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    if (this.count !== undefined)
-      params.count = this.count;
-    if (this.offset !== undefined)
-      params.offset = this.offset;
-    return params;
-  }
-}
-
-exports.ListSearchSynonyms = ListSearchSynonyms
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-series-items.js.html b/doc/requests_list-series-items.js.html deleted file mode 100644 index c7ef862..0000000 --- a/doc/requests_list-series-items.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-series-items.js - - - - - - - - - - -
- -

Source: requests/list-series-items.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the items present in the given series, sorted according to their time index values.
- */
-class ListSeriesItems extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} seriesId - ID of the series items of which are to be listed.
-   */
-  constructor(seriesId) {
-    super('GET', `/series/${seriesId}/items/`, 100000, false);
-    this.seriesId = seriesId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListSeriesItems = ListSeriesItems
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-series.js.html b/doc/requests_list-series.js.html deleted file mode 100644 index 7f3deb6..0000000 --- a/doc/requests_list-series.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/list-series.js - - - - - - - - - - -
- -

Source: requests/list-series.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets the list of all the series currently present in the database.
- */
-class ListSeries extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('GET', '/series/list/', 100000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListSeries = ListSeries
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-bookmarks.js.html b/doc/requests_list-user-bookmarks.js.html deleted file mode 100644 index d384dc7..0000000 --- a/doc/requests_list-user-bookmarks.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-bookmarks.js - - - - - - - - - - -
- -

Source: requests/list-user-bookmarks.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the bookmarks ever made by a given user.
- */
-class ListUserBookmarks extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose bookmarks are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/bookmarks/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserBookmarks = ListUserBookmarks
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-cart-additions.js.html b/doc/requests_list-user-cart-additions.js.html deleted file mode 100644 index 57c1a5f..0000000 --- a/doc/requests_list-user-cart-additions.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-cart-additions.js - - - - - - - - - - -
- -

Source: requests/list-user-cart-additions.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the cart additions ever made by a given user.
- */
-class ListUserCartAdditions extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose cart additions are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/cartadditions/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserCartAdditions = ListUserCartAdditions
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-detail-views.js.html b/doc/requests_list-user-detail-views.js.html deleted file mode 100644 index 718c8cc..0000000 --- a/doc/requests_list-user-detail-views.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-detail-views.js - - - - - - - - - - -
- -

Source: requests/list-user-detail-views.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Lists all the detail views of different items ever made by a given user.
- */
-class ListUserDetailViews extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose detail views are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/detailviews/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserDetailViews = ListUserDetailViews
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-properties.js.html b/doc/requests_list-user-properties.js.html deleted file mode 100644 index 7b02a61..0000000 --- a/doc/requests_list-user-properties.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-properties.js - - - - - - - - - - -
- -

Source: requests/list-user-properties.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets the list of all the user properties in your database.
- */
-class ListUserProperties extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('GET', '/users/properties/list/', 100000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserProperties = ListUserProperties
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-purchases.js.html b/doc/requests_list-user-purchases.js.html deleted file mode 100644 index 806b788..0000000 --- a/doc/requests_list-user-purchases.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-purchases.js - - - - - - - - - - -
- -

Source: requests/list-user-purchases.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the purchases ever made by a given user.
- */
-class ListUserPurchases extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose purchases are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/purchases/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserPurchases = ListUserPurchases
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-ratings.js.html b/doc/requests_list-user-ratings.js.html deleted file mode 100644 index 4b25bff..0000000 --- a/doc/requests_list-user-ratings.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-ratings.js - - - - - - - - - - -
- -

Source: requests/list-user-ratings.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the ratings ever submitted by a given user.
- */
-class ListUserRatings extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose ratings are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/ratings/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserRatings = ListUserRatings
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-user-view-portions.js.html b/doc/requests_list-user-view-portions.js.html deleted file mode 100644 index 2919577..0000000 --- a/doc/requests_list-user-view-portions.js.html +++ /dev/null @@ -1,93 +0,0 @@ - - - - - JSDoc: Source: requests/list-user-view-portions.js - - - - - - - - - - -
- -

Source: requests/list-user-view-portions.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * List all the view portions ever submitted by a given user.
- */
-class ListUserViewPortions extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user whose view portions are to be listed.
-   */
-  constructor(userId) {
-    super('GET', `/users/${userId}/viewportions/`, 100000, false);
-    this.userId = userId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ListUserViewPortions = ListUserViewPortions
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_list-users.js.html b/doc/requests_list-users.js.html deleted file mode 100644 index 5052d57..0000000 --- a/doc/requests_list-users.js.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - JSDoc: Source: requests/list-users.js - - - - - - - - - - -
- -

Source: requests/list-users.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Gets a list of IDs of users currently present in the catalog.
- */
-class ListUsers extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression, which allows you to filter users to be listed. Only the users for which the expression is *true* will be returned.
-   *     - *count*
-   *         - Type: number
-   *         - Description: The number of users to be listed.
-   *     - *offset*
-   *         - Type: number
-   *         - Description: Specifies the number of users to skip (ordered by `userId`).
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - Description: With `returnProperties=true`, property values of the listed users are returned along with their IDs in a JSON dictionary. 
-   * Example response:
-   * ```
-   *   [
-   *     {
-   *       "userId": "user-81",
-   *       "country": "US",
-   *       "sex": "M"
-   *     },
-   *     {
-   *       "userId": "user-314",
-   *       "country": "CAN",
-   *       "sex": "F"
-   *     }
-   *   ]
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=country`:
-   * ```
-   *   [
-   *     {
-   *       "userId": "user-81",
-   *       "country": "US"
-   *     },
-   *     {
-   *       "userId": "user-314",
-   *       "country": "CAN"
-   *     }
-   *   ]
-   * ```
-   */
-  constructor(optional) {
-    super('GET', '/users/list/', 100000, false);
-    optional = optional || {};
-    this.filter = optional.filter;
-    this.count = optional.count;
-    this.offset = optional.offset;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    if (this.filter !== undefined)
-      params.filter = this.filter;
-    if (this.count !== undefined)
-      params.count = this.count;
-    if (this.offset !== undefined)
-      params.offset = this.offset;
-    if (this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-    if (this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-    return params;
-  }
-}
-
-exports.ListUsers = ListUsers
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_merge-users.js.html b/doc/requests_merge-users.js.html deleted file mode 100644 index 44d9bef..0000000 --- a/doc/requests_merge-users.js.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - JSDoc: Source: requests/merge-users.js - - - - - - - - - - -
- -

Source: requests/merge-users.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Merges interactions (purchases, ratings, bookmarks, detail views ...) of two different users under a single user ID. This is especially useful for online e-commerce applications working with anonymous users identified by unique tokens such as the session ID. In such applications, it may often happen that a user owns a persistent account, yet accesses the system anonymously while, e.g., putting items into a shopping cart. At some point in time, such as when the user wishes to confirm the purchase, (s)he logs into the system using his/her username and password. The interactions made under anonymous session ID then become connected with the persistent account, and merging these two together becomes desirable.
- * Merging happens between two users referred to as the *target* and the *source*. After the merge, all the interactions of the source user are attributed to the target user, and the source user is **deleted**.
- */
-class MergeUsers extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} targetUserId - ID of the targer user.
-   * @param {string} sourceUserId - ID of the source user.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the user *targetUserId* should be created if not present in the database.
-   */
-  constructor(targetUserId, sourceUserId, optional) {
-    super('PUT', `/users/${targetUserId}/merge/${sourceUserId}`, 10000, false);
-    this.targetUserId = targetUserId;
-    this.sourceUserId = sourceUserId;
-    optional = optional || {};
-    this.cascadeCreate = optional.cascadeCreate;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    if (this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-    return params;
-  }
-}
-
-exports.MergeUsers = MergeUsers
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_recommend-items-to-item.js.html b/doc/requests_recommend-items-to-item.js.html deleted file mode 100644 index 1337f99..0000000 --- a/doc/requests_recommend-items-to-item.js.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - JSDoc: Source: requests/recommend-items-to-item.js - - - - - - - - - - -
- -

Source: requests/recommend-items-to-item.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Recommends set of items that are somehow related to one given item, *X*. Typical scenario  is when user *A* is viewing *X*. Then you may display items to the user that he might be also interested in. Recommend items to item request gives you Top-N such items, optionally taking the target user *A* into account.
- * The returned items are sorted by relevance (first item being the most relevant).
- * Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
- * - Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
- * - Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- */
-class RecommendItemsToItem extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item for which the recommendations are to be generated.
-   * @param {string} targetUserId - ID of the user who will see the recommendations.
-   * Specifying the *targetUserId* is beneficial because:
-   * * It makes the recommendations personalized
-   * * Allows the calculation of Actions and Conversions
-   *   in the graphical user interface,
-   *   as Recombee can pair the user who got recommendations
-   *   and who afterwards viewed/purchased an item.
-   * If you insist on not specifying the user, pass `null`
-   * (`None`, `nil`, `NULL` etc. depending on language) to *targetUserId*.
-   * Do not create some special dummy user for getting recommendations,
-   * as it could mislead the recommendation models,
-   * and result in wrong recommendations.
-   * For anonymous/unregistered users it is possible to use for example their session ID.
-   * @param {number} count - Number of items to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing".
-   * You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs.
-   * The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If item of given *itemId* or user of given *targetUserId* doesn't exist in the database, it creates the missing entity/entities and returns some (non-personalized) recommendations. This allows for example rotations in the following recommendations for the user of given *targetUserId*, as the user will be already known to the system.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying of the recommended items to the user. 
-   * Example response:
-   * ```
-   *   {
-   *     "recommId": "0c6189e7-dc1a-429a-b613-192696309361",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "categories":   ["Electronics", "Televisions"],
-   *             "price": 342,
-   *             "url": "myshop.com/tv-178"
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "categories":   ["Home & Kitchen"],
-   *             "price": 39,
-   *             "url": "myshop.com/mixer-42"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   {
-   *     "recommId": "6842c725-a79f-4537-a02c-f34d668a3f80",
-   *     "recomms": 
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "price": 342
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "price": 39
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   * Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   * Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *logic*
-   *         - Type: string|
-   *         - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
-   * See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details.
-   * The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
-   * Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *userImpact*
-   *         - Type: number
-   *         - Description: **Expert option** If *targetUserId* parameter is present, the recommendations are biased towards the given user. Using *userImpact*, you may control this bias. For an extreme case of `userImpact=0.0`, the interactions made by the user are not taken into account at all (with the exception of history-based blacklisting), for `userImpact=1.0`, you'll get user-based recommendation. The default value is `0`.
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *minRelevance*
-   *         - Type: string
-   *         - Description: **Expert option** If the *targetUserId* is provided:  Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it.
-   *     - *rotationRate*
-   *         - Type: number
-   *         - Description: **Expert option** If the *targetUserId* is provided: If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items.
-   *     - *rotationTime*
-   *         - Type: number
-   *         - Description: **Expert option** If the *targetUserId* is provided: Taking *rotationRate* into account, specifies how long time it takes to an item to recover from the penalization. For example, `rotationTime=7200.0` means that items recommended less than 2 hours ago are penalized.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   *     - *returnAbGroup*
-   *         - Type: boolean
-   *         - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
-   */
-  constructor(itemId, targetUserId, count, optional) {
-    super('POST', `/recomms/items/${itemId}/items/`, 3000, false);
-    this.itemId = itemId;
-    this.targetUserId = targetUserId;
-    this.count = count;
-    optional = optional || {};
-    this.scenario = optional.scenario;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.logic = optional.logic;
-    this.userImpact = optional.userImpact;
-    this.diversity = optional.diversity;
-    this.minRelevance = optional.minRelevance;
-    this.rotationRate = optional.rotationRate;
-    this.rotationTime = optional.rotationTime;
-    this.expertSettings = optional.expertSettings;
-    this.returnAbGroup = optional.returnAbGroup;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.targetUserId = this.targetUserId;
-    params.count = this.count;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.logic !== undefined)
-      params.logic = this.logic;
-
-    if(this.userImpact !== undefined)
-      params.userImpact = this.userImpact;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.minRelevance !== undefined)
-      params.minRelevance = this.minRelevance;
-
-    if(this.rotationRate !== undefined)
-      params.rotationRate = this.rotationRate;
-
-    if(this.rotationTime !== undefined)
-      params.rotationTime = this.rotationTime;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    if(this.returnAbGroup !== undefined)
-      params.returnAbGroup = this.returnAbGroup;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.RecommendItemsToItem = RecommendItemsToItem
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_recommend-items-to-user.js.html b/doc/requests_recommend-items-to-user.js.html deleted file mode 100644 index 03780aa..0000000 --- a/doc/requests_recommend-items-to-user.js.html +++ /dev/null @@ -1,255 +0,0 @@ - - - - - JSDoc: Source: requests/recommend-items-to-user.js - - - - - - - - - - -
- -

Source: requests/recommend-items-to-user.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user.
- * The most typical use cases are recommendations at homepage, in some "Picked just for you" section or in email.
- * The returned items are sorted by relevance (first item being the most relevant).
- * Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
- * - Let Recombee know that this recommendation was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
- * - Get subsequent recommended items when the user scrolls down (*infinite scroll*) or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- */
-class RecommendItemsToUser extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user for whom personalized recommendations are to be generated.
-   * @param {number} count - Number of items to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing".
-   * You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs.
-   * The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying of the recommended items to the user. 
-   * Example response:
-   * ```
-   *   {
-   *     "recommId": "ce52ada4-e4d9-4885-943c-407db2dee837",
-   *     "recomms": 
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "categories":   ["Electronics", "Televisions"],
-   *             "price": 342,
-   *             "url": "myshop.com/tv-178"
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "categories":   ["Home & Kitchen"],
-   *             "price": 39,
-   *             "url": "myshop.com/mixer-42"
-   *           }
-   *         }
-   *       ],
-   *      "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   {
-   *     "recommId": "a86ee8d5-cd8e-46d1-886c-8b3771d0520b",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "price": 342
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "price": 39
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   * Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   * Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *logic*
-   *         - Type: string|
-   *         - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
-   * See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details.
-   * The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
-   * Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *minRelevance*
-   *         - Type: string
-   *         - Description: **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested relevance, and may return less than *count* items when there is not enough data to fulfill it.
-   *     - *rotationRate*
-   *         - Type: number
-   *         - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.1`.
-   *     - *rotationTime*
-   *         - Type: number
-   *         - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to 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`.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   *     - *returnAbGroup*
-   *         - Type: boolean
-   *         - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
-   */
-  constructor(userId, count, optional) {
-    super('POST', `/recomms/users/${userId}/items/`, 3000, false);
-    this.userId = userId;
-    this.count = count;
-    optional = optional || {};
-    this.scenario = optional.scenario;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.logic = optional.logic;
-    this.diversity = optional.diversity;
-    this.minRelevance = optional.minRelevance;
-    this.rotationRate = optional.rotationRate;
-    this.rotationTime = optional.rotationTime;
-    this.expertSettings = optional.expertSettings;
-    this.returnAbGroup = optional.returnAbGroup;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.logic !== undefined)
-      params.logic = this.logic;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.minRelevance !== undefined)
-      params.minRelevance = this.minRelevance;
-
-    if(this.rotationRate !== undefined)
-      params.rotationRate = this.rotationRate;
-
-    if(this.rotationTime !== undefined)
-      params.rotationTime = this.rotationTime;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    if(this.returnAbGroup !== undefined)
-      params.returnAbGroup = this.returnAbGroup;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.RecommendItemsToUser = RecommendItemsToUser
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_recommend-next-items.js.html b/doc/requests_recommend-next-items.js.html deleted file mode 100644 index c219b62..0000000 --- a/doc/requests_recommend-next-items.js.html +++ /dev/null @@ -1,106 +0,0 @@ - - - - - JSDoc: Source: requests/recommend-next-items.js - - - - - - - - - - -
- -

Source: requests/recommend-next-items.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * 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 a next page.
- * It accepts `recommId` of a base recommendation request (e.g. request from the first page) and number of items that shall be returned (`count`).
- * The base request can be one of:
- *   - [Recommend items to item](https://docs.recombee.com/api.html#recommend-items-to-item)
- *   - [Recommend items to user](https://docs.recombee.com/api.html#recommend-items-to-user)
- *   - [Search items](https://docs.recombee.com/api.html#search-items)
- * All the other parameters are inherited from the base request.
- * *Recommend next items* can be called many times for a single `recommId` and each call returns different (previously not recommended) items.
- * The number of *Recommend next items* calls performed so far is returned in the `numberNextRecommsCalls` field.
- * *Recommend next items* can be requested up to 30 minutes after the base request or a previous *Recommend next items* call.
- * For billing purposes, each call to *Recommend next items* is counted as a separate recommendation request.
- */
-class RecommendNextItems extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} recommId - ID of the base recommendation request for which next recommendations should be returned
-   * @param {number} count - Number of items to be recommended
-   */
-  constructor(recommId, count) {
-    super('POST', `/recomms/next/items/${recommId}`, 3000, false);
-    this.recommId = recommId;
-    this.count = count;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.RecommendNextItems = RecommendNextItems
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_recommend-users-to-item.js.html b/doc/requests_recommend-users-to-item.js.html deleted file mode 100644 index 62336c7..0000000 --- a/doc/requests_recommend-users-to-item.js.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - JSDoc: Source: requests/recommend-users-to-item.js - - - - - - - - - - -
- -

Source: requests/recommend-users-to-item.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Recommend users that are likely to be interested in a given item.
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- * The returned users are sorted by predicted interest in the item (first user being the most interested).
- */
-class RecommendUsersToItem extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item for which the recommendations are to be generated.
-   * @param {number} count - Number of items to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing".
-   * You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs.
-   * The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If item of given *itemId* doesn't exist in the database, it creates the missing item.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying the recommended users. 
-   * Example response:
-   * ```
-   *   {
-   *     "recommId": "039b71dc-b9cc-4645-a84f-62b841eecfce",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "user-17",
-   *           "values": {
-   *             "country": "US",
-   *             "sex": "F"
-   *           }
-   *         },
-   *         {
-   *           "id": "user-2",
-   *           "values": {
-   *             "country": "CAN",
-   *             "sex": "M"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=country`:
-   * ```
-   *   {
-   *     "recommId": "b2b355dd-972a-4728-9c6b-2dc229db0678",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "user-17",
-   *           "values": {
-   *             "country": "US"
-   *           }
-   *         },
-   *         {
-   *           "id": "user-2",
-   *           "values": {
-   *             "country": "CAN"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   * Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   * Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *logic*
-   *         - Type: string|
-   *         - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
-   * See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details.
-   * The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
-   * Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   *     - *returnAbGroup*
-   *         - Type: boolean
-   *         - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
-   */
-  constructor(itemId, count, optional) {
-    super('POST', `/recomms/items/${itemId}/users/`, 50000, false);
-    this.itemId = itemId;
-    this.count = count;
-    optional = optional || {};
-    this.scenario = optional.scenario;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.logic = optional.logic;
-    this.diversity = optional.diversity;
-    this.expertSettings = optional.expertSettings;
-    this.returnAbGroup = optional.returnAbGroup;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.logic !== undefined)
-      params.logic = this.logic;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    if(this.returnAbGroup !== undefined)
-      params.returnAbGroup = this.returnAbGroup;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.RecommendUsersToItem = RecommendUsersToItem
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_recommend-users-to-user.js.html b/doc/requests_recommend-users-to-user.js.html deleted file mode 100644 index ef99f4b..0000000 --- a/doc/requests_recommend-users-to-user.js.html +++ /dev/null @@ -1,245 +0,0 @@ - - - - - JSDoc: Source: requests/recommend-users-to-user.js - - - - - - - - - - -
- -

Source: requests/recommend-users-to-user.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Get similar users as some given user, based on the user's past interactions (purchases, ratings, etc.) and values of properties.
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- * The returned users are sorted by similarity (first user being the most similar).
- */
-class RecommendUsersToUser extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User to whom we find similar users
-   * @param {number} count - Number of users to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing".
-   * You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each application performs.
-   * The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying the recommended users. 
-   * Example response:
-   * ```
-   *   {
-   *     "recommId": "9cb9c55d-50ba-4478-84fd-ab456136156e",
-   *     "recomms": 
-   *       [
-   *         {
-   *           "id": "user-17",
-   *           "values": {
-   *             "country": "US",
-   *             "sex": "F"
-   *           }
-   *         },
-   *         {
-   *           "id": "user-2",
-   *           "values": {
-   *             "country": "CAN",
-   *             "sex": "M"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=country`:
-   * ```
-   *   {
-   *     "recommId": "b326d82d-5d57-4b45-b362-c9d6f0895855",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "user-17",
-   *           "values": {
-   *             "country": "US"
-   *           }
-   *         },
-   *         {
-   *           "id": "user-2",
-   *           "values": {
-   *             "country": "CAN"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   * Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   * Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *logic*
-   *         - Type: string|
-   *         - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
-   * See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details.
-   * The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
-   * Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended users be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *minRelevance*
-   *         - Type: string
-   *         - Description: **Expert option** Specifies the threshold of how much relevant must the recommended users be. Possible values one of: "low", "medium", "high".
-   *     - *rotationRate*
-   *         - Type: number
-   *         - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an user for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended users.
-   *     - *rotationTime*
-   *         - Type: number
-   *         - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to an user to recover from the penalization. For example, `rotationTime=7200.0` means that users recommended less than 2 hours ago are penalized.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   *     - *returnAbGroup*
-   *         - Type: boolean
-   *         - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
-   */
-  constructor(userId, count, optional) {
-    super('POST', `/recomms/users/${userId}/users/`, 50000, false);
-    this.userId = userId;
-    this.count = count;
-    optional = optional || {};
-    this.scenario = optional.scenario;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.logic = optional.logic;
-    this.diversity = optional.diversity;
-    this.minRelevance = optional.minRelevance;
-    this.rotationRate = optional.rotationRate;
-    this.rotationTime = optional.rotationTime;
-    this.expertSettings = optional.expertSettings;
-    this.returnAbGroup = optional.returnAbGroup;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.logic !== undefined)
-      params.logic = this.logic;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.minRelevance !== undefined)
-      params.minRelevance = this.minRelevance;
-
-    if(this.rotationRate !== undefined)
-      params.rotationRate = this.rotationRate;
-
-    if(this.rotationTime !== undefined)
-      params.rotationTime = this.rotationTime;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    if(this.returnAbGroup !== undefined)
-      params.returnAbGroup = this.returnAbGroup;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.RecommendUsersToUser = RecommendUsersToUser
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_remove-from-group.js.html b/doc/requests_remove-from-group.js.html deleted file mode 100644 index bd06285..0000000 --- a/doc/requests_remove-from-group.js.html +++ /dev/null @@ -1,99 +0,0 @@ - - - - - JSDoc: Source: requests/remove-from-group.js - - - - - - - - - - -
- -

Source: requests/remove-from-group.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Removes an existing group item from the group.
- */
-class RemoveFromGroup extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} groupId - ID of the group from which a group item is to be removed.
-   * @param {string} itemType - Type of the item to be removed.
-   * @param {string} itemId - ID of the item iff `itemType` is `item`. ID of the group iff `itemType` is `group`.
-   */
-  constructor(groupId, itemType, itemId) {
-    super('DELETE', `/groups/${groupId}/items/`, 1000, false);
-    this.groupId = groupId;
-    this.itemType = itemType;
-    this.itemId = itemId;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.itemType = this.itemType;
-    params.itemId = this.itemId;
-    return params;
-  }
-}
-
-exports.RemoveFromGroup = RemoveFromGroup
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_remove-from-series.js.html b/doc/requests_remove-from-series.js.html deleted file mode 100644 index 296ebba..0000000 --- a/doc/requests_remove-from-series.js.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - JSDoc: Source: requests/remove-from-series.js - - - - - - - - - - -
- -

Source: requests/remove-from-series.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Removes an existing series item from the series.
- */
-class RemoveFromSeries extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} seriesId - ID of the series from which a series item is to be removed.
-   * @param {string} itemType - Type of the item to be removed.
-   * @param {string} itemId - ID of the item iff `itemType` is `item`. ID of the series iff `itemType` is `series`.
-   * @param {number} time - Time index of the item to be removed.
-   */
-  constructor(seriesId, itemType, itemId, time) {
-    super('DELETE', `/series/${seriesId}/items/`, 1000, false);
-    this.seriesId = seriesId;
-    this.itemType = itemType;
-    this.itemId = itemId;
-    this.time = time;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    params.itemType = this.itemType;
-    params.itemId = this.itemId;
-    params.time = this.time;
-    return params;
-  }
-}
-
-exports.RemoveFromSeries = RemoveFromSeries
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_request.js.html b/doc/requests_request.js.html deleted file mode 100644 index 8ce6942..0000000 --- a/doc/requests_request.js.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - JSDoc: Source: requests/request.js - - - - - - - - - - -
- -

Source: requests/request.js

- - - - - - -
-
-
'use strict';
-
-/**
- * Base class for all the requests
- */
-class Request {
-  
-  /**
-   * Construct the basis of request
-   * @param {string} method - GET/PUT/POST/DELETE
-   * @param {string} path - Path to the endpoint
-   * @param {number} timeout - Timeout in milliseconds
-   * @param {boolean} ensureHttps - If true, always use HTTPS 
-   */
-  constructor(method, path, timeout, ensureHttps) {
-    this.method = method;
-    this.path = path;
-    this.timeout = timeout;
-    this.ensureHttps = ensureHttps;
-  }
-}
-
-exports.Request = Request
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_reset-database.js.html b/doc/requests_reset-database.js.html deleted file mode 100644 index 4123a9b..0000000 --- a/doc/requests_reset-database.js.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - JSDoc: Source: requests/reset-database.js - - - - - - - - - - -
- -

Source: requests/reset-database.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Completely erases all your data, including items, item properties, series, user database, purchases, ratings, detail views, and bookmarks. Make sure the request to be never executed in production environment! Resetting your database is irreversible.
- */
-class ResetDatabase extends rqs.Request {
-
-  /**
-   * Construct the request
-   */
-  constructor() {
-    super('DELETE', '/', 100000, false);
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.ResetDatabase = ResetDatabase
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_search-items.js.html b/doc/requests_search-items.js.html deleted file mode 100644 index 8e9676f..0000000 --- a/doc/requests_search-items.js.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - JSDoc: Source: requests/search-items.js - - - - - - - - - - -
- -

Source: requests/search-items.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Full-text personalized search. The results are based on the provided `searchQuery` and also on the user's past interactions (purchases, ratings, etc.) with the items (items more suitable for the user are preferred in the results).
- * All the string and set item properties are indexed by the search engine.
- * This endpoint should be used in a search box at your website/app. It can be called multiple times as the user is typing the query in order to get the most viable suggestions based on current state of the query, or once after submitting the whole query. 
- * The returned items are sorted by relevance (first item being the most relevant).
- * Besides the recommended items, also a unique `recommId` is returned in the response. It can be used to:
- * - Let Recombee know that this search was successful (e.g. user clicked one of the recommended items). See [Reported metrics](https://docs.recombee.com/admin_ui.html#reported-metrics).
- * - Get subsequent search results when the user scrolls down or goes to the next page. See [Recommend Next Items](https://docs.recombee.com/api.html#recommend-next-items).
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- */
-class SearchItems extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user for whom personalized search will be performed.
-   * @param {string} searchQuery - Search query provided by the user. It is used for the full-text search.
-   * @param {number} count - Number of items to be returned (N for the top-N results).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular search field in your user interface.
-   * You can set various settings to the [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com). You can also see performance of each scenario in the Admin UI separately, so you can check how well each field performs.
-   * The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If the user does not exist in the database, returns a list of non-personalized search results and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying of the recommended items to the user. 
-   * Example response:
-   * ```
-   *   {
-   *     "recommId": "ce52ada4-e4d9-4885-943c-407db2dee837",
-   *     "recomms": 
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "categories":   ["Electronics", "Televisions"],
-   *             "price": 342,
-   *             "url": "myshop.com/tv-178"
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "categories":   ["Home & Kitchen"],
-   *             "price": 39,
-   *             "url": "myshop.com/mixer-42"
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   {
-   *     "recommId": "a86ee8d5-cd8e-46d1-886c-8b3771d0520b",
-   *     "recomms":
-   *       [
-   *         {
-   *           "id": "tv-178",
-   *           "values": {
-   *             "description": "4K TV with 3D feature",
-   *             "price": 342
-   *           }
-   *         },
-   *         {
-   *           "id": "mixer-42",
-   *           "values": {
-   *             "description": "Stainless Steel Mixer",
-   *             "price": 39
-   *           }
-   *         }
-   *       ],
-   *     "numberNextRecommsCalls": 0
-   *   }
-   * ```
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   * Filters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   * Boosters can be also assigned to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *logic*
-   *         - Type: string|
-   *         - Description: Logic specifies particular behavior of the recommendation models. You can pick tailored logic for your domain and use case.
-   * See [this section](https://docs.recombee.com/recommendation_logics.html) for list of available logics and other details.
-   * The difference between `logic` and `scenario` is that `logic` specifies mainly behavior, while `scenario` specifies the place where recommendations are shown to the users.
-   * Logic can be also set to a [scenario](https://docs.recombee.com/scenarios.html) in the [Admin UI](https://admin.recombee.com).
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   *     - *returnAbGroup*
-   *         - Type: boolean
-   *         - Description: If there is a custom AB-testing running, return name of group to which the request belongs.
-   */
-  constructor(userId, searchQuery, count, optional) {
-    super('POST', `/search/users/${userId}/items/`, 3000, false);
-    this.userId = userId;
-    this.searchQuery = searchQuery;
-    this.count = count;
-    optional = optional || {};
-    this.scenario = optional.scenario;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.logic = optional.logic;
-    this.expertSettings = optional.expertSettings;
-    this.returnAbGroup = optional.returnAbGroup;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.searchQuery = this.searchQuery;
-    params.count = this.count;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.logic !== undefined)
-      params.logic = this.logic;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    if(this.returnAbGroup !== undefined)
-      params.returnAbGroup = this.returnAbGroup;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.SearchItems = SearchItems
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_set-item-values.js.html b/doc/requests_set-item-values.js.html deleted file mode 100644 index dff6c65..0000000 --- a/doc/requests_set-item-values.js.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - JSDoc: Source: requests/set-item-values.js - - - - - - - - - - -
- -

Source: requests/set-item-values.js

- - - - - - -
-
-
'use strict';
-const svr = require("./set-values");
-
-/**
- * Set/update (some) property values of a given item. The properties (columns) must be previously created by [Add item property](https://docs.recombee.com/api.html#add-item-property).
- */
-class SetItemValues extends svr.SetValues {
-
-  /**
-   * Construct the request
-   * @param {string} itemId - ID of the item which will be modified.
-   * @param {Object} values - The values for the individual properties.
-   *   {
-   *     product_description: '4K TV with 3D feature',
-   *     categories:   ['Electronics', 'Televisions'],
-   *     price_usd: 342,
-   *     in_stock_from: '2016-11-16T08:00Z'
-   *   }
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the item should be created if not present in the database.
-   */
-  constructor(itemId, values, optional) {
-    super(`/items/${itemId}`, values, optional);
-  }
-}
-exports.SetItemValues = SetItemValues
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_set-user-values.js.html b/doc/requests_set-user-values.js.html deleted file mode 100644 index f22ecb9..0000000 --- a/doc/requests_set-user-values.js.html +++ /dev/null @@ -1,79 +0,0 @@ - - - - - JSDoc: Source: requests/set-user-values.js - - - - - - - - - - -
- -

Source: requests/set-user-values.js

- - - - - - -
-
-
'use strict';
-const svr = require("./set-values");
-
-/**
- * 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).
- */
-class SetUserValues extends svr.SetValues {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user which will be modified.
-   * @param {Object} values - The values for the individual properties.
-   *   {
-   *     country: 'US',
-   *     sex: 'F'
-   *   }
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the user should be created  if not present in the database.
-   */
-  constructor(userId, values, optional) {
-    super(`/users/${userId}`, values, optional);
-  }
-}
-
-exports.SetUserValues = SetUserValues
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_set-values.js.html b/doc/requests_set-values.js.html deleted file mode 100644 index 186537f..0000000 --- a/doc/requests_set-values.js.html +++ /dev/null @@ -1,102 +0,0 @@ - - - - - JSDoc: Source: requests/set-values.js - - - - - - - - - - -
- -

Source: requests/set-values.js

- - - - - - -
-
-
'use strict';
-const rqs = require("./request");
-
-/**
- * Set/update (some) property values of a given entity.
- */
-class SetValues extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {Object} values - The values for the individual properties.
-   *   {
-   *     product_description: '4K TV with 3D feature',
-   *     categories:   ['Electronics', 'Televisions'],
-   *     price_usd: 342,
-   *     in_stock_from: '2016-11-16T08:00Z'
-   *   }
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the item should be created if not present in the database.
-   */
-  constructor(path, values, optional) {
-    super('POST', path, 1000, false);
-    this.values = values;
-    optional = optional || {};
-    this.cascadeCreate = optional.cascadeCreate;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let result = this.values;
-    if(this.cascadeCreate)
-      result['!cascadeCreate'] = true;
-    return result;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    return {};
-  }
-}
-
-exports.SetValues = SetValues
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_set-view-portion.js.html b/doc/requests_set-view-portion.js.html deleted file mode 100644 index ca8e41d..0000000 --- a/doc/requests_set-view-portion.js.html +++ /dev/null @@ -1,139 +0,0 @@ - - - - - JSDoc: Source: requests/set-view-portion.js - - - - - - - - - - -
- -

Source: requests/set-view-portion.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Sets viewed portion of an item (for example a video or article) by a user (at a session).
- * If you send new request with the same (`userId`, `itemId`, `sessionId`), the portion gets updated.
- */
-class SetViewPortion extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - User who viewed a portion of the item
-   * @param {string} itemId - Viewed item
-   * @param {number} portion - Viewed portion of the item (number between 0.0 (viewed nothing) and 1.0 (viewed full item) ). It should be the really viewed part of the item, no matter seeking, so for example if the user seeked immediately to half of the item and then viewed 10% of the item, the `portion` should still be `0.1`.
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *sessionId*
-   *         - Type: string
-   *         - Description: ID of session in which the user viewed the item. Default is `null` (`None`, `nil`, `NULL` etc. depending on language).
-   *     - *timestamp*
-   *         - Type: string|number
-   *         - Description: UTC timestamp of the rating as ISO8601-1 pattern or UTC epoch time. The default value is the current time.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: Sets whether the given user/item should be created if not present in the database.
-   *     - *recommId*
-   *         - Type: string
-   *         - Description: If this view portion is based on a recommendation request, `recommId` is the id of the clicked recommendation.
-   *     - *additionalData*
-   *         - Type: 
-   *         - Description: A dictionary of additional data for the interaction.
-   */
-  constructor(userId, itemId, portion, optional) {
-    super('POST', '/viewportions/', 1000, false);
-    this.userId = userId;
-    this.itemId = itemId;
-    this.portion = portion;
-    optional = optional || {};
-    this.sessionId = optional.sessionId;
-    this.timestamp = optional.timestamp;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.recommId = optional.recommId;
-    this.additionalData = optional.additionalData;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.userId = this.userId;
-    params.itemId = this.itemId;
-    params.portion = this.portion;
-
-    if(this.sessionId !== undefined)
-      params.sessionId = this.sessionId;
-
-    if(this.timestamp !== undefined)
-      params.timestamp = this.timestamp;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.recommId !== undefined)
-      params.recommId = this.recommId;
-
-    if(this.additionalData !== undefined)
-      params.additionalData = this.additionalData;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.SetViewPortion = SetViewPortion
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/requests_user-based-recommendation.js.html b/doc/requests_user-based-recommendation.js.html deleted file mode 100644 index d1725e8..0000000 --- a/doc/requests_user-based-recommendation.js.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - JSDoc: Source: requests/user-based-recommendation.js - - - - - - - - - - -
- -

Source: requests/user-based-recommendation.js

- - - - - - -
-
-
/*
- This file is auto-generated, do not edit
-*/
-
-'use strict';
-const rqs = require("./request");
-
-/**
- * Based on user's past interactions (purchases, ratings, etc.) with the items, recommends top-N items that are most likely to be of high value for a given user.
- * It is also possible to use POST HTTP method (for example in case of very long ReQL filter) - query parameters then become body parameters.
- * @deprecated Deprecated since version 2.0.0. Use RecommendItemsToUser request instead.
- */
-class UserBasedRecommendation extends rqs.Request {
-
-  /**
-   * Construct the request
-   * @param {string} userId - ID of the user for whom the personalized recommendations are to be generated.
-   * @param {number} count - Number of items to be recommended (N for the top-N recommendation).
-   * @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
-   * - Allowed parameters:
-   *     - *filter*
-   *         - Type: string
-   *         - Description: Boolean-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to filter recommended items based on the values of their attributes.
-   *     - *booster*
-   *         - Type: string
-   *         - Description: Number-returning [ReQL](https://docs.recombee.com/reql.html) expression which allows you to boost recommendation rate of some items based on the values of their attributes.
-   *     - *allowNonexistent*
-   *         - Type: boolean
-   *         - Description: If the user does not exist in the database, returns a list of non-personalized recommendations instead of causing HTTP 404 error. It doesn't create the user in the database.
-   *     - *cascadeCreate*
-   *         - Type: boolean
-   *         - Description: If the user does not exist in the database, returns a list of non-personalized recommendations and creates the user in the database. This allows for example rotations in the following recommendations for that user, as the user will be already known to the system.
-   *     - *scenario*
-   *         - Type: string
-   *         - Description: Scenario defines a particular application of recommendations. It can be for example "homepage", "cart" or "emailing". You can see each scenario in the UI separately, so you can check how well each application performs. The AI which optimizes models in order to get the best results may optimize different scenarios separately, or even use different models in each of the scenarios.
-   *     - *returnProperties*
-   *         - Type: boolean
-   *         - 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 for easy displaying of the recommended items to the user. 
-   * Example response:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "categories":   ["Electronics", "Televisions"],
-   *       "price": 342,
-   *       "url": "myshop.com/tv-178"
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "categories":   ["Home & Kitchen"],
-   *       "price": 39,
-   *       "url": "myshop.com/mixer-42"
-   *     }
-   *   ]
-   * ```
-   *     - *includedProperties*
-   *         - Type: string[]
-   *         - Description: Allows to specify, which properties should be returned when `returnProperties=true` is set. The properties are given as a comma-separated list. 
-   * Example response for `includedProperties=description,price`:
-   * ```
-   *   [
-   *     {
-   *       "itemId": "tv-178",
-   *       "description": "4K TV with 3D feature",
-   *       "price": 342
-   *     },
-   *     {
-   *       "itemId": "mixer-42",
-   *       "description": "Stainless Steel Mixer",
-   *       "price": 39
-   *     }
-   *   ]
-   * ```
-   *     - *diversity*
-   *         - Type: number
-   *         - Description: **Expert option** Real number from [0.0, 1.0] which determines how much mutually dissimilar should the recommended items be. The default value is 0.0, i.e., no diversification. Value 1.0 means maximal diversification.
-   *     - *minRelevance*
-   *         - Type: string
-   *         - Description: **Expert option** Specifies the threshold of how much relevant must the recommended items be to the user. Possible values one of: "low", "medium", "high". The default value is "low", meaning that the system attempts to recommend number of items equal to *count* at any cost. If there are not enough data (such as interactions or item properties), this may even lead to bestseller-based recommendations to be appended to reach the full *count*. This behavior may be suppressed by using "medium" or "high" values. In such case, the system only recommends items of at least the requested qualit, and may return less than *count* items when there is not enough data to fulfill it.
-   *     - *rotationRate*
-   *         - Type: number
-   *         - Description: **Expert option** If your users browse the system in real-time, it may easily happen that you wish to offer them recommendations multiple times. Here comes the question: how much should the recommendations change? Should they remain the same, or should they rotate? Recombee API allows you to control this per-request in backward fashion. You may penalize an item for being recommended in the near past. For the specific user, `rotationRate=1` means maximal rotation, `rotationRate=0` means absolutely no rotation. You may also use, for example `rotationRate=0.2` for only slight rotation of recommended items. Default: `0.1`.
-   *     - *rotationTime*
-   *         - Type: number
-   *         - Description: **Expert option** Taking *rotationRate* into account, specifies how long time it takes to 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`.
-   *     - *expertSettings*
-   *         - Type: 
-   *         - Description: Dictionary of custom options.
-   */
-  constructor(userId, count, optional) {
-    super('POST', `/users/${userId}/recomms/`, 3000, false);
-    this.userId = userId;
-    this.count = count;
-    optional = optional || {};
-    this.filter = optional.filter;
-    this.booster = optional.booster;
-    this.allowNonexistent = optional.allowNonexistent;
-    this.cascadeCreate = optional.cascadeCreate;
-    this.scenario = optional.scenario;
-    this.returnProperties = optional.returnProperties;
-    this.includedProperties = optional.includedProperties;
-    this.diversity = optional.diversity;
-    this.minRelevance = optional.minRelevance;
-    this.rotationRate = optional.rotationRate;
-    this.rotationTime = optional.rotationTime;
-    this.expertSettings = optional.expertSettings;
-  }
-
-  /**
-   * Get body parameters
-   * @return {Object} The values of body parameters (name of parameter: value of the parameter)
-   */
-  bodyParameters() {
-    let params = {};
-    params.count = this.count;
-
-    if(this.filter !== undefined)
-      params.filter = this.filter;
-
-    if(this.booster !== undefined)
-      params.booster = this.booster;
-
-    if(this.allowNonexistent !== undefined)
-      params.allowNonexistent = this.allowNonexistent;
-
-    if(this.cascadeCreate !== undefined)
-      params.cascadeCreate = this.cascadeCreate;
-
-    if(this.scenario !== undefined)
-      params.scenario = this.scenario;
-
-    if(this.returnProperties !== undefined)
-      params.returnProperties = this.returnProperties;
-
-    if(this.includedProperties !== undefined)
-      params.includedProperties = this.includedProperties;
-
-    if(this.diversity !== undefined)
-      params.diversity = this.diversity;
-
-    if(this.minRelevance !== undefined)
-      params.minRelevance = this.minRelevance;
-
-    if(this.rotationRate !== undefined)
-      params.rotationRate = this.rotationRate;
-
-    if(this.rotationTime !== undefined)
-      params.rotationTime = this.rotationTime;
-
-    if(this.expertSettings !== undefined)
-      params.expertSettings = this.expertSettings;
-
-    return params;
-  }
-
-  /**
-   * Get query parameters
-   * @return {Object} The values of query parameters (name of parameter: value of the parameter)
-   */
-  queryParameters() {
-    let params = {};
-    return params;
-  }
-}
-
-exports.UserBasedRecommendation = UserBasedRecommendation
-
-
-
- - - - -
- - - -
- - - - - - - diff --git a/doc/scripts/linenumber.js b/doc/scripts/linenumber.js deleted file mode 100644 index 4354785..0000000 --- a/doc/scripts/linenumber.js +++ /dev/null @@ -1,25 +0,0 @@ -/*global document */ -(() => { - const source = document.getElementsByClassName('prettyprint source linenums'); - let i = 0; - let lineNumber = 0; - let lineId; - let lines; - let totalLines; - let anchorHash; - - if (source && source[0]) { - anchorHash = document.location.hash.substring(1); - lines = source[0].getElementsByTagName('li'); - totalLines = lines.length; - - for (; i < totalLines; i++) { - lineNumber++; - lineId = `line${lineNumber}`; - lines[i].id = lineId; - if (lineId === anchorHash) { - lines[i].className += ' selected'; - } - } - } -})(); diff --git a/doc/scripts/prettify/Apache-License-2.0.txt b/doc/scripts/prettify/Apache-License-2.0.txt deleted file mode 100644 index d645695..0000000 --- a/doc/scripts/prettify/Apache-License-2.0.txt +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/doc/scripts/prettify/lang-css.js b/doc/scripts/prettify/lang-css.js deleted file mode 100644 index 041e1f5..0000000 --- a/doc/scripts/prettify/lang-css.js +++ /dev/null @@ -1,2 +0,0 @@ -PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\f\r ]+/,null," \t\r\n "]],[["str",/^"(?:[^\n\f\r"\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*"/,null],["str",/^'(?:[^\n\f\r'\\]|\\(?:\r\n?|\n|\f)|\\[\S\s])*'/,null],["lang-css-str",/^url\(([^"')]*)\)/i],["kwd",/^(?:url|rgb|!important|@import|@page|@media|@charset|inherit)(?=[^\w-]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^*/][^*]*\*+)*\//],["com", -/^(?:<\!--|--\>)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#[\da-f]{3,6}/i],["pln",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i],["pun",/^[^\s\w"']+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|\\[\da-f]+ ?)(?:[\w-]|\\\\[\da-f]+ ?)*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^"')]+/]]),["css-str"]); diff --git a/doc/scripts/prettify/prettify.js b/doc/scripts/prettify/prettify.js deleted file mode 100644 index eef5ad7..0000000 --- a/doc/scripts/prettify/prettify.js +++ /dev/null @@ -1,28 +0,0 @@ -var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; -(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.toString(16);a=String.fromCharCode(a);if(a==="\\"||a==="-"||a==="["||a==="]")a="\\"+a;return a}function h(a){for(var f=a.substring(1,a.length-1).match(/\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\S\s]|[^\\]/g),a= -[],b=[],o=f[0]==="^",c=o?1:0,i=f.length;c122||(d<65||j>90||b.push([Math.max(65,j)|32,Math.min(d,90)|32]),d<97||j>122||b.push([Math.max(97,j)&-33,Math.min(d,122)&-33]))}}b.sort(function(a,f){return a[0]-f[0]||f[1]-a[1]});f=[];j=[NaN,NaN];for(c=0;ci[0]&&(i[1]+1>i[0]&&b.push("-"),b.push(e(i[1])));b.push("]");return b.join("")}function y(a){for(var f=a.source.match(/\[(?:[^\\\]]|\\[\S\s])*]|\\u[\dA-Fa-f]{4}|\\x[\dA-Fa-f]{2}|\\\d+|\\[^\dux]|\(\?[!:=]|[()^]|[^()[\\^]+/g),b=f.length,d=[],c=0,i=0;c=2&&a==="["?f[c]=h(j):a!=="\\"&&(f[c]=j.replace(/[A-Za-z]/g,function(a){a=a.charCodeAt(0);return"["+String.fromCharCode(a&-33,a|32)+"]"}));return f.join("")}for(var t=0,s=!1,l=!1,p=0,d=a.length;p=5&&"lang-"===b.substring(0,5))&&!(o&&typeof o[1]==="string"))c=!1,b="src";c||(r[f]=b)}i=d;d+=f.length;if(c){c=o[1];var j=f.indexOf(c),k=j+c.length;o[2]&&(k=f.length-o[2].length,j=k-c.length);b=b.substring(5);B(l+i,f.substring(0,j),e,p);B(l+i+j,c,C(b,c),p);B(l+i+k,f.substring(k),e,p)}else p.push(l+i,b)}a.e=p}var h={},y;(function(){for(var e=a.concat(m), -l=[],p={},d=0,g=e.length;d=0;)h[n.charAt(k)]=r;r=r[1];n=""+r;p.hasOwnProperty(n)||(l.push(r),p[n]=q)}l.push(/[\S\s]/);y=L(l)})();var t=m.length;return e}function u(a){var m=[],e=[];a.tripleQuotedStrings?m.push(["str",/^(?:'''(?:[^'\\]|\\[\S\s]|''?(?=[^']))*(?:'''|$)|"""(?:[^"\\]|\\[\S\s]|""?(?=[^"]))*(?:"""|$)|'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$))/,q,"'\""]):a.multiLineStrings?m.push(["str",/^(?:'(?:[^'\\]|\\[\S\s])*(?:'|$)|"(?:[^"\\]|\\[\S\s])*(?:"|$)|`(?:[^\\`]|\\[\S\s])*(?:`|$))/, -q,"'\"`"]):m.push(["str",/^(?:'(?:[^\n\r'\\]|\\.)*(?:'|$)|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,q,"\"'"]);a.verbatimStrings&&e.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,q]);var h=a.hashComments;h&&(a.cStyleComments?(h>1?m.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,q,"#"]):m.push(["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,q,"#"]),e.push(["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,q])):m.push(["com",/^#[^\n\r]*/, -q,"#"]));a.cStyleComments&&(e.push(["com",/^\/\/[^\n\r]*/,q]),e.push(["com",/^\/\*[\S\s]*?(?:\*\/|$)/,q]));a.regexLiterals&&e.push(["lang-regex",/^(?:^^\.?|[!+-]|!=|!==|#|%|%=|&|&&|&&=|&=|\(|\*|\*=|\+=|,|-=|->|\/|\/=|:|::|;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|[?@[^]|\^=|\^\^|\^\^=|{|\||\|=|\|\||\|\|=|~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\s*(\/(?=[^*/])(?:[^/[\\]|\\[\S\s]|\[(?:[^\\\]]|\\[\S\s])*(?:]|$))+\/)/]);(h=a.types)&&e.push(["typ",h]);a=(""+a.keywords).replace(/^ | $/g, -"");a.length&&e.push(["kwd",RegExp("^(?:"+a.replace(/[\s,]+/g,"|")+")\\b"),q]);m.push(["pln",/^\s+/,q," \r\n\t\xa0"]);e.push(["lit",/^@[$_a-z][\w$@]*/i,q],["typ",/^(?:[@_]?[A-Z]+[a-z][\w$@]*|\w+_t\b)/,q],["pln",/^[$_a-z][\w$@]*/i,q],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,q,"0123456789"],["pln",/^\\[\S\s]?/,q],["pun",/^.[^\s\w"-$'./@\\`]*/,q]);return x(m,e)}function D(a,m){function e(a){switch(a.nodeType){case 1:if(k.test(a.className))break;if("BR"===a.nodeName)h(a), -a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)e(a);break;case 3:case 4:if(p){var b=a.nodeValue,d=b.match(t);if(d){var c=b.substring(0,d.index);a.nodeValue=c;(b=b.substring(d.index+d[0].length))&&a.parentNode.insertBefore(s.createTextNode(b),a.nextSibling);h(a);c||a.parentNode.removeChild(a)}}}}function h(a){function b(a,d){var e=d?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),g=a.nextSibling;f.appendChild(e);for(var h=g;h;h=g)g=h.nextSibling,f.appendChild(h)}return e} -for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),e;(e=a.parentNode)&&e.nodeType===1;)a=e;d.push(a)}var k=/(?:^|\s)nocode(?:\s|$)/,t=/\r\n?|\n/,s=a.ownerDocument,l;a.currentStyle?l=a.currentStyle.whiteSpace:window.getComputedStyle&&(l=s.defaultView.getComputedStyle(a,q).getPropertyValue("white-space"));var p=l&&"pre"===l.substring(0,3);for(l=s.createElement("LI");a.firstChild;)l.appendChild(a.firstChild);for(var d=[l],g=0;g=0;){var h=m[e];A.hasOwnProperty(h)?window.console&&console.warn("cannot override language handler %s",h):A[h]=a}}function C(a,m){if(!a||!A.hasOwnProperty(a))a=/^\s*=o&&(h+=2);e>=c&&(a+=2)}}catch(w){"console"in window&&console.log(w&&w.stack?w.stack:w)}}var v=["break,continue,do,else,for,if,return,while"],w=[[v,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"], -"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],F=[w,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],G=[w,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"], -H=[G,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"],w=[w,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],I=[v,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"], -J=[v,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[v,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],K=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/,N=/\S/,O=u({keywords:[F,H,w,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"+ -I,J,v],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),A={};k(O,["default-code"]);k(x([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\S\s]*?(?:--\>|$)/],["lang-",/^<\?([\S\s]+?)(?:\?>|$)/],["lang-",/^<%([\S\s]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\S\s]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\S\s]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\S\s]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]), -["default-markup","htm","html","mxml","xhtml","xml","xsl"]);k(x([["pln",/^\s+/,q," \t\r\n"],["atv",/^(?:"[^"]*"?|'[^']*'?)/,q,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w-.:]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^\s"'>]*(?:[^\s"'/>]|\/(?=\s)))/],["pun",/^[/<->]+/],["lang-js",/^on\w+\s*=\s*"([^"]+)"/i],["lang-js",/^on\w+\s*=\s*'([^']+)'/i],["lang-js",/^on\w+\s*=\s*([^\s"'>]+)/i],["lang-css",/^style\s*=\s*"([^"]+)"/i],["lang-css",/^style\s*=\s*'([^']+)'/i],["lang-css", -/^style\s*=\s*([^\s"'>]+)/i]]),["in.tag"]);k(x([],[["atv",/^[\S\s]+/]]),["uq.val"]);k(u({keywords:F,hashComments:!0,cStyleComments:!0,types:K}),["c","cc","cpp","cxx","cyc","m"]);k(u({keywords:"null,true,false"}),["json"]);k(u({keywords:H,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:K}),["cs"]);k(u({keywords:G,cStyleComments:!0}),["java"]);k(u({keywords:v,hashComments:!0,multiLineStrings:!0}),["bsh","csh","sh"]);k(u({keywords:I,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}), -["cv","py"]);k(u({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["perl","pl","pm"]);k(u({keywords:J,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb"]);k(u({keywords:w,cStyleComments:!0,regexLiterals:!0}),["js"]);k(u({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes", -hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);k(x([],[["str",/^[\S\s]+/]]),["regex"]);window.prettyPrintOne=function(a,m,e){var h=document.createElement("PRE");h.innerHTML=a;e&&D(h,e);E({g:m,i:e,h:h});return h.innerHTML};window.prettyPrint=function(a){function m(){for(var e=window.PR_SHOULD_USE_CONTINUATION?l.now()+250:Infinity;p=0){var k=k.match(g),f,b;if(b= -!k){b=n;for(var o=void 0,c=b.firstChild;c;c=c.nextSibling)var i=c.nodeType,o=i===1?o?b:c:i===3?N.test(c.nodeValue)?b:o:o;b=(f=o===b?void 0:o)&&"CODE"===f.tagName}b&&(k=f.className.match(g));k&&(k=k[1]);b=!1;for(o=n.parentNode;o;o=o.parentNode)if((o.tagName==="pre"||o.tagName==="code"||o.tagName==="xmp")&&o.className&&o.className.indexOf("prettyprint")>=0){b=!0;break}b||((b=(b=n.className.match(/\blinenums\b(?::(\d+))?/))?b[1]&&b[1].length?+b[1]:!0:!1)&&D(n,b),d={g:k,h:n,i:b},E(d))}}p th:last-child { border-right: 1px solid #ddd; } - -.ancestors, .attribs { color: #999; } -.ancestors a, .attribs a -{ - color: #999 !important; - text-decoration: none; -} - -.clear -{ - clear: both; -} - -.important -{ - font-weight: bold; - color: #950B02; -} - -.yes-def { - text-indent: -1000px; -} - -.type-signature { - color: #aaa; -} - -.name, .signature { - font-family: Consolas, Monaco, 'Andale Mono', monospace; -} - -.details { margin-top: 14px; border-left: 2px solid #DDD; } -.details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; } -.details dd { margin-left: 70px; } -.details ul { margin: 0; } -.details ul { list-style-type: none; } -.details li { margin-left: 30px; padding-top: 6px; } -.details pre.prettyprint { margin: 0 } -.details .object-value { padding-top: 0; } - -.description { - margin-bottom: 1em; - margin-top: 1em; -} - -.code-caption -{ - font-style: italic; - font-size: 107%; - margin: 0; -} - -.source -{ - border: 1px solid #ddd; - width: 80%; - overflow: auto; -} - -.prettyprint.source { - width: inherit; -} - -.source code -{ - font-size: 100%; - line-height: 18px; - display: block; - padding: 4px 12px; - margin: 0; - background-color: #fff; - color: #4D4E53; -} - -.prettyprint code span.line -{ - display: inline-block; -} - -.prettyprint.linenums -{ - padding-left: 70px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; -} - -.prettyprint.linenums ol -{ - padding-left: 0; -} - -.prettyprint.linenums li -{ - border-left: 3px #ddd solid; -} - -.prettyprint.linenums li.selected, -.prettyprint.linenums li.selected * -{ - background-color: lightyellow; -} - -.prettyprint.linenums li * -{ - -webkit-user-select: text; - -moz-user-select: text; - -ms-user-select: text; - user-select: text; -} - -.params .name, .props .name, .name code { - color: #4D4E53; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 100%; -} - -.params td.description > p:first-child, -.props td.description > p:first-child -{ - margin-top: 0; - padding-top: 0; -} - -.params td.description > p:last-child, -.props td.description > p:last-child -{ - margin-bottom: 0; - padding-bottom: 0; -} - -.disabled { - color: #454545; -} diff --git a/doc/styles/prettify-jsdoc.css b/doc/styles/prettify-jsdoc.css deleted file mode 100644 index 5a2526e..0000000 --- a/doc/styles/prettify-jsdoc.css +++ /dev/null @@ -1,111 +0,0 @@ -/* JSDoc prettify.js theme */ - -/* plain text */ -.pln { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* string content */ -.str { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a keyword */ -.kwd { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a comment */ -.com { - font-weight: normal; - font-style: italic; -} - -/* a type name */ -.typ { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* a literal value */ -.lit { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* punctuation */ -.pun { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* lisp open bracket */ -.opn { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* lisp close bracket */ -.clo { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a markup tag name */ -.tag { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a markup attribute name */ -.atn { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a markup attribute value */ -.atv { - color: #006400; - font-weight: normal; - font-style: normal; -} - -/* a declaration */ -.dec { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* a variable name */ -.var { - color: #000000; - font-weight: normal; - font-style: normal; -} - -/* a function name */ -.fun { - color: #000000; - font-weight: bold; - font-style: normal; -} - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; -} diff --git a/doc/styles/prettify-tomorrow.css b/doc/styles/prettify-tomorrow.css deleted file mode 100644 index b6f92a7..0000000 --- a/doc/styles/prettify-tomorrow.css +++ /dev/null @@ -1,132 +0,0 @@ -/* Tomorrow Theme */ -/* Original theme - https://github.com/chriskempson/tomorrow-theme */ -/* Pretty printing styles. Used with prettify.js. */ -/* SPAN elements with the classes below are added by prettyprint. */ -/* plain text */ -.pln { - color: #4d4d4c; } - -@media screen { - /* string content */ - .str { - color: #718c00; } - - /* a keyword */ - .kwd { - color: #8959a8; } - - /* a comment */ - .com { - color: #8e908c; } - - /* a type name */ - .typ { - color: #4271ae; } - - /* a literal value */ - .lit { - color: #f5871f; } - - /* punctuation */ - .pun { - color: #4d4d4c; } - - /* lisp open bracket */ - .opn { - color: #4d4d4c; } - - /* lisp close bracket */ - .clo { - color: #4d4d4c; } - - /* a markup tag name */ - .tag { - color: #c82829; } - - /* a markup attribute name */ - .atn { - color: #f5871f; } - - /* a markup attribute value */ - .atv { - color: #3e999f; } - - /* a declaration */ - .dec { - color: #f5871f; } - - /* a variable name */ - .var { - color: #c82829; } - - /* a function name */ - .fun { - color: #4271ae; } } -/* Use higher contrast and text-weight for printable form. */ -@media print, projection { - .str { - color: #060; } - - .kwd { - color: #006; - font-weight: bold; } - - .com { - color: #600; - font-style: italic; } - - .typ { - color: #404; - font-weight: bold; } - - .lit { - color: #044; } - - .pun, .opn, .clo { - color: #440; } - - .tag { - color: #006; - font-weight: bold; } - - .atn { - color: #404; } - - .atv { - color: #060; } } -/* Style */ -/* -pre.prettyprint { - background: white; - font-family: Consolas, Monaco, 'Andale Mono', monospace; - font-size: 12px; - line-height: 1.5; - border: 1px solid #ccc; - padding: 10px; } -*/ - -/* Specify class=linenums on a pre to get line numbering */ -ol.linenums { - margin-top: 0; - margin-bottom: 0; } - -/* IE indents via margin-left */ -li.L0, -li.L1, -li.L2, -li.L3, -li.L4, -li.L5, -li.L6, -li.L7, -li.L8, -li.L9 { - /* */ } - -/* Alternate shading for lines */ -li.L1, -li.L3, -li.L5, -li.L7, -li.L9 { - /* */ }