mindee
    Preparing search index...

    Class Client

    Mindee Client class that centralizes most basic operations.

    Index
    • Parameters

      • options: ClientOptions = ...

        options for the initialization of a client.

      Returns v1.Client

    apiSettings: ApiSettingsV1

    Mindee V1 API settings.

    • Creates a custom endpoint with the given values. Raises an error if the endpoint is invalid.

      Parameters

      • endpointName: string

        Name of the custom Endpoint.

      • accountName: string

        Name of the account tied to the Endpoint.

      • OptionalendpointVersion: string

        Version of the custom Endpoint.

      Returns Endpoint

      Endpoint a new product endpoint

    • Forces boolean coercion on truthy/falsy parameters.

      Parameters

      • Optionalparam: boolean

        input parameter to check.

      Returns boolean

      a strict boolean value.

    • Fetch prediction results from a document already processed.

      Type Parameters

      Parameters

      • productClass: new (httpResponse: StringDict) => T

        product class to use for calling the API and parsing the response.

      • documentId: string

        id of the document to fetch.

      • params: { endpoint?: Endpoint } = {}

        optional parameters.

        • Optionalendpoint?: Endpoint

          Endpoint, only specify if using a custom product.

      Returns Promise<v1.PredictResponse<T>>

      a Promise containing parsing results.