kui-crm_actions 0.0.208 → 0.0.209

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,9 +1,10 @@
1
1
  import * as kui_crm from 'kui-crm';
2
- import { InputParams as InputParams$1, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionBasedOnParams, InspectionTypes, InspectionRoomPhotoTypes, RoomParams, ParkingTypes, CityParams, RoomTypes, RenovationParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, ContractLinkModel, ImageBodyRequest, FileBodyRequest, RoomType, 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, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps as InputByTypeProps$1, BasicMeterFeaturesFormFields, InspectionFeedbackParams, GeolocationParams } from 'kui-crm';
2
+ import { InputParams as InputParams$1, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionBasedOnParams, InspectionTypes, InspectionRoomPhotoTypes, RoomParams, ParkingTypes, CityParams, RoomTypes, RenovationParams, HouseTypes, WallMaterials, OverlapTypes, GasTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, ApartmentDescriptionFormFields, GroupedFillingParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, MetersCountParams, ContractLinkModel, ImageBodyRequest, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, HouseInfoModelFields, PostInspectionFillingListModel, TransferInspectionTypes as TransferInspectionTypes$1, ApartmentDetailInfoModelFields, PatchFileParams, FillingTypes, FillingListItemModel, FillingInfoFormFields as FillingInfoFormFields$1, FillingTagsAutocompleteFields, ApartmentFillingVariants, PatchRoomImagesParams, UploadFileParams, FillingParams, FillingFullParams, PatchApartmentParams, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentWithHouseInfoModelFields, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps as InputByTypeProps$1, 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';
6
6
  import { InputWithAddressFields, InputWithControllerProps } from 'kui-complex';
7
+ import { PhotoCardParams } from 'kui-crm/src/components/PhotoSlider/types';
7
8
  import { UseFormReturn } from 'react-hook-form';
8
9
  import { ReactElement, ReactNode } from 'react';
9
10
  import { GridSize } from 'kui-basic';
@@ -213,6 +214,21 @@ type TransferDocumentsFields = {
213
214
  scTerminationAgreement?: InputFileWithVisibilityFields | null
214
215
  }
215
216
 
217
+ type ApartmentPaymentsFormFields = {
218
+ payerCode: string
219
+ communalServicesAccount: string
220
+ company: CompanyAutocompleteFields | null
221
+ countryOfResidence: CountryAutocompleteFields | null
222
+ taxesType: TaxesTypes | null
223
+ }
224
+
225
+ type AdditionalInfoStepFields = {
226
+ withPets: boolean
227
+ withChildren: boolean
228
+ withSmoking: boolean
229
+ additionalTerms: string
230
+ } & ApartmentPaymentsFormFields
231
+
216
232
  type TransferInspectionTypes =
217
233
  | "maroom_tenant"
218
234
  | "tenant_maroom"
@@ -266,6 +282,62 @@ type FillingCheckParams = {
266
282
  wasMissing?: boolean
267
283
  }
268
284
 
285
+ type CommonInspectionFields$1 = {
286
+ dropboxLink: string
287
+ }
288
+
289
+ type InspectionRoomFields = {
290
+ id?: number
291
+ type: InspectionRoomPhotoTypes
292
+ images: PhotoCardParams[]
293
+ comment?: string
294
+ roomNumber?: number
295
+ isLoading: boolean
296
+ }
297
+
298
+ type InspectionRoomsPhotoFields = {
299
+ roomsImages: InspectionRoomFields[]
300
+ }
301
+
302
+ type ApartmentMetersFormFields = {
303
+ meters: InspectionMeterFields[]
304
+ }
305
+
306
+ type InspectionFullFillingListFields = {
307
+ fillingList: GroupedFillingParams
308
+ }
309
+
310
+ type PatchInventoryInspectionFields = CommonInspectionFields$1 &
311
+ ApartmentDescriptionFormFields &
312
+ InspectionRoomsPhotoFields &
313
+ ApartmentMetersFormFields &
314
+ ApartmentPaymentsFormFields &
315
+ InspectionFullFillingListFields
316
+
317
+ type PatchTransferInspectionFields = CommonInspectionFields$1 &
318
+ ApartmentDescriptionFormFields &
319
+ InspectionRoomsPhotoFields &
320
+ ApartmentMetersFormFields &
321
+ InspectionFullFillingListFields
322
+
323
+ type PatchRegularInspectionFields = {
324
+ roomsImages: InspectionRoomFields[]
325
+ meters: InspectionMeterFields[]
326
+ fillingList: GroupedFillingParams
327
+ } & Omit<RegularInspectionFormFields, "roomsImages" | "meters" | "fillingList">
328
+
329
+ type PatchInitialInspectionFields = {
330
+ roomsImages: InspectionRoomFields[]
331
+ } & Omit<InitialInspectionFormFields, "roomsImages">
332
+
333
+ type ApartmentStoreInterface = {
334
+ overviewStore: {
335
+ landlord: {
336
+ id: number
337
+ } | null
338
+ }
339
+ }
340
+
269
341
  type HouseServicesInfoStepFields = {
270
342
  hasBarrier: boolean | null
271
343
  barrierPhone: PhoneParams | null
@@ -284,21 +356,6 @@ type TelecommunicationsInfoStepFields = {
284
356
  homePhone: PhoneParams | null
285
357
  }
286
358
 
287
- type ApartmentPaymentsFormFields = {
288
- payerCode: string
289
- communalServicesAccount: string
290
- company: CompanyAutocompleteFields | null
291
- countryOfResidence: CountryAutocompleteFields | null
292
- taxesType: TaxesTypes | null
293
- }
294
-
295
- type AdditionalInfoStepFields = {
296
- withPets: boolean
297
- withChildren: boolean
298
- withSmoking: boolean
299
- additionalTerms: string
300
- } & ApartmentPaymentsFormFields
301
-
302
359
  type MetersInfoStepFields = {
303
360
  maxMeters: MetersCountParams | null
304
361
  }
@@ -468,7 +525,8 @@ declare type InspectionCreationFormStateBody = {
468
525
  };
469
526
  declare type InspectionCreationFormState = {
470
527
  form_state: InspectionCreationFormStateBody | null;
471
- };
528
+ };
529
+ declare type PatchInspectionFileParams = PatchFileParams | FileBodyRequest | null;
472
530
 
473
531
  declare class FillingListStore {
474
532
  fillingList: FillingCheckParams[];
@@ -566,6 +624,267 @@ declare const inspectionsRequests: {
566
624
  }[];
567
625
  };
568
626
 
627
+ declare const patchInspectionsRequests: {
628
+ patchRegularInspection(loader: Loader, data: PatchRegularInspectionFields): Promise<{
629
+ dropbox_link: string | undefined;
630
+ photo_groups: PatchRoomImagesParams[];
631
+ regular: {
632
+ meters: {
633
+ photos: kui_crm.ImageBodyRequest[];
634
+ values: {
635
+ [key: string]: any;
636
+ };
637
+ id: number | undefined;
638
+ meter_type: kui_crm.MeterTypes | undefined;
639
+ passport_number: string;
640
+ resource_type: "water" | "electricity" | "gas" | "heating";
641
+ activation_date: string | null;
642
+ }[];
643
+ filling: {
644
+ id: number | undefined;
645
+ is_absent: boolean;
646
+ }[];
647
+ };
648
+ }>;
649
+ patchInspection(loader: Loader, data: PatchTransferInspectionFields): Promise<{
650
+ dropbox_link: string;
651
+ photo_groups: PatchRoomImagesParams[];
652
+ transfer: {
653
+ filling: {
654
+ id: number | undefined;
655
+ is_absent: boolean;
656
+ }[];
657
+ meters: {
658
+ photos: kui_crm.ImageBodyRequest[];
659
+ values: {
660
+ [key: string]: any;
661
+ };
662
+ id: number | undefined;
663
+ meter_type: kui_crm.MeterTypes | undefined;
664
+ passport_number: string;
665
+ resource_type: "water" | "electricity" | "gas" | "heating";
666
+ activation_date: string | null;
667
+ }[];
668
+ city?: number | undefined;
669
+ locker?: number | undefined;
670
+ address?: string | undefined;
671
+ area?: string | number | null | undefined;
672
+ rooms?: kui_crm.RoomModel[] | undefined;
673
+ country?: kui_crm.CountryModel | undefined;
674
+ region?: kui_crm.CatalogItemModel | undefined;
675
+ county?: kui_crm.CatalogItemModel | undefined;
676
+ district?: kui_crm.CatalogItemModel | undefined;
677
+ geolocation?: kui_crm.LatLonParams | undefined;
678
+ object_name?: string | undefined;
679
+ apartment_number?: string | number | undefined;
680
+ post_index?: string | undefined;
681
+ floor?: number | null | undefined;
682
+ floor_count?: number | undefined;
683
+ room_type?: kui_crm.RoomTypes | null | undefined;
684
+ num_entrance?: string | undefined;
685
+ has_intercom?: boolean | null | undefined;
686
+ intercom_code?: string | undefined;
687
+ has_gate?: boolean | null | undefined;
688
+ gate_code?: string | undefined;
689
+ living_area?: string | number | null | undefined;
690
+ kitchen_area?: string | number | null | undefined;
691
+ rooms_number?: number | null | undefined;
692
+ bedrooms_number?: number | null | undefined;
693
+ bathrooms_number?: number | null | undefined;
694
+ restrooms_number?: number | null | undefined;
695
+ combined_bathrooms_number?: number | null | undefined;
696
+ ceiling_height?: string | number | null | undefined;
697
+ number_of_windows?: number | null | undefined;
698
+ renovation_year?: number | null | undefined;
699
+ renovation_type?: kui_crm.RenovationType | null | undefined;
700
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
701
+ id?: number | undefined;
702
+ locker_number?: string | number | undefined;
703
+ is_imported_from_old_crm?: boolean | undefined;
704
+ renter_payment_status?: kui_crm.PaymentStatuses | undefined;
705
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
706
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
707
+ owner?: kui_crm.LiteUserModel | null | undefined;
708
+ renter?: kui_crm.LiteUserModel | null | undefined;
709
+ owner_id?: number | undefined;
710
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
711
+ rental_status?: kui_crm.RentalStatuses | undefined;
712
+ main_image?: kui_crm.ImageModel | undefined;
713
+ tv_type?: kui_crm.TVTypes | null | undefined;
714
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
715
+ distance_to_center_kilometers?: number | null | undefined;
716
+ сommission_percent?: number | null | undefined;
717
+ folder_number?: string | undefined;
718
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
719
+ administrative_company?: kui_crm.AdministrativeCompanyModel | undefined;
720
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
721
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
722
+ period_status?: kui_crm.PeriodStatus | undefined;
723
+ have_initial_inspection?: boolean | undefined;
724
+ financial_personal_account?: string | undefined;
725
+ max_electricity_counters?: number | null | undefined;
726
+ max_gas_counters?: number | null | undefined;
727
+ max_heating_counters?: number | null | undefined;
728
+ max_water_counters?: number | null | undefined;
729
+ has_barrier?: boolean | null | undefined;
730
+ has_concierge?: boolean | null | undefined;
731
+ has_security?: boolean | null | undefined;
732
+ has_video_surveillance?: boolean | null | undefined;
733
+ barrier_phone?: string | null | undefined;
734
+ concierge_phone?: string | null | undefined;
735
+ security_phone?: string | null | undefined;
736
+ video_surveillance_phone?: string | null | undefined;
737
+ home_phone?: string | null | undefined;
738
+ wifi_name?: string | undefined;
739
+ wifi_password?: string | undefined;
740
+ internet_provider_link?: string | undefined;
741
+ internet_provider_login?: string | undefined;
742
+ internet_provider_password?: string | undefined;
743
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
744
+ parking_number?: string | undefined;
745
+ passenger_elevators_number?: string | number | null | undefined;
746
+ service_elevators_number?: string | number | null | undefined;
747
+ payer_code?: string | undefined;
748
+ building_year?: number | null | undefined;
749
+ type_houses?: kui_crm.HouseTypes | null | undefined;
750
+ serial_number?: string | undefined;
751
+ type_gas?: kui_crm.GasTypes | null | undefined;
752
+ wall_type?: kui_crm.WallMaterials | null | undefined;
753
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
754
+ hot_water?: boolean | undefined;
755
+ };
756
+ }>;
757
+ patchInitialInspection(loader: Loader, data: PatchInitialInspectionFields): Promise<{
758
+ dropbox_link: string | undefined;
759
+ photo_groups: PatchRoomImagesParams[];
760
+ initial: InitialInspectionFieldsBody;
761
+ }>;
762
+ patchInventoryInspection(loader: Loader, data: PatchInventoryInspectionFields): Promise<{
763
+ dropbox_link: string;
764
+ photo_groups: PatchRoomImagesParams[];
765
+ inventory: {
766
+ filling: {
767
+ id: number | undefined;
768
+ instruction: kui_crm.FileBodyRequest;
769
+ photos: kui_crm.ImageBodyRequest[];
770
+ feature: number;
771
+ description: string | undefined;
772
+ serial_code: string | undefined;
773
+ amount: string | number | null | undefined;
774
+ is_absent: boolean;
775
+ }[];
776
+ administrative_company: number | undefined;
777
+ taxes_type: kui_crm.TaxesTypes | null;
778
+ country_of_residence: number | undefined;
779
+ payer_code: string;
780
+ financial_personal_account: string;
781
+ meters: {
782
+ passport: kui_crm.FileBodyRequest;
783
+ values: {
784
+ [key: string]: any;
785
+ };
786
+ photos: kui_crm.ImageBodyRequest[];
787
+ no_tariff: boolean | undefined;
788
+ auto_sending: boolean | undefined;
789
+ id: number | undefined;
790
+ meter_type: kui_crm.MeterTypes | undefined;
791
+ passport_number: string;
792
+ resource_type: "water" | "electricity" | "gas" | "heating";
793
+ activation_date: string | null;
794
+ }[];
795
+ city?: number | undefined;
796
+ locker?: number | undefined;
797
+ address?: string | undefined;
798
+ area?: string | number | null | undefined;
799
+ rooms?: kui_crm.RoomModel[] | undefined;
800
+ country?: kui_crm.CountryModel | undefined;
801
+ region?: kui_crm.CatalogItemModel | undefined;
802
+ county?: kui_crm.CatalogItemModel | undefined;
803
+ district?: kui_crm.CatalogItemModel | undefined;
804
+ geolocation?: kui_crm.LatLonParams | undefined;
805
+ object_name?: string | undefined;
806
+ apartment_number?: string | number | undefined;
807
+ post_index?: string | undefined;
808
+ floor?: number | null | undefined;
809
+ floor_count?: number | undefined;
810
+ room_type?: kui_crm.RoomTypes | null | undefined;
811
+ num_entrance?: string | undefined;
812
+ has_intercom?: boolean | null | undefined;
813
+ intercom_code?: string | undefined;
814
+ has_gate?: boolean | null | undefined;
815
+ gate_code?: string | undefined;
816
+ living_area?: string | number | null | undefined;
817
+ kitchen_area?: string | number | null | undefined;
818
+ rooms_number?: number | null | undefined;
819
+ bedrooms_number?: number | null | undefined;
820
+ bathrooms_number?: number | null | undefined;
821
+ restrooms_number?: number | null | undefined;
822
+ combined_bathrooms_number?: number | null | undefined;
823
+ ceiling_height?: string | number | null | undefined;
824
+ number_of_windows?: number | null | undefined;
825
+ renovation_year?: number | null | undefined;
826
+ renovation_type?: kui_crm.RenovationType | null | undefined;
827
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
828
+ id?: number | undefined;
829
+ locker_number?: string | number | undefined;
830
+ is_imported_from_old_crm?: boolean | undefined;
831
+ renter_payment_status?: kui_crm.PaymentStatuses | undefined;
832
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
833
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
834
+ owner?: kui_crm.LiteUserModel | null | undefined;
835
+ renter?: kui_crm.LiteUserModel | null | undefined;
836
+ owner_id?: number | undefined;
837
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
838
+ rental_status?: kui_crm.RentalStatuses | undefined;
839
+ main_image?: kui_crm.ImageModel | undefined;
840
+ tv_type?: kui_crm.TVTypes | null | undefined;
841
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
842
+ distance_to_center_kilometers?: number | null | undefined;
843
+ сommission_percent?: number | null | undefined;
844
+ folder_number?: string | undefined;
845
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
846
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
847
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
848
+ period_status?: kui_crm.PeriodStatus | undefined;
849
+ have_initial_inspection?: boolean | undefined;
850
+ max_electricity_counters?: number | null | undefined;
851
+ max_gas_counters?: number | null | undefined;
852
+ max_heating_counters?: number | null | undefined;
853
+ max_water_counters?: number | null | undefined;
854
+ has_barrier?: boolean | null | undefined;
855
+ has_concierge?: boolean | null | undefined;
856
+ has_security?: boolean | null | undefined;
857
+ has_video_surveillance?: boolean | null | undefined;
858
+ barrier_phone?: string | null | undefined;
859
+ concierge_phone?: string | null | undefined;
860
+ security_phone?: string | null | undefined;
861
+ video_surveillance_phone?: string | null | undefined;
862
+ home_phone?: string | null | undefined;
863
+ wifi_name?: string | undefined;
864
+ wifi_password?: string | undefined;
865
+ internet_provider_link?: string | undefined;
866
+ internet_provider_login?: string | undefined;
867
+ internet_provider_password?: string | undefined;
868
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
869
+ parking_number?: string | undefined;
870
+ passenger_elevators_number?: string | number | null | undefined;
871
+ service_elevators_number?: string | number | null | undefined;
872
+ building_year?: number | null | undefined;
873
+ type_houses?: kui_crm.HouseTypes | null | undefined;
874
+ serial_number?: string | undefined;
875
+ type_gas?: kui_crm.GasTypes | null | undefined;
876
+ wall_type?: kui_crm.WallMaterials | null | undefined;
877
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
878
+ hot_water?: boolean | undefined;
879
+ };
880
+ }>;
881
+ actualizeFiles(loader: Loader, files: InputFileWithVisibilityFields[]): Promise<PatchInspectionFileParams[]>;
882
+ actualizeImages(loader: Loader, imagesBlock: (PhotoCardParams | UploadFileParams | ImageStore)[][]): Promise<(kui_crm.ImageBodyRequest | {
883
+ id: number;
884
+ })[][]>;
885
+ actualizeRoomsImages(loader: Loader, rooms: InspectionRoomFields[]): Promise<PatchRoomImagesParams[]>;
886
+ };
887
+
569
888
  declare const inspectionsRequestBody: {
570
889
  getPostBodyInitialInspection(inspection: InitialInspectionFormFields, roomsImages: InspectionRoomPhotoRequest[]): InitialInspectionPostBody;
571
890
  getInitialInspectionFields(inspection: InitialInspectionInfoFields): InitialInspectionFieldsBody;
@@ -643,6 +962,294 @@ declare const inspectionsRequestBody: {
643
962
  [key: string]: any;
644
963
  };
645
964
  getFilesParams(files: FileStore[]): ImageBodyRequest[];
965
+ getPatchRegularBody(inspection: PatchRegularInspectionFields, roomsImages: PatchRoomImagesParams[], metersImages: ImageBodyRequest[][]): {
966
+ dropbox_link: string | undefined;
967
+ photo_groups: PatchRoomImagesParams[];
968
+ regular: {
969
+ meters: {
970
+ photos: ImageBodyRequest[];
971
+ values: {
972
+ [key: string]: any;
973
+ };
974
+ id: number | undefined;
975
+ meter_type: kui_crm.MeterTypes | undefined;
976
+ passport_number: string;
977
+ resource_type: "water" | "electricity" | "gas" | "heating";
978
+ activation_date: string | null;
979
+ }[];
980
+ filling: {
981
+ id: number | undefined;
982
+ is_absent: boolean;
983
+ }[];
984
+ };
985
+ };
986
+ getPatchInitialBody(inspection: PatchInitialInspectionFields, roomsImages: PatchRoomImagesParams[]): {
987
+ dropbox_link: string | undefined;
988
+ photo_groups: PatchRoomImagesParams[];
989
+ initial: InitialInspectionFieldsBody;
990
+ };
991
+ getPatchInventoryBody(inspection: PatchInventoryInspectionFields, fillingList: FillingParams[], metersFiles: FileBodyRequest[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][], metersImages: ImageBodyRequest[][], roomsImages: PatchRoomImagesParams[]): {
992
+ dropbox_link: string;
993
+ photo_groups: PatchRoomImagesParams[];
994
+ inventory: {
995
+ filling: {
996
+ id: number | undefined;
997
+ instruction: FileBodyRequest;
998
+ photos: ImageBodyRequest[];
999
+ feature: number;
1000
+ description: string | undefined;
1001
+ serial_code: string | undefined;
1002
+ amount: string | number | null | undefined;
1003
+ is_absent: boolean;
1004
+ }[];
1005
+ administrative_company: number | undefined;
1006
+ taxes_type: kui_crm.TaxesTypes | null;
1007
+ country_of_residence: number | undefined;
1008
+ payer_code: string;
1009
+ financial_personal_account: string;
1010
+ meters: {
1011
+ passport: FileBodyRequest;
1012
+ values: {
1013
+ [key: string]: any;
1014
+ };
1015
+ photos: ImageBodyRequest[];
1016
+ no_tariff: boolean | undefined;
1017
+ auto_sending: boolean | undefined;
1018
+ id: number | undefined;
1019
+ meter_type: kui_crm.MeterTypes | undefined;
1020
+ passport_number: string;
1021
+ resource_type: "water" | "electricity" | "gas" | "heating";
1022
+ activation_date: string | null;
1023
+ }[];
1024
+ city?: number | undefined;
1025
+ locker?: number | undefined;
1026
+ address?: string | undefined;
1027
+ area?: string | number | null | undefined;
1028
+ rooms?: kui_crm.RoomModel[] | undefined;
1029
+ country?: kui_crm.CountryModel | undefined;
1030
+ region?: kui_crm.CatalogItemModel | undefined;
1031
+ county?: kui_crm.CatalogItemModel | undefined;
1032
+ district?: kui_crm.CatalogItemModel | undefined;
1033
+ geolocation?: kui_crm.LatLonParams | undefined;
1034
+ object_name?: string | undefined;
1035
+ apartment_number?: string | number | undefined;
1036
+ post_index?: string | undefined;
1037
+ floor?: number | null | undefined;
1038
+ floor_count?: number | undefined;
1039
+ room_type?: kui_crm.RoomTypes | null | undefined;
1040
+ num_entrance?: string | undefined;
1041
+ has_intercom?: boolean | null | undefined;
1042
+ intercom_code?: string | undefined;
1043
+ has_gate?: boolean | null | undefined;
1044
+ gate_code?: string | undefined;
1045
+ living_area?: string | number | null | undefined;
1046
+ kitchen_area?: string | number | null | undefined;
1047
+ rooms_number?: number | null | undefined;
1048
+ bedrooms_number?: number | null | undefined;
1049
+ bathrooms_number?: number | null | undefined;
1050
+ restrooms_number?: number | null | undefined;
1051
+ combined_bathrooms_number?: number | null | undefined;
1052
+ ceiling_height?: string | number | null | undefined;
1053
+ number_of_windows?: number | null | undefined;
1054
+ renovation_year?: number | null | undefined;
1055
+ renovation_type?: kui_crm.RenovationType | null | undefined;
1056
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
1057
+ id?: number | undefined;
1058
+ locker_number?: string | number | undefined;
1059
+ is_imported_from_old_crm?: boolean | undefined;
1060
+ renter_payment_status?: kui_crm.PaymentStatuses | undefined;
1061
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
1062
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
1063
+ owner?: kui_crm.LiteUserModel | null | undefined;
1064
+ renter?: kui_crm.LiteUserModel | null | undefined;
1065
+ owner_id?: number | undefined;
1066
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
1067
+ rental_status?: kui_crm.RentalStatuses | undefined;
1068
+ main_image?: kui_crm.ImageModel | undefined;
1069
+ tv_type?: kui_crm.TVTypes | null | undefined;
1070
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
1071
+ distance_to_center_kilometers?: number | null | undefined;
1072
+ сommission_percent?: number | null | undefined;
1073
+ folder_number?: string | undefined;
1074
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
1075
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
1076
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
1077
+ period_status?: kui_crm.PeriodStatus | undefined;
1078
+ have_initial_inspection?: boolean | undefined;
1079
+ max_electricity_counters?: number | null | undefined;
1080
+ max_gas_counters?: number | null | undefined;
1081
+ max_heating_counters?: number | null | undefined;
1082
+ max_water_counters?: number | null | undefined;
1083
+ has_barrier?: boolean | null | undefined;
1084
+ has_concierge?: boolean | null | undefined;
1085
+ has_security?: boolean | null | undefined;
1086
+ has_video_surveillance?: boolean | null | undefined;
1087
+ barrier_phone?: string | null | undefined;
1088
+ concierge_phone?: string | null | undefined;
1089
+ security_phone?: string | null | undefined;
1090
+ video_surveillance_phone?: string | null | undefined;
1091
+ home_phone?: string | null | undefined;
1092
+ wifi_name?: string | undefined;
1093
+ wifi_password?: string | undefined;
1094
+ internet_provider_link?: string | undefined;
1095
+ internet_provider_login?: string | undefined;
1096
+ internet_provider_password?: string | undefined;
1097
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
1098
+ parking_number?: string | undefined;
1099
+ passenger_elevators_number?: string | number | null | undefined;
1100
+ service_elevators_number?: string | number | null | undefined;
1101
+ building_year?: number | null | undefined;
1102
+ type_houses?: kui_crm.HouseTypes | null | undefined;
1103
+ serial_number?: string | undefined;
1104
+ type_gas?: kui_crm.GasTypes | null | undefined;
1105
+ wall_type?: kui_crm.WallMaterials | null | undefined;
1106
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
1107
+ hot_water?: boolean | undefined;
1108
+ };
1109
+ };
1110
+ getPatchTransferBody(inspection: PatchTransferInspectionFields, metersImages: ImageBodyRequest[][], roomsImages: PatchRoomImagesParams[]): {
1111
+ dropbox_link: string;
1112
+ photo_groups: PatchRoomImagesParams[];
1113
+ transfer: {
1114
+ filling: {
1115
+ id: number | undefined;
1116
+ is_absent: boolean;
1117
+ }[];
1118
+ meters: {
1119
+ photos: ImageBodyRequest[];
1120
+ values: {
1121
+ [key: string]: any;
1122
+ };
1123
+ id: number | undefined;
1124
+ meter_type: kui_crm.MeterTypes | undefined;
1125
+ passport_number: string;
1126
+ resource_type: "water" | "electricity" | "gas" | "heating";
1127
+ activation_date: string | null;
1128
+ }[];
1129
+ city?: number | undefined;
1130
+ locker?: number | undefined;
1131
+ address?: string | undefined;
1132
+ area?: string | number | null | undefined;
1133
+ rooms?: kui_crm.RoomModel[] | undefined;
1134
+ country?: kui_crm.CountryModel | undefined;
1135
+ region?: kui_crm.CatalogItemModel | undefined;
1136
+ county?: kui_crm.CatalogItemModel | undefined;
1137
+ district?: kui_crm.CatalogItemModel | undefined;
1138
+ geolocation?: kui_crm.LatLonParams | undefined;
1139
+ object_name?: string | undefined;
1140
+ apartment_number?: string | number | undefined;
1141
+ post_index?: string | undefined;
1142
+ floor?: number | null | undefined;
1143
+ floor_count?: number | undefined;
1144
+ room_type?: kui_crm.RoomTypes | null | undefined;
1145
+ num_entrance?: string | undefined;
1146
+ has_intercom?: boolean | null | undefined;
1147
+ intercom_code?: string | undefined;
1148
+ has_gate?: boolean | null | undefined;
1149
+ gate_code?: string | undefined;
1150
+ living_area?: string | number | null | undefined;
1151
+ kitchen_area?: string | number | null | undefined;
1152
+ rooms_number?: number | null | undefined;
1153
+ bedrooms_number?: number | null | undefined;
1154
+ bathrooms_number?: number | null | undefined;
1155
+ restrooms_number?: number | null | undefined;
1156
+ combined_bathrooms_number?: number | null | undefined;
1157
+ ceiling_height?: string | number | null | undefined;
1158
+ number_of_windows?: number | null | undefined;
1159
+ renovation_year?: number | null | undefined;
1160
+ renovation_type?: kui_crm.RenovationType | null | undefined;
1161
+ renovation_style?: kui_crm.RenovationStyle | null | undefined;
1162
+ id?: number | undefined;
1163
+ locker_number?: string | number | undefined;
1164
+ is_imported_from_old_crm?: boolean | undefined;
1165
+ renter_payment_status?: kui_crm.PaymentStatuses | undefined;
1166
+ rental_contracts?: kui_crm.RentalContractModel[] | undefined;
1167
+ service_contracts?: kui_crm.ServiceContractModel[] | undefined;
1168
+ owner?: kui_crm.LiteUserModel | null | undefined;
1169
+ renter?: kui_crm.LiteUserModel | null | undefined;
1170
+ owner_id?: number | undefined;
1171
+ metro_stations?: kui_crm.ApartmentMetroParams[] | undefined;
1172
+ rental_status?: kui_crm.RentalStatuses | undefined;
1173
+ main_image?: kui_crm.ImageModel | undefined;
1174
+ tv_type?: kui_crm.TVTypes | null | undefined;
1175
+ inspection?: kui_crm.ApartmentInspectionModel | undefined;
1176
+ distance_to_center_kilometers?: number | null | undefined;
1177
+ сommission_percent?: number | null | undefined;
1178
+ folder_number?: string | undefined;
1179
+ operating_accounts?: kui_crm.ApartmentMeterAccounts | undefined;
1180
+ administrative_company?: kui_crm.AdministrativeCompanyModel | undefined;
1181
+ proxy_document?: kui_crm.ApartmentDocumentModel | undefined;
1182
+ insurance_document?: kui_crm.ApartmentDocumentModel | undefined;
1183
+ period_status?: kui_crm.PeriodStatus | undefined;
1184
+ have_initial_inspection?: boolean | undefined;
1185
+ financial_personal_account?: string | undefined;
1186
+ max_electricity_counters?: number | null | undefined;
1187
+ max_gas_counters?: number | null | undefined;
1188
+ max_heating_counters?: number | null | undefined;
1189
+ max_water_counters?: number | null | undefined;
1190
+ has_barrier?: boolean | null | undefined;
1191
+ has_concierge?: boolean | null | undefined;
1192
+ has_security?: boolean | null | undefined;
1193
+ has_video_surveillance?: boolean | null | undefined;
1194
+ barrier_phone?: string | null | undefined;
1195
+ concierge_phone?: string | null | undefined;
1196
+ security_phone?: string | null | undefined;
1197
+ video_surveillance_phone?: string | null | undefined;
1198
+ home_phone?: string | null | undefined;
1199
+ wifi_name?: string | undefined;
1200
+ wifi_password?: string | undefined;
1201
+ internet_provider_link?: string | undefined;
1202
+ internet_provider_login?: string | undefined;
1203
+ internet_provider_password?: string | undefined;
1204
+ parking_type?: kui_crm.ParkingTypes | null | undefined;
1205
+ parking_number?: string | undefined;
1206
+ passenger_elevators_number?: string | number | null | undefined;
1207
+ service_elevators_number?: string | number | null | undefined;
1208
+ payer_code?: string | undefined;
1209
+ building_year?: number | null | undefined;
1210
+ type_houses?: kui_crm.HouseTypes | null | undefined;
1211
+ serial_number?: string | undefined;
1212
+ type_gas?: kui_crm.GasTypes | null | undefined;
1213
+ wall_type?: kui_crm.WallMaterials | null | undefined;
1214
+ overlap_type?: kui_crm.OverlapTypes | null | undefined;
1215
+ hot_water?: boolean | undefined;
1216
+ };
1217
+ };
1218
+ getInspectionMetersPatchFields(meters: InspectionMeterFields[], metersImages: ImageBodyRequest[][]): {
1219
+ meters: {
1220
+ photos: ImageBodyRequest[];
1221
+ values: {
1222
+ [key: string]: any;
1223
+ };
1224
+ id: number | undefined;
1225
+ meter_type: kui_crm.MeterTypes | undefined;
1226
+ passport_number: string;
1227
+ resource_type: "water" | "electricity" | "gas" | "heating";
1228
+ activation_date: string | null;
1229
+ }[];
1230
+ };
1231
+ getInspectionFillingBody(fillingGroups: GroupedFillingParams): {
1232
+ id: number | undefined;
1233
+ is_absent: boolean;
1234
+ }[];
1235
+ getFillingList(groupedFillingList: GroupedFillingParams): FillingFullParams[];
1236
+ getInventoryFillingBody(fillingList: FillingFullParams[], fillingFiles: FileBodyRequest[], fillingImages: ImageBodyRequest[][]): {
1237
+ id: number | undefined;
1238
+ instruction: FileBodyRequest;
1239
+ photos: ImageBodyRequest[];
1240
+ feature: number;
1241
+ description: string | undefined;
1242
+ serial_code: string | undefined;
1243
+ amount: string | number | null | undefined;
1244
+ is_absent: boolean;
1245
+ }[];
1246
+ getPatchApartmentBody(data: Partial<ApartmentDescriptionFormFields>, apartment?: ApartmentStoreInterface | undefined, withNull?: boolean | undefined): PatchApartmentParams;
1247
+ getApartmentMetroStationsBody(data: Partial<ApartmentDescriptionFormFields>): {
1248
+ metro_station_id: number | null | undefined;
1249
+ distance_walk_meters: number | null;
1250
+ distance_car_kilometers: number | null;
1251
+ time_car_minutes: number | null;
1252
+ }[] | undefined;
646
1253
  };
647
1254
 
648
1255
  declare const apartmentFields: {
@@ -1214,4 +1821,4 @@ type ApartmentPointProps = {
1214
1821
 
1215
1822
  declare const ObjectForMapPoint: (props: ApartmentPointProps) => JSX.Element;
1216
1823
 
1217
- export { AddedMetersBlock, AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentInspectionsAgent, ApartmentLinkParams, ApartmentPaymentsFormFields, AvailableResourcesParams, AvailableResourcesStepFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingListInfoStepFields, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepFields, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InspectionAppraisalLiteModel, InspectionCreationFormState, InspectionCreationFormStateBody, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InspectionStateStore, InspectionTypesResponse, InventoryDocumentsFields, InventoryInspectionFieldsBody, InventoryInspectionFormFields, InventoryInspectionPostBody, InventoryMeterInfoFields, InventoryMeterModel, MeterInfoStepProps, MeterValueModel, MeterValuesFields, MetersInfoFieldsSchema, MetersInfoStepFields, MetersInfoStepSchema, MetroStationParams, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapParams, ObjectForMapPoint, PartialMeterInfoFields, PartialMeterInfoStepProps, PartialMeterModel, PostApartmentInspectionRequest, RegularInspectionFormFields, RegularInspectionPostBody, RegularlyInspectionFieldsBody, RoomImagesParams, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepFields, RoomsApartmentInfoStepSchema, RoomsInfoFieldsSchema, RoomsInfoStepFields, RoomsInfoStepSchema, RoomsSettings, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferDocumentsFields, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, TransferPostFiles, TransferTypesResponse, UsedResourcesModel, apartmentFields, getAdditionalInfoStepFields, getAvailableResourcesFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getInventoryDocumentsFields, getInventoryDocumentsSchema, getInventoryMeterFields, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getRoomsInfoStepFields, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getTransferDocumentsFields, getTransferDocumentsSchema, getWaterMeterFields, getWaterMeterFieldsSchema, inspectionsRequestBody, inspectionsRequests, renderMetersSteps, useFillingList, useInspectionData, useMetersValues };
1824
+ export { AddedMetersBlock, AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentInspectionsAgent, ApartmentLinkParams, ApartmentPaymentsFormFields, AvailableResourcesParams, AvailableResourcesStepFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingListInfoStepFields, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepFields, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InspectionAppraisalLiteModel, InspectionCreationFormState, InspectionCreationFormStateBody, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InspectionStateStore, InspectionTypesResponse, InventoryDocumentsFields, InventoryInspectionFieldsBody, InventoryInspectionFormFields, InventoryInspectionPostBody, InventoryMeterInfoFields, InventoryMeterModel, MeterInfoStepProps, MeterValueModel, MeterValuesFields, MetersInfoFieldsSchema, MetersInfoStepFields, MetersInfoStepSchema, MetroStationParams, ObjectForMapCard, ObjectForMapOverlay, ObjectForMapParams, ObjectForMapPoint, PartialMeterInfoFields, PartialMeterInfoStepProps, PartialMeterModel, PatchInspectionFileParams, PostApartmentInspectionRequest, RegularInspectionFormFields, RegularInspectionPostBody, RegularlyInspectionFieldsBody, RoomImagesParams, RoomsApartmentInfoFieldsSchema, RoomsApartmentInfoStepFields, RoomsApartmentInfoStepSchema, RoomsInfoFieldsSchema, RoomsInfoStepFields, RoomsInfoStepSchema, RoomsSettings, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferDocumentsFields, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, TransferPostFiles, TransferTypesResponse, UsedResourcesModel, apartmentFields, getAdditionalInfoStepFields, getAvailableResourcesFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getInventoryDocumentsFields, getInventoryDocumentsSchema, getInventoryMeterFields, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getRoomsInfoStepFields, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getTransferDocumentsFields, getTransferDocumentsSchema, getWaterMeterFields, getWaterMeterFieldsSchema, inspectionsRequestBody, inspectionsRequests, patchInspectionsRequests, renderMetersSteps, useFillingList, useInspectionData, useMetersValues };