@honua/sdk-js
    Preparing search index...

    Interface PublicationSource<T>Experimental

    The query half of a paired publication: GeoParquet records, public fields only, identity lookups within a budget.

    interface PublicationSource<T = Record<string, unknown>> {
        attachments: AttachmentApi;
        capabilities: Capabilities;
        capabilityProfile?: CapabilityProfile;
        descriptor: SourceDescriptor;
        publication: Publication;
        adapter<K extends AdapterKind>(kind: K): AdapterFor<K> | undefined;
        applyEdits(envelope: EditEnvelope<T>): Promise<EditResult>;
        exportFeatures(
            format: PublicationExportFormat,
            query?: Query<T>,
        ): Promise<string>;
        lookup(
            identity: string,
            options?: PublicationLookupOptions,
        ): Promise<PublicationLookup<T>>;
        planBboxQuery(
            bbox: PublicationBounds,
            options?: PublicationLookupOptions,
        ): Promise<PublicationBboxPlan>;
        planLookup(
            identity: string,
            options?: PublicationLookupOptions,
        ): Promise<PublicationLookupPlan>;
        protocol<K extends AdapterKind>(kind: K): AdapterFor<K> | undefined;
        query(request?: Query<T>): Promise<Result<T>>;
        queryAggregate(
            request: Query<T> & { aggregation: AggregationSpec },
        ): Promise<Result<T>>;
        queryAll(request?: Query<T>): Promise<Result<T>>;
        queryBbox(
            bbox: PublicationBounds,
            options?: PublicationLookupOptions,
        ): Promise<PublicationBboxResult<T>>;
        queryExtent(
            request?: Query<T>,
        ): Promise<{ count?: number; extent: HonuaExtent | null }>;
        queryObjectIds(request?: Query<T>): Promise<readonly FeatureId[]>;
        queryRelated<R = Record<string, unknown>>(
            request: RelatedQuery,
        ): Promise<RelatedResult<R>>;
        select(
            feature: RenderedPublicationFeature,
            options?: PublicationLookupOptions,
        ): Promise<PublicationLookup<T>>;
        stream(request?: Query<T>): AsyncGenerator<Result<T>, void, undefined>;
        supports<const C extends CapabilityId>(
            capability: C,
        ): this is PublicationSource<T> & SupportedSourceCapability<C>;
        verifyGeoParquetArtifact(options?: PublicationLookupOptions): Promise<void>;
    }

    Type Parameters

    • T = Record<string, unknown>

    Hierarchy (View Summary)

    Index

    Properties

    attachments: AttachmentApi

    Attachment operations namespace; methods throw if attachments is missing.

    capabilities: Capabilities
    capabilityProfile?: CapabilityProfile
    descriptor: SourceDescriptor
    publication: Publication

    Methods