kui-crm_actions 0.0.152 → 0.0.154
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 +2 -2
- package/cjs/index.js.map +1 -1
- package/index.d.ts +4 -3
- package/index.js +2 -2
- 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, ApartmentMetroStationsParams, RoomTypes, RenovationParams, RoomParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, ImageStore, ApartmentDescriptionParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, ContractLinkModel, ImageBodyRequest, FileBodyRequest, RoomType, ApartmentMetroParams, ApartmentMainInfoModelFields, HouseInfoModelFields, PostInspectionFillingListModel, TransferInspectionTypes as TransferInspectionTypes$1, ApartmentDetailInfoModelFields, FillingTypes, FillingListItemModel, FillingInfoFormFields as FillingInfoFormFields$1, FillingTagsAutocompleteFields, ApartmentFillingVariants, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentWithHouseInfoModelFields, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, InspectionFeedbackParams, GeolocationParams } from 'kui-crm';
|
2
|
+
import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionBasedOnParams, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes, CityParams, ApartmentMetroStationsParams, RoomTypes, RenovationParams, RoomParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, ImageStore, ApartmentDescriptionParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, ContractLinkModel, ImageBodyRequest, FileBodyRequest, RoomType, ApartmentMetroParams, ApartmentMainInfoModelFields, HouseInfoModelFields, PostInspectionFillingListModel, TransferInspectionTypes as TransferInspectionTypes$1, ApartmentDetailInfoModelFields, FillingTypes, FillingListItemModel, FillingInfoFormFields as FillingInfoFormFields$1, FillingTagsAutocompleteFields, ApartmentFillingVariants, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentWithHouseInfoModelFields, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, InspectionFeedbackParams, 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';
|
@@ -69,7 +69,7 @@ type ApartmentMetersStoreInterface = {
|
|
69
69
|
|
70
70
|
type CommonInspectionFormFields = {
|
71
71
|
date: DateTime
|
72
|
-
basedOn?:
|
72
|
+
basedOn?: InspectionBasedOnParams
|
73
73
|
type: InspectionTypes
|
74
74
|
dropboxLink?: string
|
75
75
|
contractFile?: InputFileWithVisibilityFields | null
|
@@ -753,7 +753,7 @@ declare const DetailApartmentInfoStepSchema: yup.ObjectSchema<{
|
|
753
753
|
ceilingHeight: undefined;
|
754
754
|
}, "">;
|
755
755
|
|
756
|
-
declare const getRoomsApartmentInfoFields: (settings?: InspectionFieldsSettings | undefined) => InputParams<RoomsApartmentInfoStepFields>[];
|
756
|
+
declare const getRoomsApartmentInfoFields: (roomsCount?: string | number | null | undefined, settings?: InspectionFieldsSettings | undefined) => InputParams<RoomsApartmentInfoStepFields>[];
|
757
757
|
|
758
758
|
declare const RoomsApartmentInfoFieldsSchema: {
|
759
759
|
floor: yup.NumberSchema<number | undefined, yup.AnyObject, undefined, "">;
|
@@ -1060,6 +1060,7 @@ type ApartmentInspectionParams = {
|
|
1060
1060
|
metroStations: MetroStationParams[]
|
1061
1061
|
location: GeolocationParams | null
|
1062
1062
|
isInspectionUpcoming?: boolean
|
1063
|
+
type: InspectionTypes
|
1063
1064
|
}
|
1064
1065
|
|
1065
1066
|
type ObjectForMapParams = {
|
package/index.js
CHANGED
@@ -855,11 +855,11 @@ var DetailApartmentInfoFieldsSchema = {
|
|
855
855
|
};
|
856
856
|
var DetailApartmentInfoStepSchema = yup.object(DetailApartmentInfoFieldsSchema);
|
857
857
|
|
858
|
-
var getRoomsApartmentInfoFields = function (settings) { return [
|
858
|
+
var getRoomsApartmentInfoFields = function (roomsCount, settings) { return [
|
859
859
|
__assign({ label: "Floor", name: "floor", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.floor),
|
860
860
|
__assign({ label: "Floors", name: "floorCount", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.floorCount),
|
861
861
|
__assign({ label: "Rooms", name: "roomsNumber", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.roomsNumber),
|
862
|
-
__assign({ label: "Bedrooms", name: "bedroomsNumber", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.bedroomsNumber),
|
862
|
+
__assign({ label: "Bedrooms", name: "bedroomsNumber", type: "number", isRequired: true, disabled: roomsCount === 0 || roomsCount === "0" }, settings === null || settings === void 0 ? void 0 : settings.bedroomsNumber),
|
863
863
|
__assign({ label: "Bathrooms", name: "bathroomsNumber", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.bathroomsNumber),
|
864
864
|
__assign({ label: "Restrooms", name: "restroomsNumber", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.restroomsNumber),
|
865
865
|
__assign({ label: "Combined bathroom", name: "combinedBathroomsNumber", type: "number", isRequired: true }, settings === null || settings === void 0 ? void 0 : settings.combinedBathroomsNumber),
|