@ifings/api-client
Advanced tools
Comparing version 0.5.3 to 0.5.5
@@ -9,34 +9,34 @@ "use strict"; | ||
var axios = require('axios'); | ||
var axios = require("axios"); | ||
var qs = require('qs'); | ||
var qs = require("qs"); | ||
var actuators = require('./routes/actuators'); | ||
var actuators = require("./routes/actuators"); | ||
var observedProperties = require('./routes/observed-properties'); | ||
var observedProperties = require("./routes/observed-properties"); | ||
var sensors = require('./routes/sensors'); | ||
var sensors = require("./routes/sensors"); | ||
var stacks = require('./routes/stacks'); | ||
var stacks = require("./routes/stacks"); | ||
var uom = require('./routes/uom'); | ||
var uom = require("./routes/uom"); | ||
var gtins = require('./routes/gtins'); | ||
var gtins = require("./routes/gtins"); | ||
var modules = require('./routes/modules'); | ||
var modules = require("./routes/modules"); | ||
var clients = require('./routes/clients'); | ||
var clients = require("./routes/clients"); | ||
var _accounts = require('./routes/accounts'); | ||
var _accounts = require("./routes/accounts"); | ||
var _sites = require('./routes/sites'); | ||
var _sites = require("./routes/sites"); | ||
var contacts = require('./routes/contacts'); | ||
var contacts = require("./routes/contacts"); | ||
var getRawData = require('./utils/get-raw-data'); | ||
var getRawData = require("./utils/get-raw-data"); | ||
var etagCache = require('./utils/axios-if-match-cache-intercept'); | ||
var etagCache = require("./utils/axios-if-match-cache-intercept"); | ||
var parameterSerialiserConfig = { | ||
arrayFormat: 'repeat', | ||
arrayFormat: "repeat", | ||
indices: false | ||
@@ -48,3 +48,3 @@ }; | ||
headers: { | ||
'Content-Type': 'application/json' | ||
"Content-Type": "application/json" | ||
}, | ||
@@ -76,4 +76,4 @@ paramsSerializer: function paramsSerializer(parameters) { | ||
contacts: contacts(instance), | ||
sites: function sites(clientId, accountId) { | ||
return _sites(clientId, accountId, instance); | ||
sites: function sites(clientId, accountId, siteId) { | ||
return _sites(clientId, accountId, siteId, instance); | ||
}, | ||
@@ -80,0 +80,0 @@ etagCache: etagCache, |
@@ -9,6 +9,8 @@ "use strict"; | ||
var methods = require('../utils/methods'); | ||
var methods = require("../utils/methods"); | ||
module.exports = function (clientId, accountId, instance) { | ||
return _objectSpread({}, methods(instance, "/v3/clients/".concat(clientId, "/accounts/").concat(accountId, "/sites"))); | ||
module.exports = function (clientId, accountId, siteId, instance) { | ||
return _objectSpread({ | ||
contacts: _objectSpread({}, methods(instance, "/v3/clients/".concat(clientId, "/accounts/").concat(accountId, "/sites/").concat(siteId, "/contacts"))) | ||
}, methods(instance, "/v3/clients/".concat(clientId, "/accounts/").concat(accountId, "/sites"))); | ||
}; |
{ | ||
"name": "@ifings/api-client", | ||
"description": "iFings API client", | ||
"version": "0.5.3", | ||
"version": "0.5.5", | ||
"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
42043
325