@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,303 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v3";
|
|
5
|
+
import { safeParse } from "../../../lib/schemas.js";
|
|
6
|
+
import * as openEnums from "../../types/enums.js";
|
|
7
|
+
/**
|
|
8
|
+
* Environmental or geographic layer type for coverage calculations
|
|
9
|
+
*/
|
|
10
|
+
export const CoverageType = {
|
|
11
|
+
FloodRisk: "flood_risk",
|
|
12
|
+
NoiseRoadLden: "noise_road_lden",
|
|
13
|
+
NoiseRailLden: "noise_rail_lden",
|
|
14
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
15
|
+
RadonLevel: "radon_level",
|
|
16
|
+
Ramsar: "ramsar",
|
|
17
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
18
|
+
SpecialProtectionArea: "special_protection_area",
|
|
19
|
+
AncientWoodland: "ancient_woodland",
|
|
20
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
21
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
22
|
+
NationalScenicArea: "national_scenic_area",
|
|
23
|
+
PriorityHabitats: "priority_habitats",
|
|
24
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
25
|
+
Natura2000: "natura_2000",
|
|
26
|
+
Aonb: "aonb",
|
|
27
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
28
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
29
|
+
WorldHeritageSite: "world_heritage_site",
|
|
30
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
31
|
+
ScheduledMonument: "scheduled_monument",
|
|
32
|
+
Battlefield: "battlefield",
|
|
33
|
+
BrownfieldLand: "brownfield_land",
|
|
34
|
+
GreenBelt: "green_belt",
|
|
35
|
+
CommonLand: "common_land",
|
|
36
|
+
BuiltUpArea250: "built_up_area_250",
|
|
37
|
+
ParcelsGb: "parcels_gb",
|
|
38
|
+
Building: "building",
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 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
|
|
42
|
+
*/
|
|
43
|
+
export const IntersectsWith = {
|
|
44
|
+
Postcode: "postcode",
|
|
45
|
+
Outcode: "outcode",
|
|
46
|
+
UkOutputArea: "uk_output_area",
|
|
47
|
+
Lsoa21: "lsoa21",
|
|
48
|
+
Ward: "ward",
|
|
49
|
+
Parish: "parish",
|
|
50
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
51
|
+
County: "county",
|
|
52
|
+
Country: "country",
|
|
53
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
54
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
55
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
56
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
57
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
58
|
+
EnglishRegion: "english_region",
|
|
59
|
+
CountryRegion: "country_region",
|
|
60
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
61
|
+
Province: "province",
|
|
62
|
+
ElectoralDivision: "electoral_division",
|
|
63
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
64
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
65
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
66
|
+
WestminsterConstituency: "westminster_constituency",
|
|
67
|
+
Building: "building",
|
|
68
|
+
BuiltUpArea250: "built_up_area_250",
|
|
69
|
+
GreenBelt: "green_belt",
|
|
70
|
+
CommonLand: "common_land",
|
|
71
|
+
ParcelsGb: "parcels_gb",
|
|
72
|
+
FloodRisk: "flood_risk",
|
|
73
|
+
Ramsar: "ramsar",
|
|
74
|
+
Natura2000: "natura_2000",
|
|
75
|
+
Aonb: "aonb",
|
|
76
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
77
|
+
NationalScenicArea: "national_scenic_area",
|
|
78
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
79
|
+
SpecialProtectionArea: "special_protection_area",
|
|
80
|
+
AncientWoodland: "ancient_woodland",
|
|
81
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
82
|
+
PriorityHabitats: "priority_habitats",
|
|
83
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
84
|
+
ProtectedWoodland: "protected_woodland",
|
|
85
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
86
|
+
WorldHeritageSite: "world_heritage_site",
|
|
87
|
+
ScheduledMonument: "scheduled_monument",
|
|
88
|
+
Battlefield: "battlefield",
|
|
89
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
90
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
91
|
+
RadonLevel: "radon_level",
|
|
92
|
+
BrownfieldLand: "brownfield_land",
|
|
93
|
+
NoiseRailLden: "noise_rail_lden",
|
|
94
|
+
NoiseRoadLden: "noise_road_lden",
|
|
95
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Environmental or geographic layer type for coverage calculations
|
|
99
|
+
*/
|
|
100
|
+
export const GetAreaCoverageCoverageType = {
|
|
101
|
+
FloodRisk: "flood_risk",
|
|
102
|
+
NoiseRoadLden: "noise_road_lden",
|
|
103
|
+
NoiseRailLden: "noise_rail_lden",
|
|
104
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
105
|
+
RadonLevel: "radon_level",
|
|
106
|
+
Ramsar: "ramsar",
|
|
107
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
108
|
+
SpecialProtectionArea: "special_protection_area",
|
|
109
|
+
AncientWoodland: "ancient_woodland",
|
|
110
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
111
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
112
|
+
NationalScenicArea: "national_scenic_area",
|
|
113
|
+
PriorityHabitats: "priority_habitats",
|
|
114
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
115
|
+
Natura2000: "natura_2000",
|
|
116
|
+
Aonb: "aonb",
|
|
117
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
118
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
119
|
+
WorldHeritageSite: "world_heritage_site",
|
|
120
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
121
|
+
ScheduledMonument: "scheduled_monument",
|
|
122
|
+
Battlefield: "battlefield",
|
|
123
|
+
BrownfieldLand: "brownfield_land",
|
|
124
|
+
GreenBelt: "green_belt",
|
|
125
|
+
CommonLand: "common_land",
|
|
126
|
+
BuiltUpArea250: "built_up_area_250",
|
|
127
|
+
ParcelsGb: "parcels_gb",
|
|
128
|
+
Building: "building",
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* 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
|
|
132
|
+
*/
|
|
133
|
+
export const GetAreaCoverageIntersectsWith = {
|
|
134
|
+
Postcode: "postcode",
|
|
135
|
+
Outcode: "outcode",
|
|
136
|
+
UkOutputArea: "uk_output_area",
|
|
137
|
+
Lsoa21: "lsoa21",
|
|
138
|
+
Ward: "ward",
|
|
139
|
+
Parish: "parish",
|
|
140
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
141
|
+
County: "county",
|
|
142
|
+
Country: "country",
|
|
143
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
144
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
145
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
146
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
147
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
148
|
+
EnglishRegion: "english_region",
|
|
149
|
+
CountryRegion: "country_region",
|
|
150
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
151
|
+
Province: "province",
|
|
152
|
+
ElectoralDivision: "electoral_division",
|
|
153
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
154
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
155
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
156
|
+
WestminsterConstituency: "westminster_constituency",
|
|
157
|
+
Building: "building",
|
|
158
|
+
BuiltUpArea250: "built_up_area_250",
|
|
159
|
+
GreenBelt: "green_belt",
|
|
160
|
+
CommonLand: "common_land",
|
|
161
|
+
ParcelsGb: "parcels_gb",
|
|
162
|
+
FloodRisk: "flood_risk",
|
|
163
|
+
Ramsar: "ramsar",
|
|
164
|
+
Natura2000: "natura_2000",
|
|
165
|
+
Aonb: "aonb",
|
|
166
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
167
|
+
NationalScenicArea: "national_scenic_area",
|
|
168
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
169
|
+
SpecialProtectionArea: "special_protection_area",
|
|
170
|
+
AncientWoodland: "ancient_woodland",
|
|
171
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
172
|
+
PriorityHabitats: "priority_habitats",
|
|
173
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
174
|
+
ProtectedWoodland: "protected_woodland",
|
|
175
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
176
|
+
WorldHeritageSite: "world_heritage_site",
|
|
177
|
+
ScheduledMonument: "scheduled_monument",
|
|
178
|
+
Battlefield: "battlefield",
|
|
179
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
180
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
181
|
+
RadonLevel: "radon_level",
|
|
182
|
+
BrownfieldLand: "brownfield_land",
|
|
183
|
+
NoiseRailLden: "noise_rail_lden",
|
|
184
|
+
NoiseRoadLden: "noise_road_lden",
|
|
185
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* 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
|
|
189
|
+
*/
|
|
190
|
+
export const SourceType = {
|
|
191
|
+
Postcode: "postcode",
|
|
192
|
+
Outcode: "outcode",
|
|
193
|
+
UkOutputArea: "uk_output_area",
|
|
194
|
+
Lsoa21: "lsoa21",
|
|
195
|
+
Ward: "ward",
|
|
196
|
+
Parish: "parish",
|
|
197
|
+
LocalAuthorityDistrict: "local_authority_district",
|
|
198
|
+
County: "county",
|
|
199
|
+
Country: "country",
|
|
200
|
+
CountyElectoralDivision: "county_electoral_division",
|
|
201
|
+
DistrictBoroughUnitary: "district_borough_unitary",
|
|
202
|
+
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
203
|
+
LocalPlanningAuthority: "local_planning_authority",
|
|
204
|
+
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
205
|
+
EnglishRegion: "english_region",
|
|
206
|
+
CountryRegion: "country_region",
|
|
207
|
+
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
208
|
+
Province: "province",
|
|
209
|
+
ElectoralDivision: "electoral_division",
|
|
210
|
+
GreaterLondonConstituency: "greater_london_constituency",
|
|
211
|
+
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
212
|
+
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
213
|
+
WestminsterConstituency: "westminster_constituency",
|
|
214
|
+
Building: "building",
|
|
215
|
+
BuiltUpArea250: "built_up_area_250",
|
|
216
|
+
GreenBelt: "green_belt",
|
|
217
|
+
CommonLand: "common_land",
|
|
218
|
+
ParcelsGb: "parcels_gb",
|
|
219
|
+
FloodRisk: "flood_risk",
|
|
220
|
+
Ramsar: "ramsar",
|
|
221
|
+
Natura2000: "natura_2000",
|
|
222
|
+
Aonb: "aonb",
|
|
223
|
+
AreaNaturalBeauty: "area_natural_beauty",
|
|
224
|
+
NationalScenicArea: "national_scenic_area",
|
|
225
|
+
SpecialAreaConservation: "special_area_conservation",
|
|
226
|
+
SpecialProtectionArea: "special_protection_area",
|
|
227
|
+
AncientWoodland: "ancient_woodland",
|
|
228
|
+
NativeWoodlandSurvey: "native_woodland_survey",
|
|
229
|
+
PriorityHabitats: "priority_habitats",
|
|
230
|
+
ProtectedWoodlands: "protected_woodlands",
|
|
231
|
+
ProtectedWoodland: "protected_woodland",
|
|
232
|
+
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
233
|
+
WorldHeritageSite: "world_heritage_site",
|
|
234
|
+
ScheduledMonument: "scheduled_monument",
|
|
235
|
+
Battlefield: "battlefield",
|
|
236
|
+
ProtectedWreckSite: "protected_wreck_site",
|
|
237
|
+
HistoricLandfillSite: "historic_landfill_site",
|
|
238
|
+
RadonLevel: "radon_level",
|
|
239
|
+
BrownfieldLand: "brownfield_land",
|
|
240
|
+
NoiseRailLden: "noise_rail_lden",
|
|
241
|
+
NoiseRoadLden: "noise_road_lden",
|
|
242
|
+
NoiseIndustryLden: "noise_industry_lden",
|
|
243
|
+
};
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const CoverageType$outboundSchema = z.nativeEnum(CoverageType);
|
|
246
|
+
/** @internal */
|
|
247
|
+
export const IntersectsWith$outboundSchema = z.nativeEnum(IntersectsWith);
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const GetAreaCoverageRequest$outboundSchema = z.object({
|
|
250
|
+
coverageType: CoverageType$outboundSchema.optional(),
|
|
251
|
+
intersectsWith: IntersectsWith$outboundSchema.optional(),
|
|
252
|
+
sourceCode: z.string(),
|
|
253
|
+
targetCode: z.string().optional(),
|
|
254
|
+
});
|
|
255
|
+
export function getAreaCoverageRequestToJSON(getAreaCoverageRequest) {
|
|
256
|
+
return JSON.stringify(GetAreaCoverageRequest$outboundSchema.parse(getAreaCoverageRequest));
|
|
257
|
+
}
|
|
258
|
+
/** @internal */
|
|
259
|
+
export const GetAreaCoverageMetadata$inboundSchema = z.object({
|
|
260
|
+
category: z.string().optional(),
|
|
261
|
+
componentLayers: z.array(z.string()).optional(),
|
|
262
|
+
dbRange: z.string().optional(),
|
|
263
|
+
entityCount: z.number().optional(),
|
|
264
|
+
featureCount: z.number().optional(),
|
|
265
|
+
totalEntities: z.number().optional(),
|
|
266
|
+
});
|
|
267
|
+
export function getAreaCoverageMetadataFromJSON(jsonString) {
|
|
268
|
+
return safeParse(jsonString, (x) => GetAreaCoverageMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAreaCoverageMetadata' from JSON`);
|
|
269
|
+
}
|
|
270
|
+
/** @internal */
|
|
271
|
+
export const Coverage$inboundSchema = z.object({
|
|
272
|
+
area: z.number(),
|
|
273
|
+
identifier: z.string(),
|
|
274
|
+
metadata: z.lazy(() => GetAreaCoverageMetadata$inboundSchema).optional(),
|
|
275
|
+
percentage: z.number(),
|
|
276
|
+
});
|
|
277
|
+
export function coverageFromJSON(jsonString) {
|
|
278
|
+
return safeParse(jsonString, (x) => Coverage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Coverage' from JSON`);
|
|
279
|
+
}
|
|
280
|
+
/** @internal */
|
|
281
|
+
export const GetAreaCoverageCoverageType$inboundSchema = openEnums.inboundSchema(GetAreaCoverageCoverageType);
|
|
282
|
+
/** @internal */
|
|
283
|
+
export const GetAreaCoverageIntersectsWith$inboundSchema = openEnums.inboundSchema(GetAreaCoverageIntersectsWith);
|
|
284
|
+
/** @internal */
|
|
285
|
+
export const SourceType$inboundSchema = openEnums.inboundSchema(SourceType);
|
|
286
|
+
/** @internal */
|
|
287
|
+
export const GetAreaCoverageResponseBody$inboundSchema = z.object({
|
|
288
|
+
coverage: z.array(z.lazy(() => Coverage$inboundSchema)),
|
|
289
|
+
coverageType: GetAreaCoverageCoverageType$inboundSchema.optional(),
|
|
290
|
+
intersectsWith: GetAreaCoverageIntersectsWith$inboundSchema.optional(),
|
|
291
|
+
message: z.string().optional(),
|
|
292
|
+
sourceArea: z.number(),
|
|
293
|
+
sourceCode: z.string(),
|
|
294
|
+
sourceName: z.string(),
|
|
295
|
+
sourceType: SourceType$inboundSchema,
|
|
296
|
+
success: z.boolean(),
|
|
297
|
+
targetCode: z.string().optional(),
|
|
298
|
+
targetName: z.string().optional(),
|
|
299
|
+
});
|
|
300
|
+
export function getAreaCoverageResponseBodyFromJSON(jsonString) {
|
|
301
|
+
return safeParse(jsonString, (x) => GetAreaCoverageResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAreaCoverageResponseBody' from JSON`);
|
|
302
|
+
}
|
|
303
|
+
//# 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;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAKlD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CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,wBAAwB;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,MAAM,UAAU,mCAAmC,CACjD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yCAAyC,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;IACrC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM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C,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAMP,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -61,63 +61,6 @@ export const GeographicType = {
|
|
|
61
61
|
NoiseRoadLden: "noise_road_lden",
|
|
62
62
|
NoiseIndustryLden: "noise_industry_lden",
|
|
63
63
|
};
|
|
64
|
-
/**
|
|
65
|
-
* 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
|
|
66
|
-
*/
|
|
67
|
-
export const GetMetricValuesGeographicType = {
|
|
68
|
-
Postcode: "postcode",
|
|
69
|
-
Outcode: "outcode",
|
|
70
|
-
UkOutputArea: "uk_output_area",
|
|
71
|
-
Lsoa21: "lsoa21",
|
|
72
|
-
Ward: "ward",
|
|
73
|
-
Parish: "parish",
|
|
74
|
-
LocalAuthorityDistrict: "local_authority_district",
|
|
75
|
-
County: "county",
|
|
76
|
-
Country: "country",
|
|
77
|
-
CountyElectoralDivision: "county_electoral_division",
|
|
78
|
-
DistrictBoroughUnitary: "district_borough_unitary",
|
|
79
|
-
DistrictBoroughUnitaryWard: "district_borough_unitary_ward",
|
|
80
|
-
LocalPlanningAuthority: "local_planning_authority",
|
|
81
|
-
CeremonialCountiesRegion: "ceremonial_counties_region",
|
|
82
|
-
EnglishRegion: "english_region",
|
|
83
|
-
CountryRegion: "country_region",
|
|
84
|
-
UnitaryElectoralDivision: "unitary_electoral_division",
|
|
85
|
-
Province: "province",
|
|
86
|
-
ElectoralDivision: "electoral_division",
|
|
87
|
-
GreaterLondonConstituency: "greater_london_constituency",
|
|
88
|
-
ScotlandAndWalesConstituency: "scotland_and_wales_constituency",
|
|
89
|
-
ScotlandAndWalesRegion: "scotland_and_wales_region",
|
|
90
|
-
WestminsterConstituency: "westminster_constituency",
|
|
91
|
-
Building: "building",
|
|
92
|
-
BuiltUpArea250: "built_up_area_250",
|
|
93
|
-
GreenBelt: "green_belt",
|
|
94
|
-
CommonLand: "common_land",
|
|
95
|
-
ParcelsGb: "parcels_gb",
|
|
96
|
-
FloodRisk: "flood_risk",
|
|
97
|
-
Ramsar: "ramsar",
|
|
98
|
-
Natura2000: "natura_2000",
|
|
99
|
-
Aonb: "aonb",
|
|
100
|
-
AreaNaturalBeauty: "area_natural_beauty",
|
|
101
|
-
NationalScenicArea: "national_scenic_area",
|
|
102
|
-
SpecialAreaConservation: "special_area_conservation",
|
|
103
|
-
SpecialProtectionArea: "special_protection_area",
|
|
104
|
-
AncientWoodland: "ancient_woodland",
|
|
105
|
-
NativeWoodlandSurvey: "native_woodland_survey",
|
|
106
|
-
PriorityHabitats: "priority_habitats",
|
|
107
|
-
ProtectedWoodlands: "protected_woodlands",
|
|
108
|
-
ProtectedWoodland: "protected_woodland",
|
|
109
|
-
ProtectedScenicLandscapes: "protected_scenic_landscapes",
|
|
110
|
-
WorldHeritageSite: "world_heritage_site",
|
|
111
|
-
ScheduledMonument: "scheduled_monument",
|
|
112
|
-
Battlefield: "battlefield",
|
|
113
|
-
ProtectedWreckSite: "protected_wreck_site",
|
|
114
|
-
HistoricLandfillSite: "historic_landfill_site",
|
|
115
|
-
RadonLevel: "radon_level",
|
|
116
|
-
BrownfieldLand: "brownfield_land",
|
|
117
|
-
NoiseRailLden: "noise_rail_lden",
|
|
118
|
-
NoiseRoadLden: "noise_road_lden",
|
|
119
|
-
NoiseIndustryLden: "noise_industry_lden",
|
|
120
|
-
};
|
|
121
64
|
/**
|
|
122
65
|
* 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
|
|
123
66
|
*/
|
|
@@ -194,21 +137,20 @@ export const Frequency = {
|
|
|
194
137
|
Irregular: "irregular",
|
|
195
138
|
};
|
|
196
139
|
/** @internal */
|
|
197
|
-
export const GeographicType$outboundSchema = z.nativeEnum(GeographicType);
|
|
198
|
-
/** @internal */
|
|
199
140
|
export const GetMetricValuesRequest$outboundSchema = z.object({
|
|
200
141
|
category: z.string().optional(),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
142
|
+
endMonth: z.nullable(z.number()).optional(),
|
|
143
|
+
endYear: z.nullable(z.number()).optional(),
|
|
144
|
+
geographicEntityIds: z.string().optional(),
|
|
145
|
+
geographicEntityTypes: z.string().optional(),
|
|
146
|
+
includeGeographicEntity: z.string().optional(),
|
|
147
|
+
includeMetric: z.string().optional(),
|
|
206
148
|
limit: z.string().default("100"),
|
|
207
|
-
|
|
149
|
+
metricIds: z.string().optional(),
|
|
208
150
|
metricName: z.string().optional(),
|
|
209
151
|
offset: z.string().default("0"),
|
|
210
|
-
|
|
211
|
-
|
|
152
|
+
startMonth: z.nullable(z.number()).optional(),
|
|
153
|
+
startYear: z.nullable(z.number()).optional(),
|
|
212
154
|
});
|
|
213
155
|
export function getMetricValuesRequestToJSON(getMetricValuesRequest) {
|
|
214
156
|
return JSON.stringify(GetMetricValuesRequest$outboundSchema.parse(getMetricValuesRequest));
|
|
@@ -224,7 +166,7 @@ export function paginationFromJSON(jsonString) {
|
|
|
224
166
|
return safeParse(jsonString, (x) => Pagination$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Pagination' from JSON`);
|
|
225
167
|
}
|
|
226
168
|
/** @internal */
|
|
227
|
-
export const
|
|
169
|
+
export const GeographicType$inboundSchema = openEnums.inboundSchema(GeographicType);
|
|
228
170
|
/** @internal */
|
|
229
171
|
export const GetMetricValuesType$inboundSchema = openEnums.inboundSchema(GetMetricValuesType);
|
|
230
172
|
/** @internal */
|
|
@@ -262,7 +204,7 @@ export const GetMetricValuesResult$inboundSchema = z.object({
|
|
|
262
204
|
confidence: z.nullable(z.number()),
|
|
263
205
|
createdAt: z.string(),
|
|
264
206
|
geographicCode: z.string(),
|
|
265
|
-
geographicType:
|
|
207
|
+
geographicType: GeographicType$inboundSchema,
|
|
266
208
|
geography: z.lazy(() => Geography$inboundSchema).optional(),
|
|
267
209
|
id: z.number(),
|
|
268
210
|
metadata: z.nullable(z.record(z.nullable(z.any()))).optional(),
|