skipcheck

TM1 client · Docs · The client

Tm1Operation

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

An action or function of the TM1 REST API, as $metadata declares it. The generated Tm1Operations catalog has one per operation; services refer to them, so a request can check that the server has the operation (capability) and the coverage gate can tell which operations the client implements.

Members

Tm1Operation constructorAn operation as $metadata declares it.
kind property
name propertyIts name in a path.
bindingType property
importName property
parameters property
returnType property
addedIn property
deprecatedIn property
boundWhether it's bound to a type, rather than invoked from the service root.
deprecatedWhether $metadata marks it deprecated.
endpointIts coverage-gate ID.
capabilityWhat a request using it needs the server to have, with the version that added it, for Tm1Request.requires.
toStringThe operation's endpoint ID, for logs.

Tm1Operation

constructor
constructor( readonly kind: "Action" | "Function", readonly name: string, readonly bindingType: string | null, readonly importName: string | null, readonly parameters: readonly Tm1Operation.Parameter[], readonly returnType: string | null, readonly addedIn: string | null, readonly deprecatedIn: string | null, )

An operation as $metadata declares it. @param kind whether it's an action or a function

Parameters

name
the operation's name, qualified as in $metadata, such as tm1.Activate @param bindingType the qualified type it's bound to, or null for an import @param importName the name it's imported under at the service root, or null if it's bound @param parameters its parameters, the binding parameter apart @param returnType what it returns, or null for nothing
addedIn
the TM1 schema version that added it, or null @param deprecatedIn the version that deprecated it, or null

kind

property
readonly kind: "Action" | "Function"

name

property
readonly name: string

Its name in a path: tm1.Activate.

bindingType

property
readonly bindingType: string | null

importName

property
readonly importName: string | null

parameters

property
readonly parameters: readonly Tm1Operation.Parameter[]

returnType

property
readonly returnType: string | null

addedIn

property
readonly addedIn: string | null

deprecatedIn

property
readonly deprecatedIn: string | null

bound

bound(): boolean

Whether it's bound to a type, rather than invoked from the service root.

deprecated

deprecated(): boolean

Whether $metadata marks it deprecated.

endpoint

endpoint(): string

Its coverage-gate ID: Action Chore/Activate, ActionImport ExecuteMDX.

capability

capability(): Tm1Capability

What a request using it needs the server to have, with the version that added it, for Tm1Request.requires.

toString

toString(): string

The operation's endpoint ID, for logs.