kui-crm_actions 0.0.145 → 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.
Files changed (2) hide show
  1. package/index.d.ts +84 -84
  2. 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, 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';
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 | null
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";
@@ -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;
@@ -594,45 +633,6 @@ declare const inspectionsRequestBody: {
594
633
  getFilesParams(files: FileStore[]): ImageBodyRequest[];
595
634
  };
596
635
 
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
-
636
636
  declare const apartmentFields: {
637
637
  getApartmentDescriptionInfo(apartment: ApartmentModel): ApartmentPartialDescriptionParams;
638
638
  getApartmentMainInfo(apartment: MainObjectInfoInterface): ApartmentMainInfoParams;
@@ -1137,4 +1137,4 @@ type ApartmentPointProps = {
1137
1137
 
1138
1138
  declare const ObjectForMapPoint: (props: ApartmentPointProps) => JSX.Element;
1139
1139
 
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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-crm_actions",
3
- "version": "0.0.145",
3
+ "version": "0.0.146",
4
4
  "description": "crm actions block",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",