@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function archivedDocument

    • The archived bytes of one of a record's source documents, checked. Picks the first document with archived bytes, or the first with role. Throws OpenKaValidationError for a role no record can have, OpenKaError when there is no such record or no such archived document, and StoreError — the corpus is damaged — when the bytes are missing or no longer hash to their name.

      Parameters

      • store: Store
      • id: string
      • Optionaloptions: { role?: string }

      Returns ArchivedDocument