@viadukt/connect 2.12.0-next.2 → 2.13.0-next.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/dist/index.d.ts CHANGED
@@ -1231,6 +1231,133 @@ declare const $ParcelPropertiesV4: {
1231
1231
  };
1232
1232
  readonly required: readonly ["parcel_id", "total_area", "developed_area", "free_area"];
1233
1233
  };
1234
+ declare const $Position3D: {
1235
+ readonly type: "array";
1236
+ readonly prefixItems: readonly [{
1237
+ readonly type: "number";
1238
+ }, {
1239
+ readonly type: "number";
1240
+ }, {
1241
+ readonly type: "number";
1242
+ }];
1243
+ };
1244
+ declare const $Polygon3DGeometry: {
1245
+ readonly type: "object";
1246
+ readonly properties: {
1247
+ readonly type: {
1248
+ readonly type: "string";
1249
+ readonly enum: readonly ["Polygon"];
1250
+ };
1251
+ readonly coordinates: {
1252
+ readonly type: "array";
1253
+ readonly items: {
1254
+ readonly type: "array";
1255
+ readonly items: {
1256
+ readonly $ref: "#/components/schemas/Position3D";
1257
+ };
1258
+ };
1259
+ };
1260
+ };
1261
+ readonly required: readonly ["type", "coordinates"];
1262
+ };
1263
+ declare const $MultiPolygon3DGeometry: {
1264
+ readonly type: "object";
1265
+ readonly properties: {
1266
+ readonly type: {
1267
+ readonly type: "string";
1268
+ readonly enum: readonly ["MultiPolygon"];
1269
+ };
1270
+ readonly coordinates: {
1271
+ readonly type: "array";
1272
+ readonly items: {
1273
+ readonly type: "array";
1274
+ readonly items: {
1275
+ readonly type: "array";
1276
+ readonly items: {
1277
+ readonly $ref: "#/components/schemas/Position3D";
1278
+ };
1279
+ };
1280
+ };
1281
+ };
1282
+ };
1283
+ readonly required: readonly ["type", "coordinates"];
1284
+ };
1285
+ declare const $GeometryCollection3D: {
1286
+ readonly type: "object";
1287
+ readonly properties: {
1288
+ readonly type: {
1289
+ readonly type: "string";
1290
+ readonly enum: readonly ["GeometryCollection"];
1291
+ };
1292
+ readonly geometries: {
1293
+ readonly type: "array";
1294
+ readonly items: {
1295
+ readonly anyOf: readonly [{
1296
+ readonly $ref: "#/components/schemas/Polygon3DGeometry";
1297
+ }, {
1298
+ readonly $ref: "#/components/schemas/MultiPolygon3DGeometry";
1299
+ }];
1300
+ };
1301
+ };
1302
+ };
1303
+ readonly required: readonly ["type", "geometries"];
1304
+ };
1305
+ declare const $Geometry3D: {
1306
+ readonly anyOf: readonly [{
1307
+ readonly $ref: "#/components/schemas/Polygon3DGeometry";
1308
+ }, {
1309
+ readonly $ref: "#/components/schemas/MultiPolygon3DGeometry";
1310
+ }, {
1311
+ readonly $ref: "#/components/schemas/GeometryCollection3D";
1312
+ }];
1313
+ };
1314
+ declare const $SurfaceType: {
1315
+ readonly type: "string";
1316
+ readonly enum: readonly ["wall", "ground", "roof"];
1317
+ readonly description: "The surface type of this geometry (wall, ground, or roof)";
1318
+ readonly example: "roof";
1319
+ };
1320
+ declare const $BuildingGeometryPropertiesV4: {
1321
+ readonly type: "object";
1322
+ readonly properties: {
1323
+ readonly type: {
1324
+ readonly $ref: "#/components/schemas/SurfaceType";
1325
+ };
1326
+ };
1327
+ readonly required: readonly ["type"];
1328
+ };
1329
+ declare const $BuildingGeometryFeatureV4: {
1330
+ readonly type: "object";
1331
+ readonly properties: {
1332
+ readonly type: {
1333
+ readonly type: "string";
1334
+ readonly enum: readonly ["Feature"];
1335
+ };
1336
+ readonly geometry: {
1337
+ readonly $ref: "#/components/schemas/Geometry3D";
1338
+ };
1339
+ readonly properties: {
1340
+ readonly $ref: "#/components/schemas/BuildingGeometryPropertiesV4";
1341
+ };
1342
+ };
1343
+ readonly required: readonly ["type", "geometry", "properties"];
1344
+ };
1345
+ declare const $BuildingGeometryResponseV4: {
1346
+ readonly type: "object";
1347
+ readonly properties: {
1348
+ readonly type: {
1349
+ readonly type: "string";
1350
+ readonly enum: readonly ["FeatureCollection"];
1351
+ };
1352
+ readonly features: {
1353
+ readonly type: "array";
1354
+ readonly items: {
1355
+ readonly $ref: "#/components/schemas/BuildingGeometryFeatureV4";
1356
+ };
1357
+ };
1358
+ };
1359
+ readonly required: readonly ["type", "features"];
1360
+ };
1234
1361
 
