Tm1SupportFact
import { Tm1SupportFact } from "@skipcheck/tm1-client"; What a range of TM1 versions does with a feature, beyond what their $metadata
says: a declared endpoint that answers with nothing, a write a version drops or
refuses. The generated model's Tm1SupportFacts.ALL holds every fact, from
spec/tm1-api.json's support section, which is checked against real
servers; every client has the same facts.
Members
observed property | The versions it was seen on. |
Tm1SupportFact constructor | @param feature a coverage-gate endpoint ID such as EntitySet Threads, or a write, by verb, type and property path, such as Patch User/Enabled @param from the first version it holds for, or null for every earlier one @param before the version it no longer holds from, or null for every later one @param observed the versions it was seen on. |
feature property | |
status property | |
from property | |
before property | |
reason property | |
replacement property | |
condition property | |
equals | Whether other is the same fact. |
appliesTo | Whether the fact holds for a version. |
observedOn | Whether the fact was seen on this very version, compared as versions are (so 11.8.3500.6 is 11.8.03500.6), rather than extrapolated to it. |
observed
propertyobserved: readonly Tm1Version[]The versions it was seen on: the range extrapolates from them.
Tm1SupportFact
constructorconstructor( readonly feature: string, readonly status: Tm1SupportStatus, readonly from: Tm1Version | null, readonly before: Tm1Version | null, observed: readonly Tm1Version[], readonly reason: string, readonly replacement: string | null = null, readonly condition: string | null = null, )@param feature a coverage-gate endpoint ID such as EntitySet Threads, or a write, by verb, type and property path, such as Patch User/Enabled @param from the first version it holds for, or null for every earlier one @param before the version it no longer holds from, or null for every later one @param observed the versions it was seen on: the range extrapolates from them
Parameters
reason- what TM1 does, in words @param replacement the feature to use instead, or null
condition- for
CONDITIONAL: the server setting it depends on, as a path inActiveConfiguration, such asAdministration/LegacyTransactionLog; otherwise null
feature
propertyreadonly feature: stringstatus
propertyreadonly status: Tm1SupportStatusfrom
propertyreadonly from: Tm1Version | nullbefore
propertyreadonly before: Tm1Version | nullreason
propertyreadonly reason: stringreplacement
propertyreadonly replacement: string | nullcondition
propertyreadonly condition: string | nullequals
equals(other: unknown): booleanWhether other is the same fact: every component equal, versions number by number, as the Java record's equals.
appliesTo
appliesTo(version: Tm1Version | string): booleanWhether the fact holds for a version: it's in [from, before).
observedOn
observedOn(version: Tm1Version | string): booleanWhether the fact was seen on this very version, compared as versions are (so 11.8.3500.6 is 11.8.03500.6), rather than extrapolated to it.