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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kui-crm",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "crm complex fields",
5
5
  "main": "./cjs/index.js",
6
6
  "types": "./index.d.ts",
package/types/index.d.ts CHANGED
@@ -98,7 +98,7 @@ declare type ObjectType = {
98
98
  declare type DocumentVisibilityVariants = "everybody" | "tenant" | "landlord" | "nobody";
99
99
  declare type AddressWithLocationParams = {
100
100
  address: string;
101
- location: LatLonParams | null;
101
+ location?: LatLonParams | null;
102
102
  };
103
103
  declare type LatLonParams = {
104
104
  lat: number;
@@ -241,8 +241,8 @@ declare type CompanyMainInfoModel = {
241
241
  address: string;
242
242
  email: string;
243
243
  phone: string | null;
244
- zip_code: string;
245
- geolocation: LatLonParams | null;
244
+ zip_code?: string;
245
+ geolocation?: LatLonParams | null;
246
246
  };
247
247
  declare type CompanyAPITypes = "administrative_provider" | "service_provider" | "resource_provider";
248
248
  declare type CompanyOfficeModel = {
@@ -252,6 +252,7 @@ declare type CompanyMainOfficeModel = CompanyOfficeWithoutIdModel;
252
252
  declare type CompanyModel = {
253
253
  id: number;
254
254
  name: string;
255
+ tin: string;
255
256
  apartments_count: number;
256
257
  logo?: string | null;
257
258
  main_office: CompanyMainOfficeModel | null;
@@ -267,11 +268,12 @@ declare type CompanyInfoModel = {
267
268
  } & CompanyModel;
268
269
  declare type PostCompaniesRequest = {
269
270
  name: string;
270
- provider_type: CompanyTypes;
271
+ provider_type?: CompanyTypes;
271
272
  logo?: File | string;
272
- main_office: {
273
- city?: number;
274
- } & Omit<CompanyMainOfficeModel, "city">;
273
+ main_office: CompanyMainOfficeModel;
274
+ };
275
+ declare type CompanyByTinRequestBody = {
276
+ tin: string;
275
277
  };
276
278
 
277
279
  declare type TagModel = {
@@ -386,7 +388,7 @@ declare type InternetProviderParams = {
386
388
  };
387
389
  declare type LiteMeterInterface = {
388
390
  id: number;
389
- passport: string;
391
+ number: string;
390
392
  };
391
393
  declare type AdministrativeCompany = {
392
394
  id?: number;
@@ -445,4 +447,4 @@ declare type TariffGroupLiteParams = {
445
447
  name: string;
446
448
  };
447
449
 
448
- export { APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, ApartmentContractTypes, ApartmentDetailInfoModelFields, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentLinkModel, ApartmentLinkParams, ApartmentMainInfoModelFields, BillingInfoParams, CatalogItemModel, CatalogItemParams, CityModel, CityParams, CommonTariffModel, CompanyAPITypes, CompanyInfoModel, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams, CompanyTypes, ContractLinkModel, CountryModel, CountryParams, CountyModel, DistrictModel, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterTypes, FetchCompanies, FileBodyRequest, FileParams, FillingInfoFormFields, FillingTagParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, ImageBodyRequest, InternetProviderParams, LatLonParams, LiteMeterInterface, LockerModel, MainImageModel, MeterTypes, MetersCountParams, ObjectType, ParkingTypes, PatchBillingInfoParams, PatchCompanyParams, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, RegionModel, RegionParams, RenovationParams, RenovationStyle, RenovationType, ResidentialComplexModel, ResourceTypes, RoomModel, RoomParams, RoomType, RoomTypes, SettingsParams, TVTypes, TagModel, TariffGroupLiteParams, TariffStatuses, TaxesTypes, UnitOfPaymentTypes, UploadDocumentParams, UploadFileResponse, UtilityTypes, Values, WaterMeterTypes, WifiParams };
450
+ export { APISubjectRoles, AddressWithLocationParams, AdministrativeCompany, ApartmentContractTypes, ApartmentDetailInfoModelFields, ApartmentFillingAPIVariants, ApartmentFillingVariants, ApartmentLinkModel, ApartmentLinkParams, ApartmentMainInfoModelFields, BillingInfoParams, CatalogItemModel, CatalogItemParams, CityModel, CityParams, CommonTariffModel, CompanyAPITypes, CompanyByTinRequestBody, CompanyInfoModel, CompanyLogoModel, CompanyMainInfoModel, CompanyMainOfficeModel, CompanyModel, CompanyOfficeModel, CompanyOfficeWithoutIdModel, CompanyParams, CompanyTypes, ContractLinkModel, CountryModel, CountryParams, CountyModel, DistrictModel, DocumentVisibilityAPIVariants, DocumentVisibilityVariants, DocumentWithVisibility, ElectricityMeterTypes, FetchCompanies, FileBodyRequest, FileParams, FillingInfoFormFields, FillingTagParams, GetCatalogResponse, GetCitiesResponse, GetCommonTariffsResponse, GetCompaniesResponse, GetCountiesResponse, GetCountriesResponse, GetDistrictsResponse, GetLockersResponse, GetRegionsResponse, GetResidentialComplexesResponse, GetTagsResponse, ImageBodyRequest, InternetProviderParams, LatLonParams, LiteMeterInterface, LockerModel, MainImageModel, MeterTypes, MetersCountParams, ObjectType, ParkingTypes, PatchBillingInfoParams, PatchCompanyParams, PhoneParams, PostCommonTariffParams, PostCompaniesRequest, PostElectricityTariffRequest, PostGasTariffRequest, PostHeatingTariffRequest, PostTariffRequest, PostWaterTariffRequest, RegionModel, RegionParams, RenovationParams, RenovationStyle, RenovationType, ResidentialComplexModel, ResourceTypes, RoomModel, RoomParams, RoomType, RoomTypes, SettingsParams, TVTypes, TagModel, TariffGroupLiteParams, TariffStatuses, TaxesTypes, UnitOfPaymentTypes, UploadDocumentParams, UploadFileResponse, UtilityTypes, Values, WaterMeterTypes, WifiParams };