kui-crm_actions 0.0.134 → 0.0.136
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 +3 -3
- package/cjs/index.js.map +1 -1
- package/index.d.ts +4 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/index.js
CHANGED
@@ -382,10 +382,10 @@ var inspectionsRequests = {
|
|
382
382
|
var _a, res;
|
383
383
|
return __generator(this, function (_b) {
|
384
384
|
switch (_b.label) {
|
385
|
-
case 0: return [4 /*yield*/, to__default["default"](kuiCrm.requests.get("/
|
385
|
+
case 0: return [4 /*yield*/, to__default["default"](kuiCrm.requests.get("/apartments/".concat(apartmentId, "/inspection-types")))];
|
386
386
|
case 1:
|
387
387
|
_a = _b.sent(), _a[0], res = _a[1];
|
388
|
-
return [2 /*return*/, res];
|
388
|
+
return [2 /*return*/, res === null || res === void 0 ? void 0 : res.inspection_types];
|
389
389
|
}
|
390
390
|
});
|
391
391
|
});
|
@@ -677,7 +677,7 @@ var apartmentFields = {
|
|
677
677
|
};
|
678
678
|
},
|
679
679
|
getInspectionPaymentInfo: function (inspection) {
|
680
|
-
return __assign(__assign({}, this.getApartmentPaymentInfo(inspection)), { countryOfResidence: inspection.country_of_residence, taxesType: inspection.
|
680
|
+
return __assign(__assign({}, this.getApartmentPaymentInfo(inspection)), { countryOfResidence: inspection.country_of_residence, taxesType: inspection.tax_type });
|
681
681
|
},
|
682
682
|
getMeterInfo: function (meter, resource) {
|
683
683
|
var _a;
|