@ifings/api-client
Advanced tools
Comparing version 0.10.0 to 0.11.0
@@ -103,3 +103,18 @@ "use strict"; | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
return instance.put("".concat(baseUrl, "/").concat(id, "/documents"), data, config); | ||
return instance.create("".concat(baseUrl, "/").concat(id, "/documents"), data, config); | ||
}, | ||
edit: function edit(id) { | ||
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
var documentId = data.documentId, | ||
restData = _objectWithoutProperties(data, ["documentId"]); | ||
return instance.patch("".concat(baseUrl, "/").concat(id, "/documents/").concat(documentId), restData, config); | ||
}, | ||
delete: function _delete(id) { | ||
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
var documentId = data.documentId; | ||
return instance.delete("".concat(baseUrl, "/").concat(id, "/documents/").concat(documentId), documentId, config); | ||
} | ||
@@ -106,0 +121,0 @@ } |
{ | ||
"name": "@ifings/api-client", | ||
"description": "iFings API client", | ||
"version": "0.10.0", | ||
"version": "0.11.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
50961
450