kui-crm_actions 0.0.132 → 0.0.134
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 +15 -2
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +15 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
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("/list/inspection_types?apartment=".concat(apartmentId)))];
|
386
|
+
case 1:
|
387
|
+
_a = _b.sent(), _a[0], res = _a[1];
|
388
|
+
return [2 /*return*/, res];
|
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 () {
|
@@ -1054,8 +1067,8 @@ var getRoomsImagesSteps = function (type, settings, roomsParams) { return __spre
|
|
1054
1067
|
__assign({ type: "kitchen" }, settings.kitchen)
|
1055
1068
|
], new Array(Number((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) || 0))
|
1056
1069
|
.fill(0)
|
1057
|
-
.map(function (_, index) { return (__assign({ type: "bedroom" }, settings.bedroom((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) ? "".concat(index + 1, " ") : ""))); }), true), new Array(Number((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.roomsNumber) || 0) -
|
1058
|
-
Number((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) || 0))
|
1070
|
+
.map(function (_, index) { return (__assign({ type: "bedroom" }, settings.bedroom((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) ? "".concat(index + 1, " ") : ""))); }), true), new Array(Math.max(Number((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.roomsNumber) || 0) -
|
1071
|
+
Number((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) || 0), 0))
|
1059
1072
|
.fill(0)
|
1060
1073
|
.map(function (_, index) { return (__assign({ type: "room" }, settings.room((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.roomsNumber)
|
1061
1074
|
? "".concat(index + 1 + ((roomsParams === null || roomsParams === void 0 ? void 0 : roomsParams.bedroomsNumber) || 0), " ")
|