@vepler/sdk 2.0.0 → 2.3.0
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/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts +66 -66
- package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js +72 -68
- package/dist/commonjs/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts +66 -66
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js +70 -70
- package/dist/commonjs/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts +66 -66
- package/dist/commonjs/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistings.js +72 -68
- package/dist/commonjs/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts +66 -66
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js +72 -68
- package/dist/commonjs/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/builddata.d.ts +123 -0
- package/dist/commonjs/sdk/models/shared/builddata.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/builddata.js +122 -0
- package/dist/commonjs/sdk/models/shared/builddata.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/chargeentry.d.ts +62 -0
- package/dist/commonjs/sdk/models/shared/chargeentry.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/chargeentry.js +81 -0
- package/dist/commonjs/sdk/models/shared/chargeentry.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/chargehistory.d.ts +53 -0
- package/dist/commonjs/sdk/models/shared/chargehistory.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/chargehistory.js +78 -0
- package/dist/commonjs/sdk/models/shared/chargehistory.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/counciltaxbanddetails.d.ts +52 -0
- package/dist/commonjs/sdk/models/shared/counciltaxbanddetails.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/counciltaxbanddetails.js +77 -0
- package/dist/commonjs/sdk/models/shared/counciltaxbanddetails.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/counciltaxdata.d.ts +29 -8
- package/dist/commonjs/sdk/models/shared/counciltaxdata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/counciltaxdata.js +15 -6
- package/dist/commonjs/sdk/models/shared/counciltaxdata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/epcdata.d.ts +25 -10
- package/dist/commonjs/sdk/models/shared/epcdata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/epcdata.js +10 -4
- package/dist/commonjs/sdk/models/shared/epcdata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +11 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +11 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/lease.d.ts +47 -0
- package/dist/commonjs/sdk/models/shared/lease.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/lease.js +76 -0
- package/dist/commonjs/sdk/models/shared/lease.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/listing.d.ts +312 -0
- package/dist/commonjs/sdk/models/shared/listing.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/listing.js +280 -0
- package/dist/commonjs/sdk/models/shared/listing.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts +32 -0
- package/dist/commonjs/sdk/models/shared/listingimage.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/listingimage.js +69 -0
- package/dist/commonjs/sdk/models/shared/listingimage.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/listingpricechange.d.ts +87 -0
- package/dist/commonjs/sdk/models/shared/listingpricechange.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/listingpricechange.js +101 -0
- package/dist/commonjs/sdk/models/shared/listingpricechange.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/marketstatus.d.ts +209 -13
- package/dist/commonjs/sdk/models/shared/marketstatus.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/marketstatus.js +157 -11
- package/dist/commonjs/sdk/models/shared/marketstatus.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts +8 -8
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.js +13 -14
- package/dist/commonjs/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/pricechange.d.ts +87 -0
- package/dist/commonjs/sdk/models/shared/pricechange.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/pricechange.js +100 -0
- package/dist/commonjs/sdk/models/shared/pricechange.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/pricingdata.d.ts +9 -14
- package/dist/commonjs/sdk/models/shared/pricingdata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/pricingdata.js +10 -12
- package/dist/commonjs/sdk/models/shared/pricingdata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +6 -31
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyaddress.js +6 -16
- package/dist/commonjs/sdk/models/shared/propertyaddress.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydata.d.ts +360 -189
- package/dist/commonjs/sdk/models/shared/propertydata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydata.js +287 -82
- package/dist/commonjs/sdk/models/shared/propertydata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertymultipolygonareafilter.d.ts +8 -8
- package/dist/commonjs/sdk/models/shared/propertymultipolygonareafilter.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertymultipolygonareafilter.js +13 -13
- package/dist/commonjs/sdk/models/shared/propertymultipolygonareafilter.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts +9 -9
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js +3 -3
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertytags.d.ts +42 -12
- package/dist/commonjs/sdk/models/shared/propertytags.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertytags.js +26 -14
- package/dist/commonjs/sdk/models/shared/propertytags.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/refurbishmentdata.d.ts +67 -0
- package/dist/commonjs/sdk/models/shared/refurbishmentdata.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/refurbishmentdata.js +93 -0
- package/dist/commonjs/sdk/models/shared/refurbishmentdata.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/roomdetails.d.ts +4 -9
- package/dist/commonjs/sdk/models/shared/roomdetails.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/roomdetails.js +4 -6
- package/dist/commonjs/sdk/models/shared/roomdetails.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/salerecord.d.ts +8 -13
- package/dist/commonjs/sdk/models/shared/salerecord.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/salerecord.js +6 -8
- package/dist/commonjs/sdk/models/shared/salerecord.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/tenancydata.d.ts +37 -0
- package/dist/commonjs/sdk/models/shared/tenancydata.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/tenancydata.js +71 -0
- package/dist/commonjs/sdk/models/shared/tenancydata.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/tenuredata.d.ts +2 -17
- package/dist/commonjs/sdk/models/shared/tenuredata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/tenuredata.js +2 -8
- package/dist/commonjs/sdk/models/shared/tenuredata.js.map +1 -1
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts +66 -66
- package/dist/esm/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingbyid.js +72 -68
- package/dist/esm/sdk/models/operations/getlistingbyid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts +66 -66
- package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js +70 -70
- package/dist/esm/sdk/models/operations/getlistingsbylocation.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.d.ts +66 -66
- package/dist/esm/sdk/models/operations/querylistings.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistings.js +72 -68
- package/dist/esm/sdk/models/operations/querylistings.js.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts +66 -66
- package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/querylistingsbysource.js +72 -68
- package/dist/esm/sdk/models/operations/querylistingsbysource.js.map +1 -1
- package/dist/esm/sdk/models/shared/builddata.d.ts +123 -0
- package/dist/esm/sdk/models/shared/builddata.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/builddata.js +82 -0
- package/dist/esm/sdk/models/shared/builddata.js.map +1 -0
- package/dist/esm/sdk/models/shared/chargeentry.d.ts +62 -0
- package/dist/esm/sdk/models/shared/chargeentry.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/chargeentry.js +43 -0
- package/dist/esm/sdk/models/shared/chargeentry.js.map +1 -0
- package/dist/esm/sdk/models/shared/chargehistory.d.ts +53 -0
- package/dist/esm/sdk/models/shared/chargehistory.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/chargehistory.js +40 -0
- package/dist/esm/sdk/models/shared/chargehistory.js.map +1 -0
- package/dist/esm/sdk/models/shared/counciltaxbanddetails.d.ts +52 -0
- package/dist/esm/sdk/models/shared/counciltaxbanddetails.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/counciltaxbanddetails.js +39 -0
- package/dist/esm/sdk/models/shared/counciltaxbanddetails.js.map +1 -0
- package/dist/esm/sdk/models/shared/counciltaxdata.d.ts +29 -8
- package/dist/esm/sdk/models/shared/counciltaxdata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/counciltaxdata.js +15 -6
- package/dist/esm/sdk/models/shared/counciltaxdata.js.map +1 -1
- package/dist/esm/sdk/models/shared/epcdata.d.ts +25 -10
- package/dist/esm/sdk/models/shared/epcdata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/epcdata.js +10 -4
- package/dist/esm/sdk/models/shared/epcdata.js.map +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +11 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +11 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/lease.d.ts +47 -0
- package/dist/esm/sdk/models/shared/lease.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/lease.js +38 -0
- package/dist/esm/sdk/models/shared/lease.js.map +1 -0
- package/dist/esm/sdk/models/shared/listing.d.ts +312 -0
- package/dist/esm/sdk/models/shared/listing.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/listing.js +236 -0
- package/dist/esm/sdk/models/shared/listing.js.map +1 -0
- package/dist/esm/sdk/models/shared/listingimage.d.ts +32 -0
- package/dist/esm/sdk/models/shared/listingimage.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/listingimage.js +31 -0
- package/dist/esm/sdk/models/shared/listingimage.js.map +1 -0
- package/dist/esm/sdk/models/shared/listingpricechange.d.ts +87 -0
- package/dist/esm/sdk/models/shared/listingpricechange.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/listingpricechange.js +63 -0
- package/dist/esm/sdk/models/shared/listingpricechange.js.map +1 -0
- package/dist/esm/sdk/models/shared/marketstatus.d.ts +209 -13
- package/dist/esm/sdk/models/shared/marketstatus.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/marketstatus.js +152 -10
- package/dist/esm/sdk/models/shared/marketstatus.js.map +1 -1
- package/dist/esm/sdk/models/shared/planningapplication.d.ts +8 -8
- package/dist/esm/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/planningapplication.js +12 -13
- package/dist/esm/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/esm/sdk/models/shared/pricechange.d.ts +87 -0
- package/dist/esm/sdk/models/shared/pricechange.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/pricechange.js +62 -0
- package/dist/esm/sdk/models/shared/pricechange.js.map +1 -0
- package/dist/esm/sdk/models/shared/pricingdata.d.ts +9 -14
- package/dist/esm/sdk/models/shared/pricingdata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/pricingdata.js +10 -12
- package/dist/esm/sdk/models/shared/pricingdata.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts +6 -31
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyaddress.js +6 -16
- package/dist/esm/sdk/models/shared/propertyaddress.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertydata.d.ts +360 -189
- package/dist/esm/sdk/models/shared/propertydata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertydata.js +276 -81
- package/dist/esm/sdk/models/shared/propertydata.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertymultipolygonareafilter.d.ts +8 -8
- package/dist/esm/sdk/models/shared/propertymultipolygonareafilter.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertymultipolygonareafilter.js +12 -12
- package/dist/esm/sdk/models/shared/propertymultipolygonareafilter.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts +9 -9
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js +3 -3
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertytags.d.ts +42 -12
- package/dist/esm/sdk/models/shared/propertytags.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertytags.js +26 -14
- package/dist/esm/sdk/models/shared/propertytags.js.map +1 -1
- package/dist/esm/sdk/models/shared/refurbishmentdata.d.ts +67 -0
- package/dist/esm/sdk/models/shared/refurbishmentdata.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/refurbishmentdata.js +55 -0
- package/dist/esm/sdk/models/shared/refurbishmentdata.js.map +1 -0
- package/dist/esm/sdk/models/shared/roomdetails.d.ts +4 -9
- package/dist/esm/sdk/models/shared/roomdetails.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/roomdetails.js +4 -6
- package/dist/esm/sdk/models/shared/roomdetails.js.map +1 -1
- package/dist/esm/sdk/models/shared/salerecord.d.ts +8 -13
- package/dist/esm/sdk/models/shared/salerecord.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/salerecord.js +6 -8
- package/dist/esm/sdk/models/shared/salerecord.js.map +1 -1
- package/dist/esm/sdk/models/shared/tenancydata.d.ts +37 -0
- package/dist/esm/sdk/models/shared/tenancydata.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/tenancydata.js +33 -0
- package/dist/esm/sdk/models/shared/tenancydata.js.map +1 -0
- package/dist/esm/sdk/models/shared/tenuredata.d.ts +2 -17
- package/dist/esm/sdk/models/shared/tenuredata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/tenuredata.js +2 -8
- package/dist/esm/sdk/models/shared/tenuredata.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +4 -4
- package/src/sdk/models/operations/getlistingbyid.ts +140 -149
- package/src/sdk/models/operations/getlistingsbylocation.ts +138 -144
- package/src/sdk/models/operations/querylistings.ts +140 -146
- package/src/sdk/models/operations/querylistingsbysource.ts +141 -146
- package/src/sdk/models/shared/builddata.ts +213 -0
- package/src/sdk/models/shared/chargeentry.ts +109 -0
- package/src/sdk/models/shared/chargehistory.ts +101 -0
- package/src/sdk/models/shared/counciltaxbanddetails.ts +97 -0
- package/src/sdk/models/shared/counciltaxdata.ts +48 -14
- package/src/sdk/models/shared/epcdata.ts +35 -14
- package/src/sdk/models/shared/index.ts +11 -0
- package/src/sdk/models/shared/lease.ts +83 -0
- package/src/sdk/models/shared/listing.ts +505 -0
- package/src/sdk/models/shared/listingimage.ts +65 -0
- package/src/sdk/models/shared/listingpricechange.ts +130 -0
- package/src/sdk/models/shared/marketstatus.ts +316 -23
- package/src/sdk/models/shared/planningapplication.ts +18 -14
- package/src/sdk/models/shared/pricechange.ts +128 -0
- package/src/sdk/models/shared/pricingdata.ts +19 -26
- package/src/sdk/models/shared/propertyaddress.ts +12 -47
- package/src/sdk/models/shared/propertydata.ts +564 -115
- package/src/sdk/models/shared/propertymultipolygonareafilter.ts +19 -15
- package/src/sdk/models/shared/propertyqueryrequest.ts +3 -3
- package/src/sdk/models/shared/propertytags.ts +68 -26
- package/src/sdk/models/shared/refurbishmentdata.ts +102 -0
- package/src/sdk/models/shared/roomdetails.ts +8 -15
- package/src/sdk/models/shared/salerecord.ts +14 -21
- package/src/sdk/models/shared/tenancydata.ts +72 -0
- package/src/sdk/models/shared/tenuredata.ts +4 -25
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Construction age information
|
|
12
|
+
*/
|
|
13
|
+
export type ConstructionAge = {
|
|
14
|
+
/**
|
|
15
|
+
* Construction period end year
|
|
16
|
+
*/
|
|
17
|
+
endYear: number;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the year is exact or estimated
|
|
20
|
+
*/
|
|
21
|
+
isExact: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Mid-point year of construction period
|
|
24
|
+
*/
|
|
25
|
+
midYear: number;
|
|
26
|
+
/**
|
|
27
|
+
* Construction period start year
|
|
28
|
+
*/
|
|
29
|
+
startYear: number;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type BuildData = {
|
|
33
|
+
/**
|
|
34
|
+
* Construction age information
|
|
35
|
+
*/
|
|
36
|
+
constructionAge?: ConstructionAge | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Floor height in metres
|
|
39
|
+
*/
|
|
40
|
+
floorHeight?: number | null | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Main fuel type
|
|
43
|
+
*/
|
|
44
|
+
mainFuel?: string | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Mains gas availability flag
|
|
47
|
+
*/
|
|
48
|
+
mainsGasFlag?: string | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Property type
|
|
51
|
+
*/
|
|
52
|
+
propertyType?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Roof type
|
|
55
|
+
*/
|
|
56
|
+
roofType?: string | null | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Property sub-type
|
|
59
|
+
*/
|
|
60
|
+
subPropertyType?: string | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Total floor area in square metres
|
|
63
|
+
*/
|
|
64
|
+
totalFloorArea?: number | null | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Wall type
|
|
67
|
+
*/
|
|
68
|
+
wallType?: string | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Window type
|
|
71
|
+
*/
|
|
72
|
+
windowType?: string | null | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ConstructionAge$inboundSchema: z.ZodType<
|
|
77
|
+
ConstructionAge,
|
|
78
|
+
z.ZodTypeDef,
|
|
79
|
+
unknown
|
|
80
|
+
> = z.object({
|
|
81
|
+
endYear: z.number(),
|
|
82
|
+
isExact: z.boolean(),
|
|
83
|
+
midYear: z.number(),
|
|
84
|
+
startYear: z.number(),
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
/** @internal */
|
|
88
|
+
export type ConstructionAge$Outbound = {
|
|
89
|
+
endYear: number;
|
|
90
|
+
isExact: boolean;
|
|
91
|
+
midYear: number;
|
|
92
|
+
startYear: number;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const ConstructionAge$outboundSchema: z.ZodType<
|
|
97
|
+
ConstructionAge$Outbound,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
ConstructionAge
|
|
100
|
+
> = z.object({
|
|
101
|
+
endYear: z.number(),
|
|
102
|
+
isExact: z.boolean(),
|
|
103
|
+
midYear: z.number(),
|
|
104
|
+
startYear: z.number(),
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* @internal
|
|
109
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
110
|
+
*/
|
|
111
|
+
export namespace ConstructionAge$ {
|
|
112
|
+
/** @deprecated use `ConstructionAge$inboundSchema` instead. */
|
|
113
|
+
export const inboundSchema = ConstructionAge$inboundSchema;
|
|
114
|
+
/** @deprecated use `ConstructionAge$outboundSchema` instead. */
|
|
115
|
+
export const outboundSchema = ConstructionAge$outboundSchema;
|
|
116
|
+
/** @deprecated use `ConstructionAge$Outbound` instead. */
|
|
117
|
+
export type Outbound = ConstructionAge$Outbound;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function constructionAgeToJSON(
|
|
121
|
+
constructionAge: ConstructionAge,
|
|
122
|
+
): string {
|
|
123
|
+
return JSON.stringify(ConstructionAge$outboundSchema.parse(constructionAge));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export function constructionAgeFromJSON(
|
|
127
|
+
jsonString: string,
|
|
128
|
+
): SafeParseResult<ConstructionAge, SDKValidationError> {
|
|
129
|
+
return safeParse(
|
|
130
|
+
jsonString,
|
|
131
|
+
(x) => ConstructionAge$inboundSchema.parse(JSON.parse(x)),
|
|
132
|
+
`Failed to parse 'ConstructionAge' from JSON`,
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** @internal */
|
|
137
|
+
export const BuildData$inboundSchema: z.ZodType<
|
|
138
|
+
BuildData,
|
|
139
|
+
z.ZodTypeDef,
|
|
140
|
+
unknown
|
|
141
|
+
> = z.object({
|
|
142
|
+
constructionAge: z.nullable(z.lazy(() => ConstructionAge$inboundSchema))
|
|
143
|
+
.optional(),
|
|
144
|
+
floorHeight: z.nullable(z.number()).optional(),
|
|
145
|
+
mainFuel: z.nullable(z.string()).optional(),
|
|
146
|
+
mainsGasFlag: z.nullable(z.string()).optional(),
|
|
147
|
+
propertyType: z.nullable(z.string()).optional(),
|
|
148
|
+
roofType: z.nullable(z.string()).optional(),
|
|
149
|
+
subPropertyType: z.nullable(z.string()).optional(),
|
|
150
|
+
totalFloorArea: z.nullable(z.number()).optional(),
|
|
151
|
+
wallType: z.nullable(z.string()).optional(),
|
|
152
|
+
windowType: z.nullable(z.string()).optional(),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export type BuildData$Outbound = {
|
|
157
|
+
constructionAge?: ConstructionAge$Outbound | null | undefined;
|
|
158
|
+
floorHeight?: number | null | undefined;
|
|
159
|
+
mainFuel?: string | null | undefined;
|
|
160
|
+
mainsGasFlag?: string | null | undefined;
|
|
161
|
+
propertyType?: string | null | undefined;
|
|
162
|
+
roofType?: string | null | undefined;
|
|
163
|
+
subPropertyType?: string | null | undefined;
|
|
164
|
+
totalFloorArea?: number | null | undefined;
|
|
165
|
+
wallType?: string | null | undefined;
|
|
166
|
+
windowType?: string | null | undefined;
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/** @internal */
|
|
170
|
+
export const BuildData$outboundSchema: z.ZodType<
|
|
171
|
+
BuildData$Outbound,
|
|
172
|
+
z.ZodTypeDef,
|
|
173
|
+
BuildData
|
|
174
|
+
> = z.object({
|
|
175
|
+
constructionAge: z.nullable(z.lazy(() => ConstructionAge$outboundSchema))
|
|
176
|
+
.optional(),
|
|
177
|
+
floorHeight: z.nullable(z.number()).optional(),
|
|
178
|
+
mainFuel: z.nullable(z.string()).optional(),
|
|
179
|
+
mainsGasFlag: z.nullable(z.string()).optional(),
|
|
180
|
+
propertyType: z.nullable(z.string()).optional(),
|
|
181
|
+
roofType: z.nullable(z.string()).optional(),
|
|
182
|
+
subPropertyType: z.nullable(z.string()).optional(),
|
|
183
|
+
totalFloorArea: z.nullable(z.number()).optional(),
|
|
184
|
+
wallType: z.nullable(z.string()).optional(),
|
|
185
|
+
windowType: z.nullable(z.string()).optional(),
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
191
|
+
*/
|
|
192
|
+
export namespace BuildData$ {
|
|
193
|
+
/** @deprecated use `BuildData$inboundSchema` instead. */
|
|
194
|
+
export const inboundSchema = BuildData$inboundSchema;
|
|
195
|
+
/** @deprecated use `BuildData$outboundSchema` instead. */
|
|
196
|
+
export const outboundSchema = BuildData$outboundSchema;
|
|
197
|
+
/** @deprecated use `BuildData$Outbound` instead. */
|
|
198
|
+
export type Outbound = BuildData$Outbound;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export function buildDataToJSON(buildData: BuildData): string {
|
|
202
|
+
return JSON.stringify(BuildData$outboundSchema.parse(buildData));
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export function buildDataFromJSON(
|
|
206
|
+
jsonString: string,
|
|
207
|
+
): SafeParseResult<BuildData, SDKValidationError> {
|
|
208
|
+
return safeParse(
|
|
209
|
+
jsonString,
|
|
210
|
+
(x) => BuildData$inboundSchema.parse(JSON.parse(x)),
|
|
211
|
+
`Failed to parse 'BuildData' from JSON`,
|
|
212
|
+
);
|
|
213
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type ChargeEntry = {
|
|
11
|
+
/**
|
|
12
|
+
* Confidence score (0-100)
|
|
13
|
+
*/
|
|
14
|
+
confidence: number;
|
|
15
|
+
/**
|
|
16
|
+
* Currency code
|
|
17
|
+
*/
|
|
18
|
+
currency?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether this value is an outlier
|
|
21
|
+
*/
|
|
22
|
+
isOutlier: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Date this charge was recorded
|
|
25
|
+
*/
|
|
26
|
+
recordedDate: Date;
|
|
27
|
+
/**
|
|
28
|
+
* Source identifier
|
|
29
|
+
*/
|
|
30
|
+
sourceId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Source provider
|
|
33
|
+
*/
|
|
34
|
+
sourceProvider: string;
|
|
35
|
+
/**
|
|
36
|
+
* Charge amount in pence
|
|
37
|
+
*/
|
|
38
|
+
value: number;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ChargeEntry$inboundSchema: z.ZodType<
|
|
43
|
+
ChargeEntry,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
confidence: z.number(),
|
|
48
|
+
currency: z.string().optional(),
|
|
49
|
+
isOutlier: z.boolean(),
|
|
50
|
+
recordedDate: z.string().datetime({ offset: true }).transform(v =>
|
|
51
|
+
new Date(v)
|
|
52
|
+
),
|
|
53
|
+
sourceId: z.string(),
|
|
54
|
+
sourceProvider: z.string(),
|
|
55
|
+
value: z.number(),
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type ChargeEntry$Outbound = {
|
|
60
|
+
confidence: number;
|
|
61
|
+
currency?: string | undefined;
|
|
62
|
+
isOutlier: boolean;
|
|
63
|
+
recordedDate: string;
|
|
64
|
+
sourceId: string;
|
|
65
|
+
sourceProvider: string;
|
|
66
|
+
value: number;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const ChargeEntry$outboundSchema: z.ZodType<
|
|
71
|
+
ChargeEntry$Outbound,
|
|
72
|
+
z.ZodTypeDef,
|
|
73
|
+
ChargeEntry
|
|
74
|
+
> = z.object({
|
|
75
|
+
confidence: z.number(),
|
|
76
|
+
currency: z.string().optional(),
|
|
77
|
+
isOutlier: z.boolean(),
|
|
78
|
+
recordedDate: z.date().transform(v => v.toISOString()),
|
|
79
|
+
sourceId: z.string(),
|
|
80
|
+
sourceProvider: z.string(),
|
|
81
|
+
value: z.number(),
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @internal
|
|
86
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
+
*/
|
|
88
|
+
export namespace ChargeEntry$ {
|
|
89
|
+
/** @deprecated use `ChargeEntry$inboundSchema` instead. */
|
|
90
|
+
export const inboundSchema = ChargeEntry$inboundSchema;
|
|
91
|
+
/** @deprecated use `ChargeEntry$outboundSchema` instead. */
|
|
92
|
+
export const outboundSchema = ChargeEntry$outboundSchema;
|
|
93
|
+
/** @deprecated use `ChargeEntry$Outbound` instead. */
|
|
94
|
+
export type Outbound = ChargeEntry$Outbound;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function chargeEntryToJSON(chargeEntry: ChargeEntry): string {
|
|
98
|
+
return JSON.stringify(ChargeEntry$outboundSchema.parse(chargeEntry));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function chargeEntryFromJSON(
|
|
102
|
+
jsonString: string,
|
|
103
|
+
): SafeParseResult<ChargeEntry, SDKValidationError> {
|
|
104
|
+
return safeParse(
|
|
105
|
+
jsonString,
|
|
106
|
+
(x) => ChargeEntry$inboundSchema.parse(JSON.parse(x)),
|
|
107
|
+
`Failed to parse 'ChargeEntry' from JSON`,
|
|
108
|
+
);
|
|
109
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ChargeEntry,
|
|
11
|
+
ChargeEntry$inboundSchema,
|
|
12
|
+
ChargeEntry$Outbound,
|
|
13
|
+
ChargeEntry$outboundSchema,
|
|
14
|
+
} from "./chargeentry.js";
|
|
15
|
+
|
|
16
|
+
export type ChargeHistory = {
|
|
17
|
+
/**
|
|
18
|
+
* Overall confidence in current value
|
|
19
|
+
*/
|
|
20
|
+
confidence: number;
|
|
21
|
+
/**
|
|
22
|
+
* Currency code
|
|
23
|
+
*/
|
|
24
|
+
currency?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Current best estimate (annual) in pence
|
|
27
|
+
*/
|
|
28
|
+
current?: number | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Historical charge records
|
|
31
|
+
*/
|
|
32
|
+
entries: Array<ChargeEntry>;
|
|
33
|
+
/**
|
|
34
|
+
* Last update timestamp
|
|
35
|
+
*/
|
|
36
|
+
lastUpdated: Date;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
/** @internal */
|
|
40
|
+
export const ChargeHistory$inboundSchema: z.ZodType<
|
|
41
|
+
ChargeHistory,
|
|
42
|
+
z.ZodTypeDef,
|
|
43
|
+
unknown
|
|
44
|
+
> = z.object({
|
|
45
|
+
confidence: z.number(),
|
|
46
|
+
currency: z.string().optional(),
|
|
47
|
+
current: z.nullable(z.number()).optional(),
|
|
48
|
+
entries: z.array(ChargeEntry$inboundSchema),
|
|
49
|
+
lastUpdated: z.string().datetime({ offset: true }).transform(v =>
|
|
50
|
+
new Date(v)
|
|
51
|
+
),
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type ChargeHistory$Outbound = {
|
|
56
|
+
confidence: number;
|
|
57
|
+
currency?: string | undefined;
|
|
58
|
+
current?: number | null | undefined;
|
|
59
|
+
entries: Array<ChargeEntry$Outbound>;
|
|
60
|
+
lastUpdated: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ChargeHistory$outboundSchema: z.ZodType<
|
|
65
|
+
ChargeHistory$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
ChargeHistory
|
|
68
|
+
> = z.object({
|
|
69
|
+
confidence: z.number(),
|
|
70
|
+
currency: z.string().optional(),
|
|
71
|
+
current: z.nullable(z.number()).optional(),
|
|
72
|
+
entries: z.array(ChargeEntry$outboundSchema),
|
|
73
|
+
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
79
|
+
*/
|
|
80
|
+
export namespace ChargeHistory$ {
|
|
81
|
+
/** @deprecated use `ChargeHistory$inboundSchema` instead. */
|
|
82
|
+
export const inboundSchema = ChargeHistory$inboundSchema;
|
|
83
|
+
/** @deprecated use `ChargeHistory$outboundSchema` instead. */
|
|
84
|
+
export const outboundSchema = ChargeHistory$outboundSchema;
|
|
85
|
+
/** @deprecated use `ChargeHistory$Outbound` instead. */
|
|
86
|
+
export type Outbound = ChargeHistory$Outbound;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function chargeHistoryToJSON(chargeHistory: ChargeHistory): string {
|
|
90
|
+
return JSON.stringify(ChargeHistory$outboundSchema.parse(chargeHistory));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function chargeHistoryFromJSON(
|
|
94
|
+
jsonString: string,
|
|
95
|
+
): SafeParseResult<ChargeHistory, SDKValidationError> {
|
|
96
|
+
return safeParse(
|
|
97
|
+
jsonString,
|
|
98
|
+
(x) => ChargeHistory$inboundSchema.parse(JSON.parse(x)),
|
|
99
|
+
`Failed to parse 'ChargeHistory' from JSON`,
|
|
100
|
+
);
|
|
101
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
export type CouncilTaxBandDetails = {
|
|
11
|
+
/**
|
|
12
|
+
* Annual amount in pence for this period
|
|
13
|
+
*/
|
|
14
|
+
annualAmount: number;
|
|
15
|
+
/**
|
|
16
|
+
* Effective from date
|
|
17
|
+
*/
|
|
18
|
+
effectiveFrom: string;
|
|
19
|
+
/**
|
|
20
|
+
* Effective to date (null if current)
|
|
21
|
+
*/
|
|
22
|
+
effectiveTo?: string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Record ID
|
|
25
|
+
*/
|
|
26
|
+
id: number;
|
|
27
|
+
/**
|
|
28
|
+
* Tax year
|
|
29
|
+
*/
|
|
30
|
+
taxYear: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const CouncilTaxBandDetails$inboundSchema: z.ZodType<
|
|
35
|
+
CouncilTaxBandDetails,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
unknown
|
|
38
|
+
> = z.object({
|
|
39
|
+
annualAmount: z.number(),
|
|
40
|
+
effectiveFrom: z.string(),
|
|
41
|
+
effectiveTo: z.nullable(z.string()).optional(),
|
|
42
|
+
id: z.number(),
|
|
43
|
+
taxYear: z.string(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/** @internal */
|
|
47
|
+
export type CouncilTaxBandDetails$Outbound = {
|
|
48
|
+
annualAmount: number;
|
|
49
|
+
effectiveFrom: string;
|
|
50
|
+
effectiveTo?: string | null | undefined;
|
|
51
|
+
id: number;
|
|
52
|
+
taxYear: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const CouncilTaxBandDetails$outboundSchema: z.ZodType<
|
|
57
|
+
CouncilTaxBandDetails$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
CouncilTaxBandDetails
|
|
60
|
+
> = z.object({
|
|
61
|
+
annualAmount: z.number(),
|
|
62
|
+
effectiveFrom: z.string(),
|
|
63
|
+
effectiveTo: z.nullable(z.string()).optional(),
|
|
64
|
+
id: z.number(),
|
|
65
|
+
taxYear: z.string(),
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export namespace CouncilTaxBandDetails$ {
|
|
73
|
+
/** @deprecated use `CouncilTaxBandDetails$inboundSchema` instead. */
|
|
74
|
+
export const inboundSchema = CouncilTaxBandDetails$inboundSchema;
|
|
75
|
+
/** @deprecated use `CouncilTaxBandDetails$outboundSchema` instead. */
|
|
76
|
+
export const outboundSchema = CouncilTaxBandDetails$outboundSchema;
|
|
77
|
+
/** @deprecated use `CouncilTaxBandDetails$Outbound` instead. */
|
|
78
|
+
export type Outbound = CouncilTaxBandDetails$Outbound;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function councilTaxBandDetailsToJSON(
|
|
82
|
+
councilTaxBandDetails: CouncilTaxBandDetails,
|
|
83
|
+
): string {
|
|
84
|
+
return JSON.stringify(
|
|
85
|
+
CouncilTaxBandDetails$outboundSchema.parse(councilTaxBandDetails),
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function councilTaxBandDetailsFromJSON(
|
|
90
|
+
jsonString: string,
|
|
91
|
+
): SafeParseResult<CouncilTaxBandDetails, SDKValidationError> {
|
|
92
|
+
return safeParse(
|
|
93
|
+
jsonString,
|
|
94
|
+
(x) => CouncilTaxBandDetails$inboundSchema.parse(JSON.parse(x)),
|
|
95
|
+
`Failed to parse 'CouncilTaxBandDetails' from JSON`,
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -7,6 +7,12 @@ import { safeParse } from "../../../lib/schemas.js";
|
|
|
7
7
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CouncilTaxBandDetails,
|
|
12
|
+
CouncilTaxBandDetails$inboundSchema,
|
|
13
|
+
CouncilTaxBandDetails$Outbound,
|
|
14
|
+
CouncilTaxBandDetails$outboundSchema,
|
|
15
|
+
} from "./counciltaxbanddetails.js";
|
|
10
16
|
|
|
11
17
|
/**
|
|
12
18
|
* Council tax band
|
|
@@ -29,17 +35,33 @@ export type TaxBand = ClosedEnum<typeof TaxBand>;
|
|
|
29
35
|
|
|
30
36
|
export type CouncilTaxData = {
|
|
31
37
|
/**
|
|
32
|
-
*
|
|
38
|
+
* Council identifier
|
|
33
39
|
*/
|
|
34
|
-
|
|
40
|
+
councilId?: string | null | undefined;
|
|
35
41
|
/**
|
|
36
|
-
*
|
|
42
|
+
* Current annual council tax charge in pence
|
|
37
43
|
*/
|
|
38
|
-
|
|
44
|
+
currentAnnualAmount?: number | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Current tax year
|
|
47
|
+
*/
|
|
48
|
+
currentTaxYear?: string | null | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Whether amount is estimated
|
|
51
|
+
*/
|
|
52
|
+
isEstimated?: boolean | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Council tax record status
|
|
55
|
+
*/
|
|
56
|
+
status?: string | null | undefined;
|
|
39
57
|
/**
|
|
40
58
|
* Council tax band
|
|
41
59
|
*/
|
|
42
|
-
taxBand?: TaxBand | undefined;
|
|
60
|
+
taxBand?: TaxBand | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Historical council tax band records
|
|
63
|
+
*/
|
|
64
|
+
taxBandDetails?: Array<CouncilTaxBandDetails> | undefined;
|
|
43
65
|
};
|
|
44
66
|
|
|
45
67
|
/** @internal */
|
|
@@ -67,16 +89,24 @@ export const CouncilTaxData$inboundSchema: z.ZodType<
|
|
|
67
89
|
z.ZodTypeDef,
|
|
68
90
|
unknown
|
|
69
91
|
> = z.object({
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
92
|
+
councilId: z.nullable(z.string()).optional(),
|
|
93
|
+
currentAnnualAmount: z.nullable(z.number()).optional(),
|
|
94
|
+
currentTaxYear: z.nullable(z.string()).optional(),
|
|
95
|
+
isEstimated: z.boolean().optional(),
|
|
96
|
+
status: z.nullable(z.string()).optional(),
|
|
97
|
+
taxBand: z.nullable(TaxBand$inboundSchema).optional(),
|
|
98
|
+
taxBandDetails: z.array(CouncilTaxBandDetails$inboundSchema).optional(),
|
|
73
99
|
});
|
|
74
100
|
|
|
75
101
|
/** @internal */
|
|
76
102
|
export type CouncilTaxData$Outbound = {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
103
|
+
councilId?: string | null | undefined;
|
|
104
|
+
currentAnnualAmount?: number | null | undefined;
|
|
105
|
+
currentTaxYear?: string | null | undefined;
|
|
106
|
+
isEstimated?: boolean | undefined;
|
|
107
|
+
status?: string | null | undefined;
|
|
108
|
+
taxBand?: string | null | undefined;
|
|
109
|
+
taxBandDetails?: Array<CouncilTaxBandDetails$Outbound> | undefined;
|
|
80
110
|
};
|
|
81
111
|
|
|
82
112
|
/** @internal */
|
|
@@ -85,9 +115,13 @@ export const CouncilTaxData$outboundSchema: z.ZodType<
|
|
|
85
115
|
z.ZodTypeDef,
|
|
86
116
|
CouncilTaxData
|
|
87
117
|
> = z.object({
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
118
|
+
councilId: z.nullable(z.string()).optional(),
|
|
119
|
+
currentAnnualAmount: z.nullable(z.number()).optional(),
|
|
120
|
+
currentTaxYear: z.nullable(z.string()).optional(),
|
|
121
|
+
isEstimated: z.boolean().optional(),
|
|
122
|
+
status: z.nullable(z.string()).optional(),
|
|
123
|
+
taxBand: z.nullable(TaxBand$outboundSchema).optional(),
|
|
124
|
+
taxBandDetails: z.array(CouncilTaxBandDetails$outboundSchema).optional(),
|
|
91
125
|
});
|
|
92
126
|
|
|
93
127
|
/**
|
|
@@ -52,21 +52,33 @@ export type EPCData = {
|
|
|
52
52
|
*/
|
|
53
53
|
currentEnergyRating?: CurrentEnergyRating | undefined;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Current annual heating cost in pence
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
heatingCostCurrent?: number | undefined;
|
|
58
58
|
/**
|
|
59
|
-
* Potential
|
|
59
|
+
* Potential annual heating cost in pence
|
|
60
60
|
*/
|
|
61
|
-
|
|
61
|
+
heatingCostPotential?: number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Current annual hot water cost in pence
|
|
64
|
+
*/
|
|
65
|
+
hotWaterCostCurrent?: number | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* Potential annual hot water cost in pence
|
|
68
|
+
*/
|
|
69
|
+
hotWaterCostPotential?: number | undefined;
|
|
62
70
|
/**
|
|
63
|
-
*
|
|
71
|
+
* Type of main heating control system
|
|
64
72
|
*/
|
|
65
|
-
|
|
73
|
+
mainHeatingControls?: string | undefined;
|
|
66
74
|
/**
|
|
67
|
-
*
|
|
75
|
+
* Potential energy efficiency score
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
potentialEnergyEfficiency?: number | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* Potential EPC rating
|
|
80
|
+
*/
|
|
81
|
+
potentialEnergyRating?: PotentialEnergyRating | undefined;
|
|
70
82
|
};
|
|
71
83
|
|
|
72
84
|
/** @internal */
|
|
@@ -116,20 +128,26 @@ export const EPCData$inboundSchema: z.ZodType<EPCData, z.ZodTypeDef, unknown> =
|
|
|
116
128
|
z.object({
|
|
117
129
|
currentEnergyEfficiency: z.number().optional(),
|
|
118
130
|
currentEnergyRating: CurrentEnergyRating$inboundSchema.optional(),
|
|
131
|
+
heatingCostCurrent: z.number().optional(),
|
|
132
|
+
heatingCostPotential: z.number().optional(),
|
|
133
|
+
hotWaterCostCurrent: z.number().optional(),
|
|
134
|
+
hotWaterCostPotential: z.number().optional(),
|
|
135
|
+
mainHeatingControls: z.string().optional(),
|
|
119
136
|
potentialEnergyEfficiency: z.number().optional(),
|
|
120
137
|
potentialEnergyRating: PotentialEnergyRating$inboundSchema.optional(),
|
|
121
|
-
validFrom: z.string().optional(),
|
|
122
|
-
validTo: z.string().optional(),
|
|
123
138
|
});
|
|
124
139
|
|
|
125
140
|
/** @internal */
|
|
126
141
|
export type EPCData$Outbound = {
|
|
127
142
|
currentEnergyEfficiency?: number | undefined;
|
|
128
143
|
currentEnergyRating?: string | undefined;
|
|
144
|
+
heatingCostCurrent?: number | undefined;
|
|
145
|
+
heatingCostPotential?: number | undefined;
|
|
146
|
+
hotWaterCostCurrent?: number | undefined;
|
|
147
|
+
hotWaterCostPotential?: number | undefined;
|
|
148
|
+
mainHeatingControls?: string | undefined;
|
|
129
149
|
potentialEnergyEfficiency?: number | undefined;
|
|
130
150
|
potentialEnergyRating?: string | undefined;
|
|
131
|
-
validFrom?: string | undefined;
|
|
132
|
-
validTo?: string | undefined;
|
|
133
151
|
};
|
|
134
152
|
|
|
135
153
|
/** @internal */
|
|
@@ -140,10 +158,13 @@ export const EPCData$outboundSchema: z.ZodType<
|
|
|
140
158
|
> = z.object({
|
|
141
159
|
currentEnergyEfficiency: z.number().optional(),
|
|
142
160
|
currentEnergyRating: CurrentEnergyRating$outboundSchema.optional(),
|
|
161
|
+
heatingCostCurrent: z.number().optional(),
|
|
162
|
+
heatingCostPotential: z.number().optional(),
|
|
163
|
+
hotWaterCostCurrent: z.number().optional(),
|
|
164
|
+
hotWaterCostPotential: z.number().optional(),
|
|
165
|
+
mainHeatingControls: z.string().optional(),
|
|
143
166
|
potentialEnergyEfficiency: z.number().optional(),
|
|
144
167
|
potentialEnergyRating: PotentialEnergyRating$outboundSchema.optional(),
|
|
145
|
-
validFrom: z.string().optional(),
|
|
146
|
-
validTo: z.string().optional(),
|
|
147
168
|
});
|
|
148
169
|
|
|
149
170
|
/**
|