Comparing version 1.2.0 to 1.3.0
@@ -15,2 +15,13 @@ 'use strict'; | ||
/** | ||
* @description Update user. | ||
* @param urlParams | ||
* @param body | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
update(urlParams, body, headers) { | ||
const url = _common2.default.formatUrl(this.configuration.routes.usersId, urlParams); | ||
return super.putRequest(url, body, headers); | ||
} | ||
/** | ||
* @description Get user. | ||
@@ -28,2 +39,2 @@ * @param urlParams | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jbGFzc2VzL3Jlc291cmNlcy91c2Vycy9pZC9pbmRleC5qcyJdLCJuYW1lcyI6WyJVc2Vyc0lkIiwiZ2V0IiwidXJsUGFyYW1zIiwiaGVhZGVycyIsInVybCIsImZvcm1hdFVybCIsImNvbmZpZ3VyYXRpb24iLCJyb3V0ZXMiLCJ1c2Vyc0lkIiwiZ2V0UmVxdWVzdCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7OztBQUVlLE1BQU1BLE9BQU4sMEJBQTZCO0FBQzFDOzs7Ozs7QUFNQUMsTUFBSUMsU0FBSixFQUFlQyxPQUFmLEVBQXdCO0FBQ3RCLFVBQU1DLE1BQU0saUJBQU9DLFNBQVAsQ0FBaUIsS0FBS0MsYUFBTCxDQUFtQkMsTUFBbkIsQ0FBMEJDLE9BQTNDLEVBQW9ETixTQUFwRCxDQUFaO0FBQ0EsV0FBTyxNQUFNTyxVQUFOLENBQWlCTCxHQUFqQixFQUFzQkQsT0FBdEIsQ0FBUDtBQUNEO0FBVnlDO2tCQUF2QkgsTyIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBDb21tb24gZnJvbSAnLi4vLi4vLi4vY29tbW9uL2NvbW1vbic7XG5cbmV4cG9ydCBkZWZhdWx0IGNsYXNzIFVzZXJzSWQ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VhZGVycykge1xuICAgIGNvbnN0IHVybCA9IENvbW1vbi5mb3JtYXRVcmwodGhpcy5jb25maWd1cmF0aW9uLnJvdXRlcy51c2Vyc0lkLCB1cmxQYXJhbXMpO1xuICAgIHJldHVybiBzdXBlci5nZXRSZXF1ZXN0KHVybCwgaGVhZGVycyk7XG4gIH1cbn1cbiJdfQ== |
{ | ||
"name": "g8-js-sdk", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Ambulance G8 Javascript SDK", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -5,2 +5,13 @@ import Common from '../../../common/common'; | ||
/** | ||
* @description Update user. | ||
* @param urlParams | ||
* @param body | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
update(urlParams, body, headers) { | ||
const url = Common.formatUrl(this.configuration.routes.usersId, urlParams); | ||
return super.putRequest(url, body, headers); | ||
} | ||
/** | ||
* @description Get user. | ||
@@ -7,0 +18,0 @@ * @param urlParams |
Sorry, the diff of this file is not supported yet
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
1132
132211