@serptech/api 1.0.23 → 1.0.25

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@serptech/api",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "Library for work with SERP API",
5
5
  "source": "index.js",
6
6
  "main": "./dist/SerpApi.node.js",
@@ -963,7 +963,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
963
963
  /*! no static exports found */
964
964
  /***/ (function(module, exports) {
965
965
 
966
- eval("const apiVersions = [1];\r\n\r\nconst apiEndpoints = {\r\n v1: {\r\n base: \"https://api.serptech.ru/v1/\",\r\n auth: \"https://iam.serptech.ru/v1/\",\r\n },\r\n};\r\n\r\nmodule.exports = {\r\n apiVersions,\r\n apiEndpoints,\r\n};\r\n\n\n//# sourceURL=webpack://SerpREST/./src/constants/index.js?");
966
+ eval("const apiVersions = [1];\r\n\r\nconst apiEndpoints = {\r\n v1: {\r\n base: \"https://api.serpdev.ru/v1/\",\r\n auth: \"https://api.serpdev.ru/v1/\",\r\n },\r\n};\r\n\r\nmodule.exports = {\r\n apiVersions,\r\n apiEndpoints,\r\n};\r\n\n\n//# sourceURL=webpack://SerpREST/./src/constants/index.js?");
967
967
 
968
968
  /***/ }),
969
969
 
@@ -1035,7 +1035,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1035
1035
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1036
1036
 
1037
1037
  "use strict";
1038
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Entries\", function() { return Entries; });\n/* harmony import */ var _base_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/api */ \"./src/base/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 Entries = /*#__PURE__*/function (_Api) {\n _inherits(Entries, _Api);\n\n var _super = _createSuper(Entries);\n\n function Entries(settings) {\n var _this;\n\n _classCallCheck(this, Entries);\n\n _this = _super.call(this, settings);\n _this.getEntries = _this.getEntries.bind(_assertThisInitialized(_this));\n _this.getEntriesStatsByPersonId = _this.getEntriesStatsByPersonId.bind(_assertThisInitialized(_this));\n _this.deleteEntry = _this.deleteEntry.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Entries, [{\n key: \"getEntries\",\n value: function getEntries() {\n var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var getFiltersData = function getFiltersData(_ref) {\n var pid = _ref.pid,\n person_ids = _ref.person_ids,\n spaces_ids = _ref.spaces_ids,\n origin_ids = _ref.origin_ids,\n conf = _ref.conf,\n liveness = _ref.liveness,\n id_from = _ref.id_from,\n date_from = _ref.date_from,\n date_to = _ref.date_to,\n limit = _ref.limit,\n offset = _ref.offset,\n sex = _ref.sex,\n mood = _ref.mood,\n age_from = _ref.age_from,\n age_to = _ref.age_to;\n return {\n pid: pid,\n person_ids: person_ids,\n spaces_ids: spaces_ids,\n origin_ids: origin_ids,\n conf: conf,\n liveness: liveness,\n id_from: id_from,\n date_from: date_from,\n date_to: date_to,\n limit: limit,\n offset: offset,\n sex: sex,\n mood: mood,\n age_from: age_from,\n age_to: age_to\n };\n };\n\n return this.httpClient.get(Entries.apiEndpoint, getFiltersData(filters));\n }\n }, {\n key: \"getEntriesStatsByPersonId\",\n value: function getEntriesStatsByPersonId(person_id) {\n return this.httpClient.get(\"\".concat(Entries.apiEndpoint, \"stats?person_id=\").concat(person_id));\n }\n }, {\n key: \"deleteEntry\",\n value: function deleteEntry(entryId) {\n return this.httpClient[\"delete\"](\"\".concat(Entries.apiEndpoint).concat(entryId, \"/\"));\n }\n }]);\n\n return Entries;\n}(_base_api__WEBPACK_IMPORTED_MODULE_0__[\"Api\"]);\n\n_defineProperty(Entries, \"apiEndpoint\", \"entries/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/entries/v1/index.ts?");
1038
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Entries\", function() { return Entries; });\n/* harmony import */ var _base_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/api */ \"./src/base/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 Entries = /*#__PURE__*/function (_Api) {\n _inherits(Entries, _Api);\n\n var _super = _createSuper(Entries);\n\n function Entries(settings) {\n var _this;\n\n _classCallCheck(this, Entries);\n\n _this = _super.call(this, settings);\n _this.getEntries = _this.getEntries.bind(_assertThisInitialized(_this));\n _this.getEntriesStatsByPersonId = _this.getEntriesStatsByPersonId.bind(_assertThisInitialized(_this));\n _this.deleteEntry = _this.deleteEntry.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Entries, [{\n key: \"getEntries\",\n value: function getEntries() {\n var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var getFiltersData = function getFiltersData(_ref) {\n var pid = _ref.pid,\n person_ids = _ref.person_ids,\n spaces_ids = _ref.spaces_ids,\n origin_ids = _ref.origin_ids,\n conf = _ref.conf,\n liveness = _ref.liveness,\n id_from = _ref.id_from,\n date_from = _ref.date_from,\n date_to = _ref.date_to,\n limit = _ref.limit,\n offset = _ref.offset,\n sex = _ref.sex,\n mood = _ref.mood,\n age_from = _ref.age_from,\n age_to = _ref.age_to;\n return {\n pid: pid,\n person_ids: person_ids,\n spaces_ids: spaces_ids,\n origin_ids: origin_ids,\n conf: conf,\n liveness: liveness,\n id_from: id_from,\n date_from: date_from,\n date_to: date_to,\n limit: limit,\n offset: offset,\n sex: sex,\n mood: mood,\n age_from: age_from,\n age_to: age_to\n };\n };\n\n return this.httpClient.get(Entries.apiEndpoint, getFiltersData(filters));\n }\n }, {\n key: \"getEntriesStatsByPersonId\",\n value: function getEntriesStatsByPersonId(person_id) {\n return this.httpClient.get(\"\".concat(Entries.apiEndpoint, \"stats?person_id=\").concat(person_id));\n }\n }, {\n key: \"deleteEntry\",\n value: function deleteEntry(entryId) {\n return this.httpClient[\"delete\"](\"\".concat(Entries.apiEndpoint).concat(entryId));\n }\n }]);\n\n return Entries;\n}(_base_api__WEBPACK_IMPORTED_MODULE_0__[\"Api\"]);\n\n_defineProperty(Entries, \"apiEndpoint\", \"entries/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/entries/v1/index.ts?");
1039
1039
 
