@serptech/api 1.0.21 → 1.0.24
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/entries/index.ts +0 -18
- package/packages/serp-rest-api/src/serp-rest-api/features/entries/v1/index.ts +3 -3
package/package.json
CHANGED
@@ -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(
|
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
|
|
@@ -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(
|
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
|
|
@@ -56,28 +56,10 @@ export interface EntryInterface {
|
|
56
56
|
}
|
57
57
|
|
58
58
|
export interface EntriesStatsInterface {
|
59
|
-
pid: string;
|
60
|
-
pid_created: string;
|
61
|
-
pid_source: {
|
62
|
-
id: id;
|
63
|
-
name: string;
|
64
|
-
};
|
65
|
-
age: number;
|
66
|
-
sex: Sex;
|
67
|
-
initial_face_image: string;
|
68
|
-
initial_full_image: string;
|
69
|
-
initial_facesize: number;
|
70
|
-
initial_liveness: string;
|
71
59
|
total: number;
|
72
60
|
exact: number;
|
73
61
|
ha: number;
|
74
62
|
junk: number;
|
75
|
-
reinit: number;
|
76
|
-
liveness: {
|
77
|
-
passed: number;
|
78
|
-
failed: number;
|
79
|
-
undetermined: number;
|
80
|
-
};
|
81
63
|
}
|
82
64
|
|
83
65
|
export interface EntriesInterface {
|
@@ -58,12 +58,12 @@ class Entries extends Api implements EntriesInterface {
|
|
58
58
|
return this.httpClient.get(Entries.apiEndpoint, getFiltersData(filters));
|
59
59
|
}
|
60
60
|
|
61
|
-
getEntriesStatsByPersonId(
|
62
|
-
return this.httpClient.get(`${Entries.apiEndpoint}stats
|
61
|
+
getEntriesStatsByPersonId(person_id: string): Promise<EntriesStatsInterface> {
|
62
|
+
return this.httpClient.get(`${Entries.apiEndpoint}stats?person_id=${person_id}`);
|
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
|
|