@earth-app/collegedb
    Preparing search index...

    Interface EligibilityContext

    What CollegeDBConfig.eligible is told about the shard it judges.

    1.4.0

    interface EligibilityContext {
        key?: string;
        operation: "allocate" | "publish";
        state: ShardState;
        tags: Record<string, string>;
    }
    Index
    key?: string

    The primary key being allocated; unset for a publication and for an insert with a generated key

    operation: "allocate" | "publish"

    allocate for a new key, publish when a computed placement snapshot is built

    state: ShardState

    The shard's shardState entry, or an empty object

    tags: Record<string, string>

    The shard's tags, or an empty object