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 constructor | An operation as $metadata declares it. |
kind property | |
name property | Its name in a path. |
bindingType property | |
importName property | |
parameters property | |
returnType property | |
addedIn property | |
deprecatedIn property | |
bound | Whether it's bound to a type, rather than invoked from the service root. |
deprecated | Whether $metadata marks it deprecated. |
endpoint | Its coverage-gate ID. |
capability | What a request using it needs the server to have, with the version that added it, for Tm1Request.requires. |
toString | The operation's endpoint ID, for logs. |
Tm1Operation
constructorconstructor( 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 astm1.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
propertyreadonly kind: "Action" | "Function"name
propertyreadonly name: stringIts name in a path: tm1.Activate.
bindingType
propertyreadonly bindingType: string | nullimportName
propertyreadonly importName: string | nullparameters
propertyreadonly parameters: readonly Tm1Operation.Parameter[]returnType
propertyreadonly returnType: string | nulladdedIn
propertyreadonly addedIn: string | nulldeprecatedIn
propertyreadonly deprecatedIn: string | nullbound
bound(): booleanWhether it's bound to a type, rather than invoked from the service root.
deprecated
deprecated(): booleanWhether $metadata marks it deprecated.
endpoint
endpoint(): stringIts coverage-gate ID: Action Chore/Activate, ActionImport ExecuteMDX.
capability
capability(): Tm1CapabilityWhat a request using it needs the server to have, with the version that added it, for Tm1Request.requires.
toString
toString(): stringThe operation's endpoint ID, for logs.