kui-crm_actions 0.0.143 → 0.0.145

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, InspectionRoomPhotoTypes, ParkingTypes as ParkingTypes$1, CityParams, ApartmentMetroStationsParams, RoomTypes, RenovationParams, RoomParams, HouseTypes as HouseTypes$1, WallMaterials as WallMaterials$1, OverlapTypes as OverlapTypes$1, GasTypes as GasTypes$1, ImageStore, ApartmentDescriptionParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields as ApartmentDetailInfoModelFields$1, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams as ApartmentMetroParams$1, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, InspectionFeedbackParams, FillingTypes, FillingListItemModel, GeolocationParams } from 'kui-crm';
2
+ import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes as ParkingTypes$1, CityParams, ApartmentMetroStationsParams, RoomTypes, RenovationParams, RoomParams, HouseTypes as HouseTypes$1, WallMaterials as WallMaterials$1, OverlapTypes as OverlapTypes$1, GasTypes as GasTypes$1, ImageStore, ApartmentDescriptionParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields as ApartmentDetailInfoModelFields$1, FillingTypes, FillingListItemModel, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams as ApartmentMetroParams$1, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, BasicMeterFieldsSettings, InputByTypeProps, BasicMeterFeaturesFormFields, InspectionFeedbackParams, GeolocationParams } from 'kui-crm';
3
3
  import { DateTime } from 'luxon';
4
4
  import { Loader, MultistepForm, PhoneParams as PhoneParams$1 } from 'kui-utils';
5
5
  import * as yup from 'yup';
@@ -279,7 +279,7 @@ type MetersInfoStepFields = {
279
279
  }
280
280
 
