@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,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical async-operation surface. `IJobRun` is the protocol-neutral
|
|
3
|
+
* vocabulary every long-running operation in the SDK speaks. It is the
|
|
4
|
+
* receipt returned from operations that complete asynchronously on the
|
|
5
|
+
* server (OGC API Processes execution, future GeoServices async export
|
|
6
|
+
* tickets, OData function imports, etc.).
|
|
7
|
+
*
|
|
8
|
+
* Per the ticket constraint, OGC Processes specifically must surface
|
|
9
|
+
* through this shared interface — there is no `OgcJobRun` top-level
|
|
10
|
+
* type. The implementation in `src/core/ogc-processes.ts` returns
|
|
11
|
+
* `IJobRun<T>` directly.
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* Coarse-grained job lifecycle. The OGC API Processes 1.0 status values
|
|
17
|
+
* (`accepted`, `running`, `successful`, `failed`, `dismissed`) are the
|
|
18
|
+
* canonical vocabulary; adapters for protocols that report a narrower or
|
|
19
|
+
* wider set must map onto these.
|
|
20
|
+
*/
|
|
21
|
+
export type JobStatus = "accepted" | "running" | "successful" | "failed" | "dismissed";
|
|
22
|
+
/** Human-meaningful job-progress signal. Optional; servers may omit fields. */
|
|
23
|
+
export interface JobProgress {
|
|
24
|
+
/** 0..100. Omitted when the server does not report a numeric estimate. */
|
|
25
|
+
percent?: number;
|
|
26
|
+
/** Human-readable status message for the current step. */
|
|
27
|
+
message?: string;
|
|
28
|
+
/** ISO-8601 timestamp of when the server last updated the progress. */
|
|
29
|
+
updatedAt?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Snapshot of a job's state. Returned from `IJobRun.poll()` and emitted
|
|
33
|
+
* to `IJobRun.watch` listeners. The result/error fields are filled only
|
|
34
|
+
* for terminal states.
|
|
35
|
+
*/
|
|
36
|
+
export interface JobSnapshot<T = unknown> {
|
|
37
|
+
status: JobStatus;
|
|
38
|
+
progress?: JobProgress;
|
|
39
|
+
/** Payload returned for terminal `successful` snapshots only. */
|
|
40
|
+
result?: JobResult<T>;
|
|
41
|
+
/** Error envelope returned for terminal `failed` snapshots. */
|
|
42
|
+
error?: JobError;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Server-side error envelope for a failed job. Mirrors the OGC API
|
|
46
|
+
* Processes "exception" shape; adapters for other protocols translate
|
|
47
|
+
* onto this surface so callers can branch on `code` without protocol
|
|
48
|
+
* knowledge.
|
|
49
|
+
*/
|
|
50
|
+
export interface JobError {
|
|
51
|
+
/** Stable machine code (e.g. `"InvalidParameterValue"`). */
|
|
52
|
+
code: string;
|
|
53
|
+
/** Human-readable explanation. */
|
|
54
|
+
message: string;
|
|
55
|
+
/** Optional details payload as returned by the server. */
|
|
56
|
+
details?: unknown;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Job-result document. `outputs` is a map of output-id → value; the SDK
|
|
60
|
+
* does not parse the value further (it may be a GeoJSON feature
|
|
61
|
+
* collection, a download URL, a binary asset, etc., depending on the
|
|
62
|
+
* process). Adapters narrow `T` for typed access.
|
|
63
|
+
*/
|
|
64
|
+
export interface JobResult<T = unknown> {
|
|
65
|
+
outputs: Record<string, T>;
|
|
66
|
+
}
|
|
67
|
+
/** Listener function invoked on every observed snapshot transition. */
|
|
68
|
+
export type JobSnapshotListener<T = unknown> = (snapshot: JobSnapshot<T>) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Bounds for {@link IJobRun.results}. Without any bound a hung or never-terminal
|
|
71
|
+
* status endpoint polls forever with no caller cancellation. Implementations
|
|
72
|
+
* pass {@link signal} through to the underlying status request, stop polling
|
|
73
|
+
* when the signal aborts or a deadline / attempt cap is reached, and use capped
|
|
74
|
+
* exponential backoff between polls.
|
|
75
|
+
*/
|
|
76
|
+
export interface JobResultsOptions {
|
|
77
|
+
/** Abort the poll loop (and the in-flight status request) when this fires. */
|
|
78
|
+
readonly signal?: AbortSignal;
|
|
79
|
+
/** Wall-clock budget in ms for reaching a terminal state. */
|
|
80
|
+
readonly deadlineMs?: number;
|
|
81
|
+
/** Maximum number of status polls before giving up. */
|
|
82
|
+
readonly maxAttempts?: number;
|
|
83
|
+
/** Base poll interval in ms (defaults to the adapter's cadence). */
|
|
84
|
+
readonly pollIntervalMs?: number;
|
|
85
|
+
/** Cap for the exponential backoff interval in ms. */
|
|
86
|
+
readonly maxPollIntervalMs?: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Canonical async-operation handle. Methods are intentionally narrow so
|
|
90
|
+
* downstream tickets that submit jobs (operator workflows, manifest
|
|
91
|
+
* apply, etc.) can speak one vocabulary across protocols.
|
|
92
|
+
*/
|
|
93
|
+
export interface IJobRun<T = unknown> {
|
|
94
|
+
/** Stable identifier assigned by the server when the job was accepted. */
|
|
95
|
+
readonly id: string;
|
|
96
|
+
/** Process / operation identifier, e.g. an OGC processId. */
|
|
97
|
+
readonly type: string;
|
|
98
|
+
/**
|
|
99
|
+
* Last-observed status. Backed by the most recent `poll()` /
|
|
100
|
+
* `status()` / `watch()` snapshot; reads are synchronous.
|
|
101
|
+
*/
|
|
102
|
+
readonly status: JobStatus;
|
|
103
|
+
/** Last-observed progress, if the server reported any. */
|
|
104
|
+
readonly progress: JobProgress | undefined;
|
|
105
|
+
/** Force a fresh server poll and return the resulting snapshot. */
|
|
106
|
+
poll(): Promise<JobSnapshot<T>>;
|
|
107
|
+
/**
|
|
108
|
+
* Subscribe to snapshot transitions. The callback fires on every
|
|
109
|
+
* observed status / progress change, and again on the terminal
|
|
110
|
+
* snapshot. Returns an unsubscribe handle.
|
|
111
|
+
*/
|
|
112
|
+
watch(listener: JobSnapshotListener<T>): () => void;
|
|
113
|
+
/**
|
|
114
|
+
* Wait for the job to reach a terminal state and resolve with the
|
|
115
|
+
* outputs. Rejects with `HonuaJobFailedError` for `failed` /
|
|
116
|
+
* `dismissed` terminal states, or `HonuaJobPollTimeoutError` when the
|
|
117
|
+
* optional {@link JobResultsOptions} deadline / attempt cap is reached or
|
|
118
|
+
* the supplied signal aborts. Implementations poll on a configurable
|
|
119
|
+
* interval (capped exponential backoff); the default cadence is left to
|
|
120
|
+
* the adapter.
|
|
121
|
+
*/
|
|
122
|
+
results(options?: JobResultsOptions): Promise<JobResult<T>>;
|
|
123
|
+
/**
|
|
124
|
+
* Cancel / dismiss the job. Idempotent. Returns the resulting status
|
|
125
|
+
* (typically `dismissed`, but the server may have raced to a terminal
|
|
126
|
+
* state already, in which case the original terminal status is
|
|
127
|
+
* returned).
|
|
128
|
+
*/
|
|
129
|
+
cancel(): Promise<JobStatus>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* `true` when the snapshot status is one of the terminal values
|
|
133
|
+
* (`successful`, `failed`, `dismissed`). Useful for stop conditions in
|
|
134
|
+
* watchers and tests.
|
|
135
|
+
*/
|
|
136
|
+
export declare function isJobTerminal(status: JobStatus): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Thrown by {@link IJobRun.results} when the poll loop is cancelled or exhausted
|
|
139
|
+
* before the job reached a terminal state — i.e. the {@link JobResultsOptions}
|
|
140
|
+
* signal aborted, the deadline elapsed, or the attempt cap was hit. `reason`
|
|
141
|
+
* distinguishes the three so callers can branch (e.g. retry vs surface).
|
|
142
|
+
*/
|
|
143
|
+
export declare class HonuaJobPollTimeoutError extends Error {
|
|
144
|
+
readonly reason: "aborted" | "deadline" | "max-attempts";
|
|
145
|
+
readonly jobId: string;
|
|
146
|
+
readonly lastStatus: JobStatus;
|
|
147
|
+
constructor(message: string, reason: "aborted" | "deadline" | "max-attempts", jobId: string, lastStatus: JobStatus);
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../../src/contract/jobs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,YAAY,GAAG,QAAQ,GAAG,WAAW,CAAC;AAEvF,+EAA+E;AAC/E,MAAM,WAAW,WAAW;IAC1B,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0DAA0D;IAC1D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,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AAC,MAAM,EAAE,SAAS,CAAC;IAC3B,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAC3C,mEAAmE;IACnE,IAAI,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC;;;;OAIG;IACH,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC;IACpD;;;;;;;;OAQG;IACH,OAAO,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D;;;;;OAKG;IACH,MAAM,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAExD;AAED;;;;;GAKG;AACH,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,SAAgB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,cAAc,CAAC;IAChE,SAAgB,KAAK,EAAE,MAAM,CAAC;IAC9B,SAAgB,UAAU,EAAE,SAAS,CAAC;gBAGpC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,cAAc,EAC/C,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS;CAQxB"}
|
package/contract/jobs.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical async-operation surface. `IJobRun` is the protocol-neutral
|
|
3
|
+
* vocabulary every long-running operation in the SDK speaks. It is the
|
|
4
|
+
* receipt returned from operations that complete asynchronously on the
|
|
5
|
+
* server (OGC API Processes execution, future GeoServices async export
|
|
6
|
+
* tickets, OData function imports, etc.).
|
|
7
|
+
*
|
|
8
|
+
* Per the ticket constraint, OGC Processes specifically must surface
|
|
9
|
+
* through this shared interface — there is no `OgcJobRun` top-level
|
|
10
|
+
* type. The implementation in `src/core/ogc-processes.ts` returns
|
|
11
|
+
* `IJobRun<T>` directly.
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
/**
|
|
16
|
+
* `true` when the snapshot status is one of the terminal values
|
|
17
|
+
* (`successful`, `failed`, `dismissed`). Useful for stop conditions in
|
|
18
|
+
* watchers and tests.
|
|
19
|
+
*/
|
|
20
|
+
export function isJobTerminal(status) {
|
|
21
|
+
return status === "successful" || status === "failed" || status === "dismissed";
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Thrown by {@link IJobRun.results} when the poll loop is cancelled or exhausted
|
|
25
|
+
* before the job reached a terminal state — i.e. the {@link JobResultsOptions}
|
|
26
|
+
* signal aborted, the deadline elapsed, or the attempt cap was hit. `reason`
|
|
27
|
+
* distinguishes the three so callers can branch (e.g. retry vs surface).
|
|
28
|
+
*/
|
|
29
|
+
export class HonuaJobPollTimeoutError extends Error {
|
|
30
|
+
reason;
|
|
31
|
+
jobId;
|
|
32
|
+
lastStatus;
|
|
33
|
+
constructor(message, reason, jobId, lastStatus) {
|
|
34
|
+
super(message);
|
|
35
|
+
this.name = "HonuaJobPollTimeoutError";
|
|
36
|
+
this.reason = reason;
|
|
37
|
+
this.jobId = jobId;
|
|
38
|
+
this.lastStatus = lastStatus;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in `Source` adapters that wrap the runtime classes in
|
|
3
|
+
* `src/core/surfaces.ts` (`HonuaFeatureLayer`, `HonuaMapLayer`,
|
|
4
|
+
* `HonuaOgcFeatureCollection`) and the OGC / STAC / WFS / WMS / OData
|
|
5
|
+
* adapters in `src/core/`. Consumers register adapters for any other
|
|
6
|
+
* protocol (MapLibre-native sources, etc.) via
|
|
7
|
+
* `CreateDatasetOptions.resolveSource`.
|
|
8
|
+
*
|
|
9
|
+
* These adapters do not reimplement query logic — they translate the
|
|
10
|
+
* canonical `Query` / `Result` envelope to and from the existing per-class
|
|
11
|
+
* request and response shapes.
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
import type { HonuaClient } from "../core/client.js";
|
|
16
|
+
import { HonuaOdataEntitySet } from "../core/odata.js";
|
|
17
|
+
import { HonuaOgcCollectionMap, HonuaOgcMaps } from "../core/ogc-maps.js";
|
|
18
|
+
import type { HonuaOgcProcesses } from "../core/ogc-processes.js";
|
|
19
|
+
import { HonuaOgcRecordCollection } from "../core/ogc-records.js";
|
|
20
|
+
import { HonuaOgcTiles, HonuaOgcTileset } from "../core/ogc-tiles.js";
|
|
21
|
+
import { HonuaStacSearch } from "../core/stac.js";
|
|
22
|
+
import { HonuaFeatureLayer, HonuaGeometryService, HonuaGeoprocessingService, HonuaImageService, HonuaMapLayer, HonuaMapService, HonuaOgcFeatureCollection } from "../core/surfaces.js";
|
|
23
|
+
import { HonuaWfsFeatureType } from "../core/wfs.js";
|
|
24
|
+
import { HonuaWms, HonuaWmsLayer } from "../core/wms.js";
|
|
25
|
+
import { HonuaWmts, HonuaWmtsLayer, HonuaWmtsTileset } from "../core/wmts.js";
|
|
26
|
+
import { type Capability, type CapabilityPolicy, type CreateDatasetOptions, type Dataset, type Protocol, type Source, type SourceDescriptor } from "./types.js";
|
|
27
|
+
/**
|
|
28
|
+
* Construct a protocol-neutral `Dataset` over a `HonuaClient`.
|
|
29
|
+
*
|
|
30
|
+
* A `Dataset` groups one or more `Source`s. Each `Source` accepts a protocol-neutral
|
|
31
|
+
* `Query` and returns a protocol-neutral `Result`. The dataset is the cross-protocol
|
|
32
|
+
* unit of work: a single `Dataset` can mix GeoServices FeatureServer, OGC API Features,
|
|
33
|
+
* WFS, STAC, and OData sources under one capability policy.
|
|
34
|
+
*
|
|
35
|
+
* `Source` handles are constructed lazily, server compatibility is checked once per
|
|
36
|
+
* dataset (and cached on the underlying client), and capability gaps surface as
|
|
37
|
+
* {@link HonuaCapabilityNotSupportedError} under the default `"strict"` policy rather
|
|
38
|
+
* than silently returning empty results.
|
|
39
|
+
*
|
|
40
|
+
* Operations the canonical surface does not cover stay reachable through the typed
|
|
41
|
+
* `source.protocol(...)` escape hatch (e.g. ImageServer `exportImage`, GeometryServer
|
|
42
|
+
* `project`, GPServer `submitJob`, WFS `LockFeature`).
|
|
43
|
+
*
|
|
44
|
+
* @param options - The dataset id, the `HonuaClient` to talk to, the list of
|
|
45
|
+
* `SourceDescriptor`s, and (optionally) `capabilityPolicy` and a custom
|
|
46
|
+
* `resolveSource` factory.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* import { createDataset, PROTOCOL_DEFAULT_CAPABILITIES } from "@honua/sdk-js/contract";
|
|
51
|
+
* import { HonuaClient } from "@honua/sdk-js/honua";
|
|
52
|
+
*
|
|
53
|
+
* const client = new HonuaClient({ baseUrl: "https://your-honua-server.example" });
|
|
54
|
+
*
|
|
55
|
+
* const dataset = createDataset({
|
|
56
|
+
* id: "parcels",
|
|
57
|
+
* client,
|
|
58
|
+
* sources: [
|
|
59
|
+
* {
|
|
60
|
+
* id: "parcels-fs",
|
|
61
|
+
* protocol: "geoservices-feature-service",
|
|
62
|
+
* locator: { url: "https://your-honua-server.example", serviceId: "parcels", layerId: 0 },
|
|
63
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-feature-service"],
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* });
|
|
67
|
+
*
|
|
68
|
+
* const parcels = dataset.source("parcels-fs")!;
|
|
69
|
+
* const result = await parcels.queryAll({
|
|
70
|
+
* where: "STATUS = 'ACTIVE'",
|
|
71
|
+
* outFields: ["OBJECTID", "NAME"],
|
|
72
|
+
* returnGeometry: true,
|
|
73
|
+
* pagination: { limit: 500 },
|
|
74
|
+
* });
|
|
75
|
+
*
|
|
76
|
+
* console.log(`Loaded ${result.features.length} features`);
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
export declare function createDataset(options: CreateDatasetOptions): Dataset;
|
|
80
|
+
/**
|
|
81
|
+
* Adapter factory for a GeoServices FeatureServer layer.
|
|
82
|
+
*
|
|
83
|
+
* Used internally by {@link createDataset} when it sees a descriptor with
|
|
84
|
+
* `protocol: "geoservices-feature-service"`. Calling it directly is rarely
|
|
85
|
+
* necessary; pass the descriptor to `createDataset` instead.
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```ts
|
|
89
|
+
* const dataset = createDataset({
|
|
90
|
+
* id: "parcels",
|
|
91
|
+
* client,
|
|
92
|
+
* sources: [{
|
|
93
|
+
* id: "parcels-fs",
|
|
94
|
+
* protocol: "geoservices-feature-service",
|
|
95
|
+
* locator: { url: "https://your-honua-server.example", serviceId: "parcels", layerId: 0 },
|
|
96
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-feature-service"],
|
|
97
|
+
* }],
|
|
98
|
+
* });
|
|
99
|
+
* const result = await dataset.source("parcels-fs")!.queryAll({
|
|
100
|
+
* where: "STATUS = 'ACTIVE'",
|
|
101
|
+
* outFields: ["OBJECTID", "NAME"],
|
|
102
|
+
* });
|
|
103
|
+
* ```
|
|
104
|
+
*/
|
|
105
|
+
export declare function geoServicesFeatureSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Adapter factory for a GeoServices MapServer layer.
|
|
108
|
+
*
|
|
109
|
+
* Reach `Source.protocol("geoservices-map-service")` for raw `exportImage` /
|
|
110
|
+
* `identify` / `find` access; the canonical `query()` runs against a single
|
|
111
|
+
* sublayer via the MapServer query endpoint.
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```ts
|
|
115
|
+
* const dataset = createDataset({
|
|
116
|
+
* id: "basemap",
|
|
117
|
+
* client,
|
|
118
|
+
* sources: [{
|
|
119
|
+
* id: "states-mapserver",
|
|
120
|
+
* protocol: "geoservices-map-service",
|
|
121
|
+
* locator: { url: "https://your-honua-server.example", serviceId: "states", layerId: 0 },
|
|
122
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-map-service"],
|
|
123
|
+
* }],
|
|
124
|
+
* });
|
|
125
|
+
* ```
|
|
126
|
+
*/
|
|
127
|
+
export declare function geoServicesMapServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
128
|
+
/**
|
|
129
|
+
* Adapter factory for an OGC API Features collection.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* ```ts
|
|
133
|
+
* const dataset = createDataset({
|
|
134
|
+
* id: "addresses",
|
|
135
|
+
* client,
|
|
136
|
+
* sources: [{
|
|
137
|
+
* id: "addresses-ogc",
|
|
138
|
+
* protocol: "ogc-features",
|
|
139
|
+
* locator: { url: "https://your-honua-server.example", collectionId: "addresses" },
|
|
140
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES["ogc-features"],
|
|
141
|
+
* }],
|
|
142
|
+
* });
|
|
143
|
+
* const result = await dataset.source("addresses-ogc")!.queryAll({
|
|
144
|
+
* where: "city = 'Honolulu'",
|
|
145
|
+
* pagination: { limit: 200 },
|
|
146
|
+
* });
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
149
|
+
export declare function ogcFeaturesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
150
|
+
/**
|
|
151
|
+
* Build a `Source` over an Esri-style ImageServer endpoint. The query
|
|
152
|
+
* surface drives the raster catalog (each row is a raster with footprint
|
|
153
|
+
* geometry); image export, identify, and tile operations live behind
|
|
154
|
+
* `Source.protocol("geoservices-image-service")`.
|
|
155
|
+
*
|
|
156
|
+
* @example
|
|
157
|
+
* ```ts
|
|
158
|
+
* const dataset = createDataset({
|
|
159
|
+
* id: "imagery",
|
|
160
|
+
* client,
|
|
161
|
+
* sources: [{
|
|
162
|
+
* id: "naip",
|
|
163
|
+
* protocol: "geoservices-image-service",
|
|
164
|
+
* locator: { url: "https://your-honua-server.example", serviceId: "naip" },
|
|
165
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES["geoservices-image-service"],
|
|
166
|
+
* }],
|
|
167
|
+
* });
|
|
168
|
+
* const img = dataset.source("naip")!.protocol("geoservices-image-service");
|
|
169
|
+
* const png = await img?.exportImage({ bbox: [-158.5, 21.2, -157.6, 21.7], size: [512, 512] });
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
export declare function geoServicesImageSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
173
|
+
/**
|
|
174
|
+
* Build a `Source` over an Esri-style Geometry Service endpoint. Geometry
|
|
175
|
+
* Service is a stateless utility — it does not host features — so the
|
|
176
|
+
* query family throws `HonuaCapabilityNotSupportedError` and operations
|
|
177
|
+
* (buffer, project, simplify, etc.) live behind
|
|
178
|
+
* `Source.protocol("geoservices-geometry-service")`.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* ```ts
|
|
182
|
+
* const geom = dataset.source("geom")!.protocol("geoservices-geometry-service");
|
|
183
|
+
* const projected = await geom?.project({
|
|
184
|
+
* inSr: 4326,
|
|
185
|
+
* outSr: 3857,
|
|
186
|
+
* geometries: [{ x: -158, y: 21 }],
|
|
187
|
+
* });
|
|
188
|
+
* ```
|
|
189
|
+
*/
|
|
190
|
+
export declare function geoServicesGeometryServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
191
|
+
/**
|
|
192
|
+
* Build a `Source` over an Esri-style GP (geoprocessing) service. GP
|
|
193
|
+
* services run async tasks rather than hosting features; the canonical
|
|
194
|
+
* feature surface throws and task submission / status / result lookup
|
|
195
|
+
* live behind `Source.protocol("geoservices-gp-service")`.
|
|
196
|
+
*
|
|
197
|
+
* @example
|
|
198
|
+
* ```ts
|
|
199
|
+
* const gp = dataset.source("buffer-task")!.protocol("geoservices-gp-service");
|
|
200
|
+
* const job = await gp!.submitJob({ inputs: { distance: 500 } });
|
|
201
|
+
* const result = await gp!.awaitJobResult(job.jobId);
|
|
202
|
+
* ```
|
|
203
|
+
*/
|
|
204
|
+
export declare function geoServicesGPServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
205
|
+
/**
|
|
206
|
+
* Render-only Source adapter for OGC API Tiles. The query family throws
|
|
207
|
+
* `HonuaCapabilityNotSupportedError` (the conformance class is
|
|
208
|
+
* tile-fetch, not feature-query); rendering integrations consume the
|
|
209
|
+
* tileset through `Source.protocol("ogc-tiles")` to reach the underlying
|
|
210
|
+
* runtime class.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* const tiles = dataset.source("ogc-tileset")!.protocol("ogc-tiles");
|
|
215
|
+
* const bytes = await tiles!.tile({ tileMatrix: "WebMercatorQuad", tileRow: 5, tileCol: 8 });
|
|
216
|
+
* ```
|
|
217
|
+
*/
|
|
218
|
+
export declare function ogcTilesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
219
|
+
/**
|
|
220
|
+
* Render-only Source adapter for OGC API Maps. Same shape as the Tiles
|
|
221
|
+
* adapter — `Source.protocol("ogc-maps")` exposes the runtime class for
|
|
222
|
+
* server-rendered map images; the canonical query family throws.
|
|
223
|
+
*
|
|
224
|
+
* @example
|
|
225
|
+
* ```ts
|
|
226
|
+
* const maps = dataset.source("ogc-map")!.protocol("ogc-maps");
|
|
227
|
+
* const png = await maps!.map({ bbox: [-158, 21, -157, 22], width: 512, height: 512 });
|
|
228
|
+
* ```
|
|
229
|
+
*/
|
|
230
|
+
export declare function ogcMapsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
231
|
+
/**
|
|
232
|
+
* Metadata-catalog Source adapter for OGC API Records. The canonical query
|
|
233
|
+
* family searches one catalog (`locator.collectionId`, the Records
|
|
234
|
+
* collection/catalog id) and returns record documents as typed features.
|
|
235
|
+
* Records-specific search affordances (`q`, `type`, `externalIds`,
|
|
236
|
+
* `profile`, raw HTML/JSON access) live on `Source.protocol("ogc-records")`.
|
|
237
|
+
*
|
|
238
|
+
* @example
|
|
239
|
+
* ```ts
|
|
240
|
+
* const records = dataset.source("catalog")!;
|
|
241
|
+
* const result = await records.query({ where: "type = 'dataset' AND q = 'parcels'" });
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
export declare function ogcRecordsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
245
|
+
/**
|
|
246
|
+
* `Source` adapter for first-party WMS 1.3.0 services. The render path
|
|
247
|
+
* routes through `HonuaWms` / `HonuaWmsLayer` (both of which sit
|
|
248
|
+
* behind the canonical `Source.protocol("wms" | "wms-layer")` escape
|
|
249
|
+
* hatch); `Source.query()` translates a point spatial filter into a
|
|
250
|
+
* `GetFeatureInfo` call. Non-point queries throw
|
|
251
|
+
* `HonuaCapabilityNotSupportedError` so the canonical query envelope
|
|
252
|
+
* stays honest — multi-pixel feature info lives on
|
|
253
|
+
* `Source.protocol("wms").featureInfo()`.
|
|
254
|
+
*/
|
|
255
|
+
/**
|
|
256
|
+
* Adapter factory for a WMS 1.3.0 endpoint.
|
|
257
|
+
*
|
|
258
|
+
* The canonical `Source.query()` is implemented through point-only
|
|
259
|
+
* `GetFeatureInfo`. Reach `Source.protocol("wms")` for raw `GetMap` /
|
|
260
|
+
* `GetLegendGraphic` access (with TIME / ELEVATION dimension handling and
|
|
261
|
+
* CRS axis-order swap per WMS 1.3 §6.7.3.2).
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```ts
|
|
265
|
+
* const wms = dataset.source("usgs-imagery")!.protocol("wms");
|
|
266
|
+
* const png = await wms!.getMap({
|
|
267
|
+
* layers: ["topo"], bbox: [-158, 21, -157, 22], crs: "EPSG:4326",
|
|
268
|
+
* width: 512, height: 512,
|
|
269
|
+
* });
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
export declare function wmsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
273
|
+
/**
|
|
274
|
+
* Render-only `Source` adapter for first-party WMTS 1.0.0 services.
|
|
275
|
+
* `Source.query()` throws because WMTS GetFeatureInfo is keyed on tile
|
|
276
|
+
* pixels (not a canonical spatial filter); raw access lives on
|
|
277
|
+
* `Source.protocol("wmts" | "wmts-layer" | "wmts-tileset")`.
|
|
278
|
+
*/
|
|
279
|
+
/**
|
|
280
|
+
* Adapter factory for a WMTS 1.0.0 endpoint. Render-only; `Source.query()`
|
|
281
|
+
* throws `HonuaCapabilityNotSupportedError`. Reach `Source.protocol("wmts")`
|
|
282
|
+
* for RESTful + KVP tile fetch and capabilities.
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* ```ts
|
|
286
|
+
* const wmts = dataset.source("basemap-tiles")!.protocol("wmts");
|
|
287
|
+
* const tile = await wmts!.tile({ tileMatrixSet: "WebMercatorQuad", tileMatrix: "8", tileRow: 5, tileCol: 8 });
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
export declare function wmtsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
291
|
+
/**
|
|
292
|
+
* Adapter factory for a STAC API search endpoint.
|
|
293
|
+
*
|
|
294
|
+
* The canonical `Source.query()` runs a `POST /search` against the STAC root,
|
|
295
|
+
* with `Query.spatialFilter` (e.g. an `envelope(...)` bounding box) and
|
|
296
|
+
* `Query.where` translated into STAC's `bbox` / `datetime` / `filter`
|
|
297
|
+
* parameters.
|
|
298
|
+
*
|
|
299
|
+
* @example
|
|
300
|
+
* ```ts
|
|
301
|
+
* import { envelope } from "@honua/sdk-js";
|
|
302
|
+
*
|
|
303
|
+
* const dataset = createDataset({
|
|
304
|
+
* id: "imagery",
|
|
305
|
+
* client,
|
|
306
|
+
* sources: [{
|
|
307
|
+
* id: "stac-search",
|
|
308
|
+
* protocol: "stac",
|
|
309
|
+
* locator: { url: "https://your-honua-server.example/stac" },
|
|
310
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES.stac,
|
|
311
|
+
* }],
|
|
312
|
+
* });
|
|
313
|
+
* const result = await dataset.source("stac-search")!.query({
|
|
314
|
+
* where: "collections IN ('landsat-c2-l2')",
|
|
315
|
+
* spatialFilter: envelope(-158.5, 21.2, -157.6, 21.7),
|
|
316
|
+
* });
|
|
317
|
+
* ```
|
|
318
|
+
*/
|
|
319
|
+
export declare function stacSearchSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
320
|
+
/**
|
|
321
|
+
* Adapter factory for a WFS 2.0 endpoint.
|
|
322
|
+
*
|
|
323
|
+
* `Query.where` and `Query.spatialFilter` compile to FES 2.0; GeoJSON is
|
|
324
|
+
* preferred over GML via `OperationsMetadata` negotiation. `applyEdits()`
|
|
325
|
+
* builds `<wfs:Transaction>` bodies. Reach `Source.protocol("wfs")` for raw
|
|
326
|
+
* GML / `LockFeature` / stored-query access.
|
|
327
|
+
*
|
|
328
|
+
* @example
|
|
329
|
+
* ```ts
|
|
330
|
+
* const dataset = createDataset({
|
|
331
|
+
* id: "wfs-parcels",
|
|
332
|
+
* client,
|
|
333
|
+
* sources: [{
|
|
334
|
+
* id: "parcels",
|
|
335
|
+
* protocol: "wfs",
|
|
336
|
+
* locator: { url: "https://your-honua-server.example/wfs", typeName: "ns:Parcels" },
|
|
337
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES.wfs,
|
|
338
|
+
* }],
|
|
339
|
+
* });
|
|
340
|
+
* const result = await dataset.source("parcels")!.queryAll({
|
|
341
|
+
* where: "STATUS = 'ACTIVE'",
|
|
342
|
+
* pagination: { limit: 500 },
|
|
343
|
+
* });
|
|
344
|
+
* ```
|
|
345
|
+
*/
|
|
346
|
+
export declare function wfsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
347
|
+
/**
|
|
348
|
+
* Build a `Source` over an OData v4 entity set. The `Query` translation
|
|
349
|
+
* lowers `where` / `outFields` / `orderBy` / pagination / spatial filter
|
|
350
|
+
* onto OData's `$`-prefixed query options. Dialect-specific operations
|
|
351
|
+
* (`$batch`, `$apply`, `$search`, `$deltatoken`) live behind
|
|
352
|
+
* `Source.protocol("odata")` on the returned `HonuaOdataEntitySet`.
|
|
353
|
+
*
|
|
354
|
+
* `$metadata` is fetched lazily on the first call that needs it and
|
|
355
|
+
* cached on the entity-set instance. The fetched capability annotations
|
|
356
|
+
* are intersected with the descriptor's declared `Capabilities` set the
|
|
357
|
+
* first time a capability-gated method is invoked — this is the
|
|
358
|
+
* precedent for the metadata-driven downgrade pattern referenced in
|
|
359
|
+
* `docs/shared-client-contract.md`.
|
|
360
|
+
*/
|
|
361
|
+
/**
|
|
362
|
+
* Adapter factory for an OData v4 entity set.
|
|
363
|
+
*
|
|
364
|
+
* `Query.where` compiles to OData `$filter`, `Query.outFields` becomes
|
|
365
|
+
* `$select`, `Query.orderBy` becomes `$orderby`, and `Query.pagination`
|
|
366
|
+
* becomes `$top`/`$skip`. Geospatial filters translate to OData's
|
|
367
|
+
* `geo.intersects` / `geo.distance` family.
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* ```ts
|
|
371
|
+
* const dataset = createDataset({
|
|
372
|
+
* id: "incidents",
|
|
373
|
+
* client,
|
|
374
|
+
* sources: [{
|
|
375
|
+
* id: "incidents",
|
|
376
|
+
* protocol: "odata",
|
|
377
|
+
* locator: { url: "https://your-honua-server.example/odata", entitySet: "Incidents" },
|
|
378
|
+
* capabilities: PROTOCOL_DEFAULT_CAPABILITIES.odata,
|
|
379
|
+
* }],
|
|
380
|
+
* });
|
|
381
|
+
* const result = await dataset.source("incidents")!.queryAll({
|
|
382
|
+
* where: "Severity ge 3",
|
|
383
|
+
* orderBy: [{ field: "ReportedAt", direction: "desc" }],
|
|
384
|
+
* pagination: { limit: 100 },
|
|
385
|
+
* });
|
|
386
|
+
* ```
|
|
387
|
+
*/
|
|
388
|
+
export declare function odataSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
389
|
+
/**
|
|
390
|
+
* Declare the shipped adapter → runtime-class bindings so
|
|
391
|
+
* `Source.adapter("geoservices-feature-service")` et al. narrow to the
|
|
392
|
+
* right class instead of collapsing to `unknown`. Downstream adapter
|
|
393
|
+
* tickets that ship outside this module add their own augmentations in
|
|
394
|
+
* their own modules.
|
|
395
|
+
*/
|
|
396
|
+
declare module "./types.js" {
|
|
397
|
+
interface AdapterTypeMap {
|
|
398
|
+
"geoservices-feature-service": HonuaFeatureLayer;
|
|
399
|
+
"geoservices-map-service": HonuaMapService;
|
|
400
|
+
"geoservices-map-layer": HonuaMapLayer;
|
|
401
|
+
"geoservices-image-service": HonuaImageService;
|
|
402
|
+
"geoservices-geometry-service": HonuaGeometryService;
|
|
403
|
+
"geoservices-gp-service": HonuaGeoprocessingService;
|
|
404
|
+
"ogc-features": HonuaOgcFeatureCollection;
|
|
405
|
+
"ogc-tiles": HonuaOgcTileset | HonuaOgcTiles;
|
|
406
|
+
"ogc-maps": HonuaOgcMaps | HonuaOgcCollectionMap;
|
|
407
|
+
"ogc-records": HonuaOgcRecordCollection;
|
|
408
|
+
"ogc-processes": HonuaOgcProcesses;
|
|
409
|
+
stac: HonuaStacSearch;
|
|
410
|
+
wfs: HonuaWfsFeatureType;
|
|
411
|
+
wms: HonuaWms;
|
|
412
|
+
"wms-layer": HonuaWmsLayer;
|
|
413
|
+
wmts: HonuaWmts;
|
|
414
|
+
"wmts-layer": HonuaWmtsLayer;
|
|
415
|
+
"wmts-tileset": HonuaWmtsTileset;
|
|
416
|
+
odata: HonuaOdataEntitySet;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
/** Sentinel: `Capabilities` set that contains every defined capability. */
|
|
420
|
+
export declare const ALL_CAPABILITIES: ReadonlySet<Capability>;
|
|
421
|
+
/** Tag a `Protocol` as "first-party-supported by this build". */
|
|
422
|
+
export declare const FIRST_PARTY_PROTOCOLS: ReadonlySet<Protocol>;
|
|
423
|
+
//# sourceMappingURL=source.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.d.ts","sourceRoot":"","sources":["../../../src/contract/source.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAIL,mBAAmB,EAOpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,eAAe,EACf,yBAAyB,EAE1B,MAAM,qBAAqB,CAAC;AAqB7B,OAAO,EAAY,mBAAmB,EAA2B,MAAM,gBAAgB,CAAC;AACxF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAsB,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC9E,OAAO,EAeL,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EAOZ,KAAK,QAAQ,EAMb,KAAK,MAAM,EACX,KAAK,gB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