kui-crm 0.0.55 → 0.0.56
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 +236 -75
- package/package.json +1 -1
- package/types/index.d.ts +215 -54
- package/utils/index.d.ts +147 -32
package/index.d.ts
CHANGED
|
@@ -103,6 +103,153 @@ type InputParams<T> = {
|
|
|
103
103
|
|
|
104
104
|
declare function InputByType<T extends object>({ variant, CustomInput, ...inputProps }: InputByTypeProps<T>): JSX.Element | null;
|
|
105
105
|
|
|
106
|
+
declare type APISubjectRoles = "maroom" | "owner" | "renter";
|
|
107
|
+
declare type UnitOfPaymentTypes = "percent" | "value";
|
|
108
|
+
declare type UtilityTypes = ResourceTypes | "utility" | "invoice";
|
|
109
|
+
declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
|
|
110
|
+
declare type FileBodyRequest = {
|
|
111
|
+
temp_file_id?: number;
|
|
112
|
+
name: string;
|
|
113
|
+
visibility?: DocumentVisibilityAPIVariants;
|
|
114
|
+
};
|
|
115
|
+
declare type ImageBodyRequest = {
|
|
116
|
+
temp_file_id: number;
|
|
117
|
+
image_name: string;
|
|
118
|
+
};
|
|
119
|
+
declare type UploadFileResponse = {
|
|
120
|
+
id: number;
|
|
121
|
+
upload: string;
|
|
122
|
+
};
|
|
123
|
+
declare type ContractLinkModel = {
|
|
124
|
+
apartment: ApartmentLinkModel;
|
|
125
|
+
id: number;
|
|
126
|
+
number: string;
|
|
127
|
+
};
|
|
128
|
+
declare type ClientTypes = "personal" | "company";
|
|
129
|
+
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
130
|
+
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
131
|
+
declare type LiteUserModel = {
|
|
132
|
+
id: number;
|
|
133
|
+
email: string;
|
|
134
|
+
first_name: string;
|
|
135
|
+
last_name: string;
|
|
136
|
+
middle_name: string;
|
|
137
|
+
full_name: string;
|
|
138
|
+
phone: string;
|
|
139
|
+
client_type?: ClientTypes;
|
|
140
|
+
};
|
|
141
|
+
declare type ServiceContractLiteModel = {
|
|
142
|
+
id: number;
|
|
143
|
+
number: string;
|
|
144
|
+
start_date: string;
|
|
145
|
+
};
|
|
146
|
+
declare type AdministrativeCompanyModel = {
|
|
147
|
+
id: number;
|
|
148
|
+
name: string;
|
|
149
|
+
logo: string | null;
|
|
150
|
+
};
|
|
151
|
+
declare type UtilityPayerModel = {
|
|
152
|
+
utility_type: UtilityTypes;
|
|
153
|
+
payment_made_by?: APISubjectRoles;
|
|
154
|
+
refund_from: APISubjectRoles;
|
|
155
|
+
refund_value?: number | string;
|
|
156
|
+
value_type?: UnitOfPaymentTypes;
|
|
157
|
+
};
|
|
158
|
+
declare type ContractStatuses = "Open" | "Closed";
|
|
159
|
+
|
|
160
|
+
declare type RoommateParams = {};
|
|
161
|
+
declare type RentalInspectionParams = {
|
|
162
|
+
id: number;
|
|
163
|
+
rental_contract_id?: string;
|
|
164
|
+
date: string;
|
|
165
|
+
is_ok?: boolean;
|
|
166
|
+
is_fixed?: boolean;
|
|
167
|
+
note: string;
|
|
168
|
+
};
|
|
169
|
+
declare type RentalContractModel = {
|
|
170
|
+
id: number;
|
|
171
|
+
renter: LiteUserModel;
|
|
172
|
+
owner: LiteUserModel;
|
|
173
|
+
renter_id: number;
|
|
174
|
+
number: string;
|
|
175
|
+
apartment: ApartmentLinkModel;
|
|
176
|
+
owner_id?: string;
|
|
177
|
+
sign_date: string;
|
|
178
|
+
start_date: string;
|
|
179
|
+
end_date?: string;
|
|
180
|
+
close_date?: string;
|
|
181
|
+
month_payment: string;
|
|
182
|
+
day_of_payment?: number;
|
|
183
|
+
termination_showing_days?: number;
|
|
184
|
+
termination_penalty: string;
|
|
185
|
+
initial_commission: string;
|
|
186
|
+
security_payment: string;
|
|
187
|
+
auto_prolongate: boolean;
|
|
188
|
+
installment: number;
|
|
189
|
+
rental_type: RentalTypes;
|
|
190
|
+
roommates_ids?: RoommateParams[];
|
|
191
|
+
status?: ContractStatuses;
|
|
192
|
+
inspections?: RentalInspectionParams[];
|
|
193
|
+
service_contract_id?: number;
|
|
194
|
+
next_inspection: string | null;
|
|
195
|
+
planned_leave_date: string;
|
|
196
|
+
inspection_interval_month?: number;
|
|
197
|
+
renter_payment_status: PaymentStatuses;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
|
|
201
|
+
declare type TaxResidenceType = "resident" | "not_resident";
|
|
202
|
+
declare type FixedCostModel = {
|
|
203
|
+
name: string;
|
|
204
|
+
value: string | number;
|
|
205
|
+
payer: APISubjectRoles;
|
|
206
|
+
};
|
|
207
|
+
declare type ServiceContractModel = {
|
|
208
|
+
id: number;
|
|
209
|
+
apartment: ApartmentLinkModel;
|
|
210
|
+
storage_id: number;
|
|
211
|
+
owner: LiteUserModel;
|
|
212
|
+
renter: LiteUserModel;
|
|
213
|
+
auto_prolongate: boolean;
|
|
214
|
+
renter_notify_on_no_prolongate: boolean;
|
|
215
|
+
inspection_interval_month: number;
|
|
216
|
+
notify_period_month: number;
|
|
217
|
+
archive: boolean;
|
|
218
|
+
number: string;
|
|
219
|
+
sign_date: string;
|
|
220
|
+
start_date: string;
|
|
221
|
+
end_date: string;
|
|
222
|
+
status: ContractStatuses;
|
|
223
|
+
apartment_phone: string;
|
|
224
|
+
phone_paid_by: string;
|
|
225
|
+
utilities_paid_by: string;
|
|
226
|
+
beneficiary: string;
|
|
227
|
+
taxes_type: TaxesTypes;
|
|
228
|
+
initial_commission: string;
|
|
229
|
+
maintenance_commission: string;
|
|
230
|
+
contr_agent_company: string;
|
|
231
|
+
penalty_in_preparation: string;
|
|
232
|
+
penalty_with_rental: string;
|
|
233
|
+
advertising_period: string;
|
|
234
|
+
min_rent_price: number;
|
|
235
|
+
max_rent_price: number;
|
|
236
|
+
rental_type: RentalTypes;
|
|
237
|
+
renter_payment_status: PaymentStatuses;
|
|
238
|
+
water_counters_paid_by?: APISubjectRoles | null;
|
|
239
|
+
heating_counters_paid_by?: APISubjectRoles | null;
|
|
240
|
+
gas_counters_paid_by?: APISubjectRoles | null;
|
|
241
|
+
electricity_counters_paid_by?: APISubjectRoles | null;
|
|
242
|
+
fixed_costs?: FixedCostModel[];
|
|
243
|
+
allowable_price_deviation?: number;
|
|
244
|
+
long_term_type?: RentPeriodTypes;
|
|
245
|
+
not_allowed_pets?: boolean;
|
|
246
|
+
not_allowed_children?: boolean;
|
|
247
|
+
additional_terms?: string;
|
|
248
|
+
tax_residence: TaxResidenceType;
|
|
249
|
+
rental_contracts: RentalContractModel[];
|
|
250
|
+
utility_payers?: UtilityPayerModel[];
|
|
251
|
+
};
|
|
252
|
+
|
|
106
253
|
declare type MainImageModel = {
|
|
107
254
|
id: number;
|
|
108
255
|
image_name: string;
|
|
@@ -223,6 +370,8 @@ declare type ApartmentModel = {
|
|
|
223
370
|
is_closed_period: boolean;
|
|
224
371
|
is_approved_service_expenses: boolean;
|
|
225
372
|
renter_payment_status: PaymentStatuses;
|
|
373
|
+
rental_contracts: RentalContractModel[];
|
|
374
|
+
service_contracts: ServiceContractModel[];
|
|
226
375
|
owner: LiteUserModel | null;
|
|
227
376
|
renter: LiteUserModel | null;
|
|
228
377
|
owner_id: number;
|
|
@@ -359,52 +508,6 @@ declare type LockerModel = {
|
|
|
359
508
|
} & CatalogItemModel;
|
|
360
509
|
declare type GetLockersResponse = LockerModel[];
|
|
361
510
|
|
|
362
|
-
declare type APISubjectRoles = "maroom" | "owner" | "renter";
|
|
363
|
-
declare type UnitOfPaymentTypes = "percent" | "value";
|
|
364
|
-
declare type UtilityTypes = ResourceTypes | "utility" | "invoice";
|
|
365
|
-
declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
|
|
366
|
-
declare type FileBodyRequest = {
|
|
367
|
-
temp_file_id?: number;
|
|
368
|
-
name: string;
|
|
369
|
-
visibility?: DocumentVisibilityAPIVariants;
|
|
370
|
-
};
|
|
371
|
-
declare type ImageBodyRequest = {
|
|
372
|
-
temp_file_id: number;
|
|
373
|
-
image_name: string;
|
|
374
|
-
};
|
|
375
|
-
declare type UploadFileResponse = {
|
|
376
|
-
id: number;
|
|
377
|
-
upload: string;
|
|
378
|
-
};
|
|
379
|
-
declare type ContractLinkModel = {
|
|
380
|
-
apartment: ApartmentLinkModel;
|
|
381
|
-
id: number;
|
|
382
|
-
number: string;
|
|
383
|
-
};
|
|
384
|
-
declare type ClientTypes = "personal" | "company";
|
|
385
|
-
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
386
|
-
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
387
|
-
declare type LiteUserModel = {
|
|
388
|
-
id: number;
|
|
389
|
-
email: string;
|
|
390
|
-
first_name: string;
|
|
391
|
-
last_name: string;
|
|
392
|
-
middle_name: string;
|
|
393
|
-
full_name: string;
|
|
394
|
-
phone: string;
|
|
395
|
-
client_type?: ClientTypes;
|
|
396
|
-
};
|
|
397
|
-
declare type ServiceContractLiteModel = {
|
|
398
|
-
id: number;
|
|
399
|
-
number: string;
|
|
400
|
-
start_date: string;
|
|
401
|
-
};
|
|
402
|
-
declare type AdministrativeCompanyModel = {
|
|
403
|
-
id: number;
|
|
404
|
-
name: string;
|
|
405
|
-
logo: string | null;
|
|
406
|
-
};
|
|
407
|
-
|
|
408
511
|
declare type BillingInfoParams = {
|
|
409
512
|
id: number;
|
|
410
513
|
receiver: string;
|
|
@@ -553,6 +656,92 @@ declare type PostElectricityTariffRequest = {
|
|
|
553
656
|
} & PostCommonTariffParams;
|
|
554
657
|
declare type PostTariffRequest = PostWaterTariffRequest | PostElectricityTariffRequest | PostGasTariffRequest | PostHeatingTariffRequest;
|
|
555
658
|
|
|
659
|
+
type CompanyCreationFields = {
|
|
660
|
+
type?: CompanyTypes
|
|
661
|
+
} & CompanyFields
|
|
662
|
+
|
|
663
|
+
type CompanyFields = {
|
|
664
|
+
inn: string
|
|
665
|
+
name: string
|
|
666
|
+
phone: PhoneParams | null
|
|
667
|
+
email: string
|
|
668
|
+
logo?: FileList
|
|
669
|
+
office: AddressWithLocationParams
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
type CompanyCreationFormProps = {
|
|
673
|
+
handleSubmit: (data: CompanyCreationFields) => void
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
declare type CompanyLiteParams = {
|
|
677
|
+
id: number;
|
|
678
|
+
name: string;
|
|
679
|
+
logo?: string | null;
|
|
680
|
+
operatingAccount?: string;
|
|
681
|
+
};
|
|
682
|
+
declare type CompanyParams = {
|
|
683
|
+
id: number;
|
|
684
|
+
logo?: string | null;
|
|
685
|
+
} & Omit<CompanyFields, "logo">;
|
|
686
|
+
|
|
687
|
+
declare type MeterPayerModel = {
|
|
688
|
+
payments_info: UtilityPayerModel;
|
|
689
|
+
} & LiteUserModel;
|
|
690
|
+
declare type SingleCounterTariffModel = {
|
|
691
|
+
value: number;
|
|
692
|
+
} & TariffLinkModel;
|
|
693
|
+
declare type TariffLinkModel = {
|
|
694
|
+
id: number;
|
|
695
|
+
code_name: string;
|
|
696
|
+
};
|
|
697
|
+
declare type ElectricityMeterTariffModel = {
|
|
698
|
+
T1: number;
|
|
699
|
+
T2?: number;
|
|
700
|
+
T3?: number;
|
|
701
|
+
} & TariffLinkModel;
|
|
702
|
+
declare type MeterTariffModel = {
|
|
703
|
+
initial_value: string | number;
|
|
704
|
+
previous_value: string | null;
|
|
705
|
+
consumption: string | number;
|
|
706
|
+
counter_value: string | number;
|
|
707
|
+
edit_date: string | null;
|
|
708
|
+
};
|
|
709
|
+
declare type CommonMeterParams = {
|
|
710
|
+
id: number;
|
|
711
|
+
passport_number: string;
|
|
712
|
+
archived?: boolean;
|
|
713
|
+
check_date?: string | null;
|
|
714
|
+
activation_date: string | null;
|
|
715
|
+
payer: MeterPayerModel;
|
|
716
|
+
company: CompanyLiteParams;
|
|
717
|
+
operating_account_number?: string | null;
|
|
718
|
+
company_is_administrative: boolean;
|
|
719
|
+
};
|
|
720
|
+
declare type ElectricityMeterValues = {
|
|
721
|
+
T1: MeterTariffModel;
|
|
722
|
+
T2?: MeterTariffModel;
|
|
723
|
+
T3?: MeterTariffModel;
|
|
724
|
+
};
|
|
725
|
+
declare type WaterMeterParams = {
|
|
726
|
+
type: WaterMeterTypes;
|
|
727
|
+
tariff: SingleCounterTariffModel;
|
|
728
|
+
} & CommonMeterParams & MeterTariffModel;
|
|
729
|
+
declare type SingleMeterParams = {
|
|
730
|
+
type?: WaterMeterTypes;
|
|
731
|
+
tariff: SingleCounterTariffModel;
|
|
732
|
+
} & CommonMeterParams & MeterTariffModel;
|
|
733
|
+
declare type ElectricityMeterParams = {
|
|
734
|
+
type: ElectricityMeterTypes;
|
|
735
|
+
values: ElectricityMeterValues;
|
|
736
|
+
tariff: ElectricityMeterTariffModel;
|
|
737
|
+
} & CommonMeterParams;
|
|
738
|
+
declare type WaterMetersResponse = WaterMeterParams[];
|
|
739
|
+
declare type ElectricityMetersResponse = ElectricityMeterParams[];
|
|
740
|
+
declare type GasMetersResponse = SingleMeterParams[];
|
|
741
|
+
declare type HeatingMetersResponse = SingleMeterParams[];
|
|
742
|
+
declare type MetersResponse = WaterMetersResponse | ElectricityMetersResponse | GasMetersResponse | HeatingMetersResponse;
|
|
743
|
+
declare type MeterModel = WaterMeterParams | ElectricityMeterParams | SingleMeterParams;
|
|
744
|
+
|
|
556
745
|
type FillingTagsAutocompleteProps<TFormValues> = {
|
|
557
746
|
type: ApartmentFillingVariants
|
|
558
747
|
} & InputWithControllerProps$1<TFormValues>
|
|
@@ -656,34 +845,6 @@ declare const PartialPayerValues: {
|
|
|
656
845
|
label: string;
|
|
657
846
|
}[];
|
|
658
847
|
|
|
659
|
-
type CompanyCreationFields = {
|
|
660
|
-
type?: CompanyTypes
|
|
661
|
-
} & CompanyFields
|
|
662
|
-
|
|
663
|
-
type CompanyFields = {
|
|
664
|
-
inn: string
|
|
665
|
-
name: string
|
|
666
|
-
phone: PhoneParams | null
|
|
667
|
-
email: string
|
|
668
|
-
logo?: FileList
|
|
669
|
-
office: AddressWithLocationParams
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
type CompanyCreationFormProps = {
|
|
673
|
-
handleSubmit: (data: CompanyCreationFields) => void
|
|
674
|
-
}
|
|
675
|
-
|
|
676
|
-
declare type CompanyLiteParams = {
|
|
677
|
-
id: number;
|
|
678
|
-
name: string;
|
|
679
|
-
logo?: string | null;
|
|
680
|
-
operatingAccount?: string;
|
|
681
|
-
};
|
|
682
|
-
declare type CompanyParams = {
|
|
683
|
-
id: number;
|
|
684
|
-
logo?: string | null;
|
|
685
|
-
} & Omit<CompanyFields, "logo">;
|
|
686
|
-
|
|
687
848
|
declare type RenovationType = (typeof RenovationTypeValues)[number]["value"][];
|
|
688
849
|
declare type RenovationStyle = (typeof RenovationStyleValues)[number]["value"][];
|
|
689
850
|
declare type RoomType = (typeof RoomTypeValues)[number]["value"][];
|
|
@@ -1773,4 +1934,4 @@ declare const usePaginationPage: (paginator?: Paginator | undefined, fetchAll?:
|
|
|
1773
1934
|
|
|
1774
1935
|
declare const useScrollWithBottomSpacing: (spacingToBottom: number, delay: number, callback: () => void, element?: RefObject<HTMLElement> | null | undefined, deps?: DependencyList | undefined) => void;
|
|
1775
1936
|
|
|
1776
|
-
export { APIPayerValues, APISubjectRoles, AdaptiveImageParams, AdaptiveImagesBlock, AdaptiveImagesBlockProps, AddressWithLocationParams, AdministrativeCompany, AdministrativeCompanyModel, ApartmentContractTypes, ApartmentDescriptionParams, ApartmentDetailInfoModelFields, ApartmentDetailInfoParams, ApartmentDocumentModel, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentHouseInfoParams, ApartmentInspectionModel, ApartmentLinkModel, ApartmentLinkParams, ApartmentLiteModel, ApartmentLockerParams, ApartmentMainInfoModelFields, ApartmentMainInfoParams, ApartmentMeterAccounts, ApartmentMetroParams, ApartmentModel, ApartmentPartialModel, ApartmentPaymentInfoParams, ApartmentSecurityInfoParams, ApartmentTelecommunicationInfoParams, ApartmentsAgent, AuthAgent, BillingInfoParams, BooleanValues, CatalogItemModel, CatalogItemParams, CatalogsAgent, ChangeReasonField, ChangeReasonFields, ChangeReasonFieldsProps, ChangeReasonFormFields, ChangeReasonSchema, CitiesStore, _default$g as CityAutocomplete, CityAutocompleteFields, CityAutocompleteProps, CityModel, CityParams, ClientTypes, CommonTariffFieldsSchema, CommonTariffModel, CompaniesAgent, CompaniesStore, CompanyAPITypes, _default$d as CompanyAutocomplete, CompanyAutocompleteFields, CompanyByTinRequestBody, CompanyCreationFields, CompanyCreationForm, CompanyCreationFormProps, _default$c as CompanyCreationModal, CompanyFields, CompanyInfoModel, _default$1 as CompanyInnAutocomplete, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams$1 as CompanyParams, CompanyTypes, CompanyTypesValues, ContractLinkModel, CopyButton, CountriesStore, _default$f as CountryAutocomplete, CountryAutocompleteFields, CountryModel, CountryParams, CountyModel, DetailObjectInfoInterface, _default$6 as DistrictAutocomplete, DistrictModel, DistrictsStore, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterTypes, ElectricityTariffCreationFields, ElectricityValues, ErrorPopup, FetchCompanies, FileBodyRequest, FileParams, FileUploaderWithPreview, FileWithVisibility, FillingInfoFormFields, FillingTagCreationForm, _default$9 as FillingTagCreationModal, FillingTagParams, FillingTagsAgent, _default$8 as FillingTagsAutocomplete, FillingTagsAutocompleteFields, FillingTagsAutocompleteProps, FillingTagsStore, FillingTypeValues, FormBottom, FormBottomProps, FormWrapper, FormWrapperProps, GalleryWithThumbnails, GasTariffCreationFields, GasTypes, GeolocationParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, HeadingWithButton, HeatingTariffCreationFields, HouseTypes, ImageBodyRequest, ImageCard, ImageCardProps, ImageCardWithBackdrop, ImpairmentsTypeValues, InputByType, InputByTypeProps, InputFileWithVisibility, InputFileWithVisibilityFields, InputParams, InputTypes, InputWithMap, InspectionTypeValues, InternetProviderParams, KUICrmSettings, kuiSettings as KUISettings, LatLonParams, LiteMeterInterface, LiteUserModel, LoaderPopup, _default$2 as LoaderState, LockerModel, MainImageModel, MainObjectInfoInterface, _default$b as MapComponent, MaxMetersInfoParams, MeterFeaturesFields, MeterFeaturesFieldsProps, MeterFeaturesForm, MeterFeaturesFormFields, MeterTypeRadioGroup, MeterTypes, MetersCountParams, Modal, ModalProps, _default$a as ModalWithMap, _default as MultistepForm, ObjectType, OpenMapButton, OverlapTypes, ParkingTypes, ParkingTypesValues, PartialPayer, PartialPayerFields, PartialPayerProps, PartialPayerValues, PartialPayerVariants, PatchBillingInfoParams, PatchCompanyParams, PaymentStatuses, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, PreviewImageCard, _default$e as RegionAutocomplete, RegionAutocompleteFields, RegionAutocompleteProps, RegionModel, RegionParams, RegionsStore, RenderMeterFieldsSettings, RenovationParams, RenovationStyle, RenovationStyleValues, RenovationType, RenovationTypeValues, RentalStatuses, RentalTypes, _default$7 as ReplaceableCountersBlock, ResidentialComplexModel, ResourceTypes, ResourceValues, RoomModel, RoomParams, RoomType, RoomTypeValues, RoomTypes, RoomTypesValues, SecurityObjectInfoInterface, ServiceContractLiteModel, SettingsParams, SignInFormFields, _default$3 as SignInPage, SquarePreviewImage, TVTypes, TVTypesValues, TableBottomLoading, TagModel, TariffCreationFieldsProps, _default$5 as TariffCreationForm, TariffCreationFormFields, TariffCreationFormProps, TariffCreationModal, TariffCreationValuesFields, _default$4 as TariffGroupAutocomplete, TariffGroupAutocompleteFields, TariffGroupLiteParams, TariffReplacementField, TariffReplacementFields, TariffStatuses, TariffsAgent, TariffsLiteStore, TaxResidenceValues, TaxTypeValues, TaxesTypes, TwoOptionForAutocomplete, UnitOfPaymentTypes, UnitOfPaymentValues, UploadAgent, UploadDocumentParams, UploadFileResponse, UtilityTypes, Values, WallMaterials, WaterMeterTypes, WaterTariffCreationFields, WaterValues, WifiParams, apartmentFields, authFlag, csrfTokenKey, defaultRequiredMessage, genderMatches, getFillingInfoFields, getMeterFeaturesFieldsSchema, getMeterFields, getNumbersValues, matchesAPICompanyTypes, matchesAPIFillingTypes, matchesAPISubjectRoles, matchesAPIVisibilityVariants, matchesApartmentStatuses, matchesCompanyTypes, matchesFillingTypes, matchesServiceTypes, matchesSubjectRoles, matchesVisibilityVariants, phoneNonRequiredSchema, phoneSchema, phoneWithConditionSchema, positiveNumberSchema, requests, sessionIdKey, setFileFromFileWithVisibility, uploadDocument, uploadDocuments, uploadFile, uploadFiles, uploadImages, uploadNewFile, useAutocomplete, useFetchPage, usePaginationPage, usePortalPosition, useScrollWithBottomSpacing };
|
|
1937
|
+
export { APIPayerValues, APISubjectRoles, AdaptiveImageParams, AdaptiveImagesBlock, AdaptiveImagesBlockProps, AddressWithLocationParams, AdministrativeCompany, AdministrativeCompanyModel, ApartmentContractTypes, ApartmentDescriptionParams, ApartmentDetailInfoModelFields, ApartmentDetailInfoParams, ApartmentDocumentModel, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentHouseInfoParams, ApartmentInspectionModel, ApartmentLinkModel, ApartmentLinkParams, ApartmentLiteModel, ApartmentLockerParams, ApartmentMainInfoModelFields, ApartmentMainInfoParams, ApartmentMeterAccounts, ApartmentMetroParams, ApartmentModel, ApartmentPartialModel, ApartmentPaymentInfoParams, ApartmentSecurityInfoParams, ApartmentTelecommunicationInfoParams, ApartmentsAgent, AuthAgent, BillingInfoParams, BooleanValues, CatalogItemModel, CatalogItemParams, CatalogsAgent, ChangeReasonField, ChangeReasonFields, ChangeReasonFieldsProps, ChangeReasonFormFields, ChangeReasonSchema, CitiesStore, _default$g as CityAutocomplete, CityAutocompleteFields, CityAutocompleteProps, CityModel, CityParams, ClientTypes, CommonMeterParams, CommonTariffFieldsSchema, CommonTariffModel, CompaniesAgent, CompaniesStore, CompanyAPITypes, _default$d as CompanyAutocomplete, CompanyAutocompleteFields, CompanyByTinRequestBody, CompanyCreationFields, CompanyCreationForm, CompanyCreationFormProps, _default$c as CompanyCreationModal, CompanyFields, CompanyInfoModel, _default$1 as CompanyInnAutocomplete, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams$1 as CompanyParams, CompanyTypes, CompanyTypesValues, ContractLinkModel, ContractStatuses, CopyButton, CountriesStore, _default$f as CountryAutocomplete, CountryAutocompleteFields, CountryModel, CountryParams, CountyModel, DetailObjectInfoInterface, _default$6 as DistrictAutocomplete, DistrictModel, DistrictsStore, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterParams, ElectricityMeterTypes, ElectricityMeterValues, ElectricityMetersResponse, ElectricityTariffCreationFields, ElectricityValues, ErrorPopup, FetchCompanies, FileBodyRequest, FileParams, FileUploaderWithPreview, FileWithVisibility, FillingInfoFormFields, FillingTagCreationForm, _default$9 as FillingTagCreationModal, FillingTagParams, FillingTagsAgent, _default$8 as FillingTagsAutocomplete, FillingTagsAutocompleteFields, FillingTagsAutocompleteProps, FillingTagsStore, FillingTypeValues, FormBottom, FormBottomProps, FormWrapper, FormWrapperProps, GalleryWithThumbnails, GasMetersResponse, GasTariffCreationFields, GasTypes, GeolocationParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, HeadingWithButton, HeatingMetersResponse, HeatingTariffCreationFields, HouseTypes, ImageBodyRequest, ImageCard, ImageCardProps, ImageCardWithBackdrop, ImpairmentsTypeValues, InputByType, InputByTypeProps, InputFileWithVisibility, InputFileWithVisibilityFields, InputParams, InputTypes, InputWithMap, InspectionTypeValues, InternetProviderParams, KUICrmSettings, kuiSettings as KUISettings, LatLonParams, LiteMeterInterface, LiteUserModel, LoaderPopup, _default$2 as LoaderState, LockerModel, MainImageModel, MainObjectInfoInterface, _default$b as MapComponent, MaxMetersInfoParams, MeterFeaturesFields, MeterFeaturesFieldsProps, MeterFeaturesForm, MeterFeaturesFormFields, MeterModel, MeterPayerModel, MeterTariffModel, MeterTypeRadioGroup, MeterTypes, MetersCountParams, MetersResponse, Modal, ModalProps, _default$a as ModalWithMap, _default as MultistepForm, ObjectType, OpenMapButton, OverlapTypes, ParkingTypes, ParkingTypesValues, PartialPayer, PartialPayerFields, PartialPayerProps, PartialPayerValues, PartialPayerVariants, PatchBillingInfoParams, PatchCompanyParams, PaymentStatuses, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, PreviewImageCard, _default$e as RegionAutocomplete, RegionAutocompleteFields, RegionAutocompleteProps, RegionModel, RegionParams, RegionsStore, RenderMeterFieldsSettings, RenovationParams, RenovationStyle, RenovationStyleValues, RenovationType, RenovationTypeValues, RentalStatuses, RentalTypes, _default$7 as ReplaceableCountersBlock, ResidentialComplexModel, ResourceTypes, ResourceValues, RoomModel, RoomParams, RoomType, RoomTypeValues, RoomTypes, RoomTypesValues, SecurityObjectInfoInterface, ServiceContractLiteModel, SettingsParams, SignInFormFields, _default$3 as SignInPage, SingleMeterParams, SquarePreviewImage, TVTypes, TVTypesValues, TableBottomLoading, TagModel, TariffCreationFieldsProps, _default$5 as TariffCreationForm, TariffCreationFormFields, TariffCreationFormProps, TariffCreationModal, TariffCreationValuesFields, _default$4 as TariffGroupAutocomplete, TariffGroupAutocompleteFields, TariffGroupLiteParams, TariffLinkModel, TariffReplacementField, TariffReplacementFields, TariffStatuses, TariffsAgent, TariffsLiteStore, TaxResidenceValues, TaxTypeValues, TaxesTypes, TwoOptionForAutocomplete, UnitOfPaymentTypes, UnitOfPaymentValues, UploadAgent, UploadDocumentParams, UploadFileResponse, UtilityPayerModel, UtilityTypes, Values, WallMaterials, WaterMeterParams, WaterMeterTypes, WaterMetersResponse, WaterTariffCreationFields, WaterValues, WifiParams, apartmentFields, authFlag, csrfTokenKey, defaultRequiredMessage, genderMatches, getFillingInfoFields, getMeterFeaturesFieldsSchema, getMeterFields, getNumbersValues, matchesAPICompanyTypes, matchesAPIFillingTypes, matchesAPISubjectRoles, matchesAPIVisibilityVariants, matchesApartmentStatuses, matchesCompanyTypes, matchesFillingTypes, matchesServiceTypes, matchesSubjectRoles, matchesVisibilityVariants, phoneNonRequiredSchema, phoneSchema, phoneWithConditionSchema, positiveNumberSchema, requests, sessionIdKey, setFileFromFileWithVisibility, uploadDocument, uploadDocuments, uploadFile, uploadFiles, uploadImages, uploadNewFile, useAutocomplete, useFetchPage, usePaginationPage, usePortalPosition, useScrollWithBottomSpacing };
|
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -24,6 +24,153 @@ type CountryParams = {
|
|
|
24
24
|
code: string
|
|
25
25
|
} & CatalogItemParams
|
|
26
26
|
|
|
27
|
+
declare type APISubjectRoles = "maroom" | "owner" | "renter";
|
|
28
|
+
declare type UnitOfPaymentTypes = "percent" | "value";
|
|
29
|
+
declare type UtilityTypes = ResourceTypes | "utility" | "invoice";
|
|
30
|
+
declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
|
|
31
|
+
declare type FileBodyRequest = {
|
|
32
|
+
temp_file_id?: number;
|
|
33
|
+
name: string;
|
|
34
|
+
visibility?: DocumentVisibilityAPIVariants;
|
|
35
|
+
};
|
|
36
|
+
declare type ImageBodyRequest = {
|
|
37
|
+
temp_file_id: number;
|
|
38
|
+
image_name: string;
|
|
39
|
+
};
|
|
40
|
+
declare type UploadFileResponse = {
|
|
41
|
+
id: number;
|
|
42
|
+
upload: string;
|
|
43
|
+
};
|
|
44
|
+
declare type ContractLinkModel = {
|
|
45
|
+
apartment: ApartmentLinkModel;
|
|
46
|
+
id: number;
|
|
47
|
+
number: string;
|
|
48
|
+
};
|
|
49
|
+
declare type ClientTypes = "personal" | "company";
|
|
50
|
+
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
51
|
+
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
52
|
+
declare type LiteUserModel = {
|
|
53
|
+
id: number;
|
|
54
|
+
email: string;
|
|
55
|
+
first_name: string;
|
|
56
|
+
last_name: string;
|
|
57
|
+
middle_name: string;
|
|
58
|
+
full_name: string;
|
|
59
|
+
phone: string;
|
|
60
|
+
client_type?: ClientTypes;
|
|
61
|
+
};
|
|
62
|
+
declare type ServiceContractLiteModel = {
|
|
63
|
+
id: number;
|
|
64
|
+
number: string;
|
|
65
|
+
start_date: string;
|
|
66
|
+
};
|
|
67
|
+
declare type AdministrativeCompanyModel = {
|
|
68
|
+
id: number;
|
|
69
|
+
name: string;
|
|
70
|
+
logo: string | null;
|
|
71
|
+
};
|
|
72
|
+
declare type UtilityPayerModel = {
|
|
73
|
+
utility_type: UtilityTypes;
|
|
74
|
+
payment_made_by?: APISubjectRoles;
|
|
75
|
+
refund_from: APISubjectRoles;
|
|
76
|
+
refund_value?: number | string;
|
|
77
|
+
value_type?: UnitOfPaymentTypes;
|
|
78
|
+
};
|
|
79
|
+
declare type ContractStatuses = "Open" | "Closed";
|
|
80
|
+
|
|
81
|
+
declare type RoommateParams = {};
|
|
82
|
+
declare type RentalInspectionParams = {
|
|
83
|
+
id: number;
|
|
84
|
+
rental_contract_id?: string;
|
|
85
|
+
date: string;
|
|
86
|
+
is_ok?: boolean;
|
|
87
|
+
is_fixed?: boolean;
|
|
88
|
+
note: string;
|
|
89
|
+
};
|
|
90
|
+
declare type RentalContractModel = {
|
|
91
|
+
id: number;
|
|
92
|
+
renter: LiteUserModel;
|
|
93
|
+
owner: LiteUserModel;
|
|
94
|
+
renter_id: number;
|
|
95
|
+
number: string;
|
|
96
|
+
apartment: ApartmentLinkModel;
|
|
97
|
+
owner_id?: string;
|
|
98
|
+
sign_date: string;
|
|
99
|
+
start_date: string;
|
|
100
|
+
end_date?: string;
|
|
101
|
+
close_date?: string;
|
|
102
|
+
month_payment: string;
|
|
103
|
+
day_of_payment?: number;
|
|
104
|
+
termination_showing_days?: number;
|
|
105
|
+
termination_penalty: string;
|
|
106
|
+
initial_commission: string;
|
|
107
|
+
security_payment: string;
|
|
108
|
+
auto_prolongate: boolean;
|
|
109
|
+
installment: number;
|
|
110
|
+
rental_type: RentalTypes;
|
|
111
|
+
roommates_ids?: RoommateParams[];
|
|
112
|
+
status?: ContractStatuses;
|
|
113
|
+
inspections?: RentalInspectionParams[];
|
|
114
|
+
service_contract_id?: number;
|
|
115
|
+
next_inspection: string | null;
|
|
116
|
+
planned_leave_date: string;
|
|
117
|
+
inspection_interval_month?: number;
|
|
118
|
+
renter_payment_status: PaymentStatuses;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
|
|
122
|
+
declare type TaxResidenceType = "resident" | "not_resident";
|
|
123
|
+
declare type FixedCostModel = {
|
|
124
|
+
name: string;
|
|
125
|
+
value: string | number;
|
|
126
|
+
payer: APISubjectRoles;
|
|
127
|
+
};
|
|
128
|
+
declare type ServiceContractModel = {
|
|
129
|
+
id: number;
|
|
130
|
+
apartment: ApartmentLinkModel;
|
|
131
|
+
storage_id: number;
|
|
132
|
+
owner: LiteUserModel;
|
|
133
|
+
renter: LiteUserModel;
|
|
134
|
+
auto_prolongate: boolean;
|
|
135
|
+
renter_notify_on_no_prolongate: boolean;
|
|
136
|
+
inspection_interval_month: number;
|
|
137
|
+
notify_period_month: number;
|
|
138
|
+
archive: boolean;
|
|
139
|
+
number: string;
|
|
140
|
+
sign_date: string;
|
|
141
|
+
start_date: string;
|
|
142
|
+
end_date: string;
|
|
143
|
+
status: ContractStatuses;
|
|
144
|
+
apartment_phone: string;
|
|
145
|
+
phone_paid_by: string;
|
|
146
|
+
utilities_paid_by: string;
|
|
147
|
+
beneficiary: string;
|
|
148
|
+
taxes_type: TaxesTypes;
|
|
149
|
+
initial_commission: string;
|
|
150
|
+
maintenance_commission: string;
|
|
151
|
+
contr_agent_company: string;
|
|
152
|
+
penalty_in_preparation: string;
|
|
153
|
+
penalty_with_rental: string;
|
|
154
|
+
advertising_period: string;
|
|
155
|
+
min_rent_price: number;
|
|
156
|
+
max_rent_price: number;
|
|
157
|
+
rental_type: RentalTypes;
|
|
158
|
+
renter_payment_status: PaymentStatuses;
|
|
159
|
+
water_counters_paid_by?: APISubjectRoles | null;
|
|
160
|
+
heating_counters_paid_by?: APISubjectRoles | null;
|
|
161
|
+
gas_counters_paid_by?: APISubjectRoles | null;
|
|
162
|
+
electricity_counters_paid_by?: APISubjectRoles | null;
|
|
163
|
+
fixed_costs?: FixedCostModel[];
|
|
164
|
+
allowable_price_deviation?: number;
|
|
165
|
+
long_term_type?: RentPeriodTypes;
|
|
166
|
+
not_allowed_pets?: boolean;
|
|
167
|
+
not_allowed_children?: boolean;
|
|
168
|
+
additional_terms?: string;
|
|
169
|
+
tax_residence: TaxResidenceType;
|
|
170
|
+
rental_contracts: RentalContractModel[];
|
|
171
|
+
utility_payers?: UtilityPayerModel[];
|
|
172
|
+
};
|
|
173
|
+
|
|
27
174
|
declare type MainImageModel = {
|
|
28
175
|
id: number;
|
|
29
176
|
image_name: string;
|
|
@@ -144,6 +291,8 @@ declare type ApartmentModel = {
|
|
|
144
291
|
is_closed_period: boolean;
|
|
145
292
|
is_approved_service_expenses: boolean;
|
|
146
293
|
renter_payment_status: PaymentStatuses;
|
|
294
|
+
rental_contracts: RentalContractModel[];
|
|
295
|
+
service_contracts: ServiceContractModel[];
|
|
147
296
|
owner: LiteUserModel | null;
|
|
148
297
|
renter: LiteUserModel | null;
|
|
149
298
|
owner_id: number;
|
|
@@ -280,52 +429,6 @@ declare type LockerModel = {
|
|
|
280
429
|
} & CatalogItemModel;
|
|
281
430
|
declare type GetLockersResponse = LockerModel[];
|
|
282
431
|
|
|
283
|
-
declare type APISubjectRoles = "maroom" | "owner" | "renter";
|
|
284
|
-
declare type UnitOfPaymentTypes = "percent" | "value";
|
|
285
|
-
declare type UtilityTypes = ResourceTypes | "utility" | "invoice";
|
|
286
|
-
declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
|
|
287
|
-
declare type FileBodyRequest = {
|
|
288
|
-
temp_file_id?: number;
|
|
289
|
-
name: string;
|
|
290
|
-
visibility?: DocumentVisibilityAPIVariants;
|
|
291
|
-
};
|
|
292
|
-
declare type ImageBodyRequest = {
|
|
293
|
-
temp_file_id: number;
|
|
294
|
-
image_name: string;
|
|
295
|
-
};
|
|
296
|
-
declare type UploadFileResponse = {
|
|
297
|
-
id: number;
|
|
298
|
-
upload: string;
|
|
299
|
-
};
|
|
300
|
-
declare type ContractLinkModel = {
|
|
301
|
-
apartment: ApartmentLinkModel;
|
|
302
|
-
id: number;
|
|
303
|
-
number: string;
|
|
304
|
-
};
|
|
305
|
-
declare type ClientTypes = "personal" | "company";
|
|
306
|
-
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
307
|
-
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
308
|
-
declare type LiteUserModel = {
|
|
309
|
-
id: number;
|
|
310
|
-
email: string;
|
|
311
|
-
first_name: string;
|
|
312
|
-
last_name: string;
|
|
313
|
-
middle_name: string;
|
|
314
|
-
full_name: string;
|
|
315
|
-
phone: string;
|
|
316
|
-
client_type?: ClientTypes;
|
|
317
|
-
};
|
|
318
|
-
declare type ServiceContractLiteModel = {
|
|
319
|
-
id: number;
|
|
320
|
-
number: string;
|
|
321
|
-
start_date: string;
|
|
322
|
-
};
|
|
323
|
-
declare type AdministrativeCompanyModel = {
|
|
324
|
-
id: number;
|
|
325
|
-
name: string;
|
|
326
|
-
logo: string | null;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
432
|
declare type BillingInfoParams = {
|
|
330
433
|
id: number;
|
|
331
434
|
receiver: string;
|
|
@@ -474,6 +577,71 @@ declare type PostElectricityTariffRequest = {
|
|
|
474
577
|
} & PostCommonTariffParams;
|
|
475
578
|
declare type PostTariffRequest = PostWaterTariffRequest | PostElectricityTariffRequest | PostGasTariffRequest | PostHeatingTariffRequest;
|
|
476
579
|
|
|
580
|
+
declare type CompanyLiteParams = {
|
|
581
|
+
id: number;
|
|
582
|
+
name: string;
|
|
583
|
+
logo?: string | null;
|
|
584
|
+
operatingAccount?: string;
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
declare type MeterPayerModel = {
|
|
588
|
+
payments_info: UtilityPayerModel;
|
|
589
|
+
} & LiteUserModel;
|
|
590
|
+
declare type SingleCounterTariffModel = {
|
|
591
|
+
value: number;
|
|
592
|
+
} & TariffLinkModel;
|
|
593
|
+
declare type TariffLinkModel = {
|
|
594
|
+
id: number;
|
|
595
|
+
code_name: string;
|
|
596
|
+
};
|
|
597
|
+
declare type ElectricityMeterTariffModel = {
|
|
598
|
+
T1: number;
|
|
599
|
+
T2?: number;
|
|
600
|
+
T3?: number;
|
|
601
|
+
} & TariffLinkModel;
|
|
602
|
+
declare type MeterTariffModel = {
|
|
603
|
+
initial_value: string | number;
|
|
604
|
+
previous_value: string | null;
|
|
605
|
+
consumption: string | number;
|
|
606
|
+
counter_value: string | number;
|
|
607
|
+
edit_date: string | null;
|
|
608
|
+
};
|
|
609
|
+
declare type CommonMeterParams = {
|
|
610
|
+
id: number;
|
|
611
|
+
passport_number: string;
|
|
612
|
+
archived?: boolean;
|
|
613
|
+
check_date?: string | null;
|
|
614
|
+
activation_date: string | null;
|
|
615
|
+
payer: MeterPayerModel;
|
|
616
|
+
company: CompanyLiteParams;
|
|
617
|
+
operating_account_number?: string | null;
|
|
618
|
+
company_is_administrative: boolean;
|
|
619
|
+
};
|
|
620
|
+
declare type ElectricityMeterValues = {
|
|
621
|
+
T1: MeterTariffModel;
|
|
622
|
+
T2?: MeterTariffModel;
|
|
623
|
+
T3?: MeterTariffModel;
|
|
624
|
+
};
|
|
625
|
+
declare type WaterMeterParams = {
|
|
626
|
+
type: WaterMeterTypes;
|
|
627
|
+
tariff: SingleCounterTariffModel;
|
|
628
|
+
} & CommonMeterParams & MeterTariffModel;
|
|
629
|
+
declare type SingleMeterParams = {
|
|
630
|
+
type?: WaterMeterTypes;
|
|
631
|
+
tariff: SingleCounterTariffModel;
|
|
632
|
+
} & CommonMeterParams & MeterTariffModel;
|
|
633
|
+
declare type ElectricityMeterParams = {
|
|
634
|
+
type: ElectricityMeterTypes;
|
|
635
|
+
values: ElectricityMeterValues;
|
|
636
|
+
tariff: ElectricityMeterTariffModel;
|
|
637
|
+
} & CommonMeterParams;
|
|
638
|
+
declare type WaterMetersResponse = WaterMeterParams[];
|
|
639
|
+
declare type ElectricityMetersResponse = ElectricityMeterParams[];
|
|
640
|
+
declare type GasMetersResponse = SingleMeterParams[];
|
|
641
|
+
declare type HeatingMetersResponse = SingleMeterParams[];
|
|
642
|
+
declare type MetersResponse = WaterMetersResponse | ElectricityMetersResponse | GasMetersResponse | HeatingMetersResponse;
|
|
643
|
+
declare type MeterModel = WaterMeterParams | ElectricityMeterParams | SingleMeterParams;
|
|
644
|
+
|
|
477
645
|
type FillingTagsAutocompleteFields = {
|
|
478
646
|
id: number
|
|
479
647
|
name?: string
|
|
@@ -505,13 +673,6 @@ declare const RoomTypeValues: {
|
|
|
505
673
|
label: string;
|
|
506
674
|
}[];
|
|
507
675
|
|
|
508
|
-
declare type CompanyLiteParams = {
|
|
509
|
-
id: number;
|
|
510
|
-
name: string;
|
|
511
|
-
logo?: string | null;
|
|
512
|
-
operatingAccount?: string;
|
|
513
|
-
};
|
|
514
|
-
|
|
515
676
|
declare type RenovationType = (typeof RenovationTypeValues)[number]["value"][];
|
|
516
677
|
declare type RenovationStyle = (typeof RenovationStyleValues)[number]["value"][];
|
|
517
678
|
declare type RoomType = (typeof RoomTypeValues)[number]["value"][];
|
|
@@ -656,4 +817,4 @@ declare type TariffGroupLiteParams = {
|
|
|
656
817
|
name: string;
|
|
657
818
|
};
|
|
658
819
|
|
|
659
|
-
export { APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, AdministrativeCompanyModel, ApartmentContractTypes, ApartmentDescriptionParams, ApartmentDetailInfoModelFields, ApartmentDetailInfoParams, ApartmentDocumentModel, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentHouseInfoParams, ApartmentInspectionModel, ApartmentLinkModel, ApartmentLinkParams, ApartmentLiteModel, ApartmentLockerParams, ApartmentMainInfoModelFields, ApartmentMainInfoParams, ApartmentMeterAccounts, ApartmentMetroParams, ApartmentModel, ApartmentPartialModel, ApartmentPaymentInfoParams, ApartmentSecurityInfoParams, ApartmentTelecommunicationInfoParams, BillingInfoParams, CatalogItemModel, CatalogItemParams, CityModel, CityParams, ClientTypes, CommonTariffModel, CompanyAPITypes, CompanyByTinRequestBody, CompanyInfoModel, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams, CompanyTypes, ContractLinkModel, CountryModel, CountryParams, CountyModel, DetailObjectInfoInterface, DistrictModel, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterTypes, FetchCompanies, FileBodyRequest, FileParams, FillingInfoFormFields, FillingTagParams, GasTypes, GeolocationParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, HouseTypes, ImageBodyRequest, InternetProviderParams, LatLonParams, LiteMeterInterface, LiteUserModel, LockerModel, MainImageModel, MainObjectInfoInterface, MaxMetersInfoParams, MeterTypes, MetersCountParams, ObjectType, OverlapTypes, ParkingTypes, PatchBillingInfoParams, PatchCompanyParams, PaymentStatuses, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, RegionModel, RegionParams, RenovationParams, RenovationStyle, RenovationType, RentalStatuses, RentalTypes, ResidentialComplexModel, ResourceTypes, RoomModel, RoomParams, RoomType, RoomTypes, SecurityObjectInfoInterface, ServiceContractLiteModel, SettingsParams, TVTypes, TagModel, TariffGroupLiteParams, TariffStatuses, TaxesTypes, UnitOfPaymentTypes, UploadDocumentParams, UploadFileResponse, UtilityTypes, Values, WallMaterials, WaterMeterTypes, WifiParams };
|
|
820
|
+
export { APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, AdministrativeCompanyModel, ApartmentContractTypes, ApartmentDescriptionParams, ApartmentDetailInfoModelFields, ApartmentDetailInfoParams, ApartmentDocumentModel, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentHouseInfoParams, ApartmentInspectionModel, ApartmentLinkModel, ApartmentLinkParams, ApartmentLiteModel, ApartmentLockerParams, ApartmentMainInfoModelFields, ApartmentMainInfoParams, ApartmentMeterAccounts, ApartmentMetroParams, ApartmentModel, ApartmentPartialModel, ApartmentPaymentInfoParams, ApartmentSecurityInfoParams, ApartmentTelecommunicationInfoParams, BillingInfoParams, CatalogItemModel, CatalogItemParams, CityModel, CityParams, ClientTypes, CommonMeterParams, CommonTariffModel, CompanyAPITypes, CompanyByTinRequestBody, CompanyInfoModel, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams, CompanyTypes, ContractLinkModel, ContractStatuses, CountryModel, CountryParams, CountyModel, DetailObjectInfoInterface, DistrictModel, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterParams, ElectricityMeterTypes, ElectricityMeterValues, ElectricityMetersResponse, FetchCompanies, FileBodyRequest, FileParams, FillingInfoFormFields, FillingTagParams, GasMetersResponse, GasTypes, GeolocationParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, HeatingMetersResponse, HouseTypes, ImageBodyRequest, InternetProviderParams, LatLonParams, LiteMeterInterface, LiteUserModel, LockerModel, MainImageModel, MainObjectInfoInterface, MaxMetersInfoParams, MeterModel, MeterPayerModel, MeterTariffModel, MeterTypes, MetersCountParams, MetersResponse, ObjectType, OverlapTypes, ParkingTypes, PatchBillingInfoParams, PatchCompanyParams, PaymentStatuses, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, RegionModel, RegionParams, RenovationParams, RenovationStyle, RenovationType, RentalStatuses, RentalTypes, ResidentialComplexModel, ResourceTypes, RoomModel, RoomParams, RoomType, RoomTypes, SecurityObjectInfoInterface, ServiceContractLiteModel, SettingsParams, SingleMeterParams, TVTypes, TagModel, TariffGroupLiteParams, TariffLinkModel, TariffStatuses, TaxesTypes, UnitOfPaymentTypes, UploadDocumentParams, UploadFileResponse, UtilityPayerModel, UtilityTypes, Values, WallMaterials, WaterMeterParams, WaterMeterTypes, WaterMetersResponse, WifiParams };
|
package/utils/index.d.ts
CHANGED
|
@@ -30,6 +30,139 @@ type CountryParams = {
|
|
|
30
30
|
code: string
|
|
31
31
|
} & CatalogItemParams
|
|
32
32
|
|
|
33
|
+
declare type APISubjectRoles = "maroom" | "owner" | "renter";
|
|
34
|
+
declare type UnitOfPaymentTypes = "percent" | "value";
|
|
35
|
+
declare type UtilityTypes = ResourceTypes | "utility" | "invoice";
|
|
36
|
+
declare type DocumentVisibilityAPIVariants = "everybody" | "renter" | "owner" | "nobody";
|
|
37
|
+
declare type FileBodyRequest = {
|
|
38
|
+
temp_file_id?: number;
|
|
39
|
+
name: string;
|
|
40
|
+
visibility?: DocumentVisibilityAPIVariants;
|
|
41
|
+
};
|
|
42
|
+
declare type ImageBodyRequest = {
|
|
43
|
+
temp_file_id: number;
|
|
44
|
+
image_name: string;
|
|
45
|
+
};
|
|
46
|
+
declare type ClientTypes = "personal" | "company";
|
|
47
|
+
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
48
|
+
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
49
|
+
declare type LiteUserModel = {
|
|
50
|
+
id: number;
|
|
51
|
+
email: string;
|
|
52
|
+
first_name: string;
|
|
53
|
+
last_name: string;
|
|
54
|
+
middle_name: string;
|
|
55
|
+
full_name: string;
|
|
56
|
+
phone: string;
|
|
57
|
+
client_type?: ClientTypes;
|
|
58
|
+
};
|
|
59
|
+
declare type AdministrativeCompanyModel = {
|
|
60
|
+
id: number;
|
|
61
|
+
name: string;
|
|
62
|
+
logo: string | null;
|
|
63
|
+
};
|
|
64
|
+
declare type UtilityPayerModel = {
|
|
65
|
+
utility_type: UtilityTypes;
|
|
66
|
+
payment_made_by?: APISubjectRoles;
|
|
67
|
+
refund_from: APISubjectRoles;
|
|
68
|
+
refund_value?: number | string;
|
|
69
|
+
value_type?: UnitOfPaymentTypes;
|
|
70
|
+
};
|
|
71
|
+
declare type ContractStatuses = "Open" | "Closed";
|
|
72
|
+
|
|
73
|
+
declare type RoommateParams = {};
|
|
74
|
+
declare type RentalInspectionParams = {
|
|
75
|
+
id: number;
|
|
76
|
+
rental_contract_id?: string;
|
|
77
|
+
date: string;
|
|
78
|
+
is_ok?: boolean;
|
|
79
|
+
is_fixed?: boolean;
|
|
80
|
+
note: string;
|
|
81
|
+
};
|
|
82
|
+
declare type RentalContractModel = {
|
|
83
|
+
id: number;
|
|
84
|
+
renter: LiteUserModel;
|
|
85
|
+
owner: LiteUserModel;
|
|
86
|
+
renter_id: number;
|
|
87
|
+
number: string;
|
|
88
|
+
apartment: ApartmentLinkModel;
|
|
89
|
+
owner_id?: string;
|
|
90
|
+
sign_date: string;
|
|
91
|
+
start_date: string;
|
|
92
|
+
end_date?: string;
|
|
93
|
+
close_date?: string;
|
|
94
|
+
month_payment: string;
|
|
95
|
+
day_of_payment?: number;
|
|
96
|
+
termination_showing_days?: number;
|
|
97
|
+
termination_penalty: string;
|
|
98
|
+
initial_commission: string;
|
|
99
|
+
security_payment: string;
|
|
100
|
+
auto_prolongate: boolean;
|
|
101
|
+
installment: number;
|
|
102
|
+
rental_type: RentalTypes;
|
|
103
|
+
roommates_ids?: RoommateParams[];
|
|
104
|
+
status?: ContractStatuses;
|
|
105
|
+
inspections?: RentalInspectionParams[];
|
|
106
|
+
service_contract_id?: number;
|
|
107
|
+
next_inspection: string | null;
|
|
108
|
+
planned_leave_date: string;
|
|
109
|
+
inspection_interval_month?: number;
|
|
110
|
+
renter_payment_status: PaymentStatuses;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
declare type RentPeriodTypes = "short" | "medium" | "long" | "any";
|
|
114
|
+
declare type TaxResidenceType = "resident" | "not_resident";
|
|
115
|
+
declare type FixedCostModel = {
|
|
116
|
+
name: string;
|
|
117
|
+
value: string | number;
|
|
118
|
+
payer: APISubjectRoles;
|
|
119
|
+
};
|
|
120
|
+
declare type ServiceContractModel = {
|
|
121
|
+
id: number;
|
|
122
|
+
apartment: ApartmentLinkModel;
|
|
123
|
+
storage_id: number;
|
|
124
|
+
owner: LiteUserModel;
|
|
125
|
+
renter: LiteUserModel;
|
|
126
|
+
auto_prolongate: boolean;
|
|
127
|
+
renter_notify_on_no_prolongate: boolean;
|
|
128
|
+
inspection_interval_month: number;
|
|
129
|
+
notify_period_month: number;
|
|
130
|
+
archive: boolean;
|
|
131
|
+
number: string;
|
|
132
|
+
sign_date: string;
|
|
133
|
+
start_date: string;
|
|
134
|
+
end_date: string;
|
|
135
|
+
status: ContractStatuses;
|
|
136
|
+
apartment_phone: string;
|
|
137
|
+
phone_paid_by: string;
|
|
138
|
+
utilities_paid_by: string;
|
|
139
|
+
beneficiary: string;
|
|
140
|
+
taxes_type: TaxesTypes;
|
|
141
|
+
initial_commission: string;
|
|
142
|
+
maintenance_commission: string;
|
|
143
|
+
contr_agent_company: string;
|
|
144
|
+
penalty_in_preparation: string;
|
|
145
|
+
penalty_with_rental: string;
|
|
146
|
+
advertising_period: string;
|
|
147
|
+
min_rent_price: number;
|
|
148
|
+
max_rent_price: number;
|
|
149
|
+
rental_type: RentalTypes;
|
|
150
|
+
renter_payment_status: PaymentStatuses;
|
|
151
|
+
water_counters_paid_by?: APISubjectRoles | null;
|
|
152
|
+
heating_counters_paid_by?: APISubjectRoles | null;
|
|
153
|
+
gas_counters_paid_by?: APISubjectRoles | null;
|
|
154
|
+
electricity_counters_paid_by?: APISubjectRoles | null;
|
|
155
|
+
fixed_costs?: FixedCostModel[];
|
|
156
|
+
allowable_price_deviation?: number;
|
|
157
|
+
long_term_type?: RentPeriodTypes;
|
|
158
|
+
not_allowed_pets?: boolean;
|
|
159
|
+
not_allowed_children?: boolean;
|
|
160
|
+
additional_terms?: string;
|
|
161
|
+
tax_residence: TaxResidenceType;
|
|
162
|
+
rental_contracts: RentalContractModel[];
|
|
163
|
+
utility_payers?: UtilityPayerModel[];
|
|
164
|
+
};
|
|
165
|
+
|
|
33
166
|
declare type MainImageModel = {
|
|
34
167
|
id: number;
|
|
35
168
|
image_name: string;
|
|
@@ -49,11 +182,19 @@ declare type ApartmentDocumentModel = {
|
|
|
49
182
|
amount: string;
|
|
50
183
|
};
|
|
51
184
|
declare type ApartmentLockerParams = Omit<LockerParams, "connected">;
|
|
185
|
+
declare type ApartmentLinkModel = {
|
|
186
|
+
id: number;
|
|
187
|
+
address: string;
|
|
188
|
+
apartment_number: string;
|
|
189
|
+
main_image: MainImageModel | null;
|
|
190
|
+
};
|
|
52
191
|
declare type HouseTypes = "ST" | "MB" | "M" | "BR" | "P" | "W" | "BL" | "WP" | "apart_hotel" | "apartment" | "townhouse" | "private_residence";
|
|
53
192
|
declare type RoomTypes = "residential" | "non-residential" | "commercial" | "garage" | "car_space";
|
|
54
193
|
declare type ParkingTypes = "public" | "house" | "underground" | "multi_level";
|
|
55
194
|
declare type TVTypes = "no" | "cable" | "satellite" | "smart_tv";
|
|
56
195
|
declare type ApartmentContractTypes = "service_contract" | "renter_contract";
|
|
196
|
+
declare type ResourceTypes = "water" | "electricity" | "gas" | "heating";
|
|
197
|
+
declare type TaxesTypes = "resident" | "nonresident" | "individual-entrepreneur" | "company" | "self-employed";
|
|
57
198
|
declare type GasTypes = "not_have" | "stove" | "stove_and_heater";
|
|
58
199
|
declare type WallMaterials = "brick" | "panel" | "wood" | "block" | "stone";
|
|
59
200
|
declare type OverlapTypes = "wood" | "stone" | "brick" | "reinforced_concrete" | "metal" | "combined";
|
|
@@ -120,6 +261,7 @@ declare type ApartmentDetailInfoModelFields = {
|
|
|
120
261
|
service_elevators_number: string | number | null;
|
|
121
262
|
payer_code: string;
|
|
122
263
|
};
|
|
264
|
+
declare type RentalTypes = "short" | "medium" | "long";
|
|
123
265
|
declare type ApartmentInspectionModel = {
|
|
124
266
|
inspection_interval_month: number;
|
|
125
267
|
max_price: number | null;
|
|
@@ -138,6 +280,8 @@ declare type ApartmentModel = {
|
|
|
138
280
|
is_closed_period: boolean;
|
|
139
281
|
is_approved_service_expenses: boolean;
|
|
140
282
|
renter_payment_status: PaymentStatuses;
|
|
283
|
+
rental_contracts: RentalContractModel[];
|
|
284
|
+
service_contracts: ServiceContractModel[];
|
|
141
285
|
owner: LiteUserModel | null;
|
|
142
286
|
renter: LiteUserModel | null;
|
|
143
287
|
owner_id: number;
|
|
@@ -217,33 +361,11 @@ declare type RegionModel = CatalogItemModel;
|
|
|
217
361
|
declare type CountyModel = CatalogItemModel;
|
|
218
362
|
declare type DistrictModel = CatalogItemModel;
|
|
219
363
|
|
|
220
|
-
declare type
|
|
221
|
-
declare type FileBodyRequest = {
|
|
222
|
-
temp_file_id?: number;
|
|
223
|
-
name: string;
|
|
224
|
-
visibility?: DocumentVisibilityAPIVariants;
|
|
225
|
-
};
|
|
226
|
-
declare type ImageBodyRequest = {
|
|
227
|
-
temp_file_id: number;
|
|
228
|
-
image_name: string;
|
|
229
|
-
};
|
|
230
|
-
declare type ClientTypes = "personal" | "company";
|
|
231
|
-
declare type RentalStatuses = "Rented out" | "Closed" | "Open";
|
|
232
|
-
declare type PaymentStatuses = "paid" | "unpaid" | null;
|
|
233
|
-
declare type LiteUserModel = {
|
|
234
|
-
id: number;
|
|
235
|
-
email: string;
|
|
236
|
-
first_name: string;
|
|
237
|
-
last_name: string;
|
|
238
|
-
middle_name: string;
|
|
239
|
-
full_name: string;
|
|
240
|
-
phone: string;
|
|
241
|
-
client_type?: ClientTypes;
|
|
242
|
-
};
|
|
243
|
-
declare type AdministrativeCompanyModel = {
|
|
364
|
+
declare type CompanyLiteParams = {
|
|
244
365
|
id: number;
|
|
245
366
|
name: string;
|
|
246
|
-
logo
|
|
367
|
+
logo?: string | null;
|
|
368
|
+
operatingAccount?: string;
|
|
247
369
|
};
|
|
248
370
|
|
|
249
371
|
declare const RenovationTypeValues: readonly [{
|
|
@@ -271,13 +393,6 @@ declare const RoomTypeValues: {
|
|
|
271
393
|
label: string;
|
|
272
394
|
}[];
|
|
273
395
|
|
|
274
|
-
declare type CompanyLiteParams = {
|
|
275
|
-
id: number;
|
|
276
|
-
name: string;
|
|
277
|
-
logo?: string | null;
|
|
278
|
-
operatingAccount?: string;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
396
|
declare type RenovationType = (typeof RenovationTypeValues)[number]["value"][];
|
|
282
397
|
declare type RenovationStyle = (typeof RenovationStyleValues)[number]["value"][];
|
|
283
398
|
declare type RoomType = (typeof RoomTypeValues)[number]["value"][];
|