@radio-retail/api-client
Advanced tools
Comparing version 3.6.0 to 3.7.0
@@ -30,9 +30,2 @@ const getData = require('../utils/get-raw-data'); | ||
getClientById(clientId) { | ||
return instance.get(`${baseRoute}/${clientId}`).then(res => { | ||
res.data.data.ifMatch = res.headers.etag; | ||
return res.data.data; | ||
}); | ||
}, | ||
toggleClientActive(clientId, active, config = {}) { | ||
@@ -278,2 +271,6 @@ return instance.post(`${baseRoute}/${clientId}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
removeStoresFromStoreLists(clientId, storeListId) { | ||
return instance.delete(`${baseRoute}/${clientId}/storelists/${storeListId}/stores`); | ||
}, | ||
// General | ||
@@ -280,0 +277,0 @@ ...crud(instance, baseRoute), |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "3.6.0", | ||
"version": "3.7.0", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
24428
560