@ifings/api-client
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -11,4 +11,18 @@ "use strict"; | ||
var baseUrl = "/v3/hardware/gateways"; | ||
module.exports = function (instance) { | ||
return _objectSpread({}, methods(instance, "/v3/hardware/gateways")); | ||
return _objectSpread(_objectSpread({}, methods(instance, baseUrl)), {}, { | ||
firmware: { | ||
find: function find(firmWareId) { | ||
var config = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
return instance.get("".concat(baseUrl, "/").concat(firmWareId, "/firmware"), config); | ||
}, | ||
upload: function upload(id) { | ||
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
return instance.put("".concat(baseUrl, "/").concat(id, "/firmware"), data, config); | ||
} | ||
} | ||
}); | ||
}; |
{ | ||
"name": "@ifings/api-client", | ||
"description": "iFings API client", | ||
"version": "0.7.0", | ||
"version": "0.8.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
49169
419