@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.
- package/CHANGELOG.md +36 -0
- package/dist/api-queries.cjs.development.js +309 -10
- package/dist/api-queries.cjs.development.js.map +1 -1
- package/dist/api-queries.cjs.production.min.js +1 -1
- package/dist/api-queries.cjs.production.min.js.map +1 -1
- package/dist/api-queries.esm.js +309 -10
- package/dist/api-queries.esm.js.map +1 -1
- package/dist/clients/v1/api/index.d.ts +2 -1
- package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReports/index.d.ts +42 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequests/index.d.ts +12 -10
- package/dist/clients/v1/api/valuation/findValuationByServiceRequestId/index.d.ts +29 -0
- package/dist/clients/v1/dictionaries/Valuation.d.ts +10 -0
- package/dist/clients/v1/dictionaries/index.d.ts +1 -0
- package/dist/clients/v1/index.d.ts +2 -1
- package/dist/clients/v1/types/Valuation.d.ts +69 -0
- package/dist/clients/v1/types/index.d.ts +1 -0
- package/dist/registry/v1/api/{complexes → complex}/findComplexIds/index.d.ts +0 -0
- package/dist/registry/v1/api/index.d.ts +2 -1
- package/dist/registry/v1/api/realty/findRealties/index.d.ts +34 -0
- package/dist/registry/v1/dictionaries/AddressBTIParams.d.ts +24 -0
- package/dist/registry/v1/dictionaries/Realty.d.ts +71 -0
- package/dist/registry/v1/dictionaries/Shape.d.ts +11 -0
- package/dist/registry/v1/dictionaries/index.d.ts +3 -0
- package/dist/registry/v1/index.d.ts +3 -0
- package/dist/registry/v1/types/Address.d.ts +31 -0
- package/dist/registry/v1/types/AddressBTIParams.d.ts +39 -0
- package/dist/registry/v1/types/AddressMetroDistance.d.ts +9 -0
- package/dist/registry/v1/types/Image.d.ts +15 -0
- package/dist/registry/v1/types/Realty.d.ts +116 -0
- package/dist/registry/v1/types/RealtyOffer.d.ts +6 -0
- package/dist/registry/v1/types/Shape.d.ts +24 -0
- package/dist/registry/v1/types/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/clients/v1/api/index.ts +3 -1
- package/src/clients/v1/api/serviceRequest/{findServiceRequestSellerReport → findServiceRequestSellerReports}/index.ts +13 -13
- package/src/clients/v1/api/serviceRequest/findServiceRequests/index.ts +9 -7
- package/src/clients/v1/api/valuation/findValuationByServiceRequestId/index.ts +42 -0
- package/src/clients/v1/dictionaries/Valuation.ts +11 -0
- package/src/clients/v1/dictionaries/index.ts +1 -0
- package/src/clients/v1/index.ts +14 -5
- package/src/clients/v1/types/Valuation.ts +57 -0
- package/src/clients/v1/types/index.ts +1 -0
- package/src/registry/v1/api/{complexes → complex}/findComplexIds/index.ts +0 -0
- package/src/registry/v1/api/index.ts +3 -1
- package/src/registry/v1/api/realty/findRealties/index.ts +54 -0
- package/src/registry/v1/dictionaries/AddressBTIParams.ts +25 -0
- package/src/registry/v1/dictionaries/Realty.ts +84 -0
- package/src/registry/v1/dictionaries/Shape.ts +12 -0
- package/src/registry/v1/dictionaries/index.ts +3 -0
- package/src/registry/v1/index.ts +10 -0
- package/src/registry/v1/types/Address.ts +29 -0
- package/src/registry/v1/types/AddressBTIParams.ts +42 -0
- package/src/registry/v1/types/AddressMetroDistance.ts +9 -0
- package/src/registry/v1/types/Image.ts +13 -0
- package/src/registry/v1/types/Realty.ts +123 -0
- package/src/registry/v1/types/RealtyOffer.ts +6 -0
- package/src/registry/v1/types/Shape.ts +24 -0
- package/src/registry/v1/types/index.ts +7 -0
- package/dist/clients/v1/api/serviceRequest/findServiceRequestSellerReport/index.d.ts +0 -42
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Address } from './Address';
|
|
2
|
+
import { Image } from './Image';
|
|
3
|
+
import { RealtyOffer } from './RealtyOffer';
|
|
4
|
+
|
|
5
|
+
export enum RealtyType {
|
|
6
|
+
Flat = 'flat',
|
|
7
|
+
House = 'house',
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export enum RealtyRenovationType {
|
|
11
|
+
None = 'none',
|
|
12
|
+
Author = 'author',
|
|
13
|
+
Cosmetic = 'cosmetic',
|
|
14
|
+
Euro = 'euro',
|
|
15
|
+
FineFinishing = 'fine_finishing',
|
|
16
|
+
RoughFinishing = 'rough_finishing',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export enum RealtyGas {
|
|
20
|
+
None = 'none',
|
|
21
|
+
Connected = 'connected',
|
|
22
|
+
Border = 'border',
|
|
23
|
+
Possible = 'possible',
|
|
24
|
+
Autonomous = 'autonomous',
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum RealtyHouseType {
|
|
28
|
+
Townhouse = 'townhouse',
|
|
29
|
+
House = 'house',
|
|
30
|
+
Cottage = 'cottage',
|
|
31
|
+
Part = 'part',
|
|
32
|
+
Duplex = 'duplex',
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export enum RealtyLandShape {
|
|
36
|
+
Regular = 'regular',
|
|
37
|
+
Irregular = 'irregular',
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export enum RealtyLandUsageType {
|
|
41
|
+
IGS = 'igs',
|
|
42
|
+
LPH = 'lph',
|
|
43
|
+
DNP = 'dnp',
|
|
44
|
+
SNT = 'snt',
|
|
45
|
+
Farm = 'farm',
|
|
46
|
+
Garden = 'garden',
|
|
47
|
+
Investproject = 'investproject',
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum RealtyRelief {
|
|
51
|
+
Flat = 'flat',
|
|
52
|
+
Elevations = 'elevations',
|
|
53
|
+
Slope = 'slope',
|
|
54
|
+
Hills = 'hills',
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export enum RealtyElectricity {
|
|
58
|
+
None = 'none',
|
|
59
|
+
Connected = 'connected',
|
|
60
|
+
Possible = 'possible',
|
|
61
|
+
Autonomous = 'autonomous',
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export enum RealtyFurniture {
|
|
65
|
+
None = 'none',
|
|
66
|
+
Full = 'full',
|
|
67
|
+
Part = 'part',
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export enum RealtySewerage {
|
|
71
|
+
None = 'none',
|
|
72
|
+
Cesspool = 'cesspool',
|
|
73
|
+
Septic = 'septic',
|
|
74
|
+
Bio = 'bio',
|
|
75
|
+
Central = 'central',
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export enum RealtyWindowView {
|
|
79
|
+
Street = 'street',
|
|
80
|
+
Yard = 'yard',
|
|
81
|
+
Both = 'both',
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type Realty = {
|
|
85
|
+
address: Partial<Address> & { id: number };
|
|
86
|
+
addressId: number;
|
|
87
|
+
area: number;
|
|
88
|
+
createdAt: string;
|
|
89
|
+
floor: number;
|
|
90
|
+
id: number;
|
|
91
|
+
images: Array<Partial<Image> & { id: number }>;
|
|
92
|
+
price: number;
|
|
93
|
+
realtyType: RealtyType;
|
|
94
|
+
renovationType: RealtyRenovationType;
|
|
95
|
+
roomsNumber: number;
|
|
96
|
+
|
|
97
|
+
balconyCount?: number;
|
|
98
|
+
burden?: boolean;
|
|
99
|
+
ceilingHeight?: number;
|
|
100
|
+
chambers?: string;
|
|
101
|
+
cityDistance?: number;
|
|
102
|
+
communityName?: string;
|
|
103
|
+
documentationUrl?: number;
|
|
104
|
+
electricity?: RealtyElectricity;
|
|
105
|
+
features?: string[];
|
|
106
|
+
floorsNumber?: number;
|
|
107
|
+
furniture?: RealtyFurniture;
|
|
108
|
+
gas?: RealtyGas;
|
|
109
|
+
houseType?: RealtyHouseType;
|
|
110
|
+
isDevelopersOffer?: boolean;
|
|
111
|
+
kitchenArea?: number;
|
|
112
|
+
landArea?: number;
|
|
113
|
+
landShape?: RealtyLandShape;
|
|
114
|
+
landUsageType?: RealtyLandUsageType;
|
|
115
|
+
livingArea?: number;
|
|
116
|
+
mainOffer?: Partial<RealtyOffer> & { id: number };
|
|
117
|
+
number?: number;
|
|
118
|
+
relief?: RealtyRelief;
|
|
119
|
+
separatedRoomsNumber?: number;
|
|
120
|
+
sewerage?: RealtySewerage;
|
|
121
|
+
soldAt?: string;
|
|
122
|
+
windowView?: RealtyWindowView;
|
|
123
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type Coordinates = number[];
|
|
2
|
+
|
|
3
|
+
type Polygon = { type: 'Polygon'; coordinates: Array<Coordinates> };
|
|
4
|
+
|
|
5
|
+
type MultiPolygon = {
|
|
6
|
+
type: 'MultiPolygon';
|
|
7
|
+
coordinates: Array<Array<Coordinates>>;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export enum ShapeType {
|
|
11
|
+
AdministrativeDistrict = 'administrative_district',
|
|
12
|
+
Block = 'block',
|
|
13
|
+
Complex = 'complex',
|
|
14
|
+
District = 'district',
|
|
15
|
+
House = 'house',
|
|
16
|
+
Microdistrict = 'microdistrict',
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type Shape = {
|
|
20
|
+
geometry: Polygon | MultiPolygon;
|
|
21
|
+
id: number;
|
|
22
|
+
name: string;
|
|
23
|
+
type: ShapeType;
|
|
24
|
+
};
|
|
@@ -1,42 +0,0 @@
|
|
|
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 FindServiceRequestSellerReportParams = {
|
|
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 FindServiceRequestSellerReportUrlParams = {
|
|
28
|
-
id: number;
|
|
29
|
-
};
|
|
30
|
-
export declare type FindServiceRequestSellerReportHeaders = {
|
|
31
|
-
'x-auth-hc': string;
|
|
32
|
-
};
|
|
33
|
-
export declare type FindServiceRequestSellerReportData = AxiosResponse<ResultData>;
|
|
34
|
-
export declare type FindServiceRequestSellerReportError = AxiosError<ResultError>;
|
|
35
|
-
export declare type FindServiceRequestSellerReportConfig = {
|
|
36
|
-
baseURL?: string;
|
|
37
|
-
urlParams: FindServiceRequestSellerReportUrlParams;
|
|
38
|
-
params: FindServiceRequestSellerReportParams;
|
|
39
|
-
headers?: FindServiceRequestSellerReportHeaders;
|
|
40
|
-
};
|
|
41
|
-
export declare function findServiceRequestSellerReportRequest({ baseURL, urlParams, headers, params, }: FindServiceRequestSellerReportConfig): Promise<FindServiceRequestSellerReportData>;
|
|
42
|
-
export {};
|