internetarchive-ts - v0.1.0
    Preparing search index...

    Type Alias IaItemData<ItemMetaType, ItemFileMetaType>Beta

    This type represents raw metadata as returned by the metadata API endpoint

    type IaItemData<
        ItemMetaType extends IaBaseMetadataType = IaItemExtendedMetadata,
        ItemFileMetaType extends IaBaseMetadataType = IaFileBaseMetadata,
    > = {
        alternate_locations?: IaAlternateItemLocations;
        created: number;
        d1?: string;
        d2?: string;
        dir: string;
        files: IaFileSourceMetadata<ItemFileMetaType>[];
        files_count: number;
        has_redrow?: boolean;
        is_collection?: boolean;
        is_dark?: boolean;
        item_last_updated: number;
        item_size: number;
        metadata: IaItemSourceMetadata<ItemMetaType>;
        nodownload?: boolean;
        page_numbers?: IaPageNumbersInfo;
        pending_tasks?: boolean;
        reviews?: IaItemReview[];
        server: string;
        servers_unavailable?: boolean;
        simplelists?: { holdings: IaSimplelistEntries };
        solo?: boolean;
        uniq: number;
        workable_servers: string[];
    }

    Type Parameters

    Implemented by

    Index

    Properties

    alternate_locations?: IaAlternateItemLocations
    created: number

    Date the item was created on

    d1?: string

    The primary data node the item is stored on

    d2?: string

    The secondary (backup) data node the item is stored on (unless stored on a solo node)

    dir: string

    The item's absolute pathname (on both data nodes)

    File metadata for this item

    files_count: number

    Total number of files in the item

    has_redrow?: boolean

    Indicates one or more tasks are red (halted due to error)

    is_collection?: boolean

    The item is a collection

    is_dark?: boolean

    The item was darked and is unavailable

    item_last_updated: number

    The time when the item was last modified

    item_size: number

    Total size in bytes of all files in the item

    Item Metadata

    nodownload?: boolean

    The item is not ready for downloading

    page_numbers?: IaPageNumbersInfo

    Page numbers

    pending_tasks?: boolean

    Indicates one or more tasks are queued or running

    reviews?: IaItemReview[]

    Item Reviews

    server: string

    The preferred server for reading the item's contents. Callers should use this node when constructing a URL

    servers_unavailable?: boolean

    One or both servers are unavailable, that is, inaccessible for some reason (network problems, under service, etc.)

    simplelists?: { holdings: IaSimplelistEntries }

    Simplelist relations

    Type Declaration

    • holdings: IaSimplelistEntries

      Simple list name

    solo?: boolean

    The item is only stored on a single node (rare)

    uniq: number
    workable_servers: string[]

    A list of data nodes currently available for accessing the item's contents