kui-crm_actions 0.0.101 → 0.0.102

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, CityParams, RoomTypes, RenovationParams, RoomParams, HouseTypes as HouseTypes$1, WallMaterials as WallMaterials$1, OverlapTypes as OverlapTypes$1, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, PhoneParams, WifiParams, InternetProviderParams, TVTypes, CompanyAutocompleteFields, CountryAutocompleteFields, TaxesTypes, MetersCountParams, FillingTagsAutocompleteFields, ApartmentFillingVariants, ImageBodyRequest, FillingInfoFormFields as FillingInfoFormFields$1, ContractLinkModel, FileBodyRequest, RoomType, ApartmentMainInfoModelFields, PostInspectionFillingListModel, ApartmentDetailInfoModelFields, ApartmentModel, ApartmentPartialDescriptionParams, MainObjectInfoInterface, ApartmentMainInfoParams, SecurityObjectInfoInterface, ApartmentSecurityInfoParams, DetailObjectInfoInterface, ApartmentDetailInfoParams, ApartmentTelecommunicationInfoParams, ApartmentHouseInfoParams, MaxMetersInfoParams, LatLonParams, InspectionRoomPhotoModel, InspectionFillingModel, ApartmentMetroParams, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingTypes, FillingListItemModel, GeolocationParams } from 'kui-crm';
2
+ import { InputParams, ResourceTypes, MeterTypes, FileStore, InputFileWithVisibilityFields, MeterFeaturesFormFields, InspectionTypes, InspectionRoomPhotoTypes, ParkingTypes as ParkingTypes$1, CityParams, RoomTypes, RenovationParams, RoomParams, HouseTypes as HouseTypes$1, WallMaterials as WallMaterials$1, OverlapTypes as OverlapTypes$1, ImageStore, ApartmentDescriptionParams, ApartmentMetroStationsParams, 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, TransferInspectionMeterModel, InventoryInspectionMeterModel, InspectionPartialMetersInfoParams, ApartmentPaymentInfoParams, FullInspectionCommonFields, InspectionPaymentInfoParams, InspectionMeterCommonInfo, InspectionMeterInfoParams, InventoryInspectionFields, InspectionMetersInfoParams, InspectionFeedbackParams, FillingTypes, FillingListItemModel, 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';
@@ -91,7 +91,7 @@ type InspectionRoomsFields = {
91
91
  bedroomsNumber: number | null
92
92
  restroomsNumber: number | null
93
93
  combinedBathroomsNumber: number | null
94
- parkingType?: ParkingTypes | null
94
+ parkingType?: ParkingTypes$1 | null
95
95
  }
96
96
 
97
97
  type InspectionImageFieldsSettings = {
@@ -234,7 +234,7 @@ type HouseServicesInfoStepFields = {
234
234
  securityPhone: PhoneParams | null
235
235
  hasVideoControl: boolean | null
236
236
  videoControlPhone: PhoneParams | null
237
- parkingType: ParkingTypes | null
237
+ parkingType: ParkingTypes$1 | null
238
238
  parkingNumber: string
239
239
  }
240
240
 
@@ -304,9 +304,47 @@ declare const inspectionsRequests: {
304
304
  }[];
305
305
  };
306
306
 
307
+ declare type ParkingTypes = "public" | "house" | "underground" | "multi_level";
308
+ declare type GasTypes = "not_have" | "stove" | "stove_and_heater";
307
309
  declare type WallMaterials = "brick" | "panel" | "wood" | "block" | "stone";
308
310
  declare type HouseTypes = "ST" | "MB" | "M" | "BR" | "P" | "W" | "BL" | "WP" | "apart_hotel" | "apartment" | "townhouse" | "private_residence";
309
- declare type OverlapTypes = "wood" | "stone" | "brick" | "reinforced_concrete" | "metal" | "combined";
311
+ declare type OverlapTypes = "wood" | "stone" | "brick" | "reinforced_concrete" | "metal" | "combined";
312
+ declare type ApartmentDetailInfoModelFields = {
313
+ financial_personal_account: string;
314
+ max_electricity_counters: number | null;
315
+ max_gas_counters: number | null;
316
+ max_heating_counters: number | null;
317
+ max_water_counters: number | null;
318
+ has_barrier: boolean | null;
319
+ has_concierge: boolean | null;
320
+ has_security: boolean | null;
321
+ has_video_surveillance: boolean | null;
322
+ barrier_phone: string | null;
323
+ concierge_phone: string | null;
324
+ security_phone: string | null;
325
+ video_surveillance_phone: string | null;
326
+ home_phone: string | null;
327
+ wifi_name: string;
328
+ wifi_password: string;
329
+ internet_provider_link: string;
330
+ internet_provider_login: string;
331
+ internet_provider_password: string;
332
+ parking_type: ParkingTypes | null;
333
+ parking_number: string;
334
+ passenger_elevators_number: string | number | null;
335
+ service_elevators_number: string | number | null;
336
+ payer_code: string;
337
+ };
338
+ declare type HouseInfoModelFields = {
339
+ building_year: number;
340
+ type_houses: HouseTypes | null;
341
+ serial_number: string;
342
+ type_gas: GasTypes | null;
343
+ wall_type: WallMaterials | null;
344
+ overlap_type: OverlapTypes | null;
345
+ hot_water: boolean;
346
+ };
347
+ declare type ApartmentWithHouseInfoModelFields = ApartmentDetailInfoModelFields & HouseInfoModelFields;
310
348
 
311
349
  declare type InspectionAppraisalLiteModel = {
312
350
  id: number;
@@ -418,7 +456,7 @@ declare type InventoryInspectionFieldsBody = {
418
456
  allowed_children: boolean;
419
457
  allowed_pets: boolean;
420
458
  additional_terms: string;
421
- } & Partial<ApartmentDetailInfoModelFields>;
459
+ } & Partial<ApartmentDetailInfoModelFields$1>;
422
460
  declare type InventoryInspectionPostBody = {
423
461
  inventory: InventoryInspectionFieldsBody;
424
462
  photo_groups: InspectionRoomPhotoRequest[];
@@ -533,7 +571,7 @@ declare const apartmentFields: {
533
571
  getApartmentSecurityInfo(apartment: SecurityObjectInfoInterface): ApartmentSecurityInfoParams;
534
572
  getApartmentDetailInfo(apartment: DetailObjectInfoInterface): ApartmentDetailInfoParams;
535
573
  getApartmentTelecommunicationInfo(apartment: ApartmentModel): ApartmentTelecommunicationInfoParams;
536
- getApartmentHouseInfo(apartment: ApartmentModel): ApartmentHouseInfoParams;
574
+ getApartmentHouseInfo(apartment: ApartmentWithHouseInfoModelFields): ApartmentHouseInfoParams;
537
575
  getMaxMetersParams(apartment: ApartmentModel): MaxMetersInfoParams;
538
576
  getGeolocationParams(geolocation?: LatLonParams | undefined): {
539
577
  lat: number;