@hapl/api-queries 0.2.55--canary.177.d8a3b5b.0 → 0.2.56

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.
@@ -19413,6 +19413,33 @@ function searchIconsRequest(_ref) {
19413
19413
  });
19414
19414
  }
19415
19415
 
19416
+ // документация https://yandex.ru/dev/geosuggest/doc/ru/
19417
+ function findYandexSuggestionsRequest(_ref) {
19418
+ var params = _ref.params;
19419
+ return axios.get('https://suggest-maps.yandex.ru/v1/suggest', {
19420
+ params: params,
19421
+ paramsSerializer: function paramsSerializer(params) {
19422
+ return qs.stringify(params, {
19423
+ arrayFormat: 'comma'
19424
+ });
19425
+ }
19426
+ });
19427
+ }
19428
+
19429
+ function yandexGeocodeRequest(_ref) {
19430
+ var params = _ref.params;
19431
+ return axios.get('https://geocode-maps.yandex.ru/1.x', {
19432
+ params: _extends({}, params, {
19433
+ format: 'json'
19434
+ }),
19435
+ paramsSerializer: function paramsSerializer(params) {
19436
+ return qs.stringify(params, {
19437
+ arrayFormat: 'comma'
19438
+ });
19439
+ }
19440
+ });
19441
+ }
19442
+
19416
19443
  var Api$5 = function Api() {
19417
19444
  this.findCallTransferByExpertId = function (urlParams) {
19418
19445
  return findCallTransferByExpertIdRequest({
@@ -19437,6 +19464,18 @@ var Api$5 = function Api() {
19437
19464
  params: params
19438
19465
  });
19439
19466
  };
19467
+
19468
+ this.findYandexSuggestions = function (params) {
19469
+ return findYandexSuggestionsRequest({
19470
+ params: params
19471
+ });
19472
+ };
19473
+
19474
+ this.yandexGeocode = function (params) {
19475
+ return yandexGeocodeRequest({
19476
+ params: params
19477
+ });
19478
+ };
19440
19479
  };
19441
19480
 
19442
19481
  var index$5 = {
@@ -19445,7 +19484,9 @@ var index$5 = {
19445
19484
  findCallTransferByExpertIdRequest: findCallTransferByExpertIdRequest,
19446
19485
  findIconByIdRequest: findIconByIdRequest,
19447
19486
  findIconPlatformsRequest: findIconPlatformsRequest,
19448
- searchIconsRequest: searchIconsRequest
19487
+ searchIconsRequest: searchIconsRequest,
19488
+ findYandexSuggestionsRequest: findYandexSuggestionsRequest,
19489
+ yandexGeocodeRequest: yandexGeocodeRequest
19449
19490
  };
19450
19491
 
19451
19492
  exports.Clients = index;