@radio-retail/api-client
Advanced tools
Comparing version 1.0.45 to 1.0.46
@@ -43,3 +43,3 @@ const getData = require('../utils/get-raw-data'); | ||
toggleActiveState(clientId, active, config = {}) { | ||
toggleClientActive(clientId, active, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
@@ -139,2 +139,6 @@ }, | ||
toggleAccountActive(clientId, accountId, active, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/accounts/${accountId}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
}, | ||
// Divisions | ||
@@ -218,2 +222,6 @@ createDivision(clientId, accountId, data, config = {}) { | ||
toggleStoreActive(clientId, accountId, storeId, active, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
}, | ||
addContactsToStore(clientId, accountId, storeId, data, params, config = {}) { | ||
@@ -279,2 +287,6 @@ config.params = params; | ||
toggleStoreListActive(clientId, storeListId, active, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/storelists/${storeListId}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
}, | ||
// General | ||
@@ -281,0 +293,0 @@ ...crud(instance, baseRoute), |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"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
18214
417