kui-crm_actions 0.0.102 → 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,7 +215,12 @@ 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,
222
+ parking_type: inspection.parkingType,
223
+ parking_number: inspection.parkingNumber,
219
224
  rooms: inspection.rooms.map(function (room, index) { return ({
220
225
  id: room.id,
221
226
  room_type: room.type,
@@ -283,7 +288,7 @@ var inspectionsRequestBody = {
283
288
  ? kuiUtils.getPhoneNumberFromPhoneParams(inspection.videoControlPhone)
284
289
  : null, home_phone: inspection.homePhone
285
290
  ? kuiUtils.getPhoneNumberFromPhoneParams(inspection.homePhone)
286
- : null, wifi_name: (_g = inspection.wifi) === null || _g === void 0 ? void 0 : _g.name, wifi_password: (_h = inspection.wifi) === null || _h === void 0 ? void 0 : _h.password, internet_provider_link: (_j = inspection.internetProvider) === null || _j === void 0 ? void 0 : _j.link, internet_provider_login: (_k = inspection.internetProvider) === null || _k === void 0 ? void 0 : _k.login, internet_provider_password: (_l = inspection.internetProvider) === null || _l === void 0 ? void 0 : _l.password, parking_type: inspection.parkingType, parking_number: inspection.parkingNumber, payer_code: inspection.payerCode, filling: inspection.fillingList.map(function (filling, index) {
291
+ : null, wifi_name: (_g = inspection.wifi) === null || _g === void 0 ? void 0 : _g.name, wifi_password: (_h = inspection.wifi) === null || _h === void 0 ? void 0 : _h.password, internet_provider_link: (_j = inspection.internetProvider) === null || _j === void 0 ? void 0 : _j.link, internet_provider_login: (_k = inspection.internetProvider) === null || _k === void 0 ? void 0 : _k.login, internet_provider_password: (_l = inspection.internetProvider) === null || _l === void 0 ? void 0 : _l.password, payer_code: inspection.payerCode, filling: inspection.fillingList.map(function (filling, index) {
287
292
  var _a;
288
293
  return ({
289
294
  feature: ((_a = filling.tag) === null || _a === void 0 ? void 0 : _a.id) || 0,
@@ -703,12 +708,14 @@ var BasicApartmentInfoStepSchema = yup__namespace.object(BasicApartmentInfoField
703
708
 
704
709
  var getHouseInfoStep = function (settings) { return [
705
710
  __assign({ name: "typeOfHouse", label: "Type houses", variant: "select", options: kuiCrm.HouseTypesValues }, settings === null || settings === void 0 ? void 0 : settings.typeOfHouse),
706
- __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),
707
712
  __assign({ name: "wallMaterial", label: "Wall material", variant: "select", options: kuiCrm.WallMaterialsValues }, settings === null || settings === void 0 ? void 0 : settings.wallMaterial),
708
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),
709
716
  __assign({ name: "passengerElevatorsCount", label: "Passenger elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.passengerElevatorsCount),
710
717
  __assign({ name: "serviceElevatorsCount", label: "Service elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.serviceElevatorsCount),
711
- __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),
712
719
  ]; };
713
720
 
714
721
  var HouseInfoFieldsSchema = {
@@ -718,7 +725,8 @@ var HouseInfoFieldsSchema = {
718
725
  buildingYear: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
719
726
  wallMaterial: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
720
727
  overlapType: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
721
- ceilingHeight: kuiCrm.positiveNumberSchema,
728
+ gasLeads: yup__namespace.string().required(kuiCrm.defaultRequiredMessage),
729
+ withHotWater: yup__namespace.boolean().required(kuiCrm.defaultRequiredMessage),
722
730
  };
723
731
  var HouseInfoStepSchema = yup__namespace.object(HouseInfoFieldsSchema);
724
732
 
@@ -747,6 +755,8 @@ var getDetailApartmentInfoFields = function (roomsCount, bedroomsCount, settings
747
755
  .flat()
748
756
  : []), true), [
749
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),
750
760
  __assign({ name: "renovation.year", label: "Year of last renovation", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.renovation.year),
751
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),
752
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),
@@ -764,6 +774,7 @@ var DetailApartmentInfoFieldsSchema = {
764
774
  type: yup__namespace.string().required("This field is required"),
765
775
  style: yup__namespace.string().required("This field is required"),
766
776
  }),
777
+ ceilingHeight: kuiCrm.positiveNumberSchema,
767
778
  };
768
779
  var DetailApartmentInfoStepSchema = yup__namespace.object(DetailApartmentInfoFieldsSchema);
769
780