kui-crm_actions 0.0.98 → 0.0.100

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
@@ -1,5 +1,5 @@
1
1
  import * as kui_crm from 'kui-crm';
2
- import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes, CityParams, RoomTypes, RenovationParams, RoomParams, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingTypes, FillingListItemModel, GeolocationParams } from 'kui-crm';
2
+ import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes, CityParams, RoomTypes, RenovationParams, RoomParams, HouseTypes as HouseTypes$1, WallMaterials as WallMaterials$1, OverlapTypes as OverlapTypes$1, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingTypes, FillingListItemModel, GeolocationParams } from 'kui-crm';
3
3
  import { DateTime } from 'luxon';
4
4
  import { Loader, MultistepForm, PhoneParams as PhoneParams$1 } from 'kui-utils';
5
5
  import * as yup from 'yup';
@@ -134,6 +134,16 @@ type DetailApartmentInfoStepFields = {
134
134
  rooms: RoomParams[]
135
135
  }
136
136
 
137
+ type HouseInfoStepFields = {
138
+ typeOfHouse: HouseTypes$1 | null
139
+ buildingYear: number | null
140
+ wallMaterial: WallMaterials$1 | null
141
+ overlapType: OverlapTypes$1 | null
142
+ passengerElevatorsCount: number | null
143
+ serviceElevatorsCount: number | null
144
+ ceilingHeight: number | string | null
145
+ }
146
+
137
147
  type InitialInspectionFormFields = CommonInspectionFormFields &
138
148
  InitialInspectionInfoFields &
139
149
  InspectionRoomsImagesFields
@@ -141,7 +151,8 @@ type InitialInspectionFormFields = CommonInspectionFormFields &
141
151
  type InitialInspectionInfoFields = BasicApartmentInfoStepFields &
142
152
  SecurityApartmentInfoStepFields &
143
153
  RoomsApartmentInfoStepFields &
144
- DetailApartmentInfoStepFields
154
+ DetailApartmentInfoStepFields &
155
+ HouseInfoStepFields
145
156
 
