Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpApiClient

ApiClient provides a wrapper for calling the GRPC Gateway generated code. It adds some helpers for dealing with paginated data and automatically retries idempotent calls

Hierarchy

  • HttpApiClient

Implements

Index

Constructors

  • new HttpApiClient(pathPrefix: string, opts?: ApiClientOptions): HttpApiClient

Properties

appVersion: undefined | string
maxRetries: number
pathPrefix: string
version: string

Methods

  • batchQuery(queries: Flatten<QueryParams & Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number }>>[]): Promise<Envelope[][]>
  • headers(): Headers
  • queryIteratePages(__namedParameters: QueryParams, __namedParameters: Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number }>): AsyncGenerator<Envelope[], any, unknown>
  • queryIterator(params: QueryParams, options: Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number }>): AsyncGenerator<Envelope, any, unknown>
  • setAuthenticator(authenticator: Authenticator, cacheExpirySeconds?: number): void

Generated using TypeDoc