-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeclaration.d.ts
47 lines (46 loc) · 1.21 KB
/
declaration.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export type CalculatorResult = {
waterPrice: { price: number, year: number, division: "national" | "departemental" | "communal" }, // price : €/m3
lastKnownYear: string,
waterRecoverableQuantity: Record<string, number>, // mm * m² => L
evolutionNeededWater: Record<string, number>, // L
savingForLastKnownYear?: number, // €/m3/year
idealCapacity: number, // L/year
waterNeeds: {
outdoor: number, // L/year
indoor: number, // L/year
other: number, // L/year
},
copernicusData: CopernicusData, // (mm/m²)
roofSurfaceArea: number, // m²
gardenSurfaceArea: number, // m²
vegetableSurfaceArea: number, // m²
toiletsConnected: boolean,
washingMachineConnected: boolean,
residentNumber: number,
evolutionStockWater: number[], // L
consumptionByTapWater: number[], // L
driestYear: string,
wettestYear: string,
}
export interface ApiAddress {
id?: string
type?: string
geometry: {
type: 'Point'
coordinates: [number, number]
}
properties?: {
city: string
citycode: string
context: string
id: string
importance: number
label: string
name: string
postcode: string
score: number
type: string
x: number
y: number
}
}