Tm1ClientBuilder
import { Tm1ClientBuilder } from "@skipcheck/tm1-client"; Builds a Tm1Client: the same settings as Tm1ClientBuilder, which
it delegates to.
Members
baseUrl | The service root, such as http://localhost:8010/api/v1/. |
address | The server's address, such as http://tm1:8010. |
dialect | The kind of deployment. |
basicAuth | Logs in with TM1's own security, as user with password. |
authenticator | Supplies the credentials for each login. |
impersonate | Logs in as the service account but acts as TM1 user user. |
sessionContext | The session context sent to TM1. |
timeouts | The timeouts. |
errorClassifier | The classifier for error responses. |
transport | What sends the requests (Java's webClient and connector). |
checkCapabilities | Whether a request the server doesn't define is refused before it's sent. |
build | The client. |
baseUrl
baseUrl(baseUrl: string): thisThe service root, such as http://localhost:8010/api/v1/. See Tm1SessionBuilder.baseUrl.
address
address(address: string): thisThe server's address, such as http://tm1:8010. See Tm1SessionBuilder.address.
dialect
dialect(dialect: Tm1Dialect): thisThe kind of deployment. See Tm1SessionBuilder.dialect.
basicAuth
basicAuth(user: string, password?: string | null): thisLogs in with TM1's own security, as user with password. See Tm1SessionBuilder.basicAuth.
authenticator
authenticator(authenticator: Tm1Authenticator): thisSupplies the credentials for each login. See Tm1SessionBuilder.authenticator.
impersonate
impersonate(user: string): thisLogs in as the service account but acts as TM1 user user. See Tm1SessionBuilder.impersonate.
sessionContext
sessionContext(sessionContext: string): thisThe session context sent to TM1: a label it shows for the session. See Tm1SessionBuilder.sessionContext.
timeouts
timeouts(timeouts: Tm1Timeouts): thisThe timeouts. See Tm1SessionBuilder.timeouts.
errorClassifier
errorClassifier(classifier: Tm1ErrorClassifier): thisThe classifier for error responses. See Tm1SessionBuilder.errorClassifier.
transport
transport(transport: Tm1Transport): thisWhat sends the requests (Java's webClient and connector): fetchTransport() by default.
checkCapabilities
checkCapabilities(check: boolean): thisWhether a request the server doesn't define is refused before it's sent. See Tm1SessionBuilder.checkCapabilities.
build
build(): Tm1ClientThe client. Nothing is sent to TM1 until the first request.