kui-crm_actions 0.0.87 → 0.0.89

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/index.d.ts CHANGED
@@ -41,6 +41,7 @@ type PartialMeterInfoFields = {
41
41
  number: string
42
42
  images: FileStore[]
43
43
  maxValue?: PartialMeterValuesFields
44
+ values: PartialMeterValuesFields
44
45
  } & PartialMeterValuesFields
45
46
 
46
47
  declare const getWaterMeterFields: (meters: PartialMeterInfoFields[], meter?: PartialMeterInfoFields | undefined, withCheckValue?: boolean | undefined, name?: string | undefined, settings?: any) => any[];
package/index.js CHANGED
@@ -140,7 +140,7 @@ var getWaterMeterFields = function (meters, meter, withCheckValue, name, setting
140
140
  __assign({ label: "Meter", name: "".concat(prefixName, "number"), variant: "select", options: meterOptions, size: 12 }, settings === null || settings === void 0 ? void 0 : settings.meter),
141
141
  __assign({ label: "Value", name: "".concat(prefixName, "value"), variant: "custom", CustomInput: NumberField, maxIntegerPart: 7, maxDecimalPart: 3, maxValue: ((_a = meter === null || meter === void 0 ? void 0 : meter.maxValue) === null || _a === void 0 ? void 0 : _a.value) && withCheckValue
142
142
  ? Number(meter.maxValue.value)
143
- : null, warningMessage: "There are deviations in meter readings. It should be no more than", placeholder: meter === null || meter === void 0 ? void 0 : meter.value }, settings === null || settings === void 0 ? void 0 : settings.value),
143
+ : null, warningMessage: "There are deviations in meter readings. It should be no more than", placeholder: meter === null || meter === void 0 ? void 0 : meter.values.value }, settings === null || settings === void 0 ? void 0 : settings.value),
144
144
  ];
145
145
  };
146
146
 
@@ -209,7 +209,7 @@ var inspectionsRequestBody = {
209
209
  },
210
210
  getInspectionFilling: function (fillingList) {
211
211
  return {
212
- filling: fillingList.map(function (filling) { return ({
212
+ filling: fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
213
213
  apartment_feature_id: filling.id,
214
214
  is_absent: !filling.check,
215
215
  }); }),
@@ -1006,13 +1006,13 @@ var FillingListStore = /** @class */ (function () {
1006
1006
  });
1007
1007
  }); };
1008
1008
  this.updateFillingList = function (fillingList) {
1009
- _this.fillingList = fillingList.map(function (filling) { return ({
1009
+ _this.fillingList = (fillingList === null || fillingList === void 0 ? void 0 : fillingList.map(function (filling) { return ({
1010
1010
  id: filling.id,
1011
1011
  name: filling.description,
1012
1012
  serialNumber: filling.serial_code,
1013
1013
  numberOfSubjects: filling.amount,
1014
1014
  wasMissing: filling.is_absent,
1015
- }); });
1015
+ }); })) || [];
1016
1016
  };
1017
1017
  this.fillingList = [];
1018
1018
  this.loader = new Loader();