@honua/react 0.0.20-alpha.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/LICENSE +201 -0
- package/README.md +9 -0
- package/contract/analytics-sources.d.ts +149 -0
- package/contract/analytics-sources.d.ts.map +1 -0
- package/contract/analytics-sources.js +235 -0
- package/contract/edit-session.d.ts +203 -0
- package/contract/edit-session.d.ts.map +1 -0
- package/contract/edit-session.js +760 -0
- package/contract/edit-sketch.d.ts +91 -0
- package/contract/edit-sketch.d.ts.map +1 -0
- package/contract/edit-sketch.js +281 -0
- package/contract/index.d.ts +61 -0
- package/contract/index.d.ts.map +1 -0
- package/contract/index.js +51 -0
- package/contract/jobs.d.ts +149 -0
- package/contract/jobs.d.ts.map +1 -0
- package/contract/jobs.js +40 -0
- package/contract/source.d.ts +423 -0
- package/contract/source.d.ts.map +1 -0
- package/contract/source.js +3802 -0
- package/contract/spatial-aggregation.d.ts +336 -0
- package/contract/spatial-aggregation.d.ts.map +1 -0
- package/contract/spatial-aggregation.js +298 -0
- package/contract/temporal.d.ts +455 -0
- package/contract/temporal.d.ts.map +1 -0
- package/contract/temporal.js +146 -0
- package/contract/tiles.d.ts +370 -0
- package/contract/tiles.d.ts.map +1 -0
- package/contract/tiles.js +519 -0
- package/contract/types.d.ts +665 -0
- package/contract/types.d.ts.map +1 -0
- package/contract/types.js +175 -0
- package/contract/widget-source.d.ts +205 -0
- package/contract/widget-source.d.ts.map +1 -0
- package/contract/widget-source.js +1473 -0
- package/control-plane/client.d.ts +95 -0
- package/control-plane/client.d.ts.map +1 -0
- package/control-plane/client.js +374 -0
- package/control-plane/index.d.ts +18 -0
- package/control-plane/index.d.ts.map +1 -0
- package/control-plane/index.js +14 -0
- package/control-plane/types.d.ts +233 -0
- package/control-plane/types.d.ts.map +1 -0
- package/control-plane/types.js +7 -0
- package/core/batch.d.ts +37 -0
- package/core/batch.d.ts.map +1 -0
- package/core/batch.js +79 -0
- package/core/cache-state.d.ts +79 -0
- package/core/cache-state.d.ts.map +1 -0
- package/core/cache-state.js +87 -0
- package/core/client.d.ts +577 -0
- package/core/client.d.ts.map +1 -0
- package/core/client.js +1664 -0
- package/core/compatibility.d.ts +18 -0
- package/core/compatibility.d.ts.map +1 -0
- package/core/compatibility.js +245 -0
- package/core/errors.d.ts +107 -0
- package/core/errors.d.ts.map +1 -0
- package/core/errors.js +156 -0
- package/core/esri-geojson.d.ts +66 -0
- package/core/esri-geojson.d.ts.map +1 -0
- package/core/esri-geojson.js +363 -0
- package/core/geoservices.d.ts +34 -0
- package/core/geoservices.d.ts.map +1 -0
- package/core/geoservices.js +434 -0
- package/core/grpc-adapter.d.ts +23 -0
- package/core/grpc-adapter.d.ts.map +1 -0
- package/core/grpc-adapter.js +688 -0
- package/core/odata.d.ts +347 -0
- package/core/odata.d.ts.map +1 -0
- package/core/odata.js +913 -0
- package/core/ogc-conformance.d.ts +35 -0
- package/core/ogc-conformance.d.ts.map +1 -0
- package/core/ogc-conformance.js +134 -0
- package/core/ogc-features.d.ts +23 -0
- package/core/ogc-features.d.ts.map +1 -0
- package/core/ogc-features.js +114 -0
- package/core/ogc-maps.d.ts +49 -0
- package/core/ogc-maps.d.ts.map +1 -0
- package/core/ogc-maps.js +126 -0
- package/core/ogc-processes.d.ts +118 -0
- package/core/ogc-processes.d.ts.map +1 -0
- package/core/ogc-processes.js +423 -0
- package/core/ogc-records.d.ts +75 -0
- package/core/ogc-records.d.ts.map +1 -0
- package/core/ogc-records.js +251 -0
- package/core/ogc-tiles.d.ts +125 -0
- package/core/ogc-tiles.d.ts.map +1 -0
- package/core/ogc-tiles.js +183 -0
- package/core/path-utils.d.ts +69 -0
- package/core/path-utils.d.ts.map +1 -0
- package/core/path-utils.js +123 -0
- package/core/pbf-decoder.d.ts +39 -0
- package/core/pbf-decoder.d.ts.map +1 -0
- package/core/pbf-decoder.js +702 -0
- package/core/process-runner.d.ts +104 -0
- package/core/process-runner.d.ts.map +1 -0
- package/core/process-runner.js +315 -0
- package/core/protocol-transport.d.ts +76 -0
- package/core/protocol-transport.d.ts.map +1 -0
- package/core/protocol-transport.js +15 -0
- package/core/query-builder.d.ts +261 -0
- package/core/query-builder.d.ts.map +1 -0
- package/core/query-builder.js +538 -0
- package/core/request-pipeline.d.ts +88 -0
- package/core/request-pipeline.d.ts.map +1 -0
- package/core/request-pipeline.js +273 -0
- package/core/spatial-filter.d.ts +93 -0
- package/core/spatial-filter.d.ts.map +1 -0
- package/core/spatial-filter.js +153 -0
- package/core/stac.d.ts +55 -0
- package/core/stac.d.ts.map +1 -0
- package/core/stac.js +229 -0
- package/core/surfaces.d.ts +527 -0
- package/core/surfaces.d.ts.map +1 -0
- package/core/surfaces.js +1917 -0
- package/core/terrain-elevation.d.ts +114 -0
- package/core/terrain-elevation.d.ts.map +1 -0
- package/core/terrain-elevation.js +150 -0
- package/core/types.d.ts +1355 -0
- package/core/types.d.ts.map +1 -0
- package/core/types.js +13 -0
- package/core/wfs-capabilities.d.ts +143 -0
- package/core/wfs-capabilities.d.ts.map +1 -0
- package/core/wfs-capabilities.js +478 -0
- package/core/wfs-filter.d.ts +118 -0
- package/core/wfs-filter.d.ts.map +1 -0
- package/core/wfs-filter.js +634 -0
- package/core/wfs.d.ts +219 -0
- package/core/wfs.d.ts.map +1 -0
- package/core/wfs.js +406 -0
- package/core/wire-shared.d.ts +32 -0
- package/core/wire-shared.d.ts.map +1 -0
- package/core/wire-shared.js +76 -0
- package/core/wms-axis.d.ts +36 -0
- package/core/wms-axis.d.ts.map +1 -0
- package/core/wms-axis.js +73 -0
- package/core/wms-capabilities.d.ts +110 -0
- package/core/wms-capabilities.d.ts.map +1 -0
- package/core/wms-capabilities.js +559 -0
- package/core/wms-types.d.ts +128 -0
- package/core/wms-types.d.ts.map +1 -0
- package/core/wms-types.js +32 -0
- package/core/wms.d.ts +144 -0
- package/core/wms.d.ts.map +1 -0
- package/core/wms.js +338 -0
- package/core/wmts-capabilities.d.ts +82 -0
- package/core/wmts-capabilities.d.ts.map +1 -0
- package/core/wmts-capabilities.js +402 -0
- package/core/wmts.d.ts +103 -0
- package/core/wmts.d.ts.map +1 -0
- package/core/wmts.js +332 -0
- package/core/xml-text.d.ts +20 -0
- package/core/xml-text.d.ts.map +1 -0
- package/core/xml-text.js +85 -0
- package/esri-compat/basemap-gallery.d.ts +38 -0
- package/esri-compat/basemap-gallery.d.ts.map +1 -0
- package/esri-compat/basemap-gallery.js +159 -0
- package/esri-compat/basemap-layer-list.d.ts +35 -0
- package/esri-compat/basemap-layer-list.d.ts.map +1 -0
- package/esri-compat/basemap-layer-list.js +139 -0
- package/esri-compat/basemap.d.ts +32 -0
- package/esri-compat/basemap.d.ts.map +1 -0
- package/esri-compat/basemap.js +84 -0
- package/esri-compat/bookmarks.d.ts +36 -0
- package/esri-compat/bookmarks.d.ts.map +1 -0
- package/esri-compat/bookmarks.js +108 -0
- package/esri-compat/class-breaks-renderer.d.ts +50 -0
- package/esri-compat/class-breaks-renderer.d.ts.map +1 -0
- package/esri-compat/class-breaks-renderer.js +164 -0
- package/esri-compat/color.d.ts +22 -0
- package/esri-compat/color.d.ts.map +1 -0
- package/esri-compat/color.js +106 -0
- package/esri-compat/controls.d.ts +174 -0
- package/esri-compat/controls.d.ts.map +1 -0
- package/esri-compat/controls.js +479 -0
- package/esri-compat/coordinate-conversion.d.ts +41 -0
- package/esri-compat/coordinate-conversion.d.ts.map +1 -0
- package/esri-compat/coordinate-conversion.js +125 -0
- package/esri-compat/directions.d.ts +45 -0
- package/esri-compat/directions.d.ts.map +1 -0
- package/esri-compat/directions.js +123 -0
- package/esri-compat/editor.d.ts +47 -0
- package/esri-compat/editor.d.ts.map +1 -0
- package/esri-compat/editor.js +170 -0
- package/esri-compat/esri-config.d.ts +16 -0
- package/esri-compat/esri-config.d.ts.map +1 -0
- package/esri-compat/esri-config.js +23 -0
- package/esri-compat/esri-request.d.ts +17 -0
- package/esri-compat/esri-request.d.ts.map +1 -0
- package/esri-compat/esri-request.js +127 -0
- package/esri-compat/event-bus.d.ts +106 -0
- package/esri-compat/event-bus.d.ts.map +1 -0
- package/esri-compat/event-bus.js +90 -0
- package/esri-compat/expand.d.ts +36 -0
- package/esri-compat/expand.d.ts.map +1 -0
- package/esri-compat/expand.js +97 -0
- package/esri-compat/extent.d.ts +43 -0
- package/esri-compat/extent.d.ts.map +1 -0
- package/esri-compat/extent.js +140 -0
- package/esri-compat/feature-filter.d.ts +55 -0
- package/esri-compat/feature-filter.d.ts.map +1 -0
- package/esri-compat/feature-filter.js +109 -0
- package/esri-compat/feature-form.d.ts +64 -0
- package/esri-compat/feature-form.d.ts.map +1 -0
- package/esri-compat/feature-form.js +137 -0
- package/esri-compat/feature-layer.d.ts +173 -0
- package/esri-compat/feature-layer.d.ts.map +1 -0
- package/esri-compat/feature-layer.js +661 -0
- package/esri-compat/feature-set.d.ts +32 -0
- package/esri-compat/feature-set.d.ts.map +1 -0
- package/esri-compat/feature-set.js +80 -0
- package/esri-compat/feature-table.d.ts +141 -0
- package/esri-compat/feature-table.d.ts.map +1 -0
- package/esri-compat/feature-table.js +500 -0
- package/esri-compat/feature-templates.d.ts +41 -0
- package/esri-compat/feature-templates.d.ts.map +1 -0
- package/esri-compat/feature-templates.js +97 -0
- package/esri-compat/feature.d.ts +33 -0
- package/esri-compat/feature.d.ts.map +1 -0
- package/esri-compat/feature.js +83 -0
- package/esri-compat/geojson-layer.d.ts +86 -0
- package/esri-compat/geojson-layer.d.ts.map +1 -0
- package/esri-compat/geojson-layer.js +191 -0
- package/esri-compat/geometry-engine.d.ts +107 -0
- package/esri-compat/geometry-engine.d.ts.map +1 -0
- package/esri-compat/geometry-engine.js +266 -0
- package/esri-compat/graphic.d.ts +46 -0
- package/esri-compat/graphic.d.ts.map +1 -0
- package/esri-compat/graphic.js +103 -0
- package/esri-compat/graphics-layer.d.ts +49 -0
- package/esri-compat/graphics-layer.d.ts.map +1 -0
- package/esri-compat/graphics-layer.js +185 -0
- package/esri-compat/group-layer.d.ts +48 -0
- package/esri-compat/group-layer.d.ts.map +1 -0
- package/esri-compat/group-layer.js +212 -0
- package/esri-compat/identify.d.ts +71 -0
- package/esri-compat/identify.d.ts.map +1 -0
- package/esri-compat/identify.js +299 -0
- package/esri-compat/identity-manager.d.ts +31 -0
- package/esri-compat/identity-manager.d.ts.map +1 -0
- package/esri-compat/identity-manager.js +115 -0
- package/esri-compat/imagery-layer.d.ts +78 -0
- package/esri-compat/imagery-layer.d.ts.map +1 -0
- package/esri-compat/imagery-layer.js +167 -0
- package/esri-compat/label-class.d.ts +31 -0
- package/esri-compat/label-class.d.ts.map +1 -0
- package/esri-compat/label-class.js +102 -0
- package/esri-compat/layer-list.d.ts +77 -0
- package/esri-compat/layer-list.d.ts.map +1 -0
- package/esri-compat/layer-list.js +342 -0
- package/esri-compat/legend.d.ts +53 -0
- package/esri-compat/legend.d.ts.map +1 -0
- package/esri-compat/legend.js +254 -0
- package/esri-compat/map-image-layer.d.ts +162 -0
- package/esri-compat/map-image-layer.d.ts.map +1 -0
- package/esri-compat/map-image-layer.js +709 -0
- package/esri-compat/map-view.d.ts +323 -0
- package/esri-compat/map-view.d.ts.map +1 -0
- package/esri-compat/map-view.js +1175 -0
- package/esri-compat/map.d.ts +47 -0
- package/esri-compat/map.d.ts.map +1 -0
- package/esri-compat/map.js +209 -0
- package/esri-compat/measurement-2d.d.ts +61 -0
- package/esri-compat/measurement-2d.d.ts.map +1 -0
- package/esri-compat/measurement-2d.js +184 -0
- package/esri-compat/measurement.d.ts +45 -0
- package/esri-compat/measurement.d.ts.map +1 -0
- package/esri-compat/measurement.js +193 -0
- package/esri-compat/oauth-info.d.ts +35 -0
- package/esri-compat/oauth-info.d.ts.map +1 -0
- package/esri-compat/oauth-info.js +115 -0
- package/esri-compat/picture-marker-symbol.d.ts +35 -0
- package/esri-compat/picture-marker-symbol.d.ts.map +1 -0
- package/esri-compat/picture-marker-symbol.js +126 -0
- package/esri-compat/point.d.ts +31 -0
- package/esri-compat/point.d.ts.map +1 -0
- package/esri-compat/point.js +102 -0
- package/esri-compat/polygon.d.ts +31 -0
- package/esri-compat/polygon.d.ts.map +1 -0
- package/esri-compat/polygon.js +107 -0
- package/esri-compat/polyline.d.ts +31 -0
- package/esri-compat/polyline.d.ts.map +1 -0
- package/esri-compat/polyline.js +107 -0
- package/esri-compat/popup-template.d.ts +55 -0
- package/esri-compat/popup-template.d.ts.map +1 -0
- package/esri-compat/popup-template.js +128 -0
- package/esri-compat/popup.d.ts +54 -0
- package/esri-compat/popup.d.ts.map +1 -0
- package/esri-compat/popup.js +312 -0
- package/esri-compat/print.d.ts +47 -0
- package/esri-compat/print.d.ts.map +1 -0
- package/esri-compat/print.js +105 -0
- package/esri-compat/query.d.ts +58 -0
- package/esri-compat/query.d.ts.map +1 -0
- package/esri-compat/query.js +128 -0
- package/esri-compat/reactive-utils.d.ts +24 -0
- package/esri-compat/reactive-utils.d.ts.map +1 -0
- package/esri-compat/reactive-utils.js +193 -0
- package/esri-compat/request.d.ts +41 -0
- package/esri-compat/request.d.ts.map +1 -0
- package/esri-compat/request.js +253 -0
- package/esri-compat/route-layer.d.ts +59 -0
- package/esri-compat/route-layer.d.ts.map +1 -0
- package/esri-compat/route-layer.js +223 -0
- package/esri-compat/route-task.d.ts +88 -0
- package/esri-compat/route-task.d.ts.map +1 -0
- package/esri-compat/route-task.js +225 -0
- package/esri-compat/scene-view.d.ts +41 -0
- package/esri-compat/scene-view.d.ts.map +1 -0
- package/esri-compat/scene-view.js +68 -0
- package/esri-compat/search.d.ts +112 -0
- package/esri-compat/search.d.ts.map +1 -0
- package/esri-compat/search.js +820 -0
- package/esri-compat/simple-fill-symbol.d.ts +27 -0
- package/esri-compat/simple-fill-symbol.d.ts.map +1 -0
- package/esri-compat/simple-fill-symbol.js +85 -0
- package/esri-compat/simple-line-symbol.d.ts +27 -0
- package/esri-compat/simple-line-symbol.d.ts.map +1 -0
- package/esri-compat/simple-line-symbol.js +85 -0
- package/esri-compat/simple-marker-symbol.d.ts +29 -0
- package/esri-compat/simple-marker-symbol.d.ts.map +1 -0
- package/esri-compat/simple-marker-symbol.js +92 -0
- package/esri-compat/simple-renderer.d.ts +29 -0
- package/esri-compat/simple-renderer.d.ts.map +1 -0
- package/esri-compat/simple-renderer.js +92 -0
- package/esri-compat/sketch.d.ts +64 -0
- package/esri-compat/sketch.d.ts.map +1 -0
- package/esri-compat/sketch.js +227 -0
- package/esri-compat/spatial-reference.d.ts +31 -0
- package/esri-compat/spatial-reference.d.ts.map +1 -0
- package/esri-compat/spatial-reference.js +102 -0
- package/esri-compat/swipe.d.ts +34 -0
- package/esri-compat/swipe.d.ts.map +1 -0
- package/esri-compat/swipe.js +93 -0
- package/esri-compat/table-list.d.ts +36 -0
- package/esri-compat/table-list.d.ts.map +1 -0
- package/esri-compat/table-list.js +126 -0
- package/esri-compat/text-symbol.d.ts +37 -0
- package/esri-compat/text-symbol.d.ts.map +1 -0
- package/esri-compat/text-symbol.js +123 -0
- package/esri-compat/tile-layer.d.ts +52 -0
- package/esri-compat/tile-layer.d.ts.map +1 -0
- package/esri-compat/tile-layer.js +168 -0
- package/esri-compat/time-slider.d.ts +70 -0
- package/esri-compat/time-slider.d.ts.map +1 -0
- package/esri-compat/time-slider.js +208 -0
- package/esri-compat/track.d.ts +51 -0
- package/esri-compat/track.d.ts.map +1 -0
- package/esri-compat/track.js +174 -0
- package/esri-compat/unique-value-renderer.d.ts +41 -0
- package/esri-compat/unique-value-renderer.d.ts.map +1 -0
- package/esri-compat/unique-value-renderer.js +127 -0
- package/esri-compat/url.d.ts +13 -0
- package/esri-compat/url.d.ts.map +1 -0
- package/esri-compat/url.js +68 -0
- package/esri-compat/vector-tile-layer.d.ts +47 -0
- package/esri-compat/vector-tile-layer.d.ts.map +1 -0
- package/esri-compat/vector-tile-layer.js +130 -0
- package/esri-compat/web-map.d.ts +14 -0
- package/esri-compat/web-map.d.ts.map +1 -0
- package/esri-compat/web-map.js +24 -0
- package/esri-compat/wfs-layer.d.ts +64 -0
- package/esri-compat/wfs-layer.d.ts.map +1 -0
- package/esri-compat/wfs-layer.js +145 -0
- package/esri-compat/wms-layer.d.ts +76 -0
- package/esri-compat/wms-layer.d.ts.map +1 -0
- package/esri-compat/wms-layer.js +157 -0
- package/exploration/context.d.ts +25 -0
- package/exploration/context.d.ts.map +1 -0
- package/exploration/context.js +396 -0
- package/exploration/index.d.ts +27 -0
- package/exploration/index.d.ts.map +1 -0
- package/exploration/index.js +24 -0
- package/exploration/presets.d.ts +27 -0
- package/exploration/presets.d.ts.map +1 -0
- package/exploration/presets.js +114 -0
- package/exploration/reducer.d.ts +23 -0
- package/exploration/reducer.d.ts.map +1 -0
- package/exploration/reducer.js +332 -0
- package/exploration/selection.d.ts +25 -0
- package/exploration/selection.d.ts.map +1 -0
- package/exploration/selection.js +34 -0
- package/exploration/selectors.d.ts +56 -0
- package/exploration/selectors.d.ts.map +1 -0
- package/exploration/selectors.js +110 -0
- package/exploration/types.d.ts +294 -0
- package/exploration/types.d.ts.map +1 -0
- package/exploration/types.js +33 -0
- package/expr/expression.d.ts +457 -0
- package/expr/expression.d.ts.map +1 -0
- package/expr/expression.js +663 -0
- package/expr/index.d.ts +32 -0
- package/expr/index.d.ts.map +1 -0
- package/expr/index.js +30 -0
- package/gen/honua/v1/feature_service_pb.d.ts +918 -0
- package/gen/honua/v1/feature_service_pb.d.ts.map +1 -0
- package/gen/honua/v1/feature_service_pb.js +375 -0
- package/generated-app/errors.d.ts +41 -0
- package/generated-app/errors.d.ts.map +1 -0
- package/generated-app/errors.js +41 -0
- package/generated-app/index.d.ts +17 -0
- package/generated-app/index.d.ts.map +1 -0
- package/generated-app/index.js +12 -0
- package/generated-app/manifest.d.ts +183 -0
- package/generated-app/manifest.d.ts.map +1 -0
- package/generated-app/manifest.js +14 -0
- package/generated-app/projection.d.ts +44 -0
- package/generated-app/projection.d.ts.map +1 -0
- package/generated-app/projection.js +234 -0
- package/generated-app/runtime.d.ts +215 -0
- package/generated-app/runtime.d.ts.map +1 -0
- package/generated-app/runtime.js +1196 -0
- package/interactions/detail-model.d.ts +54 -0
- package/interactions/detail-model.d.ts.map +1 -0
- package/interactions/detail-model.js +105 -0
- package/interactions/exploration-bindings.d.ts +120 -0
- package/interactions/exploration-bindings.d.ts.map +1 -0
- package/interactions/exploration-bindings.js +218 -0
- package/interactions/feature-state.d.ts +144 -0
- package/interactions/feature-state.d.ts.map +1 -0
- package/interactions/feature-state.js +169 -0
- package/interactions/hit-test.d.ts +112 -0
- package/interactions/hit-test.d.ts.map +1 -0
- package/interactions/hit-test.js +291 -0
- package/interactions/index.d.ts +31 -0
- package/interactions/index.d.ts.map +1 -0
- package/interactions/index.js +24 -0
- package/interactions/share-state.d.ts +36 -0
- package/interactions/share-state.d.ts.map +1 -0
- package/interactions/share-state.js +123 -0
- package/map/feature-service-adapter.d.ts +138 -0
- package/map/feature-service-adapter.d.ts.map +1 -0
- package/map/feature-service-adapter.js +279 -0
- package/map/honua-map.d.ts +203 -0
- package/map/honua-map.d.ts.map +1 -0
- package/map/honua-map.js +347 -0
- package/map/index.d.ts +27 -0
- package/map/index.d.ts.map +1 -0
- package/map/index.js +22 -0
- package/map/maplibre-target.d.ts +103 -0
- package/map/maplibre-target.d.ts.map +1 -0
- package/map/maplibre-target.js +164 -0
- package/map/webmap-maplibre.d.ts +60 -0
- package/map/webmap-maplibre.d.ts.map +1 -0
- package/map/webmap-maplibre.js +212 -0
- package/package.json +37 -0
- package/react/context.d.ts +32 -0
- package/react/context.d.ts.map +1 -0
- package/react/context.js +19 -0
- package/react/honua-layer.d.ts +35 -0
- package/react/honua-layer.d.ts.map +1 -0
- package/react/honua-layer.js +47 -0
- package/react/honua-map.d.ts +83 -0
- package/react/honua-map.d.ts.map +1 -0
- package/react/honua-map.js +109 -0
- package/react/honua-popup.d.ts +26 -0
- package/react/honua-popup.d.ts.map +1 -0
- package/react/honua-popup.js +34 -0
- package/react/hooks.d.ts +127 -0
- package/react/hooks.d.ts.map +1 -0
- package/react/hooks.js +206 -0
- package/react/index.d.ts +42 -0
- package/react/index.d.ts.map +1 -0
- package/react/index.js +34 -0
- package/react/provider.d.ts +36 -0
- package/react/provider.d.ts.map +1 -0
- package/react/provider.js +35 -0
- package/react/query-cache.d.ts +76 -0
- package/react/query-cache.d.ts.map +1 -0
- package/react/query-cache.js +188 -0
- package/runtime/diff.d.ts +31 -0
- package/runtime/diff.d.ts.map +1 -0
- package/runtime/diff.js +143 -0
- package/runtime/errors.d.ts +40 -0
- package/runtime/errors.d.ts.map +1 -0
- package/runtime/errors.js +35 -0
- package/runtime/index.d.ts +59 -0
- package/runtime/index.d.ts.map +1 -0
- package/runtime/index.js +43 -0
- package/runtime/legend.d.ts +23 -0
- package/runtime/legend.d.ts.map +1 -0
- package/runtime/legend.js +38 -0
- package/runtime/load-package.d.ts +125 -0
- package/runtime/load-package.d.ts.map +1 -0
- package/runtime/load-package.js +264 -0
- package/runtime/map-package-fetch.d.ts +107 -0
- package/runtime/map-package-fetch.d.ts.map +1 -0
- package/runtime/map-package-fetch.js +336 -0
- package/runtime/map-package-realtime.d.ts +169 -0
- package/runtime/map-package-realtime.d.ts.map +1 -0
- package/runtime/map-package-realtime.js +350 -0
- package/runtime/map-package-validation.d.ts +43 -0
- package/runtime/map-package-validation.d.ts.map +1 -0
- package/runtime/map-package-validation.js +269 -0
- package/runtime/map-package-watch.d.ts +78 -0
- package/runtime/map-package-watch.d.ts.map +1 -0
- package/runtime/map-package-watch.js +695 -0
- package/runtime/map-package.d.ts +167 -0
- package/runtime/map-package.d.ts.map +1 -0
- package/runtime/map-package.js +15 -0
- package/runtime/ogc-styles.d.ts +110 -0
- package/runtime/ogc-styles.d.ts.map +1 -0
- package/runtime/ogc-styles.js +195 -0
- package/runtime/popups.d.ts +62 -0
- package/runtime/popups.d.ts.map +1 -0
- package/runtime/popups.js +95 -0
- package/runtime/query-tiles.d.ts +217 -0
- package/runtime/query-tiles.d.ts.map +1 -0
- package/runtime/query-tiles.js +801 -0
- package/runtime/runtime.d.ts +243 -0
- package/runtime/runtime.d.ts.map +1 -0
- package/runtime/runtime.js +1147 -0
- package/runtime/source-bridge.d.ts +99 -0
- package/runtime/source-bridge.d.ts.map +1 -0
- package/runtime/source-bridge.js +401 -0
- package/runtime/style-compose.d.ts +46 -0
- package/runtime/style-compose.d.ts.map +1 -0
- package/runtime/style-compose.js +144 -0
- package/runtime/style-interactions.d.ts +141 -0
- package/runtime/style-interactions.d.ts.map +1 -0
- package/runtime/style-interactions.js +574 -0
- package/runtime/style-spec-validation.d.ts +23 -0
- package/runtime/style-spec-validation.d.ts.map +1 -0
- package/runtime/style-spec-validation.js +357 -0
- package/studio/capability-manifest.d.ts +285 -0
- package/studio/capability-manifest.d.ts.map +1 -0
- package/studio/capability-manifest.js +59 -0
- package/studio/chart-spec.d.ts +85 -0
- package/studio/chart-spec.d.ts.map +1 -0
- package/studio/chart-spec.js +106 -0
- package/studio/index.d.ts +34 -0
- package/studio/index.d.ts.map +1 -0
- package/studio/index.js +27 -0
- package/studio/provenance.d.ts +131 -0
- package/studio/provenance.d.ts.map +1 -0
- package/studio/provenance.js +39 -0
- package/studio/publish.d.ts +64 -0
- package/studio/publish.d.ts.map +1 -0
- package/studio/publish.js +13 -0
- package/studio/types.d.ts +278 -0
- package/studio/types.d.ts.map +1 -0
- package/studio/types.js +71 -0
- package/studio/validate.d.ts +45 -0
- package/studio/validate.d.ts.map +1 -0
- package/studio/validate.js +255 -0
- package/studio/validation.d.ts +112 -0
- package/studio/validation.d.ts.map +1 -0
- package/studio/validation.js +42 -0
- package/style/factory.d.ts +30 -0
- package/style/factory.d.ts.map +1 -0
- package/style/factory.js +61 -0
- package/style/index.d.ts +25 -0
- package/style/index.d.ts.map +1 -0
- package/style/index.js +24 -0
- package/style/specification.d.ts +203 -0
- package/style/specification.d.ts.map +1 -0
- package/style/specification.js +178 -0
- package/style/wms-wmts-resolvers.d.ts +38 -0
- package/style/wms-wmts-resolvers.d.ts.map +1 -0
- package/style/wms-wmts-resolvers.js +92 -0
- package/webmap/contract.d.ts +28 -0
- package/webmap/contract.d.ts.map +1 -0
- package/webmap/contract.js +130 -0
- package/webmap/convert-basemap.d.ts +17 -0
- package/webmap/convert-basemap.d.ts.map +1 -0
- package/webmap/convert-basemap.js +78 -0
- package/webmap/convert-extent.d.ts +17 -0
- package/webmap/convert-extent.d.ts.map +1 -0
- package/webmap/convert-extent.js +114 -0
- package/webmap/convert-label.d.ts +13 -0
- package/webmap/convert-label.d.ts.map +1 -0
- package/webmap/convert-label.js +125 -0
- package/webmap/convert-layer.d.ts +22 -0
- package/webmap/convert-layer.d.ts.map +1 -0
- package/webmap/convert-layer.js +181 -0
- package/webmap/convert-popup.d.ts +34 -0
- package/webmap/convert-popup.d.ts.map +1 -0
- package/webmap/convert-popup.js +68 -0
- package/webmap/convert-renderer.d.ts +17 -0
- package/webmap/convert-renderer.d.ts.map +1 -0
- package/webmap/convert-renderer.js +161 -0
- package/webmap/convert-symbol.d.ts +17 -0
- package/webmap/convert-symbol.d.ts.map +1 -0
- package/webmap/convert-symbol.js +122 -0
- package/webmap/index.d.ts +44 -0
- package/webmap/index.d.ts.map +1 -0
- package/webmap/index.js +33 -0
- package/webmap/parse.d.ts +25 -0
- package/webmap/parse.d.ts.map +1 -0
- package/webmap/parse.js +83 -0
- package/webmap/types.d.ts +264 -0
- package/webmap/types.d.ts.map +1 -0
- package/webmap/types.js +13 -0
- package/webmap/warnings.d.ts +30 -0
- package/webmap/warnings.d.ts.map +1 -0
- package/webmap/warnings.js +37 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server compatibility contract parsing and evaluation. Decodes the
|
|
3
|
+
* `GET /api/v1/admin/capabilities` envelope into the typed
|
|
4
|
+
* {@link HonuaServerCompatibility} shape, and evaluates it against this
|
|
5
|
+
* SDK's supported baseline (minimum server version, control-plane API
|
|
6
|
+
* major/base-path, and release channel). Pure logic with no transport
|
|
7
|
+
* coupling; the `HonuaClient` facade owns fetching + caching and delegates
|
|
8
|
+
* the parse/evaluate steps here.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
import type { HonuaServerCompatibility } from "./types.js";
|
|
13
|
+
export declare const HONUA_MINIMUM_SUPPORTED_SERVER_VERSION = "1.0.0";
|
|
14
|
+
export declare const MINIMUM_SUPPORTED_SERVER_RELEASE_CHANNEL = "preview";
|
|
15
|
+
export declare function parseCompatibilityEnvelope(payload: unknown): HonuaServerCompatibility;
|
|
16
|
+
export declare function evaluateCompatibility(compatibility: HonuaServerCompatibility): string[];
|
|
17
|
+
export declare function describeCompatibilityError(error: unknown): string;
|
|
18
|
+
//# sourceMappingURL=compatibility.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compatibility.d.ts","sourceRoot":"","sources":["../../../src/core/compatibility.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAE3D,eAAO,MAAM,sCAAsC,UAAU,CAAC;AAC9D,eAAO,MAAM,wCAAwC,YAAY,CAAC;AASlE,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,wBAAwB,CAerF;AAsFD,wBAAgB,qBAAqB,CAAC,aAAa,EAAE,wBAAwB,GAAG,MAAM,EAAE,CA+CvF;AAyFD,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAQjE"}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server compatibility contract parsing and evaluation. Decodes the
|
|
3
|
+
* `GET /api/v1/admin/capabilities` envelope into the typed
|
|
4
|
+
* {@link HonuaServerCompatibility} shape, and evaluates it against this
|
|
5
|
+
* SDK's supported baseline (minimum server version, control-plane API
|
|
6
|
+
* major/base-path, and release channel). Pure logic with no transport
|
|
7
|
+
* coupling; the `HonuaClient` facade owns fetching + caching and delegates
|
|
8
|
+
* the parse/evaluate steps here.
|
|
9
|
+
*
|
|
10
|
+
* @module
|
|
11
|
+
*/
|
|
12
|
+
import { HonuaHttpError } from "./errors.js";
|
|
13
|
+
import { trimTrailingSlashes } from "./path-utils.js";
|
|
14
|
+
export const HONUA_MINIMUM_SUPPORTED_SERVER_VERSION = "1.0.0";
|
|
15
|
+
export const MINIMUM_SUPPORTED_SERVER_RELEASE_CHANNEL = "preview";
|
|
16
|
+
const SUPPORTED_CONTROL_PLANE_API_MAJOR = 1;
|
|
17
|
+
const SUPPORTED_CONTROL_PLANE_API_BASE_PATH = "/api/v1/admin";
|
|
18
|
+
function isObject(value) {
|
|
19
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
|
+
}
|
|
21
|
+
export function parseCompatibilityEnvelope(payload) {
|
|
22
|
+
if (!isObject(payload)) {
|
|
23
|
+
throw new TypeError("Server capabilities response must be a JSON object.");
|
|
24
|
+
}
|
|
25
|
+
if (payload.success === false) {
|
|
26
|
+
const message = typeof payload.message === "string" ? payload.message : "Server capabilities request failed.";
|
|
27
|
+
throw new Error(message);
|
|
28
|
+
}
|
|
29
|
+
if (!isObject(payload.data)) {
|
|
30
|
+
throw new TypeError("Server capabilities response is missing a data object.");
|
|
31
|
+
}
|
|
32
|
+
return parseCompatibilityContract(payload.data.compatibility);
|
|
33
|
+
}
|
|
34
|
+
function parseCompatibilityContract(payload) {
|
|
35
|
+
if (!isObject(payload)) {
|
|
36
|
+
throw new TypeError("Server capabilities response is missing data.compatibility.");
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
serverVersion: requireNonEmptyString(payload.serverVersion, "data.compatibility.serverVersion"),
|
|
40
|
+
releaseChannel: requireNonEmptyString(payload.releaseChannel, "data.compatibility.releaseChannel"),
|
|
41
|
+
controlPlaneApi: parseControlPlaneApi(payload.controlPlaneApi),
|
|
42
|
+
metadataSchemas: parseMetadataSchemas(payload.metadataSchemas),
|
|
43
|
+
features: parseCompatibilityFeatures(payload.features),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function parseControlPlaneApi(payload) {
|
|
47
|
+
if (!isObject(payload)) {
|
|
48
|
+
throw new TypeError("Server capabilities response is missing data.compatibility.controlPlaneApi.");
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
major: requireInteger(payload.major, "data.compatibility.controlPlaneApi.major"),
|
|
52
|
+
basePath: requireNonEmptyString(payload.basePath, "data.compatibility.controlPlaneApi.basePath"),
|
|
53
|
+
deprecated: requireBoolean(payload.deprecated, "data.compatibility.controlPlaneApi.deprecated"),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function parseMetadataSchemas(payload) {
|
|
57
|
+
if (!Array.isArray(payload)) {
|
|
58
|
+
throw new TypeError("Server capabilities response is missing data.compatibility.metadataSchemas.");
|
|
59
|
+
}
|
|
60
|
+
return payload.map((entry, index) => {
|
|
61
|
+
if (!isObject(entry)) {
|
|
62
|
+
throw new TypeError(`Server capabilities response metadataSchemas[${index}] must be an object.`);
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
version: requireNonEmptyString(entry.version, `data.compatibility.metadataSchemas[${index}].version`),
|
|
66
|
+
deprecated: requireBoolean(entry.deprecated, `data.compatibility.metadataSchemas[${index}].deprecated`),
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function parseCompatibilityFeatures(payload) {
|
|
71
|
+
if (!isObject(payload)) {
|
|
72
|
+
throw new TypeError("Server capabilities response is missing data.compatibility.features.");
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
metadataResources: requireBoolean(payload.metadataResources, "data.compatibility.features.metadataResources"),
|
|
76
|
+
manifestExport: requireBoolean(payload.manifestExport, "data.compatibility.features.manifestExport"),
|
|
77
|
+
manifestApply: requireBoolean(payload.manifestApply, "data.compatibility.features.manifestApply"),
|
|
78
|
+
manifestDryRun: requireBoolean(payload.manifestDryRun, "data.compatibility.features.manifestDryRun"),
|
|
79
|
+
manifestPrune: requireBoolean(payload.manifestPrune, "data.compatibility.features.manifestPrune"),
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function requireNonEmptyString(value, fieldName) {
|
|
83
|
+
if (typeof value !== "string") {
|
|
84
|
+
throw new TypeError(`${fieldName} must be a string.`);
|
|
85
|
+
}
|
|
86
|
+
const trimmed = value.trim();
|
|
87
|
+
if (trimmed.length === 0) {
|
|
88
|
+
throw new TypeError(`${fieldName} must not be empty.`);
|
|
89
|
+
}
|
|
90
|
+
return trimmed;
|
|
91
|
+
}
|
|
92
|
+
function requireBoolean(value, fieldName) {
|
|
93
|
+
if (typeof value !== "boolean") {
|
|
94
|
+
throw new TypeError(`${fieldName} must be a boolean.`);
|
|
95
|
+
}
|
|
96
|
+
return value;
|
|
97
|
+
}
|
|
98
|
+
function requireInteger(value, fieldName) {
|
|
99
|
+
if (typeof value !== "number" || !Number.isInteger(value)) {
|
|
100
|
+
throw new TypeError(`${fieldName} must be an integer.`);
|
|
101
|
+
}
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
export function evaluateCompatibility(compatibility) {
|
|
105
|
+
const reasons = [];
|
|
106
|
+
const minimumVersion = parseVersion(HONUA_MINIMUM_SUPPORTED_SERVER_VERSION);
|
|
107
|
+
const serverVersion = parseVersion(compatibility.serverVersion);
|
|
108
|
+
if (!minimumVersion) {
|
|
109
|
+
reasons.push(`SDK minimum supported version '${HONUA_MINIMUM_SUPPORTED_SERVER_VERSION}' is not parseable for compatibility checks.`);
|
|
110
|
+
return reasons;
|
|
111
|
+
}
|
|
112
|
+
if (!serverVersion) {
|
|
113
|
+
reasons.push(`Server version '${compatibility.serverVersion}' is not parseable for compatibility checks.`);
|
|
114
|
+
}
|
|
115
|
+
else if (compareVersions(serverVersion, minimumVersion) < 0) {
|
|
116
|
+
reasons.push(`Server version ${compatibility.serverVersion} is older than the minimum supported ${HONUA_MINIMUM_SUPPORTED_SERVER_VERSION}.`);
|
|
117
|
+
}
|
|
118
|
+
if (compatibility.controlPlaneApi.major !== SUPPORTED_CONTROL_PLANE_API_MAJOR) {
|
|
119
|
+
reasons.push(`Control-plane API major ${compatibility.controlPlaneApi.major} is unsupported; expected ${SUPPORTED_CONTROL_PLANE_API_MAJOR}.`);
|
|
120
|
+
}
|
|
121
|
+
if (normalizePathValue(compatibility.controlPlaneApi.basePath) !== SUPPORTED_CONTROL_PLANE_API_BASE_PATH) {
|
|
122
|
+
reasons.push(`Control-plane API base path ${compatibility.controlPlaneApi.basePath} is unsupported; expected ${SUPPORTED_CONTROL_PLANE_API_BASE_PATH}.`);
|
|
123
|
+
}
|
|
124
|
+
if (compatibility.controlPlaneApi.deprecated) {
|
|
125
|
+
reasons.push(`Control-plane API major ${compatibility.controlPlaneApi.major} is marked deprecated by the server.`);
|
|
126
|
+
}
|
|
127
|
+
const actualReleaseChannelRank = getReleaseChannelRank(compatibility.releaseChannel);
|
|
128
|
+
const minimumReleaseChannelRank = getReleaseChannelRank(MINIMUM_SUPPORTED_SERVER_RELEASE_CHANNEL) ?? 0;
|
|
129
|
+
if (actualReleaseChannelRank === undefined) {
|
|
130
|
+
reasons.push(`Server release channel '${compatibility.releaseChannel}' is not recognized by this SDK baseline.`);
|
|
131
|
+
}
|
|
132
|
+
else if (actualReleaseChannelRank < minimumReleaseChannelRank) {
|
|
133
|
+
reasons.push(`Server release channel '${compatibility.releaseChannel}' is below the minimum supported '${MINIMUM_SUPPORTED_SERVER_RELEASE_CHANNEL}'.`);
|
|
134
|
+
}
|
|
135
|
+
return reasons;
|
|
136
|
+
}
|
|
137
|
+
function parseVersion(version) {
|
|
138
|
+
const normalized = version.trim().replace(/^v/i, "");
|
|
139
|
+
if (normalized.length === 0) {
|
|
140
|
+
return undefined;
|
|
141
|
+
}
|
|
142
|
+
const coreAndPrerelease = normalized.split("+", 1)[0] ?? normalized;
|
|
143
|
+
const [core, prerelease = ""] = coreAndPrerelease.split("-", 2);
|
|
144
|
+
const numbers = core.split(".").map((segment) => Number.parseInt(segment, 10));
|
|
145
|
+
if (numbers.length === 0 || numbers.some((segment) => !Number.isFinite(segment))) {
|
|
146
|
+
return undefined;
|
|
147
|
+
}
|
|
148
|
+
const prereleaseParts = prerelease.length > 0
|
|
149
|
+
? prerelease
|
|
150
|
+
.split(".")
|
|
151
|
+
.map((segment) => segment.trim())
|
|
152
|
+
.filter((segment) => segment.length > 0)
|
|
153
|
+
: [];
|
|
154
|
+
return {
|
|
155
|
+
numbers,
|
|
156
|
+
prerelease: prereleaseParts,
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function compareVersions(left, right) {
|
|
160
|
+
const length = Math.max(left.numbers.length, right.numbers.length);
|
|
161
|
+
for (let index = 0; index < length; index += 1) {
|
|
162
|
+
const leftPart = left.numbers[index] ?? 0;
|
|
163
|
+
const rightPart = right.numbers[index] ?? 0;
|
|
164
|
+
if (leftPart !== rightPart) {
|
|
165
|
+
return leftPart < rightPart ? -1 : 1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
if (left.prerelease.length === 0 && right.prerelease.length === 0) {
|
|
169
|
+
return 0;
|
|
170
|
+
}
|
|
171
|
+
if (left.prerelease.length === 0) {
|
|
172
|
+
return 1;
|
|
173
|
+
}
|
|
174
|
+
if (right.prerelease.length === 0) {
|
|
175
|
+
return -1;
|
|
176
|
+
}
|
|
177
|
+
const prereleaseLength = Math.max(left.prerelease.length, right.prerelease.length);
|
|
178
|
+
for (let index = 0; index < prereleaseLength; index += 1) {
|
|
179
|
+
const leftPart = left.prerelease[index];
|
|
180
|
+
const rightPart = right.prerelease[index];
|
|
181
|
+
if (leftPart === undefined) {
|
|
182
|
+
return -1;
|
|
183
|
+
}
|
|
184
|
+
if (rightPart === undefined) {
|
|
185
|
+
return 1;
|
|
186
|
+
}
|
|
187
|
+
if (leftPart === rightPart) {
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
const leftNumeric = Number.parseInt(leftPart, 10);
|
|
191
|
+
const rightNumeric = Number.parseInt(rightPart, 10);
|
|
192
|
+
const leftIsNumeric = String(leftNumeric) === leftPart;
|
|
193
|
+
const rightIsNumeric = String(rightNumeric) === rightPart;
|
|
194
|
+
if (leftIsNumeric && rightIsNumeric) {
|
|
195
|
+
return leftNumeric < rightNumeric ? -1 : 1;
|
|
196
|
+
}
|
|
197
|
+
if (leftIsNumeric) {
|
|
198
|
+
return -1;
|
|
199
|
+
}
|
|
200
|
+
if (rightIsNumeric) {
|
|
201
|
+
return 1;
|
|
202
|
+
}
|
|
203
|
+
return leftPart < rightPart ? -1 : 1;
|
|
204
|
+
}
|
|
205
|
+
return 0;
|
|
206
|
+
}
|
|
207
|
+
export function describeCompatibilityError(error) {
|
|
208
|
+
if (error instanceof HonuaHttpError && error.statusCode === 404) {
|
|
209
|
+
return "Server does not expose GET /api/v1/admin/capabilities.";
|
|
210
|
+
}
|
|
211
|
+
if (error instanceof Error) {
|
|
212
|
+
return error.message;
|
|
213
|
+
}
|
|
214
|
+
return String(error);
|
|
215
|
+
}
|
|
216
|
+
function normalizePathValue(path) {
|
|
217
|
+
const trimmed = path.trim();
|
|
218
|
+
if (trimmed.length === 0) {
|
|
219
|
+
return "";
|
|
220
|
+
}
|
|
221
|
+
const prefixed = trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
|
|
222
|
+
return trimTrailingSlashes(prefixed);
|
|
223
|
+
}
|
|
224
|
+
function getReleaseChannelRank(releaseChannel) {
|
|
225
|
+
switch (releaseChannel.trim().toLowerCase()) {
|
|
226
|
+
case "nightly":
|
|
227
|
+
return 0;
|
|
228
|
+
case "dev":
|
|
229
|
+
return 1;
|
|
230
|
+
case "alpha":
|
|
231
|
+
return 2;
|
|
232
|
+
case "preview":
|
|
233
|
+
return 3;
|
|
234
|
+
case "beta":
|
|
235
|
+
return 4;
|
|
236
|
+
case "rc":
|
|
237
|
+
return 5;
|
|
238
|
+
case "stable":
|
|
239
|
+
return 6;
|
|
240
|
+
case "lts":
|
|
241
|
+
return 7;
|
|
242
|
+
default:
|
|
243
|
+
return undefined;
|
|
244
|
+
}
|
|
245
|
+
}
|
package/core/errors.d.ts
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Honua SDK error hierarchy. Every error thrown by `@honua/sdk-js` is an
|
|
3
|
+
* instance of one of the classes in this file plus the runtime-type guard
|
|
4
|
+
* `isHonuaError(error)`. See [`docs/errors.md`](../../docs/errors.md) for the
|
|
5
|
+
* full reference table including recovery hints and the retry-policy mapping.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import {
|
|
10
|
+
* HonuaHttpError,
|
|
11
|
+
* HonuaTimeoutError,
|
|
12
|
+
* HonuaCapabilityNotSupportedError,
|
|
13
|
+
* isHonuaError,
|
|
14
|
+
* } from "@honua/sdk-js";
|
|
15
|
+
*
|
|
16
|
+
* try {
|
|
17
|
+
* await dataset.source("parcels")!.queryAll({ where: "1=1" });
|
|
18
|
+
* } catch (error) {
|
|
19
|
+
* if (!isHonuaError(error)) throw error;
|
|
20
|
+
* if (error instanceof HonuaCapabilityNotSupportedError) return fallback();
|
|
21
|
+
* if (error instanceof HonuaHttpError && error.statusCode === 401) {
|
|
22
|
+
* await refreshCredentials();
|
|
23
|
+
* return retry();
|
|
24
|
+
* }
|
|
25
|
+
* if (error instanceof HonuaTimeoutError) return notifyUser("Server slow");
|
|
26
|
+
* throw error;
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @packageDocumentation
|
|
31
|
+
*/
|
|
32
|
+
import { HonuaJobFailedError } from "./ogc-processes.js";
|
|
33
|
+
import { HonuaWmsCapabilitiesParseError } from "./wms-capabilities.js";
|
|
34
|
+
import { HonuaWmtsCapabilitiesParseError } from "./wmts-capabilities.js";
|
|
35
|
+
/**
|
|
36
|
+
* Thrown when the server returns a non-2xx HTTP status. Branch on
|
|
37
|
+
* `.statusCode` to decide recovery: refresh credentials on 401/403, respect
|
|
38
|
+
* `Retry-After` on 429, back off on 5xx, etc.
|
|
39
|
+
*
|
|
40
|
+
* @see [`docs/errors.md`](../../docs/errors.md)
|
|
41
|
+
*/
|
|
42
|
+
export declare class HonuaHttpError extends Error {
|
|
43
|
+
readonly statusCode: number;
|
|
44
|
+
readonly body: unknown;
|
|
45
|
+
constructor(statusCode: number, message: string, body: unknown);
|
|
46
|
+
}
|
|
47
|
+
/** Thrown when a request exceeds the configured timeout. */
|
|
48
|
+
export declare class HonuaTimeoutError extends Error {
|
|
49
|
+
readonly timeoutMs: number;
|
|
50
|
+
constructor(timeoutMs: number);
|
|
51
|
+
}
|
|
52
|
+
/** Thrown when a network-level failure occurs (DNS, connection refused, etc.). */
|
|
53
|
+
export declare class HonuaNetworkError extends Error {
|
|
54
|
+
readonly cause: unknown;
|
|
55
|
+
constructor(message: string, cause: unknown);
|
|
56
|
+
}
|
|
57
|
+
/** Thrown when a request is aborted via a caller-provided AbortSignal. */
|
|
58
|
+
export declare class HonuaAbortError extends Error {
|
|
59
|
+
constructor(message?: string);
|
|
60
|
+
}
|
|
61
|
+
/** Thrown when a gRPC-Web request fails, wrapping the underlying ConnectError. */
|
|
62
|
+
export declare class HonuaGrpcError extends Error {
|
|
63
|
+
readonly code: number;
|
|
64
|
+
readonly details: unknown;
|
|
65
|
+
constructor(code: number, message: string, details?: unknown);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Thrown when a `Source` is asked to perform an operation that the underlying
|
|
69
|
+
* protocol or server does not support and the active capability policy is
|
|
70
|
+
* `strict`. The `capability` field names the missing capability so callers can
|
|
71
|
+
* decide whether to swap protocols, fall back to a degraded strategy, or
|
|
72
|
+
* surface the limitation to the user.
|
|
73
|
+
*/
|
|
74
|
+
export declare class HonuaCapabilityNotSupportedError extends Error {
|
|
75
|
+
readonly capability: string;
|
|
76
|
+
readonly protocol: string;
|
|
77
|
+
readonly sourceId: string | undefined;
|
|
78
|
+
constructor(capability: string, protocol: string, sourceId?: string);
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Thrown when an `ExplorationContext` operation is invalid — for example,
|
|
82
|
+
* dispatching an intent against a context that has been disposed, restoring
|
|
83
|
+
* an incompatible snapshot, or binding a view that requests a slice that is
|
|
84
|
+
* not exposed by the current dataset.
|
|
85
|
+
*/
|
|
86
|
+
export declare class HonuaExplorationContextError extends Error {
|
|
87
|
+
readonly code: string;
|
|
88
|
+
constructor(code: string, message: string);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Thrown when a WFS server replies with an `ows:ExceptionReport`. Carries the
|
|
92
|
+
* structured exception metadata so callers can distinguish capability misses
|
|
93
|
+
* (for example `OperationProcessingFailed`, `InvalidParameterValue`) from
|
|
94
|
+
* transport / timeout failures. The XML payload is consumed by
|
|
95
|
+
* `src/core/wfs-capabilities.ts`; raw access lives behind the `protocol("wfs")`
|
|
96
|
+
* escape hatch.
|
|
97
|
+
*/
|
|
98
|
+
export declare class HonuaWfsExceptionError extends Error {
|
|
99
|
+
readonly exceptionCode: string;
|
|
100
|
+
readonly locator: string | undefined;
|
|
101
|
+
constructor(exceptionCode: string, message: string, locator?: string);
|
|
102
|
+
}
|
|
103
|
+
/** All Honua SDK error types that can be discriminated with `instanceof`. */
|
|
104
|
+
export type HonuaError = HonuaHttpError | HonuaTimeoutError | HonuaNetworkError | HonuaAbortError | HonuaGrpcError | HonuaCapabilityNotSupportedError | HonuaExplorationContextError | HonuaWfsExceptionError | HonuaJobFailedError | HonuaWmsCapabilitiesParseError | HonuaWmtsCapabilitiesParseError;
|
|
105
|
+
/** Type guard that narrows any value to one of the Honua SDK error types. */
|
|
106
|
+
export declare function isHonuaError(error: unknown): error is HonuaError;
|
|
107
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../src/core/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,8BAA8B,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wBAAwB,CAAC;AAEzE;;;;;;GAMG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,IAAI,EAAE,OAAO,CAAC;gBAEX,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO;CAMtE;AAED,4DAA4D;AAC5D,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,SAAgB,SAAS,EAAE,MAAM,CAAC;gBAEf,SAAS,EAAE,MAAM;CAKrC;AAED,kFAAkF;AAClF,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,SAAyB,KAAK,EAAE,OAAO,CAAC;gBAErB,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO;CAKnD;AAED,0EAA0E;AAC1E,qBAAa,eAAgB,SAAQ,KAAK;gBACrB,OAAO,SAAwB;CAInD;AAED,kFAAkF;AAClF,qBAAa,cAAe,SAAQ,KAAK;IACvC,SAAgB,IAAI,EAAE,MAAM,CAAC;IAC7B,SAAgB,OAAO,EAAE,OAAO,CAAC;gBAEd,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO;CAMpE;AAED;;;;;;GAMG;AACH,qBAAa,gCAAiC,SAAQ,KAAK;IACzD,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,QAAQ,EAAE,MAAM,CAAC;IACjC,SAAgB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAC;gBAE1B,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM;CAW3E;AAED;;;;;GAKG;AACH,qBAAa,4BAA6B,SAAQ,KAAK;IACrD,SAAgB,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAKjD;AAED;;;;;;;GAOG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAC/C,SAAgB,aAAa,EAAE,MAAM,CAAC;IACtC,SAAgB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;gBAEzB,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM;CAU5E;AAED,6EAA6E;AAC7E,MAAM,MAAM,UAAU,GAClB,cAAc,GACd,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,cAAc,GACd,gCAAgC,GAChC,4BAA4B,GAC5B,sBAAsB,GACtB,mBAAmB,GACnB,8BAA8B,GAC9B,+BAA+B,CAAC;AAEpC,6EAA6E;AAC7E,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAchE"}
|
package/core/errors.js
ADDED
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Honua SDK error hierarchy. Every error thrown by `@honua/sdk-js` is an
|
|
3
|
+
* instance of one of the classes in this file plus the runtime-type guard
|
|
4
|
+
* `isHonuaError(error)`. See [`docs/errors.md`](../../docs/errors.md) for the
|
|
5
|
+
* full reference table including recovery hints and the retry-policy mapping.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* import {
|
|
10
|
+
* HonuaHttpError,
|
|
11
|
+
* HonuaTimeoutError,
|
|
12
|
+
* HonuaCapabilityNotSupportedError,
|
|
13
|
+
* isHonuaError,
|
|
14
|
+
* } from "@honua/sdk-js";
|
|
15
|
+
*
|
|
16
|
+
* try {
|
|
17
|
+
* await dataset.source("parcels")!.queryAll({ where: "1=1" });
|
|
18
|
+
* } catch (error) {
|
|
19
|
+
* if (!isHonuaError(error)) throw error;
|
|
20
|
+
* if (error instanceof HonuaCapabilityNotSupportedError) return fallback();
|
|
21
|
+
* if (error instanceof HonuaHttpError && error.statusCode === 401) {
|
|
22
|
+
* await refreshCredentials();
|
|
23
|
+
* return retry();
|
|
24
|
+
* }
|
|
25
|
+
* if (error instanceof HonuaTimeoutError) return notifyUser("Server slow");
|
|
26
|
+
* throw error;
|
|
27
|
+
* }
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @packageDocumentation
|
|
31
|
+
*/
|
|
32
|
+
import { HonuaJobFailedError } from "./ogc-processes.js";
|
|
33
|
+
import { HonuaWmsCapabilitiesParseError } from "./wms-capabilities.js";
|
|
34
|
+
import { HonuaWmtsCapabilitiesParseError } from "./wmts-capabilities.js";
|
|
35
|
+
/**
|
|
36
|
+
* Thrown when the server returns a non-2xx HTTP status. Branch on
|
|
37
|
+
* `.statusCode` to decide recovery: refresh credentials on 401/403, respect
|
|
38
|
+
* `Retry-After` on 429, back off on 5xx, etc.
|
|
39
|
+
*
|
|
40
|
+
* @see [`docs/errors.md`](../../docs/errors.md)
|
|
41
|
+
*/
|
|
42
|
+
export class HonuaHttpError extends Error {
|
|
43
|
+
statusCode;
|
|
44
|
+
body;
|
|
45
|
+
constructor(statusCode, message, body) {
|
|
46
|
+
super(`HTTP ${statusCode}: ${message}`);
|
|
47
|
+
this.name = "HonuaHttpError";
|
|
48
|
+
this.statusCode = statusCode;
|
|
49
|
+
this.body = body;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/** Thrown when a request exceeds the configured timeout. */
|
|
53
|
+
export class HonuaTimeoutError extends Error {
|
|
54
|
+
timeoutMs;
|
|
55
|
+
constructor(timeoutMs) {
|
|
56
|
+
super(`Request timed out after ${timeoutMs}ms`);
|
|
57
|
+
this.name = "HonuaTimeoutError";
|
|
58
|
+
this.timeoutMs = timeoutMs;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/** Thrown when a network-level failure occurs (DNS, connection refused, etc.). */
|
|
62
|
+
export class HonuaNetworkError extends Error {
|
|
63
|
+
cause;
|
|
64
|
+
constructor(message, cause) {
|
|
65
|
+
super(message);
|
|
66
|
+
this.name = "HonuaNetworkError";
|
|
67
|
+
this.cause = cause;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/** Thrown when a request is aborted via a caller-provided AbortSignal. */
|
|
71
|
+
export class HonuaAbortError extends Error {
|
|
72
|
+
constructor(message = "Request was aborted") {
|
|
73
|
+
super(message);
|
|
74
|
+
this.name = "HonuaAbortError";
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/** Thrown when a gRPC-Web request fails, wrapping the underlying ConnectError. */
|
|
78
|
+
export class HonuaGrpcError extends Error {
|
|
79
|
+
code;
|
|
80
|
+
details;
|
|
81
|
+
constructor(code, message, details) {
|
|
82
|
+
super(message);
|
|
83
|
+
this.name = "HonuaGrpcError";
|
|
84
|
+
this.code = code;
|
|
85
|
+
this.details = details;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Thrown when a `Source` is asked to perform an operation that the underlying
|
|
90
|
+
* protocol or server does not support and the active capability policy is
|
|
91
|
+
* `strict`. The `capability` field names the missing capability so callers can
|
|
92
|
+
* decide whether to swap protocols, fall back to a degraded strategy, or
|
|
93
|
+
* surface the limitation to the user.
|
|
94
|
+
*/
|
|
95
|
+
export class HonuaCapabilityNotSupportedError extends Error {
|
|
96
|
+
capability;
|
|
97
|
+
protocol;
|
|
98
|
+
sourceId;
|
|
99
|
+
constructor(capability, protocol, sourceId) {
|
|
100
|
+
super(sourceId
|
|
101
|
+
? `Capability "${capability}" is not supported by protocol "${protocol}" on source "${sourceId}"`
|
|
102
|
+
: `Capability "${capability}" is not supported by protocol "${protocol}"`);
|
|
103
|
+
this.name = "HonuaCapabilityNotSupportedError";
|
|
104
|
+
this.capability = capability;
|
|
105
|
+
this.protocol = protocol;
|
|
106
|
+
this.sourceId = sourceId;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Thrown when an `ExplorationContext` operation is invalid — for example,
|
|
111
|
+
* dispatching an intent against a context that has been disposed, restoring
|
|
112
|
+
* an incompatible snapshot, or binding a view that requests a slice that is
|
|
113
|
+
* not exposed by the current dataset.
|
|
114
|
+
*/
|
|
115
|
+
export class HonuaExplorationContextError extends Error {
|
|
116
|
+
code;
|
|
117
|
+
constructor(code, message) {
|
|
118
|
+
super(message);
|
|
119
|
+
this.name = "HonuaExplorationContextError";
|
|
120
|
+
this.code = code;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Thrown when a WFS server replies with an `ows:ExceptionReport`. Carries the
|
|
125
|
+
* structured exception metadata so callers can distinguish capability misses
|
|
126
|
+
* (for example `OperationProcessingFailed`, `InvalidParameterValue`) from
|
|
127
|
+
* transport / timeout failures. The XML payload is consumed by
|
|
128
|
+
* `src/core/wfs-capabilities.ts`; raw access lives behind the `protocol("wfs")`
|
|
129
|
+
* escape hatch.
|
|
130
|
+
*/
|
|
131
|
+
export class HonuaWfsExceptionError extends Error {
|
|
132
|
+
exceptionCode;
|
|
133
|
+
locator;
|
|
134
|
+
constructor(exceptionCode, message, locator) {
|
|
135
|
+
super(locator
|
|
136
|
+
? `WFS ExceptionReport ${exceptionCode} (${locator}): ${message}`
|
|
137
|
+
: `WFS ExceptionReport ${exceptionCode}: ${message}`);
|
|
138
|
+
this.name = "HonuaWfsExceptionError";
|
|
139
|
+
this.exceptionCode = exceptionCode;
|
|
140
|
+
this.locator = locator;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
/** Type guard that narrows any value to one of the Honua SDK error types. */
|
|
144
|
+
export function isHonuaError(error) {
|
|
145
|
+
return (error instanceof HonuaHttpError ||
|
|
146
|
+
error instanceof HonuaTimeoutError ||
|
|
147
|
+
error instanceof HonuaNetworkError ||
|
|
148
|
+
error instanceof HonuaAbortError ||
|
|
149
|
+
error instanceof HonuaGrpcError ||
|
|
150
|
+
error instanceof HonuaCapabilityNotSupportedError ||
|
|
151
|
+
error instanceof HonuaExplorationContextError ||
|
|
152
|
+
error instanceof HonuaWfsExceptionError ||
|
|
153
|
+
error instanceof HonuaJobFailedError ||
|
|
154
|
+
error instanceof HonuaWmsCapabilitiesParseError ||
|
|
155
|
+
error instanceof HonuaWmtsCapabilitiesParseError);
|
|
156
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convert Esri-JSON geometry (as returned by `queryFeatures` and contract
|
|
3
|
+
* {@link HonuaFeature} results) into standard GeoJSON geometry.
|
|
4
|
+
*
|
|
5
|
+
* Esri encodes geometry as `{ x, y }` points, `{ paths }` polylines,
|
|
6
|
+
* `{ rings }` polygons, `{ points }` multipoints, and `{ xmin, ymin, xmax,
|
|
7
|
+
* ymax }` envelopes. GeoJSON consumers (MapLibre, Leaflet, turf, etc.) expect
|
|
8
|
+
* `Point` / `LineString` / `Polygon` and their `Multi*` variants. This module
|
|
9
|
+
* provides that translation as a first-class, dependency-free utility.
|
|
10
|
+
*
|
|
11
|
+
* Polygon rings are grouped following the Esri convention where clockwise
|
|
12
|
+
* rings are exterior and counter-clockwise rings are holes, producing `Polygon`
|
|
13
|
+
* for a single exterior ring and `MultiPolygon` when several exterior rings are
|
|
14
|
+
* present. The emitted rings are rewound to the GeoJSON RFC 7946 right-hand rule
|
|
15
|
+
* (counter-clockwise exterior, clockwise holes) so conformant consumers do not
|
|
16
|
+
* interpret polygons inside-out.
|
|
17
|
+
*
|
|
18
|
+
* @module
|
|
19
|
+
*/
|
|
20
|
+
import type { GeoJsonGeometry } from "../expr/expression.js";
|
|
21
|
+
import type { EsriGeometry, GeoJsonFeature, HonuaFeature, HonuaSpatialReference } from "./types.js";
|
|
22
|
+
/**
|
|
23
|
+
* Convert a single Esri-JSON geometry into a GeoJSON geometry.
|
|
24
|
+
*
|
|
25
|
+
* Supports Esri point (`{ x, y }`), multipoint (`{ points }`), polyline
|
|
26
|
+
* (`{ paths }`), polygon (`{ rings }`), and envelope (`{ xmin, ymin, xmax,
|
|
27
|
+
* ymax }`) shapes. Returns `null` for `null`/`undefined` input and for
|
|
28
|
+
* geometries that contain no finite coordinates (e.g. empty `rings`/`paths`).
|
|
29
|
+
*
|
|
30
|
+
* @param geometry Esri geometry, the `geometry` field of a {@link HonuaFeature},
|
|
31
|
+
* or `null`/`undefined`.
|
|
32
|
+
* @returns The equivalent GeoJSON geometry, or `null` when the input is empty
|
|
33
|
+
* or unrecognized.
|
|
34
|
+
*/
|
|
35
|
+
export declare function esriGeometryToGeoJSON(geometry: EsriGeometry | Record<string, unknown> | null | undefined): GeoJsonGeometry | null;
|
|
36
|
+
/**
|
|
37
|
+
* Convert a contract {@link HonuaFeature} (Esri attributes + geometry) into a
|
|
38
|
+
* GeoJSON `Feature`.
|
|
39
|
+
*
|
|
40
|
+
* The feature `id` is derived from common Esri identifier attributes
|
|
41
|
+
* (`OBJECTID`, `objectid`, `id`, `ID`, `FID`) when present, and the geometry is
|
|
42
|
+
* converted with {@link esriGeometryToGeoJSON} (yielding `null` for missing or
|
|
43
|
+
* empty geometry).
|
|
44
|
+
*
|
|
45
|
+
* @param feature A contract feature with Esri-shaped `attributes` and
|
|
46
|
+
* `geometry`.
|
|
47
|
+
* @returns The equivalent GeoJSON feature.
|
|
48
|
+
*/
|
|
49
|
+
export declare function esriFeatureToGeoJSON(feature: HonuaFeature): GeoJsonFeature;
|
|
50
|
+
/**
|
|
51
|
+
* Convert a standard GeoJSON geometry back into Esri-JSON geometry, the inverse
|
|
52
|
+
* of {@link esriGeometryToGeoJSON}. `GeometryCollection` is not representable as
|
|
53
|
+
* a single Esri geometry and yields `null`.
|
|
54
|
+
*
|
|
55
|
+
* Polygon/MultiPolygon rings are rewound to the Esri winding convention
|
|
56
|
+
* (clockwise exterior, counter-clockwise holes) and MultiPolygons are flattened
|
|
57
|
+
* into a single `{ rings }` list, matching how Esri encodes multi-part polygons.
|
|
58
|
+
*
|
|
59
|
+
* @param geometry A GeoJSON geometry, or `null`/`undefined`.
|
|
60
|
+
* @param spatialReference Optional spatial reference stamped onto the emitted
|
|
61
|
+
* Esri geometry (Esri geometries are CRS-tagged; GeoJSON is implicitly WGS84).
|
|
62
|
+
* @returns The equivalent Esri geometry, or `null` when the input is empty or
|
|
63
|
+
* unrepresentable.
|
|
64
|
+
*/
|
|
65
|
+
export declare function geoJsonToEsriGeometry(geometry: GeoJsonGeometry | null | undefined, spatialReference?: HonuaSpatialReference): EsriGeometry | null;
|
|
66
|
+
//# sourceMappingURL=esri-geojson.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"esri-geojson.d.ts","sourceRoot":"","sources":["../../../src/core/esri-geojson.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EACV,YAAY,EAKZ,cAAc,EACd,YAAY,EACZ,qBAAqB,EACtB,MAAM,YAAY,CAAC;AA0MpB;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,GAAG,SAAS,GAClE,eAAe,GAAG,IAAI,CA0ExB;AAkBD;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,YAAY,GAAG,cAAc,CAQ1E;AAyBD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,eAAe,GAAG,IAAI,GAAG,SAAS,EAC5C,gBAAgB,CAAC,EAAE,qBAAqB,GACvC,YAAY,GAAG,IAAI,CAuCrB"}
|