@radio-retail/api-client
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -99,2 +99,26 @@ const getData = require('../utils/get-raw-data'); | ||
// Stores | ||
createStore(clientId, accountId, data, config = {}) { | ||
return instance.post(`${baseRoute}/${clientId}/accounts/${accountId}/stores`, data, config).then(getData(config.raw)); | ||
}, | ||
getStoresForAccount(clientId, accountId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}/stores`, config).then(getData(config.raw)); | ||
}, | ||
getStoresQuery(clientId, accountId, query, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}/stores/search?query=${query}`, config).then(getData(config.raw)); | ||
}, | ||
deleteStore(clientId, accountId, storeId) { | ||
return instance.delete(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}`); | ||
}, | ||
patchStore(clientId, accountId, storeId, params, config = {}) { | ||
config.params = params; | ||
return instance.patch(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}`, config).then(getData(config.raw)); | ||
}, | ||
// General | ||
@@ -101,0 +125,0 @@ ...crud(instance, baseRoute), |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"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
10821
256