Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radio-retail/api-client

Package Overview
Dependencies
Maintainers
2
Versions
217
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radio-retail/api-client - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

32

dist/routes/clients.js

@@ -57,7 +57,5 @@ const getData = require('../utils/get-raw-data');

getAccountById(clientId, accountId) {
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}`).then(res => {
res.data.data.ifMatch = res.headers.etag;
return res.data.data;
});
getAccountById(clientId, accountId, params, config = {}) {
config.params = params;
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}`, config).then(getData(config.raw));
},

@@ -73,2 +71,26 @@

// Divisions
createDivison(clientId, accountId, data, config = {}) {
return instance.post(`${baseRoute}/${clientId}/accounts/${accountId}/divisions`, data, config).then(getData(config.raw));
},
deleteDivision(clientId, accountId, divisionId) {
return instance.delete(`${baseRoute}/${clientId}/accounts/${accountId}/divisions/${divisionId}`);
},
getDivisions(params, config = {}) {
config.params = params;
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}/divisions`, config).then(getData(config.raw));
},
getDivisionById(clientId, accountId, divisionId, params, config = {}) {
config.params = params;
return instance.get(`${baseRoute}/${clientId}/accounts/${accountId}/divisions/${divisionId}`, config).then(getData(config.raw));
},
patchDivision(clientId, accountId, divisionId, params, config = {}) {
config.params = params;
return instance.patch(`${baseRoute}/${clientId}/accounts/${accountId}/divisions/${divisionId}`, config).then(getData(config.raw));
},
// Sites

@@ -75,0 +97,0 @@ getSitesForClient(clientId = '', accountId = '', config = {}) {

2

package.json
{
"name": "@radio-retail/api-client",
"description": "Radio Retail API client",
"version": "1.0.11",
"version": "1.0.12",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "scripts": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc