@vepler/sdk 6.52.0 → 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 +7 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +7 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.d.ts +54 -14
- package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.js +24 -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/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/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 +7 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +7 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/site.d.ts +54 -14
- package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/site.js +23 -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/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/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 +7 -0
- package/src/sdk/models/shared/site.ts +72 -17
- package/src/sdk/models/shared/sitebuilding.ts +288 -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/sitequeryrequest.ts +2 -2
- package/src/sdk/models/shared/sitetags.ts +5 -0
- package/src/sdk/sites.ts +20 -2
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
* Yes or no answers for five common constraints. A flag is false only when its layer was measured on the title and covers no more than `flagThresholdPct` of it.
|
|
12
|
+
*/
|
|
13
|
+
export type SiteConstraintFlags = {
|
|
14
|
+
/**
|
|
15
|
+
* Whether the title is on brownfield land. Null when it was not measured.
|
|
16
|
+
*/
|
|
17
|
+
brownfield?: boolean | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* True when a conservation area covers more of the title than `flagThresholdPct`. Null when it was not measured.
|
|
20
|
+
*/
|
|
21
|
+
conservationArea?: boolean | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* True when Green Belt covers more of the title than `flagThresholdPct`. Null when it was not measured.
|
|
24
|
+
*/
|
|
25
|
+
greenBelt?: boolean | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* True when the curtilage of a listed building covers more of the title than `flagThresholdPct`. Null otherwise, because curtilage is published for only part of Wales and its absence elsewhere proves nothing.
|
|
28
|
+
*/
|
|
29
|
+
listedBuildingCurtilage?: boolean | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* True when a Site of Special Scientific Interest covers more of the title than `flagThresholdPct`. Null when it was not measured.
|
|
32
|
+
*/
|
|
33
|
+
sssi?: boolean | null | undefined;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const SiteConstraintFlags$inboundSchema: z.ZodType<
|
|
38
|
+
SiteConstraintFlags,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
unknown
|
|
41
|
+
> = z.object({
|
|
42
|
+
brownfield: z.nullable(z.boolean()).optional(),
|
|
43
|
+
conservationArea: z.nullable(z.boolean()).optional(),
|
|
44
|
+
greenBelt: z.nullable(z.boolean()).optional(),
|
|
45
|
+
listedBuildingCurtilage: z.nullable(z.boolean()).optional(),
|
|
46
|
+
sssi: z.nullable(z.boolean()).optional(),
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export function siteConstraintFlagsFromJSON(
|
|
50
|
+
jsonString: string,
|
|
51
|
+
): SafeParseResult<SiteConstraintFlags, SDKValidationError> {
|
|
52
|
+
return safeParse(
|
|
53
|
+
jsonString,
|
|
54
|
+
(x) => SiteConstraintFlags$inboundSchema.parse(JSON.parse(x)),
|
|
55
|
+
`Failed to parse 'SiteConstraintFlags' from JSON`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
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 SiteConstraintLayer = {
|
|
11
|
+
/**
|
|
12
|
+
* Date the layer's data was retrieved from its publisher, as an ISO 8601 date. Null when no retrieval date is recorded for the layer.
|
|
13
|
+
*/
|
|
14
|
+
asOf?: string | null | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The layer within its family: a designation type such as `green_belt` or `flood_zone_3`, or a hazard band such as `RADON_HIGH`, `ROAD_NOISE_MED` or `HISTORIC_LANDFILL_DIRECT`.
|
|
17
|
+
*/
|
|
18
|
+
code?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The publisher's edition of the data, as it states it: a date, an atlas version or a mapping year. Null when the publisher states none.
|
|
21
|
+
*/
|
|
22
|
+
edition?: string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Number of the layer's features that lie on the title. Null for the noise layers, which are mapped as a grid rather than as features.
|
|
25
|
+
*/
|
|
26
|
+
featureCount?: number | null | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Readable name of the layer.
|
|
29
|
+
*/
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Nation the designation was made in, such as `ENG` or `WAL`. Null for the hazard layers, which are not designations.
|
|
33
|
+
*/
|
|
34
|
+
nation?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Share of the title area the layer covers, from 0 to 100. Null when `overlapSqm` is null.
|
|
37
|
+
*/
|
|
38
|
+
overlapPct?: number | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Area of the title the layer covers, in square metres. Overlapping features of one layer count the ground once. Null when the layer's features on the title are points, which have no area.
|
|
41
|
+
*/
|
|
42
|
+
overlapSqm?: number | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The dataset the layer comes from: a designation product (`heritage`, `conservation` for nature conservation, `conservation_area` or `land_constraint`) or a hazard (`radon`, `historic_landfill`, `road_noise` or `rail_noise`). The set is open and grows as layers are added.
|
|
45
|
+
*/
|
|
46
|
+
type?: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const SiteConstraintLayer$inboundSchema: z.ZodType<
|
|
51
|
+
SiteConstraintLayer,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
unknown
|
|
54
|
+
> = z.object({
|
|
55
|
+
asOf: z.nullable(z.string()).optional(),
|
|
56
|
+
code: z.string().optional(),
|
|
57
|
+
edition: z.nullable(z.string()).optional(),
|
|
58
|
+
featureCount: z.nullable(z.number().int()).optional(),
|
|
59
|
+
name: z.string().optional(),
|
|
60
|
+
nation: z.nullable(z.string()).optional(),
|
|
61
|
+
overlapPct: z.nullable(z.number()).optional(),
|
|
62
|
+
overlapSqm: z.nullable(z.number()).optional(),
|
|
63
|
+
type: z.string().optional(),
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export function siteConstraintLayerFromJSON(
|
|
67
|
+
jsonString: string,
|
|
68
|
+
): SafeParseResult<SiteConstraintLayer, SDKValidationError> {
|
|
69
|
+
return safeParse(
|
|
70
|
+
jsonString,
|
|
71
|
+
(x) => SiteConstraintLayer$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
+
`Failed to parse 'SiteConstraintLayer' from JSON`,
|
|
73
|
+
);
|
|
74
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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
|
+
SiteConstraintFlags,
|
|
11
|
+
SiteConstraintFlags$inboundSchema,
|
|
12
|
+
} from "./siteconstraintflags.js";
|
|
13
|
+
import {
|
|
14
|
+
SiteConstraintLayer,
|
|
15
|
+
SiteConstraintLayer$inboundSchema,
|
|
16
|
+
} from "./siteconstraintlayer.js";
|
|
17
|
+
import {
|
|
18
|
+
SiteConstraintUnmeasured,
|
|
19
|
+
SiteConstraintUnmeasured$inboundSchema,
|
|
20
|
+
} from "./siteconstraintunmeasured.js";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
export type SiteConstraints = {
|
|
26
|
+
/**
|
|
27
|
+
* Share of the title area, from 0 to 100, a flag's layer must exceed for the flag to be true. It keeps thin slivers where two datasets' boundaries disagree from setting a flag.
|
|
28
|
+
*/
|
|
29
|
+
flagThresholdPct?: number | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Yes or no answers for five common constraints. A flag is false only when its layer was measured on the title and covers no more than `flagThresholdPct` of it.
|
|
32
|
+
*/
|
|
33
|
+
flags?: SiteConstraintFlags | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Every constraint layer with at least one feature on the title, measured over the whole title boundary, sorted by `type` then `code`. A layer absent from the list has no feature on the title in the data held, which is not proof the constraint does not apply: read `flags` and `unmeasured` for whether a layer's data covers the title.
|
|
36
|
+
*/
|
|
37
|
+
layers?: Array<SiteConstraintLayer> | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* One entry for each null flag, saying why it was not measured.
|
|
40
|
+
*/
|
|
41
|
+
unmeasured?: Array<SiteConstraintUnmeasured> | undefined;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const SiteConstraints$inboundSchema: z.ZodType<
|
|
46
|
+
SiteConstraints,
|
|
47
|
+
z.ZodTypeDef,
|
|
48
|
+
unknown
|
|
49
|
+
> = z.object({
|
|
50
|
+
flagThresholdPct: z.number().optional(),
|
|
51
|
+
flags: SiteConstraintFlags$inboundSchema.optional(),
|
|
52
|
+
layers: z.array(SiteConstraintLayer$inboundSchema).optional(),
|
|
53
|
+
unmeasured: z.array(SiteConstraintUnmeasured$inboundSchema).optional(),
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
export function siteConstraintsFromJSON(
|
|
57
|
+
jsonString: string,
|
|
58
|
+
): SafeParseResult<SiteConstraints, SDKValidationError> {
|
|
59
|
+
return safeParse(
|
|
60
|
+
jsonString,
|
|
61
|
+
(x) => SiteConstraints$inboundSchema.parse(JSON.parse(x)),
|
|
62
|
+
`Failed to parse 'SiteConstraints' from JSON`,
|
|
63
|
+
);
|
|
64
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The flag that is null.
|
|
14
|
+
*/
|
|
15
|
+
export const Flag = {
|
|
16
|
+
GreenBelt: "greenBelt",
|
|
17
|
+
ConservationArea: "conservationArea",
|
|
18
|
+
Sssi: "sssi",
|
|
19
|
+
ListedBuildingCurtilage: "listedBuildingCurtilage",
|
|
20
|
+
Brownfield: "brownfield",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* The flag that is null.
|
|
24
|
+
*/
|
|
25
|
+
export type Flag = OpenEnum<typeof Flag>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Why the flag was not measured: `outside_source_coverage` when the title lies outside the nations the data covers, `authority_not_in_source` when the title's planning authority has published no feature to the data, `partial_source_coverage` when the data covers only part of its nation, or `source_not_held` when no data for the layer is held.
|
|
29
|
+
*/
|
|
30
|
+
export const SiteConstraintUnmeasuredReason = {
|
|
31
|
+
OutsideSourceCoverage: "outside_source_coverage",
|
|
32
|
+
AuthorityNotInSource: "authority_not_in_source",
|
|
33
|
+
PartialSourceCoverage: "partial_source_coverage",
|
|
34
|
+
SourceNotHeld: "source_not_held",
|
|
35
|
+
} as const;
|
|
36
|
+
/**
|
|
37
|
+
* Why the flag was not measured: `outside_source_coverage` when the title lies outside the nations the data covers, `authority_not_in_source` when the title's planning authority has published no feature to the data, `partial_source_coverage` when the data covers only part of its nation, or `source_not_held` when no data for the layer is held.
|
|
38
|
+
*/
|
|
39
|
+
export type SiteConstraintUnmeasuredReason = OpenEnum<
|
|
40
|
+
typeof SiteConstraintUnmeasuredReason
|
|
41
|
+
>;
|
|
42
|
+
|
|
43
|
+
export type SiteConstraintUnmeasured = {
|
|
44
|
+
/**
|
|
45
|
+
* The flag that is null.
|
|
46
|
+
*/
|
|
47
|
+
flag?: Flag | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Why the flag was not measured: `outside_source_coverage` when the title lies outside the nations the data covers, `authority_not_in_source` when the title's planning authority has published no feature to the data, `partial_source_coverage` when the data covers only part of its nation, or `source_not_held` when no data for the layer is held.
|
|
50
|
+
*/
|
|
51
|
+
reason?: SiteConstraintUnmeasuredReason | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export const Flag$inboundSchema: z.ZodType<Flag, z.ZodTypeDef, unknown> =
|
|
56
|
+
openEnums.inboundSchema(Flag);
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const SiteConstraintUnmeasuredReason$inboundSchema: z.ZodType<
|
|
60
|
+
SiteConstraintUnmeasuredReason,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
unknown
|
|
63
|
+
> = openEnums.inboundSchema(SiteConstraintUnmeasuredReason);
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const SiteConstraintUnmeasured$inboundSchema: z.ZodType<
|
|
67
|
+
SiteConstraintUnmeasured,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
flag: Flag$inboundSchema.optional(),
|
|
72
|
+
reason: SiteConstraintUnmeasuredReason$inboundSchema.optional(),
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export function siteConstraintUnmeasuredFromJSON(
|
|
76
|
+
jsonString: string,
|
|
77
|
+
): SafeParseResult<SiteConstraintUnmeasured, SDKValidationError> {
|
|
78
|
+
return safeParse(
|
|
79
|
+
jsonString,
|
|
80
|
+
(x) => SiteConstraintUnmeasured$inboundSchema.parse(JSON.parse(x)),
|
|
81
|
+
`Failed to parse 'SiteConstraintUnmeasured' from JSON`,
|
|
82
|
+
);
|
|
83
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Geometry type discriminator. Always `Polygon`.
|
|
13
|
+
*/
|
|
14
|
+
export const SiteLandFeatureType = {
|
|
15
|
+
Polygon: "Polygon",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Geometry type discriminator. Always `Polygon`.
|
|
19
|
+
*/
|
|
20
|
+
export type SiteLandFeatureType = ClosedEnum<typeof SiteLandFeatureType>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* The whole polygon as published, in WGS84 with positions as [longitude, latitude]. It can extend beyond the title boundary; `areaOnTitleSqm` measures only the part within it. Left out by default; request it with `attributes=geometry`.
|
|
24
|
+
*/
|
|
25
|
+
export type GeoJSONPolygon = {
|
|
26
|
+
/**
|
|
27
|
+
* 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.
|
|
28
|
+
*/
|
|
29
|
+
coordinates: Array<Array<Array<number>>>;
|
|
30
|
+
/**
|
|
31
|
+
* Geometry type discriminator. Always `Polygon`.
|
|
32
|
+
*/
|
|
33
|
+
type: SiteLandFeatureType;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type SiteLandFeature = {
|
|
37
|
+
/**
|
|
38
|
+
* Area of the polygon that lies within the title boundary, in square metres, to one decimal place.
|
|
39
|
+
*/
|
|
40
|
+
areaOnTitleSqm: number;
|
|
41
|
+
/**
|
|
42
|
+
* Release date of the Ordnance Survey version the polygon was read from, as an ISO 8601 timestamp.
|
|
43
|
+
*/
|
|
44
|
+
asOf: string;
|
|
45
|
+
/**
|
|
46
|
+
* Ordnance Survey land cover of the polygon (tier B), as published. The set of values is open.
|
|
47
|
+
*/
|
|
48
|
+
cover: string;
|
|
49
|
+
/**
|
|
50
|
+
* Ordnance Survey land cover group the `cover` value belongs to (tier A), as published.
|
|
51
|
+
*/
|
|
52
|
+
coverGroup: string;
|
|
53
|
+
/**
|
|
54
|
+
* Ordnance Survey description of the feature, as published.
|
|
55
|
+
*/
|
|
56
|
+
description: string;
|
|
57
|
+
/**
|
|
58
|
+
* The whole polygon as published, in WGS84 with positions as [longitude, latitude]. It can extend beyond the title boundary; `areaOnTitleSqm` measures only the part within it. Left out by default; request it with `attributes=geometry`.
|
|
59
|
+
*/
|
|
60
|
+
geometry?: GeoJSONPolygon | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Identifier of the land polygon: `GB:NGD:` followed by its Ordnance Survey feature identifier.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
/**
|
|
66
|
+
* True when Ordnance Survey records the polygon's land cover as obscured.
|
|
67
|
+
*/
|
|
68
|
+
isObscured: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* True when Ordnance Survey records the polygon as tidal.
|
|
71
|
+
*/
|
|
72
|
+
isTidal: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Ordnance Survey landform of the polygon, such as a pit or quarry, as published. Null when none is recorded.
|
|
75
|
+
*/
|
|
76
|
+
landform: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Kind of feature. Every item is `land` today, and the set of values is open.
|
|
79
|
+
*/
|
|
80
|
+
type: string;
|
|
81
|
+
/**
|
|
82
|
+
* Ordnance Survey land use of the polygon (tier A), as published. The set of values is open.
|
|
83
|
+
*/
|
|
84
|
+
use: string;
|
|
85
|
+
/**
|
|
86
|
+
* Ordnance Survey detailed land use of the polygon (tier B), as published. Null when none is recorded.
|
|
87
|
+
*/
|
|
88
|
+
useDetail: string | null;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const SiteLandFeatureType$inboundSchema: z.ZodNativeEnum<
|
|
93
|
+
typeof SiteLandFeatureType
|
|
94
|
+
> = z.nativeEnum(SiteLandFeatureType);
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const GeoJSONPolygon$inboundSchema: z.ZodType<
|
|
98
|
+
GeoJSONPolygon,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
coordinates: z.array(z.array(z.array(z.number()))),
|
|
103
|
+
type: SiteLandFeatureType$inboundSchema,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export function geoJSONPolygonFromJSON(
|
|
107
|
+
jsonString: string,
|
|
108
|
+
): SafeParseResult<GeoJSONPolygon, SDKValidationError> {
|
|
109
|
+
return safeParse(
|
|
110
|
+
jsonString,
|
|
111
|
+
(x) => GeoJSONPolygon$inboundSchema.parse(JSON.parse(x)),
|
|
112
|
+
`Failed to parse 'GeoJSONPolygon' from JSON`,
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const SiteLandFeature$inboundSchema: z.ZodType<
|
|
118
|
+
SiteLandFeature,
|
|
119
|
+
z.ZodTypeDef,
|
|
120
|
+
unknown
|
|
121
|
+
> = z.object({
|
|
122
|
+
areaOnTitleSqm: z.number(),
|
|
123
|
+
asOf: z.string(),
|
|
124
|
+
cover: z.string(),
|
|
125
|
+
coverGroup: z.string(),
|
|
126
|
+
description: z.string(),
|
|
127
|
+
geometry: z.lazy(() => GeoJSONPolygon$inboundSchema).optional(),
|
|
128
|
+
id: z.string(),
|
|
129
|
+
isObscured: z.boolean(),
|
|
130
|
+
isTidal: z.boolean(),
|
|
131
|
+
landform: z.nullable(z.string()),
|
|
132
|
+
type: z.string(),
|
|
133
|
+
use: z.string(),
|
|
134
|
+
useDetail: z.nullable(z.string()),
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
export function siteLandFeatureFromJSON(
|
|
138
|
+
jsonString: string,
|
|
139
|
+
): SafeParseResult<SiteLandFeature, SDKValidationError> {
|
|
140
|
+
return safeParse(
|
|
141
|
+
jsonString,
|
|
142
|
+
(x) => SiteLandFeature$inboundSchema.parse(JSON.parse(x)),
|
|
143
|
+
`Failed to parse 'SiteLandFeature' from JSON`,
|
|
144
|
+
);
|
|
145
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import {
|
|
12
|
+
SiteLandFeature,
|
|
13
|
+
SiteLandFeature$inboundSchema,
|
|
14
|
+
} from "./sitelandfeature.js";
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Object type discriminator. Always `list`.
|
|
18
|
+
*/
|
|
19
|
+
export const SiteLandListResponseObject = {
|
|
20
|
+
List: "list",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Object type discriminator. Always `list`.
|
|
24
|
+
*/
|
|
25
|
+
export type SiteLandListResponseObject = ClosedEnum<
|
|
26
|
+
typeof SiteLandListResponseObject
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* One page of results, with the metadata needed to fetch the rest.
|
|
31
|
+
*/
|
|
32
|
+
export type SiteLandListResponse = {
|
|
33
|
+
/**
|
|
34
|
+
* The items on this page.
|
|
35
|
+
*/
|
|
36
|
+
data: Array<SiteLandFeature>;
|
|
37
|
+
/**
|
|
38
|
+
* True when further items exist beyond this page.
|
|
39
|
+
*/
|
|
40
|
+
hasMore: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Object type discriminator. Always `list`.
|
|
43
|
+
*/
|
|
44
|
+
object: SiteLandListResponseObject;
|
|
45
|
+
/**
|
|
46
|
+
* Total number of items matching the request across all pages.
|
|
47
|
+
*/
|
|
48
|
+
totalCount?: number | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Path this list was requested from.
|
|
51
|
+
*/
|
|
52
|
+
url: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const SiteLandListResponseObject$inboundSchema: z.ZodNativeEnum<
|
|
57
|
+
typeof SiteLandListResponseObject
|
|
58
|
+
> = z.nativeEnum(SiteLandListResponseObject);
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const SiteLandListResponse$inboundSchema: z.ZodType<
|
|
62
|
+
SiteLandListResponse,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
data: z.array(SiteLandFeature$inboundSchema),
|
|
67
|
+
has_more: z.boolean(),
|
|
68
|
+
object: SiteLandListResponseObject$inboundSchema,
|
|
69
|
+
total_count: z.number().optional(),
|
|
70
|
+
url: z.string(),
|
|
71
|
+
}).transform((v) => {
|
|
72
|
+
return remap$(v, {
|
|
73
|
+
"has_more": "hasMore",
|
|
74
|
+
"total_count": "totalCount",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
export function siteLandListResponseFromJSON(
|
|
79
|
+
jsonString: string,
|
|
80
|
+
): SafeParseResult<SiteLandListResponse, SDKValidationError> {
|
|
81
|
+
return safeParse(
|
|
82
|
+
jsonString,
|
|
83
|
+
(x) => SiteLandListResponse$inboundSchema.parse(JSON.parse(x)),
|
|
84
|
+
`Failed to parse 'SiteLandListResponse' from JSON`,
|
|
85
|
+
);
|
|
86
|
+
}
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./sitequeryoperator.js";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
* Fields to return, either as an array of names or as one comma-separated string such as "siteId,tenureType,areaSqm". Defaults to a standard set that leaves out the `boundary` geometry; name `boundary` to get site polygons back.
|
|
24
|
+
* Fields to return, either as an array of names or as one comma-separated string such as "siteId,tenureType,areaSqm". Defaults to a standard set that leaves out the `boundary` geometry and the per-building lists; name `boundary` to get site polygons back, `buildings` for the summary of every building on the title, or `buildingIds` for their identifiers alone.
|
|
25
25
|
*/
|
|
26
26
|
export type SiteQueryRequestAttributes = string | Array<string>;
|
|
27
27
|
|
|
@@ -149,7 +149,7 @@ export type SiteQueryRequest = {
|
|
|
149
149
|
*/
|
|
150
150
|
area?: Array<SiteAreaFilter> | undefined;
|
|
151
151
|
/**
|
|
152
|
-
* Fields to return, either as an array of names or as one comma-separated string such as "siteId,tenureType,areaSqm". Defaults to a standard set that leaves out the `boundary` geometry; name `boundary` to get site polygons back.
|
|
152
|
+
* Fields to return, either as an array of names or as one comma-separated string such as "siteId,tenureType,areaSqm". Defaults to a standard set that leaves out the `boundary` geometry and the per-building lists; name `boundary` to get site polygons back, `buildings` for the summary of every building on the title, or `buildingIds` for their identifiers alone.
|
|
153
153
|
*/
|
|
154
154
|
attributes?: string | Array<string> | undefined;
|
|
155
155
|
/**
|
|
@@ -15,6 +15,10 @@ export type SiteTags = {
|
|
|
15
15
|
* True when the site's land use includes agricultural land.
|
|
16
16
|
*/
|
|
17
17
|
agricultural?: boolean | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the title is on brownfield land, the same value as `constraints.flags.brownfield`. Null when brownfield land was not measured on the title; `constraints.unmeasured` says why.
|
|
20
|
+
*/
|
|
21
|
+
brownfield?: boolean | null | undefined;
|
|
18
22
|
/**
|
|
19
23
|
* True when more than one property is linked to this site.
|
|
20
24
|
*/
|
|
@@ -36,6 +40,7 @@ export const SiteTags$inboundSchema: z.ZodType<
|
|
|
36
40
|
unknown
|
|
37
41
|
> = z.object({
|
|
38
42
|
agricultural: z.boolean().optional(),
|
|
43
|
+
brownfield: z.nullable(z.boolean()).optional(),
|
|
39
44
|
multipleProperties: z.boolean().optional(),
|
|
40
45
|
noProperties: z.boolean().optional(),
|
|
41
46
|
vacant: z.boolean().optional(),
|
package/src/sdk/sites.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { sitesFindByIds } from "../funcs/sitesFindByIds.js";
|
|
|
7
7
|
import { sitesFindByPoint } from "../funcs/sitesFindByPoint.js";
|
|
8
8
|
import { sitesFindByProperty } from "../funcs/sitesFindByProperty.js";
|
|
9
9
|
import { sitesGet } from "../funcs/sitesGet.js";
|
|
10
|
+
import { sitesGetLand } from "../funcs/sitesGetLand.js";
|
|
10
11
|
import { sitesGetProperties } from "../funcs/sitesGetProperties.js";
|
|
11
12
|
import { sitesGetTiles } from "../funcs/sitesGetTiles.js";
|
|
12
13
|
import { sitesSearch } from "../funcs/sitesSearch.js";
|
|
@@ -88,7 +89,7 @@ export class Sites extends ClientSDK {
|
|
|
88
89
|
* Get site by ID
|
|
89
90
|
*
|
|
90
91
|
* @remarks
|
|
91
|
-
* Retrieve one registered title by its identifier, which joins the country, the registry and the title number with colons, as in `GB:LR:AGL123456`. This endpoint returns every attribute, including the boundary geometry, ownership, property statistics, planning statistics and area metrics.
|
|
92
|
+
* Retrieve one registered title by its identifier, which joins the country, the registry and the title number with colons, as in `GB:LR:AGL123456`. This endpoint returns every attribute, including the boundary geometry, ownership, property statistics, planning statistics and area metrics, except the per-building lists: pass `attributes=buildings` to add the summary of every building on the title, or `attributes=buildingIds` for their identifiers alone.
|
|
92
93
|
*/
|
|
93
94
|
async get(
|
|
94
95
|
request: operations.GetSiteByIdRequest,
|
|
@@ -101,6 +102,23 @@ export class Sites extends ClientSDK {
|
|
|
101
102
|
));
|
|
102
103
|
}
|
|
103
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Get land polygons in site
|
|
107
|
+
*
|
|
108
|
+
* @remarks
|
|
109
|
+
* List the Ordnance Survey land polygons that cover part of one registered title, each with its land cover, land use, landform and the area of it that lies within the title. This is the per-polygon detail behind the site's `landProfile`, measured on the title boundary in the same way, read from the current Ordnance Survey release rather than from the stored profile. Polygons come back in order of identifier, so `limit` and `offset` page through them. Each polygon appears on exactly one page while the Ordnance Survey release stays the same; a new release published between two page requests can move a polygon across a page boundary. The polygon boundary is left out by default because of its size; pass `attributes=geometry` to get it. Requires the `osNgdAccess` permission on the licence.
|
|
110
|
+
*/
|
|
111
|
+
async getLand(
|
|
112
|
+
request: operations.GetSiteLandRequest,
|
|
113
|
+
options?: RequestOptions,
|
|
114
|
+
): Promise<shared.SiteLandListResponse> {
|
|
115
|
+
return unwrapAsync(sitesGetLand(
|
|
116
|
+
this,
|
|
117
|
+
request,
|
|
118
|
+
options,
|
|
119
|
+
));
|
|
120
|
+
}
|
|
121
|
+
|
|
104
122
|
/**
|
|
105
123
|
* Get properties in site
|
|
106
124
|
*
|
|
@@ -139,7 +157,7 @@ export class Sites extends ClientSDK {
|
|
|
139
157
|
* Search sites
|
|
140
158
|
*
|
|
141
159
|
* @remarks
|
|
142
|
-
* Search registered titles by their attributes, by geographic area, or by both, with sorting and pagination. Area filters accept a polygon, a multi-polygon, a point with a radius, a point the boundary must enclose, or a bounding box; a site matches the area clause if it satisfies any one of the filters supplied, and that has to hold on top of `filters` and `query`. The `boundary` geometry is left out by default because of its size, so pass `attributes: ["boundary"]` to get site polygons back. Up to 1000 sites come back per request, from an offset of at most 100000.
|
|
160
|
+
* Search registered titles by their attributes, by geographic area, or by both, with sorting and pagination. Area filters accept a polygon, a multi-polygon, a point with a radius, a point the boundary must enclose, or a bounding box; a site matches the area clause if it satisfies any one of the filters supplied, and that has to hold on top of `filters` and `query`. The `boundary` geometry is left out by default because of its size, so pass `attributes: ["boundary"]` to get site polygons back; likewise pass `attributes: ["buildings"]` for the summary of every building on each title. Up to 1000 sites come back per request, from an offset of at most 100000.
|
|
143
161
|
*/
|
|
144
162
|
async search(
|
|
145
163
|
request?: shared.SiteQueryRequest | undefined,
|