kui-crm 0.0.21 → 0.0.23
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/agent/cjs/index.js +3 -0
- package/agent/cjs/index.js.map +1 -1
- package/agent/index.d.ts +8 -6
- package/agent/index.js +3 -0
- package/agent/index.js.map +1 -1
- package/cjs/index.js +385 -205
- package/cjs/index.js.map +1 -1
- package/index.d.ts +148 -63
- package/index.js +390 -219
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +11 -9
package/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { InputProps, GridSize, ModalProps as ModalProps$1, ButtonProps } from 'kui-basic';
|
|
2
|
-
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { InputWithControllerProps } from 'kui-complex/dist/InputWithController';
|
|
2
|
+
import { ReactNode, ReactElement, RefObject } from 'react';
|
|
3
|
+
import { InputWithControllerProps as InputWithControllerProps$1 } from 'kui-complex/dist/InputWithController';
|
|
4
4
|
import { FieldValues, UseFormReturn } from 'react-hook-form';
|
|
5
5
|
import { InputFileProps } from 'kui-complex/InputFile';
|
|
6
|
-
import { InputWithControllerProps as InputWithControllerProps$
|
|
6
|
+
import { InputWithControllerProps as InputWithControllerProps$2 } from 'kui-complex/InputWithController';
|
|
7
7
|
import { UploadFileParams } from 'kui-complex/dist/FileItem';
|
|
8
8
|
import { DateTime } from 'luxon';
|
|
9
|
-
import { PaginationRes, MultistepForm, Paginator, SortingFilter
|
|
9
|
+
import { PaginationRes, MultistepForm, Loader, Paginator, SortingFilter } from 'kui-utils';
|
|
10
10
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
11
11
|
import { InputWithAddressAutocompleteProps } from 'kui-complex/dist/InputWithAddressAutocomplete';
|
|
12
12
|
import { MapWrapperProps } from 'kui-complex/dist/MapWrapper';
|
|
@@ -51,7 +51,7 @@ declare namespace CityAutocomplete {
|
|
|
51
51
|
regionName: string;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
declare const _default$
|
|
54
|
+
declare const _default$f: typeof CityAutocomplete;
|
|
55
55
|
|
|
56
56
|
type CountryAutocompleteProps<TFormValues> = {
|
|
57
57
|
name?: string
|
|
@@ -61,7 +61,7 @@ type CountryAutocompleteProps<TFormValues> = {
|
|
|
61
61
|
|
|
62
62
|
type CountryAutocompleteFields = {
|
|
63
63
|
id: number
|
|
64
|
-
code
|
|
64
|
+
code?: string
|
|
65
65
|
name: string
|
|
66
66
|
}
|
|
67
67
|
|
|
@@ -72,7 +72,7 @@ declare namespace CountryAutocomplete {
|
|
|
72
72
|
name: string;
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
declare const _default$
|
|
75
|
+
declare const _default$e: typeof CountryAutocomplete;
|
|
76
76
|
|
|
77
77
|
type InputTypes =
|
|
78
78
|
| "date"
|
|
@@ -87,7 +87,7 @@ type InputTypes =
|
|
|
87
87
|
type InputByTypeProps<T> = {
|
|
88
88
|
variant?: InputTypes
|
|
89
89
|
CustomInput?: ReactNode
|
|
90
|
-
} & InputWithControllerProps<T>
|
|
90
|
+
} & InputWithControllerProps$1<T>
|
|
91
91
|
|
|
92
92
|
type InputParams<T> = {
|
|
93
93
|
size?: GridSize
|
|
@@ -191,7 +191,7 @@ declare type ObjectType = {
|
|
|
191
191
|
declare type DocumentVisibilityVariants = "everybody" | "tenant" | "landlord" | "nobody";
|
|
192
192
|
declare type AddressWithLocationParams = {
|
|
193
193
|
address: string;
|
|
194
|
-
location
|
|
194
|
+
location?: LatLonParams | null;
|
|
195
195
|
};
|
|
196
196
|
declare type LatLonParams = {
|
|
197
197
|
lat: number;
|
|
@@ -292,7 +292,7 @@ declare type PatchBillingInfoParams = {
|
|
|
292
292
|
INN: string;
|
|
293
293
|
SWIFT?: string;
|
|
294
294
|
};
|
|
295
|
-
declare type CompanyParams = {
|
|
295
|
+
declare type CompanyParams$1 = {
|
|
296
296
|
id: number;
|
|
297
297
|
billing_info: BillingInfoParams;
|
|
298
298
|
name: string;
|
|
@@ -309,7 +309,7 @@ declare type FetchCompanies = {
|
|
|
309
309
|
count: number;
|
|
310
310
|
next: string | null;
|
|
311
311
|
previous: string | null;
|
|
312
|
-
results: CompanyParams[];
|
|
312
|
+
results: CompanyParams$1[];
|
|
313
313
|
};
|
|
314
314
|
declare type PatchCompanyParams = {
|
|
315
315
|
billing_info: PatchBillingInfoParams;
|
|
@@ -334,8 +334,8 @@ declare type CompanyMainInfoModel = {
|
|
|
334
334
|
address: string;
|
|
335
335
|
email: string;
|
|
336
336
|
phone: string | null;
|
|
337
|
-
zip_code
|
|
338
|
-
geolocation
|
|
337
|
+
zip_code?: string;
|
|
338
|
+
geolocation?: LatLonParams | null;
|
|
339
339
|
};
|
|
340
340
|
declare type CompanyAPITypes = "administrative_provider" | "service_provider" | "resource_provider";
|
|
341
341
|
declare type CompanyOfficeModel = {
|
|
@@ -345,12 +345,13 @@ declare type CompanyMainOfficeModel = CompanyOfficeWithoutIdModel;
|
|
|
345
345
|
declare type CompanyModel = {
|
|
346
346
|
id: number;
|
|
347
347
|
name: string;
|
|
348
|
+
tin: string;
|
|
348
349
|
apartments_count: number;
|
|
349
350
|
logo?: string | null;
|
|
350
351
|
main_office: CompanyMainOfficeModel | null;
|
|
351
352
|
provider_type: CompanyAPITypes;
|
|
352
353
|
};
|
|
353
|
-
declare type CompanyTypes
|
|
354
|
+
declare type CompanyTypes = "administrative_provider" | "service_provider" | "resource_provider";
|
|
354
355
|
declare type CompanyLogoModel = {
|
|
355
356
|
logo: string | null;
|
|
356
357
|
};
|
|
@@ -360,11 +361,12 @@ declare type CompanyInfoModel = {
|
|
|
360
361
|
} & CompanyModel;
|
|
361
362
|
declare type PostCompaniesRequest = {
|
|
362
363
|
name: string;
|
|
363
|
-
provider_type
|
|
364
|
+
provider_type?: CompanyTypes;
|
|
364
365
|
logo?: File | string;
|
|
365
|
-
main_office:
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
main_office: CompanyMainOfficeModel;
|
|
367
|
+
};
|
|
368
|
+
declare type CompanyByTinRequestBody = {
|
|
369
|
+
tin: string;
|
|
368
370
|
};
|
|
369
371
|
|
|
370
372
|
declare type TagModel = {
|
|
@@ -421,7 +423,7 @@ declare type PostTariffRequest = PostWaterTariffRequest | PostElectricityTariffR
|
|
|
421
423
|
|
|
422
424
|
type FillingTagsAutocompleteProps<TFormValues> = {
|
|
423
425
|
type: ApartmentFillingVariants
|
|
424
|
-
} & InputWithControllerProps<TFormValues>
|
|
426
|
+
} & InputWithControllerProps$1<TFormValues>
|
|
425
427
|
|
|
426
428
|
type FillingTagsAutocompleteFields = {
|
|
427
429
|
id: number
|
|
@@ -551,7 +553,7 @@ declare type InternetProviderParams = {
|
|
|
551
553
|
};
|
|
552
554
|
declare type LiteMeterInterface = {
|
|
553
555
|
id: number;
|
|
554
|
-
|
|
556
|
+
number: string;
|
|
555
557
|
};
|
|
556
558
|
declare type AdministrativeCompany = {
|
|
557
559
|
id?: number;
|
|
@@ -616,21 +618,41 @@ declare namespace RegionAutocomplete {
|
|
|
616
618
|
countryName: string;
|
|
617
619
|
};
|
|
618
620
|
}
|
|
619
|
-
declare const _default$
|
|
621
|
+
declare const _default$d: typeof RegionAutocomplete;
|
|
622
|
+
|
|
623
|
+
type CompanyCreationFields = {
|
|
624
|
+
type?: CompanyTypes
|
|
625
|
+
} & CompanyFields
|
|
626
|
+
|
|
627
|
+
type CompanyFields = {
|
|
628
|
+
inn: string
|
|
629
|
+
name: string
|
|
630
|
+
phone: PhoneParams | null
|
|
631
|
+
email: string
|
|
632
|
+
logo?: FileList
|
|
633
|
+
office: AddressWithLocationParams
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
type CompanyCreationFormProps = {
|
|
637
|
+
handleSubmit: (data: CompanyCreationFields) => void
|
|
638
|
+
}
|
|
620
639
|
|
|
621
640
|
declare type CompanyLiteParams = {
|
|
622
641
|
id: number;
|
|
623
642
|
name: string;
|
|
624
643
|
logo?: string | null;
|
|
625
644
|
};
|
|
626
|
-
declare type
|
|
645
|
+
declare type CompanyParams = {
|
|
646
|
+
id: number;
|
|
647
|
+
logo?: string | null;
|
|
648
|
+
} & Omit<CompanyFields, "logo">;
|
|
627
649
|
|
|
628
650
|
type CompanyAutocompleteProps<TFormValues> = {
|
|
629
651
|
name?: string
|
|
630
652
|
label?: string
|
|
631
653
|
handleSelect?: (company: CompanyLiteParams) => void
|
|
632
654
|
forApartment?: number | null
|
|
633
|
-
} & InputWithControllerProps$
|
|
655
|
+
} & InputWithControllerProps$2<TFormValues>
|
|
634
656
|
|
|
635
657
|
type CompanyAutocompleteFields = {
|
|
636
658
|
id: number
|
|
@@ -645,28 +667,13 @@ declare namespace CompanyAutocomplete {
|
|
|
645
667
|
name: string;
|
|
646
668
|
};
|
|
647
669
|
}
|
|
648
|
-
declare const _default$
|
|
670
|
+
declare const _default$c: typeof CompanyAutocomplete;
|
|
649
671
|
|
|
650
672
|
type ModalProps = {
|
|
651
673
|
open: boolean
|
|
652
674
|
handleClose: () => void
|
|
653
675
|
} & Omit<ModalProps$1, "handleClose">
|
|
654
676
|
|
|
655
|
-
type CompanyCreationFields = {
|
|
656
|
-
name: string
|
|
657
|
-
phone: PhoneParams
|
|
658
|
-
email: string
|
|
659
|
-
logo?: FileList
|
|
660
|
-
office: AddressWithLocationParams
|
|
661
|
-
type: CompanyTypes
|
|
662
|
-
zipCode: string
|
|
663
|
-
city: CityParams | null
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
type CompanyCreationFormProps = {
|
|
667
|
-
handleSubmit: (data: CompanyCreationFields) => void
|
|
668
|
-
}
|
|
669
|
-
|
|
670
677
|
type CompanyCreationModalProps = {
|
|
671
678
|
createCompany: (
|
|
672
679
|
data: CompanyCreationFields
|
|
@@ -674,7 +681,7 @@ type CompanyCreationModalProps = {
|
|
|
674
681
|
} & ModalProps
|
|
675
682
|
|
|
676
683
|
declare function CompanyCreationModal(props: CompanyCreationModalProps): JSX.Element;
|
|
677
|
-
declare const _default$
|
|
684
|
+
declare const _default$b: typeof CompanyCreationModal;
|
|
678
685
|
|
|
679
686
|
type FileUploaderWithPreviewProps<T> = {
|
|
680
687
|
form: UseFormReturn<T>
|
|
@@ -685,7 +692,7 @@ type FileUploaderWithPreviewProps<T> = {
|
|
|
685
692
|
declare function FileUploaderWithPreview<T extends object>(props: FileUploaderWithPreviewProps<T>): JSX.Element;
|
|
686
693
|
|
|
687
694
|
type FormBottomProps = {
|
|
688
|
-
label
|
|
695
|
+
label?: string
|
|
689
696
|
variant?: "create" | "next"
|
|
690
697
|
type?: "submit" | "button"
|
|
691
698
|
handleClick?: () => void
|
|
@@ -696,7 +703,7 @@ type FormBottomProps = {
|
|
|
696
703
|
isFixed?: boolean
|
|
697
704
|
isLoading?: boolean
|
|
698
705
|
endButton?: ReactNode
|
|
699
|
-
} & Omit<ButtonProps, "form">
|
|
706
|
+
} & Omit<ButtonProps, "form" | "variant">
|
|
700
707
|
|
|
701
708
|
declare function FormBottom({ label, variant, handleClick, withPrevStep, handlePrevClick, withDeleteButton, handleDelete, isFixed, isLoading, endButton, ...otherProps }: FormBottomProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
702
709
|
declare namespace FormBottom {
|
|
@@ -724,7 +731,7 @@ declare namespace MapComponent {
|
|
|
724
731
|
withMarker: boolean;
|
|
725
732
|
};
|
|
726
733
|
}
|
|
727
|
-
declare const _default$
|
|
734
|
+
declare const _default$a: typeof MapComponent;
|
|
728
735
|
|
|
729
736
|
declare function Modal({ open, ...other }: ModalProps): JSX.Element;
|
|
730
737
|
|
|
@@ -737,7 +744,7 @@ type OpenMapButtonProps = {
|
|
|
737
744
|
type ModalWithMapProps = OpenMapButtonProps & ModalProps
|
|
738
745
|
|
|
739
746
|
declare function ModalWithMap(props: ModalWithMapProps): JSX.Element;
|
|
740
|
-
declare const _default$
|
|
747
|
+
declare const _default$9: typeof ModalWithMap;
|
|
741
748
|
|
|
742
749
|
declare function OpenMapButton(props: OpenMapButtonProps): JSX.Element;
|
|
743
750
|
|
|
@@ -788,6 +795,8 @@ type ChangeReasonFormFields = {
|
|
|
788
795
|
comment?: string
|
|
789
796
|
}
|
|
790
797
|
|
|
798
|
+
declare const ChangeReasonSchema: yup.ObjectSchema<{}, yup.AnyObject, {}, "">;
|
|
799
|
+
|
|
791
800
|
declare function ChangeReasonFields<T extends object>({ form, customReasons, }: ChangeReasonFieldsProps<T>): JSX.Element;
|
|
792
801
|
|
|
793
802
|
declare function CompanyCreationForm({ handleSubmit }: CompanyCreationFormProps): JSX.Element;
|
|
@@ -808,7 +817,7 @@ type FillingTagCreationModalProps = {
|
|
|
808
817
|
} & ModalProps
|
|
809
818
|
|
|
810
819
|
declare function FillingTagCreationModal(props: FillingTagCreationModalProps): JSX.Element;
|
|
811
|
-
declare const _default$
|
|
820
|
+
declare const _default$8: typeof FillingTagCreationModal;
|
|
812
821
|
|
|
813
822
|
declare function FillingTagsAutocomplete<TFormValues extends object>({ form, name, label, type, defaultValue, ...otherProps }: FillingTagsAutocompleteProps<TFormValues>): JSX.Element;
|
|
814
823
|
declare namespace FillingTagsAutocomplete {
|
|
@@ -817,7 +826,7 @@ declare namespace FillingTagsAutocomplete {
|
|
|
817
826
|
name: string;
|
|
818
827
|
};
|
|
819
828
|
}
|
|
820
|
-
declare const _default$
|
|
829
|
+
declare const _default$7: typeof FillingTagsAutocomplete;
|
|
821
830
|
|
|
822
831
|
type FormWrapperProps<T> = {
|
|
823
832
|
form: UseFormReturn<T>
|
|
@@ -854,7 +863,7 @@ type TariffGroupAutocompleteProps<TFormValues> = {
|
|
|
854
863
|
resource: ResourceTypes
|
|
855
864
|
filter?: string
|
|
856
865
|
filterRequired?: boolean
|
|
857
|
-
} & InputWithControllerProps<TFormValues>
|
|
866
|
+
} & InputWithControllerProps$1<TFormValues>
|
|
858
867
|
|
|
859
868
|
type TariffGroupAutocompleteFields = {
|
|
860
869
|
id: number
|
|
@@ -873,7 +882,7 @@ type PartialPayerProps<T> = {
|
|
|
873
882
|
}
|
|
874
883
|
|
|
875
884
|
type PartialPayerFields = {
|
|
876
|
-
payer
|
|
885
|
+
payer?: APISubjectRoles
|
|
877
886
|
mainPayer?: APISubjectRoles
|
|
878
887
|
refundFrom?: APISubjectRoles
|
|
879
888
|
partType?: UnitOfPaymentTypes
|
|
@@ -920,6 +929,7 @@ type MeterFeaturesFormFields = {
|
|
|
920
929
|
meterPayer?: PartialPayerFields
|
|
921
930
|
type?: MeterTypes
|
|
922
931
|
operationalAccountNumber?: string | null
|
|
932
|
+
archived?: boolean
|
|
923
933
|
}
|
|
924
934
|
|
|
925
935
|
type RenderMeterFieldsSettings = {
|
|
@@ -935,6 +945,14 @@ type RenderMeterFieldsSettings = {
|
|
|
935
945
|
apartmentId?: number | null
|
|
936
946
|
}
|
|
937
947
|
|
|
948
|
+
declare const getMeterFeaturesFieldsSchema: (valuesFields: string[], isReplacementRequired: boolean) => yup.ObjectSchema<{
|
|
949
|
+
[x: string]: any;
|
|
950
|
+
}, yup.AnyObject, {
|
|
951
|
+
[x: string]: any;
|
|
952
|
+
}, "">;
|
|
953
|
+
|
|
954
|
+
declare const getMeterFields: (settings: RenderMeterFieldsSettings) => InputByTypeProps<MeterFeaturesFormFields>[];
|
|
955
|
+
|
|
938
956
|
declare function MeterFeaturesFields(props: MeterFeaturesFieldsProps): JSX.Element;
|
|
939
957
|
|
|
940
958
|
type MeterFeaturesFormProps = {
|
|
@@ -956,6 +974,8 @@ type MeterTypeRadioGroupProps = {
|
|
|
956
974
|
|
|
957
975
|
declare function MeterTypeRadioGroup(props: MeterTypeRadioGroupProps): JSX.Element;
|
|
958
976
|
|
|
977
|
+
declare const getPartialPayerFields: <T>(mainPayer: APISubjectRoles, refundFromRef: RefObject<HTMLInputElement>, variant: PartialPayerVariants, utilityType: UtilityTypes) => any[];
|
|
978
|
+
|
|
959
979
|
declare const PartialPayer: {
|
|
960
980
|
<T extends object>(props: PartialPayerProps<T>): JSX.Element;
|
|
961
981
|
defaultProps: {
|
|
@@ -969,14 +989,14 @@ declare type ReplaceableCountersBlockProps<TFormValue extends FieldValues$1> = {
|
|
|
969
989
|
setIsReplaceable: (value: boolean) => void;
|
|
970
990
|
};
|
|
971
991
|
declare function ReplaceableCountersBlock<TFormValues extends FieldValues$1>({ form, counters, setIsReplaceable, }: ReplaceableCountersBlockProps<TFormValues>): _emotion_react_jsx_runtime.JSX.Element;
|
|
972
|
-
declare const _default$
|
|
992
|
+
declare const _default$6: typeof ReplaceableCountersBlock;
|
|
973
993
|
|
|
974
994
|
type DistrictAutocompleteProps<TFormValues> = {
|
|
975
995
|
name?: string
|
|
976
996
|
label?: string
|
|
977
997
|
onSelect?: (district: DistrictParams) => void
|
|
978
998
|
cityName?: string
|
|
979
|
-
} & InputWithControllerProps<TFormValues>
|
|
999
|
+
} & InputWithControllerProps$1<TFormValues>
|
|
980
1000
|
|
|
981
1001
|
type DistrictAutocompleteFields = {
|
|
982
1002
|
id: number
|
|
@@ -991,7 +1011,7 @@ declare namespace DistrictAutocomplete {
|
|
|
991
1011
|
cityName: string;
|
|
992
1012
|
};
|
|
993
1013
|
}
|
|
994
|
-
declare const _default$
|
|
1014
|
+
declare const _default$5: typeof DistrictAutocomplete;
|
|
995
1015
|
|
|
996
1016
|
type ReplaceableTariffFields = {
|
|
997
1017
|
name: string
|
|
@@ -1043,8 +1063,44 @@ type TariffCreationFormFields = TariffCommonFields &
|
|
|
1043
1063
|
TariffCreationValuesFields &
|
|
1044
1064
|
ChangeReasonFormFields
|
|
1045
1065
|
|
|
1066
|
+
type WaterTariffCreationFields = TariffCommonFields &
|
|
1067
|
+
WaterTariffCreationFormFields &
|
|
1068
|
+
ChangeReasonFormFields
|
|
1069
|
+
|
|
1070
|
+
type ElectricityTariffCreationFields = TariffCommonFields &
|
|
1071
|
+
ElectricityTariffCreationFormFields &
|
|
1072
|
+
ChangeReasonFormFields
|
|
1073
|
+
|
|
1074
|
+
type GasTariffCreationFields = TariffCommonFields &
|
|
1075
|
+
SingleTariffCreationFormFields &
|
|
1076
|
+
ChangeReasonFormFields
|
|
1077
|
+
|
|
1078
|
+
type HeatingTariffCreationFields = TariffCommonFields &
|
|
1079
|
+
SingleTariffCreationFormFields &
|
|
1080
|
+
ChangeReasonFormFields
|
|
1081
|
+
|
|
1082
|
+
type TariffCreationFieldsProps = {
|
|
1083
|
+
isReplaceable: boolean
|
|
1084
|
+
handleSubmit: (data: TariffCreationFormFields) => void
|
|
1085
|
+
creationForm: MultistepForm<TariffCreationFormFields>
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
declare const CommonTariffFieldsSchema: yup.ObjectSchema<{
|
|
1089
|
+
region: {
|
|
1090
|
+
id?: number | null | undefined;
|
|
1091
|
+
name: string;
|
|
1092
|
+
};
|
|
1093
|
+
startDate: {};
|
|
1094
|
+
}, yup.AnyObject, {
|
|
1095
|
+
region: {
|
|
1096
|
+
id: undefined;
|
|
1097
|
+
name: undefined;
|
|
1098
|
+
};
|
|
1099
|
+
startDate: undefined;
|
|
1100
|
+
}, "">;
|
|
1101
|
+
|
|
1046
1102
|
declare function TariffCreationForm(props: TariffCreationFormProps): JSX.Element;
|
|
1047
|
-
declare const _default$
|
|
1103
|
+
declare const _default$4: typeof TariffCreationForm;
|
|
1048
1104
|
|
|
1049
1105
|
type TariffCreationModalProps = TariffCreationFormProps & ModalProps
|
|
1050
1106
|
|
|
@@ -1056,7 +1112,7 @@ declare namespace TariffGroupAutocomplete {
|
|
|
1056
1112
|
name: string;
|
|
1057
1113
|
};
|
|
1058
1114
|
}
|
|
1059
|
-
declare const _default$
|
|
1115
|
+
declare const _default$3: typeof TariffGroupAutocomplete;
|
|
1060
1116
|
|
|
1061
1117
|
type TariffReplacementFieldProps = {
|
|
1062
1118
|
index: number
|
|
@@ -1084,7 +1140,31 @@ type SignInPageProps = {
|
|
|
1084
1140
|
isLoading?: boolean
|
|
1085
1141
|
}
|
|
1086
1142
|
|
|
1087
|
-
declare const _default: (props: SignInPageProps) => JSX.Element;
|
|
1143
|
+
declare const _default$2: (props: SignInPageProps) => JSX.Element;
|
|
1144
|
+
|
|
1145
|
+
type ErrorPopupProps = {
|
|
1146
|
+
label?: string
|
|
1147
|
+
onClose?: () => void
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
declare function ErrorPopup({ label, onClose }: ErrorPopupProps): JSX.Element | null;
|
|
1151
|
+
|
|
1152
|
+
type LoaderPopupProps = {
|
|
1153
|
+
label?: string
|
|
1154
|
+
onClose?: () => void
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
declare function LoaderPopup({ label, onClose }: LoaderPopupProps): JSX.Element | null;
|
|
1158
|
+
|
|
1159
|
+
type LoaderStateProps = {
|
|
1160
|
+
loader?: Loader
|
|
1161
|
+
onlyError?: boolean
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
declare function LoaderState({ loader, onlyError }: LoaderStateProps): JSX.Element;
|
|
1165
|
+
declare const _default$1: typeof LoaderState;
|
|
1166
|
+
|
|
1167
|
+
declare const _default: <T extends object>(props: InputWithControllerProps<T_1>) => JSX.Element;
|
|
1088
1168
|
|
|
1089
1169
|
declare class CitiesStore {
|
|
1090
1170
|
cities: CityParams[];
|
|
@@ -1096,35 +1176,39 @@ declare class CitiesStore {
|
|
|
1096
1176
|
}
|
|
1097
1177
|
|
|
1098
1178
|
declare class CompaniesStore {
|
|
1099
|
-
companies:
|
|
1179
|
+
companies: CompanyParams[];
|
|
1100
1180
|
paginator: Paginator;
|
|
1101
1181
|
filter: SortingFilter;
|
|
1102
1182
|
loader: Loader;
|
|
1103
1183
|
creationLoader: Loader;
|
|
1104
1184
|
constructor();
|
|
1105
1185
|
fetchAll: () => Promise<void>;
|
|
1106
|
-
createCompany: (data: CompanyCreationFields) => Promise<
|
|
1186
|
+
createCompany: (data: CompanyCreationFields) => Promise<CompanyParams | null>;
|
|
1107
1187
|
createLogo: (companyId: number, logo: File) => Promise<string | null | undefined>;
|
|
1108
1188
|
static getCompanyParams: (company: CompanyModel) => {
|
|
1109
|
-
id: number;
|
|
1110
1189
|
name: string;
|
|
1190
|
+
phone: PhoneParams | null;
|
|
1191
|
+
inn: string;
|
|
1192
|
+
email: string;
|
|
1193
|
+
office: AddressWithLocationParams;
|
|
1194
|
+
id: number;
|
|
1111
1195
|
logo: string | null | undefined;
|
|
1112
1196
|
};
|
|
1113
1197
|
static getCreationBody: (data: CompanyCreationFields) => {
|
|
1114
1198
|
name: string;
|
|
1115
|
-
provider_type: CompanyTypes
|
|
1199
|
+
provider_type: CompanyTypes | undefined;
|
|
1200
|
+
tin: string;
|
|
1116
1201
|
main_office: {
|
|
1117
1202
|
address: string;
|
|
1118
|
-
city: number | undefined;
|
|
1119
1203
|
email: string;
|
|
1120
|
-
phone: string;
|
|
1121
|
-
zip_code: string;
|
|
1204
|
+
phone: string | null;
|
|
1122
1205
|
geolocation: {
|
|
1123
1206
|
lat: number;
|
|
1124
1207
|
lon: number;
|
|
1125
|
-
};
|
|
1208
|
+
} | undefined;
|
|
1126
1209
|
};
|
|
1127
1210
|
};
|
|
1211
|
+
static getCompanyFields: (company: CompanyModel) => Omit<CompanyFields, "logo">;
|
|
1128
1212
|
}
|
|
1129
1213
|
|
|
1130
1214
|
declare class CountriesStore {
|
|
@@ -1267,6 +1351,7 @@ declare const CompaniesAgent: {
|
|
|
1267
1351
|
all: <T>(offset: number, limit: number, params: string) => Promise<T>;
|
|
1268
1352
|
create: <T_1>(data: PostCompaniesRequest) => Promise<T_1>;
|
|
1269
1353
|
createLogo: <T_2>(companyId: number, logo: FormData) => Promise<T_2>;
|
|
1354
|
+
findCompanyByINN: <T_3>(body: CompanyByTinRequestBody) => Promise<T_3>;
|
|
1270
1355
|
};
|
|
1271
1356
|
|
|
1272
1357
|
declare const UploadAgent: {
|
|
@@ -1384,4 +1469,4 @@ declare const matchesServiceTypes: {
|
|
|
1384
1469
|
own: string;
|
|
1385
1470
|
};
|
|
1386
1471
|
|
|
1387
|
-
export { APIPayerValues, APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, ApartmentContractTypes, ApartmentDetailInfoModelFields, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentLinkModel, ApartmentLinkParams, ApartmentMainInfoModelFields, BillingInfoParams, BooleanValues, CatalogItemModel, CatalogItemParams, CatalogsAgent, ChangeReasonFields, CitiesStore, _default$
|
|
1472
|
+
export { APIPayerValues, APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, ApartmentContractTypes, ApartmentDetailInfoModelFields, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentLinkModel, ApartmentLinkParams, ApartmentMainInfoModelFields, BillingInfoParams, BooleanValues, CatalogItemModel, CatalogItemParams, CatalogsAgent, ChangeReasonField, ChangeReasonFields, ChangeReasonFieldsProps, ChangeReasonFormFields, ChangeReasonSchema, CitiesStore, _default$f as CityAutocomplete, CityAutocompleteFields, CityAutocompleteProps, CityModel, CityParams, CommonTariffFieldsSchema, CommonTariffModel, CompaniesAgent, CompaniesStore, CompanyAPITypes, _default$c as CompanyAutocomplete, CompanyAutocompleteFields, CompanyByTinRequestBody, CompanyCreationFields, CompanyCreationForm, CompanyCreationFormProps, _default$b as CompanyCreationModal, CompanyFields, CompanyInfoModel, _default as CompanyInnAutocomplete, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams$1 as CompanyParams, CompanyTypes, CompanyTypesValues, ContractLinkModel, CountriesStore, _default$e as CountryAutocomplete, CountryAutocompleteFields, CountryModel, CountryParams, CountyModel, _default$5 as DistrictAutocomplete, DistrictModel, DistrictsStore, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterTypes, ElectricityTariffCreationFields, ElectricityValues, ErrorPopup, FetchCompanies, FileBodyRequest, FileParams, FileUploaderWithPreview, FileWithVisibility, FillingInfoFormFields, FillingTagCreationForm, _default$8 as FillingTagCreationModal, FillingTagParams, FillingTagsAgent, _default$7 as FillingTagsAutocomplete, FillingTagsAutocompleteFields, FillingTagsAutocompleteProps, FillingTagsStore, FillingTypeValues, FormBottom, FormBottomProps, FormWrapper, FormWrapperProps, GasTariffCreationFields, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, HeadingWithButton, HeatingTariffCreationFields, ImageBodyRequest, ImpairmentsTypeValues, InputByType, InputByTypeProps, InputFileWithVisibility, InputFileWithVisibilityFields, InputParams, InputTypes, InputWithMap, InspectionTypeValues, InternetProviderParams, KUICrmSettings, kuiSettings as KUISettings, LatLonParams, LiteMeterInterface, LoaderPopup, _default$1 as LoaderState, LockerModel, MainImageModel, _default$a as MapComponent, MeterFeaturesFields, MeterFeaturesFieldsProps, MeterFeaturesForm, MeterFeaturesFormFields, MeterTypeRadioGroup, MeterTypes, MetersCountParams, Modal, ModalProps, _default$9 as ModalWithMap, ObjectType, OpenMapButton, ParkingTypes, ParkingTypesValues, PartialPayer, PartialPayerFields, PartialPayerProps, PartialPayerValues, PartialPayerVariants, PatchBillingInfoParams, PatchCompanyParams, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, PreviewImageCard, _default$d as RegionAutocomplete, RegionAutocompleteFields, RegionAutocompleteProps, RegionModel, RegionParams, RegionsStore, RenderMeterFieldsSettings, RenovationParams, RenovationStyle, RenovationStyleValues, RenovationType, RenovationTypeValues, _default$6 as ReplaceableCountersBlock, ResidentialComplexModel, ResourceTypes, ResourceValues, RoomModel, RoomParams, RoomType, RoomTypeValues, RoomTypes, RoomTypesValues, SettingsParams, _default$2 as SignInPage, SquarePreviewImage, TVTypes, TVTypesValues, TagModel, TariffCreationFieldsProps, _default$4 as TariffCreationForm, TariffCreationFormFields, TariffCreationFormProps, TariffCreationModal, TariffCreationValuesFields, _default$3 as TariffGroupAutocomplete, TariffGroupLiteParams, TariffReplacementField, TariffReplacementFields, TariffStatuses, TariffsAgent, TariffsLiteStore, TaxResidenceValues, TaxTypeValues, TaxesTypes, TwoOptionForAutocomplete, UnitOfPaymentTypes, UnitOfPaymentValues, UploadAgent, UploadDocumentParams, UploadFileResponse, UtilityTypes, Values, WaterMeterTypes, WaterTariffCreationFields, WaterValues, WifiParams, authFlag, csrfTokenKey, defaultRequiredMessage, genderMatches, getFillingInfoFields, getMeterFeaturesFieldsSchema, getMeterFields, getNumbersValues, getPartialPayerFields, matchesAPICompanyTypes, matchesAPIFillingTypes, matchesAPISubjectRoles, matchesAPIVisibilityVariants, matchesApartmentStatuses, matchesCompanyTypes, matchesFillingTypes, matchesServiceTypes, matchesSubjectRoles, matchesVisibilityVariants, phoneNonRequiredSchema, phoneSchema, phoneWithConditionSchema, positiveNumberSchema, requests, sessionIdKey, setFileFromFileWithVisibility, uploadDocument, uploadDocuments, uploadFile, uploadFiles, uploadImages, uploadNewFile };
|