@serptech/api 1.0.14 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SerpApi.node.js +1 -1
- package/dist/SerpApi.web.js +1 -1
- package/package.json +1 -1
- package/packages/serp-rest-api/dist/index.node.js +1 -1
- package/packages/serp-rest-api/dist/index.web.js +1 -1
- package/packages/serp-rest-api/src/serp-rest-api/api-facade/v1/licenses/index.ts +1 -1
- package/packages/serp-rest-api/src/serp-rest-api/features/licenses/v1/index.ts +3 -23
package/package.json
CHANGED
@@ -1047,7 +1047,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1047
1047
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1048
1048
|
|
1049
1049
|
"use strict";
|
1050
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Licenses\", function() { return Licenses; });\n/* harmony import */ var _base_auth_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/auth-api */ \"./src/base/auth-api.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Licenses = /*#__PURE__*/function (_AuthApi) {\n _inherits(Licenses, _AuthApi);\n\n var _super = _createSuper(Licenses);\n\n function Licenses(settings) {\n var _this;\n\n _classCallCheck(this, Licenses);\n\n _this = _super.call(this, settings);\n _this.getLicenses = _this.getLicenses.bind(_assertThisInitialized(_this));\n _this.getLicense = _this.getLicense.bind(_assertThisInitialized(_this));\n _this.createLicense = _this.createLicense.bind(_assertThisInitialized(_this));\n _this.updateLicense = _this.updateLicense.bind(_assertThisInitialized(_this));\n _this.deleteLicense = _this.deleteLicense.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Licenses, [{\n key: \"getLicenses\",\n value: function getLicenses() {\n
|
1050
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Licenses\", function() { return Licenses; });\n/* harmony import */ var _base_auth_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/auth-api */ \"./src/base/auth-api.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Licenses = /*#__PURE__*/function (_AuthApi) {\n _inherits(Licenses, _AuthApi);\n\n var _super = _createSuper(Licenses);\n\n function Licenses(settings) {\n var _this;\n\n _classCallCheck(this, Licenses);\n\n _this = _super.call(this, settings);\n _this.getLicenses = _this.getLicenses.bind(_assertThisInitialized(_this));\n _this.getLicense = _this.getLicense.bind(_assertThisInitialized(_this));\n _this.createLicense = _this.createLicense.bind(_assertThisInitialized(_this));\n _this.updateLicense = _this.updateLicense.bind(_assertThisInitialized(_this));\n _this.deleteLicense = _this.deleteLicense.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Licenses, [{\n key: \"getLicenses\",\n value: function getLicenses() {\n return this.httpClient.get(this.authURL + Licenses.apiEndpoint);\n }\n }, {\n key: \"getLicense\",\n value: function getLicense(licenseId) {\n return this.httpClient.get(this.authURL + \"\".concat(Licenses.apiEndpoint).concat(licenseId, \"/\"));\n }\n }, {\n key: \"createLicense\",\n value: function createLicense() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n name = _ref.name,\n entry_storage_days = _ref.entry_storage_days;\n\n return this.httpClient.post(this.authURL + Licenses.apiEndpoint, {\n name: name,\n entry_storage_days: entry_storage_days\n });\n }\n }, {\n key: \"updateLicense\",\n value: function updateLicense() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n id = _ref2.id,\n name = _ref2.name,\n entry_storage_days = _ref2.entry_storage_days,\n is_active = _ref2.is_active;\n\n return this.httpClient.put(this.authURL + \"\".concat(Licenses.apiEndpoint).concat(id, \"/\"), {\n name: name,\n entry_storage_days: entry_storage_days,\n is_active: is_active\n });\n }\n }, {\n key: \"deleteLicense\",\n value: function deleteLicense(licenseId) {\n return this.httpClient[\"delete\"](this.authURL + \"\".concat(Licenses.apiEndpoint).concat(licenseId, \"/\"));\n }\n }]);\n\n return Licenses;\n}(_base_auth_api__WEBPACK_IMPORTED_MODULE_0__[\"AuthApi\"]);\n\n_defineProperty(Licenses, \"apiEndpoint\", \"licenses/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/licenses/v1/index.ts?");
|
1051
1051
|
|
1052
1052
|
/***/ }),
|
1053
1053
|
|
@@ -803,7 +803,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
803
803
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
804
804
|
|
805
805
|
"use strict";
|
806
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Licenses\", function() { return Licenses; });\n/* harmony import */ var _base_auth_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/auth-api */ \"./src/base/auth-api.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Licenses = /*#__PURE__*/function (_AuthApi) {\n _inherits(Licenses, _AuthApi);\n\n var _super = _createSuper(Licenses);\n\n function Licenses(settings) {\n var _this;\n\n _classCallCheck(this, Licenses);\n\n _this = _super.call(this, settings);\n _this.getLicenses = _this.getLicenses.bind(_assertThisInitialized(_this));\n _this.getLicense = _this.getLicense.bind(_assertThisInitialized(_this));\n _this.createLicense = _this.createLicense.bind(_assertThisInitialized(_this));\n _this.updateLicense = _this.updateLicense.bind(_assertThisInitialized(_this));\n _this.deleteLicense = _this.deleteLicense.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Licenses, [{\n key: \"getLicenses\",\n value: function getLicenses() {\n
|
806
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Licenses\", function() { return Licenses; });\n/* harmony import */ var _base_auth_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/auth-api */ \"./src/base/auth-api.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n\n\nvar Licenses = /*#__PURE__*/function (_AuthApi) {\n _inherits(Licenses, _AuthApi);\n\n var _super = _createSuper(Licenses);\n\n function Licenses(settings) {\n var _this;\n\n _classCallCheck(this, Licenses);\n\n _this = _super.call(this, settings);\n _this.getLicenses = _this.getLicenses.bind(_assertThisInitialized(_this));\n _this.getLicense = _this.getLicense.bind(_assertThisInitialized(_this));\n _this.createLicense = _this.createLicense.bind(_assertThisInitialized(_this));\n _this.updateLicense = _this.updateLicense.bind(_assertThisInitialized(_this));\n _this.deleteLicense = _this.deleteLicense.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Licenses, [{\n key: \"getLicenses\",\n value: function getLicenses() {\n return this.httpClient.get(this.authURL + Licenses.apiEndpoint);\n }\n }, {\n key: \"getLicense\",\n value: function getLicense(licenseId) {\n return this.httpClient.get(this.authURL + \"\".concat(Licenses.apiEndpoint).concat(licenseId, \"/\"));\n }\n }, {\n key: \"createLicense\",\n value: function createLicense() {\n var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n name = _ref.name,\n entry_storage_days = _ref.entry_storage_days;\n\n return this.httpClient.post(this.authURL + Licenses.apiEndpoint, {\n name: name,\n entry_storage_days: entry_storage_days\n });\n }\n }, {\n key: \"updateLicense\",\n value: function updateLicense() {\n var _ref2 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},\n id = _ref2.id,\n name = _ref2.name,\n entry_storage_days = _ref2.entry_storage_days,\n is_active = _ref2.is_active;\n\n return this.httpClient.put(this.authURL + \"\".concat(Licenses.apiEndpoint).concat(id, \"/\"), {\n name: name,\n entry_storage_days: entry_storage_days,\n is_active: is_active\n });\n }\n }, {\n key: \"deleteLicense\",\n value: function deleteLicense(licenseId) {\n return this.httpClient.delete(this.authURL + \"\".concat(Licenses.apiEndpoint).concat(licenseId, \"/\"));\n }\n }]);\n\n return Licenses;\n}(_base_auth_api__WEBPACK_IMPORTED_MODULE_0__[\"AuthApi\"]);\n\n_defineProperty(Licenses, \"apiEndpoint\", \"licenses/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/licenses/v1/index.ts?");
|
807
807
|
|
808
808
|
/***/ }),
|
809
809
|
|
@@ -21,7 +21,7 @@ export interface LicensesFiltersInterface extends Paginatable, Searchable {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
export interface LicensesInterface extends AuthApiInterface {
|
24
|
-
getLicenses(
|
24
|
+
getLicenses(): Promise<LicenseInterface>;
|
25
25
|
getLicense(licenseId: id): Promise<LicenseInterface>;
|
26
26
|
createLicense(license: LicenseInterface): Promise<LicenseInterface>;
|
27
27
|
deleteLicense(licenseId: id): Promise<null>;
|
@@ -2,7 +2,6 @@ import { AuthApi, AuthApiSettingsInterface } from "../../../../base/auth-api";
|
|
2
2
|
import {
|
3
3
|
LicensesInterface,
|
4
4
|
LicenseInterface,
|
5
|
-
LicensesFiltersInterface,
|
6
5
|
} from "../../../api-facade/v1/licenses";
|
7
6
|
import { id } from "../../../../base/types";
|
8
7
|
|
@@ -16,30 +15,11 @@ class Licenses extends AuthApi implements LicensesInterface {
|
|
16
15
|
this.deleteLicense = this.deleteLicense.bind(this);
|
17
16
|
}
|
18
17
|
|
19
|
-
static apiEndpoint = "licenses/
|
20
|
-
|
21
|
-
getLicenses(
|
22
|
-
filters: LicensesFiltersInterface = {}
|
23
|
-
): Promise<LicenseInterface[]> {
|
24
|
-
const getFiltersData = ({
|
25
|
-
q,
|
26
|
-
limit,
|
27
|
-
offset,
|
28
|
-
date_from,
|
29
|
-
date_to,
|
30
|
-
is_bound,
|
31
|
-
}: LicensesFiltersInterface = {}): Record<string, unknown> => ({
|
32
|
-
q,
|
33
|
-
limit,
|
34
|
-
offset,
|
35
|
-
date_from,
|
36
|
-
date_to,
|
37
|
-
is_bound,
|
38
|
-
});
|
18
|
+
static apiEndpoint = "licenses/";
|
39
19
|
|
20
|
+
getLicenses(): Promise<LicenseInterface> {
|
40
21
|
return this.httpClient.get(
|
41
|
-
this.authURL + Licenses.apiEndpoint
|
42
|
-
getFiltersData(filters)
|
22
|
+
this.authURL + Licenses.apiEndpoint
|
43
23
|
);
|
44
24
|
}
|
45
25
|
|