@radio-retail/api-client
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -37,2 +37,7 @@ const getData = require('../utils/get-raw-data'); | ||
addContactsToClient(clientId, data, params, config = {}) { | ||
config.params = params; | ||
return instance.put(`${baseRoute}/${clientId}/contacts`, data, config).then(getData(config.raw)); | ||
}, | ||
// Contacts | ||
@@ -102,2 +107,7 @@ createContact(data, params, config = {}) { | ||
addContactsToAccount(clientId, accountId, data, params, config = {}) { | ||
config.params = params; | ||
return instance.put(`${baseRoute}/${clientId}/accounts/${accountId}/contacts`, data, config).then(getData(config.raw)); | ||
}, | ||
// Divisions | ||
@@ -176,2 +186,7 @@ createDivision(clientId, accountId, data, config = {}) { | ||
addContactsToStore(clientId, accountId, storeId, data, params, config = {}) { | ||
config.params = params; | ||
return instance.put(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}/contacts`, data, config).then(getData(config.raw)); | ||
}, | ||
// General | ||
@@ -178,0 +193,0 @@ ...crud(instance, baseRoute), |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.29", | ||
"version": "1.0.30", | ||
"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
13328
311