281
281
  type FillingInfoFormFields = {
282
- tag: FillingTagsAutocompleteFields
282
+ tag: FillingTagsAutocompleteFields | null
283
283
  serialNumber?: string
284
284
  numberOfSubjects?: string | number | null
285
285
  name?: string
@@ -440,7 +440,7 @@ declare type InventoryMeterModel = {
440
440
  no_tariff?: boolean;
441
441
  auto_sending?: boolean;
442
442
  } & InspectionMeterCommonFields;
443
- declare type InspectionFillingParams = {
443
+ declare type InspectionFillingParams$1 = {
444
444
  feature: number;
445
445
  description?: string;
446
446
  serial_code?: string;
@@ -483,7 +483,7 @@ declare type InventoryInspectionFieldsBody = {
483
483
  administrative_company: number | null;
484
484
  tax_type: TaxesTypes | null;
485
485
  meters: InventoryMeterModel[];
486
- filling: InspectionFillingParams[];
486
+ filling: InspectionFillingParams$1[];
487
487
  allowed_children: boolean;
488
488
  allowed_pets: boolean;
489
489
  additional_terms: string;
@@ -594,6 +594,45 @@ declare const inspectionsRequestBody: {
594
594
  getFilesParams(files: FileStore[]): ImageBodyRequest[];
595
595
  };
596
596
 
597
+ declare class FillingListStore {
598
+ fillingList: FillingCheckParams[];
599
+ loader: Loader;
600
+ constructor();
601
+ fetchFillingList: (apartmentId: number, fillingType?: FillingTypes | undefined) => Promise<void>;
602
+ updateFillingList: (fillingList: FillingListItemModel[]) => void;
603
+ }
604
+
605
+ declare type InspectionsLiteStoreInterface = {
606
+ creationForm: MultistepForm<any>;
607
+ actionLoader: Loader;
608
+ indexDB: any;
609
+ canUpdateDB: boolean;
610
+ canLoadDB: boolean;
611
+ setCanLoadDB: (value: boolean) => void;
612
+ setCanUpdateDB: (value: boolean) => void;
613
+ setIndexDB: (db: any) => void;
614
+ };
615
+ declare type ApartmentLiteStoreInterface = {
616
+ metersStore: ApartmentMetersStoreInterface;
617
+ fillingStore: FillingListStore;
618
+ inspectionsStore: InspectionsLiteStoreInterface;
619
+ apartmentId?: number | null;
620
+ };
621
+ declare type InspectionIndexDBConstants = {
622
+ dbCreationTime: string;
623
+ formFieldsName: string;
624
+ formStateName: string;
625
+ inspectionCreationFormName: string;
626
+ };
627
+ declare type InspectionFieldsIndexDBConstants = {
628
+ formFieldsName: string;
629
+ formStateName: string;
630
+ };
631
+ declare type InspectionFillingParams = {
632
+ id: number;
633
+ images: ImageStore[];
634
+ } & FillingInfoFormFields$1;
635
+
597
636
  declare const apartmentFields: {
598
637
  getApartmentDescriptionInfo(apartment: ApartmentModel): ApartmentPartialDescriptionParams;
599
638
  getApartmentMainInfo(apartment: MainObjectInfoInterface): ApartmentMainInfoParams;
@@ -607,21 +646,7 @@ declare const apartmentFields: {
607
646
  lng: number;
608
647
  } | null;
609
648
  getObjectRoomsImages(images: InspectionRoomPhotoModel[]): RoomImagesParams[];
610
- getInspectionFillingParams(filling: InspectionFillingModel, withChecking?: boolean | undefined): {
611
- check?: boolean | undefined;
612
- wasMissing?: boolean | undefined;
613
- id: number;
614
- name: string;
615
- tag: {
616
- id: number;
617
- name: string;
618
- };
619
- images: ImageStore[];
620
- serialNumber: string;
621
- numberOfSubjects: number;
622
- instruction: FileStore | null;
623
- type: ApartmentFillingVariants;
624
- };
649
+ getInspectionFillingParams(filling: InspectionFillingModel, withChecking?: boolean | undefined): InspectionFillingParams;
625
650
  getApartmentDescriptionWithMetro(apartment: ApartmentModel): ApartmentDescriptionWithMetro;
626
651
  getMetroStationsParams(metroStations?: ApartmentMetroParams$1[] | undefined): {
627
652
  id: number;
@@ -1016,14 +1041,6 @@ declare const _default: (props: InspectionFeedbackProps) => JSX.Element | null;
1016
1041
 
1017
1042
  declare const useMetersValues: (formStore: MultistepForm<any>, metersStore: ApartmentMetersStoreInterface, shouldBeLoad?: boolean | undefined, onLoad?: (() => void) | undefined) => void;
1018
1043
 
1019
- declare class FillingListStore {
1020
- fillingList: FillingCheckParams[];
1021
- loader: Loader;
1022
- constructor();
1023
- fetchFillingList: (apartmentId: number, fillingType?: FillingTypes | undefined) => Promise<void>;
1024
- updateFillingList: (fillingList: FillingListItemModel[]) => void;
1025
- }
1026
-
1027
1044
  declare const useFillingList: (apartmentId: number | null, formStore: MultistepForm<any>, fillingStore: FillingListStore, shouldBeLoad?: boolean | undefined, onLoad?: (() => void) | undefined) => void;
1028
1045
 
1029
1046
  type AddedMetersBlockProps = {
@@ -1035,33 +1052,6 @@ type AddedMetersBlockProps = {
1035
1052
 
1036
1053
  declare const AddedMetersBlock: (props: AddedMetersBlockProps) => JSX.Element | null;
1037
1054
 
1038
- declare type InspectionsLiteStoreInterface = {
1039
- creationForm: MultistepForm<any>;
1040
- actionLoader: Loader;
1041
- indexDB: any;
1042
- canUpdateDB: boolean;
1043
- canLoadDB: boolean;
1044
- setCanLoadDB: (value: boolean) => void;
1045
- setCanUpdateDB: (value: boolean) => void;
1046
- setIndexDB: (db: any) => void;
1047
- };
1048
- declare type ApartmentLiteStoreInterface = {
1049
- metersStore: ApartmentMetersStoreInterface;
1050
- fillingStore: FillingListStore;
1051
- inspectionsStore: InspectionsLiteStoreInterface;
1052
- apartmentId?: number | null;
1053
- };
1054
- declare type InspectionIndexDBConstants = {
1055
- dbCreationTime: string;
1056
- formFieldsName: string;
1057
- formStateName: string;
1058
- inspectionCreationFormName: string;
1059
- };
1060
- declare type InspectionFieldsIndexDBConstants = {
1061
- formFieldsName: string;
1062
- formStateName: string;
1063
- };
1064
-
1065
1055
  declare const onInspectionModalOpen: (apartmentStore: ApartmentLiteStoreInterface, constants: InspectionFieldsIndexDBConstants, openModal?: (() => void) | undefined) => void;
1066
1056
  declare const onInspectionModalClose: (apartmentStore: ApartmentLiteStoreInterface, constants: InspectionFieldsIndexDBConstants, closeModal?: (() => void) | undefined) => void;
1067
1057
 
@@ -1147,4 +1137,4 @@ type ApartmentPointProps = {
1147
1137
 
1148
1138
  declare const ObjectForMapPoint: (props: ApartmentPointProps) => JSX.Element;
1149
1139
 
1150
- export { AddedMetersBlock, AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentLinkParams, ApartmentPaymentsFormFields, AvailableResourcesStepFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingInfoStepFields, FillingListInfoStepFields, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepFields, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InitialInspectionRoomParams, InspectionAppraisalLiteModel, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InspectionTypesResponse, 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, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, UsedResourcesModel, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getAvailableResourcesFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getInventoryMeterFields, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, onInspectionModalClose, onInspectionModalOpen, renderMetersSteps, useFillingList, useInspectionData, useInspectionIndexDB, useMetersValues };
1140
+ export { AddedMetersBlock, AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, ApartmentLinkParams, ApartmentPaymentsFormFields, AvailableResourcesParams, AvailableResourcesStepFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields, FillingInfoStepFields, FillingListInfoStepFields, FillingListStore, HouseInfoFieldsSchema, HouseInfoStepFields, HouseInfoStepSchema, HouseServicesInfoFieldsSchema, HouseServicesInfoStepFields, HouseServicesInfoStepSchema, InitialInspectionFieldsBody, InitialInspectionFormFields, InitialInspectionInfoFields, InitialInspectionPostBody, InitialInspectionRoomParams, InspectionAppraisalLiteModel, _default as InspectionFeedback, InspectionFieldsSettings, InspectionFillingCard, InspectionFillingCardProps, InspectionFillingItemFields, InspectionFillingListFields, InspectionFillingParams$1 as InspectionFillingParams, InspectionImpairmentLiteModel, InspectionMeterCommonFields, InspectionMeterFields, InspectionMeterValueModel, InspectionMetersStepFields, InspectionPartialMetersStepFields, InspectionRoomImagesParams, InspectionRoomPhotoRequest, InspectionRoomsImagesFields, InspectionTypesResponse, 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, SecurityApartmentInfoFieldsSchema, SecurityApartmentInfoStepFields, SecurityApartmentInfoStepSchema, TelecommunicationsInfoFieldsSchema, TelecommunicationsInfoStepFields, TelecommunicationsInfoStepSchema, TenantParams, TransferInspectionFieldsBody, TransferInspectionFormFields, TransferInspectionPostBody, TransferInspectionTypes, UsedResourcesModel, WaterMeterFieldsSchema, apartmentFields, getAdditionalInfoStepFields, getAvailableResourcesFields, getBasicApartmentInfoFields, getDetailApartmentInfoFields, getFillingInfoFields, getHouseInfoStep, getHouseServicesInfoStep, getInventoryMeterFields, getMetersInfoStepFields, getPartialMeterInfoSchema, getRoomsApartmentInfoFields, getRoomsImagesSteps, getSecurityApartmentInfoFields, getTelecommunicationsInfoStepFields, getWaterMeterFields, inspectionsRequestBody, inspectionsRequests, onInspectionModalClose, onInspectionModalOpen, renderMetersSteps, useFillingList, useInspectionData, useInspectionIndexDB, useMetersValues };