@radio-retail/api-client
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -19,12 +19,2 @@ const getData = require('../utils/get-raw-data'); | ||
getContacts(clientId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/contacts`, config).then(getData(config.raw)); | ||
}, | ||
getContactById(clientId, contactId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/contacts/${contactId}`, config).then(getData(config.raw)); | ||
}, | ||
getClientById(clientId) { | ||
@@ -47,2 +37,18 @@ return instance.get(`${baseRoute}/${clientId}`).then(res => { | ||
// Contacts | ||
getContacts(clientId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/contacts`, config).then(getData(config.raw)); | ||
}, | ||
patchClient(clientId, contactId, params, config = {}) { | ||
config.params = params; | ||
return instance.patch(`${baseRoute}/${clientId}/contacts/${contactId}`, config).then(getData(config.raw)); | ||
}, | ||
getContactById(clientId, contactId, params, config = {}) { | ||
config.params = params; | ||
return instance.get(`${baseRoute}/${clientId}/contacts/${contactId}`, config).then(getData(config.raw)); | ||
}, | ||
// Accounts | ||
@@ -49,0 +55,0 @@ getAccountsForClient(clientId = '', config = {}) { |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"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
8688
220