@radio-retail/api-client
Advanced tools
Comparing version 1.0.27 to 1.0.28
@@ -159,5 +159,10 @@ const getData = require('../utils/get-raw-data'); | ||
patchStore(clientId, accountId, storeId, params, config = {}) { | ||
config.params = params; | ||
return instance.patch(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}`, config).then(getData(config.raw)); | ||
patchStore(clientId, accountId, storeId, body, prevConfig = {}, extractNestedData = true) { | ||
const config = { | ||
headers: { | ||
'Content-Type': 'application/merge-patch+json' | ||
}, | ||
...prevConfig | ||
}; | ||
return instance.patch(`${baseRoute}/${clientId}/accounts/${accountId}/stores/${storeId}`, body, config).then(getData(!extractNestedData)); | ||
}, | ||
@@ -164,0 +169,0 @@ |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "1.0.27", | ||
"version": "1.0.28", | ||
"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
12448
295