@hapl/api-queries 0.2.54 → 0.2.55--canary.176.f0e6f19.0

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.
@@ -19350,11 +19350,8 @@ var index$4 = {
19350
19350
  };
19351
19351
 
19352
19352
  function findCallTransferByExpertIdRequest(_ref) {
19353
- var _ref$baseURL = _ref.baseURL,
19354
- baseURL = _ref$baseURL === void 0 ? 'https://analytics.homeapp.team:9090' : _ref$baseURL,
19355
- urlParams = _ref.urlParams;
19356
- return axios.get("?curator_id=" + urlParams.expertId, {
19357
- baseURL: baseURL,
19353
+ var urlParams = _ref.urlParams;
19354
+ return axios.get("https://analytics.homeapp.team:9090?curator_id=" + urlParams.expertId, {
19358
19355
  headers: {
19359
19356
  Accept: 'application/json',
19360
19357
  'Content-Type': 'application/json'
@@ -19377,47 +19374,51 @@ function findCallTransferByExpertIdRequest(_ref) {
19377
19374
  });
19378
19375
  }
19379
19376
 
19380
- var api$5 = {
19381
- __proto__: null,
19382
- findCallTransferByExpertIdRequest: findCallTransferByExpertIdRequest
19383
- };
19384
-
19385
- var Api$5 = function Api(baseURL) {
19386
- var _this = this;
19387
-
19388
- this.baseURL = baseURL;
19377
+ // документация https://yandex.ru/dev/geosuggest/doc/ru/
19378
+ function findYandexSuggestionsRequest(_ref) {
19379
+ var params = _ref.params;
19380
+ return axios.get('https://suggest-maps.yandex.ru/v1/suggest', {
19381
+ params: params,
19382
+ paramsSerializer: function paramsSerializer(params) {
19383
+ return qs.stringify(params, {
19384
+ arrayFormat: 'comma'
19385
+ });
19386
+ }
19387
+ });
19388
+ }
19389
19389
 
19390
- this.findCallTransferByExpertId = /*#__PURE__*/function () {
19391
- var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(urlParams) {
19392
- return runtime_1.wrap(function _callee$(_context) {
19393
- while (1) {
19394
- switch (_context.prev = _context.next) {
19395
- case 0:
19396
- _context.t0 = api$5;
19397
- _context.next = 3;
19398
- return _this.baseURL;
19390
+ function yandexGeocodeRequest(_ref) {
19391
+ var params = _ref.params;
19392
+ return axios.get('https://geocode-maps.yandex.ru/1.x', {
19393
+ params: _extends({}, params, {
19394
+ format: 'json'
19395
+ }),
19396
+ paramsSerializer: function paramsSerializer(params) {
19397
+ return qs.stringify(params, {
19398
+ arrayFormat: 'comma'
19399
+ });
19400
+ }
19401
+ });
19402
+ }
19399
19403
 
19400
- case 3:
19401
- _context.t1 = _context.sent;
19402
- _context.t2 = urlParams;
19403
- _context.t3 = {
19404
- baseURL: _context.t1,
19405
- urlParams: _context.t2
19406
- };
19407
- return _context.abrupt("return", _context.t0.findCallTransferByExpertIdRequest.call(_context.t0, _context.t3));
19404
+ var Api$5 = function Api() {
19405
+ this.findCallTransferByExpertId = function (urlParams) {
19406
+ return findCallTransferByExpertIdRequest({
19407
+ urlParams: urlParams
19408
+ });
19409
+ };
19408
19410
 
19409
- case 7:
19410
- case "end":
19411
- return _context.stop();
19412
- }
19413
- }
19414
- }, _callee);
19415
- }));
19411
+ this.findYandexSuggestions = function (params) {
19412
+ return findYandexSuggestionsRequest({
19413
+ params: params
19414
+ });
19415
+ };
19416
19416
 
19417
- return function (_x) {
19418
- return _ref.apply(this, arguments);
19419
- };
19420
- }();
19417
+ this.yandexGeocode = function (params) {
19418
+ return yandexGeocodeRequest({
19419
+ params: params
19420
+ });
19421
+ };
19421
19422
  };
19422
19423
 
19423
19424
  var index$5 = {