146
157
  type InspectionFillingCardProps = {
147
158
  className?: string
@@ -225,8 +236,6 @@ type HouseServicesInfoStepFields = {
225
236
  videoControlPhone: PhoneParams | null
226
237
  parkingType: ParkingTypes | null
227
238
  parkingNumber: string
228
- passengerElevatorsCount: number | null
229
- serviceElevatorsCount: number | null
230
239
  }
231
240
 
232
241
  type TelecommunicationsInfoStepFields = {
@@ -295,6 +304,10 @@ declare const inspectionsRequests: {
295
304
  }[];
296
305
  };
297
306
 
307
+ declare type WallMaterials = "brick" | "panel" | "wood" | "block" | "stone";
308
+ declare type HouseTypes = "ST" | "MB" | "M" | "BR" | "P" | "W" | "BL" | "WP" | "apart_hotel" | "apartment" | "townhouse" | "private_residence";
309
+ declare type OverlapTypes = "wood" | "stone" | "brick" | "reinforced_concrete" | "metal" | "combined";
310
+
298
311
  declare type InspectionAppraisalLiteModel = {
299
312
  id: number;
300
313
  date: string;
@@ -381,6 +394,13 @@ declare type InitialInspectionRoomParams = {
381
394
  declare type InitialInspectionFieldsBody = {
382
395
  city: number;
383
396
  rooms: InitialInspectionRoomParams[];
397
+ wall_type: WallMaterials | null;
398
+ overlap_type: OverlapTypes | null;
399
+ passenger_elevators_number: string | number | null;
400
+ service_elevators_number: string | number | null;
401
+ ceiling_height: string | number | null;
402
+ building_year: number | null;
403
+ type_houses: HouseTypes | null;
384
404
  } & Omit<Partial<ApartmentMainInfoModelFields>, "city" | "rooms">;
385
405
  declare type RegularlyInspectionFieldsBody = {
386
406
  meters: PartialMeterModel[];
@@ -590,6 +610,35 @@ declare const BasicApartmentInfoStepSchema: yup.ObjectSchema<{
590
610
  zipCode: undefined;
591
611
  }, "">;
592
612
 
613
+ declare const getHouseInfoStep: (settings?: InspectionFieldsSettings | undefined) => InputParams<HouseInfoStepFields>[];
614
+
615
+ declare const HouseInfoFieldsSchema: {
616
+ passengerElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
617
+ serviceElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
618
+ typeOfHouse: yup.StringSchema<string, yup.AnyObject, undefined, "">;
619
+ buildingYear: yup.StringSchema<string, yup.AnyObject, undefined, "">;
620
+ wallMaterial: yup.StringSchema<string, yup.AnyObject, undefined, "">;
621
+ overlapType: yup.StringSchema<string, yup.AnyObject, undefined, "">;
622
+ ceilingHeight: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
623
+ };
624
+ declare const HouseInfoStepSchema: yup.ObjectSchema<{
625
+ passengerElevatorsCount: number;
626
+ serviceElevatorsCount: number;
627
+ typeOfHouse: string;
628
+ buildingYear: string;
629
+ wallMaterial: string;
630
+ overlapType: string;
631
+ ceilingHeight: number;
632
+ }, yup.AnyObject, {
633
+ passengerElevatorsCount: undefined;
634
+ serviceElevatorsCount: undefined;
635
+ typeOfHouse: undefined;
636
+ buildingYear: undefined;
637
+ wallMaterial: undefined;
638
+ overlapType: undefined;
639
+ ceilingHeight: undefined;
640
+ }, "">;
641
+
593
642
  declare const getDetailApartmentInfoFields: (roomsCount?: number | null | undefined, bedroomsCount?: number | null | undefined, settings?: InspectionFieldsSettings | undefined) => InputParams<DetailApartmentInfoStepFields>[];
594
643
 
595
644
  declare const DetailApartmentInfoFieldsSchema: {
@@ -734,8 +783,6 @@ declare const HouseServicesInfoFieldsSchema: {
734
783
  } | null, yup.AnyObject, {
735
784
  phoneNumber: undefined;
736
785
  }, "">;
737
- passengerElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
738
- serviceElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
739
786
  };
740
787
  declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
741
788
  hasBarrier: string;
@@ -754,8 +801,6 @@ declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
754
801
  videoControlPhone: {
755
802
  phoneNumber?: string | null | undefined;
756
803
  } | null;
757
- passengerElevatorsCount: number;
758
- serviceElevatorsCount: number;
759
804
  }, yup.AnyObject, {
760
805
  hasBarrier: undefined;
761
806
  barrierPhone: {
@@ -773,8 +818,6 @@ declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
773
818
  videoControlPhone: {
774
819
  phoneNumber: undefined;
775
820
  };
776
- passengerElevatorsCount: undefined;
777
- serviceElevatorsCount: undefined;
778
821
  }, "">;
779
822
 
780
823
  declare const getMetersInfoStepFields: (settings?: InspectionFieldsSettings | undefined) => InputParams<MetersInfoStepFields>[];
@@ -958,4 +1001,4 @@ type ApartmentPointProps = {
958
1001
 
959
1002
  declare const ObjectForMapPoint: (props: ApartmentPointProps) => JSX.Element;
960
1003
 
961
- export { AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentLinkParams, ApartmentPaymentsFormFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingInfoStepFields, FillingListInfoStepFields, FillingListStore, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InitialInspectionRoomParams, InspectionAppraisalLiteModel, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InventoryInspectionFieldsBody, InventoryInspectionFormFields, InventoryInspectionPostBody, InventoryMeterModel, MeterInfoStepProps, MeterValueModel, MeterValuesFields, MetersInfoFieldsSchema, MetersInfoStepFields, MetersInfoStepSchema, MetroStationParams, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapParams, ObjectForMapPoint, PartialMeterInfoFields, PartialMeterInfoStepProps, PartialMeterModel, PostApartmentInspectionRequest, RegularInspectionFormFields, RegularInspectionPostBody, RegularlyInspectionFieldsBody, RoomImagesParams, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepFields, RoomsApartmentInfoStepSchema, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseServicesInfoStep, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, renderMetersSteps, useFillingList, useMetersValues };
1004
+ export { AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentLinkParams, ApartmentPaymentsFormFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingInfoStepFields, FillingListInfoStepFields, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepFields, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InitialInspectionRoomParams, InspectionAppraisalLiteModel, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InventoryInspectionFieldsBody, InventoryInspectionFormFields, InventoryInspectionPostBody, InventoryMeterModel, MeterInfoStepProps, MeterValueModel, MeterValuesFields, MetersInfoFieldsSchema, MetersInfoStepFields, MetersInfoStepSchema, MetroStationParams, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapParams, ObjectForMapPoint, PartialMeterInfoFields, PartialMeterInfoStepProps, PartialMeterModel, PostApartmentInspectionRequest, RegularInspectionFormFields, RegularInspectionPostBody, RegularlyInspectionFieldsBody, RoomImagesParams, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepFields, RoomsApartmentInfoStepSchema, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, renderMetersSteps, useFillingList, useMetersValues };
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as yup from 'yup';
2
- import { NumberField, requests, uploadFiles, ImageStore, FileStore, matchesAPIFillingTypes, CountryAutocomplete, RegionAutocomplete, CityAutocomplete, RenovationTypeValues, RenovationStyleValues, RoomTypeValues, RoomTypesValues, BooleanValues, ParkingTypesValues, fieldWithConditionSchema, getApartmentPaymentFields, defaultRequiredMessage, phoneWithConditionSchema, positiveNumberSchema, getNumbersValues, TVTypesValues, phoneNonRequiredSchema, InputFileWithVisibility, FillingTypeValues, FillingTagsAutocomplete, Tooltip, ApartmentsAgent, PreviewContent, Link, UserBadge, useMapCards, MapOverlay } from 'kui-crm';
2
+ import { NumberField, requests, uploadFiles, ImageStore, FileStore, matchesAPIFillingTypes, CountryAutocomplete, RegionAutocomplete, CityAutocomplete, HouseTypesValues, WallMaterialsValues, SlabsTypesValues, positiveNumberSchema, defaultRequiredMessage, RenovationTypeValues, RenovationStyleValues, RoomTypeValues, RoomTypesValues, BooleanValues, ParkingTypesValues, fieldWithConditionSchema, getApartmentPaymentFields, phoneWithConditionSchema, getNumbersValues, TVTypesValues, phoneNonRequiredSchema, InputFileWithVisibility, FillingTypeValues, FillingTagsAutocomplete, Tooltip, ApartmentsAgent, PreviewContent, Link, UserBadge, useMapCards, MapOverlay } from 'kui-crm';
3
3
  import _ from 'lodash';
4
4
  import { clearNotValidFields, getPhoneNumberFromPhoneParams, resHandler, callPromises, getPhoneParamsFromString, addToArrayByCondition, Loader } from 'kui-utils';
5
5
  import to from 'await-to-js';
@@ -137,10 +137,10 @@ var getWaterMeterFields = function (meters, meter, withCheckValue, name, setting
137
137
  label: "".concat(_.capitalize(meterParams.type || ""), " | #").concat(meterParams.number),
138
138
  }); });
139
139
  return [
140
- __assign({ label: "Meter", name: "".concat(prefixName, "number"), variant: "select", options: meterOptions, size: 12 }, settings === null || settings === void 0 ? void 0 : settings.meter),
140
+ __assign({ label: "Meter", name: "".concat(prefixName, "number"), variant: "select", options: meterOptions, size: 12, isRequired: true }, 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: (_b = meter === null || meter === void 0 ? void 0 : meter.values) === null || _b === void 0 ? void 0 : _b.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: (_b = meter === null || meter === void 0 ? void 0 : meter.values) === null || _b === void 0 ? void 0 : _b.value, isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.value),
144
144
  ];
145
145
  };
146
146
 
@@ -180,6 +180,13 @@ var inspectionsRequestBody = {
180
180
  renovation_year: (_a = inspection.renovation) === null || _a === void 0 ? void 0 : _a.year,
181
181
  renovation_type: (_b = inspection.renovation) === null || _b === void 0 ? void 0 : _b.type,
182
182
  renovation_style: (_c = inspection.renovation) === null || _c === void 0 ? void 0 : _c.style,
183
+ wall_type: inspection.wallMaterial,
184
+ overlap_type: inspection.overlapType,
185
+ passenger_elevators_number: inspection.passengerElevatorsCount,
186
+ service_elevators_number: inspection.serviceElevatorsCount,
187
+ ceiling_height: inspection.ceilingHeight,
188
+ building_year: inspection.buildingYear,
189
+ type_houses: inspection.typeOfHouse,
183
190
  rooms: inspection.rooms.map(function (room, index) { return ({
184
191
  id: room.id,
185
192
  room_type: room.type,
@@ -247,7 +254,7 @@ var inspectionsRequestBody = {
247
254
  ? getPhoneNumberFromPhoneParams(inspection.videoControlPhone)
248
255
  : null, home_phone: inspection.homePhone
249
256
  ? getPhoneNumberFromPhoneParams(inspection.homePhone)
250
- : 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, passenger_elevators_number: inspection.passengerElevatorsCount, service_elevators_number: inspection.serviceElevatorsCount, payer_code: inspection.payerCode, filling: inspection.fillingList.map(function (filling, index) {
257
+ : 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) {
251
258
  var _a;
252
259
  return ({
253
260
  feature: ((_a = filling.tag) === null || _a === void 0 ? void 0 : _a.id) || 0,
@@ -665,6 +672,27 @@ var BasicApartmentInfoFieldsSchema = {
665
672
  };
666
673
  var BasicApartmentInfoStepSchema = yup.object(BasicApartmentInfoFieldsSchema);
667
674
 
675
+ var getHouseInfoStep = function (settings) { return [
676
+ __assign({ name: "typeOfHouse", label: "Type houses", variant: "select", options: HouseTypesValues }, settings === null || settings === void 0 ? void 0 : settings.typeOfHouse),
677
+ __assign({ name: "buildingYear", label: "Builded" }, settings === null || settings === void 0 ? void 0 : settings.buildingYear),
678
+ __assign({ name: "wallMaterial", label: "Wall material", variant: "select", options: WallMaterialsValues }, settings === null || settings === void 0 ? void 0 : settings.wallMaterial),
679
+ __assign({ name: "overlapType", label: "Overlap type", variant: "select", options: SlabsTypesValues }, settings === null || settings === void 0 ? void 0 : settings.overlapType),
680
+ __assign({ name: "passengerElevatorsCount", label: "Passenger elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.passengerElevatorsCount),
681
+ __assign({ name: "serviceElevatorsCount", label: "Service elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.serviceElevatorsCount),
682
+ __assign({ name: "ceilingHeight", label: "Ceiling height", type: "number", cornerLabel: "m.", step: 0.01 }, settings === null || settings === void 0 ? void 0 : settings.ceilingHeight),
683
+ ]; };
684
+
685
+ var HouseInfoFieldsSchema = {
686
+ passengerElevatorsCount: positiveNumberSchema,
687
+ serviceElevatorsCount: positiveNumberSchema,
688
+ typeOfHouse: yup.string().required(defaultRequiredMessage),
689
+ buildingYear: yup.string().required(defaultRequiredMessage),
690
+ wallMaterial: yup.string().required(defaultRequiredMessage),
691
+ overlapType: yup.string().required(defaultRequiredMessage),
692
+ ceilingHeight: positiveNumberSchema,
693
+ };
694
+ var HouseInfoStepSchema = yup.object(HouseInfoFieldsSchema);
695
+
668
696
  var inputProps = {
669
697
  step: 0.01,
670
698
  };
@@ -804,8 +832,6 @@ var getHouseServicesInfoStep = function (settings) { return [
804
832
  __assign({ name: "securityPhone", label: "Security", variant: "custom", CustomInput: DependentInput, dependentInputName: "hasSecurity", Input: InputPhoneWithForm }, settings === null || settings === void 0 ? void 0 : settings.securityPhone),
805
833
  __assign({ name: "hasVideoControl", label: "Video surveillance", variant: "select", options: BooleanValues }, settings === null || settings === void 0 ? void 0 : settings.hasVideoControl),
806
834
  __assign({ name: "videoControlPhone", label: "Video surveillance", variant: "custom", CustomInput: DependentInput, dependentInputName: "hasVideoControl", Input: InputPhoneWithForm }, settings === null || settings === void 0 ? void 0 : settings.videoControlPhone),
807
- __assign({ name: "passengerElevatorsCount", label: "Passenger elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.passengerElevatorsCount),
808
- __assign({ name: "serviceElevatorsCount", label: "Service elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.serviceElevatorsCount),
809
835
  ]; };
810
836
 
811
837
  var HouseServicesInfoFieldsSchema = {
@@ -817,8 +843,6 @@ var HouseServicesInfoFieldsSchema = {
817
843
  securityPhone: phoneWithConditionSchema("hasSecurity"),
818
844
  hasVideoControl: yup.string().required(defaultRequiredMessage),
819
845
  videoControlPhone: phoneWithConditionSchema("hasVideoControl"),
820
- passengerElevatorsCount: positiveNumberSchema,
821
- serviceElevatorsCount: positiveNumberSchema,
822
846
  };
823
847
  var HouseServicesInfoStepSchema = yup.object(HouseServicesInfoFieldsSchema);
824
848
 
@@ -1081,5 +1105,5 @@ var ObjectForMapOverlay = function (props) {
1081
1105
  var StyledWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
1082
1106
  var templateObject_1;
1083
1107
 
1084
- export { AdditionalInfoFieldsSchema, AdditionalInfoStepSchema, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepSchema, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepSchema, FillingInfoFieldsSchema, FillingListStore, HouseServicesInfoFieldsSchema, HouseServicesInfoStepSchema, index as InspectionFeedback, InspectionFillingCard, MetersInfoFieldsSchema, MetersInfoStepSchema, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapPoint, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepSchema, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepSchema, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseServicesInfoStep, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, renderMetersSteps, useFillingList, useMetersValues };
1108
+ export { AdditionalInfoFieldsSchema, AdditionalInfoStepSchema, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepSchema, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepSchema, FillingInfoFieldsSchema, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepSchema, index as InspectionFeedback, InspectionFillingCard, MetersInfoFieldsSchema, MetersInfoStepSchema, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapPoint, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepSchema, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepSchema, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, renderMetersSteps, useFillingList, useMetersValues };
1085
1109
  //# sourceMappingURL=index.js.map