recombee-api-client 4.0.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/doc/AddBookmark.html +506 -0
- package/doc/AddCartAddition.html +512 -0
- package/doc/AddDetailView.html +509 -0
- package/doc/AddGroup.html +447 -0
- package/doc/AddItem.html +448 -0
- package/doc/AddItemProperty.html +478 -0
- package/doc/AddPurchase.html +515 -0
- package/doc/AddRating.html +529 -0
- package/doc/AddSearchSynonym.html +501 -0
- package/doc/AddSeries.html +447 -0
- package/doc/AddUser.html +447 -0
- package/doc/AddUserProperty.html +476 -0
- package/doc/ApiClient.html +433 -0
- package/doc/ApiError.html +170 -0
- package/doc/Batch.html +476 -0
- package/doc/DeleteAllSearchSynonyms.html +398 -0
- package/doc/DeleteBookmark.html +497 -0
- package/doc/DeleteCartAddition.html +497 -0
- package/doc/DeleteDetailView.html +497 -0
- package/doc/DeleteGroup.html +448 -0
- package/doc/DeleteItem.html +449 -0
- package/doc/DeleteItemProperty.html +447 -0
- package/doc/DeleteMoreItems.html +448 -0
- package/doc/DeletePurchase.html +497 -0
- package/doc/DeleteRating.html +497 -0
- package/doc/DeleteSearchSynonym.html +447 -0
- package/doc/DeleteSeries.html +448 -0
- package/doc/DeleteUser.html +448 -0
- package/doc/DeleteUserProperty.html +447 -0
- package/doc/DeleteViewPortion.html +497 -0
- package/doc/GetItemPropertyInfo.html +447 -0
- package/doc/GetItemValues.html +447 -0
- package/doc/GetUserPropertyInfo.html +447 -0
- package/doc/GetUserValues.html +447 -0
- package/doc/InsertToGroup.html +520 -0
- package/doc/InsertToSeries.html +543 -0
- package/doc/ListGroupItems.html +447 -0
- package/doc/ListGroups.html +398 -0
- package/doc/ListItemBookmarks.html +447 -0
- package/doc/ListItemCartAdditions.html +447 -0
- package/doc/ListItemDetailViews.html +447 -0
- package/doc/ListItemProperties.html +398 -0
- package/doc/ListItemPurchases.html +447 -0
- package/doc/ListItemRatings.html +447 -0
- package/doc/ListItemViewPortions.html +447 -0
- package/doc/ListItems.html +497 -0
- package/doc/ListSearchSynonyms.html +454 -0
- package/doc/ListSeries.html +398 -0
- package/doc/ListSeriesItems.html +447 -0
- package/doc/ListUserBookmarks.html +447 -0
- package/doc/ListUserCartAdditions.html +447 -0
- package/doc/ListUserDetailViews.html +447 -0
- package/doc/ListUserProperties.html +398 -0
- package/doc/ListUserPurchases.html +447 -0
- package/doc/ListUserRatings.html +447 -0
- package/doc/ListUserViewPortions.html +447 -0
- package/doc/ListUsers.html +491 -0
- package/doc/MergeUsers.html +498 -0
- package/doc/RecommendItemsToItem.html +635 -0
- package/doc/RecommendItemsToUser.html +598 -0
- package/doc/RecommendNextItems.html +480 -0
- package/doc/RecommendUsersToItem.html +579 -0
- package/doc/RecommendUsersToUser.html +588 -0
- package/doc/RemoveFromGroup.html +493 -0
- package/doc/RemoveFromSeries.html +516 -0
- package/doc/Request.html +292 -0
- package/doc/ResetDatabase.html +398 -0
- package/doc/ResponseError.html +269 -0
- package/doc/SearchItems.html +610 -0
- package/doc/SetItemValues.html +279 -0
- package/doc/SetUserValues.html +277 -0
- package/doc/SetValues.html +480 -0
- package/doc/SetViewPortion.html +533 -0
- package/doc/TimeoutError.html +246 -0
- package/doc/UpdateMoreItems.html +472 -0
- package/doc/api-client.js.html +248 -0
- package/doc/errors_api-error.js.html +71 -0
- package/doc/errors_response-error.js.html +72 -0
- package/doc/errors_timeout-error.js.html +71 -0
- package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/doc/index.html +65 -0
- package/doc/requests_add-bookmark.js.html +128 -0
- package/doc/requests_add-cart-addition.js.html +142 -0
- package/doc/requests_add-detail-view.js.html +135 -0
- package/doc/requests_add-group.js.html +93 -0
- package/doc/requests_add-item-property.js.html +104 -0
- package/doc/requests_add-item.js.html +94 -0
- package/doc/requests_add-purchase.js.html +149 -0
- package/doc/requests_add-rating.js.html +131 -0
- package/doc/requests_add-search-synonym.js.html +111 -0
- package/doc/requests_add-series.js.html +93 -0
- package/doc/requests_add-user-property.js.html +102 -0
- package/doc/requests_add-user.js.html +93 -0
- package/doc/requests_batch.js.html +121 -0
- package/doc/requests_delete-all-search-synonyms.js.html +91 -0
- package/doc/requests_delete-bookmark.js.html +106 -0
- package/doc/requests_delete-cart-addition.js.html +106 -0
- package/doc/requests_delete-detail-view.js.html +106 -0
- package/doc/requests_delete-group.js.html +94 -0
- package/doc/requests_delete-item-property.js.html +93 -0
- package/doc/requests_delete-item.js.html +95 -0
- package/doc/requests_delete-more-items.js.html +95 -0
- package/doc/requests_delete-purchase.js.html +106 -0
- package/doc/requests_delete-rating.js.html +106 -0
- package/doc/requests_delete-search-synonym.js.html +93 -0
- package/doc/requests_delete-series.js.html +94 -0
- package/doc/requests_delete-user-property.js.html +93 -0
- package/doc/requests_delete-user.js.html +94 -0
- package/doc/requests_delete-view-portion.js.html +106 -0
- package/doc/requests_get-item-property-info.js.html +93 -0
- package/doc/requests_get-item-values.js.html +93 -0
- package/doc/requests_get-user-property-info.js.html +93 -0
- package/doc/requests_get-user-values.js.html +93 -0
- package/doc/requests_insert-to-group.js.html +109 -0
- package/doc/requests_insert-to-series.js.html +112 -0
- package/doc/requests_list-group-items.js.html +93 -0
- package/doc/requests_list-groups.js.html +91 -0
- package/doc/requests_list-item-bookmarks.js.html +93 -0
- package/doc/requests_list-item-cart-additions.js.html +93 -0
- package/doc/requests_list-item-detail-views.js.html +93 -0
- package/doc/requests_list-item-properties.js.html +91 -0
- package/doc/requests_list-item-purchases.js.html +93 -0
- package/doc/requests_list-item-ratings.js.html +93 -0
- package/doc/requests_list-item-view-portions.js.html +93 -0
- package/doc/requests_list-items.js.html +158 -0
- package/doc/requests_list-search-synonyms.js.html +106 -0
- package/doc/requests_list-series-items.js.html +93 -0
- package/doc/requests_list-series.js.html +91 -0
- package/doc/requests_list-user-bookmarks.js.html +93 -0
- package/doc/requests_list-user-cart-additions.js.html +93 -0
- package/doc/requests_list-user-detail-views.js.html +93 -0
- package/doc/requests_list-user-properties.js.html +91 -0
- package/doc/requests_list-user-purchases.js.html +93 -0
- package/doc/requests_list-user-ratings.js.html +93 -0
- package/doc/requests_list-user-view-portions.js.html +93 -0
- package/doc/requests_list-users.js.html +152 -0
- package/doc/requests_merge-users.js.html +105 -0
- package/doc/requests_recommend-items-to-item.js.html +276 -0
- package/doc/requests_recommend-items-to-user.js.html +255 -0
- package/doc/requests_recommend-next-items.js.html +106 -0
- package/doc/requests_recommend-users-to-item.js.html +224 -0
- package/doc/requests_recommend-users-to-user.js.html +245 -0
- package/doc/requests_remove-from-group.js.html +99 -0
- package/doc/requests_remove-from-series.js.html +102 -0
- package/doc/requests_request.js.html +73 -0
- package/doc/requests_reset-database.js.html +91 -0
- package/doc/requests_search-items.js.html +231 -0
- package/doc/requests_set-item-values.js.html +80 -0
- package/doc/requests_set-user-values.js.html +79 -0
- package/doc/requests_set-values.js.html +102 -0
- package/doc/requests_set-view-portion.js.html +139 -0
- package/doc/requests_update-more-items.js.html +104 -0
- package/doc/scripts/linenumber.js +25 -0
- package/doc/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/doc/scripts/prettify/lang-css.js +2 -0
- package/doc/scripts/prettify/prettify.js +28 -0
- package/doc/styles/jsdoc-default.css +358 -0
- package/doc/styles/prettify-jsdoc.css +111 -0
- package/doc/styles/prettify-tomorrow.css +132 -0
- package/lib/api-client.js +3 -2
- package/lib/requests/add-bookmark.js +1 -1
- package/lib/requests/add-cart-addition.js +3 -3
- package/lib/requests/add-detail-view.js +1 -1
- package/lib/requests/add-group.js +1 -1
- package/lib/requests/add-item-property.js +1 -1
- package/lib/requests/add-item.js +2 -2
- package/lib/requests/add-manual-reql-segment.js +58 -0
- package/lib/requests/add-purchase.js +4 -4
- package/lib/requests/add-rating.js +1 -1
- package/lib/requests/add-series.js +1 -1
- package/lib/requests/add-user-property.js +2 -2
- package/lib/requests/create-auto-reql-segmentation.js +66 -0
- package/lib/requests/create-manual-reql-segmentation.js +63 -0
- package/lib/requests/create-property-based-segmentation.js +67 -0
- package/lib/requests/delete-bookmark.js +3 -3
- package/lib/requests/delete-cart-addition.js +3 -3
- package/lib/requests/delete-detail-view.js +3 -3
- package/lib/requests/delete-group.js +2 -2
- package/lib/requests/delete-item.js +2 -2
- package/lib/requests/delete-manual-reql-segment.js +44 -0
- package/lib/requests/delete-more-items.js +3 -3
- package/lib/requests/delete-purchase.js +3 -3
- package/lib/requests/delete-rating.js +2 -2
- package/lib/requests/delete-search-synonym.js +1 -1
- package/lib/requests/delete-segmentation.js +42 -0
- package/lib/requests/delete-series.js +1 -1
- package/lib/requests/delete-user-property.js +1 -1
- package/lib/requests/delete-user.js +1 -1
- package/lib/requests/get-item-values.js +2 -2
- package/lib/requests/get-segmentation.js +42 -0
- package/lib/requests/get-user-values.js +2 -2
- package/lib/requests/index.js +16 -0
- package/lib/requests/insert-to-group.js +2 -2
- package/lib/requests/insert-to-series.js +2 -2
- package/lib/requests/list-group-items.js +1 -1
- package/lib/requests/list-item-bookmarks.js +2 -2
- package/lib/requests/list-item-cart-additions.js +2 -2
- package/lib/requests/list-item-detail-views.js +2 -2
- package/lib/requests/list-item-purchases.js +2 -2
- package/lib/requests/list-item-ratings.js +2 -2
- package/lib/requests/list-item-view-portions.js +2 -2
- package/lib/requests/list-items.js +1 -1
- package/lib/requests/list-segmentations.js +43 -0
- package/lib/requests/list-series-items.js +2 -2
- package/lib/requests/list-user-bookmarks.js +1 -1
- package/lib/requests/list-user-cart-additions.js +1 -1
- package/lib/requests/list-user-detail-views.js +1 -1
- package/lib/requests/list-user-purchases.js +1 -1
- package/lib/requests/list-user-ratings.js +1 -1
- package/lib/requests/list-user-view-portions.js +1 -1
- package/lib/requests/list-users.js +1 -1
- package/lib/requests/merge-users.js +2 -2
- package/lib/requests/recommend-item-segments-to-item-segment.js +125 -0
- package/lib/requests/recommend-item-segments-to-item.js +125 -0
- package/lib/requests/recommend-item-segments-to-user.js +110 -0
- package/lib/requests/recommend-items-to-item.js +26 -26
- package/lib/requests/recommend-items-to-user.js +23 -23
- package/lib/requests/recommend-next-items.js +2 -2
- package/lib/requests/recommend-users-to-item.js +18 -18
- package/lib/requests/recommend-users-to-user.js +21 -21
- package/lib/requests/reset-database.js +1 -1
- package/lib/requests/search-item-segments.js +112 -0
- package/lib/requests/search-items.js +17 -17
- package/lib/requests/set-view-portion.js +3 -3
- package/lib/requests/update-auto-reql-segmentation.js +66 -0
- package/lib/requests/update-manual-reql-segment.js +57 -0
- package/lib/requests/update-manual-reql-segmentation.js +59 -0
- package/lib/requests/update-more-items.js +3 -3
- package/lib/requests/update-property-based-segmentation.js +66 -0
- package/package.json +1 -1
- package/test/add-manual-reql-segment-batch_test.js +40 -0
- package/test/add-manual-reql-segment-callback_test.js +43 -0
- package/test/add-manual-reql-segment-test.js +35 -0
- package/test/create-auto-reql-segmentation-batch_test.js +35 -0
- package/test/create-auto-reql-segmentation-callback_test.js +45 -0
- package/test/create-auto-reql-segmentation-test.js +43 -0
- package/test/create-manual-reql-segmentation-batch_test.js +35 -0
- package/test/create-manual-reql-segmentation-callback_test.js +45 -0
- package/test/create-manual-reql-segmentation-test.js +43 -0
- package/test/create-property-based-segmentation-batch_test.js +35 -0
- package/test/create-property-based-segmentation-callback_test.js +45 -0
- package/test/create-property-based-segmentation-test.js +43 -0
- package/test/delete-manual-reql-segment-batch_test.js +47 -0
- package/test/delete-manual-reql-segment-callback_test.js +51 -0
- package/test/delete-manual-reql-segment-test.js +39 -0
- package/test/delete-segmentation-batch_test.js +42 -0
- package/test/delete-segmentation-callback_test.js +53 -0
- package/test/delete-segmentation-test.js +47 -0
- package/test/get-segmentation-batch_test.js +41 -0
- package/test/get-segmentation-callback_test.js +44 -0
- package/test/get-segmentation-test.js +36 -0
- package/test/list-segmentations-batch_test.js +41 -0
- package/test/list-segmentations-callback_test.js +44 -0
- package/test/list-segmentations-test.js +36 -0
- package/test/recommend-item-segments-to-item-batch_test.js +33 -0
- package/test/recommend-item-segments-to-item-callback_test.js +37 -0
- package/test/recommend-item-segments-to-item-segment-batch_test.js +33 -0
- package/test/recommend-item-segments-to-item-segment-callback_test.js +37 -0
- package/test/recommend-item-segments-to-item-segment-test.js +39 -0
- package/test/recommend-item-segments-to-item-test.js +39 -0
- package/test/recommend-item-segments-to-user-batch_test.js +33 -0
- package/test/recommend-item-segments-to-user-callback_test.js +37 -0
- package/test/recommend-item-segments-to-user-test.js +39 -0
- package/test/search-item-segments-batch_test.js +33 -0
- package/test/search-item-segments-callback_test.js +37 -0
- package/test/search-item-segments-test.js +39 -0
- package/test/update-auto-reql-segmentation-batch_test.js +40 -0
- package/test/update-auto-reql-segmentation-callback_test.js +43 -0
- package/test/update-auto-reql-segmentation-test.js +35 -0
- package/test/update-manual-reql-segment-batch_test.js +47 -0
- package/test/update-manual-reql-segment-callback_test.js +51 -0
- package/test/update-manual-reql-segment-test.js +39 -0
- package/test/update-manual-reql-segmentation-batch_test.js +40 -0
- package/test/update-manual-reql-segmentation-callback_test.js +43 -0
- package/test/update-manual-reql-segmentation-test.js +35 -0
- package/test/update-property-based-segmentation-batch_test.js +40 -0
- package/test/update-property-based-segmentation-callback_test.js +43 -0
- package/test/update-property-based-segmentation-test.js +35 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* JSDoc prettify.js theme */
|
|
2
|
+
|
|
3
|
+
/* plain text */
|
|
4
|
+
.pln {
|
|
5
|
+
color: #000000;
|
|
6
|
+
font-weight: normal;
|
|
7
|
+
font-style: normal;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: #006400;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-style: normal;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* a keyword */
|
|
18
|
+
.kwd {
|
|
19
|
+
color: #000000;
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* a comment */
|
|
25
|
+
.com {
|
|
26
|
+
font-weight: normal;
|
|
27
|
+
font-style: italic;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* a type name */
|
|
31
|
+
.typ {
|
|
32
|
+
color: #000000;
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
font-style: normal;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* a literal value */
|
|
38
|
+
.lit {
|
|
39
|
+
color: #006400;
|
|
40
|
+
font-weight: normal;
|
|
41
|
+
font-style: normal;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* punctuation */
|
|
45
|
+
.pun {
|
|
46
|
+
color: #000000;
|
|
47
|
+
font-weight: bold;
|
|
48
|
+
font-style: normal;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* lisp open bracket */
|
|
52
|
+
.opn {
|
|
53
|
+
color: #000000;
|
|
54
|
+
font-weight: bold;
|
|
55
|
+
font-style: normal;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* lisp close bracket */
|
|
59
|
+
.clo {
|
|
60
|
+
color: #000000;
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
font-style: normal;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* a markup tag name */
|
|
66
|
+
.tag {
|
|
67
|
+
color: #006400;
|
|
68
|
+
font-weight: normal;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/* a markup attribute name */
|
|
73
|
+
.atn {
|
|
74
|
+
color: #006400;
|
|
75
|
+
font-weight: normal;
|
|
76
|
+
font-style: normal;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* a markup attribute value */
|
|
80
|
+
.atv {
|
|
81
|
+
color: #006400;
|
|
82
|
+
font-weight: normal;
|
|
83
|
+
font-style: normal;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* a declaration */
|
|
87
|
+
.dec {
|
|
88
|
+
color: #000000;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
font-style: normal;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* a variable name */
|
|
94
|
+
.var {
|
|
95
|
+
color: #000000;
|
|
96
|
+
font-weight: normal;
|
|
97
|
+
font-style: normal;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* a function name */
|
|
101
|
+
.fun {
|
|
102
|
+
color: #000000;
|
|
103
|
+
font-weight: bold;
|
|
104
|
+
font-style: normal;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
108
|
+
ol.linenums {
|
|
109
|
+
margin-top: 0;
|
|
110
|
+
margin-bottom: 0;
|
|
111
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/* Tomorrow Theme */
|
|
2
|
+
/* Original theme - https://github.com/chriskempson/tomorrow-theme */
|
|
3
|
+
/* Pretty printing styles. Used with prettify.js. */
|
|
4
|
+
/* SPAN elements with the classes below are added by prettyprint. */
|
|
5
|
+
/* plain text */
|
|
6
|
+
.pln {
|
|
7
|
+
color: #4d4d4c; }
|
|
8
|
+
|
|
9
|
+
@media screen {
|
|
10
|
+
/* string content */
|
|
11
|
+
.str {
|
|
12
|
+
color: #718c00; }
|
|
13
|
+
|
|
14
|
+
/* a keyword */
|
|
15
|
+
.kwd {
|
|
16
|
+
color: #8959a8; }
|
|
17
|
+
|
|
18
|
+
/* a comment */
|
|
19
|
+
.com {
|
|
20
|
+
color: #8e908c; }
|
|
21
|
+
|
|
22
|
+
/* a type name */
|
|
23
|
+
.typ {
|
|
24
|
+
color: #4271ae; }
|
|
25
|
+
|
|
26
|
+
/* a literal value */
|
|
27
|
+
.lit {
|
|
28
|
+
color: #f5871f; }
|
|
29
|
+
|
|
30
|
+
/* punctuation */
|
|
31
|
+
.pun {
|
|
32
|
+
color: #4d4d4c; }
|
|
33
|
+
|
|
34
|
+
/* lisp open bracket */
|
|
35
|
+
.opn {
|
|
36
|
+
color: #4d4d4c; }
|
|
37
|
+
|
|
38
|
+
/* lisp close bracket */
|
|
39
|
+
.clo {
|
|
40
|
+
color: #4d4d4c; }
|
|
41
|
+
|
|
42
|
+
/* a markup tag name */
|
|
43
|
+
.tag {
|
|
44
|
+
color: #c82829; }
|
|
45
|
+
|
|
46
|
+
/* a markup attribute name */
|
|
47
|
+
.atn {
|
|
48
|
+
color: #f5871f; }
|
|
49
|
+
|
|
50
|
+
/* a markup attribute value */
|
|
51
|
+
.atv {
|
|
52
|
+
color: #3e999f; }
|
|
53
|
+
|
|
54
|
+
/* a declaration */
|
|
55
|
+
.dec {
|
|
56
|
+
color: #f5871f; }
|
|
57
|
+
|
|
58
|
+
/* a variable name */
|
|
59
|
+
.var {
|
|
60
|
+
color: #c82829; }
|
|
61
|
+
|
|
62
|
+
/* a function name */
|
|
63
|
+
.fun {
|
|
64
|
+
color: #4271ae; } }
|
|
65
|
+
/* Use higher contrast and text-weight for printable form. */
|
|
66
|
+
@media print, projection {
|
|
67
|
+
.str {
|
|
68
|
+
color: #060; }
|
|
69
|
+
|
|
70
|
+
.kwd {
|
|
71
|
+
color: #006;
|
|
72
|
+
font-weight: bold; }
|
|
73
|
+
|
|
74
|
+
.com {
|
|
75
|
+
color: #600;
|
|
76
|
+
font-style: italic; }
|
|
77
|
+
|
|
78
|
+
.typ {
|
|
79
|
+
color: #404;
|
|
80
|
+
font-weight: bold; }
|
|
81
|
+
|
|
82
|
+
.lit {
|
|
83
|
+
color: #044; }
|
|
84
|
+
|
|
85
|
+
.pun, .opn, .clo {
|
|
86
|
+
color: #440; }
|
|
87
|
+
|
|
88
|
+
.tag {
|
|
89
|
+
color: #006;
|
|
90
|
+
font-weight: bold; }
|
|
91
|
+
|
|
92
|
+
.atn {
|
|
93
|
+
color: #404; }
|
|
94
|
+
|
|
95
|
+
.atv {
|
|
96
|
+
color: #060; } }
|
|
97
|
+
/* Style */
|
|
98
|
+
/*
|
|
99
|
+
pre.prettyprint {
|
|
100
|
+
background: white;
|
|
101
|
+
font-family: Consolas, Monaco, 'Andale Mono', monospace;
|
|
102
|
+
font-size: 12px;
|
|
103
|
+
line-height: 1.5;
|
|
104
|
+
border: 1px solid #ccc;
|
|
105
|
+
padding: 10px; }
|
|
106
|
+
*/
|
|
107
|
+
|
|
108
|
+
/* Specify class=linenums on a pre to get line numbering */
|
|
109
|
+
ol.linenums {
|
|
110
|
+
margin-top: 0;
|
|
111
|
+
margin-bottom: 0; }
|
|
112
|
+
|
|
113
|
+
/* IE indents via margin-left */
|
|
114
|
+
li.L0,
|
|
115
|
+
li.L1,
|
|
116
|
+
li.L2,
|
|
117
|
+
li.L3,
|
|
118
|
+
li.L4,
|
|
119
|
+
li.L5,
|
|
120
|
+
li.L6,
|
|
121
|
+
li.L7,
|
|
122
|
+
li.L8,
|
|
123
|
+
li.L9 {
|
|
124
|
+
/* */ }
|
|
125
|
+
|
|
126
|
+
/* Alternate shading for lines */
|
|
127
|
+
li.L1,
|
|
128
|
+
li.L3,
|
|
129
|
+
li.L5,
|
|
130
|
+
li.L7,
|
|
131
|
+
li.L9 {
|
|
132
|
+
/* */ }
|
package/lib/api-client.js
CHANGED
|
@@ -45,8 +45,9 @@ class ApiClient {
|
|
|
45
45
|
url: url,
|
|
46
46
|
headers: {'Accept': 'application/json',
|
|
47
47
|
'Content-Type': 'application/json',
|
|
48
|
-
'User-Agent': 'recombee-node-api-client/4.
|
|
49
|
-
timeout: request.timeout
|
|
48
|
+
'User-Agent': 'recombee-node-api-client/4.1.0'},
|
|
49
|
+
timeout: request.timeout,
|
|
50
|
+
agent: this.options.agent
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
if (Object.entries(request.bodyParameters()).length > 0)
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const rqs = require("./request");
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Adds a cart addition of
|
|
9
|
+
* Adds a cart addition of the given item made by the given user.
|
|
10
10
|
*/
|
|
11
11
|
class AddCartAddition extends rqs.Request {
|
|
12
12
|
|
|
@@ -24,10 +24,10 @@ class AddCartAddition extends rqs.Request {
|
|
|
24
24
|
* - Description: Sets whether the given user/item should be created if not present in the database.
|
|
25
25
|
* - *amount*
|
|
26
26
|
* - Type: number
|
|
27
|
-
* - 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
|
|
27
|
+
* - 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 2.
|
|
28
28
|
* - *price*
|
|
29
29
|
* - Type: number
|
|
30
|
-
* - Description: Price of the added item. If `amount` is greater than 1, sum of prices of all the items should be given.
|
|
30
|
+
* - Description: Price of the added item. If `amount` is greater than 1, the sum of prices of all the items should be given.
|
|
31
31
|
* - *recommId*
|
|
32
32
|
* - Type: string
|
|
33
33
|
* - Description: If this cart addition is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
@@ -12,7 +12,7 @@ class AddItemProperty extends rqs.Request {
|
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Construct the request
|
|
15
|
-
* @param {string} propertyName - Name of the item property to be created. Currently, the following names are reserved
|
|
15
|
+
* @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.
|
|
16
16
|
* @param {string} type - Value type of the item property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`, `image` or `imageList`.
|
|
17
17
|
* * `int`- Signed integer number.
|
|
18
18
|
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
|
package/lib/requests/add-item.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
const rqs = require("./request");
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Adds new item of given `itemId` to the items catalog.
|
|
10
|
-
* All the item properties for the newly created items are set null.
|
|
9
|
+
* Adds new item of the given `itemId` to the items catalog.
|
|
10
|
+
* All the item properties for the newly created items are set to null.
|
|
11
11
|
*/
|
|
12
12
|
class AddItem extends rqs.Request {
|
|
13
13
|
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
This file is auto-generated, do not edit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
const rqs = require("./request");
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Adds a new Segment into a Manual ReQL Segmentation.
|
|
10
|
+
* The new Segment is defined by a [ReQL](https://docs.recombee.com/reql.html) filter that returns `true` for an item in case that this item belongs to the segment.
|
|
11
|
+
*/
|
|
12
|
+
class AddManualReqlSegment extends rqs.Request {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Construct the request
|
|
16
|
+
* @param {string} segmentationId - ID of the Segmentation to which the new Segment should be added
|
|
17
|
+
* @param {string} segmentId - ID of the newly created Segment
|
|
18
|
+
* @param {string} filter - ReQL filter that returns `true` for items that belong to this Segment. Otherwise returns `false`.
|
|
19
|
+
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
20
|
+
* - Allowed parameters:
|
|
21
|
+
* - *title*
|
|
22
|
+
* - Type: string
|
|
23
|
+
* - Description: Human-readable name of the Segment that is shown in the Recombee Admin UI.
|
|
24
|
+
*/
|
|
25
|
+
constructor(segmentationId, segmentId, filter, optional) {
|
|
26
|
+
super('PUT', `/segmentations/manual-reql/${segmentationId}/segments/${segmentId}`, 10000, false);
|
|
27
|
+
this.segmentationId = segmentationId;
|
|
28
|
+
this.segmentId = segmentId;
|
|
29
|
+
this.filter = filter;
|
|
30
|
+
optional = optional || {};
|
|
31
|
+
this.title = optional.title;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get body parameters
|
|
36
|
+
* @return {Object} The values of body parameters (name of parameter: value of the parameter)
|
|
37
|
+
*/
|
|
38
|
+
bodyParameters() {
|
|
39
|
+
let params = {};
|
|
40
|
+
params.filter = this.filter;
|
|
41
|
+
|
|
42
|
+
if(this.title !== undefined)
|
|
43
|
+
params.title = this.title;
|
|
44
|
+
|
|
45
|
+
return params;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Get query parameters
|
|
50
|
+
* @return {Object} The values of query parameters (name of parameter: value of the parameter)
|
|
51
|
+
*/
|
|
52
|
+
queryParameters() {
|
|
53
|
+
let params = {};
|
|
54
|
+
return params;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
exports.AddManualReqlSegment = AddManualReqlSegment
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
const rqs = require("./request");
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Adds a purchase of
|
|
9
|
+
* Adds a purchase of the given item made by the given user.
|
|
10
10
|
*/
|
|
11
11
|
class AddPurchase extends rqs.Request {
|
|
12
12
|
|
|
@@ -24,13 +24,13 @@ class AddPurchase extends rqs.Request {
|
|
|
24
24
|
* - Description: Sets whether the given user/item should be created if not present in the database.
|
|
25
25
|
* - *amount*
|
|
26
26
|
* - Type: number
|
|
27
|
-
* - 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
|
|
27
|
+
* - 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 2.
|
|
28
28
|
* - *price*
|
|
29
29
|
* - Type: number
|
|
30
|
-
* - 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.
|
|
30
|
+
* - Description: Price paid by the user for the item. If `amount` is greater than 1, the sum of prices of all the items should be given.
|
|
31
31
|
* - *profit*
|
|
32
32
|
* - Type: number
|
|
33
|
-
* - 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)
|
|
33
|
+
* - Description: Your profit from the purchased item. The profit is natural in the 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 also applicable in other domains (for example, at a news company it may be income from a displayed advertisement on article page). If `amount` is greater than 1, the sum of profit of all the items should be given.
|
|
34
34
|
* - *recommId*
|
|
35
35
|
* - Type: string
|
|
36
36
|
* - Description: If this purchase is based on a recommendation request, `recommId` is the id of the clicked recommendation.
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
const rqs = require("./request");
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Adding
|
|
9
|
+
* Adding a 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.
|
|
10
10
|
*/
|
|
11
11
|
class AddUserProperty extends rqs.Request {
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Construct the request
|
|
15
|
-
* @param {string} propertyName - Name of the user property to be created. Currently, the following names are reserved
|
|
15
|
+
* @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.
|
|
16
16
|
* @param {string} type - Value type of the user property to be created. One of: `int`, `double`, `string`, `boolean`, `timestamp`, `set`.
|
|
17
17
|
* * `int` - Signed integer number.
|
|
18
18
|
* * `double` - Floating point number. It uses 64-bit base-2 format (IEEE 754 standard).
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/*
|
|
2
|
+
This file is auto-generated, do not edit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
const rqs = require("./request");
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Segment the items using a [ReQL](https://docs.recombee.com/reql.html) expression.
|
|
10
|
+
* For each item, the expression should return a set that contains IDs of segments to which the item belongs to.
|
|
11
|
+
*/
|
|
12
|
+
class CreateAutoReqlSegmentation extends rqs.Request {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Construct the request
|
|
16
|
+
* @param {string} segmentationId - ID of the newly created Segmentation
|
|
17
|
+
* @param {string} sourceType - What type of data should be segmented. Currently only `items` are supported.
|
|
18
|
+
* @param {string} expression - ReQL expression that returns for each item a set with IDs of segments to which the item belongs
|
|
19
|
+
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
20
|
+
* - Allowed parameters:
|
|
21
|
+
* - *title*
|
|
22
|
+
* - Type: string
|
|
23
|
+
* - Description: Human-readable name that is shown in the Recombee Admin UI.
|
|
24
|
+
* - *description*
|
|
25
|
+
* - Type: string
|
|
26
|
+
* - Description: Description that is shown in the Recombee Admin UI.
|
|
27
|
+
*/
|
|
28
|
+
constructor(segmentationId, sourceType, expression, optional) {
|
|
29
|
+
super('PUT', `/segmentations/auto-reql/${segmentationId}`, 10000, false);
|
|
30
|
+
this.segmentationId = segmentationId;
|
|
31
|
+
this.sourceType = sourceType;
|
|
32
|
+
this.expression = expression;
|
|
33
|
+
optional = optional || {};
|
|
34
|
+
this.title = optional.title;
|
|
35
|
+
this.description = optional.description;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Get body parameters
|
|
40
|
+
* @return {Object} The values of body parameters (name of parameter: value of the parameter)
|
|
41
|
+
*/
|
|
42
|
+
bodyParameters() {
|
|
43
|
+
let params = {};
|
|
44
|
+
params.sourceType = this.sourceType;
|
|
45
|
+
params.expression = this.expression;
|
|
46
|
+
|
|
47
|
+
if(this.title !== undefined)
|
|
48
|
+
params.title = this.title;
|
|
49
|
+
|
|
50
|
+
if(this.description !== undefined)
|
|
51
|
+
params.description = this.description;
|
|
52
|
+
|
|
53
|
+
return params;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Get query parameters
|
|
58
|
+
* @return {Object} The values of query parameters (name of parameter: value of the parameter)
|
|
59
|
+
*/
|
|
60
|
+
queryParameters() {
|
|
61
|
+
let params = {};
|
|
62
|
+
return params;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
exports.CreateAutoReqlSegmentation = CreateAutoReqlSegmentation
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
This file is auto-generated, do not edit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
const rqs = require("./request");
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Segment the items using multiple [ReQL](https://docs.recombee.com/reql.html) filters.
|
|
10
|
+
* Use the Add Manual ReQL Items Segment endpoint to create the individual segments.
|
|
11
|
+
*/
|
|
12
|
+
class CreateManualReqlSegmentation extends rqs.Request {
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Construct the request
|
|
16
|
+
* @param {string} segmentationId - ID of the newly created Segmentation
|
|
17
|
+
* @param {string} sourceType - What type of data should be segmented. Currently only `items` are supported.
|
|
18
|
+
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
19
|
+
* - Allowed parameters:
|
|
20
|
+
* - *title*
|
|
21
|
+
* - Type: string
|
|
22
|
+
* - Description: Human-readable name that is shown in the Recombee Admin UI.
|
|
23
|
+
* - *description*
|
|
24
|
+
* - Type: string
|
|
25
|
+
* - Description: Description that is shown in the Recombee Admin UI.
|
|
26
|
+
*/
|
|
27
|
+
constructor(segmentationId, sourceType, optional) {
|
|
28
|
+
super('PUT', `/segmentations/manual-reql/${segmentationId}`, 10000, false);
|
|
29
|
+
this.segmentationId = segmentationId;
|
|
30
|
+
this.sourceType = sourceType;
|
|
31
|
+
optional = optional || {};
|
|
32
|
+
this.title = optional.title;
|
|
33
|
+
this.description = optional.description;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Get body parameters
|
|
38
|
+
* @return {Object} The values of body parameters (name of parameter: value of the parameter)
|
|
39
|
+
*/
|
|
40
|
+
bodyParameters() {
|
|
41
|
+
let params = {};
|
|
42
|
+
params.sourceType = this.sourceType;
|
|
43
|
+
|
|
44
|
+
if(this.title !== undefined)
|
|
45
|
+
params.title = this.title;
|
|
46
|
+
|
|
47
|
+
if(this.description !== undefined)
|
|
48
|
+
params.description = this.description;
|
|
49
|
+
|
|
50
|
+
return params;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get query parameters
|
|
55
|
+
* @return {Object} The values of query parameters (name of parameter: value of the parameter)
|
|
56
|
+
*/
|
|
57
|
+
queryParameters() {
|
|
58
|
+
let params = {};
|
|
59
|
+
return params;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
exports.CreateManualReqlSegmentation = CreateManualReqlSegmentation
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/*
|
|
2
|
+
This file is auto-generated, do not edit
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
'use strict';
|
|
6
|
+
const rqs = require("./request");
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Creates a Segmentation that splits the items into segments based on values of a particular item property.
|
|
10
|
+
* A segment is created for each unique value of the property.
|
|
11
|
+
* In case of `set` properties, a segment is created for each value in the set. Item belongs to all these segments.
|
|
12
|
+
*/
|
|
13
|
+
class CreatePropertyBasedSegmentation extends rqs.Request {
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Construct the request
|
|
17
|
+
* @param {string} segmentationId - ID of the newly created Segmentation
|
|
18
|
+
* @param {string} sourceType - What type of data should be segmented. Currently only `items` are supported.
|
|
19
|
+
* @param {string} propertyName - Name of the property on which the Segmentation should be based
|
|
20
|
+
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
21
|
+
* - Allowed parameters:
|
|
22
|
+
* - *title*
|
|
23
|
+
* - Type: string
|
|
24
|
+
* - Description: Human-readable name that is shown in the Recombee Admin UI.
|
|
25
|
+
* - *description*
|
|
26
|
+
* - Type: string
|
|
27
|
+
* - Description: Description that is shown in the Recombee Admin UI.
|
|
28
|
+
*/
|
|
29
|
+
constructor(segmentationId, sourceType, propertyName, optional) {
|
|
30
|
+
super('PUT', `/segmentations/property-based/${segmentationId}`, 10000, false);
|
|
31
|
+
this.segmentationId = segmentationId;
|
|
32
|
+
this.sourceType = sourceType;
|
|
33
|
+
this.propertyName = propertyName;
|
|
34
|
+
optional = optional || {};
|
|
35
|
+
this.title = optional.title;
|
|
36
|
+
this.description = optional.description;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Get body parameters
|
|
41
|
+
* @return {Object} The values of body parameters (name of parameter: value of the parameter)
|
|
42
|
+
*/
|
|
43
|
+
bodyParameters() {
|
|
44
|
+
let params = {};
|
|
45
|
+
params.sourceType = this.sourceType;
|
|
46
|
+
params.propertyName = this.propertyName;
|
|
47
|
+
|
|
48
|
+
if(this.title !== undefined)
|
|
49
|
+
params.title = this.title;
|
|
50
|
+
|
|
51
|
+
if(this.description !== undefined)
|
|
52
|
+
params.description = this.description;
|
|
53
|
+
|
|
54
|
+
return params;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Get query parameters
|
|
59
|
+
* @return {Object} The values of query parameters (name of parameter: value of the parameter)
|
|
60
|
+
*/
|
|
61
|
+
queryParameters() {
|
|
62
|
+
let params = {};
|
|
63
|
+
return params;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
exports.CreatePropertyBasedSegmentation = CreatePropertyBasedSegmentation
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
const rqs = require("./request");
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Deletes a bookmark uniquely specified by `userId`, `itemId`, and `timestamp` or all the bookmarks with given `userId` and `itemId` if `timestamp` is omitted.
|
|
9
|
+
* Deletes a bookmark uniquely specified by `userId`, `itemId`, and `timestamp` or all the bookmarks with the given `userId` and `itemId` if `timestamp` is omitted.
|
|
10
10
|
*/
|
|
11
11
|
class DeleteBookmark extends rqs.Request {
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Construct the request
|
|
15
15
|
* @param {string} userId - ID of the user who made the bookmark.
|
|
16
|
-
* @param {string} itemId - ID of the item
|
|
16
|
+
* @param {string} itemId - ID of the item which was bookmarked.
|
|
17
17
|
* @param {Object} optional - Optional parameters given as an object with structure name of the parameter: value
|
|
18
18
|
* - Allowed parameters:
|
|
19
19
|
* - *timestamp*
|
|
20
20
|
* - Type: number
|
|
21
|
-
* - Description: Unix timestamp of the bookmark. If the `timestamp` is omitted, then all the bookmarks with given `userId` and `itemId` are deleted.
|
|
21
|
+
* - Description: Unix timestamp of the bookmark. If the `timestamp` is omitted, then all the bookmarks with the given `userId` and `itemId` are deleted.
|
|
22
22
|
*/
|
|
23
23
|
constructor(userId, itemId, optional) {
|
|
24
24
|
super('DELETE', '/bookmarks/', 1000, false);
|