kui-crm_actions 0.0.133 → 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 +13 -0
- package/cjs/index.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +13 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -295,6 +295,7 @@ type InventoryInspectionFormFields = CommonInspectionFormFields &
|
|
295
295
|
InspectionRoomsImagesFields
|
296
296
|
|
297
297
|
declare const inspectionsRequests: {
|
298
|
+
getInspectionTypes(apartmentId: number): Promise<InspectionTypes[] | undefined>;
|
298
299
|
createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
|
299
300
|
createInitialInspection(data: InitialInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
300
301
|
createRegularInspection(data: RegularInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
package/index.js
CHANGED
@@ -348,6 +348,19 @@ var inspectionsRequestBody = {
|
|
348
348
|
};
|
349
349
|
|
350
350
|
var inspectionsRequests = {
|
351
|
+
getInspectionTypes: function (apartmentId) {
|
352
|
+
return __awaiter(this, void 0, void 0, function () {
|
353
|
+
var _a, res;
|
354
|
+
return __generator(this, function (_b) {
|
355
|
+
switch (_b.label) {
|
356
|
+
case 0: return [4 /*yield*/, to(requests.get("/list/inspection_types?apartment=".concat(apartmentId)))];
|
357
|
+
case 1:
|
358
|
+
_a = _b.sent(), _a[0], res = _a[1];
|
359
|
+
return [2 /*return*/, res];
|
360
|
+
}
|
361
|
+
});
|
362
|
+
});
|
363
|
+
},
|
351
364
|
createInspection: function (apartmentId, body, loader) {
|
352
365
|
var _a;
|
353
366
|
return __awaiter(this, void 0, void 0, function () {
|