skipcheck

TM1 client · Docs · Queries

ODataLiterals

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

OData literals, as they appear in keys, function parameters and $filter, before percent-encoding.

Members

string staticO'Neil → 'O''Neil'.
enumMember staticibm.tm1.api.v1.ElementType'Numeric'.
duration staticAn ISO 8601 duration as a literal.
of staticA value as an OData literal.

string

static
static string(value: string): string

O'Neil → 'O''Neil'.

enumMember

static
static enumMember(qualifiedType: string, member: string): string

ibm.tm1.api.v1.ElementType'Numeric'. The generated enums make these: ElementType.literal("Numeric").

duration

static
static duration(iso: string): ODataLiterals.Raw

An ISO 8601 duration as a literal: duration'P1D'.

of

static
static of(value: unknown): string

A value as an OData literal: null, quoted strings, true/false, numbers as plain decimals (NaN, INF), bigints, dates in ISO 8601, and anything that writes itself (ODataLiterals.Raw, a generated enum's literal(…)).