UNPKG

@obelisk/client

Version:

Typescript client to interact with Obelisk on a higher level than the regular ReST API calls.

26 lines (25 loc) 612 B
/** * The general response you get from a Temporal Page-returning endpoint. * <code>link</code> is the parsed Link header * <code>data</code> is the Temporal Page */ export interface TPageResponse { link?: Link; data: TPage; } /** * The parsed link header, with optional prev, next and last link. */ export interface Link { self: string; prev?: string; next?: string; last?: string; } /** * The temporal page data, single arrays of columns, 2d-array of values (one row per point). */ export interface TPage { columns: string[]; values: any[][]; }