@vepler/sdk 2.30.2 → 2.33.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/README.md +90 -85
- package/dist/commonjs/funcs/areasGetCoverage.d.ts +24 -0
- package/dist/commonjs/funcs/areasGetCoverage.d.ts.map +1 -0
- package/dist/commonjs/funcs/areasGetCoverage.js +130 -0
- package/dist/commonjs/funcs/areasGetCoverage.js.map +1 -0
- package/dist/commonjs/funcs/metricsGetMetricValues.js +9 -8
- package/dist/commonjs/funcs/metricsGetMetricValues.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/areas.d.ts +13 -0
- package/dist/commonjs/sdk/areas.d.ts.map +1 -1
- package/dist/commonjs/sdk/areas.js +16 -0
- package/dist/commonjs/sdk/areas.js.map +1 -1
- package/dist/commonjs/sdk/models/errors/getareacoverage.d.ts +156 -0
- package/dist/commonjs/sdk/models/errors/getareacoverage.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/errors/getareacoverage.js +153 -0
- package/dist/commonjs/sdk/models/errors/getareacoverage.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/getareacoverage.d.ts +408 -0
- package/dist/commonjs/sdk/models/operations/getareacoverage.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getareacoverage.js +343 -0
- package/dist/commonjs/sdk/models/operations/getareacoverage.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getmetricvalues.d.ts +36 -85
- package/dist/commonjs/sdk/models/operations/getmetricvalues.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getmetricvalues.js +12 -70
- package/dist/commonjs/sdk/models/operations/getmetricvalues.js.map +1 -1
- 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/esm/funcs/areasGetCoverage.d.ts +24 -0
- package/dist/esm/funcs/areasGetCoverage.d.ts.map +1 -0
- package/dist/esm/funcs/areasGetCoverage.js +94 -0
- package/dist/esm/funcs/areasGetCoverage.js.map +1 -0
- package/dist/esm/funcs/metricsGetMetricValues.js +9 -8
- package/dist/esm/funcs/metricsGetMetricValues.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/areas.d.ts +13 -0
- package/dist/esm/sdk/areas.d.ts.map +1 -1
- package/dist/esm/sdk/areas.js +16 -0
- package/dist/esm/sdk/areas.js.map +1 -1
- package/dist/esm/sdk/models/errors/getareacoverage.d.ts +156 -0
- package/dist/esm/sdk/models/errors/getareacoverage.d.ts.map +1 -0
- package/dist/esm/sdk/models/errors/getareacoverage.js +114 -0
- package/dist/esm/sdk/models/errors/getareacoverage.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/getareacoverage.d.ts +408 -0
- package/dist/esm/sdk/models/operations/getareacoverage.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getareacoverage.js +303 -0
- package/dist/esm/sdk/models/operations/getareacoverage.js.map +1 -0
- package/dist/esm/sdk/models/operations/getmetricvalues.d.ts +36 -85
- package/dist/esm/sdk/models/operations/getmetricvalues.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getmetricvalues.js +11 -69
- package/dist/esm/sdk/models/operations/getmetricvalues.js.map +1 -1
- 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/package.json +1 -1
- package/src/funcs/areasGetCoverage.ts +193 -0
- package/src/funcs/metricsGetMetricValues.ts +9 -8
- package/src/lib/config.ts +2 -2
- package/src/sdk/areas.ts +24 -0
- package/src/sdk/models/errors/getareacoverage.ts +264 -0
- package/src/sdk/models/errors/index.ts +1 -0
- package/src/sdk/models/operations/getareacoverage.ts +530 -0
- package/src/sdk/models/operations/getmetricvalues.ts +48 -102
- package/src/sdk/models/operations/index.ts +1 -0
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.GetAreaCoverageResponseBody$inboundSchema = exports.SourceType$inboundSchema = exports.GetAreaCoverageIntersectsWith$inboundSchema = exports.GetAreaCoverageCoverageType$inboundSchema = exports.Coverage$inboundSchema = exports.GetAreaCoverageMetadata$inboundSchema = exports.GetAreaCoverageRequest$outboundSchema = exports.IntersectsWith$outboundSchema = exports.CoverageType$outboundSchema = exports.SourceType = exports.GetAreaCoverageIntersectsWith = exports.GetAreaCoverageCoverageType = exports.IntersectsWith = exports.CoverageType = void 0;
|
|
40
|
+
exports.getAreaCoverageRequestToJSON = getAreaCoverageRequestToJSON;
|
|
41
|
+
exports.getAreaCoverageMetadataFromJSON = getAreaCoverageMetadataFromJSON;
|
|
42
|
+
exports.coverageFromJSON = coverageFromJSON;
|
|
43
|
+
exports.getAreaCoverageResponseBodyFromJSON = getAreaCoverageResponseBodyFromJSON;
|
|
44
|
+
const z = __importStar(require("zod/v3"));
|
|
45
|
+
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
46
|
+
const openEnums = __importStar(require("../../types/enums.js"));
|
|
47
|
+
/**
|
|
48
|
+
* Environmental or geographic layer type for coverage calculations
|
|
49
|
+
*/
|
|
50
|
+
exports.CoverageType = {
|
|
51
|
+
FloodRisk: "flood_risk",
|
|
52
|
+
NoiseRoadLden: "noise_road_lden",
|
|
53
|
+
NoiseRailLden: "noise_rail_lden",
|
|
54
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
55
|
+
RadonLevel: "radon_level",
|
|
56
|
+
Ramsar: "ramsar",
|
|
57
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
58
|
+
SpecialProtectionArea: "special_protection_area",
|
|
59
|
+
AncientWoodland: "ancient_woodland",
|
|
60
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
61
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
62
|
+
NationalScenicArea: "national_scenic_area",
|
|
63
|
+
PriorityHabitats: "priority_habitats",
|
|
64
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
65
|
+
Natura2000: "natura_2000",
|
|
66
|
+
Aonb: "aonb",
|
|
67
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
68
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
69
|
+
WorldHeritageSite: "world_heritage_site",
|
|
70
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
71
|
+
ScheduledMonument: "scheduled_monument",
|
|
72
|
+
Battlefield: "battlefield",
|
|
73
|
+
BrownfieldLand: "brownfield_land",
|
|
74
|
+
GreenBelt: "green_belt",
|
|
75
|
+
CommonLand: "common_land",
|
|
76
|
+
BuiltUpArea250: "built_up_area_250",
|
|
77
|
+
ParcelsGb: "parcels_gb",
|
|
78
|
+
Building: "building",
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
82
|
+
*/
|
|
83
|
+
exports.IntersectsWith = {
|
|
84
|
+
Postcode: "postcode",
|
|
85
|
+
Outcode: "outcode",
|
|
86
|
+
UkOutputArea: "uk_output_area",
|
|
87
|
+
Lsoa21: "lsoa21",
|
|
88
|
+
Ward: "ward",
|
|
89
|
+
Parish: "parish",
|
|
90
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
91
|
+
County: "county",
|
|
92
|
+
Country: "country",
|
|
93
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
94
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
95
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
96
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
97
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
98
|
+
EnglishRegion: "english_region",
|
|
99
|
+
CountryRegion: "country_region",
|
|
100
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
101
|
+
Province: "province",
|
|
102
|
+
ElectoralDivision: "electoral_division",
|
|
103
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
104
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
105
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
106
|
+
WestminsterConstituency: "westminster_constituency",
|
|
107
|
+
Building: "building",
|
|
108
|
+
BuiltUpArea250: "built_up_area_250",
|
|
109
|
+
GreenBelt: "green_belt",
|
|
110
|
+
CommonLand: "common_land",
|
|
111
|
+
ParcelsGb: "parcels_gb",
|
|
112
|
+
FloodRisk: "flood_risk",
|
|
113
|
+
Ramsar: "ramsar",
|
|
114
|
+
Natura2000: "natura_2000",
|
|
115
|
+
Aonb: "aonb",
|
|
116
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
117
|
+
NationalScenicArea: "national_scenic_area",
|
|
118
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
119
|
+
SpecialProtectionArea: "special_protection_area",
|
|
120
|
+
AncientWoodland: "ancient_woodland",
|
|
121
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
122
|
+
PriorityHabitats: "priority_habitats",
|
|
123
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
124
|
+
ProtectedWoodland: "protected_woodland",
|
|
125
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
126
|
+
WorldHeritageSite: "world_heritage_site",
|
|
127
|
+
ScheduledMonument: "scheduled_monument",
|
|
128
|
+
Battlefield: "battlefield",
|
|
129
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
130
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
131
|
+
RadonLevel: "radon_level",
|
|
132
|
+
BrownfieldLand: "brownfield_land",
|
|
133
|
+
NoiseRailLden: "noise_rail_lden",
|
|
134
|
+
NoiseRoadLden: "noise_road_lden",
|
|
135
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Environmental or geographic layer type for coverage calculations
|
|
139
|
+
*/
|
|
140
|
+
exports.GetAreaCoverageCoverageType = {
|
|
141
|
+
FloodRisk: "flood_risk",
|
|
142
|
+
NoiseRoadLden: "noise_road_lden",
|
|
143
|
+
NoiseRailLden: "noise_rail_lden",
|
|
144
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
145
|
+
RadonLevel: "radon_level",
|
|
146
|
+
Ramsar: "ramsar",
|
|
147
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
148
|
+
SpecialProtectionArea: "special_protection_area",
|
|
149
|
+
AncientWoodland: "ancient_woodland",
|
|
150
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
151
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
152
|
+
NationalScenicArea: "national_scenic_area",
|
|
153
|
+
PriorityHabitats: "priority_habitats",
|
|
154
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
155
|
+
Natura2000: "natura_2000",
|
|
156
|
+
Aonb: "aonb",
|
|
157
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
158
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
159
|
+
WorldHeritageSite: "world_heritage_site",
|
|
160
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
161
|
+
ScheduledMonument: "scheduled_monument",
|
|
162
|
+
Battlefield: "battlefield",
|
|
163
|
+
BrownfieldLand: "brownfield_land",
|
|
164
|
+
GreenBelt: "green_belt",
|
|
165
|
+
CommonLand: "common_land",
|
|
166
|
+
BuiltUpArea250: "built_up_area_250",
|
|
167
|
+
ParcelsGb: "parcels_gb",
|
|
168
|
+
Building: "building",
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
172
|
+
*/
|
|
173
|
+
exports.GetAreaCoverageIntersectsWith = {
|
|
174
|
+
Postcode: "postcode",
|
|
175
|
+
Outcode: "outcode",
|
|
176
|
+
UkOutputArea: "uk_output_area",
|
|
177
|
+
Lsoa21: "lsoa21",
|
|
178
|
+
Ward: "ward",
|
|
179
|
+
Parish: "parish",
|
|
180
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
181
|
+
County: "county",
|
|
182
|
+
Country: "country",
|
|
183
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
184
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
185
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
186
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
187
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
188
|
+
EnglishRegion: "english_region",
|
|
189
|
+
CountryRegion: "country_region",
|
|
190
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
191
|
+
Province: "province",
|
|
192
|
+
ElectoralDivision: "electoral_division",
|
|
193
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
194
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
195
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
196
|
+
WestminsterConstituency: "westminster_constituency",
|
|
197
|
+
Building: "building",
|
|
198
|
+
BuiltUpArea250: "built_up_area_250",
|
|
199
|
+
GreenBelt: "green_belt",
|
|
200
|
+
CommonLand: "common_land",
|
|
201
|
+
ParcelsGb: "parcels_gb",
|
|
202
|
+
FloodRisk: "flood_risk",
|
|
203
|
+
Ramsar: "ramsar",
|
|
204
|
+
Natura2000: "natura_2000",
|
|
205
|
+
Aonb: "aonb",
|
|
206
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
207
|
+
NationalScenicArea: "national_scenic_area",
|
|
208
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
209
|
+
SpecialProtectionArea: "special_protection_area",
|
|
210
|
+
AncientWoodland: "ancient_woodland",
|
|
211
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
212
|
+
PriorityHabitats: "priority_habitats",
|
|
213
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
214
|
+
ProtectedWoodland: "protected_woodland",
|
|
215
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
216
|
+
WorldHeritageSite: "world_heritage_site",
|
|
217
|
+
ScheduledMonument: "scheduled_monument",
|
|
218
|
+
Battlefield: "battlefield",
|
|
219
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
220
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
221
|
+
RadonLevel: "radon_level",
|
|
222
|
+
BrownfieldLand: "brownfield_land",
|
|
223
|
+
NoiseRailLden: "noise_rail_lden",
|
|
224
|
+
NoiseRoadLden: "noise_road_lden",
|
|
225
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
229
|
+
*/
|
|
230
|
+
exports.SourceType = {
|
|
231
|
+
Postcode: "postcode",
|
|
232
|
+
Outcode: "outcode",
|
|
233
|
+
UkOutputArea: "uk_output_area",
|
|
234
|
+
Lsoa21: "lsoa21",
|
|
235
|
+
Ward: "ward",
|
|
236
|
+
Parish: "parish",
|
|
237
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
238
|
+
County: "county",
|
|
239
|
+
Country: "country",
|
|
240
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
241
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
242
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
243
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
244
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
245
|
+
EnglishRegion: "english_region",
|
|
246
|
+
CountryRegion: "country_region",
|
|
247
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
248
|
+
Province: "province",
|
|
249
|
+
ElectoralDivision: "electoral_division",
|
|
250
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
251
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
252
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
253
|
+
WestminsterConstituency: "westminster_constituency",
|
|
254
|
+
Building: "building",
|
|
255
|
+
BuiltUpArea250: "built_up_area_250",
|
|
256
|
+
GreenBelt: "green_belt",
|
|
257
|
+
CommonLand: "common_land",
|
|
258
|
+
ParcelsGb: "parcels_gb",
|
|
259
|
+
FloodRisk: "flood_risk",
|
|
260
|
+
Ramsar: "ramsar",
|
|
261
|
+
Natura2000: "natura_2000",
|
|
262
|
+
Aonb: "aonb",
|
|
263
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
264
|
+
NationalScenicArea: "national_scenic_area",
|
|
265
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
266
|
+
SpecialProtectionArea: "special_protection_area",
|
|
267
|
+
AncientWoodland: "ancient_woodland",
|
|
268
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
269
|
+
PriorityHabitats: "priority_habitats",
|
|
270
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
271
|
+
ProtectedWoodland: "protected_woodland",
|
|
272
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
273
|
+
WorldHeritageSite: "world_heritage_site",
|
|
274
|
+
ScheduledMonument: "scheduled_monument",
|
|
275
|
+
Battlefield: "battlefield",
|
|
276
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
277
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
278
|
+
RadonLevel: "radon_level",
|
|
279
|
+
BrownfieldLand: "brownfield_land",
|
|
280
|
+
NoiseRailLden: "noise_rail_lden",
|
|
281
|
+
NoiseRoadLden: "noise_road_lden",
|
|
282
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
283
|
+
};
|
|
284
|
+
/** @internal */
|
|
285
|
+
exports.CoverageType$outboundSchema = z.nativeEnum(exports.CoverageType);
|
|
286
|
+
/** @internal */
|
|
287
|
+
exports.IntersectsWith$outboundSchema = z.nativeEnum(exports.IntersectsWith);
|
|
288
|
+
/** @internal */
|
|
289
|
+
exports.GetAreaCoverageRequest$outboundSchema = z.object({
|
|
290
|
+
coverageType: exports.CoverageType$outboundSchema.optional(),
|
|
291
|
+
intersectsWith: exports.IntersectsWith$outboundSchema.optional(),
|
|
292
|
+
sourceCode: z.string(),
|
|
293
|
+
targetCode: z.string().optional(),
|
|
294
|
+
});
|
|
295
|
+
function getAreaCoverageRequestToJSON(getAreaCoverageRequest) {
|
|
296
|
+
return JSON.stringify(exports.GetAreaCoverageRequest$outboundSchema.parse(getAreaCoverageRequest));
|
|
297
|
+
}
|
|
298
|
+
/** @internal */
|
|
299
|
+
exports.GetAreaCoverageMetadata$inboundSchema = z.object({
|
|
300
|
+
category: z.string().optional(),
|
|
301
|
+
componentLayers: z.array(z.string()).optional(),
|
|
302
|
+
dbRange: z.string().optional(),
|
|
303
|
+
entityCount: z.number().optional(),
|
|
304
|
+
featureCount: z.number().optional(),
|
|
305
|
+
totalEntities: z.number().optional(),
|
|
306
|
+
});
|
|
307
|
+
function getAreaCoverageMetadataFromJSON(jsonString) {
|
|
308
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAreaCoverageMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAreaCoverageMetadata' from JSON`);
|
|
309
|
+
}
|
|
310
|
+
/** @internal */
|
|
311
|
+
exports.Coverage$inboundSchema = z.object({
|
|
312
|
+
area: z.number(),
|
|
313
|
+
identifier: z.string(),
|
|
314
|
+
metadata: z.lazy(() => exports.GetAreaCoverageMetadata$inboundSchema).optional(),
|
|
315
|
+
percentage: z.number(),
|
|
316
|
+
});
|
|
317
|
+
function coverageFromJSON(jsonString) {
|
|
318
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Coverage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Coverage' from JSON`);
|
|
319
|
+
}
|
|
320
|
+
/** @internal */
|
|
321
|
+
exports.GetAreaCoverageCoverageType$inboundSchema = openEnums.inboundSchema(exports.GetAreaCoverageCoverageType);
|
|
322
|
+
/** @internal */
|
|
323
|
+
exports.GetAreaCoverageIntersectsWith$inboundSchema = openEnums.inboundSchema(exports.GetAreaCoverageIntersectsWith);
|
|
324
|
+
/** @internal */
|
|
325
|
+
exports.SourceType$inboundSchema = openEnums.inboundSchema(exports.SourceType);
|
|
326
|
+
/** @internal */
|
|
327
|
+
exports.GetAreaCoverageResponseBody$inboundSchema = z.object({
|
|
328
|
+
coverage: z.array(z.lazy(() => exports.Coverage$inboundSchema)),
|
|
329
|
+
coverageType: exports.GetAreaCoverageCoverageType$inboundSchema.optional(),
|
|
330
|
+
intersectsWith: exports.GetAreaCoverageIntersectsWith$inboundSchema.optional(),
|
|
331
|
+
message: z.string().optional(),
|
|
332
|
+
sourceArea: z.number(),
|
|
333
|
+
sourceCode: z.string(),
|
|
334
|
+
sourceName: z.string(),
|
|
335
|
+
sourceType: exports.SourceType$inboundSchema,
|
|
336
|
+
success: z.boolean(),
|
|
337
|
+
targetCode: z.string().optional(),
|
|
338
|
+
targetName: z.string().optional(),
|
|
339
|
+
});
|
|
340
|
+
function getAreaCoverageResponseBodyFromJSON(jsonString) {
|
|
341
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAreaCoverageResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAreaCoverageResponseBody' from JSON`);
|
|
342
|
+
}
|
|
343
|
+
//# sourceMappingURL=getareacoverage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getareacoverage.js","sourceRoot":"","sources":["../../../../../src/sdk/models/operations/getareacoverage.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyaH,oEAMC;AAgBD,0EAQC;AAcD,4CAQC;AA0CD,kFAQC;AA7gBD,0CAA4B;AAC5B,wDAAoD;AACpD,gEAAkD;AAKlD;;GAEG;AACU,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,YAAY;IACvB,aAAa,EAAE,iBAAiB;IAChC,aAAa,EAAE,iBAAiB;IAChC,iBAAiB,EAAE,qBAAqB;IACxC,UAAU,EAAE,aAAa;IACzB,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,2BAA2B;IACpD,qBAAqB,EAAE,yBAAyB;IAChD,eAAe,EAAE,kBAAkB;IACnC,oBAAoB,EAAE,wBAAwB;IAC9C,iBAAiB,EAAE,qBAAqB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,gBAAgB,EAAE,mBAAmB;IACrC,kBAAkB,EAAE,qBAAqB;IACzC,UAAU,EAAE,aAAa;IACzB,IAAI,EAAE,MAAM;IACZ,yBAAyB,EAAE,6BAA6B;IACxD,oBAAoB,EAAE,wBAAwB;IAC9C,iBAAiB,EAAE,qBAAqB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,iBAAiB,EAAE,oBAAoB;IACvC,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,iBAA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AAC,CAAC;AAExC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,8BAAsB,CAAC,CAAC;IACvD,YAAY,EAAE,iDAAyC,CAAC,QAAQ,EAAE;IAClE,cAAc,EAAE,mDAA2C,CAAC,QAAQ,EAAE;IACtE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,gCAAwB;IACpC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,84 +1,36 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
7
|
-
*/
|
|
8
|
-
export declare const GeographicType: {
|
|
9
|
-
readonly Postcode: "postcode";
|
|
10
|
-
readonly Outcode: "outcode";
|
|
11
|
-
readonly UkOutputArea: "uk_output_area";
|
|
12
|
-
readonly Lsoa21: "lsoa21";
|
|
13
|
-
readonly Ward: "ward";
|
|
14
|
-
readonly Parish: "parish";
|
|
15
|
-
readonly LocalAuthorityDistrict: "local_authority_district";
|
|
16
|
-
readonly County: "county";
|
|
17
|
-
readonly Country: "country";
|
|
18
|
-
readonly CountyElectoralDivision: "county_electoral_division";
|
|
19
|
-
readonly DistrictBoroughUnitary: "district_borough_unitary";
|
|
20
|
-
readonly DistrictBoroughUnitaryWard: "district_borough_unitary_ward";
|
|
21
|
-
readonly LocalPlanningAuthority: "local_planning_authority";
|
|
22
|
-
readonly CeremonialCountiesRegion: "ceremonial_counties_region";
|
|
23
|
-
readonly EnglishRegion: "english_region";
|
|
24
|
-
readonly CountryRegion: "country_region";
|
|
25
|
-
readonly UnitaryElectoralDivision: "unitary_electoral_division";
|
|
26
|
-
readonly Province: "province";
|
|
27
|
-
readonly ElectoralDivision: "electoral_division";
|
|
28
|
-
readonly GreaterLondonConstituency: "greater_london_constituency";
|
|
29
|
-
readonly ScotlandAndWalesConstituency: "scotland_and_wales_constituency";
|
|
30
|
-
readonly ScotlandAndWalesRegion: "scotland_and_wales_region";
|
|
31
|
-
readonly WestminsterConstituency: "westminster_constituency";
|
|
32
|
-
readonly Building: "building";
|
|
33
|
-
readonly BuiltUpArea250: "built_up_area_250";
|
|
34
|
-
readonly GreenBelt: "green_belt";
|
|
35
|
-
readonly CommonLand: "common_land";
|
|
36
|
-
readonly ParcelsGb: "parcels_gb";
|
|
37
|
-
readonly FloodRisk: "flood_risk";
|
|
38
|
-
readonly Ramsar: "ramsar";
|
|
39
|
-
readonly Natura2000: "natura_2000";
|
|
40
|
-
readonly Aonb: "aonb";
|
|
41
|
-
readonly AreaNaturalBeauty: "area_natural_beauty";
|
|
42
|
-
readonly NationalScenicArea: "national_scenic_area";
|
|
43
|
-
readonly SpecialAreaConservation: "special_area_conservation";
|
|
44
|
-
readonly SpecialProtectionArea: "special_protection_area";
|
|
45
|
-
readonly AncientWoodland: "ancient_woodland";
|
|
46
|
-
readonly NativeWoodlandSurvey: "native_woodland_survey";
|
|
47
|
-
readonly PriorityHabitats: "priority_habitats";
|
|
48
|
-
readonly ProtectedWoodlands: "protected_woodlands";
|
|
49
|
-
readonly ProtectedWoodland: "protected_woodland";
|
|
50
|
-
readonly ProtectedScenicLandscapes: "protected_scenic_landscapes";
|
|
51
|
-
readonly WorldHeritageSite: "world_heritage_site";
|
|
52
|
-
readonly ScheduledMonument: "scheduled_monument";
|
|
53
|
-
readonly Battlefield: "battlefield";
|
|
54
|
-
readonly ProtectedWreckSite: "protected_wreck_site";
|
|
55
|
-
readonly HistoricLandfillSite: "historic_landfill_site";
|
|
56
|
-
readonly RadonLevel: "radon_level";
|
|
57
|
-
readonly BrownfieldLand: "brownfield_land";
|
|
58
|
-
readonly NoiseRailLden: "noise_rail_lden";
|
|
59
|
-
readonly NoiseRoadLden: "noise_road_lden";
|
|
60
|
-
readonly NoiseIndustryLden: "noise_industry_lden";
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
64
|
-
*/
|
|
65
|
-
export type GeographicType = ClosedEnum<typeof GeographicType>;
|
|
66
5
|
export type GetMetricValuesRequest = {
|
|
67
6
|
category?: string | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
7
|
+
endMonth?: number | null | undefined;
|
|
8
|
+
endYear?: number | null | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Geographic entity IDs (comma-separated)
|
|
11
|
+
*/
|
|
12
|
+
geographicEntityIds?: string | undefined;
|
|
70
13
|
/**
|
|
71
|
-
*
|
|
14
|
+
* Geographic entity types to filter by (comma-separated)
|
|
72
15
|
*/
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
16
|
+
geographicEntityTypes?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Include geographic entity information in response
|
|
19
|
+
*/
|
|
20
|
+
includeGeographicEntity?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Include metric metadata in response
|
|
23
|
+
*/
|
|
24
|
+
includeMetric?: string | undefined;
|
|
76
25
|
limit?: string | undefined;
|
|
77
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Metric identifiers to retrieve (comma-separated)
|
|
28
|
+
*/
|
|
29
|
+
metricIds?: string | undefined;
|
|
78
30
|
metricName?: string | undefined;
|
|
79
31
|
offset?: string | undefined;
|
|
80
|
-
|
|
81
|
-
|
|
32
|
+
startMonth?: number | null | undefined;
|
|
33
|
+
startYear?: number | null | undefined;
|
|
82
34
|
};
|
|
83
35
|
export type Pagination = {
|
|
84
36
|
hasMore: boolean;
|
|
@@ -89,7 +41,7 @@ export type Pagination = {
|
|
|
89
41
|
/**
|
|
90
42
|
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
91
43
|
*/
|
|
92
|
-
export declare const
|
|
44
|
+
export declare const GeographicType: {
|
|
93
45
|
readonly Postcode: "postcode";
|
|
94
46
|
readonly Outcode: "outcode";
|
|
95
47
|
readonly UkOutputArea: "uk_output_area";
|
|
@@ -146,7 +98,7 @@ export declare const GetMetricValuesGeographicType: {
|
|
|
146
98
|
/**
|
|
147
99
|
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
148
100
|
*/
|
|
149
|
-
export type
|
|
101
|
+
export type GeographicType = OpenEnum<typeof GeographicType>;
|
|
150
102
|
/**
|
|
151
103
|
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
152
104
|
*/
|
|
@@ -257,7 +209,7 @@ export type GetMetricValuesResult = {
|
|
|
257
209
|
/**
|
|
258
210
|
* Layer type - supports postcodes, outcodes (e.g., SW1A), ONS geographies (OA21, LSOA21, LAD), HMLR INSPIRE parcels, EA/NRW/SEPA flood data, environmental designations (Natura 2000, AONB/NSA), heritage assets, and noise mapping data
|
|
259
211
|
*/
|
|
260
|
-
geographicType:
|
|
212
|
+
geographicType: GeographicType;
|
|
261
213
|
geography?: Geography | undefined;
|
|
262
214
|
id: number;
|
|
263
215
|
metadata?: {
|
|
@@ -285,21 +237,20 @@ export type GetMetricValuesResponseBody = {
|
|
|
285
237
|
success: boolean;
|
|
286
238
|
};
|
|
287
239
|
/** @internal */
|
|
288
|
-
export declare const GeographicType$outboundSchema: z.ZodNativeEnum<typeof GeographicType>;
|
|
289
|
-
/** @internal */
|
|
290
240
|
export type GetMetricValuesRequest$Outbound = {
|
|
291
241
|
category?: string | undefined;
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
242
|
+
endMonth?: number | null | undefined;
|
|
243
|
+
endYear?: number | null | undefined;
|
|
244
|
+
geographicEntityIds?: string | undefined;
|
|
245
|
+
geographicEntityTypes?: string | undefined;
|
|
246
|
+
includeGeographicEntity?: string | undefined;
|
|
247
|
+
includeMetric?: string | undefined;
|
|
297
248
|
limit: string;
|
|
298
|
-
|
|
249
|
+
metricIds?: string | undefined;
|
|
299
250
|
metricName?: string | undefined;
|
|
300
251
|
offset: string;
|
|
301
|
-
|
|
302
|
-
|
|
252
|
+
startMonth?: number | null | undefined;
|
|
253
|
+
startYear?: number | null | undefined;
|
|
303
254
|
};
|
|
304
255
|
/** @internal */
|
|
305
256
|
export declare const GetMetricValuesRequest$outboundSchema: z.ZodType<GetMetricValuesRequest$Outbound, z.ZodTypeDef, GetMetricValuesRequest>;
|
|
@@ -308,7 +259,7 @@ export declare function getMetricValuesRequestToJSON(getMetricValuesRequest: Get
|
|
|
308
259
|
export declare const Pagination$inboundSchema: z.ZodType<Pagination, z.ZodTypeDef, unknown>;
|
|
309
260
|
export declare function paginationFromJSON(jsonString: string): SafeParseResult<Pagination, SDKValidationError>;
|
|
310
261
|
/** @internal */
|
|
311
|
-
export declare const
|
|
262
|
+
export declare const GeographicType$inboundSchema: z.ZodType<GeographicType, z.ZodTypeDef, unknown>;
|
|
312
263
|
/** @internal */
|
|
313
264
|
export declare const GetMetricValuesType$inboundSchema: z.ZodType<GetMetricValuesType, z.ZodTypeDef, unknown>;
|
|
314
265
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getmetricvalues.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/operations/getmetricvalues.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"getmetricvalues.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/operations/getmetricvalues.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,sBAAsB,GAAG;IACnC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACr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