1235
1362
  type LookupPropertiesV2 = {
1236
1363
  /**
@@ -3226,6 +3353,41 @@ type ParcelPropertiesV4 = {
3226
3353
  */
3227
3354
  free_area: number | null;
3228
3355
  };
3356
+ type Position3D = unknown[];
3357
+ type Polygon3DGeometry = {
3358
+ type: 'Polygon';
3359
+ coordinates: Array<Array<Position3D>>;
3360
+ };
3361
+ type type2 = 'Polygon';
3362
+ type MultiPolygon3DGeometry = {
3363
+ type: 'MultiPolygon';
3364
+ coordinates: Array<Array<Array<Position3D>>>;
3365
+ };
3366
+ type type3 = 'MultiPolygon';
3367
+ type GeometryCollection3D = {
3368
+ type: 'GeometryCollection';
3369
+ geometries: Array<(Polygon3DGeometry | MultiPolygon3DGeometry)>;
3370
+ };
3371
+ type type4 = 'GeometryCollection';
3372
+ type Geometry3D = Polygon3DGeometry | MultiPolygon3DGeometry | GeometryCollection3D;
3373
+ /**
3374
+ * The surface type of this geometry (wall, ground, or roof)
3375
+ */
3376
+ type SurfaceType = 'wall' | 'ground' | 'roof';
3377
+ type BuildingGeometryPropertiesV4 = {
3378
+ type: SurfaceType;
3379
+ };
3380
+ type BuildingGeometryFeatureV4 = {
3381
+ type: 'Feature';
3382
+ geometry: Geometry3D;
3383
+ properties: BuildingGeometryPropertiesV4;
3384
+ };
3385
+ type type5 = 'Feature';
3386
+ type BuildingGeometryResponseV4 = {
3387
+ type: 'FeatureCollection';
3388
+ features: Array<BuildingGeometryFeatureV4>;
3389
+ };
3390
+ type type6 = 'FeatureCollection';
3229
3391
  type GetAddressLookupV2Data = {
3230
3392
  query: {
3231
3393
  city: string;
@@ -3423,6 +3585,14 @@ type GetParcelCoordinateLookupV4Response = {
3423
3585
  }>;
3424
3586
  };
3425
3587
  type GetParcelCoordinateLookupV4Error = unknown;
3588
+ type GetBuildingPart3dGeometryLookupV4Data = {
3589
+ query: {
3590
+ building_id: string;
3591
+ grouping_strategy?: 'proximity' | 'property';
3592
+ };
3593
+ };
3594
+ type GetBuildingPart3dGeometryLookupV4Response = BuildingGeometryResponseV4;
3595
+ type GetBuildingPart3dGeometryLookupV4Error = unknown;
3426
3596
  type $OpenApiTs = {
3427
3597
  '/v2/addressLookup': {
3428
3598
  get: {
@@ -3849,6 +4019,44 @@ type $OpenApiTs = {
3849
4019
  };
3850
4020
  };
3851
4021
  };
4022
+ '/v4/buildingPart3dGeometryLookup': {
4023
+ get: {
4024
+ req: GetBuildingPart3dGeometryLookupV4Data;
4025
+ res: {
4026
+ /**
4027
+ *
4028
+ * Retrieves the 3D building part geometries for the group that contains the given building identifier.
4029
+ * The response includes wall, roof, and ground surface geometries as individual Features in a FeatureCollection.
4030
+ *
4031
+ */
4032
+ '200': BuildingGeometryResponseV4;
4033
+ /**
4034
+ * Invalid or missing building_id
4035
+ */
4036
+ '400': {
4037
+ error: string;
4038
+ };
4039
+ /**
4040
+ * Unauthorized access
4041
+ */
4042
+ '401': {
4043
+ error: string;
4044
+ };
4045
+ /**
4046
+ * Building not found
4047
+ */
4048
+ '404': {
4049
+ error: string;
4050
+ };
4051
+ /**
4052
+ * Internal server error
4053
+ */
4054
+ '500': {
4055
+ error: string;
4056
+ };
4057
+ };
4058
+ };
4059
+ };
3852
4060
  };
3853
4061
 
3854
4062
  /**
@@ -4168,5 +4376,41 @@ declare const getParcelCoordinateLookupV4: (options?: Options<GetParcelCoordinat
4168
4376
  request: Request;
4169
4377
  response: Response;
4170
4378
  }>;
4379
+ /**
4380
+ * Retrieve 3D building part geometries for the group of a building
4381
+ *
4382
+ * This endpoint retrieves the 3D building part geometries for the group that contains the queried building.
4383
+ * The data includes wall, roof, and ground surface geometries as individual GeoJSON Features with
4384
+ * 3D coordinates (longitude, latitude, altitude).
4385
+ *
4386
+ * ### New in v4
4387
+ * This is a new endpoint in v4 dedicated to 3D building geometry retrieval. Each building is decomposed
4388
+ * into its constituent surfaces — walls, roofs, and ground planes — each returned as a separate Feature
4389
+ * with a `type` property indicating the surface kind.
4390
+ *
4391
+ * ### Permissions
4392
+ * - `api.lookup.building.geometry.read`: This permission grants the ability to
4393
+ * read and retrieve 3D building part geometries for a given building identifier.
4394
+ *
4395
+ * ### Grouping Strategy
4396
+ * This endpoint resolves the full building group for the queried building using the selected grouping strategy:
4397
+ * - `proximity` (default) — geometry-based spatial clustering via `gold__proximity_groups`
4398
+ * - `property` — cadastral address-based grouping via `gold__property_groups`
4399
+ *
4400
+ * It then returns 3D geometries for all buildings in that resolved group, not only the single queried building. This enables rendering complete building clusters in 3D.
4401
+ *
4402
+ * ### Response Structure
4403
+ * - **GeoJSON Type**: The response returns a `FeatureCollection` containing all geometry parts
4404
+ * for the requested building.
4405
+ * - **Properties**: Each Feature includes a `type` property with value `wall`, `ground`, or `roof`.
4406
+ * - **Geometry**: Contains 3D Polygon coordinates in WGS84 (EPSG:4326) with altitude values as the
4407
+ * third coordinate element `[longitude, latitude, altitude]`.
4408
+ */
4409
+ declare const getBuildingPart3dGeometryLookupV4: (options: Options<GetBuildingPart3dGeometryLookupV4Data>) => Promise<{
4410
+ error?: unknown;
4411
+ data?: BuildingGeometryResponseV4 | undefined;
4412
+ request: Request;
4413
+ response: Response;
4414
+ }>;
4171
4415
 
4172
- export { $LookupPropertiesV2, $LookupPropertiesV3, type $OpenApiTs, $ParcelPropertiesV4, type GetAddressLookupV2Data, type GetAddressLookupV2Error, type GetAddressLookupV2Response, type GetAddressLookupV3Data, type GetAddressLookupV3Error, type GetAddressLookupV3Response, type GetCoordinateLookupV2Data, type GetCoordinateLookupV2Error, type GetCoordinateLookupV2Response, type GetCoordinateLookupV3Data, type GetCoordinateLookupV3Error, type GetCoordinateLookupV3Response, type GetParcelCoordinateLookupV4Data, type GetParcelCoordinateLookupV4Error, type GetParcelCoordinateLookupV4Response, type LookupPropertiesV2, type LookupPropertiesV3, type ParcelPropertiesV4, type PostCoordinateBatchLookupV2Data, type PostCoordinateBatchLookupV2Error, type PostCoordinateBatchLookupV2Response, type PostCoordinateBatchLookupV3Data, type PostCoordinateBatchLookupV3Error, type PostCoordinateBatchLookupV3Response, type building_function_class, type characteristics, type development_layout, type dominant, type environment, getAddressLookupV2, getAddressLookupV3, getCoordinateLookupV2, getCoordinateLookupV3, getParcelCoordinateLookupV4, type governance, type grouping_strategy, type height_category, type investment_perspective, type milieus_dominant, type modernisation_potential, type overall, postCoordinateBatchLookupV2, postCoordinateBatchLookupV3, type roof_type, type social, type type, type usage };
4416
+ export { $BuildingGeometryFeatureV4, $BuildingGeometryPropertiesV4, $BuildingGeometryResponseV4, $Geometry3D, $GeometryCollection3D, $LookupPropertiesV2, $LookupPropertiesV3, $MultiPolygon3DGeometry, type $OpenApiTs, $ParcelPropertiesV4, $Polygon3DGeometry, $Position3D, $SurfaceType, type BuildingGeometryFeatureV4, type BuildingGeometryPropertiesV4, type BuildingGeometryResponseV4, type Geometry3D, type GeometryCollection3D, type GetAddressLookupV2Data, type GetAddressLookupV2Error, type GetAddressLookupV2Response, type GetAddressLookupV3Data, type GetAddressLookupV3Error, type GetAddressLookupV3Response, type GetBuildingPart3dGeometryLookupV4Data, type GetBuildingPart3dGeometryLookupV4Error, type GetBuildingPart3dGeometryLookupV4Response, type GetCoordinateLookupV2Data, type GetCoordinateLookupV2Error, type GetCoordinateLookupV2Response, type GetCoordinateLookupV3Data, type GetCoordinateLookupV3Error, type GetCoordinateLookupV3Response, type GetParcelCoordinateLookupV4Data, type GetParcelCoordinateLookupV4Error, type GetParcelCoordinateLookupV4Response, type LookupPropertiesV2, type LookupPropertiesV3, type MultiPolygon3DGeometry, type ParcelPropertiesV4, type Polygon3DGeometry, type Position3D, type PostCoordinateBatchLookupV2Data, type PostCoordinateBatchLookupV2Error, type PostCoordinateBatchLookupV2Response, type PostCoordinateBatchLookupV3Data, type PostCoordinateBatchLookupV3Error, type PostCoordinateBatchLookupV3Response, type SurfaceType, type building_function_class, type characteristics, type development_layout, type dominant, type environment, getAddressLookupV2, getAddressLookupV3, getBuildingPart3dGeometryLookupV4, getCoordinateLookupV2, getCoordinateLookupV3, getParcelCoordinateLookupV4, type governance, type grouping_strategy, type height_category, type investment_perspective, type milieus_dominant, type modernisation_potential, type overall, postCoordinateBatchLookupV2, postCoordinateBatchLookupV3, type roof_type, type social, type type, type type2, type type3, type type4, type type5, type type6, type usage };
package/dist/index.js CHANGED
@@ -2274,6 +2274,144 @@ The field is set to \`null\` if the free area is unknown.`,
2274
2274
  },
