UNPKG

@hg8496/gridvis-client

Version:

A library to access all GridVis data

15 lines (14 loc) 611 B
import { AxiosInstance } from "axios"; import { IProject } from "../project"; import { IConnectionTest } from "./IConnectionTest"; import { IDevice } from "./IDevice"; export declare class DevicesEndpoint { private client; constructor(client: AxiosInstance); /** Lists all devices from the given project. * @returns An possibly empty list of devices * @throws A RestException for unknown projects and all other errors. */ list(project: string | IProject): Promise<IDevice[]>; connectionTest(project: string | IProject, device: number | IDevice): Promise<IConnectionTest>; }