kui-crm_actions 0.0.97 → 0.0.99
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 +34 -15
- package/cjs/index.js.map +1 -1
- package/index.d.ts +54 -17
- package/index.js +33 -17
- package/index.js.map +1 -1
- package/package.json +1 -1
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: {
|
@@ -668,8 +717,6 @@ declare const SecurityApartmentInfoFieldsSchema: {
|
|
668
717
|
intercomCode: yup.StringSchema<string | null | undefined, yup.AnyObject, undefined, "">;
|
669
718
|
hasGate: yup.StringSchema<string, yup.AnyObject, undefined, "">;
|
670
719
|
gateCode: yup.StringSchema<string | null | undefined, yup.AnyObject, undefined, "">;
|
671
|
-
parkingType: yup.StringSchema<string | null | undefined, yup.AnyObject, undefined, "">;
|
672
|
-
parkingNumber: yup.StringSchema<string | null | undefined, yup.AnyObject, undefined, "">;
|
673
720
|
};
|
674
721
|
declare const SecurityApartmentInfoStepSchema: yup.ObjectSchema<{
|
675
722
|
typeOfObject: string;
|
@@ -678,8 +725,6 @@ declare const SecurityApartmentInfoStepSchema: yup.ObjectSchema<{
|
|
678
725
|
intercomCode: string | null | undefined;
|
679
726
|
hasGate: string;
|
680
727
|
gateCode: string | null | undefined;
|
681
|
-
parkingType: string | null | undefined;
|
682
|
-
parkingNumber: string | null | undefined;
|
683
728
|
}, yup.AnyObject, {
|
684
729
|
typeOfObject: undefined;
|
685
730
|
entrance: undefined;
|
@@ -687,8 +732,6 @@ declare const SecurityApartmentInfoStepSchema: yup.ObjectSchema<{
|
|
687
732
|
intercomCode: undefined;
|
688
733
|
hasGate: undefined;
|
689
734
|
gateCode: undefined;
|
690
|
-
parkingType: undefined;
|
691
|
-
parkingNumber: undefined;
|
692
735
|
}, "">;
|
693
736
|
|
694
737
|
declare const getAdditionalInfoStepFields: (settings?: InspectionFieldsSettings | undefined) => InputParams<AdditionalInfoStepFields>[];
|
@@ -740,8 +783,6 @@ declare const HouseServicesInfoFieldsSchema: {
|
|
740
783
|
} | null, yup.AnyObject, {
|
741
784
|
phoneNumber: undefined;
|
742
785
|
}, "">;
|
743
|
-
passengerElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
|
744
|
-
serviceElevatorsCount: yup.NumberSchema<number, yup.AnyObject, undefined, "">;
|
745
786
|
};
|
746
787
|
declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
|
747
788
|
hasBarrier: string;
|
@@ -760,8 +801,6 @@ declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
|
|
760
801
|
videoControlPhone: {
|
761
802
|
phoneNumber?: string | null | undefined;
|
762
803
|
} | null;
|
763
|
-
passengerElevatorsCount: number;
|
764
|
-
serviceElevatorsCount: number;
|
765
804
|
}, yup.AnyObject, {
|
766
805
|
hasBarrier: undefined;
|
767
806
|
barrierPhone: {
|
@@ -779,8 +818,6 @@ declare const HouseServicesInfoStepSchema: yup.ObjectSchema<{
|
|
779
818
|
videoControlPhone: {
|
780
819
|
phoneNumber: undefined;
|
781
820
|
};
|
782
|
-
passengerElevatorsCount: undefined;
|
783
|
-
serviceElevatorsCount: undefined;
|
784
821
|
}, "">;
|
785
822
|
|
786
823
|
declare const getMetersInfoStepFields: (settings?: InspectionFieldsSettings | undefined) => InputParams<MetersInfoStepFields>[];
|
@@ -964,4 +1001,4 @@ type ApartmentPointProps = {
|
|
964
1001
|
|
965
1002
|
declare const ObjectForMapPoint: (props: ApartmentPointProps) => JSX.Element;
|
966
1003
|
|
967
|
-
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,
|
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,
|
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.1 }, 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
|
};
|
@@ -775,14 +803,6 @@ var SecurityApartmentInfoFieldsSchema = {
|
|
775
803
|
intercomCode: fieldWithConditionSchema("hasIntercom"),
|
776
804
|
hasGate: yup.string().required("This field is required"),
|
777
805
|
gateCode: fieldWithConditionSchema("hasGate"),
|
778
|
-
parkingType: yup.string().nullable(),
|
779
|
-
parkingNumber: yup
|
780
|
-
.string()
|
781
|
-
.when("parkingType", {
|
782
|
-
is: function (value) { return !!value; },
|
783
|
-
then: function (rule) { return rule.required(defaultRequiredMessage); },
|
784
|
-
})
|
785
|
-
.nullable(),
|
786
806
|
};
|
787
807
|
var SecurityApartmentInfoStepSchema = yup.object(SecurityApartmentInfoFieldsSchema);
|
788
808
|
|
@@ -812,8 +832,6 @@ var getHouseServicesInfoStep = function (settings) { return [
|
|
812
832
|
__assign({ name: "securityPhone", label: "Security", variant: "custom", CustomInput: DependentInput, dependentInputName: "hasSecurity", Input: InputPhoneWithForm }, settings === null || settings === void 0 ? void 0 : settings.securityPhone),
|
813
833
|
__assign({ name: "hasVideoControl", label: "Video surveillance", variant: "select", options: BooleanValues }, settings === null || settings === void 0 ? void 0 : settings.hasVideoControl),
|
814
834
|
__assign({ name: "videoControlPhone", label: "Video surveillance", variant: "custom", CustomInput: DependentInput, dependentInputName: "hasVideoControl", Input: InputPhoneWithForm }, settings === null || settings === void 0 ? void 0 : settings.videoControlPhone),
|
815
|
-
__assign({ name: "passengerElevatorsCount", label: "Passenger elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.passengerElevatorsCount),
|
816
|
-
__assign({ name: "serviceElevatorsCount", label: "Service elevators", type: "number" }, settings === null || settings === void 0 ? void 0 : settings.serviceElevatorsCount),
|
817
835
|
]; };
|
818
836
|
|
819
837
|
var HouseServicesInfoFieldsSchema = {
|
@@ -825,8 +843,6 @@ var HouseServicesInfoFieldsSchema = {
|
|
825
843
|
securityPhone: phoneWithConditionSchema("hasSecurity"),
|
826
844
|
hasVideoControl: yup.string().required(defaultRequiredMessage),
|
827
845
|
videoControlPhone: phoneWithConditionSchema("hasVideoControl"),
|
828
|
-
passengerElevatorsCount: positiveNumberSchema,
|
829
|
-
serviceElevatorsCount: positiveNumberSchema,
|
830
846
|
};
|
831
847
|
var HouseServicesInfoStepSchema = yup.object(HouseServicesInfoFieldsSchema);
|
832
848
|
|
@@ -1089,5 +1105,5 @@ var ObjectForMapOverlay = function (props) {
|
|
1089
1105
|
var StyledWrapper = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n"], ["\n position: relative;\n"])));
|
1090
1106
|
var templateObject_1;
|
1091
1107
|
|
1092
|
-
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 };
|
1093
1109
|
//# sourceMappingURL=index.js.map
|