interface ApiClient { batchQuery(queries): Promise<Envelope[][]>; publish(messages): Promise<PublishResponse>; query(params,
options): Promise<Envelope[]>; queryIteratePages(params,
options): AsyncGenerator<Envelope[], any, unknown>; queryIterator(params,
options): AsyncGenerator<Envelope, any, unknown>; setAuthenticator(authenticator,
cacheExpirySeconds?): void; subscribe(params,
callback,
onConnectionLost?): 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, unknown>
Returns AsyncGenerator<Envelope[], any, unknown>
queryIterator
- queryIterator(params, options): AsyncGenerator<Envelope, any, unknown>
Returns AsyncGenerator<Envelope, any, unknown>
setAuthenticator
- setAuthenticator(authenticator, cacheExpirySeconds?): void
Returns void