@hapl/api-queries 0.1.116 → 0.1.119

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/api-queries.cjs.development.js +309 -10
  3. package/dist/api-queries.cjs.development.js.map +1 -1
  4. package/dist/api-queries.cjs.production.min.js +1 -1
  5. package/dist/api-queries.cjs.production.min.js.map +1 -1
  6. package/dist/api-queries.esm.js +309 -10
  7. package/dist/api-queries.esm.js.map +1 -1
  8. package/dist/clients/v1/api/index.d.ts +2 -1
  9. package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReports/index.d.ts +42 -0
  10. package/dist/clients/v1/api/serviceRequest/findServiceRequests/index.d.ts +12 -10
  11. package/dist/clients/v1/api/valuation/findValuationByServiceRequestId/index.d.ts +29 -0
  12. package/dist/clients/v1/dictionaries/Valuation.d.ts +10 -0
  13. package/dist/clients/v1/dictionaries/index.d.ts +1 -0
  14. package/dist/clients/v1/index.d.ts +2 -1
  15. package/dist/clients/v1/types/Valuation.d.ts +69 -0
  16. package/dist/clients/v1/types/index.d.ts +1 -0
  17. package/dist/registry/v1/api/{complexes → complex}/findComplexIds/index.d.ts +0 -0
  18. package/dist/registry/v1/api/index.d.ts +2 -1
  19. package/dist/registry/v1/api/realty/findRealties/index.d.ts +34 -0
  20. package/dist/registry/v1/dictionaries/AddressBTIParams.d.ts +24 -0
  21. package/dist/registry/v1/dictionaries/Realty.d.ts +71 -0
  22. package/dist/registry/v1/dictionaries/Shape.d.ts +11 -0
  23. package/dist/registry/v1/dictionaries/index.d.ts +3 -0
  24. package/dist/registry/v1/index.d.ts +3 -0
  25. package/dist/registry/v1/types/Address.d.ts +31 -0
  26. package/dist/registry/v1/types/AddressBTIParams.d.ts +39 -0
  27. package/dist/registry/v1/types/AddressMetroDistance.d.ts +9 -0
  28. package/dist/registry/v1/types/Image.d.ts +15 -0
  29. package/dist/registry/v1/types/Realty.d.ts +116 -0
  30. package/dist/registry/v1/types/RealtyOffer.d.ts +6 -0
  31. package/dist/registry/v1/types/Shape.d.ts +24 -0
  32. package/dist/registry/v1/types/index.d.ts +7 -0
  33. package/package.json +1 -1
  34. package/src/clients/v1/api/index.ts +3 -1
  35. package/src/clients/v1/api/serviceRequest/{findServiceRequestSellerReport → findServiceRequestSellerReports}/index.ts +13 -13
  36. package/src/clients/v1/api/serviceRequest/findServiceRequests/index.ts +9 -7
  37. package/src/clients/v1/api/valuation/findValuationByServiceRequestId/index.ts +42 -0
  38. package/src/clients/v1/dictionaries/Valuation.ts +11 -0
  39. package/src/clients/v1/dictionaries/index.ts +1 -0
  40. package/src/clients/v1/index.ts +14 -5
  41. package/src/clients/v1/types/Valuation.ts +57 -0
  42. package/src/clients/v1/types/index.ts +1 -0
  43. package/src/registry/v1/api/{complexes → complex}/findComplexIds/index.ts +0 -0
  44. package/src/registry/v1/api/index.ts +3 -1
  45. package/src/registry/v1/api/realty/findRealties/index.ts +54 -0
  46. package/src/registry/v1/dictionaries/AddressBTIParams.ts +25 -0
  47. package/src/registry/v1/dictionaries/Realty.ts +84 -0
  48. package/src/registry/v1/dictionaries/Shape.ts +12 -0
  49. package/src/registry/v1/dictionaries/index.ts +3 -0
  50. package/src/registry/v1/index.ts +10 -0
  51. package/src/registry/v1/types/Address.ts +29 -0
  52. package/src/registry/v1/types/AddressBTIParams.ts +42 -0
  53. package/src/registry/v1/types/AddressMetroDistance.ts +9 -0
  54. package/src/registry/v1/types/Image.ts +13 -0
  55. package/src/registry/v1/types/Realty.ts +123 -0
  56. package/src/registry/v1/types/RealtyOffer.ts +6 -0
  57. package/src/registry/v1/types/Shape.ts +24 -0
  58. package/src/registry/v1/types/index.ts +7 -0
  59. package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReport/index.d.ts +0 -42
