@snaptrude/plugin-core 0.0.0-bimsvg-20260928124803
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/AGENTS.md +231 -0
- package/CHANGELOG.md +341 -0
- package/CLAUDE.md +11 -0
- package/api-manifest.json +9120 -0
- package/dist/api/analysis/daylight.d.ts +603 -0
- package/dist/api/analysis/daylight.d.ts.map +1 -0
- package/dist/api/analysis/heatmaps.d.ts +658 -0
- package/dist/api/analysis/heatmaps.d.ts.map +1 -0
- package/dist/api/analysis/illuminance.d.ts +145 -0
- package/dist/api/analysis/illuminance.d.ts.map +1 -0
- package/dist/api/analysis/index.d.ts +59 -0
- package/dist/api/analysis/index.d.ts.map +1 -0
- package/dist/api/analysis/shadows.d.ts +165 -0
- package/dist/api/analysis/shadows.d.ts.map +1 -0
- package/dist/api/analysis/solar.d.ts +249 -0
- package/dist/api/analysis/solar.d.ts.map +1 -0
- package/dist/api/analysis/sunlightHours.d.ts +208 -0
- package/dist/api/analysis/sunlightHours.d.ts.map +1 -0
- package/dist/api/analysis/sunpath.d.ts +80 -0
- package/dist/api/analysis/sunpath.d.ts.map +1 -0
- package/dist/api/analysis/weather.d.ts +193 -0
- package/dist/api/analysis/weather.d.ts.map +1 -0
- package/dist/api/core/buildings.d.ts +427 -0
- package/dist/api/core/buildings.d.ts.map +1 -0
- package/dist/api/core/camera/index.d.ts +261 -0
- package/dist/api/core/camera/index.d.ts.map +1 -0
- package/dist/api/core/comment/index.d.ts +333 -0
- package/dist/api/core/comment/index.d.ts.map +1 -0
- package/dist/api/core/geom/create/index.d.ts +1073 -0
- package/dist/api/core/geom/create/index.d.ts.map +1 -0
- package/dist/api/core/geom/delete/index.d.ts +78 -0
- package/dist/api/core/geom/delete/index.d.ts.map +1 -0
- package/dist/api/core/geom/index.d.ts +33 -0
- package/dist/api/core/geom/index.d.ts.map +1 -0
- package/dist/api/core/geom/query/arc.d.ts +169 -0
- package/dist/api/core/geom/query/arc.d.ts.map +1 -0
- package/dist/api/core/geom/query/brep.d.ts +514 -0
- package/dist/api/core/geom/query/brep.d.ts.map +1 -0
- package/dist/api/core/geom/query/circle.d.ts +378 -0
- package/dist/api/core/geom/query/circle.d.ts.map +1 -0
- package/dist/api/core/geom/query/contour.d.ts +450 -0
- package/dist/api/core/geom/query/contour.d.ts.map +1 -0
- package/dist/api/core/geom/query/curve.d.ts +918 -0
- package/dist/api/core/geom/query/curve.d.ts.map +1 -0
- package/dist/api/core/geom/query/edge.d.ts +128 -0
- package/dist/api/core/geom/query/edge.d.ts.map +1 -0
- package/dist/api/core/geom/query/face.d.ts +363 -0
- package/dist/api/core/geom/query/face.d.ts.map +1 -0
- package/dist/api/core/geom/query/halfedge.d.ts +206 -0
- package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
- package/dist/api/core/geom/query/index.d.ts +61 -0
- package/dist/api/core/geom/query/index.d.ts.map +1 -0
- package/dist/api/core/geom/query/profile.d.ts +410 -0
- package/dist/api/core/geom/query/profile.d.ts.map +1 -0
- package/dist/api/core/geom/query/vertex.d.ts +187 -0
- package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
- package/dist/api/core/geom/update/contour.d.ts +272 -0
- package/dist/api/core/geom/update/contour.d.ts.map +1 -0
- package/dist/api/core/geom/update/curve.d.ts +180 -0
- package/dist/api/core/geom/update/curve.d.ts.map +1 -0
- package/dist/api/core/geom/update/index.d.ts +27 -0
- package/dist/api/core/geom/update/index.d.ts.map +1 -0
- package/dist/api/core/geom/update/profile.d.ts +329 -0
- package/dist/api/core/geom/update/profile.d.ts.map +1 -0
- package/dist/api/core/groups.d.ts +485 -0
- package/dist/api/core/groups.d.ts.map +1 -0
- package/dist/api/core/handles/index.d.ts +210 -0
- package/dist/api/core/handles/index.d.ts.map +1 -0
- package/dist/api/core/history/index.d.ts +78 -0
- package/dist/api/core/history/index.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +97 -0
- package/dist/api/core/index.d.ts.map +1 -0
- package/dist/api/core/io/export/index.d.ts +134 -0
- package/dist/api/core/io/export/index.d.ts.map +1 -0
- package/dist/api/core/io/import/index.d.ts +455 -0
- package/dist/api/core/io/import/index.d.ts.map +1 -0
- package/dist/api/core/io/index.d.ts +40 -0
- package/dist/api/core/io/index.d.ts.map +1 -0
- package/dist/api/core/io/job/index.d.ts +139 -0
- package/dist/api/core/io/job/index.d.ts.map +1 -0
- package/dist/api/core/io/query/index.d.ts +74 -0
- package/dist/api/core/io/query/index.d.ts.map +1 -0
- package/dist/api/core/io/terrain/index.d.ts +341 -0
- package/dist/api/core/io/terrain/index.d.ts.map +1 -0
- package/dist/api/core/io/underlay/index.d.ts +805 -0
- package/dist/api/core/io/underlay/index.d.ts.map +1 -0
- package/dist/api/core/layers.d.ts +402 -0
- package/dist/api/core/layers.d.ts.map +1 -0
- package/dist/api/core/math/index.d.ts +18 -0
- package/dist/api/core/math/index.d.ts.map +1 -0
- package/dist/api/core/math/quat.d.ts +170 -0
- package/dist/api/core/math/quat.d.ts.map +1 -0
- package/dist/api/core/math/vec3.d.ts +174 -0
- package/dist/api/core/math/vec3.d.ts.map +1 -0
- package/dist/api/core/mode/index.d.ts +111 -0
- package/dist/api/core/mode/index.d.ts.map +1 -0
- package/dist/api/core/project/index.d.ts +466 -0
- package/dist/api/core/project/index.d.ts.map +1 -0
- package/dist/api/core/proposals/index.d.ts +531 -0
- package/dist/api/core/proposals/index.d.ts.map +1 -0
- package/dist/api/core/storeys/index.d.ts +265 -0
- package/dist/api/core/storeys/index.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +860 -0
- package/dist/api/core/tags.d.ts.map +1 -0
- package/dist/api/core/units/index.d.ts +175 -0
- package/dist/api/core/units/index.d.ts.map +1 -0
- package/dist/api/core/user.d.ts +44 -0
- package/dist/api/core/user.d.ts.map +1 -0
- package/dist/api/core/zoom/index.d.ts +49 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +168 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -0
- package/dist/api/design/create/bulk-items.d.ts +185 -0
- package/dist/api/design/create/bulk-items.d.ts.map +1 -0
- package/dist/api/design/create/grids.d.ts +132 -0
- package/dist/api/design/create/grids.d.ts.map +1 -0
- package/dist/api/design/create/index.d.ts +1747 -0
- package/dist/api/design/create/index.d.ts.map +1 -0
- package/dist/api/design/create/opening-fields.d.ts +37 -0
- package/dist/api/design/create/opening-fields.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +70 -0
- package/dist/api/design/delete/index.d.ts.map +1 -0
- package/dist/api/design/dimensions.d.ts +427 -0
- package/dist/api/design/dimensions.d.ts.map +1 -0
- package/dist/api/design/doors/index.d.ts +470 -0
- package/dist/api/design/doors/index.d.ts.map +1 -0
- package/dist/api/design/edit/index.d.ts +49 -0
- package/dist/api/design/edit/index.d.ts.map +1 -0
- package/dist/api/design/erase/index.d.ts +160 -0
- package/dist/api/design/erase/index.d.ts.map +1 -0
- package/dist/api/design/family.d.ts +611 -0
- package/dist/api/design/family.d.ts.map +1 -0
- package/dist/api/design/furniture/index.d.ts +296 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -0
- package/dist/api/design/grids.d.ts +237 -0
- package/dist/api/design/grids.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +260 -0
- package/dist/api/design/index.d.ts.map +1 -0
- package/dist/api/design/lock.d.ts +67 -0
- package/dist/api/design/lock.d.ts.map +1 -0
- package/dist/api/design/materials/index.d.ts +551 -0
- package/dist/api/design/materials/index.d.ts.map +1 -0
- package/dist/api/design/query/geometry/index.d.ts +252 -0
- package/dist/api/design/query/geometry/index.d.ts.map +1 -0
- package/dist/api/design/query/grids.d.ts +287 -0
- package/dist/api/design/query/grids.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +1318 -0
- package/dist/api/design/query/index.d.ts.map +1 -0
- package/dist/api/design/query/referenceLines.d.ts +45 -0
- package/dist/api/design/query/referenceLines.d.ts.map +1 -0
- package/dist/api/design/query/spaces.d.ts +394 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -0
- package/dist/api/design/selection/index.d.ts +282 -0
- package/dist/api/design/selection/index.d.ts.map +1 -0
- package/dist/api/design/shared.d.ts +38 -0
- package/dist/api/design/shared.d.ts.map +1 -0
- package/dist/api/design/transform/index.d.ts +249 -0
- package/dist/api/design/transform/index.d.ts.map +1 -0
- package/dist/api/design/types/index.d.ts +181 -0
- package/dist/api/design/types/index.d.ts.map +1 -0
- package/dist/api/design/update/index.d.ts +803 -0
- package/dist/api/design/update/index.d.ts.map +1 -0
- package/dist/api/design/visibility.d.ts +126 -0
- package/dist/api/design/visibility.d.ts.map +1 -0
- package/dist/api/design/windows/index.d.ts +300 -0
- package/dist/api/design/windows/index.d.ts.map +1 -0
- package/dist/api/entity/buildableEnvelope.d.ts +265 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
- package/dist/api/entity/department.d.ts +1 -0
- package/dist/api/entity/department.d.ts.map +1 -0
- package/dist/api/entity/index.d.ts +28 -0
- package/dist/api/entity/index.d.ts.map +1 -0
- package/dist/api/entity/referenceLine.d.ts +210 -0
- package/dist/api/entity/referenceLine.d.ts.map +1 -0
- package/dist/api/entity/space.d.ts +846 -0
- package/dist/api/entity/space.d.ts.map +1 -0
- package/dist/api/entity/story.d.ts +476 -0
- package/dist/api/entity/story.d.ts.map +1 -0
- package/dist/api/index.d.ts +45 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/presentation/aiInspiration.d.ts +2400 -0
- package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
- package/dist/api/presentation/annotate.d.ts +483 -0
- package/dist/api/presentation/annotate.d.ts.map +1 -0
- package/dist/api/presentation/diagrams.d.ts +184 -0
- package/dist/api/presentation/diagrams.d.ts.map +1 -0
- package/dist/api/presentation/drawings.d.ts +2900 -0
- package/dist/api/presentation/drawings.d.ts.map +1 -0
- package/dist/api/presentation/export.d.ts +126 -0
- package/dist/api/presentation/export.d.ts.map +1 -0
- package/dist/api/presentation/import.d.ts +164 -0
- package/dist/api/presentation/import.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +114 -0
- package/dist/api/presentation/index.d.ts.map +1 -0
- package/dist/api/presentation/placedViews.d.ts +1232 -0
- package/dist/api/presentation/placedViews.d.ts.map +1 -0
- package/dist/api/presentation/shapes.d.ts +481 -0
- package/dist/api/presentation/shapes.d.ts.map +1 -0
- package/dist/api/presentation/sheets.d.ts +643 -0
- package/dist/api/presentation/sheets.d.ts.map +1 -0
- package/dist/api/presentation/slideshow.d.ts +125 -0
- package/dist/api/presentation/slideshow.d.ts.map +1 -0
- package/dist/api/presentation/tables.d.ts +81 -0
- package/dist/api/presentation/tables.d.ts.map +1 -0
- package/dist/api/presentation/viewPresets.d.ts +70 -0
- package/dist/api/presentation/viewPresets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +741 -0
- package/dist/api/presentation/views.d.ts.map +1 -0
- package/dist/api/program/adjacency.d.ts +155 -0
- package/dist/api/program/adjacency.d.ts.map +1 -0
- package/dist/api/program/areas.d.ts +450 -0
- package/dist/api/program/areas.d.ts.map +1 -0
- package/dist/api/program/classification.d.ts +135 -0
- package/dist/api/program/classification.d.ts.map +1 -0
- package/dist/api/program/cores.d.ts +78 -0
- package/dist/api/program/cores.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +487 -0
- package/dist/api/program/departments.d.ts.map +1 -0
- package/dist/api/program/index.d.ts +71 -0
- package/dist/api/program/index.d.ts.map +1 -0
- package/dist/api/program/labels.d.ts +355 -0
- package/dist/api/program/labels.d.ts.map +1 -0
- package/dist/api/program/layout.d.ts +398 -0
- package/dist/api/program/layout.d.ts.map +1 -0
- package/dist/api/program/metadata.d.ts +328 -0
- package/dist/api/program/metadata.d.ts.map +1 -0
- package/dist/api/program/metrics.d.ts +108 -0
- package/dist/api/program/metrics.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +823 -0
- package/dist/api/program/site.d.ts.map +1 -0
- package/dist/api/program/spreadsheet.d.ts +2628 -0
- package/dist/api/program/spreadsheet.d.ts.map +1 -0
- package/dist/api/workspace/index.d.ts +552 -0
- package/dist/api/workspace/index.d.ts.map +1 -0
- package/dist/errors/codes.d.ts +34 -0
- package/dist/errors/codes.d.ts.map +1 -0
- package/dist/errors/envelope.d.ts +56 -0
- package/dist/errors/envelope.d.ts.map +1 -0
- package/dist/errors/index.d.ts +6 -0
- package/dist/errors/index.d.ts.map +1 -0
- package/dist/errors/plugin-error.d.ts +69 -0
- package/dist/errors/plugin-error.d.ts.map +1 -0
- package/dist/handles.d.ts +229 -0
- package/dist/handles.d.ts.map +1 -0
- package/dist/host-utils.d.ts +47 -0
- package/dist/host-utils.d.ts.map +1 -0
- package/dist/index.cjs +8836 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7568 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +41 -0
- package/scripts/generate-manifest.mjs +238 -0
- package/scripts/generate-manifest.test.mjs +292 -0
- package/src/api/analysis/daylight.ts +470 -0
- package/src/api/analysis/heatmaps.ts +683 -0
- package/src/api/analysis/illuminance.ts +155 -0
- package/src/api/analysis/index.ts +61 -0
- package/src/api/analysis/shadows.ts +183 -0
- package/src/api/analysis/solar.ts +237 -0
- package/src/api/analysis/sunlightHours.ts +211 -0
- package/src/api/analysis/sunpath.ts +83 -0
- package/src/api/analysis/weather.ts +179 -0
- package/src/api/core/buildings.ts +485 -0
- package/src/api/core/camera/index.ts +268 -0
- package/src/api/core/comment/index.ts +376 -0
- package/src/api/core/geom/create/index.ts +1204 -0
- package/src/api/core/geom/delete/index.ts +84 -0
- package/src/api/core/geom/index.ts +35 -0
- package/src/api/core/geom/query/arc.ts +169 -0
- package/src/api/core/geom/query/brep.ts +563 -0
- package/src/api/core/geom/query/circle.ts +404 -0
- package/src/api/core/geom/query/contour.ts +540 -0
- package/src/api/core/geom/query/curve.ts +1078 -0
- package/src/api/core/geom/query/edge.ts +130 -0
- package/src/api/core/geom/query/face.ts +403 -0
- package/src/api/core/geom/query/halfedge.ts +210 -0
- package/src/api/core/geom/query/index.ts +63 -0
- package/src/api/core/geom/query/profile.ts +473 -0
- package/src/api/core/geom/query/vertex.ts +205 -0
- package/src/api/core/geom/update/contour.ts +315 -0
- package/src/api/core/geom/update/curve.ts +209 -0
- package/src/api/core/geom/update/index.ts +29 -0
- package/src/api/core/geom/update/profile.ts +377 -0
- package/src/api/core/groups.ts +521 -0
- package/src/api/core/handles/index.ts +233 -0
- package/src/api/core/history/index.ts +84 -0
- package/src/api/core/index.ts +99 -0
- package/src/api/core/io/export/index.ts +126 -0
- package/src/api/core/io/import/index.ts +504 -0
- package/src/api/core/io/index.ts +42 -0
- package/src/api/core/io/job/index.ts +140 -0
- package/src/api/core/io/query/index.ts +71 -0
- package/src/api/core/io/terrain/index.ts +360 -0
- package/src/api/core/io/underlay/index.ts +705 -0
- package/src/api/core/layers.ts +333 -0
- package/src/api/core/math/index.ts +20 -0
- package/src/api/core/math/quat.ts +172 -0
- package/src/api/core/math/vec3.ts +179 -0
- package/src/api/core/mode/index.ts +108 -0
- package/src/api/core/project/index.ts +479 -0
- package/src/api/core/proposals/index.ts +569 -0
- package/src/api/core/storeys/index.ts +294 -0
- package/src/api/core/tags.ts +911 -0
- package/src/api/core/units/index.ts +164 -0
- package/src/api/core/user.ts +46 -0
- package/src/api/core/zoom/index.ts +51 -0
- package/src/api/design/boolean/index.ts +179 -0
- package/src/api/design/create/bulk-items.ts +186 -0
- package/src/api/design/create/grids.ts +137 -0
- package/src/api/design/create/index.ts +1954 -0
- package/src/api/design/create/opening-fields.ts +37 -0
- package/src/api/design/delete/index.ts +74 -0
- package/src/api/design/dimensions.ts +453 -0
- package/src/api/design/doors/index.ts +500 -0
- package/src/api/design/edit/index.ts +54 -0
- package/src/api/design/erase/index.ts +151 -0
- package/src/api/design/family.ts +646 -0
- package/src/api/design/furniture/index.ts +319 -0
- package/src/api/design/grids.ts +237 -0
- package/src/api/design/index.ts +274 -0
- package/src/api/design/lock.ts +69 -0
- package/src/api/design/materials/index.ts +608 -0
- package/src/api/design/query/geometry/index.ts +288 -0
- package/src/api/design/query/grids.ts +197 -0
- package/src/api/design/query/index.ts +1176 -0
- package/src/api/design/query/referenceLines.ts +52 -0
- package/src/api/design/query/spaces.ts +275 -0
- package/src/api/design/selection/index.ts +273 -0
- package/src/api/design/shared.ts +40 -0
- package/src/api/design/transform/index.ts +254 -0
- package/src/api/design/types/index.ts +156 -0
- package/src/api/design/update/index.ts +798 -0
- package/src/api/design/visibility.ts +143 -0
- package/src/api/design/windows/index.ts +333 -0
- package/src/api/entity/buildableEnvelope.ts +322 -0
- package/src/api/entity/department.ts +0 -0
- package/src/api/entity/index.ts +30 -0
- package/src/api/entity/referenceLine.ts +235 -0
- package/src/api/entity/space.ts +612 -0
- package/src/api/entity/story.ts +517 -0
- package/src/api/index.ts +47 -0
- package/src/api/presentation/aiInspiration.ts +1116 -0
- package/src/api/presentation/annotate.ts +417 -0
- package/src/api/presentation/diagrams.ts +194 -0
- package/src/api/presentation/drawings.ts +529 -0
- package/src/api/presentation/export.ts +133 -0
- package/src/api/presentation/import.ts +159 -0
- package/src/api/presentation/index.ts +129 -0
- package/src/api/presentation/placedViews.ts +1203 -0
- package/src/api/presentation/shapes.ts +274 -0
- package/src/api/presentation/sheets.ts +616 -0
- package/src/api/presentation/slideshow.ts +134 -0
- package/src/api/presentation/tables.ts +84 -0
- package/src/api/presentation/viewPresets.ts +83 -0
- package/src/api/presentation/views.ts +698 -0
- package/src/api/program/adjacency.ts +164 -0
- package/src/api/program/areas.ts +408 -0
- package/src/api/program/classification.ts +138 -0
- package/src/api/program/cores.ts +83 -0
- package/src/api/program/departments.ts +517 -0
- package/src/api/program/index.ts +73 -0
- package/src/api/program/labels.ts +332 -0
- package/src/api/program/layout.ts +422 -0
- package/src/api/program/metadata.ts +364 -0
- package/src/api/program/metrics.ts +120 -0
- package/src/api/program/site.ts +748 -0
- package/src/api/program/spreadsheet.ts +2698 -0
- package/src/api/workspace/index.ts +612 -0
- package/src/errors/codes.ts +136 -0
- package/src/errors/envelope.ts +75 -0
- package/src/errors/index.ts +21 -0
- package/src/errors/plugin-error.ts +134 -0
- package/src/handles.ts +282 -0
- package/src/host-utils.ts +68 -0
- package/src/index.ts +5 -0
- package/src/types.ts +16 -0
- package/test/errors.test.mjs +184 -0
- package/tsconfig.json +22 -0
- package/tsup.config.ts +12 -0
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { PluginApiReturn } from "../../types";
|
|
3
|
+
/**
|
|
4
|
+
* Program site — read the planning context of the project's site/plot.
|
|
5
|
+
*
|
|
6
|
+
* The **site** is the set of plot/parcel footprints the program is planned
|
|
7
|
+
* against: their total area, per-parcel footprints (world XZ plan coordinates
|
|
8
|
+
* in Snaptrude units — the same plan space as a space's `planPoints`), and —
|
|
9
|
+
* when the project is geo-located on terrain — their geographic
|
|
10
|
+
* (latitude/longitude) rings. This is the program-planning view of the site;
|
|
11
|
+
* zoning numbers (FAR/FSI, height limits) live in the Site Analysis sheet and
|
|
12
|
+
* are available through `getSiteAnalysis`, not the site-context reads. One
|
|
13
|
+
* context exception is `listEdges`: it reads each parcel's per-edge
|
|
14
|
+
* front/side/rear classification and effective base setbacks, the same
|
|
15
|
+
* resolution the buildable-envelope setback pills show on canvas.
|
|
16
|
+
*
|
|
17
|
+
* Site context methods are total reads: they return plain records and never
|
|
18
|
+
* throw — `get` returns an empty snapshot (zero totals) when there is no site,
|
|
19
|
+
* and the `list` methods return `[]`. Site Analysis is the exception:
|
|
20
|
+
* `getSiteAnalysis` reads the active proposal's persisted analysis sheet and
|
|
21
|
+
* `updateSiteAnalysis` performs a safe merge/append write to that sheet.
|
|
22
|
+
*
|
|
23
|
+
* Accessed via `snaptrude.program.site`.
|
|
24
|
+
*/
|
|
25
|
+
export declare abstract class PluginProgramSiteApi {
|
|
26
|
+
constructor();
|
|
27
|
+
/**
|
|
28
|
+
* Get a snapshot of the project site.
|
|
29
|
+
*
|
|
30
|
+
* @returns A {@linkcode PluginProgramSiteSnapshot} with the total site area,
|
|
31
|
+
* parcel count, and each parcel's footprint. Empty (zero totals, no
|
|
32
|
+
* parcels) when the project has no site.
|
|
33
|
+
*
|
|
34
|
+
* @examplePrompt What is my total site area?
|
|
35
|
+
* @examplePrompt Give me a summary of the site
|
|
36
|
+
* @examplePrompt How many site parcels are on the canvas?
|
|
37
|
+
* @examplePrompt Show the site footprint and its area
|
|
38
|
+
* @examplePrompt How big is the plot I'm building on?
|
|
39
|
+
*
|
|
40
|
+
* # Example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const site = await snaptrude.program.site.get()
|
|
43
|
+
* console.log(`${site.totalArea} ${site.units} across ${site.polygonCount} parcels`)
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
abstract get(): PluginApiReturn<PluginProgramSiteSnapshot>;
|
|
47
|
+
/**
|
|
48
|
+
* Get just the total site area.
|
|
49
|
+
*
|
|
50
|
+
* A fast single-metric read — the same number as
|
|
51
|
+
* {@linkcode PluginProgramSiteSnapshot.totalArea}, without computing the
|
|
52
|
+
* per-parcel footprints.
|
|
53
|
+
*
|
|
54
|
+
* @returns A {@linkcode PluginProgramSiteAreaResult} with the total `area` and
|
|
55
|
+
* its `units` (`0` when there is no site).
|
|
56
|
+
*
|
|
57
|
+
* @examplePrompt What's the total site area?
|
|
58
|
+
* @examplePrompt How big is my plot in square metres?
|
|
59
|
+
* @examplePrompt Total parcel area on the site
|
|
60
|
+
*
|
|
61
|
+
* # Example
|
|
62
|
+
* ```ts
|
|
63
|
+
* const { area, units } = await snaptrude.program.site.getArea()
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
abstract getArea(): PluginApiReturn<PluginProgramSiteAreaResult>;
|
|
67
|
+
/**
|
|
68
|
+
* List the site parcels with their footprints (world XZ plan coordinates,
|
|
69
|
+
* Snaptrude units).
|
|
70
|
+
*
|
|
71
|
+
* @returns A {@linkcode PluginProgramSiteListPolygonsResult} with each parcel's
|
|
72
|
+
* id, area, label, and 2D footprint (XZ ground-plane points). Empty when the
|
|
73
|
+
* project has no site.
|
|
74
|
+
*
|
|
75
|
+
* @examplePrompt List every site parcel
|
|
76
|
+
* @examplePrompt Show me each plot's footprint
|
|
77
|
+
* @examplePrompt Which site parcels are largest?
|
|
78
|
+
* @examplePrompt Get the boundary points of the site polygons
|
|
79
|
+
*
|
|
80
|
+
* # Example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const { polygons, units } = await snaptrude.program.site.listPolygons()
|
|
83
|
+
* for (const p of polygons) console.log(p.label, p.area, units, p.footprint.length)
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
abstract listPolygons(): PluginApiReturn<PluginProgramSiteListPolygonsResult>;
|
|
87
|
+
/**
|
|
88
|
+
* List each site parcel's boundary edges with their front / side / rear
|
|
89
|
+
* classification — the same per-edge roles the buildable-envelope setback
|
|
90
|
+
* pills show on canvas, so a plugin can pick up the user's edge tagging
|
|
91
|
+
* without asking them to set it up again.
|
|
92
|
+
*
|
|
93
|
+
* Role resolution mirrors the canvas exactly: the user's per-edge overrides
|
|
94
|
+
* (set via the setback pills) win over the tangent heuristic
|
|
95
|
+
* (`roleSource: "override"` vs `"heuristic"`). `"street"` never appears — it
|
|
96
|
+
* resolves to `front`. When a parcel has a linked zoning buildable envelope,
|
|
97
|
+
* `setbackMeters` is the effective base setback of the edge (a per-edge
|
|
98
|
+
* exception when one exists, else the role's value); parcels without a
|
|
99
|
+
* zoning envelope classify by heuristic alone and report
|
|
100
|
+
* `setbackMeters: null`.
|
|
101
|
+
*
|
|
102
|
+
* Coordinates are **world meters** (`lengthUnit: "m"`) — unlike
|
|
103
|
+
* {@linkcode PluginProgramSiteApi.listPolygons} footprints, which are
|
|
104
|
+
* Snaptrude units. `edgeIndex` is keyed to the canonicalized (sanitized,
|
|
105
|
+
* CCW) boundary, the same index space the envelope's `edgeOverrides` use.
|
|
106
|
+
* `staleOverridesDropped: true` means the site was edited after the
|
|
107
|
+
* envelope was configured and the persisted overrides no longer align with
|
|
108
|
+
* the live boundary — the heuristic classification is reported instead.
|
|
109
|
+
*
|
|
110
|
+
* @returns A {@linkcode PluginProgramSiteListEdgesResult} with one entry per
|
|
111
|
+
* parcel. Empty when the project has no site.
|
|
112
|
+
*
|
|
113
|
+
* @examplePrompt Which edge of my site is the front?
|
|
114
|
+
* @examplePrompt Read the front / side / rear edges of the plot
|
|
115
|
+
* @examplePrompt What setback applies to each site edge?
|
|
116
|
+
* @examplePrompt Get the site edges the way the setback pills show them
|
|
117
|
+
*
|
|
118
|
+
* # Example
|
|
119
|
+
* ```ts
|
|
120
|
+
* const { sites } = await snaptrude.program.site.listEdges()
|
|
121
|
+
* for (const site of sites)
|
|
122
|
+
* for (const e of site.edges)
|
|
123
|
+
* console.log(e.edgeIndex, e.role, e.roleSource, e.setbackMeters)
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
abstract listEdges(): PluginApiReturn<PluginProgramSiteListEdgesResult>;
|
|
127
|
+
/**
|
|
128
|
+
* List the site parcels as geographic latitude/longitude rings.
|
|
129
|
+
*
|
|
130
|
+
* Only available when the project is geo-located on terrain; returns `[]` (no
|
|
131
|
+
* rings) otherwise. Use {@linkcode PluginProgramSiteApi.listPolygons} for the
|
|
132
|
+
* world-coordinate footprints that are always available.
|
|
133
|
+
*
|
|
134
|
+
* @returns A {@linkcode PluginProgramSiteListGeoPolygonsResult} with one ring
|
|
135
|
+
* of `{ lat, lng, alt }` points per parcel.
|
|
136
|
+
*
|
|
137
|
+
* @examplePrompt Give me the site polygons in latitude and longitude
|
|
138
|
+
* @examplePrompt Export the plot boundary as geo-coordinates
|
|
139
|
+
* @examplePrompt Where is the site located geographically?
|
|
140
|
+
* @examplePrompt Get the site parcels as lat/long rings
|
|
141
|
+
*
|
|
142
|
+
* # Example
|
|
143
|
+
* ```ts
|
|
144
|
+
* const { polygons } = await snaptrude.program.site.listGeoPolygons()
|
|
145
|
+
* const firstRing = polygons[0] // [{ lat, lng, alt }, ...]
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
abstract listGeoPolygons(): PluginApiReturn<PluginProgramSiteListGeoPolygonsResult>;
|
|
149
|
+
/**
|
|
150
|
+
* Get the geo-referenced terrain context of the site.
|
|
151
|
+
*
|
|
152
|
+
* The map center and bounds, the terrain size in metres, the effective zoom,
|
|
153
|
+
* and each parcel's geographic footprint and area — the context used for site
|
|
154
|
+
* analysis. Returns `null` when the project is not geo-located on terrain.
|
|
155
|
+
*
|
|
156
|
+
* @returns A {@linkcode PluginProgramSiteContext}, or `null`.
|
|
157
|
+
*
|
|
158
|
+
* @examplePrompt What's the site's map center and bounds?
|
|
159
|
+
* @examplePrompt How wide is the terrain in metres?
|
|
160
|
+
* @examplePrompt Give me the parcel geometry and areas
|
|
161
|
+
* @examplePrompt Where is the site located on the map?
|
|
162
|
+
*
|
|
163
|
+
* # Example
|
|
164
|
+
* ```ts
|
|
165
|
+
* const ctx = await snaptrude.program.site.getContext()
|
|
166
|
+
* if (ctx) console.log(ctx.center, ctx.widthInM)
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
abstract getContext(): PluginApiReturn<PluginProgramSiteContextResult>;
|
|
170
|
+
/**
|
|
171
|
+
* Get the project's geographic location.
|
|
172
|
+
*
|
|
173
|
+
* The latitude/longitude the site is geo-located at — the location the
|
|
174
|
+
* `analysis.*` sun and daylight studies compute against. Returns `null`
|
|
175
|
+
* when the project is not geo-located on terrain (there is no fallback
|
|
176
|
+
* location).
|
|
177
|
+
*
|
|
178
|
+
* Note the spelling: this result uses the full `{ latitude, longitude }`
|
|
179
|
+
* keys, while the older site reads
|
|
180
|
+
* ({@linkcode PluginProgramSiteApi.getContext},
|
|
181
|
+
* {@linkcode PluginProgramSiteApi.listGeoPolygons}) use the abbreviated
|
|
182
|
+
* `{ lat, lng }`.
|
|
183
|
+
*
|
|
184
|
+
* @returns A {@linkcode PluginProgramSiteLocationResult} —
|
|
185
|
+
* `{ latitude, longitude }`, or `null` when the project has no
|
|
186
|
+
* geo-located site.
|
|
187
|
+
*
|
|
188
|
+
* @examplePrompt What's the project's latitude and longitude?
|
|
189
|
+
* @examplePrompt Where is this site located?
|
|
190
|
+
* @examplePrompt Get the geographic coordinates of the project
|
|
191
|
+
*
|
|
192
|
+
* # Example
|
|
193
|
+
* ```ts
|
|
194
|
+
* const location = await snaptrude.program.site.getLocation()
|
|
195
|
+
* if (location) console.log(location.latitude, location.longitude)
|
|
196
|
+
* ```
|
|
197
|
+
*/
|
|
198
|
+
abstract getLocation(): PluginApiReturn<PluginProgramSiteLocationResult>;
|
|
199
|
+
/**
|
|
200
|
+
* Get the site's true-north angle.
|
|
201
|
+
*
|
|
202
|
+
* The angle in degrees the model's north (the scene's +Z axis) is rotated
|
|
203
|
+
* from true north, derived from the terrain's rotation. `0` means the
|
|
204
|
+
* model is aligned to true north. Reported in `[0, 360)`,
|
|
205
|
+
* **clockwise-positive** viewed from above (Babylon's +Y rotation sign) —
|
|
206
|
+
* note this is the opposite sign convention to `design.transform.rotate`,
|
|
207
|
+
* where positive = CCW. Returns `null` when the project is not
|
|
208
|
+
* geo-located on terrain.
|
|
209
|
+
*
|
|
210
|
+
* @returns A {@linkcode PluginProgramSiteNorthAngleResult} — the angle in
|
|
211
|
+
* degrees (`[0, 360)`, clockwise-positive), or `null` when the project
|
|
212
|
+
* has no geo-located site.
|
|
213
|
+
*
|
|
214
|
+
* @examplePrompt What's the north angle of the site?
|
|
215
|
+
* @examplePrompt How far is the model rotated from true north?
|
|
216
|
+
* @examplePrompt Get the project's true north direction
|
|
217
|
+
*
|
|
218
|
+
* # Example
|
|
219
|
+
* ```ts
|
|
220
|
+
* const northAngle = await snaptrude.program.site.getNorthAngle()
|
|
221
|
+
* if (northAngle !== null) console.log(`${northAngle}° from true north`)
|
|
222
|
+
* ```
|
|
223
|
+
*/
|
|
224
|
+
abstract getNorthAngle(): PluginApiReturn<PluginProgramSiteNorthAngleResult>;
|
|
225
|
+
/**
|
|
226
|
+
* Get the IANA timezone of the project's geographic location.
|
|
227
|
+
*
|
|
228
|
+
* The timezone identifier (e.g. `"America/New_York"`, `"Asia/Kolkata"`)
|
|
229
|
+
* looked up from the same geo-location
|
|
230
|
+
* {@linkcode PluginProgramSiteApi.getLocation} returns. Returns `null` when
|
|
231
|
+
* the project is not geo-located on terrain.
|
|
232
|
+
*
|
|
233
|
+
* @returns A {@linkcode PluginProgramSiteTimezoneResult} — the IANA timezone
|
|
234
|
+
* id string, or `null` when the project has no geo-located site.
|
|
235
|
+
*
|
|
236
|
+
* @examplePrompt What timezone is this project in?
|
|
237
|
+
* @examplePrompt Get the site's IANA timezone
|
|
238
|
+
* @examplePrompt What's the local time zone at the project location?
|
|
239
|
+
* @examplePrompt Which timezone should I use for the sun study schedule?
|
|
240
|
+
*
|
|
241
|
+
* # Example
|
|
242
|
+
* ```ts
|
|
243
|
+
* const timezone = await snaptrude.program.site.getTimezone()
|
|
244
|
+
* if (timezone) console.log(`Project timezone: ${timezone}`)
|
|
245
|
+
* ```
|
|
246
|
+
*/
|
|
247
|
+
abstract getTimezone(): PluginApiReturn<PluginProgramSiteTimezoneResult>;
|
|
248
|
+
/**
|
|
249
|
+
* Get the weather file resolved for the project site.
|
|
250
|
+
*
|
|
251
|
+
* A lightweight read of the EPW weather file the `analysis.*` sun and
|
|
252
|
+
* daylight studies compute against — its catalog id, station name, content
|
|
253
|
+
* checksum, and how it was selected. This is the same file (same
|
|
254
|
+
* `weatherFileId`) that {@linkcode PluginAnalysisWeatherApi.getSeries} reads
|
|
255
|
+
* rows from and that a daylight run echoes in its provenance. Returns `null`
|
|
256
|
+
* when the project has no geo-located site (no weather file to resolve).
|
|
257
|
+
*
|
|
258
|
+
* @returns A {@linkcode PluginProgramSiteWeatherResult} —
|
|
259
|
+
* `{ weatherFileId, station, checksum, selectionMethod }`, or `null` when
|
|
260
|
+
* the project has no geo-located site.
|
|
261
|
+
*
|
|
262
|
+
* @examplePrompt Which weather file is my project using?
|
|
263
|
+
* @examplePrompt What EPW station was resolved for this site?
|
|
264
|
+
* @examplePrompt Get the weather file id for the daylight analysis
|
|
265
|
+
*
|
|
266
|
+
* # Example
|
|
267
|
+
* ```ts
|
|
268
|
+
* const weather = await snaptrude.program.site.getWeather()
|
|
269
|
+
* if (weather) console.log(weather.station, weather.selectionMethod)
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
abstract getWeather(): PluginApiReturn<PluginProgramSiteWeatherResult>;
|
|
273
|
+
/**
|
|
274
|
+
* Read the persisted Site Analysis sheet for the active proposal.
|
|
275
|
+
*
|
|
276
|
+
* The read works without Program mode open. When a Program tab is open, the
|
|
277
|
+
* host first makes a best-effort attempt to flush its pending edits. The
|
|
278
|
+
* active proposal's sheet is preferred, with the base `"Site Analysis"`
|
|
279
|
+
* sheet as fallback. Returns `null` when no parseable sheet is persisted.
|
|
280
|
+
*
|
|
281
|
+
* @returns The persisted site location, polygon, and constraint rows, or
|
|
282
|
+
* `null` when no Site Analysis data exists. This read never throws.
|
|
283
|
+
*
|
|
284
|
+
* @examplePrompt Read the current Site Analysis sheet
|
|
285
|
+
* @examplePrompt What zoning constraints are recorded for this proposal?
|
|
286
|
+
*
|
|
287
|
+
* # Example
|
|
288
|
+
* ```ts
|
|
289
|
+
* const analysis = await snaptrude.program.site.getSiteAnalysis()
|
|
290
|
+
* if (analysis) console.log(analysis.sheetName, analysis.rows)
|
|
291
|
+
* ```
|
|
292
|
+
*/
|
|
293
|
+
abstract getSiteAnalysis(): PluginApiReturn<PluginProgramSiteAnalysisResult>;
|
|
294
|
+
/**
|
|
295
|
+
* Merge sourced site/zoning constraints into the active proposal's persisted
|
|
296
|
+
* Site Analysis sheet.
|
|
297
|
+
*
|
|
298
|
+
* Rows match by trimmed, case-insensitive Category + Description. Matched
|
|
299
|
+
* rows update only Quantity/Unit; unmatched rows append. Existing labels,
|
|
300
|
+
* formatting, and unrelated rows remain intact. There is deliberately no
|
|
301
|
+
* replace/reset mode — an appended duplicate row can NEVER be removed, so
|
|
302
|
+
* there is no "write now, fix later". Send only the rows that were actually
|
|
303
|
+
* sourced, ALWAYS call `getSiteAnalysis` first and reuse the sheet's exact
|
|
304
|
+
* labels, and never use `program.spreadsheet.setValues` for Site Analysis
|
|
305
|
+
* data — this method is the only correct writer. Check the result:
|
|
306
|
+
* `updatedRows` should account for every row that had a template match; an
|
|
307
|
+
* unexpected `appendedRows` usually means a label did not match the read's
|
|
308
|
+
* vocabulary.
|
|
309
|
+
*
|
|
310
|
+
* When Program mode is open, the host writes through the live sheet. Without
|
|
311
|
+
* a live tab it safely merges the persisted document. The call rejects rather
|
|
312
|
+
* than risk overwriting unflushed live edits or an unparseable existing sheet.
|
|
313
|
+
*
|
|
314
|
+
* @param rows - One or more sourced constraint rows to merge or append.
|
|
315
|
+
* @param options - Optional site location and JSON-encoded site polygon.
|
|
316
|
+
* @returns The target sheet name and merge counts.
|
|
317
|
+
* @throws PRECONDITION_FAILED when proposals exist but none is active, or
|
|
318
|
+
* when live Program edits cannot be flushed safely.
|
|
319
|
+
*
|
|
320
|
+
* @examplePrompt Save these zoning constraints to Site Analysis
|
|
321
|
+
* @examplePrompt Update the FAR and setbacks in the Site Analysis sheet
|
|
322
|
+
*
|
|
323
|
+
* # Example
|
|
324
|
+
* ```ts
|
|
325
|
+
* const result = await snaptrude.program.site.updateSiteAnalysis([
|
|
326
|
+
* { category: "FAR", description: "Floor Area Ratio", quantity: 3.5, unit: "ratio" },
|
|
327
|
+
* { category: "Set backs", description: "Front setbacks", quantity: 6, unit: "m" },
|
|
328
|
+
* ])
|
|
329
|
+
* console.log(result.sheetName, result.updatedRows, result.appendedRows)
|
|
330
|
+
* ```
|
|
331
|
+
*/
|
|
332
|
+
abstract updateSiteAnalysis(rows: PluginSiteAnalysisRow[], options?: PluginSiteAnalysisUpdateOptions): PluginApiReturn<PluginProgramSiteAnalysisUpdateResult>;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* A constraint row stored in the Site Analysis sheet. A `quantity` of `"-"`
|
|
336
|
+
* means the value is not recorded yet — never echo `"-"` back as a sourced
|
|
337
|
+
* value.
|
|
338
|
+
*/
|
|
339
|
+
export declare const PluginSiteAnalysisRow: z.ZodObject<{
|
|
340
|
+
category: z.ZodString;
|
|
341
|
+
description: z.ZodString;
|
|
342
|
+
quantity: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
343
|
+
unit: z.ZodString;
|
|
344
|
+
}, z.core.$strip>;
|
|
345
|
+
export type PluginSiteAnalysisRow = z.infer<typeof PluginSiteAnalysisRow>;
|
|
346
|
+
/**
|
|
347
|
+
* Optional site context persisted alongside Site Analysis constraint rows.
|
|
348
|
+
* `null` and `undefined` are both accepted as "no options".
|
|
349
|
+
*/
|
|
350
|
+
export declare const PluginSiteAnalysisUpdateOptions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
351
|
+
siteLocation: z.ZodOptional<z.ZodObject<{
|
|
352
|
+
lat: z.ZodNumber;
|
|
353
|
+
lng: z.ZodNumber;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
sitePolygon: z.ZodOptional<z.ZodString>;
|
|
356
|
+
}, z.core.$strip>>>;
|
|
357
|
+
export type PluginSiteAnalysisUpdateOptions = z.infer<typeof PluginSiteAnalysisUpdateOptions>;
|
|
358
|
+
/** Persisted Site Analysis data for the active proposal. */
|
|
359
|
+
export declare const PluginProgramSiteAnalysisResult: z.ZodNullable<z.ZodObject<{
|
|
360
|
+
sheetName: z.ZodString;
|
|
361
|
+
siteLocation: z.ZodNullable<z.ZodObject<{
|
|
362
|
+
lat: z.ZodNumber;
|
|
363
|
+
lng: z.ZodNumber;
|
|
364
|
+
}, z.core.$strip>>;
|
|
365
|
+
sitePolygon: z.ZodNullable<z.ZodString>;
|
|
366
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
367
|
+
category: z.ZodString;
|
|
368
|
+
description: z.ZodString;
|
|
369
|
+
quantity: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
370
|
+
unit: z.ZodString;
|
|
371
|
+
}, z.core.$strip>>;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
export type PluginProgramSiteAnalysisResult = z.infer<typeof PluginProgramSiteAnalysisResult>;
|
|
374
|
+
/** Result of a merge/append Site Analysis write. */
|
|
375
|
+
export declare const PluginProgramSiteAnalysisUpdateResult: z.ZodObject<{
|
|
376
|
+
sheetName: z.ZodString;
|
|
377
|
+
rowCount: z.ZodNumber;
|
|
378
|
+
updatedRows: z.ZodNumber;
|
|
379
|
+
appendedRows: z.ZodNumber;
|
|
380
|
+
}, z.core.$strip>;
|
|
381
|
+
export type PluginProgramSiteAnalysisUpdateResult = z.infer<typeof PluginProgramSiteAnalysisUpdateResult>;
|
|
382
|
+
/**
|
|
383
|
+
* A 2D ground-plane point of a site parcel footprint, in world XZ plan
|
|
384
|
+
* coordinates (Snaptrude units) — the same plan space as a space's
|
|
385
|
+
* `planPoints`, so site parcels overlay space footprints directly.
|
|
386
|
+
*
|
|
387
|
+
* | Property | Type | Description |
|
|
388
|
+
* |---|---|---|
|
|
389
|
+
* | `x` | `number` | X coordinate (world, Snaptrude units) |
|
|
390
|
+
* | `z` | `number` | Z coordinate (world, Snaptrude units) |
|
|
391
|
+
*/
|
|
392
|
+
export declare const PluginSiteFootprintPoint: z.ZodObject<{
|
|
393
|
+
x: z.ZodNumber;
|
|
394
|
+
z: z.ZodNumber;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
export type PluginSiteFootprintPoint = z.infer<typeof PluginSiteFootprintPoint>;
|
|
397
|
+
/**
|
|
398
|
+
* A geographic point of a site parcel ring (WGS84).
|
|
399
|
+
*
|
|
400
|
+
* | Property | Type | Description |
|
|
401
|
+
* |---|---|---|
|
|
402
|
+
* | `lat` | `number` | Latitude (degrees) |
|
|
403
|
+
* | `lng` | `number` | Longitude (degrees) |
|
|
404
|
+
* | `alt` | `number` | Altitude (metres) |
|
|
405
|
+
*/
|
|
406
|
+
export declare const PluginSiteGeoPoint: z.ZodObject<{
|
|
407
|
+
lat: z.ZodNumber;
|
|
408
|
+
lng: z.ZodNumber;
|
|
409
|
+
alt: z.ZodNumber;
|
|
410
|
+
}, z.core.$strip>;
|
|
411
|
+
export type PluginSiteGeoPoint = z.infer<typeof PluginSiteGeoPoint>;
|
|
412
|
+
/**
|
|
413
|
+
* A single site parcel/polygon. Its `area` is in the enclosing result's `units`.
|
|
414
|
+
*
|
|
415
|
+
* | Property | Type | Description |
|
|
416
|
+
* |---|---|---|
|
|
417
|
+
* | `id` | `string` | Unique parcel/component id |
|
|
418
|
+
* | `area` | `number` | Footprint area, in the result's `units` |
|
|
419
|
+
* | `label` | `string` | Parcel label / room type (e.g. `"site"`) |
|
|
420
|
+
* | `footprint` | {@linkcode PluginSiteFootprintPoint}`[]` | 2D ground-plane boundary points |
|
|
421
|
+
*/
|
|
422
|
+
export declare const PluginSitePolygon: z.ZodObject<{
|
|
423
|
+
id: z.ZodString;
|
|
424
|
+
area: z.ZodNumber;
|
|
425
|
+
label: z.ZodString;
|
|
426
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
427
|
+
x: z.ZodNumber;
|
|
428
|
+
z: z.ZodNumber;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
}, z.core.$strip>;
|
|
431
|
+
export type PluginSitePolygon = z.infer<typeof PluginSitePolygon>;
|
|
432
|
+
/**
|
|
433
|
+
* Result of {@linkcode PluginProgramSiteApi.get}. Per the area-units convention,
|
|
434
|
+
* `units` sits on this snapshot and every `area` below is reported in it.
|
|
435
|
+
*
|
|
436
|
+
* | Property | Type | Description |
|
|
437
|
+
* |---|---|---|
|
|
438
|
+
* | `units` | `"ft2" \| "m2"` | The unit all areas in this snapshot are reported in |
|
|
439
|
+
* | `totalArea` | `number` | Total area of all site parcels |
|
|
440
|
+
* | `polygonCount` | `number` | Number of site parcels |
|
|
441
|
+
* | `polygons` | {@linkcode PluginSitePolygon}`[]` | Each site parcel with its footprint |
|
|
442
|
+
*/
|
|
443
|
+
export declare const PluginProgramSiteSnapshot: z.ZodObject<{
|
|
444
|
+
units: z.ZodEnum<{
|
|
445
|
+
ft2: "ft2";
|
|
446
|
+
m2: "m2";
|
|
447
|
+
}>;
|
|
448
|
+
totalArea: z.ZodNumber;
|
|
449
|
+
polygonCount: z.ZodNumber;
|
|
450
|
+
polygons: z.ZodArray<z.ZodObject<{
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
area: z.ZodNumber;
|
|
453
|
+
label: z.ZodString;
|
|
454
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
455
|
+
x: z.ZodNumber;
|
|
456
|
+
z: z.ZodNumber;
|
|
457
|
+
}, z.core.$strip>>;
|
|
458
|
+
}, z.core.$strip>>;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
export type PluginProgramSiteSnapshot = z.infer<typeof PluginProgramSiteSnapshot>;
|
|
461
|
+
/**
|
|
462
|
+
* Result of {@linkcode PluginProgramSiteApi.getArea}.
|
|
463
|
+
*
|
|
464
|
+
* | Property | Type | Description |
|
|
465
|
+
* |---|---|---|
|
|
466
|
+
* | `units` | `"ft2" \| "m2"` | The unit `area` is reported in |
|
|
467
|
+
* | `area` | `number` | Total site area |
|
|
468
|
+
*/
|
|
469
|
+
export declare const PluginProgramSiteAreaResult: z.ZodObject<{
|
|
470
|
+
units: z.ZodEnum<{
|
|
471
|
+
ft2: "ft2";
|
|
472
|
+
m2: "m2";
|
|
473
|
+
}>;
|
|
474
|
+
area: z.ZodNumber;
|
|
475
|
+
}, z.core.$strip>;
|
|
476
|
+
export type PluginProgramSiteAreaResult = z.infer<typeof PluginProgramSiteAreaResult>;
|
|
477
|
+
/**
|
|
478
|
+
* Result of {@linkcode PluginProgramSiteApi.listPolygons}. `units` sits on the
|
|
479
|
+
* response; each parcel's `area` is in it.
|
|
480
|
+
*
|
|
481
|
+
* | Property | Type | Description |
|
|
482
|
+
* |---|---|---|
|
|
483
|
+
* | `units` | `"ft2" \| "m2"` | The unit every parcel `area` is reported in |
|
|
484
|
+
* | `polygons` | {@linkcode PluginSitePolygon}`[]` | All site parcels |
|
|
485
|
+
*/
|
|
486
|
+
export declare const PluginProgramSiteListPolygonsResult: z.ZodObject<{
|
|
487
|
+
units: z.ZodEnum<{
|
|
488
|
+
ft2: "ft2";
|
|
489
|
+
m2: "m2";
|
|
490
|
+
}>;
|
|
491
|
+
polygons: z.ZodArray<z.ZodObject<{
|
|
492
|
+
id: z.ZodString;
|
|
493
|
+
area: z.ZodNumber;
|
|
494
|
+
label: z.ZodString;
|
|
495
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
496
|
+
x: z.ZodNumber;
|
|
497
|
+
z: z.ZodNumber;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
}, z.core.$strip>>;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
export type PluginProgramSiteListPolygonsResult = z.infer<typeof PluginProgramSiteListPolygonsResult>;
|
|
502
|
+
/**
|
|
503
|
+
* Result of {@linkcode PluginProgramSiteApi.listGeoPolygons} — one ring of
|
|
504
|
+
* geographic points per parcel (`[]` when the project is not geo-located).
|
|
505
|
+
*
|
|
506
|
+
* | Property | Type | Description |
|
|
507
|
+
* |---|---|---|
|
|
508
|
+
* | `polygons` | {@linkcode PluginSiteGeoPoint}`[][]` | One ring per parcel; each ring is a list of geographic points |
|
|
509
|
+
*/
|
|
510
|
+
export declare const PluginProgramSiteListGeoPolygonsResult: z.ZodObject<{
|
|
511
|
+
polygons: z.ZodArray<z.ZodArray<z.ZodObject<{
|
|
512
|
+
lat: z.ZodNumber;
|
|
513
|
+
lng: z.ZodNumber;
|
|
514
|
+
alt: z.ZodNumber;
|
|
515
|
+
}, z.core.$strip>>>;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
export type PluginProgramSiteListGeoPolygonsResult = z.infer<typeof PluginProgramSiteListGeoPolygonsResult>;
|
|
518
|
+
/**
|
|
519
|
+
* A geographic latitude/longitude point (no altitude).
|
|
520
|
+
*
|
|
521
|
+
* | Property | Type | Description |
|
|
522
|
+
* |---|---|---|
|
|
523
|
+
* | `lat` | `number` | Latitude (degrees) |
|
|
524
|
+
* | `lng` | `number` | Longitude (degrees) |
|
|
525
|
+
*/
|
|
526
|
+
export declare const PluginSiteLatLng: z.ZodObject<{
|
|
527
|
+
lat: z.ZodNumber;
|
|
528
|
+
lng: z.ZodNumber;
|
|
529
|
+
}, z.core.$strip>;
|
|
530
|
+
export type PluginSiteLatLng = z.infer<typeof PluginSiteLatLng>;
|
|
531
|
+
/**
|
|
532
|
+
* Geographic bounds of the site terrain.
|
|
533
|
+
*
|
|
534
|
+
* | Property | Type | Description |
|
|
535
|
+
* |---|---|---|
|
|
536
|
+
* | `north` | `number` | North latitude |
|
|
537
|
+
* | `south` | `number` | South latitude |
|
|
538
|
+
* | `east` | `number` | East longitude |
|
|
539
|
+
* | `west` | `number` | West longitude |
|
|
540
|
+
*/
|
|
541
|
+
export declare const PluginSiteBounds: z.ZodObject<{
|
|
542
|
+
north: z.ZodNumber;
|
|
543
|
+
south: z.ZodNumber;
|
|
544
|
+
east: z.ZodNumber;
|
|
545
|
+
west: z.ZodNumber;
|
|
546
|
+
}, z.core.$strip>;
|
|
547
|
+
export type PluginSiteBounds = z.infer<typeof PluginSiteBounds>;
|
|
548
|
+
/**
|
|
549
|
+
* A site parcel in the terrain context — geographic footprint and area.
|
|
550
|
+
*
|
|
551
|
+
* | Property | Type | Description |
|
|
552
|
+
* |---|---|---|
|
|
553
|
+
* | `footprint` | {@linkcode PluginSiteLatLng}`[]` | Geographic boundary points |
|
|
554
|
+
* | `area` | `number` | Parcel area (project area units) |
|
|
555
|
+
*/
|
|
556
|
+
export declare const PluginSiteContextParcel: z.ZodObject<{
|
|
557
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
558
|
+
lat: z.ZodNumber;
|
|
559
|
+
lng: z.ZodNumber;
|
|
560
|
+
}, z.core.$strip>>;
|
|
561
|
+
area: z.ZodNumber;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
export type PluginSiteContextParcel = z.infer<typeof PluginSiteContextParcel>;
|
|
564
|
+
/**
|
|
565
|
+
* The geo-referenced terrain context of the site.
|
|
566
|
+
*
|
|
567
|
+
* | Property | Type | Description |
|
|
568
|
+
* |---|---|---|
|
|
569
|
+
* | `center` | {@linkcode PluginSiteLatLng} | Map center |
|
|
570
|
+
* | `bounds` | {@linkcode PluginSiteBounds} | Terrain bounds |
|
|
571
|
+
* | `widthInM` | `number` | Terrain width in metres |
|
|
572
|
+
* | `heightInM` | `number` | Terrain height in metres |
|
|
573
|
+
* | `zoom` | `number` | Effective map zoom |
|
|
574
|
+
* | `parcels` | {@linkcode PluginSiteContextParcel}`[]` | Site parcels with geographic footprints |
|
|
575
|
+
*/
|
|
576
|
+
export declare const PluginProgramSiteContext: z.ZodObject<{
|
|
577
|
+
center: z.ZodObject<{
|
|
578
|
+
lat: z.ZodNumber;
|
|
579
|
+
lng: z.ZodNumber;
|
|
580
|
+
}, z.core.$strip>;
|
|
581
|
+
bounds: z.ZodObject<{
|
|
582
|
+
north: z.ZodNumber;
|
|
583
|
+
south: z.ZodNumber;
|
|
584
|
+
east: z.ZodNumber;
|
|
585
|
+
west: z.ZodNumber;
|
|
586
|
+
}, z.core.$strip>;
|
|
587
|
+
widthInM: z.ZodNumber;
|
|
588
|
+
heightInM: z.ZodNumber;
|
|
589
|
+
zoom: z.ZodNumber;
|
|
590
|
+
parcels: z.ZodArray<z.ZodObject<{
|
|
591
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
592
|
+
lat: z.ZodNumber;
|
|
593
|
+
lng: z.ZodNumber;
|
|
594
|
+
}, z.core.$strip>>;
|
|
595
|
+
area: z.ZodNumber;
|
|
596
|
+
}, z.core.$strip>>;
|
|
597
|
+
}, z.core.$strip>;
|
|
598
|
+
export type PluginProgramSiteContext = z.infer<typeof PluginProgramSiteContext>;
|
|
599
|
+
/**
|
|
600
|
+
* Result of {@linkcode PluginProgramSiteApi.getContext} — the terrain context, or
|
|
601
|
+
* `null` when the project is not geo-located.
|
|
602
|
+
*/
|
|
603
|
+
export declare const PluginProgramSiteContextResult: z.ZodNullable<z.ZodObject<{
|
|
604
|
+
center: z.ZodObject<{
|
|
605
|
+
lat: z.ZodNumber;
|
|
606
|
+
lng: z.ZodNumber;
|
|
607
|
+
}, z.core.$strip>;
|
|
608
|
+
bounds: z.ZodObject<{
|
|
609
|
+
north: z.ZodNumber;
|
|
610
|
+
south: z.ZodNumber;
|
|
611
|
+
east: z.ZodNumber;
|
|
612
|
+
west: z.ZodNumber;
|
|
613
|
+
}, z.core.$strip>;
|
|
614
|
+
widthInM: z.ZodNumber;
|
|
615
|
+
heightInM: z.ZodNumber;
|
|
616
|
+
zoom: z.ZodNumber;
|
|
617
|
+
parcels: z.ZodArray<z.ZodObject<{
|
|
618
|
+
footprint: z.ZodArray<z.ZodObject<{
|
|
619
|
+
lat: z.ZodNumber;
|
|
620
|
+
lng: z.ZodNumber;
|
|
621
|
+
}, z.core.$strip>>;
|
|
622
|
+
area: z.ZodNumber;
|
|
623
|
+
}, z.core.$strip>>;
|
|
624
|
+
}, z.core.$strip>>;
|
|
625
|
+
export type PluginProgramSiteContextResult = z.infer<typeof PluginProgramSiteContextResult>;
|
|
626
|
+
/**
|
|
627
|
+
* The project's geographic location (WGS84).
|
|
628
|
+
*
|
|
629
|
+
* | Property | Type | Description |
|
|
630
|
+
* |---|---|---|
|
|
631
|
+
* | `latitude` | `number` | Latitude (degrees) |
|
|
632
|
+
* | `longitude` | `number` | Longitude (degrees) |
|
|
633
|
+
*/
|
|
634
|
+
export declare const PluginProgramSiteLocation: z.ZodObject<{
|
|
635
|
+
latitude: z.ZodNumber;
|
|
636
|
+
longitude: z.ZodNumber;
|
|
637
|
+
}, z.core.$strip>;
|
|
638
|
+
export type PluginProgramSiteLocation = z.infer<typeof PluginProgramSiteLocation>;
|
|
639
|
+
/**
|
|
640
|
+
* Result of {@linkcode PluginProgramSiteApi.getLocation} — the location, or
|
|
641
|
+
* `null` when the project is not geo-located.
|
|
642
|
+
*/
|
|
643
|
+
export declare const PluginProgramSiteLocationResult: z.ZodNullable<z.ZodObject<{
|
|
644
|
+
latitude: z.ZodNumber;
|
|
645
|
+
longitude: z.ZodNumber;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
export type PluginProgramSiteLocationResult = z.infer<typeof PluginProgramSiteLocationResult>;
|
|
648
|
+
/**
|
|
649
|
+
* Result of {@linkcode PluginProgramSiteApi.getNorthAngle} — the true-north
|
|
650
|
+
* angle in degrees (`[0, 360)`, clockwise-positive), or `null` when the
|
|
651
|
+
* project is not geo-located.
|
|
652
|
+
*/
|
|
653
|
+
export declare const PluginProgramSiteNorthAngleResult: z.ZodNullable<z.ZodNumber>;
|
|
654
|
+
export type PluginProgramSiteNorthAngleResult = z.infer<typeof PluginProgramSiteNorthAngleResult>;
|
|
655
|
+
/**
|
|
656
|
+
* Result of {@linkcode PluginProgramSiteApi.getTimezone} — the IANA timezone
|
|
657
|
+
* id of the project's geo-location (e.g. `"Europe/London"`), or `null` when
|
|
658
|
+
* the project is not geo-located.
|
|
659
|
+
*/
|
|
660
|
+
export declare const PluginProgramSiteTimezoneResult: z.ZodNullable<z.ZodString>;
|
|
661
|
+
export type PluginProgramSiteTimezoneResult = z.infer<typeof PluginProgramSiteTimezoneResult>;
|
|
662
|
+
/**
|
|
663
|
+
* A summary of the weather file resolved for the project site. Matches the
|
|
664
|
+
* relevant fields of `analysis.weather`'s `PluginWeatherSourceMeta`;
|
|
665
|
+
* `selectionMethod` is one of `"nearest-station"`, `"user-upload"`, or
|
|
666
|
+
* `"project-override"`.
|
|
667
|
+
*
|
|
668
|
+
* | Property | Type | Description |
|
|
669
|
+
* |---|---|---|
|
|
670
|
+
* | `weatherFileId` | `string` | Catalog id (same key as `core.io.import.epw`) |
|
|
671
|
+
* | `station` | `string` | Station/file name |
|
|
672
|
+
* | `checksum` | `string` | sha256 of the EPW file |
|
|
673
|
+
* | `selectionMethod` | `"nearest-station" \| "user-upload" \| "project-override"` | How the file was matched |
|
|
674
|
+
*/
|
|
675
|
+
export declare const PluginProgramSiteWeather: z.ZodObject<{
|
|
676
|
+
weatherFileId: z.ZodString;
|
|
677
|
+
station: z.ZodString;
|
|
678
|
+
checksum: z.ZodString;
|
|
679
|
+
selectionMethod: z.ZodEnum<{
|
|
680
|
+
"nearest-station": "nearest-station";
|
|
681
|
+
"user-upload": "user-upload";
|
|
682
|
+
"project-override": "project-override";
|
|
683
|
+
}>;
|
|
684
|
+
}, z.core.$strip>;
|
|
685
|
+
export type PluginProgramSiteWeather = z.infer<typeof PluginProgramSiteWeather>;
|
|
686
|
+
/**
|
|
687
|
+
* Result of {@linkcode PluginProgramSiteApi.getWeather} — the resolved weather
|
|
688
|
+
* file summary, or `null` when the project has no geo-located site.
|
|
689
|
+
*/
|
|
690
|
+
export declare const PluginProgramSiteWeatherResult: z.ZodNullable<z.ZodObject<{
|
|
691
|
+
weatherFileId: z.ZodString;
|
|
692
|
+
station: z.ZodString;
|
|
693
|
+
checksum: z.ZodString;
|
|
694
|
+
selectionMethod: z.ZodEnum<{
|
|
695
|
+
"nearest-station": "nearest-station";
|
|
696
|
+
"user-upload": "user-upload";
|
|
697
|
+
"project-override": "project-override";
|
|
698
|
+
}>;
|
|
699
|
+
}, z.core.$strip>>;
|
|
700
|
+
export type PluginProgramSiteWeatherResult = z.infer<typeof PluginProgramSiteWeatherResult>;
|
|
701
|
+
/**
|
|
702
|
+
* Front / side / rear classification of one site-boundary edge. `"street"`
|
|
703
|
+
* never appears — the backend synonym resolves to `front`.
|
|
704
|
+
*/
|
|
705
|
+
export declare const PluginProgramSiteEdgeRole: z.ZodEnum<{
|
|
706
|
+
front: "front";
|
|
707
|
+
side: "side";
|
|
708
|
+
rear: "rear";
|
|
709
|
+
}>;
|
|
710
|
+
export type PluginProgramSiteEdgeRole = z.infer<typeof PluginProgramSiteEdgeRole>;
|
|
711
|
+
/**
|
|
712
|
+
* One boundary edge of a site parcel, as {@linkcode PluginProgramSiteApi.listEdges}
|
|
713
|
+
* returns it. Coordinates and lengths are world meters.
|
|
714
|
+
*
|
|
715
|
+
* | Property | Type | Description |
|
|
716
|
+
* |---|---|---|
|
|
717
|
+
* | `edgeIndex` | `number` | Index in the canonicalized (sanitized, CCW) boundary — the same index space the envelope's `edgeOverrides` use |
|
|
718
|
+
* | `start` / `end` | `{ x, z }` | Edge endpoints, world XZ meters |
|
|
719
|
+
* | `lengthMeters` | `number` | Edge length in meters |
|
|
720
|
+
* | `role` | `"front" \| "side" \| "rear"` | Resolved classification (user override wins over the heuristic) |
|
|
721
|
+
* | `roleSource` | `"override" \| "heuristic"` | Whether the user reassigned this edge's role or the tangent heuristic classified it |
|
|
722
|
+
* | `setbackMeters` | `number \| null` | Effective base setback (per-edge exception ?? role value); `null` when the parcel has no zoning envelope |
|
|
723
|
+
*/
|
|
724
|
+
export declare const PluginProgramSiteEdge: z.ZodObject<{
|
|
725
|
+
edgeIndex: z.ZodNumber;
|
|
726
|
+
start: z.ZodObject<{
|
|
727
|
+
x: z.ZodNumber;
|
|
728
|
+
z: z.ZodNumber;
|
|
729
|
+
}, z.core.$strip>;
|
|
730
|
+
end: z.ZodObject<{
|
|
731
|
+
x: z.ZodNumber;
|
|
732
|
+
z: z.ZodNumber;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
lengthMeters: z.ZodNumber;
|
|
735
|
+
role: z.ZodEnum<{
|
|
736
|
+
front: "front";
|
|
737
|
+
side: "side";
|
|
738
|
+
rear: "rear";
|
|
739
|
+
}>;
|
|
740
|
+
roleSource: z.ZodEnum<{
|
|
741
|
+
override: "override";
|
|
742
|
+
heuristic: "heuristic";
|
|
743
|
+
}>;
|
|
744
|
+
setbackMeters: z.ZodNullable<z.ZodNumber>;
|
|
745
|
+
}, z.core.$strip>;
|
|
746
|
+
export type PluginProgramSiteEdge = z.infer<typeof PluginProgramSiteEdge>;
|
|
747
|
+
/**
|
|
748
|
+
* Per-parcel entry of {@linkcode PluginProgramSiteApi.listEdges}.
|
|
749
|
+
*
|
|
750
|
+
* | Property | Type | Description |
|
|
751
|
+
* |---|---|---|
|
|
752
|
+
* | `siteId` | `string` | The parcel's component id (same id space as `listPolygons`) |
|
|
753
|
+
* | `buildableEnvelopeId` | `string \| null` | Linked zoning envelope, when one exists |
|
|
754
|
+
* | `usingLiveSiteBoundary` | `boolean` | `true` when edges come from the live site boundary; `false` when only the envelope's persisted source polygon was resolvable |
|
|
755
|
+
* | `staleOverridesDropped` | `boolean` | `true` when persisted edge overrides no longer index-align with the live boundary and were ignored |
|
|
756
|
+
* | `edges` | `PluginProgramSiteEdge[]` | The classified boundary edges |
|
|
757
|
+
*/
|
|
758
|
+
export declare const PluginProgramSiteEdgesEntry: z.ZodObject<{
|
|
759
|
+
siteId: z.ZodString;
|
|
760
|
+
buildableEnvelopeId: z.ZodNullable<z.ZodString>;
|
|
761
|
+
usingLiveSiteBoundary: z.ZodBoolean;
|
|
762
|
+
staleOverridesDropped: z.ZodBoolean;
|
|
763
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
764
|
+
edgeIndex: z.ZodNumber;
|
|
765
|
+
start: z.ZodObject<{
|
|
766
|
+
x: z.ZodNumber;
|
|
767
|
+
z: z.ZodNumber;
|
|
768
|
+
}, z.core.$strip>;
|
|
769
|
+
end: z.ZodObject<{
|
|
770
|
+
x: z.ZodNumber;
|
|
771
|
+
z: z.ZodNumber;
|
|
772
|
+
}, z.core.$strip>;
|
|
773
|
+
lengthMeters: z.ZodNumber;
|
|
774
|
+
role: z.ZodEnum<{
|
|
775
|
+
front: "front";
|
|
776
|
+
side: "side";
|
|
777
|
+
rear: "rear";
|
|
778
|
+
}>;
|
|
779
|
+
roleSource: z.ZodEnum<{
|
|
780
|
+
override: "override";
|
|
781
|
+
heuristic: "heuristic";
|
|
782
|
+
}>;
|
|
783
|
+
setbackMeters: z.ZodNullable<z.ZodNumber>;
|
|
784
|
+
}, z.core.$strip>>;
|
|
785
|
+
}, z.core.$strip>;
|
|
786
|
+
export type PluginProgramSiteEdgesEntry = z.infer<typeof PluginProgramSiteEdgesEntry>;
|
|
787
|
+
/**
|
|
788
|
+
* Result of {@linkcode PluginProgramSiteApi.listEdges} — one entry per site
|
|
789
|
+
* parcel; empty when the project has no site. `lengthUnit` is always `"m"`.
|
|
790
|
+
*/
|
|
791
|
+
export declare const PluginProgramSiteListEdgesResult: z.ZodObject<{
|
|
792
|
+
lengthUnit: z.ZodLiteral<"m">;
|
|
793
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
794
|
+
siteId: z.ZodString;
|
|
795
|
+
buildableEnvelopeId: z.ZodNullable<z.ZodString>;
|
|
796
|
+
usingLiveSiteBoundary: z.ZodBoolean;
|
|
797
|
+
staleOverridesDropped: z.ZodBoolean;
|
|
798
|
+
edges: z.ZodArray<z.ZodObject<{
|
|
799
|
+
edgeIndex: z.ZodNumber;
|
|
800
|
+
start: z.ZodObject<{
|
|
801
|
+
x: z.ZodNumber;
|
|
802
|
+
z: z.ZodNumber;
|
|
803
|
+
}, z.core.$strip>;
|
|
804
|
+
end: z.ZodObject<{
|
|
805
|
+
x: z.ZodNumber;
|
|
806
|
+
z: z.ZodNumber;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
lengthMeters: z.ZodNumber;
|
|
809
|
+
role: z.ZodEnum<{
|
|
810
|
+
front: "front";
|
|
811
|
+
side: "side";
|
|
812
|
+
rear: "rear";
|
|
813
|
+
}>;
|
|
814
|
+
roleSource: z.ZodEnum<{
|
|
815
|
+
override: "override";
|
|
816
|
+
heuristic: "heuristic";
|
|
817
|
+
}>;
|
|
818
|
+
setbackMeters: z.ZodNullable<z.ZodNumber>;
|
|
819
|
+
}, z.core.$strip>>;
|
|
820
|
+
}, z.core.$strip>>;
|
|
821
|
+
}, z.core.$strip>;
|
|
822
|
+
export type PluginProgramSiteListEdgesResult = z.infer<typeof PluginProgramSiteListEdgesResult>;
|
|
823
|
+
//# sourceMappingURL=site.d.ts.map
|