kui-crm_actions 0.0.308 → 0.0.310

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, ContractLinkModel, TransferInspectionTypes as TransferInspectionTypes$1, ImageBodyRequest, FileBodyRequest, RoomType, ParkingTypes, ApartmentMainInfoModelFields, HouseInfoModelFields, PostInspectionFillingListModel, ApartmentResourceModel, TaxesTypes, ApartmentDetailInfoModelFields, InspectionRoomPhotoTypes, PatchFileParams, CompanyAutocompleteFields, CountryAutocompleteFields, CityParams, RoomTypes, RenovationParams, RoomParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, PhoneParams, WifiParams, InternetProviderParams, TVTypes, MetersCountParams, FillingTypes, FillingListItemModel, ImageStore, UploadFileParams, FillingInfoFormFields as FillingInfoFormFields$1, DataSubmissionDaysParams, ResourceAccessParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ApartmentResourceTypes, ApartmentDescriptionParams, ApartmentMetroStationsParams, GroupedFillingParams, ApartmentDescriptionFormFields, ApartmentResourceFieldsParams, InspectionBasedOnParams, InspectionModel, PatchRoomImagesParams, FillingParams, FillingFullParams, PatchApartmentParams, InitialInspectionModelFields, InventoryInspectionFields, TransferInspectionFields, RegularInspectionFields, AppraisalInspectionFields, ImpairmentModel, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentWithHouseInfoModelFields, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InspectionMetersInfoParams, FieldsSettings, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, DataTransmissionFormats, InspectionFeedbackParams, GeolocationParams, MetroStationParams as MetroStationParams$1 } from 'kui-crm';
2
+ import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, ContractLinkModel, TransferInspectionTypes as TransferInspectionTypes$1, ImageBodyRequest as ImageBodyRequest$1, FileBodyRequest, RoomType, ParkingTypes, ApartmentMainInfoModelFields, HouseInfoModelFields, PostInspectionFillingListModel, ApartmentResourceModel, TaxesTypes, ApartmentDetailInfoModelFields, InspectionRoomPhotoTypes, PatchFileParams, CompanyAutocompleteFields, CountryAutocompleteFields, CityParams, RoomTypes, RenovationParams, RoomParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, PhoneParams, WifiParams, InternetProviderParams, TVTypes, MetersCountParams, FillingTypes, FillingListItemModel, ImageStore, UploadFileParams, FillingInfoFormFields as FillingInfoFormFields$1, DataSubmissionDaysParams, ResourceAccessParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ApartmentResourceTypes, InspectionRoomPhotoModel, PatchRoomImagesParams, ApartmentDescriptionParams, ApartmentMetroStationsParams, GroupedFillingParams, ApartmentDescriptionFormFields, FillingFullParams, ApartmentResourceFieldsParams, InspectionBasedOnParams, InspectionModel, FillingParams, PatchApartmentParams, InitialInspectionModelFields, InventoryInspectionFields, TransferInspectionFields, RegularInspectionFields, AppraisalInspectionFields, ImpairmentModel, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentWithHouseInfoModelFields, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InspectionMetersInfoParams, FieldsSettings, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, DataTransmissionFormats, InspectionFeedbackParams, GeolocationParams, MetroStationParams as MetroStationParams$1 } 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';
@@ -143,7 +143,7 @@ declare type PartialMeterModel = {
143
143
  meter_type?: MeterTypes;
144
144
  resource_type: ResourceTypes;
145
145
  values: InspectionMeterValueModel;
146
- photos: ImageBodyRequest[];
146
+ photos: ImageBodyRequest$1[];
147
147
  };
