@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.
- package/dist/api-queries.cjs.development.js +43 -42
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +43 -42
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/external/{callTransfer → api/callTransfer}/findCallTransferByExpertId.d.ts +1 -2
- package/dist/external/api/index.d.ts +3 -0
- package/dist/external/api/yandex/findYandexSuggestions.d.ts +54 -0
- package/dist/external/api/yandex/yandexGeocode.d.ts +67 -0
- package/dist/external/index.d.ts +77 -3
- package/package.json +1 -1
- package/src/external/{callTransfer → api/callTransfer}/findCallTransferByExpertId.ts +4 -13
- package/src/external/api/index.ts +3 -0
- package/src/external/api/yandex/findYandexSuggestions.ts +69 -0
- package/src/external/api/yandex/yandexGeocode.ts +83 -0
- package/src/external/index.ts +10 -4
|
@@ -19350,11 +19350,8 @@ var index$4 = {
|
|
|
19350
19350
|
};
|
|
19351
19351
|
|
|
19352
19352
|
function findCallTransferByExpertIdRequest(_ref) {
|
|
19353
|
-
var
|
|
19354
|
-
|
|
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
|
-
|
|
19381
|
-
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
|
|
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
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
|
|
19395
|
-
|
|
19396
|
-
|
|
19397
|
-
|
|
19398
|
-
|
|
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
|
-
|
|
19401
|
-
|
|
19402
|
-
|
|
19403
|
-
|
|
19404
|
-
|
|
19405
|
-
|
|
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
|
-
|
|
19410
|
-
|
|
19411
|
-
|
|
19412
|
-
|
|
19413
|
-
|
|
19414
|
-
}, _callee);
|
|
19415
|
-
}));
|
|
19411
|
+
this.findYandexSuggestions = function (params) {
|
|
19412
|
+
return findYandexSuggestionsRequest({
|
|
19413
|
+
params: params
|
|
19414
|
+
});
|
|
19415
|
+
};
|
|
19416
19416
|
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19420
|
-
|
|
19417
|
+
this.yandexGeocode = function (params) {
|
|
19418
|
+
return yandexGeocodeRequest({
|
|
19419
|
+
params: params
|
|
19420
|
+
});
|
|
19421
|
+
};
|
|
19421
19422
|
};
|
|
19422
19423
|
|
|
19423
19424
|
var index$5 = {
|