interface ApiClient { batchQuery(queries: Flatten<QueryParams & Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number; }>>[]): Promise<Envelope[][]>; publish(messages: PublishParams[]): Promise<PublishResponse>; query(params: QueryParams,
options: QueryAllOptions): Promise<Envelope[]>; queryIteratePages(params: QueryParams,
options: Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number; }>): AsyncGenerator<Envelope[], any, any>; queryIterator(params: QueryParams,
options: Flatten<Omit<QueryAllOptions, "limit"> & { pageSize?: number; }>): AsyncGenerator<Envelope, any, any>; setAuthenticator(authenticator: Authenticator,
cacheExpirySeconds?: number): void; subscribe(params: SubscribeParams,
callback: SubscribeCallback,
onConnectionLost?: OnConnectionLostCallback): SubscriptionManager; } Methods
batchQuery
- batchQuery(queries): Promise<Envelope[][]>
Returns Promise<Envelope[][]>
publish
- publish(messages): Promise<PublishResponse>
Returns Promise<PublishResponse>
query
- query(params, options): Promise<Envelope[]>
Returns Promise<Envelope[]>
queryIteratePages
- queryIteratePages(params, options): AsyncGenerator<Envelope[], any, any>
Returns AsyncGenerator<Envelope[], any, any>
queryIterator
- queryIterator(params, options): AsyncGenerator<Envelope, any, any>
Returns AsyncGenerator<Envelope, any, any>
setAuthenticator
- setAuthenticator(authenticator, cacheExpirySeconds?): void
Returns void