camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
868 lines (867 loc) • 32 kB
TypeScript
import { IClient, TBlobResponse, TResponse } from './internal/types';
import { THttpRequestOptions, TProxyParams } from './types/common';
import { ProxyClient } from './internal/ProxyClient';
import { ImageType, TCoordinates, TField, TFile, TFileType, TFileStorageType, TService } from './types/CamOverlayAPI';
export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
private client;
constructor(client: Client);
static getBasePath: () => string;
static getProxyPath: () => string;
static getFilePreviewPath: (path: string) => string;
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
getNetworkCameraList(options?: THttpRequestOptions): Promise<{
name: string;
ip: string;
}[]>;
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
getMjpegStreamImage(mjpegUrl: string, options?: THttpRequestOptions): Promise<TBlobResponse<Client>>;
listFiles(fileType: TFileType, options?: THttpRequestOptions): Promise<{
path: string;
name: string;
storage: "url" | "flash" | "SD0" | "ftp" | "samba";
}[]>;
uploadFile(fileType: TFileType, formData: Parameters<Client['post']>[0]['data'], storage: TFileStorageType, options?: THttpRequestOptions): Promise<void>;
removeFile(fileType: TFileType, fileParams: TFile, options?: THttpRequestOptions): Promise<void>;
getFileStorage(fileType: TFileType, options?: THttpRequestOptions): Promise<{
type: "url" | "flash" | "SD0" | "ftp" | "samba";
state: string;
}[]>;
getFilePreviewFromCamera(path: string, options?: THttpRequestOptions): Promise<TBlobResponse<Client>>;
updateInfoticker(serviceId: number, text: string, options?: THttpRequestOptions): Promise<void>;
setEnabled(serviceId: number, enabled: boolean, options?: THttpRequestOptions): Promise<void>;
isEnabled(serviceId: number, options?: THttpRequestOptions): Promise<boolean>;
getSingleService(serviceId: number, options?: THttpRequestOptions): Promise<{
name: "infoticker";
enabled: 0 | 1;
id: number;
width: number;
height: number;
source: string;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_y: number;
coordSystem: "top" | "bottom";
showClock: 0 | 1;
clockType: "12h" | "24h";
textColor: string;
bgColor: string;
weatherLocation: string;
weatherLocationName: string;
weatherLang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
weatherUnits: "Metric" | "Imperial";
numberOfLines: number;
switchingTime: number;
crawlLeft: boolean;
crawlSpeed: number;
font: string;
fontSize: number;
sourceType: "text" | "url";
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "accuweather";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
clockType: "12h" | "24h";
font: string;
location: string;
locationName: string;
title: string;
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
units: "Metric" | "Imperial";
layout: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13";
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
type: "map" | "compass" | "image";
name: "ptzCompass";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
image: string;
northPan: number;
cameraPosX: number;
cameraPosY: number;
colorScheme: "black" | "white" | "orange";
showDegrees: boolean;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
generalLng?: number | undefined;
generalLat?: number | undefined;
generalZoom?: number | undefined;
generalMapType?: string | undefined;
generalIframeWidth?: number | undefined;
generalIframeHeight?: number | undefined;
generalAddress?: string | undefined;
} | {
name: "images";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
overlayList: {
duration: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
active: boolean;
imgPath: string;
imgName: string;
scale: number;
fps?: number | undefined;
}[];
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "ptz";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
ptz_positions: Record<string, {
overlayList: {
duration: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
imgPath: string;
imgName: string;
scale: number;
}[];
loop: boolean;
}>;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "pip";
compression: number;
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
scale: number;
source_type: "axis_camera" | "mjpeg_url";
mjpeg_url: string;
camera_ip: string;
camera_port: number;
camera_user: string;
camera_pass: string;
camera_width: number;
camera_height: number;
camera_view_area: string;
camera_overlay_params: "overlays=off" | "overlays=all" | "overlays=text" | "overlays=image" | "overlays=application";
rotate: 0 | 90 | 180 | 270;
dewarping: {
enabled: boolean;
rectangle: [number, number][];
aspectRatioCorrection: number;
};
borderColor: string;
borderWidth: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "customGraphics";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
image: string;
clockFormat: "12h" | "24h";
background: "custom" | "image";
customAreaColor: string;
customAreaWidth: number;
customAreaHeight: number;
customAreaCorners: "sharp" | "rounded";
mappingZones: ({
type: "plain";
name: string;
pos_x: number;
pos_y: number;
textColor: string;
switchingTime: number;
font: string;
fontSize: number;
wrapText: boolean;
textLines: number;
textWidth: number;
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
text?: {
source: string;
active: boolean;
}[] | undefined;
} | {
type: "countdown";
name: string;
pos_x: number;
pos_y: number;
textColor: string;
switchingTime: number;
font: string;
fontSize: number;
wrapText: boolean;
textLines: number;
textWidth: number;
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
settings: {
loop: boolean;
startDate: number;
targetDate: number;
countdown: boolean;
countup: boolean;
displayDay: boolean;
displayHour: boolean;
displayMinute: boolean;
displaySeconds: boolean;
idleText: string;
hideZeros: boolean;
delimiter: "colon" | "letters";
suffixSeconds: string;
suffixMinute: string;
suffixHour: string;
suffixDay: string;
loopPeriod: number;
waitingPeriod: number;
};
text?: {
source: string;
active: boolean;
}[] | undefined;
})[];
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "screenSharing";
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "web_camera";
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "scoreBoard";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
font: string;
teamHomeShortname: string;
teamGuestShortname: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeImgPath: string;
teamGuestImgPath: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
baseTimeTimestamp: number;
baseTimePlaytime: number;
currentPeriodPlaytime: number;
timeIsRunning: boolean;
currentPeriodLength: number;
currentPeriod: number;
schedule?: string | undefined;
} | {
name: "baseballScoreBoard";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
font: string;
teamHomeShortname: string;
teamGuestShortname: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
baseTimeTimestamp: number;
baseTimePlaytime: number;
timeIsRunning: boolean;
matchFinished: boolean;
bases: [boolean, boolean, boolean];
homeInning: boolean;
inning: number;
outs: number;
balls: number;
strikes: number;
schedule?: string | undefined;
footerImgPath?: string | undefined;
footerText?: string | undefined;
footerBackgroundColor?: string | undefined;
footerTextColor?: string | undefined;
} | {
name: "myBallBaseballWidgets";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
scale: number;
font: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
matchDetailLink: string;
matchListLink: string;
mirrored: boolean;
pregameWidgetText: string;
homeLogoPath: string;
guestLogoPath: string;
schedule?: string | undefined;
footerImgPath?: string | undefined;
footerText?: string | undefined;
footerBackgroundColor?: string | undefined;
footerTextColor?: string | undefined;
} | {
name: "scoreOverview";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeImgPath: string;
teamGuestImgPath: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
teamHomeName: string;
teamGuestName: string;
scoreVisible: boolean;
description: string;
textFont: string;
scoreFont: "classic";
}>;
getServices(options?: THttpRequestOptions): Promise<({
name: "infoticker";
enabled: 0 | 1;
id: number;
width: number;
height: number;
source: string;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_y: number;
coordSystem: "top" | "bottom";
showClock: 0 | 1;
clockType: "12h" | "24h";
textColor: string;
bgColor: string;
weatherLocation: string;
weatherLocationName: string;
weatherLang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
weatherUnits: "Metric" | "Imperial";
numberOfLines: number;
switchingTime: number;
crawlLeft: boolean;
crawlSpeed: number;
font: string;
fontSize: number;
sourceType: "text" | "url";
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "accuweather";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
clockType: "12h" | "24h";
font: string;
location: string;
locationName: string;
title: string;
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
units: "Metric" | "Imperial";
layout: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13";
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
type: "map" | "compass" | "image";
name: "ptzCompass";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
image: string;
northPan: number;
cameraPosX: number;
cameraPosY: number;
colorScheme: "black" | "white" | "orange";
showDegrees: boolean;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
generalLng?: number | undefined;
generalLat?: number | undefined;
generalZoom?: number | undefined;
generalMapType?: string | undefined;
generalIframeWidth?: number | undefined;
generalIframeHeight?: number | undefined;
generalAddress?: string | undefined;
} | {
name: "images";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
overlayList: {
duration: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
active: boolean;
imgPath: string;
imgName: string;
scale: number;
fps?: number | undefined;
}[];
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "ptz";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
ptz_positions: Record<string, {
overlayList: {
duration: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
imgPath: string;
imgName: string;
scale: number;
}[];
loop: boolean;
}>;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "pip";
compression: number;
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
scale: number;
source_type: "axis_camera" | "mjpeg_url";
mjpeg_url: string;
camera_ip: string;
camera_port: number;
camera_user: string;
camera_pass: string;
camera_width: number;
camera_height: number;
camera_view_area: string;
camera_overlay_params: "overlays=off" | "overlays=all" | "overlays=text" | "overlays=image" | "overlays=application";
rotate: 0 | 90 | 180 | 270;
dewarping: {
enabled: boolean;
rectangle: [number, number][];
aspectRatioCorrection: number;
};
borderColor: string;
borderWidth: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "customGraphics";
enabled: 0 | 1;
id: number;
width: number;
height: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
image: string;
clockFormat: "12h" | "24h";
background: "custom" | "image";
customAreaColor: string;
customAreaWidth: number;
customAreaHeight: number;
customAreaCorners: "sharp" | "rounded";
mappingZones: ({
type: "plain";
name: string;
pos_x: number;
pos_y: number;
textColor: string;
switchingTime: number;
font: string;
fontSize: number;
wrapText: boolean;
textLines: number;
textWidth: number;
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
text?: {
source: string;
active: boolean;
}[] | undefined;
} | {
type: "countdown";
name: string;
pos_x: number;
pos_y: number;
textColor: string;
switchingTime: number;
font: string;
fontSize: number;
wrapText: boolean;
textLines: number;
textWidth: number;
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
settings: {
loop: boolean;
startDate: number;
targetDate: number;
countdown: boolean;
countup: boolean;
displayDay: boolean;
displayHour: boolean;
displayMinute: boolean;
displaySeconds: boolean;
idleText: string;
hideZeros: boolean;
delimiter: "colon" | "letters";
suffixSeconds: string;
suffixMinute: string;
suffixHour: string;
suffixDay: string;
loopPeriod: number;
waitingPeriod: number;
};
text?: {
source: string;
active: boolean;
}[] | undefined;
})[];
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "screenSharing";
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "web_camera";
enabled: 0 | 1;
id: number;
width: number;
height: number;
fps: number;
automationType: "time" | "manual" | "schedule" | `input${number}`;
cameraList: number[];
customName: string;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
screenSize: number;
camera?: number | undefined;
schedule?: string | undefined;
invertInput?: boolean | undefined;
zIndex?: number | undefined;
} | {
name: "scoreBoard";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
font: string;
teamHomeShortname: string;
teamGuestShortname: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeImgPath: string;
teamGuestImgPath: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
baseTimeTimestamp: number;
baseTimePlaytime: number;
currentPeriodPlaytime: number;
timeIsRunning: boolean;
currentPeriodLength: number;
currentPeriod: number;
schedule?: string | undefined;
} | {
name: "baseballScoreBoard";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
font: string;
teamHomeShortname: string;
teamGuestShortname: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
baseTimeTimestamp: number;
baseTimePlaytime: number;
timeIsRunning: boolean;
matchFinished: boolean;
bases: [boolean, boolean, boolean];
homeInning: boolean;
inning: number;
outs: number;
balls: number;
strikes: number;
schedule?: string | undefined;
footerImgPath?: string | undefined;
footerText?: string | undefined;
footerBackgroundColor?: string | undefined;
footerTextColor?: string | undefined;
} | {
name: "myBallBaseballWidgets";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
scale: number;
font: string;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
matchDetailLink: string;
matchListLink: string;
mirrored: boolean;
pregameWidgetText: string;
homeLogoPath: string;
guestLogoPath: string;
schedule?: string | undefined;
footerImgPath?: string | undefined;
footerText?: string | undefined;
footerBackgroundColor?: string | undefined;
footerTextColor?: string | undefined;
} | {
name: "scoreOverview";
enabled: 0 | 1;
id: number;
width: number;
height: number;
cameraList: number[];
zIndex: number;
pos_x: number;
pos_y: number;
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
scale: number;
teamHomeBackgroundColor: string;
teamGuestBackgroundColor: string;
teamHomeTextColor: string;
teamGuestTextColor: string;
teamHomeImgPath: string;
teamGuestImgPath: string;
teamHomeCurrentScore: number;
teamGuestCurrentScore: number;
teamHomeName: string;
teamGuestName: string;
scoreVisible: boolean;
description: string;
textFont: string;
scoreFont: "classic";
})[]>;
updateSingleService(service: TService, options?: THttpRequestOptions): Promise<void>;
updateServices(services: TService[], options?: THttpRequestOptions): Promise<void>;
updateCGText(serviceId: number, fields: TField[], options?: THttpRequestOptions): Promise<void>;
updateCGImagePos(serviceId: number, coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
updateCGImage(serviceId: number, path: string, coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
updateCGImageFromData(serviceId: number, imageType: ImageType, imageData: Parameters<Client['post']>[0]['data'], coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
private promiseCGUpdate;
private _getJson;
private _post;
private _getBlob;
private parseBlobResponse;
private _postUrlEncoded;
private _postJsonEncoded;
}