kui-crm_actions 0.0.144 → 0.0.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js.map +1 -1
- package/index.d.ts +87 -97
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as kui_crm from 'kui-crm';
|
2
|
-
import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes 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,
|
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, ContractLinkModel, ImageBodyRequest, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields as ApartmentDetailInfoModelFields$1, FillingTypes, FillingListItemModel, FillingInfoFormFields as FillingInfoFormFields$1, FillingTagsAutocompleteFields, ApartmentFillingVariants, 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';
|
@@ -278,49 +278,6 @@ type MetersInfoStepFields = {
|
|
278
278
|
maxMeters: MetersCountParams | null
|
279
279
|
}
|
280
280
|
|
281
|
-
type FillingInfoFormFields = {
|
282
|
-
tag: FillingTagsAutocompleteFields
|
283
|
-
serialNumber?: string
|
284
|
-
numberOfSubjects?: string | number | null
|
285
|
-
name?: string
|
286
|
-
description?: string
|
287
|
-
type?: ApartmentFillingVariants
|
288
|
-
instruction?: InputFileWithVisibilityFields
|
289
|
-
tempImages?: ImageBodyRequest[]
|
290
|
-
}
|
291
|
-
|
292
|
-
type FillingInfoStepFields = {
|
293
|
-
images: FileStore[]
|
294
|
-
} & FillingInfoFormFields$1
|
295
|
-
|
296
|
-
type FillingListInfoStepFields = {
|
297
|
-
fillingList: FillingInfoStepFields[]
|
298
|
-
}
|
299
|
-
|
300
|
-
|
301
|
-
type InventoryInspectionFormFields = CommonInspectionFormFields &
|
302
|
-
HouseServicesInfoStepFields &
|
303
|
-
TelecommunicationsInfoStepFields &
|
304
|
-
AdditionalInfoStepFields &
|
305
|
-
MetersInfoStepFields &
|
306
|
-
InspectionMetersStepFields &
|
307
|
-
FillingListInfoStepFields &
|
308
|
-
InspectionRoomsImagesFields
|
309
|
-
|
310
|
-
declare const inspectionsRequests: {
|
311
|
-
getInspectionTypes(apartmentId: number): Promise<InspectionTypes[] | undefined>;
|
312
|
-
createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
|
313
|
-
createInitialInspection(data: InitialInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
314
|
-
createRegularInspection(data: RegularInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
315
|
-
createTransferInspection(data: TransferInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
316
|
-
createInventoryInspection(data: InventoryInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
317
|
-
getRoomParams(rooms: InspectionRoomImagesParams[]): {
|
318
|
-
purpose: kui_crm.InspectionRoomPhotoTypes;
|
319
|
-
comment: string;
|
320
|
-
photos: kui_crm.ImageBodyRequest[];
|
321
|
-
}[];
|
322
|
-
};
|
323
|
-
|
324
281
|
declare type ParkingTypes = "public" | "house" | "underground" | "multi_level";
|
325
282
|
declare type GasTypes = "not_have" | "stove" | "stove_and_heater";
|
326
283
|
declare type WallMaterials = "brick" | "panel" | "wood" | "block" | "stone";
|
@@ -440,7 +397,7 @@ declare type InventoryMeterModel = {
|
|
440
397
|
no_tariff?: boolean;
|
441
398
|
auto_sending?: boolean;
|
442
399
|
} & InspectionMeterCommonFields;
|
443
|
-
declare type InspectionFillingParams = {
|
400
|
+
declare type InspectionFillingParams$1 = {
|
444
401
|
feature: number;
|
445
402
|
description?: string;
|
446
403
|
serial_code?: string;
|
@@ -483,7 +440,7 @@ declare type InventoryInspectionFieldsBody = {
|
|
483
440
|
administrative_company: number | null;
|
484
441
|
tax_type: TaxesTypes | null;
|
485
442
|
meters: InventoryMeterModel[];
|
486
|
-
filling: InspectionFillingParams[];
|
443
|
+
filling: InspectionFillingParams$1[];
|
487
444
|
allowed_children: boolean;
|
488
445
|
allowed_pets: boolean;
|
489
446
|
additional_terms: string;
|
@@ -515,6 +472,88 @@ declare type InspectionTypesResponse = {
|
|
515
472
|
inspection_types: InspectionTypes[];
|
516
473
|
};
|
517
474
|
|
475
|
+
declare class FillingListStore {
|
476
|
+
fillingList: FillingCheckParams[];
|
477
|
+
loader: Loader;
|
478
|
+
constructor();
|
479
|
+
fetchFillingList: (apartmentId: number, fillingType?: FillingTypes | undefined) => Promise<void>;
|
480
|
+
updateFillingList: (fillingList: FillingListItemModel[]) => void;
|
481
|
+
}
|
482
|
+
|
483
|
+
declare type InspectionsLiteStoreInterface = {
|
484
|
+
creationForm: MultistepForm<any>;
|
485
|
+
actionLoader: Loader;
|
486
|
+
indexDB: any;
|
487
|
+
canUpdateDB: boolean;
|
488
|
+
canLoadDB: boolean;
|
489
|
+
setCanLoadDB: (value: boolean) => void;
|
490
|
+
setCanUpdateDB: (value: boolean) => void;
|
491
|
+
setIndexDB: (db: any) => void;
|
492
|
+
};
|
493
|
+
declare type ApartmentLiteStoreInterface = {
|
494
|
+
metersStore: ApartmentMetersStoreInterface;
|
495
|
+
fillingStore: FillingListStore;
|
496
|
+
inspectionsStore: InspectionsLiteStoreInterface;
|
497
|
+
apartmentId?: number | null;
|
498
|
+
};
|
499
|
+
declare type InspectionIndexDBConstants = {
|
500
|
+
dbCreationTime: string;
|
501
|
+
formFieldsName: string;
|
502
|
+
formStateName: string;
|
503
|
+
inspectionCreationFormName: string;
|
504
|
+
};
|
505
|
+
declare type InspectionFieldsIndexDBConstants = {
|
506
|
+
formFieldsName: string;
|
507
|
+
formStateName: string;
|
508
|
+
};
|
509
|
+
declare type InspectionFillingParams = {
|
510
|
+
id: number;
|
511
|
+
images: ImageStore[];
|
512
|
+
} & FillingInfoFormFields$1;
|
513
|
+
|
514
|
+
type FillingInfoFormFields = {
|
515
|
+
tag: FillingTagsAutocompleteFields | null
|
516
|
+
serialNumber?: string
|
517
|
+
numberOfSubjects?: string | number | null
|
518
|
+
name?: string
|
519
|
+
description?: string
|
520
|
+
type?: ApartmentFillingVariants
|
521
|
+
instruction?: InputFileWithVisibilityFields
|
522
|
+
tempImages?: ImageBodyRequest[]
|
523
|
+
}
|
524
|
+
|
525
|
+
type InspectionFillingFormParams = {
|
526
|
+
images: FileStore[]
|
527
|
+
} & Omit<InspectionFillingParams, "images">
|
528
|
+
|
529
|
+
type FillingListInfoStepFields = {
|
530
|
+
fillingList: InspectionFillingFormParams[]
|
531
|
+
}
|
532
|
+
|
533
|
+
|
534
|
+
type InventoryInspectionFormFields = CommonInspectionFormFields &
|
535
|
+
HouseServicesInfoStepFields &
|
536
|
+
TelecommunicationsInfoStepFields &
|
537
|
+
AdditionalInfoStepFields &
|
538
|
+
MetersInfoStepFields &
|
539
|
+
InspectionMetersStepFields &
|
540
|
+
FillingListInfoStepFields &
|
541
|
+
InspectionRoomsImagesFields
|
542
|
+
|
543
|
+
declare const inspectionsRequests: {
|
544
|
+
getInspectionTypes(apartmentId: number): Promise<InspectionTypes[] | undefined>;
|
545
|
+
createInspection(apartmentId: number, body: any, loader: Loader): Promise<number | undefined>;
|
546
|
+
createInitialInspection(data: InitialInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
547
|
+
createRegularInspection(data: RegularInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
548
|
+
createTransferInspection(data: TransferInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
549
|
+
createInventoryInspection(data: InventoryInspectionFormFields, apartmentId: number, loader: Loader): Promise<number | null | undefined>;
|
550
|
+
getRoomParams(rooms: InspectionRoomImagesParams[]): {
|
551
|
+
purpose: kui_crm.InspectionRoomPhotoTypes;
|
552
|
+
comment: string;
|
553
|
+
photos: kui_crm.ImageBodyRequest[];
|
554
|
+
}[];
|
555
|
+
};
|
556
|
+
|
518
557
|
declare const inspectionsRequestBody: {
|
519
558
|
getPostBodyInitialInspection(inspection: InitialInspectionFormFields, roomsImages: InspectionRoomPhotoRequest[]): InitialInspectionPostBody;
|
520
559
|
getInitialInspectionFields(inspection: InitialInspectionInfoFields): InitialInspectionFieldsBody;
|
@@ -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, AvailableResourcesParams, AvailableResourcesStepFields, BasicApartmentInfoFieldsSchema, BasicApartmentInfoStepFields, BasicApartmentInfoStepSchema, CommonInspectionFields, CommonInspectionFormFields, DetailApartmentInfoFieldsSchema, DetailApartmentInfoStepFields, DetailApartmentInfoStepSchema, FillingCheckParams, FillingInfoFieldsSchema, FillingInfoFormFields,
|
1140
|
+
export { AddedMetersBlock, AdditionalInfoFieldsSchema, AdditionalInfoStepFields, AdditionalInfoStepSchema, ApartmentInspectionModel, ApartmentInspectionParams, 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, 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 };
|