Skip to content

Commit 6880a14

Browse files
committed
- Removed article/product click histogram route
- Removed article/product click top-n route - Added combined click histogram route - Added combined click top-n route - package.json: Bumped version to 4.9.0
1 parent f8a7ad6 commit 6880a14

File tree

5 files changed

+20
-112
lines changed

5 files changed

+20
-112
lines changed

dist/client.js

Lines changed: 8 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function Client(config) {
8282
/**
8383
* SDK Version
8484
*/
85-
Client.Version = '4.8.0';
85+
Client.Version = '4.9.0';
8686

8787
/**
8888
* Expose the Provider base class
@@ -1116,13 +1116,13 @@ Client.resourceBinders.push(function(Client) {
11161116
Client.reporting = {
11171117

11181118
/**
1119-
* Returns a histogram of article clicks in timescale
1119+
* Returns a histogram of clicks in timescale
11201120
* @param {object} [query] - Filter arguments
11211121
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
11221122
* @return {Query} - Compiled query ready for execution
11231123
* @memberof Client.reportings#
11241124
*/
1125-
article_click_date_histogram: function(query, callback) {
1125+
click_date_histogram: function(query, callback) {
11261126
// Shift optional arguments, if necessary
11271127
if (typeof query === "function") {
11281128
callback = query;
@@ -1131,9 +1131,9 @@ Client.resourceBinders.push(function(Client) {
11311131

11321132
return Client._makeRequest({
11331133
api: 'api',
1134-
action: 'reporting.article_click_date_histogram',
1134+
action: 'reporting.click_date_histogram',
11351135
method: 'GET',
1136-
path: '/reporting/articles/clicks/date-histogram',
1136+
path: '/reporting/clicks/date-histogram',
11371137
query: query
11381138
}, callback);
11391139
},
@@ -1145,7 +1145,7 @@ Client.resourceBinders.push(function(Client) {
11451145
* @return {Query} - Compiled query ready for execution
11461146
* @memberof Client.reportings#
11471147
*/
1148-
article_click_top_n: function(query, callback) {
1148+
click_top_n: function(query, callback) {
11491149
// Shift optional arguments, if necessary
11501150
if (typeof query === "function") {
11511151
callback = query;
@@ -1154,9 +1154,9 @@ Client.resourceBinders.push(function(Client) {
11541154

11551155
return Client._makeRequest({
11561156
api: 'api',
1157-
action: 'reporting.article_click_top_n',
1157+
action: 'reporting.click_top_n',
11581158
method: 'GET',
1159-
path: '/reporting/articles/clicks/top-n',
1159+
path: '/reporting/clicks/top-n',
11601160
query: query
11611161
}, callback);
11621162
},
@@ -1230,52 +1230,6 @@ Client.resourceBinders.push(function(Client) {
12301230
}, callback);
12311231
},
12321232

1233-
/**
1234-
* Returns a histogram of product clicks in timescale
1235-
* @param {object} [query] - Filter arguments
1236-
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
1237-
* @return {Query} - Compiled query ready for execution
1238-
* @memberof Client.reportings#
1239-
*/
1240-
product_click_date_histogram: function(query, callback) {
1241-
// Shift optional arguments, if necessary
1242-
if (typeof query === "function") {
1243-
callback = query;
1244-
query = undefined;
1245-
}
1246-
1247-
return Client._makeRequest({
1248-
api: 'api',
1249-
action: 'reporting.product_click_date_histogram',
1250-
method: 'GET',
1251-
path: '/reporting/products/clicks/date-histogram',
1252-
query: query
1253-
}, callback);
1254-
},
1255-
1256-
/**
1257-
* Returns the top N results per aggregation group
1258-
* @param {object} [query] - Filter arguments
1259-
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
1260-
* @return {Query} - Compiled query ready for execution
1261-
* @memberof Client.reportings#
1262-
*/
1263-
product_click_top_n: function(query, callback) {
1264-
// Shift optional arguments, if necessary
1265-
if (typeof query === "function") {
1266-
callback = query;
1267-
query = undefined;
1268-
}
1269-
1270-
return Client._makeRequest({
1271-
api: 'api',
1272-
action: 'reporting.product_click_top_n',
1273-
method: 'GET',
1274-
path: '/reporting/products/clicks/top-n',
1275-
query: query
1276-
}, callback);
1277-
},
1278-
12791233
/**
12801234
* Returns a histogram of resource metrics in timescale
12811235
* @param {object} [query] - Filter arguments

dist/okanjo-sdk.js

Lines changed: 8 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,7 +1919,7 @@ function Client(config) {
19191919
/**
19201920
* SDK Version
19211921
*/
1922-
Client.Version = '4.8.0';
1922+
Client.Version = '4.9.0';
19231923

19241924
/**
19251925
* Expose the Provider base class
@@ -2953,13 +2953,13 @@ Client.resourceBinders.push(function(Client) {
29532953
Client.reporting = {
29542954

29552955
/**
2956-
* Returns a histogram of article clicks in timescale
2956+
* Returns a histogram of clicks in timescale
29572957
* @param {object} [query] - Filter arguments
29582958
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
29592959
* @return {Query} - Compiled query ready for execution
29602960
* @memberof Client.reportings#
29612961
*/
2962-
article_click_date_histogram: function(query, callback) {
2962+
click_date_histogram: function(query, callback) {
29632963
// Shift optional arguments, if necessary
29642964
if (typeof query === "function") {
29652965
callback = query;
@@ -2968,9 +2968,9 @@ Client.resourceBinders.push(function(Client) {
29682968

29692969
return Client._makeRequest({
29702970
api: 'api',
2971-
action: 'reporting.article_click_date_histogram',
2971+
action: 'reporting.click_date_histogram',
29722972
method: 'GET',
2973-
path: '/reporting/articles/clicks/date-histogram',
2973+
path: '/reporting/clicks/date-histogram',
29742974
query: query
29752975
}, callback);
29762976
},
@@ -2982,7 +2982,7 @@ Client.resourceBinders.push(function(Client) {
29822982
* @return {Query} - Compiled query ready for execution
29832983
* @memberof Client.reportings#
29842984
*/
2985-
article_click_top_n: function(query, callback) {
2985+
click_top_n: function(query, callback) {
29862986
// Shift optional arguments, if necessary
29872987
if (typeof query === "function") {
29882988
callback = query;
@@ -2991,9 +2991,9 @@ Client.resourceBinders.push(function(Client) {
29912991

29922992
return Client._makeRequest({
29932993
api: 'api',
2994-
action: 'reporting.article_click_top_n',
2994+
action: 'reporting.click_top_n',
29952995
method: 'GET',
2996-
path: '/reporting/articles/clicks/top-n',
2996+
path: '/reporting/clicks/top-n',
29972997
query: query
29982998
}, callback);
29992999
},
@@ -3067,52 +3067,6 @@ Client.resourceBinders.push(function(Client) {
30673067
}, callback);
30683068
},
30693069

3070-
/**
3071-
* Returns a histogram of product clicks in timescale
3072-
* @param {object} [query] - Filter arguments
3073-
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
3074-
* @return {Query} - Compiled query ready for execution
3075-
* @memberof Client.reportings#
3076-
*/
3077-
product_click_date_histogram: function(query, callback) {
3078-
// Shift optional arguments, if necessary
3079-
if (typeof query === "function") {
3080-
callback = query;
3081-
query = undefined;
3082-
}
3083-
3084-
return Client._makeRequest({
3085-
api: 'api',
3086-
action: 'reporting.product_click_date_histogram',
3087-
method: 'GET',
3088-
path: '/reporting/products/clicks/date-histogram',
3089-
query: query
3090-
}, callback);
3091-
},
3092-
3093-
/**
3094-
* Returns the top N results per aggregation group
3095-
* @param {object} [query] - Filter arguments
3096-
* @param {requestCallback} [callback] – Optional callback. When present, the request is executed
3097-
* @return {Query} - Compiled query ready for execution
3098-
* @memberof Client.reportings#
3099-
*/
3100-
product_click_top_n: function(query, callback) {
3101-
// Shift optional arguments, if necessary
3102-
if (typeof query === "function") {
3103-
callback = query;
3104-
query = undefined;
3105-
}
3106-
3107-
return Client._makeRequest({
3108-
api: 'api',
3109-
action: 'reporting.product_click_top_n',
3110-
method: 'GET',
3111-
path: '/reporting/products/clicks/top-n',
3112-
query: query
3113-
}, callback);
3114-
},
3115-
31163070
/**
31173071
* Returns a histogram of resource metrics in timescale
31183072
* @param {object} [query] - Filter arguments

dist/okanjo-sdk.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/okanjo-sdk.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "okanjo",
3-
"version": "4.8.0",
3+
"version": "4.9.0",
44
"description": "Integrate your application with the Okanjo API.",
55
"main": "dist/client.js",
66
"scripts": {

0 commit comments

Comments
 (0)