UNPKG

hat-javascript-sdk

Version:

HAT JavaScript SDK

12 lines (11 loc) 754 B
import { HatApplication } from '../interfaces/hat-application.interface'; import { HatHttpParameters, IHttpResponse } from '../services/HttpService'; import { ClientState } from '../index'; export interface Applications { getAllDefault: () => Promise<IHttpResponse<HatApplication[]>>; getAll: (options: HatHttpParameters) => Promise<IHttpResponse<HatApplication[]>>; getById: (appId: string) => Promise<IHttpResponse<HatApplication>>; getAppStatus: (app: HatApplication) => 'goto' | 'running' | 'fetching' | 'failing' | 'untouched' | 'update'; getSetupUrl: (app: HatApplication, redirect: string, fallback: string) => string; } export declare const applications: (config: ClientState, headers: string[][]) => Applications;