kui-crm_actions 0.0.133 → 0.0.135

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/cjs/index.js CHANGED
@@ -377,6 +377,19 @@ var inspectionsRequestBody = {
377
377
  };
378
378
 
379
379
  var inspectionsRequests = {
380
+ getInspectionTypes: function (apartmentId) {
381
+ return __awaiter(this, void 0, void 0, function () {
382
+ var _a, res;
383
+ return __generator(this, function (_b) {
384
+ switch (_b.label) {
385
+ case 0: return [4 /*yield*/, to__default["default"](kuiCrm.requests.get("/apartments/".concat(apartmentId, "/inspection-types")))];
386
+ case 1:
387
+ _a = _b.sent(), _a[0], res = _a[1];
388
+ return [2 /*return*/, res === null || res === void 0 ? void 0 : res.inspection_types];
389
+ }
390
+ });
391
+ });
392
+ },
380
393
  createInspection: function (apartmentId, body, loader) {
381
394
  var _a;
382
395
  return __awaiter(this, void 0, void 0, function () {