camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
37 lines (36 loc) • 1.31 kB
TypeScript
import { IClient, TResponse } from './internal/types';
import { TNodeState, TPackageInfoList, TStorage, TStorageType } from './types/CamScripterAPI';
import { TNetworkCamera } from './types/common';
export declare const BASE_URL = "/local/camscripter";
export declare class CamScripterAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
client: Client;
constructor(client: Client);
static getProxyUrlPath: () => string;
checkCameraTime(): Promise<boolean>;
getNetworkCameraList(): Promise<TNetworkCamera[]>;
getStorageInfo(): Promise<TStorage>;
getPackageList(): Promise<TPackageInfoList>;
installPackages(formData: FormData, storage: TStorageType): Promise<{
status: number;
message: string;
}>;
uninstallPackage(packageId: string): Promise<{
status: number;
message: string;
}>;
importSettings(packageId: string, formData: FormData): Promise<{
status: number;
message: string;
}>;
exportSettings(packageId: string, formData: FormData): Promise<{
status: number;
message: string;
}>;
getNodejsStatus(): Promise<TNodeState>;
installNodejs(storage: TStorageType): Promise<{
status: number;
message: string;
}>;
private get;
private post;
}