@radio-retail/api-client
Advanced tools
Comparing version 7.2.4 to 7.3.0
@@ -10,6 +10,2 @@ const methods = require('../utils/methods'); | ||
uploadMedia(id, body = {}, config = {}) { | ||
return instance.put(`${baseRoute}/${id}/media`, body, config).then(getData(config.raw)); | ||
}, | ||
getMedia(id, config = {}) { | ||
@@ -16,0 +12,0 @@ return instance.get(`${baseRoute}/${id}/media`, config).then(getData(config.raw)); |
@@ -77,2 +77,6 @@ const getData = require('../utils/get-raw-data'); | ||
return Promise.all(ids.map(id => instance.delete(`${baseRoute}/${id}`))); | ||
}, | ||
uploadMedia(productionId, type, body = {}, config = {}, extractNestedData = true) { | ||
return instance.post(`${baseRoute}/upload?productionId=${productionId}&type=${type}`, config).then(getData(config.raw)); | ||
} | ||
@@ -79,0 +83,0 @@ |
{ | ||
"name": "@radio-retail/api-client", | ||
"description": "Radio Retail API client", | ||
"version": "7.2.4", | ||
"version": "7.3.0", | ||
"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
21017