Comparing version 1.13.0 to 1.14.0
@@ -35,5 +35,16 @@ 'use strict'; | ||
} | ||
/** | ||
* @description Update user from company. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
update(urlParams, headers) { | ||
const url = _common2.default.formatUrl(this.configuration.routes.usersCompaniesUsersId, urlParams); | ||
return super.putRequest(url, headers); | ||
} | ||
} | ||
exports.default = UsersCompaniesUsersId; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jbGFzc2VzL3Jlc291cmNlcy91c2Vycy9jb21wYW5pZXMvdXNlcnMvaWQvaW5kZXguanMiXSwibmFtZXMiOlsiVXNlcnNDb21wYW5pZXNVc2Vyc0lkIiwiQ29tbW9uIiwicmVtb3ZlIiwidXJsUGFyYW1zIiwiaGVhZGVycyIsInVybCIsImZvcm1hdFVybCIsImNvbmZpZ3VyYXRpb24iLCJyb3V0ZXMiLCJ1c2Vyc0NvbXBhbmllc1VzZXJzSWQiLCJkZWxldGVSZXF1ZXN0IiwiZ2V0IiwiZ2V0UmVxdWVzdCJdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7Ozs7OztBQUVlLE1BQU1BLHFCQUFOLFNBQW9DQyxnQkFBcEMsQ0FBMkM7QUFDeEQ7Ozs7OztBQU1BQyxTQUFPQyxTQUFQLEVBQWtCQyxPQUFsQixFQUEyQjtBQUN6QixVQUFNQyxNQUFNSixpQkFBT0ssU0FBUCxDQUFpQixLQUFLQyxhQUFMLENBQW1CQyxNQUFuQixDQUEwQkMscUJBQTNDLEVBQWtFTixTQUFsRSxDQUFaO0FBQ0EsV0FBTyxNQUFNTyxhQUFOLENBQW9CTCxHQUFwQixFQUF5QkQsT0FBekIsQ0FBUDtBQUNEOztBQUVEOzs7Ozs7QUFNQU8sTUFBSVIsU0FBSixFQUFlQyxPQUFmLEVB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uICB9XG5cbiAgLyoqXG4gICAqIEBkZXNjcmlwdGlvbiBHZXQgdXNlciBmcm9tIGNvbXBhbnkuXG4gICAqIEBwYXJhbSB1cmxQYXJhbXNcbiAgICogQHBhcmFtIGhlYWRlcnNcbiAgICogQHJldHVybiB7UHJvbWlzZX1cbiAgICovXG4gIGdldCh1cmxQYXJhbXMsIGhlYWRlcnMpIHtcbiAgICBjb25zdCB1cmwgPSBDb21tb24uZm9ybWF0VXJsKHRoaXMuY29uZmlndXJhdGlvbi5yb3V0ZXMudXNlcnNDb21wYW5pZXNVc2Vyc0lkLCB1cmxQYXJhbXMpO1xuICAgIHJldHVybiBzdXBlci5nZXRSZXF1ZXN0KHVybCwgaGVhZGVycyk7XG4gIH1cblxuICAvKipcbiAgICogQGRlc2NyaXB0aW9uIFVwZGF0ZSB1c2VyIGZyb20gY29tcGFueS5cbiAgICogQHBhcmFtIHVybFBhcmFtc1xuICAgKiBAcGFyYW0gaGVhZGVyc1xuICAgKiBAcmV0dXJuIHtQcm9taXNlfVxuICAgKi9cbiAgdXBkYXRlKHVybFBhcmFtcywgaGVhZGVycykge1xuICAgIGNvbnN0IHVybCA9IENvbW1vbi5mb3JtYXRVcmwodGhpcy5jb25maWd1cmF0aW9uLnJvdXRlcy51c2Vyc0NvbXBhbmllc1VzZXJzSWQsIHVybFBhcmFtcyk7XG4gICAgcmV0dXJuIHN1cGVyLnB1dFJlcXVlc3QodXJsLCBoZWFkZXJzKTtcbiAgfVxufVxuIl19 |
{ | ||
"name": "g8-js-sdk", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "Ambulance G8 Javascript SDK", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@rimiti/stimmy": "^1.6.0", | ||
"@rimiti/stimmy": "^1.6.1", | ||
"axios": "^0.18.0", | ||
@@ -30,0 +30,0 @@ "json-override": "^0.2.0" |
@@ -25,2 +25,13 @@ import Common from '../../../../../common/common'; | ||
} | ||
/** | ||
* @description Update user from company. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
update(urlParams, headers) { | ||
const url = Common.formatUrl(this.configuration.routes.usersCompaniesUsersId, urlParams); | ||
return super.putRequest(url, headers); | ||
} | ||
} |
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
167762
1829
Updated@rimiti/stimmy@^1.6.1