@radio-retail/api-client
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -25,2 +25,6 @@ const axios = require('axios'); | ||
const users = require('./routes/users'); | ||
const groups = require('./routes/groups'); | ||
const etagCache = require('./utils/axios-if-match-cache-intercept'); | ||
@@ -65,4 +69,6 @@ | ||
voiceovers: voiceovers(instance), | ||
users: users(instance), | ||
groups: groups(instance), | ||
etagCache, | ||
instance | ||
}; |
@@ -10,8 +10,3 @@ const crud = require('../utils/crud'); | ||
search(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/search`, config).then(getData(config.raw)); | ||
}, | ||
toggle(id, active, config = {}) { | ||
toggleActive(id, active, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
@@ -18,0 +13,0 @@ } |
@@ -13,3 +13,3 @@ const crud = require('../utils/crud'); | ||
toggle(section, id, active, config = {}) { | ||
toggleActive(section, id, active, config = {}) { | ||
return instance.post(`${baseRoute}/${section}/${id}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
@@ -16,0 +16,0 @@ } |
@@ -10,8 +10,3 @@ const crud = require('../utils/crud'); | ||
search(params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/search`, config).then(getData(config.raw)); | ||
}, | ||
toggle(id, active, config = {}) { | ||
toggleActive(id, active, config = {}) { | ||
return instance.post(`${baseRoute}/${id}/${active ? 'deactivate' : 'activate'}`, config).then(getData(config.raw)); | ||
@@ -18,0 +13,0 @@ } |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"main": "dist/index.js", | ||
@@ -40,2 +40,2 @@ "scripts": { | ||
} | ||
} | ||
} |
24469
21
563