148
148
  declare type InspectionMeterCommonFields = {
149
149
  meter_type?: MeterTypes | null;
@@ -153,7 +153,7 @@ declare type InspectionMeterCommonFields = {
153
153
  operating_account?: string | null;
154
154
  company?: number;
155
155
  passport: FileBodyRequest;
156
- photos: ImageBodyRequest[];
156
+ photos: ImageBodyRequest$1[];
157
157
  };
158
158
  declare type InventoryMeterModel = {
159
159
  values: InspectionMeterValueModel;
@@ -165,7 +165,7 @@ declare type InspectionFillingParams$1 = {
165
165
  description?: string;
166
166
  serial_code?: string;
167
167
  amount?: number | string | null;
168
- photos: ImageBodyRequest[];
168
+ photos: ImageBodyRequest$1[];
169
169
  instruction?: FileBodyRequest | null;
170
170
  };
171
171
  declare type InspectionRoomParams = {
@@ -223,7 +223,7 @@ declare type InventoryInspectionFieldsBody = {
223
223
  declare type InspectionRoomPhotoRequest = {
224
224
  purpose: InspectionRoomPhotoTypes;
225
225
  comment?: string;
226
- photos: ImageBodyRequest[];
226
+ photos: ImageBodyRequest$1[];
227
227
  room_order_number?: number | null;
228
228
  };
229
229
  declare type InspectionTypesResponse = {
@@ -425,7 +425,7 @@ type FillingInfoFormFields = {
425
425
  description?: string
426
426
  type?: ApartmentFillingVariants
427
427
  instruction?: InputFileWithVisibilityFields
428
- tempImages?: ImageBodyRequest[]
428
+ tempImages?: ImageBodyRequest$1[]
429
429
  }
430
430
 
431
431
  type InspectionFillingFormParams = {
@@ -487,181 +487,312 @@ type InspectionPostFillingListFields = {
487
487
  fillingList: InspectionFillingFormParams[]
488
488
  }
489
489
 
490
- type TransferInspectionTypes =
491
- | "maroom_tenant"
492
- | "tenant_maroom"
493
- | "maroom_landlord"
494
- | "tenant_landlord"
495
-
496
- type RegularInspectionFormFields = CommonInspectionFormFields &
497
- InspectionPartialMetersStepFields &
498
- InspectionRoomsImagesFields &
499
- InspectionPostFillingListFields
500
-
501
- type TransferInspectionFormFields = CommonInspectionFormFields &
502
- InspectionPartialMetersStepFields &
503
- InspectionRoomsImagesFields &
504
- InspectionPostFillingListFields &
505
- TransferDocumentsFields
506
-
507
- type MeterValue = string | number | null
508
-
509
- type MeterValuesFields = {
510
- resource: ResourceTypes
511
- type?: MeterTypes
512
- value?: MeterValue
513
- T1?: MeterValue
514
- T2?: MeterValue
515
- T3?: MeterValue
516
- initialValue?: MeterValue
517
- initialValueT1?: MeterValue
518
- initialValueT2?: MeterValue
519
- initialValueT3?: MeterValue
520
- }
521
-
522
- type RoomImagesParams = {
523
- type: InspectionRoomPhotoTypes
524
- comment?: string
525
- images: ImageStore[]
526
- roomNumber?: number
527
- }
528
-
529
- type ApartmentDescriptionWithMetro = ApartmentDescriptionParams &
530
- ApartmentMetroStationsParams
531
-
532
- type FillingCheckParams = {
533
- id: number
534
- name: string
535
- description: string
536
- tagName: string
537
- serialNumber?: string
538
- numberOfSubjects?: number | string | null
539
- wasMissing?: boolean
540
- }
541
-
542
- type InspectionRoomFields = {
543
- id?: number
544
- type: InspectionRoomPhotoTypes
545
- images: PhotoCardParams[]
546
- photos?: PhotoCardParams[]
547
- videos: PhotoCardParams[]
548
- comment?: string
549
- roomNumber?: number
550
- isLoading: boolean
551
- }
552
-
553
- type InspectionRoomsPhotoFields = {
554
- roomsImages: InspectionRoomFields[]
555
- }
556
-
557
- type ApartmentMetersFormFields = {
558
- meters: InspectionMeterFields[]
559
- }
560
-
561
- type InspectionFullResourceParams = {
562
- id?: number
563
- } & ApartmentResourceFieldsParams
564
-
565
- type ApartmentResourcesFormFields = {
566
- resources: InspectionFullResourceParams[]
567
- }
568
-
569
- type InspectionFullFillingListFields = {
570
- fillingList: GroupedFillingParams
571
- }
572
-
573
- type PatchInventoryInspectionFields = CommonInspectionFormFields &
574
- ApartmentDescriptionFormFields &
575
- InspectionRoomsPhotoFields &
576
- ApartmentPaymentsFormFields &
577
- InspectionFullFillingListFields &
578
- ApartmentResourcesFormFields &
579
- InventoryDocumentsFields
580
-
581
- type PatchTransferInspectionFields = CommonInspectionFormFields &
582
- ApartmentDescriptionFormFields &
583
- InspectionRoomsPhotoFields &
584
- ApartmentMetersFormFields &
585
- InspectionFullFillingListFields &
586
- TransferDocumentsFields
587
-
588
- type PatchRegularInspectionFields = {
589
- roomsImages: InspectionRoomFields[]
590
- meters: InspectionMeterFields[]
591
- fillingList: GroupedFillingParams
592
- } & Omit<
593
- RegularInspectionFormFields,
594
- "roomsImages" | "meters" | "fillingListWithCheck"
595
- >
596
-
597
- type PatchInitialInspectionFields = {
598
- roomsImages: InspectionRoomFields[]
599
- } & Omit<InitialInspectionFormFields, "roomsImages">
600
-
601
- type ApartmentStoreInterface = {
602
- overviewStore: {
603
- landlord: {
604
- id: number
605
- } | null
606
- }
607
- }
608
-
609
- type CommonInspectionFormFields = {
610
- date: DateTime
611
- basedOn?: InspectionBasedOnParams
612
- type: InspectionTypes
613
- dropboxLink?: string
614
- rentalContract?: number
615
- transferType?: TransferInspectionTypes | null
616
- tenantSigner?: number | null
617
- landlordSigner?: number | null
618
- }
619
-
620
- type InspectionRoomImagesParams = {
621
- id: number
622
- type: InspectionRoomPhotoTypes
623
- photos: FileStore[]
624
- comment: string
625
- roomNumber?: number | null
626
- }
627
-
628
- type InspectionRoomsImagesFields = {
629
- roomsImages: InspectionRoomImagesParams[]
630
- }
631
-
632
- type InspectionRoomsFields = {
633
- rooms: Omit<RoomParams, "id">[]
634
- roomsNumber: number | null
635
- bathroomsNumber: number | null
636
- bedroomsNumber: number | null
637
- restroomsNumber: number | null
638
- combinedBathroomsNumber: number | null
639
- parkingType?: ParkingTypes | null
640
- }
641
-
642
- type InspectionImageFieldsSettings = {
643
- [key: string]: any
644
- }
645
-
646
- declare const inspectionsRequests: {
647
- postInspection(apartmentId: number, loader: Loader, data: CommonInspectionFormFields, formStore: MultistepForm<any>): Promise<void>;
648
- getInspectionTypes(apartmentId: number, rentalContractId: number | null): Promise<[Error | null, InspectionTypes[] | undefined]>;
649
- getTransferTypes(apartmentId: number, rentalContractId: number | null): Promise<[Error | null, TransferInspectionTypes$1[] | undefined]>;
650
- createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
651
- getRoomParams(rooms: InspectionRoomImagesParams[]): {
652
- purpose: kui_crm.InspectionRoomPhotoTypes;
653
- comment: string;
654
- photos: kui_crm.ImageBodyRequest[];
655
- videos: kui_crm.ImageBodyRequest[];
656
- room_order_number: number | null | undefined;
657
- }[];
658
- fetchNotSentInspection(apartmentId: number, loader: Loader, formStore: MultistepForm<any>): Promise<void>;
659
- updateInspectionCreationForm(inspection: InspectionModel, formStore: MultistepForm<any>): void;
490
+ declare type ImageBodyRequest = {
491
+ temp_file_id: number;
492
+ image_name: string;
493
+ url: string;
494
+ };
495
+ declare type VideoBodyRequest = {
496
+ temp_file_id: number;
497
+ file_name: string;
498
+ url: string;
660
499
  };
661
500
 
501
+ declare type PatchInspectionImageParams = {
502
+ id?: number;
503
+ order?: number;
504
+ } & Partial<ImageBodyRequest>;
505
+ declare type PatchInspectionVideoParams = {
506
+ id?: number;
507
+ } & Partial<VideoBodyRequest>;
508
+
662
509
  declare const patchInspectionsRequests: {
663
- patchRegularInspection(loader: Loader, data: PatchRegularInspectionFields): Promise<{
664
- photo_groups: PatchRoomImagesParams[];
510
+ patchInspection(apartmentId: number, data: PatchInspectionFields, loader: Loader, formStore: MultistepForm<any>): Promise<void>;
511
+ getInspectionPatchBody(data: PatchInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, loader: Loader): Promise<{
512
+ transfer: {
513
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
514
+ filling_new: kui_crm.InspectionFillingParams[];
515
+ meters: {
516
+ photos: kui_crm.ImageBodyRequest[];
517
+ values: {
518
+ [key: string]: any;
519
+ };
520
+ id: number | undefined;
521
+ meter_id: number | undefined;
522
+ meter_type: kui_crm.MeterTypes | undefined;
523
+ passport_number: string;
524
+ resource_type: "water" | "electricity" | "gas" | "heating";
525
+ activation_date: string | null;
526
+ }[];
527
+ city?: number | undefined;
528
+ locker?: number | undefined;
529
+ address?: string | undefined;
530
+ area?: string | number | null | undefined;
531
+ rooms?: kui_crm.RoomModel[] | undefined;
532
+ country?: kui_crm.CountryModel | undefined;
533
+ region?: kui_crm.CatalogItemModel | undefined;
534
+ county?: kui_crm.CatalogItemModel | undefined;
535
+ district?: kui_crm.CatalogItemModel | undefined;
536
+ geolocation?: kui_crm.LatLonParams | undefined;
537
+ object_name?: string | undefined;
538
+ apartment_number?: string | number | undefined;
539
+ post_index?: string | undefined;
540
+ floor?: number | null | undefined;
541
+ floor_count?: number | undefined;
542
+ room_type?: kui_crm.RoomTypes | null | undefined;
543
+ num_entrance?: string | undefined;
544
+ has_intercom?: boolean | null | undefined;
545
+ intercom_code?: string | undefined;
546
+ has_gate?: boolean | null | undefined;
547
+ gate_code?: string | undefined;
548
+ living_area?: string | number | null | undefined;
549
+ kitchen_area?: string | number | null | undefined;
550
+ rooms_number?: number | null | undefined;
551
+ bedrooms_number?: number | null | undefined;
552
+ bathrooms_number?: number | null | undefined;
553
+ restrooms_number?: number | null | undefined;
554
+ combined_bathrooms_number?: number | null | undefined;
555
+ ceiling_height?: string | number | null | undefined;
556
+ number_of_windows?: number | null | undefined;
557
+ renovation_year?: number | null | undefined;
558
+ renovation_type?: kui_crm.RenovationType | null | undefined;
559
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
560
+ id?: number | undefined;
561
+ payer_code?: string | undefined;
562
+ owner?: kui_crm.LiteUserModel | null | undefined;
563
+ renter?: kui_crm.LiteUserModel | null | undefined;
564
+ distance_to_center_kilometers?: number | null | undefined;
565
+ has_security?: boolean | null | undefined;
566
+ security_phone?: string | null | undefined;
567
+ has_barrier?: boolean | null | undefined;
568
+ barrier_phone?: string | null | undefined;
569
+ has_concierge?: boolean | null | undefined;
570
+ concierge_phone?: string | null | undefined;
571
+ has_video_surveillance?: boolean | null | undefined;
572
+ video_surveillance_phone?: string | null | undefined;
573
+ locker_number?: string | number | undefined;
574
+ is_imported_from_old_crm?: boolean | undefined;
575
+ renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
576
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
577
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
578
+ owner_id?: number | undefined;
579
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
580
+ rental_status?: kui_crm.RentalStatuses | undefined;
581
+ main_image?: kui_crm.ImageModel | undefined;
582
+ tv_type?: kui_crm.TVTypes | null | undefined;
583
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
584
+ сommission_percent?: number | null | undefined;
585
+ folder_number?: string | undefined;
586
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
587
+ administrative_company?: kui_crm.AdministrativeCompanyModel | undefined;
588
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
589
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
590
+ period_status?: kui_crm.PeriodStatus | undefined;
591
+ have_initial_inspection?: boolean | undefined;
592
+ have_auto_meters?: boolean | undefined;
593
+ financial_personal_account?: string | undefined;
594
+ max_electricity_counters?: number | null | undefined;
595
+ max_gas_counters?: number | null | undefined;
596
+ max_heating_counters?: number | null | undefined;
597
+ max_water_counters?: number | null | undefined;
598
+ home_phone?: string | null | undefined;
599
+ wifi_name?: string | undefined;
600
+ wifi_password?: string | undefined;
601
+ internet_provider?: kui_crm.InternetProviderModel | undefined;
602
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
603
+ parking_number?: string | undefined;
604
+ passenger_elevators_number?: string | number | null | undefined;
605
+ service_elevators_number?: string | number | null | undefined;
606
+ building_year?: number | null | undefined;
607
+ type_houses?: kui_crm.HouseTypes | null | undefined;
608
+ serial_number?: string | undefined;
609
+ type_gas?: kui_crm.GasTypes | null | undefined;
610
+ wall_type?: kui_crm.WallMaterials | null | undefined;
611
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
612
+ hot_water?: boolean | undefined;
613
+ inspection_document: kui_crm.FileBodyRequest;
614
+ rental_contract_termination_document: kui_crm.FileBodyRequest;
615
+ service_contract_termination_document: kui_crm.FileBodyRequest;
616
+ tenant_signer: number | null | undefined;
617
+ landlord_signer: number | null | undefined;
618
+ };
619
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
620
+ dropbox_link: string | undefined;
621
+ signers: {
622
+ tenant: number | null | undefined;
623
+ landlord: number | null | undefined;
624
+ } | undefined;
625
+ } | {
626
+ regular: {
627
+ meters: {
628
+ photos: kui_crm.ImageBodyRequest[];
629
+ values: {
630
+ [key: string]: any;
631
+ };
632
+ id: number | undefined;
633
+ meter_id: number | undefined;
634
+ meter_type: kui_crm.MeterTypes | undefined;
635
+ passport_number: string;
636
+ resource_type: "water" | "electricity" | "gas" | "heating";
637
+ activation_date: string | null;
638
+ }[];
639
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
640
+ filling_new: kui_crm.InspectionFillingParams[];
641
+ };
642
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
643
+ dropbox_link: string | undefined;
644
+ signers: {
645
+ tenant: number | null | undefined;
646
+ landlord: number | null | undefined;
647
+ } | undefined;
648
+ } | {
649
+ initial: InitialInspectionFieldsBody;
650
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
651
+ dropbox_link: string | undefined;
652
+ signers: {
653
+ tenant: number | null | undefined;
654
+ landlord: number | null | undefined;
655
+ } | undefined;
656
+ } | {
657
+ inventory: {
658
+ resources: {
659
+ id: number | undefined;
660
+ company: number | undefined;
661
+ resource_type: kui_crm.ApartmentResourceTypesAPI;
662
+ name: string | undefined;
663
+ operational_account_number: string | undefined;
664
+ payer_code: string | undefined;
665
+ meter_readings_day_from: number | undefined;
666
+ meter_readings_day_to: number | undefined;
667
+ receipt_example: kui_crm.FileBodyRequest;
668
+ provider_auth_login: string | undefined;
669
+ provider_auth_password: string | undefined;
670
+ provider_url: string | undefined;
671
+ description: string | undefined;
672
+ data_transfer_format: kui_crm.DataTransmissionFormats | undefined;
673
+ }[];
674
+ meters: {
675
+ passport: kui_crm.FileBodyRequest;
676
+ values: {
677
+ [key: string]: any;
678
+ };
679
+ photos: kui_crm.ImageBodyRequest[];
680
+ auto_sending: boolean | undefined;
681
+ id: number | undefined;
682
+ meter_id: number | undefined;
683
+ meter_type: kui_crm.MeterTypes | undefined;
684
+ passport_number: string;
685
+ resource_type: "water" | "electricity" | "gas" | "heating";
686
+ activation_date: string | null;
687
+ }[];
688
+ filling: {
689
+ id: number | undefined;
690
+ feature: number;
691
+ description: string | undefined;
692
+ serial_code: string | undefined;
693
+ amount: string | number | null | undefined;
694
+ is_absent: boolean;
695
+ instruction: kui_crm.FileBodyRequest;
696
+ photos: kui_crm.ImageBodyRequest[];
697
+ }[];
698
+ administrative_company: number | undefined;
699
+ taxes_type: kui_crm.TaxesTypes | null;
700
+ country_of_residence: number | undefined;
701
+ payer_code: string;
702
+ financial_personal_account: string;
703
+ city?: number | undefined;
704
+ locker?: number | undefined;
705
+ address?: string | undefined;
706
+ area?: string | number | null | undefined;
707
+ rooms?: kui_crm.RoomModel[] | undefined;
708
+ country?: kui_crm.CountryModel | undefined;
709
+ region?: kui_crm.CatalogItemModel | undefined;
710
+ county?: kui_crm.CatalogItemModel | undefined;
711
+ district?: kui_crm.CatalogItemModel | undefined;
712
+ geolocation?: kui_crm.LatLonParams | undefined;
713
+ object_name?: string | undefined;
714
+ apartment_number?: string | number | undefined;
715
+ post_index?: string | undefined;
716
+ floor?: number | null | undefined;
717
+ floor_count?: number | undefined;
718
+ room_type?: kui_crm.RoomTypes | null | undefined;
719
+ num_entrance?: string | undefined;
720
+ has_intercom?: boolean | null | undefined;
721
+ intercom_code?: string | undefined;
722
+ has_gate?: boolean | null | undefined;
723
+ gate_code?: string | undefined;
724
+ living_area?: string | number | null | undefined;
725
+ kitchen_area?: string | number | null | undefined;
726
+ rooms_number?: number | null | undefined;
727
+ bedrooms_number?: number | null | undefined;
728
+ bathrooms_number?: number | null | undefined;
729
+ restrooms_number?: number | null | undefined;
730
+ combined_bathrooms_number?: number | null | undefined;
731
+ ceiling_height?: string | number | null | undefined;
732
+ number_of_windows?: number | null | undefined;
733
+ renovation_year?: number | null | undefined;
734
+ renovation_type?: kui_crm.RenovationType | null | undefined;
735
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
736
+ id?: number | undefined;
737
+ owner?: kui_crm.LiteUserModel | null | undefined;
738
+ renter?: kui_crm.LiteUserModel | null | undefined;
739
+ distance_to_center_kilometers?: number | null | undefined;
740
+ has_security?: boolean | null | undefined;
741
+ security_phone?: string | null | undefined;
742
+ has_barrier?: boolean | null | undefined;
743
+ barrier_phone?: string | null | undefined;
744
+ has_concierge?: boolean | null | undefined;
745
+ concierge_phone?: string | null | undefined;
746
+ has_video_surveillance?: boolean | null | undefined;
747
+ video_surveillance_phone?: string | null | undefined;
748
+ locker_number?: string | number | undefined;
749
+ is_imported_from_old_crm?: boolean | undefined;
750
+ renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
751
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
752
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
753
+ owner_id?: number | undefined;
754
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
755
+ rental_status?: kui_crm.RentalStatuses | undefined;
756
+ main_image?: kui_crm.ImageModel | undefined;
757
+ tv_type?: kui_crm.TVTypes | null | undefined;
758
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
759
+ сommission_percent?: number | null | undefined;
760
+ folder_number?: string | undefined;
761
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
762
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
763
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
764
+ period_status?: kui_crm.PeriodStatus | undefined;
765
+ have_initial_inspection?: boolean | undefined;
766
+ have_auto_meters?: boolean | undefined;
767
+ max_electricity_counters?: number | null | undefined;
768
+ max_gas_counters?: number | null | undefined;
769
+ max_heating_counters?: number | null | undefined;
770
+ max_water_counters?: number | null | undefined;
771
+ home_phone?: string | null | undefined;
772
+ wifi_name?: string | undefined;
773
+ wifi_password?: string | undefined;
774
+ internet_provider?: kui_crm.InternetProviderModel | undefined;
775
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
776
+ parking_number?: string | undefined;
777
+ passenger_elevators_number?: string | number | null | undefined;
778
+ service_elevators_number?: string | number | null | undefined;
779
+ building_year?: number | null | undefined;
780
+ type_houses?: kui_crm.HouseTypes | null | undefined;
781
+ serial_number?: string | undefined;
782
+ type_gas?: kui_crm.GasTypes | null | undefined;
783
+ wall_type?: kui_crm.WallMaterials | null | undefined;
784
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
785
+ hot_water?: boolean | undefined;
786
+ inspection_document: kui_crm.FileBodyRequest | undefined;
787
+ };
788
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
789
+ dropbox_link: string | undefined;
790
+ signers: {
791
+ tenant: number | null | undefined;
792
+ landlord: number | null | undefined;
793
+ } | undefined;
794
+ } | null>;
795
+ getRegularInspectionPatchBody(data: PatchRegularInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, loader: Loader): Promise<{
665
796
  regular: {
666
797
  meters: {
667
798
  photos: kui_crm.ImageBodyRequest[];
@@ -675,38 +806,20 @@ declare const patchInspectionsRequests: {
675
806
  resource_type: "water" | "electricity" | "gas" | "heating";
676
807
  activation_date: string | null;
677
808
  }[];
678
- filling: {
679
- apartment_feature_id: number | undefined;
680
- is_absent: boolean;
681
- id: number | undefined;
682
- feature: number;
683
- description: string | undefined;
684
- serial_code: string | undefined;
685
- amount: string | number | null | undefined;
686
- instruction: kui_crm.FileBodyRequest;
687
- photos: kui_crm.ImageBodyRequest[];
688
- }[];
809
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
810
+ filling_new: kui_crm.InspectionFillingParams[];
689
811
  };
812
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
690
813
  dropbox_link: string | undefined;
691
814
  signers: {
692
815
  tenant: number | null | undefined;
693
816
  landlord: number | null | undefined;
694
817
  } | undefined;
695
818
  }>;
696
- patchTransferInspection(loader: Loader, data: PatchTransferInspectionFields): Promise<{
697
- photo_groups: PatchRoomImagesParams[];
819
+ getTransferInspectionPatchBody(data: PatchTransferInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, loader: Loader): Promise<{
698
820
  transfer: {
699
- filling: {
700
- apartment_feature_id: number | undefined;
701
- is_absent: boolean;
702
- id: number | undefined;
703
- feature: number;
704
- description: string | undefined;
705
- serial_code: string | undefined;
706
- amount: string | number | null | undefined;
707
- instruction: kui_crm.FileBodyRequest;
708
- photos: kui_crm.ImageBodyRequest[];
709
- }[];
821
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
822
+ filling_new: kui_crm.InspectionFillingParams[];
710
823
  meters: {
711
824
  photos: kui_crm.ImageBodyRequest[];
712
825
  values: {
@@ -754,6 +867,8 @@ declare const patchInspectionsRequests: {
754
867
  renovation_style?: kui_crm.RenovationStyle | null | undefined;
755
868
  id?: number | undefined;
756
869
  payer_code?: string | undefined;
870
+ owner?: kui_crm.LiteUserModel | null | undefined;
871
+ renter?: kui_crm.LiteUserModel | null | undefined;
757
872
  distance_to_center_kilometers?: number | null | undefined;
758
873
  has_security?: boolean | null | undefined;
759
874
  security_phone?: string | null | undefined;
@@ -768,8 +883,6 @@ declare const patchInspectionsRequests: {
768
883
  renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
769
884
  rental_contracts?: kui_crm.RentalContractModel[] | undefined;
770
885
  service_contracts?: kui_crm.ServiceContractModel[] | undefined;
771
- owner?: kui_crm.LiteUserModel | null | undefined;
772
- renter?: kui_crm.LiteUserModel | null | undefined;
773
886
  owner_id?: number | undefined;
774
887
  metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
775
888
  rental_status?: kui_crm.RentalStatuses | undefined;
@@ -811,23 +924,23 @@ declare const patchInspectionsRequests: {
811
924
  tenant_signer: number | null | undefined;
812
925
  landlord_signer: number | null | undefined;
813
926
  };
927
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
814
928
  dropbox_link: string | undefined;
815
929
  signers: {
816
930
  tenant: number | null | undefined;
817
931
  landlord: number | null | undefined;
818
932
  } | undefined;
819
933
  }>;
820
- patchInitialInspection(loader: Loader, data: PatchInitialInspectionFields): Promise<{
821
- photo_groups: PatchRoomImagesParams[];
934
+ getInitialInspectionPatchBody(data: PatchInitialInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, loader: Loader): Promise<{
822
935
  initial: InitialInspectionFieldsBody;
936
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
823
937
  dropbox_link: string | undefined;
824
938
  signers: {
825
939
  tenant: number | null | undefined;
826
940
  landlord: number | null | undefined;
827
941
  } | undefined;
828
942
  }>;
829
- patchInventoryInspection(loader: Loader, data: PatchInventoryInspectionFields): Promise<{
830
- photo_groups: PatchRoomImagesParams[];
943
+ getInventoryInspectionPatchBody(data: PatchInventoryInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, loader: Loader): Promise<{
831
944
  inventory: {
832
945
  resources: {
833
946
  id: number | undefined;
@@ -908,6 +1021,8 @@ declare const patchInspectionsRequests: {
908
1021
  renovation_type?: kui_crm.RenovationType | null | undefined;
909
1022
  renovation_style?: kui_crm.RenovationStyle | null | undefined;
910
1023
  id?: number | undefined;
1024
+ owner?: kui_crm.LiteUserModel | null | undefined;
1025
+ renter?: kui_crm.LiteUserModel | null | undefined;
911
1026
  distance_to_center_kilometers?: number | null | undefined;
912
1027
  has_security?: boolean | null | undefined;
913
1028
  security_phone?: string | null | undefined;
@@ -922,8 +1037,6 @@ declare const patchInspectionsRequests: {
922
1037
  renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
923
1038
  rental_contracts?: kui_crm.RentalContractModel[] | undefined;
924
1039
  service_contracts?: kui_crm.ServiceContractModel[] | undefined;
925
- owner?: kui_crm.LiteUserModel | null | undefined;
926
- renter?: kui_crm.LiteUserModel | null | undefined;
927
1040
  owner_id?: number | undefined;
928
1041
  metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
929
1042
  rental_status?: kui_crm.RentalStatuses | undefined;
@@ -959,6 +1072,7 @@ declare const patchInspectionsRequests: {
959
1072
  hot_water?: boolean | undefined;
960
1073
  inspection_document: kui_crm.FileBodyRequest | undefined;
961
1074
  };
1075
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
962
1076
  dropbox_link: string | undefined;
963
1077
  signers: {
964
1078
  tenant: number | null | undefined;
@@ -969,7 +1083,188 @@ declare const patchInspectionsRequests: {
969
1083
  actualizeMedia(loader: Loader, mediaBlock: (PhotoCardParams | UploadFileParams | ImageStore | FileStore)[][], isVideos?: boolean | undefined): Promise<(kui_crm.ImageBodyRequest | kui_crm.FileBodyRequest | kui_crm.VideoBodyRequest | {
970
1084
  id: number;
971
1085
  })[][]>;
972
- actualizeRoomsImages(loader: Loader, rooms: InspectionRoomFields[]): Promise<PatchRoomImagesParams[]>;
1086
+ getRoomPhotosParams(photos: (PatchRoomImagesParams["photos"][number] | null | undefined)[]): PatchInspectionImageParams[];
1087
+ getRoomVideosParams(videos: (PatchRoomImagesParams["videos"][number] | null | undefined)[]): PatchInspectionVideoParams[];
1088
+ actualizeRoomImagesGroup(loader: Loader, room: PatchRoomImagesParams, index: number, apartmentId: number, inspectionId: number, formStore?: MultistepForm<any, []> | undefined): Promise<InspectionRoomPhotoModel>;
1089
+ actualizeRoomsImages(loader: Loader, rooms: InspectionRoomFields[], apartmentId: number, inspectionId: number, formStore?: MultistepForm<any, []> | undefined): Promise<InspectionRoomPhotoModel[]>;
1090
+ };
1091
+
1092
+ type TransferInspectionTypes =
1093
+ | "maroom_tenant"
1094
+ | "tenant_maroom"
1095
+ | "maroom_landlord"
1096
+ | "tenant_landlord"
1097
+
1098
+ type RegularInspectionFormFields = CommonInspectionFormFields &
1099
+ InspectionPartialMetersStepFields &
1100
+ InspectionRoomsImagesFields &
1101
+ InspectionPostFillingListFields
1102
+
1103
+ type TransferInspectionFormFields = CommonInspectionFormFields &
1104
+ InspectionPartialMetersStepFields &
1105
+ InspectionRoomsImagesFields &
1106
+ InspectionPostFillingListFields &
1107
+ TransferDocumentsFields
1108
+
1109
+ type MeterValue = string | number | null
1110
+
1111
+ type MeterValuesFields = {
1112
+ resource: ResourceTypes
1113
+ type?: MeterTypes
1114
+ value?: MeterValue
1115
+ T1?: MeterValue
1116
+ T2?: MeterValue
1117
+ T3?: MeterValue
1118
+ initialValue?: MeterValue
1119
+ initialValueT1?: MeterValue
1120
+ initialValueT2?: MeterValue
1121
+ initialValueT3?: MeterValue
1122
+ }
1123
+
1124
+ type RoomImagesParams = {
1125
+ type: InspectionRoomPhotoTypes
1126
+ comment?: string
1127
+ images: ImageStore[]
1128
+ roomNumber?: number
1129
+ }
1130
+
1131
+ type ApartmentDescriptionWithMetro = ApartmentDescriptionParams &
1132
+ ApartmentMetroStationsParams
1133
+
1134
+ type FillingCheckParams = {
1135
+ id: number
1136
+ name: string
1137
+ description: string
1138
+ tagName: string
1139
+ serialNumber?: string
1140
+ numberOfSubjects?: number | string | null
1141
+ wasMissing?: boolean
1142
+ }
1143
+
1144
+ type InspectionRoomFields = {
1145
+ id?: number
1146
+ type: InspectionRoomPhotoTypes
1147
+ images: PhotoCardParams[]
1148
+ photos?: PhotoCardParams[]
1149
+ videos: PhotoCardParams[]
1150
+ comment?: string
1151
+ roomNumber?: number
1152
+ isLoading: boolean
1153
+ }
1154
+
1155
+ type InspectionRoomsPhotoFields = {
1156
+ roomsImages: InspectionRoomFields[]
1157
+ }
1158
+
1159
+ type ApartmentMetersFormFields = {
1160
+ meters: InspectionMeterFields[]
1161
+ }
1162
+
1163
+ type InspectionFullResourceParams = {
1164
+ id?: number
1165
+ } & ApartmentResourceFieldsParams
1166
+
1167
+ type ApartmentResourcesFormFields = {
1168
+ resources: InspectionFullResourceParams[]
1169
+ }
1170
+
1171
+ type InspectionFullFillingListFields = {
1172
+ fillingList: GroupedFillingParams
1173
+ fillingListWithCheck: InspectionFillingItemFields[]
1174
+ }
1175
+
1176
+ type PatchInventoryInspectionFields = CommonInspectionFormFields &
1177
+ ApartmentDescriptionFormFields &
1178
+ InspectionRoomsPhotoFields &
1179
+ ApartmentPaymentsFormFields &
1180
+ InspectionFullFillingListFields &
1181
+ ApartmentResourcesFormFields &
1182
+ InventoryDocumentsFields
1183
+
1184
+ type PatchTransferInspectionFields = CommonInspectionFormFields &
1185
+ ApartmentDescriptionFormFields &
1186
+ InspectionRoomsPhotoFields &
1187
+ ApartmentMetersFormFields &
1188
+ InspectionFullFillingListFields &
1189
+ TransferDocumentsFields
1190
+
1191
+ type PatchRegularInspectionFields = {
1192
+ roomsImages: InspectionRoomFields[]
1193
+ meters: InspectionMeterFields[]
1194
+ fillingList: GroupedFillingParams | FillingFullParams[]
1195
+ } & Omit<RegularInspectionFormFields, "roomsImages" | "meters">
1196
+
1197
+ type PatchInitialInspectionFields = {
1198
+ roomsImages: InspectionRoomFields[]
1199
+ } & Omit<InitialInspectionFormFields, "roomsImages">
1200
+
1201
+ type ApartmentStoreInterface = {
1202
+ overviewStore: {
1203
+ landlord: {
1204
+ id: number
1205
+ } | null
1206
+ }
1207
+ }
1208
+
1209
+ type PatchInspectionFields =
1210
+ | PatchInitialInspectionFields
1211
+ | PatchRegularInspectionFields
1212
+ | PatchTransferInspectionFields
1213
+ | PatchInventoryInspectionFields
1214
+
1215
+ type CommonInspectionFormFields = {
1216
+ id?: number | null
1217
+ apartmentId?: number | null
1218
+ date: DateTime
1219
+ basedOn?: InspectionBasedOnParams
1220
+ type: InspectionTypes
1221
+ dropboxLink?: string
1222
+ rentalContract?: number
1223
+ transferType?: TransferInspectionTypes | null
1224
+ tenantSigner?: number | null
1225
+ landlordSigner?: number | null
1226
+ }
1227
+
1228
+ type InspectionRoomImagesParams = {
1229
+ id?: number | null
1230
+ type: InspectionRoomPhotoTypes
1231
+ photos: FileStore[]
1232
+ comment: string
1233
+ roomNumber?: number | null
1234
+ }
1235
+
1236
+ type InspectionRoomsImagesFields = {
1237
+ roomsImages: InspectionRoomImagesParams[]
1238
+ }
1239
+
1240
+ type InspectionRoomsFields = {
1241
+ rooms: Omit<RoomParams, "id">[]
1242
+ roomsNumber: number | null
1243
+ bathroomsNumber: number | null
1244
+ bedroomsNumber: number | null
1245
+ restroomsNumber: number | null
1246
+ combinedBathroomsNumber: number | null
1247
+ parkingType?: ParkingTypes | null
1248
+ }
1249
+
1250
+ type InspectionImageFieldsSettings = {
1251
+ [key: string]: any
1252
+ }
1253
+
1254
+ declare const inspectionsRequests: {
1255
+ postInspection(apartmentId: number, loader: Loader, data: CommonInspectionFormFields, formStore: MultistepForm<any>): Promise<void>;
1256
+ getInspectionTypes(apartmentId: number, rentalContractId: number | null): Promise<[Error | null, InspectionTypes[] | undefined]>;
1257
+ getTransferTypes(apartmentId: number, rentalContractId: number | null): Promise<[Error | null, TransferInspectionTypes$1[] | undefined]>;
1258
+ createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
1259
+ getRoomParams(rooms: InspectionRoomImagesParams[]): {
1260
+ purpose: kui_crm.InspectionRoomPhotoTypes;
1261
+ comment: string;
1262
+ photos: kui_crm.ImageBodyRequest[];
1263
+ videos: kui_crm.ImageBodyRequest[];
1264
+ room_order_number: number | null | undefined;
1265
+ }[];
1266
+ fetchNotSentInspection(apartmentId: number, loader: Loader, formStore: MultistepForm<any>): Promise<void>;
1267
+ updateInspectionCreationForm(inspection: InspectionModel, formStore: MultistepForm<any>): void;
973
1268
  };
974
1269
 
975
1270
  declare const InspectionFillingCard: (props: InspectionFillingCardProps) => JSX.Element;
@@ -984,22 +1279,12 @@ declare const inspectionsRequestBody: {
984
1279
  } | undefined;
985
1280
  };
986
1281
  getInitialInspectionFields(inspection: InitialInspectionInfoFields): InitialInspectionFieldsBody;
987
- getPatchTransferBody(inspection: PatchTransferInspectionFields, files: FileBodyRequest[], metersImages: ImageBodyRequest[][], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][], roomsImages: PatchRoomImagesParams[]): {
988
- photo_groups: PatchRoomImagesParams[];
1282
+ getPatchTransferBody(inspection: PatchTransferInspectionFields, files: FileBodyRequest[], metersImages: ImageBodyRequest$1[][], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][], roomsImages?: InspectionRoomPhotoModel[] | null | undefined): {
989
1283
  transfer: {
990
- filling: {
991
- apartment_feature_id: number | undefined;
992
- is_absent: boolean;
993
- id: number | undefined;
994
- feature: number;
995
- description: string | undefined;
996
- serial_code: string | undefined;
997
- amount: string | number | null | undefined;
998
- instruction: FileBodyRequest;
999
- photos: ImageBodyRequest[];
1000
- }[];
1284
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
1285
+ filling_new: kui_crm.InspectionFillingParams[];
1001
1286
  meters: {
1002
- photos: ImageBodyRequest[];
1287
+ photos: ImageBodyRequest$1[];
1003
1288
  values: {
1004
1289
  [key: string]: any;
1005
1290
  };
@@ -1045,6 +1330,8 @@ declare const inspectionsRequestBody: {
1045
1330
  renovation_style?: kui_crm.RenovationStyle | null | undefined;
1046
1331
  id?: number | undefined;
1047
1332
  payer_code?: string | undefined;
1333
+ owner?: kui_crm.LiteUserModel | null | undefined;
1334
+ renter?: kui_crm.LiteUserModel | null | undefined;
1048
1335
  distance_to_center_kilometers?: number | null | undefined;
1049
1336
  has_security?: boolean | null | undefined;
1050
1337
  security_phone?: string | null | undefined;
@@ -1059,8 +1346,6 @@ declare const inspectionsRequestBody: {
1059
1346
  renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
1060
1347
  rental_contracts?: kui_crm.RentalContractModel[] | undefined;
1061
1348
  service_contracts?: kui_crm.ServiceContractModel[] | undefined;
1062
- owner?: kui_crm.LiteUserModel | null | undefined;
1063
- renter?: kui_crm.LiteUserModel | null | undefined;
1064
1349
  owner_id?: number | undefined;
1065
1350
  metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
1066
1351
  rental_status?: kui_crm.RentalStatuses | undefined;
@@ -1102,17 +1387,17 @@ declare const inspectionsRequestBody: {
1102
1387
  tenant_signer: number | null | undefined;
1103
1388
  landlord_signer: number | null | undefined;
1104
1389
  };
1390
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
1105
1391
  dropbox_link: string | undefined;
1106
1392
  signers: {
1107
1393
  tenant: number | null | undefined;
1108
1394
  landlord: number | null | undefined;
1109
1395
  } | undefined;
1110
1396
  };
1111
- getPatchRegularBody(inspection: PatchRegularInspectionFields, roomsImages: PatchRoomImagesParams[], metersImages: ImageBodyRequest[][], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][]): {
1112
- photo_groups: PatchRoomImagesParams[];
1397
+ getPatchRegularBody(inspection: PatchRegularInspectionFields, roomsImages: InspectionRoomPhotoModel[] | null | undefined, metersImages: ImageBodyRequest$1[][], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][]): {
1113
1398
  regular: {
1114
1399
  meters: {
1115
- photos: ImageBodyRequest[];
1400
+ photos: ImageBodyRequest$1[];
1116
1401
  values: {
1117
1402
  [key: string]: any;
1118
1403
  };
@@ -1123,35 +1408,26 @@ declare const inspectionsRequestBody: {
1123
1408
  resource_type: "water" | "electricity" | "gas" | "heating";
1124
1409
  activation_date: string | null;
1125
1410
  }[];
1126
- filling: {
1127
- apartment_feature_id: number | undefined;
1128
- is_absent: boolean;
1129
- id: number | undefined;
1130
- feature: number;
1131
- description: string | undefined;
1132
- serial_code: string | undefined;
1133
- amount: string | number | null | undefined;
1134
- instruction: FileBodyRequest;
1135
- photos: ImageBodyRequest[];
1136
- }[];
1411
+ filling_from_apartment: kui_crm.PostInspectionFillingModel[];
1412
+ filling_new: kui_crm.InspectionFillingParams[];
1137
1413
  };
1414
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
1138
1415
  dropbox_link: string | undefined;
1139
1416
  signers: {
1140
1417
  tenant: number | null | undefined;
1141
1418
  landlord: number | null | undefined;
1142
1419
  } | undefined;
1143
1420
  };
1144
- getPatchInitialBody(inspection: PatchInitialInspectionFields, roomsImages: PatchRoomImagesParams[]): {
1145
- photo_groups: PatchRoomImagesParams[];
1421
+ getPatchInitialBody(inspection: PatchInitialInspectionFields, roomsImages?: InspectionRoomPhotoModel[] | null | undefined): {
1146
1422
  initial: InitialInspectionFieldsBody;
1423
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
1147
1424
  dropbox_link: string | undefined;
1148
1425
  signers: {
1149
1426
  tenant: number | null | undefined;
1150
1427
  landlord: number | null | undefined;
1151
1428
  } | undefined;
1152
1429
  };
1153
- getPatchInventoryBody(inspection: PatchInventoryInspectionFields, fillingList: FillingParams[], metersFiles: FileBodyRequest[], fillingFiles: FileBodyRequest[], resourcesFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][], metersImages: ImageBodyRequest[][], roomsImages: PatchRoomImagesParams[], inventoryAct?: FileBodyRequest | null | undefined): {
1154
- photo_groups: PatchRoomImagesParams[];
1430
+ getPatchInventoryBody(inspection: PatchInventoryInspectionFields, fillingList: FillingParams[], metersFiles: FileBodyRequest[], fillingFiles: FileBodyRequest[], resourcesFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][], metersImages: ImageBodyRequest$1[][], roomsImages: InspectionRoomPhotoModel[] | null | undefined, inventoryAct?: FileBodyRequest | null | undefined): {
1155
1431
  inventory: {
1156
1432
  resources: {
1157
1433
  id: number | undefined;
@@ -1174,7 +1450,7 @@ declare const inspectionsRequestBody: {
1174
1450
  values: {
1175
1451
  [key: string]: any;
1176
1452
  };
1177
- photos: ImageBodyRequest[];
1453
+ photos: ImageBodyRequest$1[];
1178
1454
  auto_sending: boolean | undefined;
1179
1455
  id: number | undefined;
1180
1456
  meter_id: number | undefined;
@@ -1191,7 +1467,7 @@ declare const inspectionsRequestBody: {
1191
1467
  amount: string | number | null | undefined;
1192
1468
  is_absent: boolean;
1193
1469
  instruction: FileBodyRequest;
1194
- photos: ImageBodyRequest[];
1470
+ photos: ImageBodyRequest$1[];
1195
1471
  }[];
1196
1472
  administrative_company: number | undefined;
1197
1473
  taxes_type: kui_crm.TaxesTypes | null;
@@ -1232,6 +1508,8 @@ declare const inspectionsRequestBody: {
1232
1508
  renovation_type?: kui_crm.RenovationType | null | undefined;
1233
1509
  renovation_style?: kui_crm.RenovationStyle | null | undefined;
1234
1510
  id?: number | undefined;
1511
+ owner?: kui_crm.LiteUserModel | null | undefined;
1512
+ renter?: kui_crm.LiteUserModel | null | undefined;
1235
1513
  distance_to_center_kilometers?: number | null | undefined;
1236
1514
  has_security?: boolean | null | undefined;
1237
1515
  security_phone?: string | null | undefined;
@@ -1246,8 +1524,6 @@ declare const inspectionsRequestBody: {
1246
1524
  renter_payment_status?: kui_crm.RentalPaymentStatuses | undefined;
1247
1525
  rental_contracts?: kui_crm.RentalContractModel[] | undefined;
1248
1526
  service_contracts?: kui_crm.ServiceContractModel[] | undefined;
1249
- owner?: kui_crm.LiteUserModel | null | undefined;
1250
- renter?: kui_crm.LiteUserModel | null | undefined;
1251
1527
  owner_id?: number | undefined;
1252
1528
  metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
1253
1529
  rental_status?: kui_crm.RentalStatuses | undefined;
@@ -1283,20 +1559,21 @@ declare const inspectionsRequestBody: {
1283
1559
  hot_water?: boolean | undefined;
1284
1560
  inspection_document: FileBodyRequest | undefined;
1285
1561
  };
1562
+ photo_groups?: InspectionRoomPhotoModel[] | undefined;
1286
1563
  dropbox_link: string | undefined;
1287
1564
  signers: {
1288
1565
  tenant: number | null | undefined;
1289
1566
  landlord: number | null | undefined;
1290
1567
  } | undefined;
1291
1568
  };
1292
- getInspectionFilling(fillingListWithCheck: InspectionFillingItemFields[], fillingList: InspectionFillingFormParams[], fillingFiles: FileBodyRequest[]): PostInspectionFillingListModel;
1569
+ getInspectionFilling(fillingList: GroupedFillingParams | FillingFullParams[], fillingListWithCheck: InspectionFillingItemFields[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][]): PostInspectionFillingListModel;
1293
1570
  getPartialInspectionMeters(meters: PartialMeterInfoFields[]): {
1294
1571
  meters: {
1295
1572
  meter_id: number;
1296
1573
  resource_type: kui_crm.ResourceTypes;
1297
1574
  meter_type: kui_crm.MeterTypes | undefined;
1298
1575
  passport_number: string;
1299
- photos: ImageBodyRequest[];
1576
+ photos: ImageBodyRequest$1[];
1300
1577
  values: {
1301
1578
  [key: string]: any;
1302
1579
  };
@@ -1320,7 +1597,7 @@ declare const inspectionsRequestBody: {
1320
1597
  description: string | undefined;
1321
1598
  data_transfer_format: kui_crm.DataTransmissionFormats | undefined;
1322
1599
  };
1323
- getInventoryInspectionResources(resources: InspectionFullResourceParams[], resourcesFiles: FileBodyRequest[], metersFiles: FileBodyRequest[], metersImages?: ImageBodyRequest[][] | undefined): {
1600
+ getInventoryInspectionResources(resources: InspectionFullResourceParams[], resourcesFiles: FileBodyRequest[], metersFiles: FileBodyRequest[], metersImages?: ImageBodyRequest$1[][] | undefined): {
1324
1601
  resources: {
1325
1602
  id: number | undefined;
1326
1603
  company: number | undefined;
@@ -1342,7 +1619,7 @@ declare const inspectionsRequestBody: {
1342
1619
  values: {
1343
1620
  [key: string]: any;
1344
1621
  };
1345
- photos: ImageBodyRequest[];
1622
+ photos: ImageBodyRequest$1[];
1346
1623
  auto_sending: boolean | undefined;
1347
1624
  id: number | undefined;
1348
1625
  meter_id: number | undefined;
@@ -1352,12 +1629,12 @@ declare const inspectionsRequestBody: {
1352
1629
  activation_date: string | null;
1353
1630
  }[];
1354
1631
  };
1355
- getInventoryInspectionMeter(meter: InspectionMeterFields, metersFile: FileBodyRequest, metersImages?: ImageBodyRequest[] | undefined): {
1632
+ getInventoryInspectionMeter(meter: InspectionMeterFields, metersFile: FileBodyRequest, metersImages?: ImageBodyRequest$1[] | undefined): {
1356
1633
  passport: FileBodyRequest;
1357
1634
  values: {
1358
1635
  [key: string]: any;
1359
1636
  };
1360
- photos: ImageBodyRequest[];
1637
+ photos: ImageBodyRequest$1[];
1361
1638
  auto_sending: boolean | undefined;
1362
1639
  id: number | undefined;
1363
1640
  meter_id: number | undefined;
@@ -1366,13 +1643,13 @@ declare const inspectionsRequestBody: {
1366
1643
  resource_type: "water" | "electricity" | "gas" | "heating";
1367
1644
  activation_date: string | null;
1368
1645
  };
1369
- getInventoryInspectionMeters(meters: InspectionMeterFields[], metersFiles: FileBodyRequest[], metersImages?: ImageBodyRequest[][] | undefined): {
1646
+ getInventoryInspectionMeters(meters: InspectionMeterFields[], metersFiles: FileBodyRequest[], metersImages?: ImageBodyRequest$1[][] | undefined): {
1370
1647
  meters: {
1371
1648
  passport: FileBodyRequest;
1372
1649
  values: {
1373
1650
  [key: string]: any;
1374
1651
  };
1375
- photos: ImageBodyRequest[];
1652
+ photos: ImageBodyRequest$1[];
1376
1653
  auto_sending: boolean | undefined;
1377
1654
  id: number | undefined;
1378
1655
  meter_id: number | undefined;
@@ -1419,10 +1696,10 @@ declare const inspectionsRequestBody: {
1419
1696
  getMeterValues(initialValue?: string | number | null | undefined, lastValue?: string | number | null | undefined): {
1420
1697
  [key: string]: any;
1421
1698
  };
1422
- getFilesParams(files: FileStore[]): ImageBodyRequest[];
1423
- getInspectionMetersPatchFields(meters: InspectionMeterFields[], metersImages: ImageBodyRequest[][]): {
1699
+ getFilesParams(files: FileStore[]): ImageBodyRequest$1[];
1700
+ getInspectionMetersPatchFields(meters: InspectionMeterFields[], metersImages: ImageBodyRequest$1[][]): {
1424
1701
  meters: {
1425
- photos: ImageBodyRequest[];
1702
+ photos: ImageBodyRequest$1[];
1426
1703
  values: {
1427
1704
  [key: string]: any;
1428
1705
  };
@@ -1434,7 +1711,7 @@ declare const inspectionsRequestBody: {
1434
1711
  activation_date: string | null;
1435
1712
  }[];
1436
1713
  };
1437
- getInspectionFillingBody(fillingGroups: GroupedFillingParams, fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][]): {
1714
+ getInspectionFillingBody(fillingGroups: GroupedFillingParams | FillingFullParams[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][]): {
1438
1715
  apartment_feature_id: number | undefined;
1439
1716
  is_absent: boolean;
1440
1717
  id: number | undefined;
@@ -1443,10 +1720,10 @@ declare const inspectionsRequestBody: {
1443
1720
  serial_code: string | undefined;
1444
1721
  amount: string | number | null | undefined;
1445
1722
  instruction: FileBodyRequest;
1446
- photos: ImageBodyRequest[];
1723
+ photos: ImageBodyRequest$1[];
1447
1724
  }[];
1448
1725
  getFillingList(groupedFillingList: GroupedFillingParams | FillingFullParams[]): FillingFullParams[];
1449
- getInventoryFillingBody(fillingList: FillingFullParams[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][]): {
1726
+ getInventoryFillingBody(fillingList: FillingFullParams[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest$1[][]): {
1450
1727
  id: number | undefined;
1451
1728
  feature: number;
1452
1729
  description: string | undefined;
@@ -1454,9 +1731,9 @@ declare const inspectionsRequestBody: {
1454
1731
  amount: string | number | null | undefined;
1455
1732
  is_absent: boolean;
1456
1733
  instruction: FileBodyRequest;
1457
- photos: ImageBodyRequest[];
1734
+ photos: ImageBodyRequest$1[];
1458
1735
  }[];
1459
- getFillingBody(filling: FillingFullParams, instruction: FileBodyRequest, photos: ImageBodyRequest[]): {
1736
+ getFillingBody(filling: FillingFullParams, instruction: FileBodyRequest, photos: ImageBodyRequest$1[]): {
1460
1737
  id: number | undefined;
1461
1738
  feature: number;
1462
1739
  description: string | undefined;
@@ -1464,7 +1741,7 @@ declare const inspectionsRequestBody: {
1464
1741
  amount: string | number | null | undefined;
1465
1742
  is_absent: boolean;
1466
1743
  instruction: FileBodyRequest;
1467
- photos: ImageBodyRequest[];
1744
+ photos: ImageBodyRequest$1[];
1468
1745
  };
1469
1746
  getPatchApartmentBody(data: Partial<ApartmentDescriptionFormFields>, apartment?: ApartmentStoreInterface | undefined, withNull?: boolean | undefined): PatchApartmentParams;
1470
1747
  getApartmentMetroStationsBody(data: Partial<ApartmentDescriptionFormFields>): {
@@ -1475,6 +1752,7 @@ declare const inspectionsRequestBody: {
1475
1752
  }[] | undefined;
1476
1753
  getInspectionFormFields(inspection: InspectionModel): {
1477
1754
  id: number;
1755
+ apartmentId: number;
1478
1756
  date: DateTime | null;
1479
1757
  basedOn: {
1480
1758
  id: number;
@@ -1487,6 +1765,7 @@ declare const inspectionsRequestBody: {
1487
1765
  tenantSigner: number | undefined;
1488
1766
  landlordSigner: number | undefined;
1489
1767
  roomsImages: {
1768
+ id: number;
1490
1769
  photos: FileStore[];
1491
1770
  videos: FileStore[];
1492
1771
  comment: string | undefined;
@@ -2205,6 +2484,7 @@ declare const useInspectionData: (apartmentStore: ApartmentLiteStoreInterface, r
2205
2484
  declare const ApartmentInspectionsAgent: {
2206
2485
  getAll: (type: InspectionListType, apartmentId: number, limit: number, offset: number, rentalContractId?: number | null | undefined, filter?: string | undefined) => Promise<any>;
2207
2486
  create: (apartmentId: number, data: PostInspectionRequest) => Promise<any>;
2487
+ patch: (apartmentId: number, id: number, data: any) => Promise<any>;
2208
2488
  getPreviousPhotos: (apartmentId: number, type: InspectionRoomPhotoTypes, roomOrder?: number | undefined) => Promise<any>;
2209
2489
  getLastNotSent: (apartmentId: number) => Promise<any>;
2210
2490
  };