kui-crm_actions 0.0.101 → 0.0.103
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 +3 -1
- package/cjs/index.js.map +1 -1
- package/index.d.ts +47 -7
- package/index.js +3 -1
- 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, 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';
         | 
| 2 | 
            +
            import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes as ParkingTypes$1, 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 as ApartmentDetailInfoModelFields$1, 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';
         | 
| @@ -91,7 +91,7 @@ type InspectionRoomsFields = { | |
| 91 91 | 
             
              bedroomsNumber: number | null
         | 
| 92 92 | 
             
              restroomsNumber: number | null
         | 
| 93 93 | 
             
              combinedBathroomsNumber: number | null
         | 
| 94 | 
            -
              parkingType?: ParkingTypes | null
         | 
| 94 | 
            +
              parkingType?: ParkingTypes$1 | null
         | 
| 95 95 | 
             
            }
         | 
| 96 96 |  | 
| 97 97 | 
             
            type InspectionImageFieldsSettings = {
         | 
| @@ -112,6 +112,8 @@ type SecurityApartmentInfoStepFields = { | |
| 112 112 | 
             
              intercomCode: string
         | 
| 113 113 | 
             
              hasGate: boolean | null
         | 
| 114 114 | 
             
              gateCode: string
         | 
| 115 | 
            +
              parkingType: ParkingTypes$1 | null
         | 
| 116 | 
            +
              parkingNumber: string
         | 
| 115 117 | 
             
            }
         | 
| 116 118 |  | 
| 117 119 | 
             
            type RoomsApartmentInfoStepFields = {
         | 
| @@ -234,8 +236,6 @@ type HouseServicesInfoStepFields = { | |
| 234 236 | 
             
              securityPhone: PhoneParams | null
         | 
| 235 237 | 
             
              hasVideoControl: boolean | null
         | 
| 236 238 | 
             
              videoControlPhone: PhoneParams | null
         | 
| 237 | 
            -
              parkingType: ParkingTypes | null
         | 
| 238 | 
            -
              parkingNumber: string
         | 
| 239 239 | 
             
            }
         | 
| 240 240 |  | 
| 241 241 | 
             
            type TelecommunicationsInfoStepFields = {
         | 
| @@ -304,9 +304,47 @@ declare const inspectionsRequests: { | |
| 304 304 | 
             
                }[];
         | 
| 305 305 | 
             
            };
         | 
| 306 306 |  | 
| 307 | 
            +
            declare type ParkingTypes = "public" | "house" | "underground" | "multi_level";
         | 
| 308 | 
            +
            declare type GasTypes = "not_have" | "stove" | "stove_and_heater";
         | 
| 307 309 | 
             
            declare type WallMaterials = "brick" | "panel" | "wood" | "block" | "stone";
         | 
| 308 310 | 
             
            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";
         | 
| 311 | 
            +
            declare type OverlapTypes = "wood" | "stone" | "brick" | "reinforced_concrete" | "metal" | "combined";
         | 
| 312 | 
            +
            declare type ApartmentDetailInfoModelFields = {
         | 
| 313 | 
            +
                financial_personal_account: string;
         | 
| 314 | 
            +
                max_electricity_counters: number | null;
         | 
| 315 | 
            +
                max_gas_counters: number | null;
         | 
| 316 | 
            +
                max_heating_counters: number | null;
         | 
| 317 | 
            +
                max_water_counters: number | null;
         | 
| 318 | 
            +
                has_barrier: boolean | null;
         | 
| 319 | 
            +
                has_concierge: boolean | null;
         | 
| 320 | 
            +
                has_security: boolean | null;
         | 
| 321 | 
            +
                has_video_surveillance: boolean | null;
         | 
| 322 | 
            +
                barrier_phone: string | null;
         | 
| 323 | 
            +
                concierge_phone: string | null;
         | 
| 324 | 
            +
                security_phone: string | null;
         | 
| 325 | 
            +
                video_surveillance_phone: string | null;
         | 
| 326 | 
            +
                home_phone: string | null;
         | 
| 327 | 
            +
                wifi_name: string;
         | 
| 328 | 
            +
                wifi_password: string;
         | 
| 329 | 
            +
                internet_provider_link: string;
         | 
| 330 | 
            +
                internet_provider_login: string;
         | 
| 331 | 
            +
                internet_provider_password: string;
         | 
| 332 | 
            +
                parking_type: ParkingTypes | null;
         | 
| 333 | 
            +
                parking_number: string;
         | 
| 334 | 
            +
                passenger_elevators_number: string | number | null;
         | 
| 335 | 
            +
                service_elevators_number: string | number | null;
         | 
| 336 | 
            +
                payer_code: string;
         | 
| 337 | 
            +
            };
         | 
| 338 | 
            +
            declare type HouseInfoModelFields = {
         | 
| 339 | 
            +
                building_year: number;
         | 
| 340 | 
            +
                type_houses: HouseTypes | null;
         | 
| 341 | 
            +
                serial_number: string;
         | 
| 342 | 
            +
                type_gas: GasTypes | null;
         | 
| 343 | 
            +
                wall_type: WallMaterials | null;
         | 
| 344 | 
            +
                overlap_type: OverlapTypes | null;
         | 
| 345 | 
            +
                hot_water: boolean;
         | 
| 346 | 
            +
            };
         | 
| 347 | 
            +
            declare type ApartmentWithHouseInfoModelFields = ApartmentDetailInfoModelFields & HouseInfoModelFields;
         | 
| 310 348 |  | 
| 311 349 | 
             
            declare type InspectionAppraisalLiteModel = {
         | 
| 312 350 | 
             
                id: number;
         | 
| @@ -401,6 +439,8 @@ declare type InitialInspectionFieldsBody = { | |
| 401 439 | 
             
                ceiling_height: string | number | null;
         | 
| 402 440 | 
             
                building_year: number | null;
         | 
| 403 441 | 
             
                type_houses: HouseTypes | null;
         | 
| 442 | 
            +
                parking_type: ParkingTypes | null;
         | 
| 443 | 
            +
                parking_number: string;
         | 
| 404 444 | 
             
            } & Omit<Partial<ApartmentMainInfoModelFields>, "city" | "rooms">;
         | 
| 405 445 | 
             
            declare type RegularlyInspectionFieldsBody = {
         | 
| 406 446 | 
             
                meters: PartialMeterModel[];
         | 
| @@ -418,7 +458,7 @@ declare type InventoryInspectionFieldsBody = { | |
| 418 458 | 
             
                allowed_children: boolean;
         | 
| 419 459 | 
             
                allowed_pets: boolean;
         | 
| 420 460 | 
             
                additional_terms: string;
         | 
| 421 | 
            -
            } & Partial<ApartmentDetailInfoModelFields>;
         | 
| 461 | 
            +
            } & Partial<ApartmentDetailInfoModelFields$1>;
         | 
| 422 462 | 
             
            declare type InventoryInspectionPostBody = {
         | 
| 423 463 | 
             
                inventory: InventoryInspectionFieldsBody;
         | 
| 424 464 | 
             
                photo_groups: InspectionRoomPhotoRequest[];
         | 
| @@ -533,7 +573,7 @@ declare const apartmentFields: { | |
| 533 573 | 
             
                getApartmentSecurityInfo(apartment: SecurityObjectInfoInterface): ApartmentSecurityInfoParams;
         | 
| 534 574 | 
             
                getApartmentDetailInfo(apartment: DetailObjectInfoInterface): ApartmentDetailInfoParams;
         | 
| 535 575 | 
             
                getApartmentTelecommunicationInfo(apartment: ApartmentModel): ApartmentTelecommunicationInfoParams;
         | 
| 536 | 
            -
                getApartmentHouseInfo(apartment:  | 
| 576 | 
            +
                getApartmentHouseInfo(apartment: ApartmentWithHouseInfoModelFields): ApartmentHouseInfoParams;
         | 
| 537 577 | 
             
                getMaxMetersParams(apartment: ApartmentModel): MaxMetersInfoParams;
         | 
| 538 578 | 
             
                getGeolocationParams(geolocation?: LatLonParams | undefined): {
         | 
| 539 579 | 
             
                    lat: number;
         | 
    
        package/index.js
    CHANGED
    
    | @@ -187,6 +187,8 @@ var inspectionsRequestBody = { | |
| 187 187 | 
             
                        ceiling_height: inspection.ceilingHeight,
         | 
| 188 188 | 
             
                        building_year: inspection.buildingYear,
         | 
| 189 189 | 
             
                        type_houses: inspection.typeOfHouse,
         | 
| 190 | 
            +
                        parking_type: inspection.parkingType,
         | 
| 191 | 
            +
                        parking_number: inspection.parkingNumber,
         | 
| 190 192 | 
             
                        rooms: inspection.rooms.map(function (room, index) { return ({
         | 
| 191 193 | 
             
                            id: room.id,
         | 
| 192 194 | 
             
                            room_type: room.type,
         | 
| @@ -254,7 +256,7 @@ var inspectionsRequestBody = { | |
| 254 256 | 
             
                                ? getPhoneNumberFromPhoneParams(inspection.videoControlPhone)
         | 
| 255 257 | 
             
                                : null, home_phone: inspection.homePhone
         | 
| 256 258 | 
             
                                ? getPhoneNumberFromPhoneParams(inspection.homePhone)
         | 
| 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,  | 
| 259 | 
            +
                                : 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) {
         | 
| 258 260 | 
             
                                var _a;
         | 
| 259 261 | 
             
                                return ({
         | 
| 260 262 | 
             
                                    feature: ((_a = filling.tag) === null || _a === void 0 ? void 0 : _a.id) || 0,
         |