Comparing version 1.0.8 to 1.1.0
@@ -34,3 +34,3 @@ 'use strict'; | ||
getRequest(url, body, headers = {}) { | ||
return _axios2.default.get(this.configuration.host + url, body, Common.getHeaders(headers)).then(({ data }) => Promise.resolve(data)); | ||
return _axios2.default.get(this.configuration.host + url, Common.getHeaders(headers)).then(({ data }) => Promise.resolve(data)); | ||
} | ||
@@ -134,2 +134,2 @@ | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jbGFzc2VzL2NvbW1vbi9jb21tb24uanMiXSwibmFtZXMiOlsiQ29tbW9uIiwiY29uc3RydWN0b3IiLCJjb25maWd1cmF0aW9uIiwiZ2V0UmVxdWVzdCIsInVybCIsImJvZHkiLCJoZWFkZXJzIiwiZ2V0IiwiaG9zdCIsImdldEhlYWRlcnMiLCJ0aGVuIiwiZGF0YSIsIlByb21pc2UiLCJyZXNvbHZlIiwicG9zdFJlcXVlc3QiLCJwb3N0IiwicHV0UmVxdWVzdCIsInB1dCIsImRlbGV0ZVJlcXVlc3QiLCJkZWxldGUiLCJyZXRyeSIsImNvbmZpZyIsInJlcyIsImNhdGNoIiwiZSIsInJlamVjdCIsInJlZnJlc2hUb2tlbiIsImNhbGxiYWNrIiwiaW50ZXJjZXB0b3JzIiwicmVzcG9uc2UiLCJ1c2UiLCJlcnJvciIsImdldE1lc3NhZ2UiLCJhZGRDb21tb25IZWFkZXJzIiwiT2JqZWN0IiwiYXNzaWduIiwiZGVmYXVsdHMiLCJjb21tb24iLCJkZWxldGVDb21tb25IZWFkZXJzIiwibmV3SGVhZGVyIiwia2V5cyIsImZvckVhY2giLCJjb21tb25LZXkiLCJkZWxldGVLZXkiLCJ0b0xvd2VyQ2FzZSIsImZvcm1hdFVybCIsInZhbHVlcyIsInVybFRtcCIsImluY2x1ZGVzIiwibmFtZSIsIm1lc3NhZ2UiXSwibWFwcGluZ3MiOiI7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IEdldCBmb3JtYXR0ZWQgaGVhZGVyIG9iamVjdC5cbiAgICogQHBhcmFtIGhlYWRlcnNcbiAgICovXG4gIHN0YXRpYyBnZXRIZWFkZXJzKGhlYWRlcnMgPSB7fSkge1xuICAgIHJldHVybiB7aGVhZGVyczogT2JqZWN0LmFzc2lnbihoZWFkZXJzLCBheGlvcy5kZWZhdWx0cy5oZWFkZXJzLmNvbW1vbil9O1xuICB9XG5cbiAgLyoqXG4gICAqIEBkZXNjcmlwdGlvbiBGb3JtYXQgVXJscy5cbiAgICogQHBhcmFtIHVybFxuICAgKiBAcGFyYW0gdmFsdWVzXG4gICAqL1xuICBzdGF0aWMgZm9ybWF0VXJsKHVybCwgdmFsdWVzKSB7XG4gICAgY29uc3QgdXJsVG1wID0gc3RpbW15KHVybCwgdmFsdWVzKTtcbiAgICBpZiAodXJsVG1wLmluY2x1ZGVzKCd7JykgfHwgdXJsVG1wLmluY2x1ZGVzKCd9JykpIHtcbiAgICAgIHJldHVybiBQcm9taXNlLnJlamVjdCh7ZXJyb3I6IHtuYW1lOiAnT3Vwcy4uLicsIG1lc3NhZ2U6IGBVcmwgcGFyYW1ldGVyIG1pc3Npbmc6ICR7dXJsVG1wfWB9fSk7XG4gICAgfVxuICAgIHJldHVybiB1cmxUbXA7XG4gIH1cbn1cbiJdfQ== |
@@ -29,5 +29,16 @@ 'use strict'; | ||
} | ||
/** | ||
* @description Get orders. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
get(urlParams, headers) { | ||
const url = _common2.default.formatUrl(this.configuration.routes.usersOrders, urlParams); | ||
return super.getRequest(url, headers); | ||
} | ||
} | ||
exports.default = UsersOrders; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9jbGFzc2VzL3Jlc291cmNlcy91c2Vycy9vcmRlcnMvaW5kZXguanMiXSwib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Ym9keVxuICAgKiBAcGFyYW0gaGVhZGVyc1xuICAgKiBAcmV0dXJuIHtQcm9taXNlfVxuICAgKi9cbiAgY3JlYXRlKHVybFBhcmFtcywgYm9keSwgaGVhZGVycykge1xuICAgIGNvbnN0IHVybCA9IENvbW1vbi5mb3JtYXRVcmwodGhpcy5jb25maWd1cmF0aW9uLnJvdXRlcy51c2Vyc09yZGVycywgdXJsUGFyYW1zKTtcbiAgICByZXR1cm4gVmFsaWRhdGlvbi52YWxpZGF0ZU1hbmRhdG9yeVBhcmFtcyhbJ3N0YXR1cycsICdtb2JpbGl0eScsICdzdXBwb3J0ZWQnLCAnd2VpZ2h0JywgJ3ZlaGljbGUnXSwgYm9keSlcbiAgICAgIC50aGVuKCgpID0+IHN1cGVyLnBvc3RSZXF1ZXN0KHVybCwgYm9keSwgaGVhZGVycykpO1xuICB9XG5cbiAgLyoqXG4gICAqIEBkZXNjcmlwdGlvbiBHZXQgb3JkZXJzLlxuICAgKiBAcGFyYW0gdXJsUGFyYW1zXG4gICAqIEBwYXJhbSBoZWFkZXJzXG4gICAqIEByZXR1cm4ge1Byb21pc2V9XG4gICAqL1xuICBnZXQodXJsUGFyYW1zLCBoZWFkZXJzKSB7XG4gICAgY29uc3QgdXJsID0gQ29tbW9uLmZvcm1hdFVybCh0aGlzLmNvbmZpZ3VyYXRpb24ucm91dGVzLnVzZXJzT3JkZXJzLCB1cmxQYXJhbXMpO1xuICAgIHJldHVybiBzdXBlci5nZXRSZXF1ZXN0KHVybCwgaGVhZGVycyk7XG4gIH1cbn1cbiJdfQ== |
@@ -29,5 +29,16 @@ 'use strict'; | ||
} | ||
/** | ||
* @description Get products in order. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
get(urlParams, headers) { | ||
const url = _common2.default.formatUrl(this.configuration.routes.usersOrdersProducts, urlParams); | ||
return super.getRequest(url, headers); | ||
} | ||
} | ||
exports.default = UsersOrdersProducts; | ||
module.exports = exports['default']; | ||
//# sourceM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mFtcyk7XG4gICAgcmV0dXJuIHN1cGVyLmdldFJlcXVlc3QodXJsLCBoZWFkZXJzKTtcbiAgfVxufVxuIl19 |
@@ -25,2 +25,3 @@ 'use strict'; | ||
usersOrders: '/users/{userId}/orders', | ||
usersOrdersId: '/users/{userId}/orders/{orderId}', | ||
usersOrdersProducts: '/users/{userId}/orders/{orderId}/products', | ||
@@ -38,2 +39,2 @@ usersDevicesPositions: '/users/{userId}/devices/{deviceId}/positions' | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb25maWd1cmF0aW9uIiwiYXV0aGVudGljYXRpb24iLCJob3N0Iiwicm91dGVzIiwibG9naW5zIiwicGFzc3dvcmRzIiwidXNlcnMiLCJ1c2Vyc09yZGVycyIsInVzZXJzT3JkZXJzUHJvZHVjdHMiLCJ1c2Vyc0RldmljZXNQb3NpdGlvbnMiLCJjb25maWd1cmUiLCJjb25maWciLCJjcmVhdGUiXSwibWFwcGluZ3MiOiI7Ozs7OztBQUFBOzs7O0FBQ0E7Ozs7OztBQUVBLElBQUlBLGdCQUFnQjtBQUNsQkMsa0JBQWdCLEVBREU7QUFFbEJDLFFBQU0sOEJBRlk7QUFHbEJDLFVBQVE7QUFDTkMsWUFBUSxTQURGO0FBRU5DLGVBQVcsWUFGTDtBQUdOQyxXQUFPLFFBSEQ7QUFJTkMsaUJBQWEsd0JBSlA7QUFLTkMseUJBQXFCLDJDQUxmO0FBTU5DLDJCQUF1QjtBQU5qQjtBQUhVLENBQXBCOztrQkFhZTtBQUNiQyxhQUFZQyxNQUFELElBQVk7QUFDckJYLG9CQUFnQiw0QkFBYUEsYUFBYixFQUE0QlcsTUFBNUIsQ0FBaEI7QUFDRCxHQUhZO0FBSWJDLFVBQVEsTUFBTSw0QkFBUVosYUFBUjtBQUpELEMiLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQganNvbk92ZXJyaWRlIGZyb20gJ2pzb24tb3ZlcnJpZGUnO1xuaW1wb3J0IFNESyBmcm9tICcuL3NpbmdsZXRvbml6ZXInO1xuXG5sZXQgY29uZmlndXJhdGlvbiA9IHtcbiAgYXV0aGVudGljYXRpb246ICcnLFxuICBob3N0OiAnaHR0cHM6Ly9hcGkuYW1idWxhbmNlLWc4LmNvbScsXG4gIHJvdXRlczoge1xuICAgIGxvZ2luczogJy9sb2dpbnMnLFxuICAgIHBhc3N3b3JkczogJy9wYXNzd29yZHMnLFxuICAgIHVzZXJzOiAnL3VzZXJzJyxcbiAgICB1c2Vyc09yZGVyczogJy91c2Vycy97dXNlcklkfS9vcmRlcnMnLFxuICAgIHVzZXJzT3JkZXJzUHJvZHVjdHM6ICcvdXNlcnMve3VzZXJJZH0vb3JkZXJzL3tvcmRlcklkfS9wcm9kdWN0cycsXG4gICAgdXNlcnNEZXZpY2VzUG9zaXRpb25zOiAnL3VzZXJzL3t1c2VySWR9L2RldmljZXMve2RldmljZUlkfS9wb3NpdGlvbnMnLFxuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBjb25maWd1cmU6IChjb25maWcpID0+IHtcbiAgICBjb25maWd1cmF0aW9uID0ganNvbk92ZXJyaWRlKGNvbmZpZ3VyYXRpb24sIGNvbmZpZyk7XG4gIH0sXG4gIGNyZWF0ZTogKCkgPT4gbmV3IFNESyhjb25maWd1cmF0aW9uKSxcbn07XG4iXX0= | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC5qcyJdLCJuYW1lcyI6WyJjb25maWd1cmF0aW9uIiwiYXV0aGVudGljYXRpb24iLCJob3N0Iiwicm91dGVzIiwibG9naW5zIiwicGFzc3dvcmRzIiwidXNlcnMiLCJ1c2Vyc09yZGVycyIsInVzZXJzT3JkZXJzSWQi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XJzL3t1c2VySWR9L29yZGVycy97b3JkZXJJZH0nLFxuICAgIHVzZXJzT3JkZXJzUHJvZHVjdHM6ICcvdXNlcnMve3VzZXJJZH0vb3JkZXJzL3tvcmRlcklkfS9wcm9kdWN0cycsXG4gICAgdXNlcnNEZXZpY2VzUG9zaXRpb25zOiAnL3VzZXJzL3t1c2VySWR9L2RldmljZXMve2RldmljZUlkfS9wb3NpdGlvbnMnLFxuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQge1xuICBjb25maWd1cmU6IChjb25maWcpID0+IHtcbiAgICBjb25maWd1cmF0aW9uID0ganNvbk92ZXJyaWRlKGNvbmZpZ3VyYXRpb24sIGNvbmZpZyk7XG4gIH0sXG4gIGNyZWF0ZTogKCkgPT4gbmV3IFNESyhjb25maWd1cmF0aW9uKSxcbn07XG4iXX0= |
@@ -31,2 +31,6 @@ 'use strict'; | ||
var _id = require('./classes/resources/users/orders/id'); | ||
var _id2 = _interopRequireDefault(_id); | ||
var _products = require('./classes/resources/users/orders/products'); | ||
@@ -100,2 +104,13 @@ | ||
/** | ||
* @description Returns UsersOrdersId singleton. | ||
* @returns {UsersOrdersId} | ||
*/ | ||
get usersOrdersId() { | ||
if (!this.usersOrdersIdClass) { | ||
this.usersOrdersIdClass = new _id2.default(this.configuration); | ||
} | ||
return this.usersOrdersIdClass; | ||
} | ||
/** | ||
* @description Returns UsersOrders singleton. | ||
@@ -113,2 +128,2 @@ * @returns {UsersOrdersProducts} | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9zaW5nbGV0b25pemVyLmpzIl0sIm5hbWVzIjpbIlNESyIsImNvbnN0cnVjdG9yIiwiY29uZmlndXJhdGlvbiIsImNvbW1vbiIsImxvZ2lucyIsImxvZ2luc0NsYXNzIiwidXNlcnMiLCJ1c2Vyc0NsYXNzIiwicGFzc3dvcmRzIiwicGFzc3dvcmRzQ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3MgPSBuZXcgVXNlcnNPcmRlcnNJZCh0aGlzLmNvbmZpZ3VyYXRpb24pO1xuICAgIH1cbiAgICByZXR1cm4gdGhpcy51c2Vyc09yZGVyc0lkQ2xhc3M7XG4gIH1cblxuICAvKipcbiAgICogQGRlc2NyaXB0aW9uIFJldHVybnMgVXNlcnNPcmRlcnMgc2luZ2xldG9uLlxuICAgKiBAcmV0dXJucyB7VXNlcnNPcmRlcnNQcm9kdWN0c31cbiAgICovXG4gIGdldCB1c2Vyc09yZGVyc1Byb2R1Y3RzKCkge1xuICAgIGlmICghdGhpcy51c2Vyc09yZGVyc1Byb2R1Y3RzQ2xhc3MpIHtcbiAgICAgIHRoaXMudXNlcnNPcmRlcnNQcm9kdWN0c0NsYXNzID0gbmV3IFVzZXJzT3JkZXJzUHJvZHVjdHModGhpcy5jb25maWd1cmF0aW9uKTtcbiAgICB9XG4gICAgcmV0dXJuIHRoaXMudXNlcnNPcmRlcnNQcm9kdWN0c0NsYXNzO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "g8-js-sdk", | ||
"version": "1.0.8", | ||
"version": "1.1.0", | ||
"description": "Ambulance G8 Javascript SDK", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -18,3 +18,3 @@ import stimmy from 'stimmy'; | ||
getRequest(url, body, headers = {}) { | ||
return axios.get(this.configuration.host + url, body, Common.getHeaders(headers)) | ||
return axios.get(this.configuration.host + url, Common.getHeaders(headers)) | ||
.then(({data}) => Promise.resolve(data)); | ||
@@ -21,0 +21,0 @@ } |
@@ -17,2 +17,13 @@ import Common from '../../../common/common'; | ||
} | ||
/** | ||
* @description Get orders. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
get(urlParams, headers) { | ||
const url = Common.formatUrl(this.configuration.routes.usersOrders, urlParams); | ||
return super.getRequest(url, headers); | ||
} | ||
} |
@@ -17,2 +17,13 @@ import Common from '../../../../common/common'; | ||
} | ||
/** | ||
* @description Get products in order. | ||
* @param urlParams | ||
* @param headers | ||
* @return {Promise} | ||
*/ | ||
get(urlParams, headers) { | ||
const url = Common.formatUrl(this.configuration.routes.usersOrdersProducts, urlParams); | ||
return super.getRequest(url, headers); | ||
} | ||
} |
@@ -12,2 +12,3 @@ import jsonOverride from 'json-override'; | ||
usersOrders: '/users/{userId}/orders', | ||
usersOrdersId: '/users/{userId}/orders/{orderId}', | ||
usersOrdersProducts: '/users/{userId}/orders/{orderId}/products', | ||
@@ -14,0 +15,0 @@ usersDevicesPositions: '/users/{userId}/devices/{deviceId}/positions', |
@@ -7,2 +7,3 @@ import Common from './classes/common/common'; | ||
import UsersOrders from './classes/resources/users/orders'; | ||
import UsersOrdersId from './classes/resources/users/orders/id'; | ||
import UsersOrdersProducts from './classes/resources/users/orders/products'; | ||
@@ -72,2 +73,13 @@ | ||
/** | ||
* @description Returns UsersOrdersId singleton. | ||
* @returns {UsersOrdersId} | ||
*/ | ||
get usersOrdersId() { | ||
if (!this.usersOrdersIdClass) { | ||
this.usersOrdersIdClass = new UsersOrdersId(this.configuration); | ||
} | ||
return this.usersOrdersIdClass; | ||
} | ||
/** | ||
* @description Returns UsersOrders singleton. | ||
@@ -74,0 +86,0 @@ * @returns {UsersOrdersProducts} |
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
124043
46
1051