mindee
    Preparing search index...

    Class Endpoint

    Endpoint for a product (OTS or Custom).

    Index

    Asynchronous

    • Requests the results of a queued document from the API. Throws an error if the server's response contains one.

      Parameters

      • queueId: string

        The document's ID in the queue.

      Returns Promise<BaseHttpResponse>

      a Promise containing the parsed result.

    • Enqueues a prediction to the API. Throws an error if the server's response contains one.

      Parameters

      Returns Promise<BaseHttpResponse>

      a Promise containing queue data.

    Other

    owner: string

    Account owning the product.

    settings: ApiSettingsV1

    Settings relating to the API.

    urlName: string

    URL of a product.

    urlRoot: string

    Root of the URL for API calls.

    version: string

    Product's version, as a string.

    • Send a feedback

      Parameters

      • documentId: string

      Returns Promise<BaseHttpResponse>

    • Send a feedback

      Parameters

      • documentId: string

        ID of the document to send feedback to.

      • feedback: StringDict

        Feedback object to send.

      Returns Promise<BaseHttpResponse>

    • Send a file to a prediction API.

      Parameters

      • input: InputSource
      • predictUrl: string
      • includeWords: boolean = false
      • fullText: boolean = false
      • cropper: boolean = false
      • rag: boolean = false
      • workflowId: string | undefined = undefined

      Returns Promise<BaseHttpResponse>

    Synchronous

    • Sends a document to the API and parses out the result. Throws an error if the server's response contains one.

      Parameters

      Returns Promise<BaseHttpResponse>

      a Promise containing parsing results.