@honua/sdk-esri-compat 0.0.6-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/README.md +5 -0
- package/contract/edit-session.d.ts +203 -0
- package/contract/edit-session.d.ts.map +1 -0
- package/contract/edit-session.js +717 -0
- package/contract/index.d.ts +20 -0
- package/contract/index.d.ts.map +1 -0
- package/contract/index.js +15 -0
- package/contract/jobs.d.ts +115 -0
- package/contract/jobs.d.ts.map +1 -0
- package/contract/jobs.js +22 -0
- package/contract/source.d.ts +138 -0
- package/contract/source.d.ts.map +1 -0
- package/contract/source.js +3364 -0
- package/contract/spatial-aggregation.d.ts +312 -0
- package/contract/spatial-aggregation.d.ts.map +1 -0
- package/contract/spatial-aggregation.js +196 -0
- package/contract/types.d.ts +542 -0
- package/contract/types.d.ts.map +1 -0
- package/contract/types.js +171 -0
- package/core/batch.d.ts +37 -0
- package/core/batch.d.ts.map +1 -0
- package/core/batch.js +78 -0
- package/core/cache-state.d.ts +76 -0
- package/core/cache-state.d.ts.map +1 -0
- package/core/cache-state.js +84 -0
- package/core/client.d.ts +289 -0
- package/core/client.d.ts.map +1 -0
- package/core/client.js +2625 -0
- package/core/errors.d.ts +68 -0
- package/core/errors.d.ts.map +1 -0
- package/core/errors.js +116 -0
- package/core/grpc-adapter.d.ts +23 -0
- package/core/grpc-adapter.d.ts.map +1 -0
- package/core/grpc-adapter.js +704 -0
- package/core/odata.d.ts +347 -0
- package/core/odata.d.ts.map +1 -0
- package/core/odata.js +837 -0
- package/core/ogc-conformance.d.ts +35 -0
- package/core/ogc-conformance.d.ts.map +1 -0
- package/core/ogc-conformance.js +121 -0
- package/core/ogc-maps.d.ts +45 -0
- package/core/ogc-maps.d.ts.map +1 -0
- package/core/ogc-maps.js +53 -0
- package/core/ogc-processes.d.ts +92 -0
- package/core/ogc-processes.d.ts.map +1 -0
- package/core/ogc-processes.js +325 -0
- package/core/ogc-tiles.d.ts +55 -0
- package/core/ogc-tiles.d.ts.map +1 -0
- package/core/ogc-tiles.js +81 -0
- package/core/pbf-decoder.d.ts +28 -0
- package/core/pbf-decoder.d.ts.map +1 -0
- package/core/pbf-decoder.js +627 -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/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 +43 -0
- package/core/stac.d.ts.map +1 -0
- package/core/stac.js +116 -0
- package/core/surfaces.d.ts +464 -0
- package/core/surfaces.d.ts.map +1 -0
- package/core/surfaces.js +1322 -0
- package/core/types.d.ts +1238 -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 +586 -0
- package/core/wfs.d.ts +219 -0
- package/core/wfs.d.ts.map +1 -0
- package/core/wfs.js +406 -0
- package/core/wms-capabilities.d.ts +110 -0
- package/core/wms-capabilities.d.ts.map +1 -0
- package/core/wms-capabilities.js +566 -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 +108 -0
- package/core/wms.d.ts.map +1 -0
- package/core/wms.js +182 -0
- package/core/wmts-capabilities.d.ts +82 -0
- package/core/wmts-capabilities.d.ts.map +1 -0
- package/core/wmts-capabilities.js +409 -0
- package/core/wmts.d.ts +80 -0
- package/core/wmts.d.ts.map +1 -0
- package/core/wmts.js +173 -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 +66 -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-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 +655 -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/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/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 +704 -0
- package/esri-compat/map-view.d.ts +315 -0
- package/esri-compat/map-view.d.ts.map +1 -0
- package/esri-compat/map-view.js +1110 -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 +46 -0
- package/esri-compat/query.d.ts.map +1 -0
- package/esri-compat/query.js +119 -0
- package/esri-compat/reactive-utils.d.ts +23 -0
- package/esri-compat/reactive-utils.d.ts.map +1 -0
- package/esri-compat/reactive-utils.js +178 -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 +167 -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 +12 -0
- package/esri-compat/url.d.ts.map +1 -0
- package/esri-compat/url.js +54 -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/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/index.d.ts +130 -0
- package/index.js +65 -0
- package/package.json +22 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared client contract — canonical types and source factories that all
|
|
3
|
+
* protocol adapters speak. Re-exported from `@honua/sdk-js/contract`.
|
|
4
|
+
*
|
|
5
|
+
* The runtime classes in `src/core/surfaces.ts` remain the implementation;
|
|
6
|
+
* this module is the protocol-neutral vocabulary layered over them. See
|
|
7
|
+
* `docs/shared-client-contract.md` for the full design.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
export type { AdapterFor, AdapterKind, AdapterTypeMap, AggregationFn, AggregationMetric, AggregationSpec, AttachmentAdd, AttachmentApi, AttachmentDelete, AttachmentEditOutcome, AttachmentGroup, AttachmentInfo, AttachmentQuery, AttachmentUpdate, CanonicalFeature, Capabilities, Capability, CapabilityPolicy, CreateDatasetOptions, Dataset, DatasetId, DegradedReason, EditEnvelope, EditOutcome, EditResult, FeatureId, MapBinding, PaginationSpec, Protocol, Query, RelatedGroup, RelatedQuery, RelatedResult, ResolveSourceContext, Result, SortSpec, Source, SourceDescriptor, SourceId, SourceLocator, SourceResolver, SourceSchema, } from "./types.js";
|
|
12
|
+
export type { SpatialAggregationCacheMetadata, SpatialAggregationCategoryBucket, SpatialAggregationCategorySummarySpec, SpatialAggregationCategoryValue, SpatialAggregationCell, SpatialAggregationCellGeometry, SpatialAggregationContractFixture, SpatialAggregationCountSummarySpec, SpatialAggregationCountValue, SpatialAggregationDomainValue, SpatialAggregationGroupByMetadata, SpatialAggregationGroupBySpec, SpatialAggregationGroupedSummary, SpatialAggregationHistogramBucket, SpatialAggregationHistogramSummarySpec, SpatialAggregationHistogramValue, SpatialAggregationInclude, SpatialAggregationIndexModelMetadata, SpatialAggregationIndexSelection, SpatialAggregationIndexState, SpatialAggregationMetadata, SpatialAggregationMetricKind, SpatialAggregationMetricSummarySpec, SpatialAggregationMetricValue, SpatialAggregationPageInfo, SpatialAggregationPageRequest, SpatialAggregationProgressRefinement, SpatialAggregationProgressStatus, SpatialAggregationProgressiveState, SpatialAggregationRangeBucketSpec, SpatialAggregationRangeBucketValue, SpatialAggregationRangeSummarySpec, SpatialAggregationRangeValue, SpatialAggregationRequest, SpatialAggregationResolutionInput, SpatialAggregationResult, SpatialAggregationSummaryBag, SpatialAggregationSummaryBase, SpatialAggregationSummaryKind, SpatialAggregationSummaryMetadata, SpatialAggregationSummarySpec, SpatialAggregationSummaryValue, SpatialAggregationValidationIssue, SpatialAggregationValueType, SpatialAggregationViewport, SpatialAggregationWidgetKind, SpatialAggregationWidgetMetadata, } from "./spatial-aggregation.js";
|
|
13
|
+
export { CAPABILITIES, PROTOCOL_DEFAULT_CAPABILITIES, PROTOCOLS, capabilities, intersectCapabilities, unionCapabilities, } from "./types.js";
|
|
14
|
+
export { EditWorkflowSession, createEditSession, normalizeEditWorkflowFailures } from "./edit-session.js";
|
|
15
|
+
export type { CreateEditSessionOptions, EditAttachmentMutation, EditAttachmentMutationOutcome, EditFieldDomain, EditFieldDomainCodedValue, EditWorkflowCapabilityState, EditWorkflowCapabilitySummary, EditWorkflowConflictInfo, EditWorkflowConflictState, EditWorkflowFailure, EditWorkflowFailureKind, EditWorkflowField, EditWorkflowKind, EditWorkflowMetadata, EditWorkflowMetadataOptions, EditWorkflowOperation, EditWorkflowOptimisticHooks, EditWorkflowRelationship, EditWorkflowSnapshot, EditWorkflowStatus, EditWorkflowSubmitResult, EditWorkflowValidationError, EditWorkflowValidationResult, NormalizeEditWorkflowFailuresOptions, } from "./edit-session.js";
|
|
16
|
+
export { SPATIAL_AGGREGATION_CAPABILITY, SPATIAL_AGGREGATION_METADATA_SCHEMA_VERSION, SPATIAL_AGGREGATION_SCHEMA_VERSION, assertValidSpatialAggregationRequest, isSpatialAggregationComplete, spatialAggregationProgress, spatialAggregationSummaryKindRequiresField, spatialAggregationWidgets, validateSpatialAggregationRequest, } from "./spatial-aggregation.js";
|
|
17
|
+
export { ALL_CAPABILITIES, FIRST_PARTY_PROTOCOLS, createDataset, geoServicesFeatureSource, geoServicesGPServiceSource, geoServicesGeometryServiceSource, geoServicesImageSource, geoServicesMapServiceSource, odataSource, ogcFeaturesSource, ogcTilesSource, ogcMapsSource, stacSearchSource, wfsSource, wmsSource, wmtsSource, } from "./source.js";
|
|
18
|
+
export type { IJobRun, JobError, JobProgress, JobResult, JobSnapshot, JobSnapshotListener, JobStatus, } from "./jobs.js";
|
|
19
|
+
export { isJobTerminal } from "./jobs.js";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/contract/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,UAAU,EACV,WAAW,EACX,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EAC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BAAwB,EACxB,sBAAsB,EACtB,6BAA6B,EAC7B,eAAe,EACf,yBAAyB,EACzB,2BAA2B,EAC3B,6BAA6B,EAC7B,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,oBAAoB,EACpB,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,wBAAwB,EACxB,2BAA2B,EAC3B,4BAA4B,EAC5B,oCAAoC,GACrC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,8BAA8B,EAC9B,2CAA2C,EAC3C,kCAAkC,EAClC,oCAAoC,EACpC,4BAA4B,EAC5B,0BAA0B,EAC1B,0CAA0C,EAC1C,yBAAyB,EACzB,iCAAiC,GAClC,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,gCAAgC,EAChC,sBAAsB,EACtB,2BAA2B,EAC3B,WAAW,EACX,iBAAiB,EACjB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,UAAU,GACX,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,SAAS,EACT,WAAW,EACX,mBAAmB,EACnB,SAAS,GACV,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared client contract — canonical types and source factories that all
|
|
3
|
+
* protocol adapters speak. Re-exported from `@honua/sdk-js/contract`.
|
|
4
|
+
*
|
|
5
|
+
* The runtime classes in `src/core/surfaces.ts` remain the implementation;
|
|
6
|
+
* this module is the protocol-neutral vocabulary layered over them. See
|
|
7
|
+
* `docs/shared-client-contract.md` for the full design.
|
|
8
|
+
*
|
|
9
|
+
* @module
|
|
10
|
+
*/
|
|
11
|
+
export { CAPABILITIES, PROTOCOL_DEFAULT_CAPABILITIES, PROTOCOLS, capabilities, intersectCapabilities, unionCapabilities, } from "./types.js";
|
|
12
|
+
export { EditWorkflowSession, createEditSession, normalizeEditWorkflowFailures } from "./edit-session.js";
|
|
13
|
+
export { SPATIAL_AGGREGATION_CAPABILITY, SPATIAL_AGGREGATION_METADATA_SCHEMA_VERSION, SPATIAL_AGGREGATION_SCHEMA_VERSION, assertValidSpatialAggregationRequest, isSpatialAggregationComplete, spatialAggregationProgress, spatialAggregationSummaryKindRequiresField, spatialAggregationWidgets, validateSpatialAggregationRequest, } from "./spatial-aggregation.js";
|
|
14
|
+
export { ALL_CAPABILITIES, FIRST_PARTY_PROTOCOLS, createDataset, geoServicesFeatureSource, geoServicesGPServiceSource, geoServicesGeometryServiceSource, geoServicesImageSource, geoServicesMapServiceSource, odataSource, ogcFeaturesSource, ogcTilesSource, ogcMapsSource, stacSearchSource, wfsSource, wmsSource, wmtsSource, } from "./source.js";
|
|
15
|
+
export { isJobTerminal } from "./jobs.js";
|
|
@@ -0,0 +1,115 @@
|
|
|
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
|
+
* Canonical async-operation handle. Methods are intentionally narrow so
|
|
71
|
+
* downstream tickets that submit jobs (operator workflows, manifest
|
|
72
|
+
* apply, etc.) can speak one vocabulary across protocols.
|
|
73
|
+
*/
|
|
74
|
+
export interface IJobRun<T = unknown> {
|
|
75
|
+
/** Stable identifier assigned by the server when the job was accepted. */
|
|
76
|
+
readonly id: string;
|
|
77
|
+
/** Process / operation identifier, e.g. an OGC processId. */
|
|
78
|
+
readonly type: string;
|
|
79
|
+
/**
|
|
80
|
+
* Last-observed status. Backed by the most recent `poll()` /
|
|
81
|
+
* `status()` / `watch()` snapshot; reads are synchronous.
|
|
82
|
+
*/
|
|
83
|
+
readonly status: JobStatus;
|
|
84
|
+
/** Last-observed progress, if the server reported any. */
|
|
85
|
+
readonly progress: JobProgress | undefined;
|
|
86
|
+
/** Force a fresh server poll and return the resulting snapshot. */
|
|
87
|
+
poll(): Promise<JobSnapshot<T>>;
|
|
88
|
+
/**
|
|
89
|
+
* Subscribe to snapshot transitions. The callback fires on every
|
|
90
|
+
* observed status / progress change, and again on the terminal
|
|
91
|
+
* snapshot. Returns an unsubscribe handle.
|
|
92
|
+
*/
|
|
93
|
+
watch(listener: JobSnapshotListener<T>): () => void;
|
|
94
|
+
/**
|
|
95
|
+
* Wait for the job to reach a terminal state and resolve with the
|
|
96
|
+
* outputs. Rejects with `HonuaJobFailedError` for `failed` /
|
|
97
|
+
* `dismissed` terminal states. Implementations must poll on a
|
|
98
|
+
* configurable interval; the default cadence is left to the adapter.
|
|
99
|
+
*/
|
|
100
|
+
results(): Promise<JobResult<T>>;
|
|
101
|
+
/**
|
|
102
|
+
* Cancel / dismiss the job. Idempotent. Returns the resulting status
|
|
103
|
+
* (typically `dismissed`, but the server may have raced to a terminal
|
|
104
|
+
* state already, in which case the original terminal status is
|
|
105
|
+
* returned).
|
|
106
|
+
*/
|
|
107
|
+
cancel(): Promise<JobStatus>;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* `true` when the snapshot status is one of the terminal values
|
|
111
|
+
* (`successful`, `failed`, `dismissed`). Useful for stop conditions in
|
|
112
|
+
* watchers and tests.
|
|
113
|
+
*/
|
|
114
|
+
export declare function isJobTerminal(status: JobStatus): boolean;
|
|
115
|
+
//# 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,OAAO;IACtC,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB,iEAAiE;IACjE,MAAM,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACtB,+DAA+D;IAC/D,KAAK,CAAC,EAAE,QAAQ,CAAC;CAClB;AAED;;;;;GAKG;AACH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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
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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 { HonuaOgcTiles, HonuaOgcTileset } from "../core/ogc-tiles.js";
|
|
20
|
+
import { HonuaStacSearch } from "../core/stac.js";
|
|
21
|
+
import { HonuaFeatureLayer, HonuaGeometryService, HonuaGeoprocessingService, HonuaImageService, HonuaMapLayer, HonuaMapService, HonuaOgcFeatureCollection } from "../core/surfaces.js";
|
|
22
|
+
import { HonuaWfsFeatureType } from "../core/wfs.js";
|
|
23
|
+
import { HonuaWms, HonuaWmsLayer } from "../core/wms.js";
|
|
24
|
+
import { HonuaWmts, HonuaWmtsLayer, HonuaWmtsTileset } from "../core/wmts.js";
|
|
25
|
+
import { type Capability, type CapabilityPolicy, type CreateDatasetOptions, type Dataset, type Protocol, type Source, type SourceDescriptor } from "./types.js";
|
|
26
|
+
/**
|
|
27
|
+
* Construct a `Dataset` over one `HonuaClient`. Compatibility is checked
|
|
28
|
+
* once and cached on the client. `Source` handles are constructed lazily.
|
|
29
|
+
*/
|
|
30
|
+
export declare function createDataset(options: CreateDatasetOptions): Dataset;
|
|
31
|
+
export declare function geoServicesFeatureSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
32
|
+
export declare function geoServicesMapServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
33
|
+
export declare function ogcFeaturesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
34
|
+
/**
|
|
35
|
+
* Build a `Source` over an Esri-style ImageServer endpoint. The query
|
|
36
|
+
* surface drives the raster catalog (each row is a raster with footprint
|
|
37
|
+
* geometry); image export, identify, and tile operations live behind
|
|
38
|
+
* `Source.protocol("geoservices-image-service")`.
|
|
39
|
+
*/
|
|
40
|
+
export declare function geoServicesImageSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
41
|
+
/**
|
|
42
|
+
* Build a `Source` over an Esri-style Geometry Service endpoint. Geometry
|
|
43
|
+
* Service is a stateless utility — it does not host features — so the
|
|
44
|
+
* query family throws `HonuaCapabilityNotSupportedError` and operations
|
|
45
|
+
* (buffer, project, simplify, etc.) live behind
|
|
46
|
+
* `Source.protocol("geoservices-geometry-service")`.
|
|
47
|
+
*/
|
|
48
|
+
export declare function geoServicesGeometryServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
49
|
+
/**
|
|
50
|
+
* Build a `Source` over an Esri-style GP (geoprocessing) service. GP
|
|
51
|
+
* services run async tasks rather than hosting features; the canonical
|
|
52
|
+
* feature surface throws and task submission / status / result lookup
|
|
53
|
+
* live behind `Source.protocol("geoservices-gp-service")`.
|
|
54
|
+
*/
|
|
55
|
+
export declare function geoServicesGPServiceSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
56
|
+
/**
|
|
57
|
+
* Render-only Source adapter for OGC API Tiles. The query family throws
|
|
58
|
+
* `HonuaCapabilityNotSupportedError` (the conformance class is
|
|
59
|
+
* tile-fetch, not feature-query); rendering integrations consume the
|
|
60
|
+
* tileset through `Source.protocol("ogc-tiles")` to reach the underlying
|
|
61
|
+
* runtime class.
|
|
62
|
+
*/
|
|
63
|
+
export declare function ogcTilesSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
64
|
+
/**
|
|
65
|
+
* Render-only Source adapter for OGC API Maps. Same shape as the Tiles
|
|
66
|
+
* adapter — `Source.protocol("ogc-maps")` exposes the runtime class for
|
|
67
|
+
* server-rendered map images; the canonical query family throws.
|
|
68
|
+
*/
|
|
69
|
+
export declare function ogcMapsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
70
|
+
/**
|
|
71
|
+
* `Source` adapter for first-party WMS 1.3.0 services. The render path
|
|
72
|
+
* routes through `HonuaWms` / `HonuaWmsLayer` (both of which sit
|
|
73
|
+
* behind the canonical `Source.protocol("wms" | "wms-layer")` escape
|
|
74
|
+
* hatch); `Source.query()` translates a point spatial filter into a
|
|
75
|
+
* `GetFeatureInfo` call. Non-point queries throw
|
|
76
|
+
* `HonuaCapabilityNotSupportedError` so the canonical query envelope
|
|
77
|
+
* stays honest — multi-pixel feature info lives on
|
|
78
|
+
* `Source.protocol("wms").featureInfo()`.
|
|
79
|
+
*/
|
|
80
|
+
export declare function wmsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
81
|
+
/**
|
|
82
|
+
* Render-only `Source` adapter for first-party WMTS 1.0.0 services.
|
|
83
|
+
* `Source.query()` throws because WMTS GetFeatureInfo is keyed on tile
|
|
84
|
+
* pixels (not a canonical spatial filter); raw access lives on
|
|
85
|
+
* `Source.protocol("wmts" | "wmts-layer" | "wmts-tileset")`.
|
|
86
|
+
*/
|
|
87
|
+
export declare function wmtsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
88
|
+
export declare function stacSearchSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
89
|
+
export declare function wfsSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
90
|
+
/**
|
|
91
|
+
* Build a `Source` over an OData v4 entity set. The `Query` translation
|
|
92
|
+
* lowers `where` / `outFields` / `orderBy` / pagination / spatial filter
|
|
93
|
+
* onto OData's `$`-prefixed query options. Dialect-specific operations
|
|
94
|
+
* (`$batch`, `$apply`, `$search`, `$deltatoken`) live behind
|
|
95
|
+
* `Source.protocol("odata")` on the returned `HonuaOdataEntitySet`.
|
|
96
|
+
*
|
|
97
|
+
* `$metadata` is fetched lazily on the first call that needs it and
|
|
98
|
+
* cached on the entity-set instance. The fetched capability annotations
|
|
99
|
+
* are intersected with the descriptor's declared `Capabilities` set the
|
|
100
|
+
* first time a capability-gated method is invoked — this is the
|
|
101
|
+
* precedent for the metadata-driven downgrade pattern referenced in
|
|
102
|
+
* `docs/shared-client-contract.md`.
|
|
103
|
+
*/
|
|
104
|
+
export declare function odataSource<T>(descriptor: SourceDescriptor, client: HonuaClient, policy: CapabilityPolicy): Source<T>;
|
|
105
|
+
/**
|
|
106
|
+
* Declare the shipped adapter → runtime-class bindings so
|
|
107
|
+
* `Source.adapter("geoservices-feature-service")` et al. narrow to the
|
|
108
|
+
* right class instead of collapsing to `unknown`. Downstream adapter
|
|
109
|
+
* tickets that ship outside this module add their own augmentations in
|
|
110
|
+
* their own modules.
|
|
111
|
+
*/
|
|
112
|
+
declare module "./types.js" {
|
|
113
|
+
interface AdapterTypeMap {
|
|
114
|
+
"geoservices-feature-service": HonuaFeatureLayer;
|
|
115
|
+
"geoservices-map-service": HonuaMapService;
|
|
116
|
+
"geoservices-map-layer": HonuaMapLayer;
|
|
117
|
+
"geoservices-image-service": HonuaImageService;
|
|
118
|
+
"geoservices-geometry-service": HonuaGeometryService;
|
|
119
|
+
"geoservices-gp-service": HonuaGeoprocessingService;
|
|
120
|
+
"ogc-features": HonuaOgcFeatureCollection;
|
|
121
|
+
"ogc-tiles": HonuaOgcTileset | HonuaOgcTiles;
|
|
122
|
+
"ogc-maps": HonuaOgcMaps | HonuaOgcCollectionMap;
|
|
123
|
+
"ogc-processes": HonuaOgcProcesses;
|
|
124
|
+
stac: HonuaStacSearch;
|
|
125
|
+
wfs: HonuaWfsFeatureType;
|
|
126
|
+
wms: HonuaWms;
|
|
127
|
+
"wms-layer": HonuaWmsLayer;
|
|
128
|
+
wmts: HonuaWmts;
|
|
129
|
+
"wmts-layer": HonuaWmtsLayer;
|
|
130
|
+
"wmts-tileset": HonuaWmtsTileset;
|
|
131
|
+
odata: HonuaOdataEntitySet;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
/** Sentinel: `Capabilities` set that contains every defined capability. */
|
|
135
|
+
export declare const ALL_CAPABILITIES: ReadonlySet<Capability>;
|
|
136
|
+
/** Tag a `Protocol` as "first-party-supported by this build". */
|
|
137
|
+
export declare const FIRST_PARTY_PROTOCOLS: ReadonlySet<Protocol>;
|
|
138
|
+
//# 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,aAAa,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtE,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;AAoB7B,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,gBAAgB,EAEtB,MAAM,YAAY,CAAC;AAEpB;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,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