kui-crm_actions 0.0.103 → 0.0.104

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
@@ -215,6 +215,9 @@ var inspectionsRequestBody = {
215
215
  service_elevators_number: inspection.serviceElevatorsCount,
216
216
  ceiling_height: inspection.ceilingHeight,
217
217
  building_year: inspection.buildingYear,
218
+ serial_number: inspection.houseNumber,
219
+ type_gas: inspection.gasLeads,
220
+ hot_water: inspection.withHotWater,
218
221
  type_houses: inspection.typeOfHouse,
219
222
  parking_type: inspection.parkingType,
220
223
  parking_number: inspection.parkingNumber,
@@ -705,12 +708,14 @@ var BasicApartmentInfoStepSchema = yup__namespace.object(BasicApartmentInfoField
705
708
 
706
709
  var getHouseInfoStep = function (settings) { return [
707
710
  __assign({ name: "typeOfHouse", label: "Type houses", variant: "select", options: kuiCrm.HouseTypesValues }, settings === null || settings === void 0 ? void 0 : settings.typeOfHouse),
708
- __assign({ name: "buildingYear", label: "Builded" }, settings === null || settings === void 0 ? void 0 : settings.buildingYear),
711
+ __assign({ name: "houseNumber", label: "House series" }, settings === null || settings === void 0 ? void 0 : settings.typeOfHouse),
709
712
  __assign({ name: "wallMaterial", label: "Wall material", variant: "select", options: kuiCrm.WallMaterialsValues }, settings === null || settings === void 0 ? void 0 : settings.wallMaterial),
710
713
  __assign({ name: "overlapType", label: "Overlap type", variant: "select", options: kuiCrm.SlabsTypesValues }, settings === null || settings === void 0 ? void 0 : settings.overlapType),
714
+ __assign({ name: "gasLeads", label: "Gas", variant: "select", options: kuiCrm.GasTypesValues }, settings === null || settings === void 0 ? void 0 : settings.gasLeads),
715
+ __assign({ name: "withHotWater", label: "Hot water", variant: "select", options: kuiCrm.BooleanValues }, settings === null || settings === void 0 ? void 0 : settings.withHotWater),
711
716
  __assign({ name: "passengerElevatorsCount", label: "Passenger elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.passengerElevatorsCount),
712
717
  __assign({ name: "serviceElevatorsCount", label: "Service elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.serviceElevatorsCount),
713
- __assign({ name: "ceilingHeight", label: "Ceiling height", type: "number", cornerLabel: "m.", step: 0.01 }, settings === null || settings === void 0 ? void 0 : settings.ceilingHeight),
718
+ __assign({ name: "buildingYear", label: "Builded" }, settings === null || settings === void 0 ? void 0 : settings.buildingYear),
714
719
  ]; };
715
720
 
716
721
  var HouseInfoFieldsSchema = {
@@ -720,7 +725,8 @@ var HouseInfoFieldsSchema = {
720
725
  buildingYear: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
721
726
  wallMaterial: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
722
727
  overlapType: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
723
- ceilingHeight: kuiCrm.positiveNumberSchema,
728
+ gasLeads: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
729
+ withHotWater: yup__namespace.boolean().required(kuiCrm.defaultRequiredMessage),
724
730
  };
725
731
  var HouseInfoStepSchema = yup__namespace.object(HouseInfoFieldsSchema);
726
732
 
@@ -749,6 +755,8 @@ var getDetailApartmentInfoFields = function (roomsCount, bedroomsCount, settings
749
755
  .flat()
750
756
  : []), true), [
751
757
  __assign({ name: "numberOfWindows", label: "Windows", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.numberOfWindows),
758
+ __assign(__assign({ name: "ceilingHeight", label: "Ceiling height", type: "number", cornerLabel: "m." }, inputProps), settings === null || settings === void 0 ? void 0 : settings.ceilingHeight),
759
+ __assign({ name: "numberOfWindows", label: "Windows", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.numberOfWindows),
752
760
  __assign({ name: "renovation.year", label: "Year of last renovation", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.renovation.year),
753
761
  __assign({ name: "renovation.type", label: "Type of renovation", variant: "select", options: kuiCrm.RenovationTypeValues }, (_a = settings === null || settings === void 0 ? void 0 : settings.renovation) === null || _a === void 0 ? void 0 : _a.type),
754
762
  __assign({ name: "renovation.style", label: "Renovation style", variant: "select", options: kuiCrm.RenovationStyleValues }, (_b = settings === null || settings === void 0 ? void 0 : settings.renovation) === null || _b === void 0 ? void 0 : _b.style),
@@ -766,6 +774,7 @@ var DetailApartmentInfoFieldsSchema = {
766
774
  type: yup__namespace.string().required("This field is required"),
767
775
  style: yup__namespace.string().required("This field is required"),
768
776
  }),
777
+ ceilingHeight: kuiCrm.positiveNumberSchema,
769
778
  };
770
779
  var DetailApartmentInfoStepSchema = yup__namespace.object(DetailApartmentInfoFieldsSchema);
771
780