@hapl/api-queries 0.2.6 → 0.2.7--canary.129.f47f84f.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.
@@ -14209,8 +14209,85 @@ var index$4 = {
14209
14209
  get RealtyRenovationType () { return RealtyRenovationType$3; }
14210
14210
  };
14211
14211
 
14212
+ function findCallTransferByExpertIdRequest(_ref) {
14213
+ var _ref$baseURL = _ref.baseURL,
14214
+ baseURL = _ref$baseURL === void 0 ? 'https://analytics.homeapp.team:9090' : _ref$baseURL,
14215
+ urlParams = _ref.urlParams;
14216
+ return axios.get("?curator_id=" + urlParams.expertId, {
14217
+ baseURL: baseURL,
14218
+ headers: {
14219
+ Accept: 'application/json',
14220
+ 'Content-Type': 'application/json'
14221
+ },
14222
+ transformResponse: [].concat(axios.defaults.transformResponse, [function (data) {
14223
+ if (isNil(data == null ? void 0 : data.id)) {
14224
+ throw {
14225
+ response: data
14226
+ };
14227
+ }
14228
+
14229
+ return {
14230
+ id: String(data == null ? void 0 : data.id)
14231
+ };
14232
+ }])
14233
+ }).then(function (res) {
14234
+ return res;
14235
+ })["catch"](function (err) {
14236
+ throw err;
14237
+ });
14238
+ }
14239
+
14240
+ var api$5 = {
14241
+ __proto__: null,
14242
+ findCallTransferByExpertIdRequest: findCallTransferByExpertIdRequest
14243
+ };
14244
+
14245
+ var Api$5 = function Api(baseURL) {
14246
+ var _this = this;
14247
+
14248
+ this.baseURL = baseURL;
14249
+
14250
+ this.findCallTransferByExpertId = /*#__PURE__*/function () {
14251
+ var _ref = _asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(urlParams) {
14252
+ return runtime_1.wrap(function _callee$(_context) {
14253
+ while (1) {
14254
+ switch (_context.prev = _context.next) {
14255
+ case 0:
14256
+ _context.t0 = api$5;
14257
+ _context.next = 3;
14258
+ return _this.baseURL;
14259
+
14260
+ case 3:
14261
+ _context.t1 = _context.sent;
14262
+ _context.t2 = urlParams;
14263
+ _context.t3 = {
14264
+ baseURL: _context.t1,
14265
+ urlParams: _context.t2
14266
+ };
14267
+ return _context.abrupt("return", _context.t0.findCallTransferByExpertIdRequest.call(_context.t0, _context.t3));
14268
+
14269
+ case 7:
14270
+ case "end":
14271
+ return _context.stop();
14272
+ }
14273
+ }
14274
+ }, _callee);
14275
+ }));
14276
+
14277
+ return function (_x) {
14278
+ return _ref.apply(this, arguments);
14279
+ };
14280
+ }();
14281
+ };
14282
+
14283
+ var index$5 = {
14284
+ __proto__: null,
14285
+ Api: Api$5
14286
+ };
14287
+
14212
14288
  exports.Clients = index;
14213
14289
  exports.ClientsV2 = index$1;
14290
+ exports.External = index$5;
14214
14291
  exports.Publisher = index$2;
14215
14292
  exports.Registry = index$3;
14216
14293
  exports.Search = index$4;