@vepler/sdk 6.50.12 → 6.57.1
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/README.md +424 -416
- package/dist/commonjs/funcs/sitesGet.d.ts +1 -1
- package/dist/commonjs/funcs/sitesGet.js +5 -1
- package/dist/commonjs/funcs/sitesGet.js.map +1 -1
- package/dist/commonjs/funcs/sitesGetLand.d.ts +19 -0
- package/dist/commonjs/funcs/sitesGetLand.d.ts.map +1 -0
- package/dist/commonjs/funcs/sitesGetLand.js +131 -0
- package/dist/commonjs/funcs/sitesGetLand.js.map +1 -0
- package/dist/commonjs/funcs/sitesSearch.d.ts +1 -1
- package/dist/commonjs/funcs/sitesSearch.js +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getsiteland.d.ts +396 -0
- package/dist/commonjs/sdk/models/errors/getsiteland.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getsiteland.js +381 -0
- package/dist/commonjs/sdk/models/errors/getsiteland.js.map +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/errors/index.js +1 -0
- package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getsitebyid.d.ts +5 -0
- package/dist/commonjs/sdk/models/operations/getsitebyid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getsitebyid.js +1 -0
- package/dist/commonjs/sdk/models/operations/getsitebyid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getsiteland.d.ts +30 -0
- package/dist/commonjs/sdk/models/operations/getsiteland.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getsiteland.js +52 -0
- package/dist/commonjs/sdk/models/operations/getsiteland.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +1 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/building.d.ts +5 -5
- package/dist/commonjs/sdk/models/shared/building.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/building.js +7 -7
- package/dist/commonjs/sdk/models/shared/building.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/site.d.ts +68 -14
- package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.js +29 -6
- package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitebuilding.d.ts +176 -0
- package/dist/commonjs/sdk/models/shared/sitebuilding.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitebuilding.js +141 -0
- package/dist/commonjs/sdk/models/shared/sitebuilding.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingcount.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingcount.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingcount.js +51 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingcount.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingprofile.d.ts +94 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingprofile.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingprofile.js +75 -0
- package/dist/commonjs/sdk/models/shared/sitebuildingprofile.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintflags.d.ts +32 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintflags.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintflags.js +54 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintflags.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintlayer.d.ts +45 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintlayer.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintlayer.js +58 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintlayer.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraints.d.ts +31 -0
- package/dist/commonjs/sdk/models/shared/siteconstraints.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraints.js +56 -0
- package/dist/commonjs/sdk/models/shared/siteconstraints.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintunmeasured.d.ts +49 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintunmeasured.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintunmeasured.js +75 -0
- package/dist/commonjs/sdk/models/shared/siteconstraintunmeasured.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandfeature.d.ts +90 -0
- package/dist/commonjs/sdk/models/shared/sitelandfeature.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandfeature.js +79 -0
- package/dist/commonjs/sdk/models/shared/sitelandfeature.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandlistresponse.d.ts +46 -0
- package/dist/commonjs/sdk/models/shared/sitelandlistresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandlistresponse.js +69 -0
- package/dist/commonjs/sdk/models/shared/sitelandlistresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandprofile.d.ts +74 -0
- package/dist/commonjs/sdk/models/shared/sitelandprofile.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandprofile.js +70 -0
- package/dist/commonjs/sdk/models/shared/sitelandprofile.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandshare.d.ts +25 -0
- package/dist/commonjs/sdk/models/shared/sitelandshare.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitelandshare.js +53 -0
- package/dist/commonjs/sdk/models/shared/sitelandshare.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/sitequeryrequest.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/sitetags.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/sitetags.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/sitetags.js +1 -0
- package/dist/commonjs/sdk/models/shared/sitetags.js.map +1 -1
- package/dist/commonjs/sdk/sites.d.ts +9 -2
- package/dist/commonjs/sdk/sites.d.ts.map +1 -1
- package/dist/commonjs/sdk/sites.js +12 -2
- package/dist/commonjs/sdk/sites.js.map +1 -1
- package/dist/esm/funcs/sitesGet.d.ts +1 -1
- package/dist/esm/funcs/sitesGet.js +6 -2
- package/dist/esm/funcs/sitesGet.js.map +1 -1
- package/dist/esm/funcs/sitesGetLand.d.ts +19 -0
- package/dist/esm/funcs/sitesGetLand.d.ts.map +1 -0
- package/dist/esm/funcs/sitesGetLand.js +95 -0
- package/dist/esm/funcs/sitesGetLand.js.map +1 -0
- package/dist/esm/funcs/sitesSearch.d.ts +1 -1
- package/dist/esm/funcs/sitesSearch.js +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/errors/getsiteland.d.ts +396 -0
- package/dist/esm/sdk/models/errors/getsiteland.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getsiteland.js +333 -0
- package/dist/esm/sdk/models/errors/getsiteland.js.map +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts +1 -0
- package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/errors/index.js +1 -0
- package/dist/esm/sdk/models/errors/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/getsitebyid.d.ts +5 -0
- package/dist/esm/sdk/models/operations/getsitebyid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getsitebyid.js +1 -0
- package/dist/esm/sdk/models/operations/getsitebyid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getsiteland.d.ts +30 -0
- package/dist/esm/sdk/models/operations/getsiteland.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getsiteland.js +15 -0
- package/dist/esm/sdk/models/operations/getsiteland.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +1 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/building.d.ts +5 -5
- package/dist/esm/sdk/models/shared/building.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/building.js +5 -5
- package/dist/esm/sdk/models/shared/building.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/site.d.ts +68 -14
- package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/site.js +28 -5
- package/dist/esm/sdk/models/shared/site.js.map +1 -1
- package/dist/esm/sdk/models/shared/sitebuilding.d.ts +176 -0
- package/dist/esm/sdk/models/shared/sitebuilding.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitebuilding.js +101 -0
- package/dist/esm/sdk/models/shared/sitebuilding.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitebuildingcount.d.ts +17 -0
- package/dist/esm/sdk/models/shared/sitebuildingcount.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitebuildingcount.js +14 -0
- package/dist/esm/sdk/models/shared/sitebuildingcount.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitebuildingprofile.d.ts +94 -0
- package/dist/esm/sdk/models/shared/sitebuildingprofile.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitebuildingprofile.js +38 -0
- package/dist/esm/sdk/models/shared/sitebuildingprofile.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintflags.d.ts +32 -0
- package/dist/esm/sdk/models/shared/siteconstraintflags.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintflags.js +17 -0
- package/dist/esm/sdk/models/shared/siteconstraintflags.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintlayer.d.ts +45 -0
- package/dist/esm/sdk/models/shared/siteconstraintlayer.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintlayer.js +21 -0
- package/dist/esm/sdk/models/shared/siteconstraintlayer.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraints.d.ts +31 -0
- package/dist/esm/sdk/models/shared/siteconstraints.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraints.js +19 -0
- package/dist/esm/sdk/models/shared/siteconstraints.js.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintunmeasured.d.ts +49 -0
- package/dist/esm/sdk/models/shared/siteconstraintunmeasured.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/siteconstraintunmeasured.js +38 -0
- package/dist/esm/sdk/models/shared/siteconstraintunmeasured.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandfeature.d.ts +90 -0
- package/dist/esm/sdk/models/shared/sitelandfeature.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandfeature.js +41 -0
- package/dist/esm/sdk/models/shared/sitelandfeature.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandlistresponse.d.ts +46 -0
- package/dist/esm/sdk/models/shared/sitelandlistresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandlistresponse.js +32 -0
- package/dist/esm/sdk/models/shared/sitelandlistresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandprofile.d.ts +74 -0
- package/dist/esm/sdk/models/shared/sitelandprofile.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandprofile.js +33 -0
- package/dist/esm/sdk/models/shared/sitelandprofile.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandshare.d.ts +25 -0
- package/dist/esm/sdk/models/shared/sitelandshare.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/sitelandshare.js +16 -0
- package/dist/esm/sdk/models/shared/sitelandshare.js.map +1 -0
- package/dist/esm/sdk/models/shared/sitequeryrequest.d.ts +2 -2
- package/dist/esm/sdk/models/shared/sitetags.d.ts +4 -0
- package/dist/esm/sdk/models/shared/sitetags.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/sitetags.js +1 -0
- package/dist/esm/sdk/models/shared/sitetags.js.map +1 -1
- package/dist/esm/sdk/sites.d.ts +9 -2
- package/dist/esm/sdk/sites.d.ts.map +1 -1
- package/dist/esm/sdk/sites.js +12 -2
- package/dist/esm/sdk/sites.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/sitesGet.ts +7 -2
- package/src/funcs/sitesGetLand.ts +213 -0
- package/src/funcs/sitesSearch.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/errors/getsiteland.ts +770 -0
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/operations/getsitebyid.ts +6 -0
- package/src/sdk/models/operations/getsiteland.ts +52 -0
- package/src/sdk/models/operations/index.ts +1 -0
- package/src/sdk/models/shared/building.ts +11 -11
- package/src/sdk/models/shared/index.ts +11 -0
- package/src/sdk/models/shared/site.ts +95 -17
- package/src/sdk/models/shared/sitebuilding.ts +288 -0
- package/src/sdk/models/shared/sitebuildingcount.ts +39 -0
- package/src/sdk/models/shared/sitebuildingprofile.ts +140 -0
- package/src/sdk/models/shared/siteconstraintflags.ts +57 -0
- package/src/sdk/models/shared/siteconstraintlayer.ts +74 -0
- package/src/sdk/models/shared/siteconstraints.ts +64 -0
- package/src/sdk/models/shared/siteconstraintunmeasured.ts +83 -0
- package/src/sdk/models/shared/sitelandfeature.ts +145 -0
- package/src/sdk/models/shared/sitelandlistresponse.ts +86 -0
- package/src/sdk/models/shared/sitelandprofile.ts +110 -0
- package/src/sdk/models/shared/sitelandshare.ts +49 -0
- package/src/sdk/models/shared/sitequeryrequest.ts +2 -2
- package/src/sdk/models/shared/sitetags.ts +5 -0
- package/src/sdk/sites.ts +20 -2
|
@@ -83,6 +83,7 @@ export * from "./getschoolbysource.js";
|
|
|
83
83
|
export * from "./getschoolmetrics.js";
|
|
84
84
|
export * from "./getschoolscoverage.js";
|
|
85
85
|
export * from "./getsitebyid.js";
|
|
86
|
+
export * from "./getsiteland.js";
|
|
86
87
|
export * from "./getsitetiles.js";
|
|
87
88
|
export * from "./getsubstationbycode.js";
|
|
88
89
|
export * from "./getsubstationcapacity.js";
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
7
|
export type GetSiteByIdRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Extra fields to return, as one comma-separated string such as "buildings,buildingIds". They are added to the fields the endpoint returns by default. Name `buildings` to get the summary of every building on the title, or `buildingIds` for their identifiers alone.
|
|
10
|
+
*/
|
|
11
|
+
attributes?: string | undefined;
|
|
8
12
|
/**
|
|
9
13
|
* Identifier for a single registered title, made up of the country, the registry and the title number joined by colons.
|
|
10
14
|
*/
|
|
@@ -13,6 +17,7 @@ export type GetSiteByIdRequest = {
|
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type GetSiteByIdRequest$Outbound = {
|
|
20
|
+
attributes?: string | undefined;
|
|
16
21
|
siteId: string;
|
|
17
22
|
};
|
|
18
23
|
|
|
@@ -22,6 +27,7 @@ export const GetSiteByIdRequest$outboundSchema: z.ZodType<
|
|
|
22
27
|
z.ZodTypeDef,
|
|
23
28
|
GetSiteByIdRequest
|
|
24
29
|
> = z.object({
|
|
30
|
+
attributes: z.string().optional(),
|
|
25
31
|
siteId: z.string(),
|
|
26
32
|
});
|
|
27
33
|
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type GetSiteLandRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Optional fields to add to each land polygon, as one comma-separated string. The only optional field is `geometry`, the polygon boundary, which is left out by default because of its size.
|
|
10
|
+
*/
|
|
11
|
+
attributes?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Maximum number of land polygons to return. Defaults to 25. Minimum 1, maximum 100.
|
|
14
|
+
*/
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Number of land polygons to skip before the first one returned. Defaults to 0.
|
|
18
|
+
*/
|
|
19
|
+
offset?: number | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Identifier for a single registered title, made up of the country, the registry and the title number joined by colons.
|
|
22
|
+
*/
|
|
23
|
+
siteId: string;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export type GetSiteLandRequest$Outbound = {
|
|
28
|
+
attributes?: string | undefined;
|
|
29
|
+
limit: number;
|
|
30
|
+
offset: number | null;
|
|
31
|
+
siteId: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const GetSiteLandRequest$outboundSchema: z.ZodType<
|
|
36
|
+
GetSiteLandRequest$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
GetSiteLandRequest
|
|
39
|
+
> = z.object({
|
|
40
|
+
attributes: z.string().optional(),
|
|
41
|
+
limit: z.number().int().default(25),
|
|
42
|
+
offset: z.nullable(z.number().int().default(0)),
|
|
43
|
+
siteId: z.string(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export function getSiteLandRequestToJSON(
|
|
47
|
+
getSiteLandRequest: GetSiteLandRequest,
|
|
48
|
+
): string {
|
|
49
|
+
return JSON.stringify(
|
|
50
|
+
GetSiteLandRequest$outboundSchema.parse(getSiteLandRequest),
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -85,6 +85,7 @@ export * from "./getschoolbyid.js";
|
|
|
85
85
|
export * from "./getschoolbysource.js";
|
|
86
86
|
export * from "./getschoolmetrics.js";
|
|
87
87
|
export * from "./getsitebyid.js";
|
|
88
|
+
export * from "./getsiteland.js";
|
|
88
89
|
export * from "./getsitetiles.js";
|
|
89
90
|
export * from "./getsubstationbycode.js";
|
|
90
91
|
export * from "./getsubstationcapacity.js";
|
|
@@ -253,7 +253,7 @@ export type GeoJSONMultiPolygon = {
|
|
|
253
253
|
/**
|
|
254
254
|
* An area expressed as a GeoJSON Polygon geometry.
|
|
255
255
|
*/
|
|
256
|
-
export type
|
|
256
|
+
export type BuildingGeoJSONPolygon = {
|
|
257
257
|
/**
|
|
258
258
|
* The rings that make up the polygon. The first ring is the outer boundary and any further rings are holes inside it. Each ring needs at least four positions and closes by repeating its first position as the last.
|
|
259
259
|
*/
|
|
@@ -268,7 +268,7 @@ export type GeoJSONPolygon = {
|
|
|
268
268
|
* Outline of the building, as a GeoJSON Polygon or MultiPolygon. Left out of the default attribute set because of its size; request it with `attributes: ["footprint"]`.
|
|
269
269
|
*/
|
|
270
270
|
export type Footprint =
|
|
271
|
-
|
|
|
271
|
+
| BuildingGeoJSONPolygon
|
|
272
272
|
| GeoJSONMultiPolygon
|
|
273
273
|
| discriminatedUnionTypes.Unknown<"type">;
|
|
274
274
|
|
|
@@ -568,7 +568,7 @@ export type Building = {
|
|
|
568
568
|
* Outline of the building, as a GeoJSON Polygon or MultiPolygon. Left out of the default attribute set because of its size; request it with `attributes: ["footprint"]`.
|
|
569
569
|
*/
|
|
570
570
|
footprint?:
|
|
571
|
-
|
|
|
571
|
+
| BuildingGeoJSONPolygon
|
|
572
572
|
| GeoJSONMultiPolygon
|
|
573
573
|
| discriminatedUnionTypes.Unknown<"type">
|
|
574
574
|
| null
|
|
@@ -820,8 +820,8 @@ export function geoJSONMultiPolygonFromJSON(
|
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
/** @internal */
|
|
823
|
-
export const
|
|
824
|
-
|
|
823
|
+
export const BuildingGeoJSONPolygon$inboundSchema: z.ZodType<
|
|
824
|
+
BuildingGeoJSONPolygon,
|
|
825
825
|
z.ZodTypeDef,
|
|
826
826
|
unknown
|
|
827
827
|
> = z.object({
|
|
@@ -829,13 +829,13 @@ export const GeoJSONPolygon$inboundSchema: z.ZodType<
|
|
|
829
829
|
type: z.literal("Polygon"),
|
|
830
830
|
});
|
|
831
831
|
|
|
832
|
-
export function
|
|
832
|
+
export function buildingGeoJSONPolygonFromJSON(
|
|
833
833
|
jsonString: string,
|
|
834
|
-
): SafeParseResult<
|
|
834
|
+
): SafeParseResult<BuildingGeoJSONPolygon, SDKValidationError> {
|
|
835
835
|
return safeParse(
|
|
836
836
|
jsonString,
|
|
837
|
-
(x) =>
|
|
838
|
-
`Failed to parse '
|
|
837
|
+
(x) => BuildingGeoJSONPolygon$inboundSchema.parse(JSON.parse(x)),
|
|
838
|
+
`Failed to parse 'BuildingGeoJSONPolygon' from JSON`,
|
|
839
839
|
);
|
|
840
840
|
}
|
|
841
841
|
|
|
@@ -845,7 +845,7 @@ export const Footprint$inboundSchema: z.ZodType<
|
|
|
845
845
|
z.ZodTypeDef,
|
|
846
846
|
unknown
|
|
847
847
|
> = discriminatedUnion("type", {
|
|
848
|
-
Polygon: z.lazy(() =>
|
|
848
|
+
Polygon: z.lazy(() => BuildingGeoJSONPolygon$inboundSchema),
|
|
849
849
|
MultiPolygon: z.lazy(() => GeoJSONMultiPolygon$inboundSchema),
|
|
850
850
|
});
|
|
851
851
|
|
|
@@ -1004,7 +1004,7 @@ export const Building$inboundSchema: z.ZodType<
|
|
|
1004
1004
|
floors: z.nullable(z.number().int()).optional(),
|
|
1005
1005
|
footprint: z.nullable(
|
|
1006
1006
|
discriminatedUnion("type", {
|
|
1007
|
-
Polygon: z.lazy(() =>
|
|
1007
|
+
Polygon: z.lazy(() => BuildingGeoJSONPolygon$inboundSchema),
|
|
1008
1008
|
MultiPolygon: z.lazy(() => GeoJSONMultiPolygon$inboundSchema),
|
|
1009
1009
|
}),
|
|
1010
1010
|
).optional(),
|
|
@@ -389,8 +389,19 @@ export * from "./siteareafilter.js";
|
|
|
389
389
|
export * from "./siteareametrics.js";
|
|
390
390
|
export * from "./sitebatchidsrequest.js";
|
|
391
391
|
export * from "./siteboundingboxareafilter.js";
|
|
392
|
+
export * from "./sitebuilding.js";
|
|
393
|
+
export * from "./sitebuildingcount.js";
|
|
394
|
+
export * from "./sitebuildingprofile.js";
|
|
395
|
+
export * from "./siteconstraintflags.js";
|
|
396
|
+
export * from "./siteconstraintlayer.js";
|
|
397
|
+
export * from "./siteconstraints.js";
|
|
398
|
+
export * from "./siteconstraintunmeasured.js";
|
|
392
399
|
export * from "./sitecontainspointareafilter.js";
|
|
393
400
|
export * from "./sitefilters.js";
|
|
401
|
+
export * from "./sitelandfeature.js";
|
|
402
|
+
export * from "./sitelandlistresponse.js";
|
|
403
|
+
export * from "./sitelandprofile.js";
|
|
404
|
+
export * from "./sitelandshare.js";
|
|
394
405
|
export * from "./siteleafaggregation.js";
|
|
395
406
|
export * from "./sitelistresponse.js";
|
|
396
407
|
export * from "./sitemultipolygonareafilter.js";
|
|
@@ -14,6 +14,19 @@ import {
|
|
|
14
14
|
SiteAreaMetrics,
|
|
15
15
|
SiteAreaMetrics$inboundSchema,
|
|
16
16
|
} from "./siteareametrics.js";
|
|
17
|
+
import { SiteBuilding, SiteBuilding$inboundSchema } from "./sitebuilding.js";
|
|
18
|
+
import {
|
|
19
|
+
SiteBuildingProfile,
|
|
20
|
+
SiteBuildingProfile$inboundSchema,
|
|
21
|
+
} from "./sitebuildingprofile.js";
|
|
22
|
+
import {
|
|
23
|
+
SiteConstraints,
|
|
24
|
+
SiteConstraints$inboundSchema,
|
|
25
|
+
} from "./siteconstraints.js";
|
|
26
|
+
import {
|
|
27
|
+
SiteLandProfile,
|
|
28
|
+
SiteLandProfile$inboundSchema,
|
|
29
|
+
} from "./sitelandprofile.js";
|
|
17
30
|
import {
|
|
18
31
|
SitePlanningStats,
|
|
19
32
|
SitePlanningStats$inboundSchema,
|
|
@@ -148,7 +161,20 @@ export const SiteObject = {
|
|
|
148
161
|
export type SiteObject = ClosedEnum<typeof SiteObject>;
|
|
149
162
|
|
|
150
163
|
/**
|
|
151
|
-
*
|
|
164
|
+
* Whether the title appears in HM Land Registry's monthly files of land held by UK and overseas companies. 'company' means it does, and its company proprietors are listed. 'not_in_register' means it does not as of `asOf`, so the title is held by one or more private individuals or by a body those files do not cover. 'not_loaded' means the files had not been loaded when this title was last assessed, so its company ownership is not known.
|
|
165
|
+
*/
|
|
166
|
+
export const Availability = {
|
|
167
|
+
Company: "company",
|
|
168
|
+
NotInRegister: "not_in_register",
|
|
169
|
+
NotLoaded: "not_loaded",
|
|
170
|
+
} as const;
|
|
171
|
+
/**
|
|
172
|
+
* Whether the title appears in HM Land Registry's monthly files of land held by UK and overseas companies. 'company' means it does, and its company proprietors are listed. 'not_in_register' means it does not as of `asOf`, so the title is held by one or more private individuals or by a body those files do not cover. 'not_loaded' means the files had not been loaded when this title was last assessed, so its company ownership is not known.
|
|
173
|
+
*/
|
|
174
|
+
export type Availability = OpenEnum<typeof Availability>;
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* Broad category the primary proprietor falls into, worked out from its entity type. Null when no proprietor is recorded.
|
|
152
178
|
*/
|
|
153
179
|
export const OwnershipCategory = {
|
|
154
180
|
Company: "company",
|
|
@@ -158,12 +184,12 @@ export const OwnershipCategory = {
|
|
|
158
184
|
Unknown: "unknown",
|
|
159
185
|
} as const;
|
|
160
186
|
/**
|
|
161
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
187
|
+
* Broad category the primary proprietor falls into, worked out from its entity type. Null when no proprietor is recorded.
|
|
162
188
|
*/
|
|
163
189
|
export type OwnershipCategory = OpenEnum<typeof OwnershipCategory>;
|
|
164
190
|
|
|
165
191
|
/**
|
|
166
|
-
* Which HM Land Registry record the
|
|
192
|
+
* Which HM Land Registry record the primary proprietor was taken from. Null when no proprietor is recorded.
|
|
167
193
|
*/
|
|
168
194
|
export const SiteSource = {
|
|
169
195
|
Ccod: "ccod",
|
|
@@ -172,14 +198,22 @@ export const SiteSource = {
|
|
|
172
198
|
Manual: "manual",
|
|
173
199
|
} as const;
|
|
174
200
|
/**
|
|
175
|
-
* Which HM Land Registry record the
|
|
201
|
+
* Which HM Land Registry record the primary proprietor was taken from. Null when no proprietor is recorded.
|
|
176
202
|
*/
|
|
177
203
|
export type SiteSource = OpenEnum<typeof SiteSource>;
|
|
178
204
|
|
|
179
205
|
/**
|
|
180
|
-
* Registered ownership of the title. Null when
|
|
206
|
+
* Registered ownership of the title. Null when the title has not been assessed for ownership yet. Requires the `sourceData` permission on the licence, and is left out of the response without it.
|
|
181
207
|
*/
|
|
182
208
|
export type Ownership = {
|
|
209
|
+
/**
|
|
210
|
+
* Month of the company ownership files that `availability` is based on, as YYYY-MM. For 'company', the month of the file the title appears in. For 'not_in_register', the earlier of the company and overseas-company files' months. Null when `availability` is 'not_loaded'.
|
|
211
|
+
*/
|
|
212
|
+
asOf?: string | null | undefined;
|
|
213
|
+
/**
|
|
214
|
+
* Whether the title appears in HM Land Registry's monthly files of land held by UK and overseas companies. 'company' means it does, and its company proprietors are listed. 'not_in_register' means it does not as of `asOf`, so the title is held by one or more private individuals or by a body those files do not cover. 'not_loaded' means the files had not been loaded when this title was last assessed, so its company ownership is not known.
|
|
215
|
+
*/
|
|
216
|
+
availability?: Availability | undefined;
|
|
183
217
|
/**
|
|
184
218
|
* Company registration number of the primary proprietor, where it is a company.
|
|
185
219
|
*/
|
|
@@ -193,21 +227,21 @@ export type Ownership = {
|
|
|
193
227
|
*/
|
|
194
228
|
isJointOwnership?: boolean | undefined;
|
|
195
229
|
/**
|
|
196
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
230
|
+
* Broad category the primary proprietor falls into, worked out from its entity type. Null when no proprietor is recorded.
|
|
197
231
|
*/
|
|
198
|
-
ownershipCategory?: OwnershipCategory | undefined;
|
|
232
|
+
ownershipCategory?: OwnershipCategory | null | undefined;
|
|
199
233
|
/**
|
|
200
|
-
* Name of the primary proprietor.
|
|
234
|
+
* Name of the primary proprietor. Null when no proprietor is recorded.
|
|
201
235
|
*/
|
|
202
|
-
primaryOwnerName?: string | undefined;
|
|
236
|
+
primaryOwnerName?: string | null | undefined;
|
|
203
237
|
/**
|
|
204
|
-
* Every proprietor recorded on the title, with the primary one first.
|
|
238
|
+
* Every proprietor recorded on the title, with the primary one first. Empty when none is recorded.
|
|
205
239
|
*/
|
|
206
240
|
proprietors?: Array<SiteProprietor> | undefined;
|
|
207
241
|
/**
|
|
208
|
-
* Which HM Land Registry record the
|
|
242
|
+
* Which HM Land Registry record the primary proprietor was taken from. Null when no proprietor is recorded.
|
|
209
243
|
*/
|
|
210
|
-
source?: SiteSource | undefined;
|
|
244
|
+
source?: SiteSource | null | undefined;
|
|
211
245
|
};
|
|
212
246
|
|
|
213
247
|
/**
|
|
@@ -256,6 +290,26 @@ export type Site = {
|
|
|
256
290
|
| SiteGeoJSONMultiPolygon
|
|
257
291
|
| discriminatedUnionTypes.Unknown<"type">
|
|
258
292
|
| undefined;
|
|
293
|
+
/**
|
|
294
|
+
* Identifiers of the buildings whose footprint intersects the title, for use with the buildings endpoints. Left out of the default attribute set; request it with `attributes: ["buildingIds"]`. Requires the `osNgdAccess` permission on the licence.
|
|
295
|
+
*/
|
|
296
|
+
buildingIds?: Array<string> | undefined;
|
|
297
|
+
/**
|
|
298
|
+
* The buildings whose footprint intersects the title, measured on the title boundary. Requires the `osNgdAccess` permission on the licence, and is left out of the response without it.
|
|
299
|
+
*/
|
|
300
|
+
buildingProfile?: SiteBuildingProfile | undefined;
|
|
301
|
+
/**
|
|
302
|
+
* The buildings whose footprint intersects the title, each as the summary the buildings endpoints serve for that building, in identifier order. Holds at most the configured cap of buildings; when `buildingsTruncated` is true because the title has more buildings than the cap, the full set is available from the buildings query endpoint filtered by this site identifier. Left out of the default attribute set because of its size; request it with `attributes: ["buildings"]`. Requires the `osNgdAccess` permission on the licence.
|
|
303
|
+
*/
|
|
304
|
+
buildings?: Array<SiteBuilding> | undefined;
|
|
305
|
+
/**
|
|
306
|
+
* Number of buildings whose footprint intersects the title. The same count as `buildingProfile.count`. Requires the `osNgdAccess` permission on the licence.
|
|
307
|
+
*/
|
|
308
|
+
buildingsTotal?: number | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* Whether `buildings` holds fewer buildings than `buildingsTotal`, either because the title has more buildings than the configured cap or because a building has no record on the buildings endpoints yet. Requires the `osNgdAccess` permission on the licence.
|
|
311
|
+
*/
|
|
312
|
+
buildingsTruncated?: boolean | undefined;
|
|
259
313
|
/**
|
|
260
314
|
* Centre point of the title boundary. Present whenever the site has a boundary, unless `centroid` is left out of the requested attributes.
|
|
261
315
|
*/
|
|
@@ -264,6 +318,10 @@ export type Site = {
|
|
|
264
318
|
* HM Land Registry class of title code, which records the quality of the title and the tenure it is held under. Left out of the default attribute set; request it with `attributes: ["classTitleCode"]`.
|
|
265
319
|
*/
|
|
266
320
|
classTitleCode?: ClassTitleCode | null | undefined;
|
|
321
|
+
/**
|
|
322
|
+
* Planning designations and environmental hazards measured over the whole title boundary, each with the share of the title it covers. This supersedes `overlays`, which is read at the centre point of the site.
|
|
323
|
+
*/
|
|
324
|
+
constraints?: SiteConstraints | undefined;
|
|
267
325
|
/**
|
|
268
326
|
* Country the title is registered in, as an ISO 3166-1 alpha-2 code.
|
|
269
327
|
*/
|
|
@@ -272,6 +330,10 @@ export type Site = {
|
|
|
272
330
|
* HM Land Registry estate interest code, which records the kind of interest the title covers. Almost always `EL`, an estate in land. It does not distinguish freehold from leasehold; read `classTitleCode` or `tenureType` for that. Left out of the default attribute set; request it with `attributes: ["estateInterestCode"]`.
|
|
273
331
|
*/
|
|
274
332
|
estateInterestCode?: EstateInterestCode | null | undefined;
|
|
333
|
+
/**
|
|
334
|
+
* Land cover and use composition of the title, measured on the title boundary. Requires the `osNgdAccess` permission on the licence, and is left out of the response without it.
|
|
335
|
+
*/
|
|
336
|
+
landProfile?: SiteLandProfile | undefined;
|
|
275
337
|
/**
|
|
276
338
|
* Land use classifications recorded for the site.
|
|
277
339
|
*/
|
|
@@ -289,11 +351,11 @@ export type Site = {
|
|
|
289
351
|
*/
|
|
290
352
|
object?: SiteObject | undefined;
|
|
291
353
|
/**
|
|
292
|
-
* Codes for the designations and hazards recorded against this site, covering flood risk, road and rail noise, radon, landfill proximity and protected-area designations. The set is open rather than fixed: it depends on which area datasets cover the site.
|
|
354
|
+
* Codes for the designations and hazards recorded against this site, covering flood risk, road and rail noise, radon, landfill proximity and protected-area designations. `GREEN_BELT`, `CONSERVATION_AREA`, `SSSI` and `LISTED_BUILDING_CURTILAGE` are present when the matching flag in `constraints.flags` is true; the other codes are read at the centre point of the site. The set is open rather than fixed: it depends on which area datasets cover the site.
|
|
293
355
|
*/
|
|
294
356
|
overlays?: Array<string> | undefined;
|
|
295
357
|
/**
|
|
296
|
-
* Registered ownership of the title. Null when
|
|
358
|
+
* Registered ownership of the title. Null when the title has not been assessed for ownership yet. Requires the `sourceData` permission on the licence, and is left out of the response without it.
|
|
297
359
|
*/
|
|
298
360
|
ownership?: Ownership | null | undefined;
|
|
299
361
|
/**
|
|
@@ -452,6 +514,13 @@ export const LandUse$inboundSchema: z.ZodType<LandUse, z.ZodTypeDef, unknown> =
|
|
|
452
514
|
export const SiteObject$inboundSchema: z.ZodNativeEnum<typeof SiteObject> = z
|
|
453
515
|
.nativeEnum(SiteObject);
|
|
454
516
|
|
|
517
|
+
/** @internal */
|
|
518
|
+
export const Availability$inboundSchema: z.ZodType<
|
|
519
|
+
Availability,
|
|
520
|
+
z.ZodTypeDef,
|
|
521
|
+
unknown
|
|
522
|
+
> = openEnums.inboundSchema(Availability);
|
|
523
|
+
|
|
455
524
|
/** @internal */
|
|
456
525
|
export const OwnershipCategory$inboundSchema: z.ZodType<
|
|
457
526
|
OwnershipCategory,
|
|
@@ -472,13 +541,15 @@ export const Ownership$inboundSchema: z.ZodType<
|
|
|
472
541
|
z.ZodTypeDef,
|
|
473
542
|
unknown
|
|
474
543
|
> = z.object({
|
|
544
|
+
asOf: z.nullable(z.string()).optional(),
|
|
545
|
+
availability: Availability$inboundSchema.optional(),
|
|
475
546
|
companyNumber: z.nullable(z.string()).optional(),
|
|
476
547
|
dateProprietorAdded: z.nullable(z.string()).optional(),
|
|
477
548
|
isJointOwnership: z.boolean().optional(),
|
|
478
|
-
ownershipCategory: OwnershipCategory$inboundSchema.optional(),
|
|
479
|
-
primaryOwnerName: z.string().optional(),
|
|
549
|
+
ownershipCategory: z.nullable(OwnershipCategory$inboundSchema).optional(),
|
|
550
|
+
primaryOwnerName: z.nullable(z.string()).optional(),
|
|
480
551
|
proprietors: z.array(SiteProprietor$inboundSchema).optional(),
|
|
481
|
-
source: SiteSource$inboundSchema.optional(),
|
|
552
|
+
source: z.nullable(SiteSource$inboundSchema).optional(),
|
|
482
553
|
});
|
|
483
554
|
|
|
484
555
|
export function ownershipFromJSON(
|
|
@@ -514,10 +585,17 @@ export const Site$inboundSchema: z.ZodType<Site, z.ZodTypeDef, unknown> = z
|
|
|
514
585
|
Polygon: z.lazy(() => SiteGeoJSONPolygon$inboundSchema),
|
|
515
586
|
MultiPolygon: z.lazy(() => SiteGeoJSONMultiPolygon$inboundSchema),
|
|
516
587
|
}).optional(),
|
|
588
|
+
buildingIds: z.array(z.string()).optional(),
|
|
589
|
+
buildingProfile: SiteBuildingProfile$inboundSchema.optional(),
|
|
590
|
+
buildings: z.array(SiteBuilding$inboundSchema).optional(),
|
|
591
|
+
buildingsTotal: z.number().int().optional(),
|
|
592
|
+
buildingsTruncated: z.boolean().optional(),
|
|
517
593
|
centroid: z.lazy(() => SiteCoordinates$inboundSchema).optional(),
|
|
518
594
|
classTitleCode: z.nullable(ClassTitleCode$inboundSchema).optional(),
|
|
595
|
+
constraints: SiteConstraints$inboundSchema.optional(),
|
|
519
596
|
country: z.string().optional(),
|
|
520
597
|
estateInterestCode: z.nullable(EstateInterestCode$inboundSchema).optional(),
|
|
598
|
+
landProfile: SiteLandProfile$inboundSchema.optional(),
|
|
521
599
|
landUse: z.array(LandUse$inboundSchema).optional(),
|
|
522
600
|
locationCount: z.number().optional(),
|
|
523
601
|
locationIds: z.array(z.string()).optional(),
|