kui-crm_actions 0.0.50 → 0.0.51

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
@@ -202,14 +202,14 @@ var inspectionsRequestBody = {
202
202
  }); }),
203
203
  };
204
204
  },
205
- getPostBodyQuarterlyInspection: function (inspection, roomsImages, metersImages) {
205
+ getPostBodyRegularInspection: function (inspection, roomsImages, metersImages) {
206
206
  return {
207
207
  date: luxon.DateTime.now().toISODate(),
208
- inspection_type: "quarterly",
208
+ inspection_type: "regular",
209
209
  based_on: null,
210
210
  dropbox_link: inspection.dropboxLink,
211
211
  photo_groups: roomsImages,
212
- quarterly: this.getPartialInspectionMeters(inspection.meters, metersImages),
212
+ regular: this.getPartialInspectionMeters(inspection.meters, metersImages),
213
213
  };
214
214
  },
215
215
  getPostBodyTransferInspection: function (inspection, roomsImages, metersImages) {
@@ -383,7 +383,7 @@ var inspectionsRequests = {
383
383
  });
384
384
  });
385
385
  },
386
- createQuarterlyInspection: function (data, apartmentId, loader) {
386
+ createRegularInspection: function (data, apartmentId, loader) {
387
387
  var _a;
388
388
  return __awaiter(this, void 0, void 0, function () {
389
389
  var metersImages, files, body;
@@ -398,7 +398,7 @@ var inspectionsRequests = {
398
398
  ], metersImages, true))];
399
399
  case 1:
400
400
  files = _b.sent();
401
- body = inspectionsRequestBody.getPostBodyQuarterlyInspection(data, files[0], files.slice(1));
401
+ body = inspectionsRequestBody.getPostBodyRegularInspection(data, files[0], files.slice(1));
402
402
  return [2 /*return*/, this.createInspection(apartmentId, body, loader)];
403
403
  case 2: return [2 /*return*/, null];
404
404
  }