"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.throwRecordService = exports.throwFailPersonService = exports.throwFailBehaviorService = exports.queryPage = exports.overViewService = exports.getViolateBehavior = exports.getLoadEnumValue = exports.getDivisionBusinessPackages = exports.deviceService = exports.alarmService = exports.BaseService = void 0;
var _tslib = require("tslib");
var _utils = require("@vtx/utils");
var _ahooks = require("ahooks");
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
var query = function query(url, params) {
  var method = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'get';
  return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee() {
    var res;
    return _regenerator().w(function (_context) {
      while (1) switch (_context.n) {
        case 0:
          _context.n = 1;
          return _utils.request[method](url, {
            data: params
          });
        case 1:
          res = _context.v;
          return _context.a(2, res === null || res === void 0 ? void 0 : res.data);
      }
    }, _callee);
  }));
};
var queryPage = exports.queryPage = function queryPage(url, params) {
  return (0, _tslib.__awaiter)(void 0, void 0, void 0, /*#__PURE__*/_regenerator().m(function _callee2() {
    var _a, _b, res;
    return _regenerator().w(function (_context2) {
      while (1) switch (_context2.n) {
        case 0:
          _context2.n = 1;
          return _utils.request.get(url, {
            data: params
          });
        case 1:
          res = _context2.v;
          return _context2.a(2, {
            list: ((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.rows) || [],
            total: ((_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.total) || 0
          });
      }
    }, _callee2);
  }));
};
var PREFIX = '/cloud/sdyd/kanban/v2/popupCommon';
// 违规行为下拉
var getViolateBehavior = exports.getViolateBehavior = function getViolateBehavior() {
  return query('/cloud/sdyd/common/loadEnumValue', {
    enumCode: 'ThrowAberrantEnum'
  }, 'post');
};
// 业务包枚举
var getLoadEnumValue = exports.getLoadEnumValue = function getLoadEnumValue(throwPointId) {
  var _useRequest = (0, _ahooks.useRequest)(function () {
      return query('/cloud/sdyd/user/divisionBusinessPackages', {
        throwPointId: throwPointId
      });
    }, {
      ready: !!throwPointId,
      refreshDeps: [throwPointId]
    }),
    data = _useRequest.data;
  return data;
};
var BaseService = exports.BaseService = {
  useTabConfig: function useTabConfig(id) {
    var _a, _b, _c, _d, _e;
    var _useRequest2 = (0, _ahooks.useRequest)(function () {
        return _utils.request.get('/cloud/jcss-reborn/facility/type/config/getByCode', {
          data: {
            code: 'tfd'
          }
        });
      }, {
        ready: !!id,
        refreshDeps: [id]
      }),
      tabConfig = _useRequest2.data;
    return {
      tabIsFilter: !!((_b = (_a = tabConfig === null || tabConfig === void 0 ? void 0 : tabConfig.data) === null || _a === void 0 ? void 0 : _a.popupConfigJson) === null || _b === void 0 ? void 0 : _b.length),
      tabConfig: ((_e = (_d = (_c = tabConfig === null || tabConfig === void 0 ? void 0 : tabConfig.data) === null || _c === void 0 ? void 0 : _c.popupConfigJson) === null || _d === void 0 ? void 0 : _d.filter(function (ele) {
        return ele.display;
      })) === null || _e === void 0 ? void 0 : _e.map(function (ele) {
        return {
          key: ele.code,
          title: ele.name
        };
      })) || [],
      visited: !!tabConfig
    };
  }
};
// 综合总览
var overViewService = exports.overViewService = {
  // 投放点
  throwPoints: function throwPoints(_ref) {
    var throwPointId = _ref.throwPointId;
    var _useRequest3 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/throwPoint/list', {
          throwPointId: throwPointId,
          containsLongLat: true
        });
      }, {
        ready: !!throwPointId,
        refreshDeps: [throwPointId]
      }),
      data = _useRequest3.data;
    return data;
  },
  // 投放点基本数据
  estateStatistics: function estateStatistics(_ref2) {
    var throwPointId = _ref2.throwPointId;
    var _useRequest4 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/video/getById', {
          throwPointId: throwPointId
        });
      }, {
        ready: !!throwPointId,
        refreshDeps: [throwPointId]
      }),
      data = _useRequest4.data;
    return data;
  },
  // 投放热度按垃圾类型统计
  getGarbageNames: function getGarbageNames() {
    var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
    var _useRequest5 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/backendConfiguration/get', {});
      }),
      data = _useRequest5.data;
    return {
      wrongTimeName: ((_b = (_a = data === null || data === void 0 ? void 0 : data.aiPredictAuditConfig) === null || _a === void 0 ? void 0 : _a.wrongTime) === null || _b === void 0 ? void 0 : _b.name) || '',
      wrongTimeMergeName: ((_d = (_c = data === null || data === void 0 ? void 0 : data.aiPredictAuditConfig) === null || _c === void 0 ? void 0 : _c.wrongTime) === null || _d === void 0 ? void 0 : _d.mergeName) || '',
      trashBagName: ((_f = (_e = data === null || data === void 0 ? void 0 : data.aiPredictAuditConfig) === null || _e === void 0 ? void 0 : _e.trashBag) === null || _f === void 0 ? void 0 : _f.name) || '',
      rightTimeName: ((_h = (_g = data === null || data === void 0 ? void 0 : data.aiPredictAuditConfig) === null || _g === void 0 ? void 0 : _g.rightTime) === null || _h === void 0 ? void 0 : _h.name) || '',
      mixedThrowName: ((_k = (_j = data === null || data === void 0 ? void 0 : data.aiPredictAuditConfig) === null || _j === void 0 ? void 0 : _j.mixedThrow) === null || _k === void 0 ? void 0 : _k.name) || ''
    };
  },
  // 垃圾类型的图标
  getGarbageIcons: function getGarbageIcons() {
    var _useRequest6 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/jcss-reborn/garbageType/list', {});
      }),
      data = _useRequest6.data;
    return (data === null || data === void 0 ? void 0 : data.map(function (ele) {
      return Object.assign(Object.assign({}, ele), {
        code: ele.code.toUpperCase()
      });
    })) || [];
  },
  // 投放热度按垃圾类型统计
  throwSumByGarbageType: function throwSumByGarbageType(_ref3) {
    var throwPointId = _ref3.throwPointId;
    var _useRequest7 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/throwSumByGarbageType"), {
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [throwPointId]
        // pollingInterval: 5000
      }),
      data = _useRequest7.data;
    return data;
  },
  // 投放热度按24h统计
  throwSumByHour: function throwSumByHour(_ref4) {
    var throwPointId = _ref4.throwPointId;
    var _useRequest8 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/throwSumByHour"), {
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [throwPointId]
      }),
      data = _useRequest8.data;
    return data;
  },
  // 投放热度点位分布及一周趋势
  throwSumByDayAndPoint: function throwSumByDayAndPoint(_ref5) {
    var throwPointId = _ref5.throwPointId;
    var _useRequest9 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/throwSumByDayAndPointOneWeek"), {
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [throwPointId]
      }),
      data = _useRequest9.data;
    return data;
  },
  // AI工单报事件类型分布
  alarmSumByType: function alarmSumByType(_ref6) {
    var throwPointId = _ref6.throwPointId,
      businessPackage = _ref6.businessPackage,
      beginTime = _ref6.beginTime,
      endTime = _ref6.endTime;
    var _useRequest0 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/aiAlarmGroupByType"), {
          throwPointId: throwPointId,
          businessPackage: businessPackage,
          beginTime: beginTime,
          endTime: endTime
        });
      }, {
        refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
        // pollingInterval: 5000
      }),
      data = _useRequest0.data;
    return data;
  },
  // AI工单近一周趋势
  alarmSumByDate: function alarmSumByDate(_ref7) {
    var throwPointId = _ref7.throwPointId,
      businessPackage = _ref7.businessPackage,
      beginTime = _ref7.beginTime,
      endTime = _ref7.endTime;
    var _useRequest1 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/aiAlarmGroupByTypeAndDayOneWeek"), {
          throwPointId: throwPointId,
          businessPackage: businessPackage,
          beginTime: beginTime,
          endTime: endTime
        });
      }, {
        refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
      }),
      data = _useRequest1.data;
    return data;
  },
  // 运营管理
  managementData: function managementData(_ref8) {
    var throwPointId = _ref8.throwPointId;
    var _useRequest10 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/operationManagement"), {
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [throwPointId]
        // pollingInterval: 5 * 60 * 1000
      }),
      data = _useRequest10.data;
    return data;
  },
  // 工单处理效率
  resolveEfficiency: function resolveEfficiency(_ref9) {
    var throwPointId = _ref9.throwPointId,
      businessPackage = _ref9.businessPackage,
      beginTime = _ref9.beginTime,
      endTime = _ref9.endTime;
    var _useRequest11 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/resolveEfficiency"), {
          throwPointId: throwPointId,
          businessPackage: businessPackage,
          beginTime: beginTime,
          endTime: endTime
        });
      }, {
        refreshDeps: [throwPointId, businessPackage, beginTime, endTime]
        //pollingInterval: 5000
      }),
      data = _useRequest11.data;
    return data;
  }
};
var getDivisionBusinessPackages = exports.getDivisionBusinessPackages = function getDivisionBusinessPackages(throwPointId) {
  var _useRequest12 = (0, _ahooks.useRequest)(function () {
      return query('/cloud/sdyd/user/divisionBusinessPackages', {
        throwPointId: throwPointId
      });
    }, {
      ready: !!throwPointId,
      refreshDeps: [throwPointId]
    }),
    data = _useRequest12.data;
  return data;
};
// 违规人公示
var throwFailPersonService = exports.throwFailPersonService = {
  list: function list(_ref0) {
    var beginTime = _ref0.beginTime,
      endTime = _ref0.endTime,
      _ref0$throwPointId = _ref0.throwPointId,
      throwPointId = _ref0$throwPointId === void 0 ? '' : _ref0$throwPointId;
    var _useRequest13 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/throwFailPersonPage"), {
          page: 0,
          size: 999999,
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        ready: !!throwPointId,
        refreshDeps: [throwPointId, beginTime, endTime]
      }),
      data = _useRequest13.data;
    return data;
  },
  "export": function _export(_ref1) {
    var beginTime = _ref1.beginTime,
      endTime = _ref1.endTime,
      _ref1$throwPointId = _ref1.throwPointId,
      throwPointId = _ref1$throwPointId === void 0 ? '' : _ref1$throwPointId,
      _ref1$throwFailIds = _ref1.throwFailIds,
      throwFailIds = _ref1$throwFailIds === void 0 ? '' : _ref1$throwFailIds;
    (0, _utils.downloadFile)("".concat(PREFIX, "/throwFailPersonExport"), {
      data: {
        beginTime: beginTime,
        endTime: endTime,
        throwPointId: throwPointId,
        throwFailIds: throwFailIds
      }
    }, 'blob');
  }
};
// 投放热度
var throwRecordService = exports.throwRecordService = {
  count: function count(_ref10) {
    var throwPointId = _ref10.throwPointId,
      startDatetime = _ref10.startDatetime,
      endDatetime = _ref10.endDatetime;
    var _useRequest14 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/throwRecord/count', {
          throwPointId: throwPointId,
          startDatetime: startDatetime,
          endDatetime: endDatetime
        });
      }, {
        ready: !!throwPointId,
        refreshDeps: [throwPointId, startDatetime, endDatetime]
      }),
      data = _useRequest14.data;
    return data;
  }
};
// 违规行为
var throwFailBehaviorService = exports.throwFailBehaviorService = {
  list: function list(_ref11) {
    var startDatetime = _ref11.startDatetime,
      endDatetime = _ref11.endDatetime,
      _ref11$throwPointId = _ref11.throwPointId,
      throwPointId = _ref11$throwPointId === void 0 ? '' : _ref11$throwPointId,
      _ref11$throwAberrantC = _ref11.throwAberrantCode,
      throwAberrantCode = _ref11$throwAberrantC === void 0 ? '' : _ref11$throwAberrantC;
    var _useRequest15 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/throwFail/list', {
          startDatetime: startDatetime,
          endDatetime: endDatetime,
          throwPointId: throwPointId,
          throwAberrantCode: throwAberrantCode,
          auditStatusCode: 'PASSED',
          sourceCodes: ' VIDEO,AI',
          rectificationStatuses: 'TO_BE_RESOLVED,TO_BE_AUDITED,FAILED,PASSED'
        });
      }, {
        ready: !!throwPointId,
        refreshDeps: [startDatetime, endDatetime, throwPointId, throwAberrantCode]
      }),
      data = _useRequest15.data;
    return data;
  },
  "export": function _export(_ref12) {
    var startDatetime = _ref12.startDatetime,
      endDatetime = _ref12.endDatetime,
      _ref12$throwPointId = _ref12.throwPointId,
      throwPointId = _ref12$throwPointId === void 0 ? '' : _ref12$throwPointId;
    (0, _utils.downloadFile)("".concat(PREFIX, "/throwFailPersonExport"), {
      data: {
        startDatetime: startDatetime,
        endDatetime: endDatetime,
        throwPointId: throwPointId,
        auditStatusCode: 'PASSED',
        sourceCodes: ' VIDEO,AI'
      }
    }, 'blob');
  }
};
var alarmService = exports.alarmService = {
  tabs: function tabs(_ref13) {
    var throwPointId = _ref13.throwPointId;
    var _useRequest16 = (0, _ahooks.useRequest)(function () {
        return query(' /cloud/sdyd/user/divisionBusinessPackages', {
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: []
      }),
      data = _useRequest16.data;
    return data;
  },
  // 黑榜
  blackRank: function blackRank(_ref14) {
    var thisAreaId = _ref14.thisAreaId,
      areaDimension = _ref14.areaDimension,
      businessPackage = _ref14.businessPackage;
    var _useRequest17 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/kanban/v2/center/operationResultBlackRanking', {
          thisAreaId: thisAreaId,
          areaDimension: areaDimension,
          businessPackage: businessPackage
        });
      }, {
        refreshDeps: [thisAreaId, areaDimension, businessPackage]
        // pollingInterval: 5 * 50 * 1000
      }),
      data = _useRequest17.data;
    return data;
  },
  // 落地包-一周分布
  aiAlarmGroupByTypeAndHourOneWeek: function aiAlarmGroupByTypeAndHourOneWeek(_ref15) {
    var throwPointId = _ref15.throwPointId,
      beginTime = _ref15.beginTime,
      endTime = _ref15.endTime,
      businessPackage = _ref15.businessPackage;
    var _useRequest18 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/aiAlarmGroupByTypeAndHourOneWeek"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId,
          businessPackage: businessPackage
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId, businessPackage]
        // pollingInterval: 5000
      }),
      data = _useRequest18.data;
    var obj = {};
    if (data === null || data === void 0 ? void 0 : data.length) {
      data.forEach(function (item) {
        if (!obj[item.date]) {
          obj[item.date] = {
            count: item.count,
            date: item.date
          };
        }
        obj[item.date].count += item.count;
      });
    }
    return Object.values(obj);
  },
  // 分类质量-厨余未破袋，混合投放占比
  chuyuFail: function chuyuFail(_ref16) {
    var throwPointId = _ref16.throwPointId,
      beginTime = _ref16.beginTime,
      endTime = _ref16.endTime;
    var _useRequest19 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/chuyuFail"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
        // pollingInterval: 5000
      }),
      data = _useRequest19.data;
    return data;
  },
  // 分类质量-混投垃圾排行
  mixSumRank: function mixSumRank(_ref17) {
    var throwPointId = _ref17.throwPointId,
      beginTime = _ref17.beginTime,
      endTime = _ref17.endTime;
    var _useRequest20 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/mixedThrowSumByGarbageType"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
      }),
      data = _useRequest20.data;
    return data;
  },
  // 满溢-处理效率
  myEfficiency: function myEfficiency(_ref18) {
    var throwPointId = _ref18.throwPointId,
      beginTime = _ref18.beginTime,
      endTime = _ref18.endTime;
    var _useRequest21 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/overflowResolveEfficiency"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
      }),
      data = _useRequest21.data;
    return data;
  },
  // 满溢-垃圾类型占比
  mySumByGarbageType: function mySumByGarbageType(_ref19) {
    var throwPointId = _ref19.throwPointId,
      beginTime = _ref19.beginTime,
      endTime = _ref19.endTime;
    var _useRequest22 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/overflowSumByGarbageType"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
      }),
      data = _useRequest22.data;
    return data;
  },
  // 满溢-一周趋势变化
  mySumByGarbageTypeAndDay: function mySumByGarbageTypeAndDay(_ref20) {
    var throwPointId = _ref20.throwPointId,
      beginTime = _ref20.beginTime,
      endTime = _ref20.endTime;
    var _useRequest23 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/overflowSumByGarbageTypeAndDay"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
      }),
      data = _useRequest23.data;
    return data;
  },
  // 满溢-时段分布
  mySumByGarbageTypeAndPeriod: function mySumByGarbageTypeAndPeriod(_ref21) {
    var throwPointId = _ref21.throwPointId,
      beginTime = _ref21.beginTime,
      endTime = _ref21.endTime;
    var _useRequest24 = (0, _ahooks.useRequest)(function () {
        return query("".concat(PREFIX, "/overflowSumByGarbageTypeAndPeriod"), {
          beginTime: beginTime,
          endTime: endTime,
          throwPointId: throwPointId
        });
      }, {
        refreshDeps: [beginTime, endTime, throwPointId]
      }),
      data = _useRequest24.data;
    return data;
  }
};
var deviceService = exports.deviceService = {
  throwPointDeviceStatusTopology: function throwPointDeviceStatusTopology(_ref22) {
    var throwPointId = _ref22.throwPointId,
      tenantId = _ref22.tenantId;
    var _useRequest25 = (0, _ahooks.useRequest)(function () {
        return query('/cloud/sdyd/throwPoint/intelligent/throwPointDeviceStatusTopology', {
          throwPointId: throwPointId,
          tenantId: tenantId
        });
      }, {
        refreshDeps: []
      }),
      data = _useRequest25.data;
    return data;
  }
};
//# sourceMappingURL=api.js.map
