kui-crm_actions 0.0.141 → 0.0.143

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
@@ -242,6 +242,12 @@ var inspectionsRequestBody = {
242
242
  distance_car_kilometers: station.carDistance,
243
243
  time_car_minutes: station.carTime,
244
244
  }); }),
245
+ used_resources: {
246
+ electricity: inspection.availableResources.electricity,
247
+ water: inspection.availableResources.water,
248
+ gas: inspection.availableResources.gas,
249
+ heating: inspection.availableResources.heating,
250
+ },
245
251
  };
246
252
  },
247
253
  getPostBodyRegularInspection: function (inspection, roomsImages) {
@@ -745,18 +751,9 @@ var BasicApartmentInfoFieldsSchema = {
745
751
  .test("check-id", "Please select an metro station from the dropdown", function (value) {
746
752
  return !!this.parent.id;
747
753
  }),
748
- walkDistance: yup__namespace
749
- .number()
750
- .required(kuiCrm.defaultRequiredMessage)
751
- .transform(function (value) { return (Number.isNaN(value) ? undefined : value); }),
752
- carDistance: yup__namespace
753
- .number()
754
- .required(kuiCrm.defaultRequiredMessage)
755
- .transform(function (value) { return (Number.isNaN(value) ? undefined : value); }),
756
- carTime: yup__namespace
757
- .number()
758
- .required(kuiCrm.defaultRequiredMessage)
759
- .transform(function (value) { return (Number.isNaN(value) ? undefined : value); }),
754
+ walkDistance: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
755
+ carDistance: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
756
+ carTime: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
760
757
  })),
761
758
  };
762
759
  var BasicApartmentInfoStepSchema = yup__namespace.object(BasicApartmentInfoFieldsSchema);
@@ -901,10 +898,10 @@ var SecurityApartmentInfoFieldsSchema = {
901
898
  var SecurityApartmentInfoStepSchema = yup__namespace.object(SecurityApartmentInfoFieldsSchema);
902
899
 
903
900
  var getAvailableResourcesFields = function (settings) { return [
904
- __assign({ label: "Water", name: "water", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.water),
905
- __assign({ label: "Electricity", name: "electricity", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.electricity),
906
- __assign({ label: "Gas", name: "gas", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.gas),
907
- __assign({ label: "Heating", name: "heating", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.heating),
901
+ __assign({ label: "Water", name: "availableResources.water", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.water),
902
+ __assign({ label: "Electricity", name: "availableResources.electricity", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.electricity),
903
+ __assign({ label: "Gas", name: "availableResources.gas", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.gas),
904
+ __assign({ label: "Heating", name: "availableResources.heating", variant: "custom", CustomInput: kuiCrm.BigCheckbox }, settings === null || settings === void 0 ? void 0 : settings.heating),
908
905
  ]; };
909
906
 
910
907
  var checkboxLabelProps = {