2275
2275
  required: ["parcel_id", "total_area", "developed_area", "free_area"]
2276
2276
  };
2277
+ var $Position3D = {
2278
+ type: "array",
2279
+ prefixItems: [
2280
+ {
2281
+ type: "number"
2282
+ },
2283
+ {
2284
+ type: "number"
2285
+ },
2286
+ {
2287
+ type: "number"
2288
+ }
2289
+ ]
2290
+ };
2291
+ var $Polygon3DGeometry = {
2292
+ type: "object",
2293
+ properties: {
2294
+ type: {
2295
+ type: "string",
2296
+ enum: ["Polygon"]
2297
+ },
2298
+ coordinates: {
2299
+ type: "array",
2300
+ items: {
2301
+ type: "array",
2302
+ items: {
2303
+ "$ref": "#/components/schemas/Position3D"
2304
+ }
2305
+ }
2306
+ }
2307
+ },
2308
+ required: ["type", "coordinates"]
2309
+ };
2310
+ var $MultiPolygon3DGeometry = {
2311
+ type: "object",
2312
+ properties: {
2313
+ type: {
2314
+ type: "string",
2315
+ enum: ["MultiPolygon"]
2316
+ },
2317
+ coordinates: {
2318
+ type: "array",
2319
+ items: {
2320
+ type: "array",
2321
+ items: {
2322
+ type: "array",
2323
+ items: {
2324
+ "$ref": "#/components/schemas/Position3D"
2325
+ }
2326
+ }
2327
+ }
2328
+ }
2329
+ },
2330
+ required: ["type", "coordinates"]
2331
+ };
2332
+ var $GeometryCollection3D = {
2333
+ type: "object",
2334
+ properties: {
2335
+ type: {
2336
+ type: "string",
2337
+ enum: ["GeometryCollection"]
2338
+ },
2339
+ geometries: {
2340
+ type: "array",
2341
+ items: {
2342
+ anyOf: [
2343
+ {
2344
+ "$ref": "#/components/schemas/Polygon3DGeometry"
2345
+ },
2346
+ {
2347
+ "$ref": "#/components/schemas/MultiPolygon3DGeometry"
2348
+ }
2349
+ ]
2350
+ }
2351
+ }
2352
+ },
2353
+ required: ["type", "geometries"]
2354
+ };
2355
+ var $Geometry3D = {
2356
+ anyOf: [
2357
+ {
2358
+ "$ref": "#/components/schemas/Polygon3DGeometry"
2359
+ },
2360
+ {
2361
+ "$ref": "#/components/schemas/MultiPolygon3DGeometry"
2362
+ },
2363
+ {
2364
+ "$ref": "#/components/schemas/GeometryCollection3D"
2365
+ }
2366
+ ]
2367
+ };
2368
+ var $SurfaceType = {
2369
+ type: "string",
2370
+ enum: ["wall", "ground", "roof"],
2371
+ description: "The surface type of this geometry (wall, ground, or roof)",
2372
+ example: "roof"
2373
+ };
2374
+ var $BuildingGeometryPropertiesV4 = {
2375
+ type: "object",
2376
+ properties: {
2377
+ type: {
2378
+ "$ref": "#/components/schemas/SurfaceType"
2379
+ }
2380
+ },
2381
+ required: ["type"]
2382
+ };
2383
+ var $BuildingGeometryFeatureV4 = {
2384
+ type: "object",
2385
+ properties: {
2386
+ type: {
2387
+ type: "string",
2388
+ enum: ["Feature"]
2389
+ },
2390
+ geometry: {
2391
+ "$ref": "#/components/schemas/Geometry3D"
2392
+ },
2393
+ properties: {
2394
+ "$ref": "#/components/schemas/BuildingGeometryPropertiesV4"
2395
+ }
2396
+ },
2397
+ required: ["type", "geometry", "properties"]
2398
+ };
2399
+ var $BuildingGeometryResponseV4 = {
2400
+ type: "object",
2401
+ properties: {
2402
+ type: {
2403
+ type: "string",
2404
+ enum: ["FeatureCollection"]
2405
+ },
2406
+ features: {
2407
+ type: "array",
2408
+ items: {
2409
+ "$ref": "#/components/schemas/BuildingGeometryFeatureV4"
2410
+ }
2411
+ }
2412
+ },
2413
+ required: ["type", "features"]
2414
+ };
2277
2415
 