@@ -43,7 +43,7 @@ export * from './serviceRequest/findServiceRequestActivities';
43
43
  export * from './serviceRequest/findServiceRequestById';
44
44
  export * from './serviceRequest/findServiceRequestDuplicates';
45
45
  export * from './serviceRequest/findServiceRequests';
46
- export * from './serviceRequest/findServiceRequestSellerReport';
46
+ export * from './serviceRequest/findServiceRequestSellerReports';
47
47
  export * from './serviceRequest/findServiceRequestShortInfo';
48
48
  export * from './serviceRequest/findServiceRequestShortInfoById';
49
49
  export * from './serviceRequest/findServiceRequestShortInfoByDealId';
@@ -61,3 +61,4 @@ export * from './users/updateUser';
61
61
  export * from './users/fireUser';
62
62
  export * from './users/assignSubordinateUsers';
63
63
  export * from './task/findTasks';
64
+ export * from './valuation/findValuationByServiceRequestId';
@@ -0,0 +1,42 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { ServiceRequestSellerReport } from '../../../types';
3
+ declare type ErrorData = {
4
+ success: false;
5
+ data: {
6
+ error: string;
7
+ };
8
+ };
9
+ declare type ResultData = {
10
+ ids: string[];
11
+ byId: Record<string, ServiceRequestSellerReport>;
12
+ meta: {
13
+ total: number;
14
+ };
15
+ };
16
+ declare type ResultError = ErrorData['data']['error'];
17
+ export declare type FindServiceRequestSellerReportsParams = {
18
+ sorting?: {
19
+ type: 'createdAt';
20
+ direction: 'asc' | 'desc';
21
+ };
22
+ limits?: {
23
+ page?: number;
24
+ count?: number | 'all';
25
+ };
26
+ };
27
+ export declare type FindServiceRequestSellerReportsUrlParams = {
28
+ id: number;
29
+ };
30
+ export declare type FindServiceRequestSellerReportsHeaders = {
31
+ 'x-auth-hc': string;
32
+ };
33
+ export declare type FindServiceRequestSellerReportsData = AxiosResponse<ResultData>;
34
+ export declare type FindServiceRequestSellerReportsError = AxiosError<ResultError>;
35
+ export declare type FindServiceRequestSellerReportsConfig = {
36
+ baseURL?: string;
37
+ urlParams: FindServiceRequestSellerReportsUrlParams;
38
+ params: FindServiceRequestSellerReportsParams;
39
+ headers?: FindServiceRequestSellerReportsHeaders;
40
+ };
41
+ export declare function findServiceRequestSellerReportsRequest({ baseURL, urlParams, headers, params, }: FindServiceRequestSellerReportsConfig): Promise<FindServiceRequestSellerReportsData>;
42
+ export {};
@@ -16,25 +16,27 @@ declare type ResultData = {
16
16
  declare type ResultError = ErrorData['data']['error'];
17
17
  export declare type FindServiceRequestsParams = {
18
18
  filter?: {
19
- address?: string;
20
- category?: ServiceRequestCategory | ServiceRequestCategory[];
21
- createdAt?: string;
22
- 'contract.id'?: number;
23
19
  'contract.formalId'?: string;
20
+ 'contract.id'?: number;
24
21
  'contract.isSigned'?: boolean;
25
22
  'curator.id'?: number;
26
23
  'curator.supervisor'?: number;
27
- hasValuation?: boolean;
24
+ 'realty.price'?: number | {
25
+ from?: number;
26
+ to?: number;
27
+ };
28
+ 'user.id'?: number;
29
+ 'user.phones.phone.number'?: string;
30
+ address?: string;
31
+ category?: ServiceRequestCategory | ServiceRequestCategory[];
32
+ createdAt?: string;
28
33
  hasPublishedValuations?: boolean;
34
+ hasValuation?: boolean;
29
35
  id?: number | number[];
30
36
  idOrFormalId?: string;
31
37
  isDeferred?: boolean;
32
38
  isPublished?: boolean;
33
39
  realtyExtId?: number;
34
- 'realty.price'?: number | {
35
- from?: number;
36
- to?: number;
37
- };
38
40
  showTrainees?: boolean;
39
41
  source?: string;
40
42
  status?: ServiceRequestStatus | ServiceRequestStatus[];
@@ -43,7 +45,7 @@ export declare type FindServiceRequestsParams = {
43
45
  to?: string;
44
46
  };
45
47
  type?: ServiceRequestType | ServiceRequestType[];
46
- 'user.phones.phone.number'?: string;
48
+ withRealty?: boolean;
47
49
  };
48
50
  limits?: {
49
51
  page: number;
@@ -0,0 +1,29 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { Valuation } from '../../../types';
3
+ declare type SuccessData = {
4
+ success: true;
5
+ data: Valuation;
6
+ };
7
+ declare type ErrorData = {
8
+ success: false;
9
+ data: {
10
+ error: string;
11
+ };
12
+ };
13
+ declare type ResultData = SuccessData['data'];
14
+ declare type ResultError = ErrorData['data']['error'];
15
+ export declare type FindValuationByServiceRequestIdUrlParams = {
16
+ id: number;
17
+ };
18
+ export declare type FindValuationByServiceRequestIdParams = {
19
+ withDrafts?: boolean;
20
+ };
21
+ export declare type FindValuationByServiceRequestIdData = AxiosResponse<ResultData>;
22
+ export declare type FindValuationByServiceRequestIdError = AxiosError<ResultError>;
23
+ export declare type FindValuationByServiceRequestIdConfig = {
24
+ baseURL?: string;
25
+ urlParams: FindValuationByServiceRequestIdUrlParams;
26
+ params?: FindValuationByServiceRequestIdParams;
27
+ };
28
+ export declare function findValuationByServiceRequestIdRequest({ baseURL, urlParams, params, }: FindValuationByServiceRequestIdConfig): Promise<FindValuationByServiceRequestIdData>;
29
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ValuationConcurrency } from '../types';
2
+ export declare const ValuationDictionary: {
3
+ Concurrency: {
4
+ low: string;
5
+ medium: string;
6
+ "medium-high": string;
7
+ high: string;
8
+ "very-high": string;
9
+ };
10
+ };
@@ -16,3 +16,4 @@ export * from './ServiceRequestCategorizedFile';
16
16
  export * from './Shape';
17
17
  export * from './Task';
18
18
  export * from './User';
19
+ export * from './Valuation';
@@ -56,7 +56,7 @@ export declare class Api {
56
56
  returnDeferredServiceRequest: (body: api.ReturnDeferredServiceRequestBody, headers: api.ReturnDeferredServiceRequestHeaders) => Promise<api.ReturnDeferredServiceRequestData>;
57
57
  startServiceRequestModeration: (urlParams: api.StartServiceRequestModerationUrlParams, headers: api.StartServiceRequestModerationHeaders) => Promise<api.StartServiceRequestModerationData>;
58
58
  startServiceRequestModerationForOldRealty: (urlParams: api.StartServiceRequestModerationForOldRealtyUrlParams, headers: api.StartServiceRequestModerationForOldRealtyHeaders) => Promise<api.StartServiceRequestModerationForOldRealtyData>;
59
- findServiceRequestSellerReport: (urlParams: api.FindServiceRequestSellerReportUrlParams, params: api.FindServiceRequestSellerReportParams, headers: api.FindServiceRequestSellerReportHeaders) => Promise<api.FindServiceRequestSellerReportData>;
59
+ findServiceRequestSellerReports: (urlParams: api.FindServiceRequestSellerReportsUrlParams, params: api.FindServiceRequestSellerReportsParams, headers: api.FindServiceRequestSellerReportsHeaders) => Promise<api.FindServiceRequestSellerReportsData>;
60
60
  findSoldStatistic: (headers?: api.FindSoldStatisticHeaders | undefined) => Promise<api.FindSoldStatisticData>;
61
61
  findTasks: (params: api.FindTasksParams, headers: api.FindTasksHeaders) => Promise<api.FindTasksData>;
62
62
  createUser: (body: api.CreateUserBody, headers: api.CreateUserHeaders) => Promise<api.CreateUserData>;
@@ -65,6 +65,7 @@ export declare class Api {
65
65
  updateUser: (urlParams: api.UpdateUserUrlParams, body: api.UpdateUserBody, headers: api.UpdateUserHeaders) => Promise<api.UpdateUserData>;
66
66
  fireUser: (urlParams: api.FireUserUrlParams, body: api.FireUserBody, headers: api.FireUserHeaders) => Promise<api.FireUserData>;
67
67
  assignSubordinateUsers: (urlParams: api.AssignSubordinateUsersUrlParams, body: api.AssignSubordinateUsersBody, headers: api.AssignSubordinateUsersHeaders) => Promise<api.AssignSubordinateUsersData>;
68
+ findValuationByServiceRequestId: (urlParams: api.FindValuationByServiceRequestIdUrlParams, params?: api.FindValuationByServiceRequestIdParams | undefined) => Promise<api.FindValuationByServiceRequestIdData>;
68
69
  }
69
70
  export * from './api';
70
71
  export * from './dictionaries';
@@ -0,0 +1,69 @@
1
+ import { ServiceRequest } from './ServiceRequest';
2
+ export declare enum ValuationConcurrency {
3
+ Low = "low",
4
+ Medium = "medium",
5
+ MediumHigh = "medium-high",
6
+ High = "high",
7
+ VeryHigh = "very-high"
8
+ }
9
+ declare type ValueRange = {
10
+ max: number;
11
+ min: number;
12
+ p10: number;
13
+ p50: number;
14
+ p90: number;
15
+ };
16
+ declare type Stats = {
17
+ count: number;
18
+ outOfRange: number;
19
+ area?: ValueRange;
20
+ price?: ValueRange;
21
+ realtyIds?: number[];
22
+ };
23
+ export declare type Valuation = {
24
+ addresses: number[];
25
+ comments: Array<{
26
+ comment: string;
27
+ realtyId: number;
28
+ }>;
29
+ createdAt: string;
30
+ id: number;
31
+ isDraft: boolean;
32
+ isOnlyInMarketRangeShown: boolean;
33
+ realties: number[];
34
+ realtyParams: any[] | {
35
+ address?: string;
36
+ area?: number;
37
+ floor?: number;
38
+ lat?: number;
39
+ lng?: number;
40
+ price?: number;
41
+ roomsNumber?: number;
42
+ };
43
+ serviceRequest: Partial<ServiceRequest> & Required<Pick<ServiceRequest, 'id'>>;
44
+ calculationData?: {
45
+ active: Stats;
46
+ concurrencyLevel: ValuationConcurrency;
47
+ inventoryPerBuyer: number;
48
+ sold: Stats;
49
+ };
50
+ comment?: string;
51
+ filter?: {
52
+ address?: string;
53
+ area?: {
54
+ from?: number;
55
+ to?: number;
56
+ };
57
+ floor?: {
58
+ from?: number;
59
+ to?: number;
60
+ };
61
+ floorsNumber?: {
62
+ from: number;
63
+ to: number;
64
+ };
65
+ isShortDateRange?: boolean;
66
+ roomsNumber?: number[];
67
+ };
68
+ };
69
+ export {};
@@ -27,3 +27,4 @@ export * from './Task';
27
27
  export * from './User';
28
28
  export * from './UserCase';
29
29
  export * from './UserPhone';
30
+ export * from './Valuation';
@@ -1 +1,2 @@
1
- export * from './complexes/findComplexIds';
1
+ export * from './complex/findComplexIds';
2
+ export * from './realty/findRealties';
@@ -0,0 +1,34 @@
1
+ import { AxiosResponse, AxiosError } from 'axios';
2
+ import { Realty } from '../../../types';
3
+ declare type ResultData = {
4
+ ids: number[];
5
+ byId: Record<string, Realty>;
6
+ meta: {
7
+ total: number;
8
+ };
9
+ };
10
+ declare type ResultError = string;
11
+ export declare type FindRealtiesHeaders = {
12
+ 'x-auth-hc': string;
13
+ };
14
+ export declare type FindRealtiesParams = {
15
+ filter?: {
16
+ id?: number | number[];
17
+ };
18
+ limits?: {
19
+ page?: number;
20
+ count?: number | 'all';
21
+ };
22
+ sorting?: {
23
+ direction: 'asc' | 'desc';
24
+ type: 'createdAt' | 'id';
25
+ };
26
+ };
27
+ export declare type FindRealtiesData = AxiosResponse<ResultData>;
28
+ export declare type FindRealtiesError = AxiosError<ResultError>;
29
+ export declare type FindRealtiesConfig = {
30
+ baseURL?: string;
31
+ params: FindRealtiesParams;
32
+ };
33
+ export declare function findRealtiesRequest({ baseURL, params }: FindRealtiesConfig): Promise<FindRealtiesData>;
34
+ export {};
@@ -0,0 +1,24 @@
1
+ import { AddressBTIParamsParking, AddressBTIParamsWallsMaterial, AddressBTIParamsHeatingType } from '../types';
2
+ export declare const AddressBTIParamsDictionary: {
3
+ Parking: {
4
+ ground: string;
5
+ multilevel: string;
6
+ underground: string;
7
+ };
8
+ WallsMaterial: {
9
+ brick: string;
10
+ monolith: string;
11
+ monobrick: string;
12
+ timber: string;
13
+ panel: string;
14
+ block: string;
15
+ };
16
+ HeatingType: {
17
+ none: string;
18
+ central: string;
19
+ local: string;
20
+ gas: string;
21
+ electricity: string;
22
+ liquid: string;
23
+ };
24
+ };
@@ -0,0 +1,71 @@
1
+ import { RealtyType, RealtyRenovationType, RealtyGas, RealtyHouseType, RealtyLandShape, RealtyLandUsageType, RealtyRelief, RealtyElectricity, RealtyFurniture, RealtySewerage, RealtyWindowView } from '../types';
2
+ export declare const RealtyDictionary: {
3
+ Type: {
4
+ flat: string;
5
+ house: string;
6
+ };
7
+ RenovationType: {
8
+ none: string;
9
+ author: string;
10
+ cosmetic: string;
11
+ euro: string;
12
+ fine_finishing: string;
13
+ rough_finishing: string;
14
+ };
15
+ Gas: {
16
+ none: string;
17
+ connected: string;
18
+ border: string;
19
+ possible: string;
20
+ autonomous: string;
21
+ };
22
+ HouseType: {
23
+ townhouse: string;
24
+ house: string;
25
+ cottage: string;
26
+ part: string;
27
+ duplex: string;
28
+ };
29
+ LandShape: {
30
+ regular: string;
31
+ irregular: string;
32
+ };
33
+ LandUsageType: {
34
+ igs: string;
35
+ lph: string;
36
+ dnp: string;
37
+ snt: string;
38
+ farm: string;
39
+ garden: string;
40
+ investproject: string;
41
+ };
42
+ Relief: {
43
+ flat: string;
44
+ elevations: string;
45
+ slope: string;
46
+ hills: string;
47
+ };
48
+ Electricity: {
49
+ none: string;
50
+ connected: string;
51
+ possible: string;
52
+ autonomous: string;
53
+ };
54
+ Furniture: {
55
+ none: string;
56
+ full: string;
57
+ part: string;
58
+ };
59
+ Sewerage: {
60
+ none: string;
61
+ cesspool: string;
62
+ septic: string;
63
+ bio: string;
64
+ central: string;
65
+ };
66
+ WindowView: {
67
+ street: string;
68
+ yard: string;
69
+ both: string;
70
+ };
71
+ };
@@ -0,0 +1,11 @@
1
+ import { ShapeType } from '../types';
2
+ export declare const ShapeDictionary: {
3
+ Type: {
4
+ administrative_district: string;
5
+ block: string;
6
+ complex: string;
7
+ district: string;
8
+ house: string;
9
+ microdistrict: string;
10
+ };
11
+ };
@@ -0,0 +1,3 @@
1
+ export * from './AddressBTIParams';
2
+ export * from './Realty';
3
+ export * from './Shape';
@@ -3,5 +3,8 @@ export declare class Api {
3
3
  private baseURL;
4
4
  constructor(baseURL: string | undefined);
5
5
  findComplexIds: (params: api.FindComplexIdsParams) => Promise<api.FindComplexIdsData>;
6
+ findRealties: (params: api.FindRealtiesParams) => Promise<api.FindRealtiesData>;
6
7
  }
7
8
  export * from './api';
9
+ export * from './dictionaries';
10
+ export * from './types';
@@ -0,0 +1,31 @@
1
+ import { AddressBTIParams } from './AddressBTIParams';
2
+ import { AddressMetroDistance } from './AddressMetroDistance';
3
+ import { Shape } from './Shape';
4
+ export declare type Address = {
5
+ btiParams: Partial<AddressBTIParams>;
6
+ country: string;
7
+ fullAddress: string;
8
+ id: number;
9
+ isManual: boolean;
10
+ lat: number;
11
+ lng: number;
12
+ metroDistances: Array<Partial<AddressMetroDistance> & {
13
+ id: number;
14
+ }>;
15
+ shapes: Array<Partial<Shape> & {
16
+ id: number;
17
+ }>;
18
+ city?: string;
19
+ cityArea?: string;
20
+ district?: string;
21
+ draftName?: string;
22
+ fiasCode?: number;
23
+ house?: string;
24
+ kladrCode?: number;
25
+ medianPrice?: number;
26
+ medianSqmPrice?: number;
27
+ postalCode?: number;
28
+ realtyIds?: number[];
29
+ region?: string;
30
+ street?: string;
31
+ };
@@ -0,0 +1,39 @@
1
+ export declare enum AddressBTIParamsParking {
2
+ Ground = "ground",
3
+ Multilevel = "multilevel",
4
+ Underground = "underground"
5
+ }
6
+ export declare enum AddressBTIParamsWallsMaterial {
7
+ Brick = "brick",
8
+ Monolith = "monolith",
9
+ Monobrick = "monobrick",
10
+ Timber = "timber",
11
+ Panel = "panel",
12
+ Block = "block"
13
+ }
14
+ export declare enum AddressBTIParamsHeatingType {
15
+ None = "none",
16
+ Central = "central",
17
+ Local = "local",
18
+ Gas = "gas",
19
+ Electricity = "electricity",
20
+ Liquid = "liquid"
21
+ }
22
+ export declare type AddressBTIParams = {
23
+ buildYear?: number;
24
+ cargoLifts?: number;
25
+ ceilingHeight?: number;
26
+ deliveryQuarter?: number;
27
+ deliveryYear?: number;
28
+ emergency?: boolean;
29
+ floors?: number;
30
+ garbageChute?: boolean;
31
+ heatingType?: AddressBTIParamsHeatingType;
32
+ id?: number;
33
+ isDelivered?: boolean;
34
+ isUpToDate?: boolean;
35
+ parking?: AddressBTIParamsParking;
36
+ passengerLifts?: number;
37
+ series?: string;
38
+ wallsMaterial?: AddressBTIParamsWallsMaterial;
39
+ };
@@ -0,0 +1,9 @@
1
+ export declare type AddressMetroDistance = {
2
+ distance: number;
3
+ id: number;
4
+ metroLine: string;
5
+ metroLineColor: string;
6
+ metroStation: string;
7
+ timeCar: number;
8
+ timeFoot: number;
9
+ };
@@ -0,0 +1,15 @@
1
+ export declare enum ImageType {
2
+ Complex = "complex",
3
+ Apartment = "apartment",
4
+ Layout = "layout"
5
+ }
6
+ export declare type Image = {
7
+ id: number;
8
+ properties: {
9
+ oldId?: number;
10
+ maxSize?: string;
11
+ };
12
+ storagePath: string;
13
+ thumbnailPath: string;
14
+ type: string | ImageType;
15
+ };
@@ -0,0 +1,116 @@
1
+ import { Address } from './Address';
2
+ import { Image } from './Image';
3
+ import { RealtyOffer } from './RealtyOffer';
4
+ export declare enum RealtyType {
5
+ Flat = "flat",
6
+ House = "house"
7
+ }
8
+ export declare enum RealtyRenovationType {
9
+ None = "none",
10
+ Author = "author",
11
+ Cosmetic = "cosmetic",
12
+ Euro = "euro",
13
+ FineFinishing = "fine_finishing",
14
+ RoughFinishing = "rough_finishing"
15
+ }
16
+ export declare enum RealtyGas {
17
+ None = "none",
18
+ Connected = "connected",
19
+ Border = "border",
20
+ Possible = "possible",
21
+ Autonomous = "autonomous"
22
+ }
23
+ export declare enum RealtyHouseType {
24
+ Townhouse = "townhouse",
25
+ House = "house",
26
+ Cottage = "cottage",
27
+ Part = "part",
28
+ Duplex = "duplex"
29
+ }
30
+ export declare enum RealtyLandShape {
31
+ Regular = "regular",
32
+ Irregular = "irregular"
33
+ }
34
+ export declare enum RealtyLandUsageType {
35
+ IGS = "igs",
36
+ LPH = "lph",
37
+ DNP = "dnp",
38
+ SNT = "snt",
39
+ Farm = "farm",
40
+ Garden = "garden",
41
+ Investproject = "investproject"
42
+ }
43
+ export declare enum RealtyRelief {
44
+ Flat = "flat",
45
+ Elevations = "elevations",
46
+ Slope = "slope",
47
+ Hills = "hills"
48
+ }
49
+ export declare enum RealtyElectricity {
50
+ None = "none",
51
+ Connected = "connected",
52
+ Possible = "possible",
53
+ Autonomous = "autonomous"
54
+ }
55
+ export declare enum RealtyFurniture {
56
+ None = "none",
57
+ Full = "full",
58
+ Part = "part"
59
+ }
60
+ export declare enum RealtySewerage {
61
+ None = "none",
62
+ Cesspool = "cesspool",
63
+ Septic = "septic",
64
+ Bio = "bio",
65
+ Central = "central"
66
+ }
67
+ export declare enum RealtyWindowView {
68
+ Street = "street",
69
+ Yard = "yard",
70
+ Both = "both"
71
+ }
72
+ export declare type Realty = {
73
+ address: Partial<Address> & {
74
+ id: number;
75
+ };
76
+ addressId: number;
77
+ area: number;
78
+ createdAt: string;
79
+ floor: number;
80
+ id: number;
81
+ images: Array<Partial<Image> & {
82
+ id: number;
83
+ }>;
84
+ price: number;
85
+ realtyType: RealtyType;
86
+ renovationType: RealtyRenovationType;
87
+ roomsNumber: number;
88
+ balconyCount?: number;
89
+ burden?: boolean;
90
+ ceilingHeight?: number;
91
+ chambers?: string;
92
+ cityDistance?: number;
93
+ communityName?: string;
94
+ documentationUrl?: number;
95
+ electricity?: RealtyElectricity;
96
+ features?: string[];
97
+ floorsNumber?: number;
98
+ furniture?: RealtyFurniture;
99
+ gas?: RealtyGas;
100
+ houseType?: RealtyHouseType;
101
+ isDevelopersOffer?: boolean;
102
+ kitchenArea?: number;
103
+ landArea?: number;
104
+ landShape?: RealtyLandShape;
105
+ landUsageType?: RealtyLandUsageType;
106
+ livingArea?: number;
107
+ mainOffer?: Partial<RealtyOffer> & {
108
+ id: number;
109
+ };
110
+ number?: number;
111
+ relief?: RealtyRelief;
112
+ separatedRoomsNumber?: number;
113
+ sewerage?: RealtySewerage;
114
+ soldAt?: string;
115
+ windowView?: RealtyWindowView;
116
+ };
@@ -0,0 +1,6 @@
1
+ export declare type RealtyOffer = {
2
+ extId: string;
3
+ id: number;
4
+ source: string;
5
+ url: string;
6
+ };
@@ -0,0 +1,24 @@
1
+ declare type Coordinates = number[];
2
+ declare type Polygon = {
3
+ type: 'Polygon';
4
+ coordinates: Array<Coordinates>;
5
+ };
6
+ declare type MultiPolygon = {
7
+ type: 'MultiPolygon';
8
+ coordinates: Array<Array<Coordinates>>;
9
+ };
10
+ export declare enum ShapeType {
11
+ AdministrativeDistrict = "administrative_district",
12
+ Block = "block",
13
+ Complex = "complex",
14
+ District = "district",
15
+ House = "house",
16
+ Microdistrict = "microdistrict"
17
+ }
18
+ export declare type Shape = {
19
+ geometry: Polygon | MultiPolygon;
20
+ id: number;
21
+ name: string;
22
+ type: ShapeType;
23
+ };
24
+ export {};
@@ -0,0 +1,7 @@
1
+ export * from './Address';
2
+ export * from './AddressBTIParams';
3
+ export * from './AddressMetroDistance';
4
+ export * from './Image';
5
+ export * from './Realty';
6
+ export * from './RealtyOffer';
7
+ export * from './Shape';
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.116",
2
+ "version": "0.1.119",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",