Comparing version 1.0.7 to 1.0.8
@@ -27,3 +27,3 @@ 'use strict'; | ||
const url = _common2.default.formatUrl(this.configuration.routes.usersOrders, urlParams); | ||
return _validation2.default.validateMandatoryParams(['first_name', 'last_name', 'status', 'mobility', 'supported', 'weight'], body).then(() => super.postRequest(url, body, headers)); | ||
return _validation2.default.validateMandatoryParams(['status', 'mobility', 'supported', 'weight', 'vehicle'], body).then(() => super.postRequest(url, body, headers)); | ||
} | ||
@@ -33,2 +33,2 @@ } | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jbGFzc2VzL3Jlc291cmNlcy91c2Vycy9vcmRlcnMvaW5kZXguanMiXSwibmFtZXMiOlsiVXNlcnNPcmRlcnMiLCJjcmVhdGUiLCJ1cmxQYXJhbXMiLCJib2R5IiwiaGVhZGVycyIsInVybCIsImZvcm1hdFVybCIsImNvbmZpZ3VyYXRpb24iLCJyb3V0ZXMiLCJ1c2Vyc09yZGVycyIsInZhbGlkYXRlTWFuZGF0b3J5UGFyYW1zIiwidGhlbiIsInBvc3RSZXF1ZXN0Il0sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQTs7OztBQUNBOzs7Ozs7QUFFZSxNQUFNQSxXQUFOLDBCQUFpQztBQUM5Qzs7Ozs7OztBQU9BQyxTQUFPQyxTQUFQLEVBQWtCQyxJQUFsQixFQUF3QkMsT0FBeEIsRUFBaUM7QUFDL0IsVUFBTUMsTUFBTSxpQkFBT0MsU0FBUCxDQUFpQixLQUFLQyxhQUFMLENBQW1CQyxNQUFuQixDQUEwQkMsV0FBM0MsRUFBd0RQLFNBQXhELENBQVo7QUFDQSxXQUFPLHFCQUFXUSx1QkFBWCxDQUFtQyxDQUFDLFlBQUQsRUFBZSxXQUFmLEVBQTRCLFFBQTVCLEVBQXNDLFVBQXRDLEVBQWtELFdBQWxELEVBQStELFFBQS9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cG9ydCBkZWZhdWx0IGNsYXNzIFVzZXJzT3JkZXJzIGV4dGVuZHMgQ29tbW9uIHtcbiAgLyoqXG4gICAqIEBkZXNjcmlwdGlvbiBDcmVhdGUgYW4gb3JkZXIuXG4gICAqIEBwYXJhbSB1cmxQYXJhbXNcbiAgICogQHBhcmFtIGJvZHlcbiAgICogQHBhcmFtIGhlYWRlcnNcbiAgICogQHJldHVybiB7UHJvbWlzZX1cbiAgICovXG4gIGNyZWF0ZSh1cmxQYXJhbXMsIGJvZHksIGhlYWRlcnMpIHtcbiAgICBjb25zdCB1cmwgPSBDb21tb24uZm9ybWF0VXJsKHRoaXMuY29uZmlndXJhdGlvbi5yb3V0ZXMudXNlcnNPcmRlcnMsIHVybFBhcmFtcyk7XG4gICAgcmV0dXJuIFZhbGlkYXRpb24udmFsaWRhdGVNYW5kYXRvcnlQYXJhbXMoWydzdGF0dXMnLCAnbW9iaWxpdHknLCAnc3VwcG9ydGVkJywgJ3dlaWdodCcsICd2ZWhpY2xlJ10sIGJvZHkpXG4gICAgICAudGhlbigoKSA9PiBzdXBlci5wb3N0UmVxdWVzdCh1cmwsIGJvZHksIGhlYWRlcnMpKTtcbiAgfVxufVxuIl19 |
{ | ||
"name": "g8-js-sdk", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Ambulance G8 Javascript SDK", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -14,5 +14,5 @@ import Common from '../../../common/common'; | ||
const url = Common.formatUrl(this.configuration.routes.usersOrders, urlParams); | ||
return Validation.validateMandatoryParams(['first_name', 'last_name', 'status', 'mobility', 'supported', 'weight'], body) | ||
return Validation.validateMandatoryParams(['status', 'mobility', 'supported', 'weight', 'vehicle'], body) | ||
.then(() => super.postRequest(url, body, 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
108507