2278
2416
  // src/services.gen.ts
2279
2417
  import { client } from "@hey-api/client-fetch";
@@ -2319,16 +2457,32 @@ var getParcelCoordinateLookupV4 = (options) => {
2319
2457
  url: "/v4/parcelCoordinateLookup"
2320
2458
  }));
2321
2459
  };
2460
+ var getBuildingPart3dGeometryLookupV4 = (options) => {
2461
+ var _a;
2462
+ return ((_a = options == null ? void 0 : options.client) != null ? _a : client).get(__spreadProps(__spreadValues({}, options), {
2463
+ url: "/v4/buildingPart3dGeometryLookup"
2464
+ }));
2465
+ };
2322
2466
 
2323
2467
  // src/index.ts
2324
2468
  import { createClient } from "@hey-api/client-fetch";
2325
2469
  export {
2470
+ $BuildingGeometryFeatureV4,
2471
+ $BuildingGeometryPropertiesV4,
2472
+ $BuildingGeometryResponseV4,
2473
+ $Geometry3D,
2474
+ $GeometryCollection3D,
2326
2475
  $LookupPropertiesV2,
2327
2476
  $LookupPropertiesV3,
2477
+ $MultiPolygon3DGeometry,
2328
2478
  $ParcelPropertiesV4,
2479
+ $Polygon3DGeometry,
2480
+ $Position3D,
2481
+ $SurfaceType,
2329
2482
  createClient,
2330
2483
  getAddressLookupV2,
2331
2484
  getAddressLookupV3,
2485
+ getBuildingPart3dGeometryLookupV4,
2332
2486
  getCoordinateLookupV2,
2333
2487
  getCoordinateLookupV3,
2334
2488
  getParcelCoordinateLookupV4,