Skip to content

Commit ad3a29f

Browse files
author
tbor00
committed
feat: added zone 3 support
1 parent 360490d commit ad3a29f

4 files changed

Lines changed: 35 additions & 3 deletions

File tree

.commitlintrc.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
{
22
"extends": ["@commitlint/config-conventional"],
33
"rules": {
4-
"type-enum": [2, "always", ["feat", "fix", "perf"]]
4+
"type-enum": [
5+
2,
6+
"always",
7+
[
8+
"feat",
9+
"fix",
10+
"perf",
11+
"chore",
12+
"docs",
13+
"refactor",
14+
"test",
15+
"ci",
16+
"revert"
17+
]
18+
]
519
}
620
}

src/types/appraisal.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import type { KeysOf } from './common'
2-
import { AppraisalType, PropertyType } from './constants'
2+
import { AppraisalType, PropertyType, LuxuryCategory } from './constants'
33

44
/** Appraisals types */
55
export type Comparable = {
66
id?: string
7+
propertyCode?: string
78
urlAd?: string
89
surfaceTotal?: number
910
terrainSurface?: number
@@ -52,6 +53,8 @@ export interface DevelopmentAmenities {
5253
hasCafeteria?: boolean
5354
hasGrill?: boolean
5455
hasSharedRooftop?: boolean
56+
hasGolfClub?: boolean
57+
hasWaterFront?: boolean
5558
}
5659

5760
export type AppraisalRequestInput = {
@@ -104,6 +107,12 @@ export type AppraisalRequestInput = {
104107
* specific fields from `AppraisalRequestOutput`
105108
* you are interested in receiving in the response. */
106109
fields?: KeysOf<AppraisalRequestOutput>
110+
111+
/**
112+
* Zone 3 Fields - PEv10
113+
*/
114+
luxuryCategory?: LuxuryCategory
115+
isZone3?: boolean
107116
}
108117

109118
export type AppraisalRequestInputVariable = Omit<
@@ -114,6 +123,8 @@ export type AppraisalRequestInputVariable = Omit<
114123
export interface AppraisalOutputCoverage {
115124
hasCoverage: boolean
116125
cvegeo?: string
126+
priceEngineVersion?: number
127+
hexagonalId?: string
117128
}
118129

119130
/** Report types */

src/types/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type PriceEngineVersion = 'v8' | 'v9'
1+
export type PriceEngineVersion = 'v8' | 'v9' | 'v10'
22

33
export type CoordinatesRequestInput = {
44
latitude: number

src/types/constants.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ export enum AppraisalType {
77
Sale = 'sale',
88
Rent = 'rent'
99
}
10+
11+
export enum LuxuryCategory {
12+
Low = 'low',
13+
Medium = 'medium',
14+
MediumHigh = 'medium_high',
15+
High = 'high'
16+
}

0 commit comments

Comments
 (0)