@radio-retail/api-client
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -57,2 +57,12 @@ const getData = require('../utils/get-raw-data'); | ||
getAllAccounts(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/accounts`, config).then(getData(config.raw)); | ||
}, | ||
getAllAccountsCount(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/accounts/count`, config).then(getData(config.raw)); | ||
}, | ||
getAccountById(clientId, accountId, params, config = {}) { | ||
@@ -82,3 +92,3 @@ config.params = params; | ||
// Divisions | ||
createDivison(clientId, accountId, data, config = {}) { | ||
createDivision(clientId, accountId, data, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/accounts/${accountId}/divisions`, data, config).then(getData(config.raw)); | ||
@@ -121,2 +131,7 @@ }, | ||
getAllStores(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/stores`, config).then(getData(config.raw)); | ||
}, | ||
getStoresQuery(clientId, accountId, query, params, config = {}) { | ||
@@ -123,0 +138,0 @@ config.params = params; |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11713
277