1040
1040
  /***/ }),
1041
1041
 
@@ -719,7 +719,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
719
719
  /*! no static exports found */
720
720
  /***/ (function(module, exports) {
721
721
 
722
- eval("const apiVersions = [1];\r\n\r\nconst apiEndpoints = {\r\n v1: {\r\n base: \"https://api.serptech.ru/v1/\",\r\n auth: \"https://iam.serptech.ru/v1/\",\r\n },\r\n};\r\n\r\nmodule.exports = {\r\n apiVersions,\r\n apiEndpoints,\r\n};\r\n\n\n//# sourceURL=webpack://SerpREST/./src/constants/index.js?");
722
+ eval("const apiVersions = [1];\r\n\r\nconst apiEndpoints = {\r\n v1: {\r\n base: \"https://api.serpdev.ru/v1/\",\r\n auth: \"https://api.serpdev.ru/v1/\",\r\n },\r\n};\r\n\r\nmodule.exports = {\r\n apiVersions,\r\n apiEndpoints,\r\n};\r\n\n\n//# sourceURL=webpack://SerpREST/./src/constants/index.js?");
723
723
 
724
724
  /***/ }),
725
725
 
@@ -791,7 +791,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
791
791
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
792
792
 
793
793
  "use strict";
794
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Entries\", function() { return Entries; });\n/* harmony import */ var _base_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/api */ \"./src/base/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 Entries = /*#__PURE__*/function (_Api) {\n _inherits(Entries, _Api);\n\n var _super = _createSuper(Entries);\n\n function Entries(settings) {\n var _this;\n\n _classCallCheck(this, Entries);\n\n _this = _super.call(this, settings);\n _this.getEntries = _this.getEntries.bind(_assertThisInitialized(_this));\n _this.getEntriesStatsByPersonId = _this.getEntriesStatsByPersonId.bind(_assertThisInitialized(_this));\n _this.deleteEntry = _this.deleteEntry.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Entries, [{\n key: \"getEntries\",\n value: function getEntries() {\n var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var getFiltersData = function getFiltersData(_ref) {\n var pid = _ref.pid,\n person_ids = _ref.person_ids,\n spaces_ids = _ref.spaces_ids,\n origin_ids = _ref.origin_ids,\n conf = _ref.conf,\n liveness = _ref.liveness,\n id_from = _ref.id_from,\n date_from = _ref.date_from,\n date_to = _ref.date_to,\n limit = _ref.limit,\n offset = _ref.offset,\n sex = _ref.sex,\n mood = _ref.mood,\n age_from = _ref.age_from,\n age_to = _ref.age_to;\n return {\n pid: pid,\n person_ids: person_ids,\n spaces_ids: spaces_ids,\n origin_ids: origin_ids,\n conf: conf,\n liveness: liveness,\n id_from: id_from,\n date_from: date_from,\n date_to: date_to,\n limit: limit,\n offset: offset,\n sex: sex,\n mood: mood,\n age_from: age_from,\n age_to: age_to\n };\n };\n\n return this.httpClient.get(Entries.apiEndpoint, getFiltersData(filters));\n }\n }, {\n key: \"getEntriesStatsByPersonId\",\n value: function getEntriesStatsByPersonId(person_id) {\n return this.httpClient.get(\"\".concat(Entries.apiEndpoint, \"stats?person_id=\").concat(person_id));\n }\n }, {\n key: \"deleteEntry\",\n value: function deleteEntry(entryId) {\n return this.httpClient.delete(\"\".concat(Entries.apiEndpoint).concat(entryId, \"/\"));\n }\n }]);\n\n return Entries;\n}(_base_api__WEBPACK_IMPORTED_MODULE_0__[\"Api\"]);\n\n_defineProperty(Entries, \"apiEndpoint\", \"entries/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/entries/v1/index.ts?");
794
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Entries\", function() { return Entries; });\n/* harmony import */ var _base_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../base/api */ \"./src/base/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 Entries = /*#__PURE__*/function (_Api) {\n _inherits(Entries, _Api);\n\n var _super = _createSuper(Entries);\n\n function Entries(settings) {\n var _this;\n\n _classCallCheck(this, Entries);\n\n _this = _super.call(this, settings);\n _this.getEntries = _this.getEntries.bind(_assertThisInitialized(_this));\n _this.getEntriesStatsByPersonId = _this.getEntriesStatsByPersonId.bind(_assertThisInitialized(_this));\n _this.deleteEntry = _this.deleteEntry.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n _createClass(Entries, [{\n key: \"getEntries\",\n value: function getEntries() {\n var filters = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n var getFiltersData = function getFiltersData(_ref) {\n var pid = _ref.pid,\n person_ids = _ref.person_ids,\n spaces_ids = _ref.spaces_ids,\n origin_ids = _ref.origin_ids,\n conf = _ref.conf,\n liveness = _ref.liveness,\n id_from = _ref.id_from,\n date_from = _ref.date_from,\n date_to = _ref.date_to,\n limit = _ref.limit,\n offset = _ref.offset,\n sex = _ref.sex,\n mood = _ref.mood,\n age_from = _ref.age_from,\n age_to = _ref.age_to;\n return {\n pid: pid,\n person_ids: person_ids,\n spaces_ids: spaces_ids,\n origin_ids: origin_ids,\n conf: conf,\n liveness: liveness,\n id_from: id_from,\n date_from: date_from,\n date_to: date_to,\n limit: limit,\n offset: offset,\n sex: sex,\n mood: mood,\n age_from: age_from,\n age_to: age_to\n };\n };\n\n return this.httpClient.get(Entries.apiEndpoint, getFiltersData(filters));\n }\n }, {\n key: \"getEntriesStatsByPersonId\",\n value: function getEntriesStatsByPersonId(person_id) {\n return this.httpClient.get(\"\".concat(Entries.apiEndpoint, \"stats?person_id=\").concat(person_id));\n }\n }, {\n key: \"deleteEntry\",\n value: function deleteEntry(entryId) {\n return this.httpClient.delete(\"\".concat(Entries.apiEndpoint).concat(entryId));\n }\n }]);\n\n return Entries;\n}(_base_api__WEBPACK_IMPORTED_MODULE_0__[\"Api\"]);\n\n_defineProperty(Entries, \"apiEndpoint\", \"entries/\");\n\n\n\n//# sourceURL=webpack://SerpREST/./src/serp-rest-api/features/entries/v1/index.ts?");
795
795
 
796
796
  /***/ }),
797
797
 
@@ -2,8 +2,8 @@ const apiVersions = [1];
2
2
 
3
3
  const apiEndpoints = {
4
4
  v1: {
5
- base: "https://api.serptech.ru/v1/",
6
- auth: "https://iam.serptech.ru/v1/",
5
+ base: "https://api.serpdev.ru/v1/",
6
+ auth: "https://api.serpdev.ru/v1/",
7
7
  },
8
8
  };
9
9
 
@@ -63,7 +63,7 @@ class Entries extends Api implements EntriesInterface {
63
63
  }
64
64
 
65
65
  deleteEntry(entryId: id): Promise<null> {
66
- return this.httpClient.delete(`${Entries.apiEndpoint}${entryId}/`);
66
+ return this.httpClient.delete(`${Entries.apiEndpoint}${entryId}`);
67
67
  }
68
68
  }
69
69