skipcheck

TM1 client · Docs · The client

Tm1ClientBuilder

import { Tm1ClientBuilder } from "@skipcheck/tm1-client";

Builds a Tm1Client: the same settings as Tm1ClientBuilder, which it delegates to.

Members

baseUrlThe service root, such as http://localhost:8010/api/v1/.
addressThe server's address, such as http://tm1:8010.
dialectThe kind of deployment.
basicAuthLogs in with TM1's own security, as user with password.
authenticatorSupplies the credentials for each login.
impersonateLogs in as the service account but acts as TM1 user user.
sessionContextThe session context sent to TM1.
timeoutsThe timeouts.
errorClassifierThe classifier for error responses.
transportWhat sends the requests (Java's webClient and connector).
checkCapabilitiesWhether a request the server doesn't define is refused before it's sent.
buildThe client.

baseUrl

baseUrl(baseUrl: string): this

The service root, such as http://localhost:8010/api/v1/. See Tm1SessionBuilder.baseUrl.

address

address(address: string): this

The server's address, such as http://tm1:8010. See Tm1SessionBuilder.address.

dialect

dialect(dialect: Tm1Dialect): this

The kind of deployment. See Tm1SessionBuilder.dialect.

basicAuth

basicAuth(user: string, password?: string | null): this

Logs in with TM1's own security, as user with password. See Tm1SessionBuilder.basicAuth.

authenticator

authenticator(authenticator: Tm1Authenticator): this

Supplies the credentials for each login. See Tm1SessionBuilder.authenticator.

impersonate

impersonate(user: string): this

Logs in as the service account but acts as TM1 user user. See Tm1SessionBuilder.impersonate.

sessionContext

sessionContext(sessionContext: string): this

The session context sent to TM1: a label it shows for the session. See Tm1SessionBuilder.sessionContext.

timeouts

timeouts(timeouts: Tm1Timeouts): this

The timeouts. See Tm1SessionBuilder.timeouts.

errorClassifier

errorClassifier(classifier: Tm1ErrorClassifier): this

The classifier for error responses. See Tm1SessionBuilder.errorClassifier.

transport

transport(transport: Tm1Transport): this

What sends the requests (Java's webClient and connector): fetchTransport() by default.

checkCapabilities

checkCapabilities(check: boolean): this

Whether a request the server doesn't define is refused before it's sent. See Tm1SessionBuilder.checkCapabilities.

build

build(): Tm1Client

The client. Nothing is sent to TM1 until the first request.