@radio-retail/api-client
Advanced tools
Comparing version 1.0.49 to 1.0.50
@@ -6,4 +6,10 @@ const crud = require('../../dist/utils/crud'); | ||
module.exports = function (instance) { | ||
return { ...crud(instance, baseRoute) | ||
return { ...crud(instance, baseRoute), | ||
getCategoryTableCounts(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/counts`, config).then(getData(config.raw)); | ||
} | ||
}; | ||
}; |
@@ -6,4 +6,10 @@ const crud = require('../../dist/utils/crud'); | ||
module.exports = function (instance) { | ||
return { ...crud(instance, baseRoute) | ||
return { ...crud(instance, baseRoute), | ||
getSubCategoryTableCounts(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/counts`, config).then(getData(config.raw)); | ||
} | ||
}; | ||
}; |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.49", | ||
"version": "1.0.50", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
18911
432