mindee
    Preparing search index...

    Class Client

    Mindee Client V2 class that centralizes most basic operations.

    Index

    Asynchronous

    • Get the processing status of a previously enqueued request. Can be used for polling.

      Parameters

      • jobId: string

        id of the queue to poll.

      Returns Promise<JobResponse>

      a Promise containing a Job, which also contains a Document if the parsing is complete.

    • Retrieves the result of a previously enqueued request.

      Type Parameters

      • P extends typeof BaseProduct

      Parameters

      • product: P

        the product to retrieve.

      • inferenceId: string

        id of the queue to poll.

      Returns Promise<InstanceType<P["responseClass"]>>

      a Promise containing the inference.

    Other

    • Parameters

      • options: ClientOptions = ...

        options for the initialization of a client.

      Returns Client

    mindeeApi: MindeeApiV2

    Mindee V2 API handler.

    • Type Parameters

      • P extends typeof BaseProduct

      Parameters

      • product: P
      • inputSource: InputSource
      • params:
            | InstanceType<P["parametersClass"]>
            | ConstructorParameters<P["parametersClass"]>[0]

      Returns Promise<JobResponse>

    • Protected

      Send a document to an endpoint and poll the server until the result is sent or until the maximum number of tries is reached.

      Type Parameters

      • P extends typeof BaseProduct

      Parameters

      • product: typeof BaseProduct
      • pollingOptions: PollingOptions
      • queueId: string

      Returns Promise<InstanceType<P["responseClass"]>>

    Synchronous

    • Enqueue a request and poll the server until the result is sent or until the maximum number of tries is reached.

      Type Parameters

      • P extends typeof BaseProduct

      Parameters

      • product: P

        the product to retrieve.

      • inputSource: InputSource

        file or URL to parse.

      • params:
            | InstanceType<P["parametersClass"]>
            | ConstructorParameters<P["parametersClass"]>[0]

        parameters relating to prediction options.

      • OptionalpollingOptions: PollingOptionsConstructor

        options for the polling loop, see PollingOptions.

      Returns Promise<InstanceType<P["responseClass"]>>

      a Promise containing parsing results.