camstreamerlib 4.0.0-beta.32 → 4.0.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/CamOverlayAPI.js +2 -2
- package/cjs/CamStreamerAPI.js +54 -11
- package/cjs/CamSwitcherAPI.js +7 -7
- package/cjs/CamSwitcherEvents.js +4 -60
- package/cjs/PlaneTrackerAPI.js +52 -52
- package/cjs/VapixAPI.js +10 -7
- package/cjs/index.js +2 -11
- package/cjs/internal/ProxyClient.js +6 -6
- package/cjs/internal/WsEvents.js +72 -0
- package/cjs/node/DefaultClient.js +4 -4
- package/cjs/node/HttpRequestSender.js +1 -1
- package/cjs/node/WsClient.js +1 -1
- package/cjs/{events → node/events}/AxisCameraStationEvents.js +4 -4
- package/cjs/{events → node/events}/GenetecAgent.js +43 -32
- package/cjs/node/index.js +5 -8
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +14 -1
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +127 -0
- package/cjs/types/CamStreamerAPI.js +30 -3
- package/esm/CamOverlayAPI.js +2 -2
- package/esm/CamStreamerAPI.js +53 -11
- package/esm/CamSwitcherAPI.js +7 -7
- package/esm/CamSwitcherEvents.js +5 -61
- package/esm/PlaneTrackerAPI.js +52 -52
- package/esm/VapixAPI.js +10 -7
- package/esm/index.js +1 -6
- package/esm/internal/ProxyClient.js +6 -6
- package/esm/internal/WsEvents.js +68 -0
- package/esm/node/DefaultClient.js +4 -4
- package/esm/node/HttpRequestSender.js +1 -1
- package/esm/node/WsClient.js +1 -1
- package/esm/{events → node/events}/AxisCameraStationEvents.js +3 -3
- package/esm/{events → node/events}/GenetecAgent.js +41 -30
- package/esm/node/index.js +5 -4
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +9 -0
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +124 -0
- package/esm/types/CamStreamerAPI.js +29 -2
- package/package.json +22 -2
- package/{cjs → types}/CamOverlayAPI.d.ts +3 -5
- package/{esm → types}/CamScripterAPI.d.ts +4 -4
- package/types/CamStreamerAPI.d.ts +48 -0
- package/{esm → types}/CamSwitcherAPI.d.ts +8 -8
- package/types/CamSwitcherEvents.d.ts +8 -0
- package/types/PlaneTrackerAPI.d.ts +43 -0
- package/{cjs → types}/VapixAPI.d.ts +11 -7
- package/{cjs → types}/index.d.ts +1 -6
- package/{esm → types}/internal/ProxyClient.d.ts +4 -4
- package/types/internal/WsEvents.d.ts +41 -0
- package/{esm → types}/internal/types.d.ts +12 -9
- package/{cjs → types}/node/DefaultClient.d.ts +6 -4
- package/{esm → types/node}/events/AxisCameraStationEvents.d.ts +4 -4
- package/{esm → types/node}/events/GenetecAgent.d.ts +14 -32
- package/types/node/index.d.ts +5 -0
- package/{cjs → types}/types/CamOverlayAPI/CamOverlayAPI.d.ts +1071 -7
- package/{esm → types}/types/CamOverlayAPI/infotickerSchema.d.ts +2 -2
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +357 -0
- package/types/types/CamStreamerAPI.d.ts +274 -0
- package/types/web/DefaultClient.d.ts +6 -0
- package/cjs/CamScripterAPI.d.ts +0 -37
- package/cjs/CamStreamerAPI.d.ts +0 -19
- package/cjs/CamSwitcherAPI.d.ts +0 -54
- package/cjs/CamSwitcherEvents.d.ts +0 -18
- package/cjs/PlaneTrackerAPI.d.ts +0 -43
- package/cjs/events/AxisCameraStationEvents.d.ts +0 -12
- package/cjs/events/GenetecAgent.d.ts +0 -177
- package/cjs/internal/ProxyClient.d.ts +0 -10
- package/cjs/internal/types.d.ts +0 -42
- package/cjs/node/index.d.ts +0 -4
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +0 -96
- package/cjs/types/CamStreamerAPI.d.ts +0 -150
- package/cjs/web/DefaultClient.d.ts +0 -6
- package/esm/CamOverlayAPI.d.ts +0 -41
- package/esm/CamOverlayDrawingAPI.d.ts +0 -41
- package/esm/CamOverlayPainter/Frame.d.ts +0 -67
- package/esm/CamOverlayPainter/Painter.d.ts +0 -43
- package/esm/CamOverlayPainter/ResourceManager.d.ts +0 -15
- package/esm/CamScripterAPICameraEventsGenerator.d.ts +0 -74
- package/esm/CamStreamerAPI.d.ts +0 -19
- package/esm/CamSwitcherEvents.d.ts +0 -18
- package/esm/CreatePackage.d.ts +0 -1
- package/esm/PlaneTrackerAPI.d.ts +0 -43
- package/esm/VapixAPI.d.ts +0 -80
- package/esm/VapixEvents.d.ts +0 -43
- package/esm/errors/errors.d.ts +0 -37
- package/esm/index.d.ts +0 -23
- package/esm/internal/Digest.d.ts +0 -4
- package/esm/internal/constants.d.ts +0 -1
- package/esm/internal/transformers.d.ts +0 -5
- package/esm/internal/utils.d.ts +0 -14
- package/esm/internal/versionCompare.d.ts +0 -6
- package/esm/node/DefaultClient.d.ts +0 -14
- package/esm/node/HttpRequestSender.d.ts +0 -29
- package/esm/node/HttpServer.d.ts +0 -21
- package/esm/node/WsClient.d.ts +0 -40
- package/esm/node/index.d.ts +0 -4
- package/esm/types/CamOverlayAPI/CamOverlayAPI.d.ts +0 -3260
- package/esm/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -84
- package/esm/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -700
- package/esm/types/CamOverlayAPI/imagesSchema.d.ts +0 -95
- package/esm/types/CamOverlayAPI/index.d.ts +0 -11
- package/esm/types/CamOverlayAPI/pipSchema.d.ts +0 -125
- package/esm/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -93
- package/esm/types/CamOverlayAPI/ptzSchema.d.ts +0 -118
- package/esm/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -58
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -58
- package/esm/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -141
- package/esm/types/CamOverlayDrawingAPI.d.ts +0 -58
- package/esm/types/CamOverlayPainter.d.ts +0 -74
- package/esm/types/CamScripterAPI.d.ts +0 -132
- package/esm/types/CamStreamerAPI.d.ts +0 -150
- package/esm/types/CamSwitcherAPI.d.ts +0 -812
- package/esm/types/CamSwitcherEvents.d.ts +0 -568
- package/esm/types/PlaneTrackerAPI.d.ts +0 -8
- package/esm/types/VapixAPI.d.ts +0 -1819
- package/esm/types/common.d.ts +0 -46
- package/esm/web/DefaultClient.d.ts +0 -6
- package/esm/web/WsClient.d.ts +0 -13
- package/esm/web/index.d.ts +0 -2
- /package/cjs/{internal → node}/Digest.js +0 -0
- /package/esm/{internal → node}/Digest.js +0 -0
- /package/{cjs → types}/CamOverlayDrawingAPI.d.ts +0 -0
- /package/{cjs → types}/CamOverlayPainter/Frame.d.ts +0 -0
- /package/{cjs → types}/CamOverlayPainter/Painter.d.ts +0 -0
- /package/{cjs → types}/CamOverlayPainter/ResourceManager.d.ts +0 -0
- /package/{cjs → types}/CamScripterAPICameraEventsGenerator.d.ts +0 -0
- /package/{cjs → types}/CreatePackage.d.ts +0 -0
- /package/{cjs → types}/VapixEvents.d.ts +0 -0
- /package/{cjs → types}/errors/errors.d.ts +0 -0
- /package/{cjs → types}/internal/constants.d.ts +0 -0
- /package/{cjs → types}/internal/transformers.d.ts +0 -0
- /package/{cjs → types}/internal/utils.d.ts +0 -0
- /package/{cjs → types}/internal/versionCompare.d.ts +0 -0
- /package/{cjs/internal → types/node}/Digest.d.ts +0 -0
- /package/{cjs → types}/node/HttpRequestSender.d.ts +0 -0
- /package/{cjs → types}/node/HttpServer.d.ts +0 -0
- /package/{cjs → types}/node/WsClient.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/accuweatherSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/customGraphicsSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/imagesSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/index.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/pipSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/ptzCompassSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/ptzSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/screenSharingSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/webCameraSharingSchema.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayAPI/widgetCommonTypes.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayDrawingAPI.d.ts +0 -0
- /package/{cjs → types}/types/CamOverlayPainter.d.ts +0 -0
- /package/{cjs → types}/types/CamScripterAPI.d.ts +0 -0
- /package/{cjs → types}/types/CamSwitcherAPI.d.ts +0 -0
- /package/{cjs → types}/types/CamSwitcherEvents.d.ts +0 -0
- /package/{cjs → types}/types/PlaneTrackerAPI.d.ts +0 -0
- /package/{cjs → types}/types/VapixAPI.d.ts +0 -0
- /package/{cjs → types}/types/common.d.ts +0 -0
- /package/{cjs → types}/web/WsClient.d.ts +0 -0
- /package/{cjs → types}/web/index.d.ts +0 -0
package/esm/CamOverlayAPI.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { IClient, TBlobResponse, TResponse } from './internal/types';
|
|
4
|
-
import { THttpRequestOptions, TProxyParams, TNetworkCamera } from './types/common';
|
|
5
|
-
import { ProxyClient } from './internal/ProxyClient';
|
|
6
|
-
import { ImageType, TCoordinates, TField, TFile, TFileList, TFileType, TStorage, TStorageDataList, TWidget } from './types/CamOverlayAPI';
|
|
7
|
-
export declare class CamOverlayAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
|
|
8
|
-
private client;
|
|
9
|
-
constructor(client: Client);
|
|
10
|
-
static getBasePath: () => string;
|
|
11
|
-
static getProxyPath: () => string;
|
|
12
|
-
static getFilePreviewPath: (path: string) => string;
|
|
13
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
14
|
-
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
15
|
-
getNetworkCameraList(options?: THttpRequestOptions): Promise<TNetworkCamera[]>;
|
|
16
|
-
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
17
|
-
getMjpegStreamImage(mjpegUrl: string, options?: THttpRequestOptions): Promise<TBlobResponse<Client>>;
|
|
18
|
-
listFiles(fileType: TFileType, options?: THttpRequestOptions): Promise<TFileList>;
|
|
19
|
-
uploadFile(fileType: TFileType, formData: FormData, storage: TStorage, options?: THttpRequestOptions): Promise<void>;
|
|
20
|
-
removeFile(fileType: TFileType, fileParams: TFile, options?: THttpRequestOptions): Promise<void>;
|
|
21
|
-
getFileStorage(fileType: TFileType, options?: THttpRequestOptions): Promise<TStorageDataList>;
|
|
22
|
-
getFilePreviewFromCamera(path: string, options?: THttpRequestOptions): Promise<TBlobResponse<Client>>;
|
|
23
|
-
updateInfoticker(serviceId: number, text: string, options?: THttpRequestOptions): Promise<void>;
|
|
24
|
-
setEnabled(serviceId: number, enabled: boolean, options?: THttpRequestOptions): Promise<void>;
|
|
25
|
-
isEnabled(serviceId: number, options?: THttpRequestOptions): Promise<boolean>;
|
|
26
|
-
getSingleWidget(serviceId: number, options?: THttpRequestOptions): Promise<TWidget>;
|
|
27
|
-
getWidgets(options?: THttpRequestOptions): Promise<TWidget[]>;
|
|
28
|
-
updateSingleWidget(widget: TWidget, options?: THttpRequestOptions): Promise<void>;
|
|
29
|
-
updateWidgets(widgets: TWidget[], options?: THttpRequestOptions): Promise<void>;
|
|
30
|
-
updateCGText(serviceId: number, fields: TField[], options?: THttpRequestOptions): Promise<void>;
|
|
31
|
-
updateCGImagePos(serviceId: number, coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
|
|
32
|
-
updateCGImage(serviceId: number, path: string, coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
|
|
33
|
-
updateCGImageFromData(serviceId: number, imageType: ImageType, imageData: Buffer, coordinates?: TCoordinates, x?: number, y?: number, options?: THttpRequestOptions): Promise<void>;
|
|
34
|
-
private promiseCGUpdate;
|
|
35
|
-
private _get;
|
|
36
|
-
private _post;
|
|
37
|
-
private _getBlob;
|
|
38
|
-
private parseBlobResponse;
|
|
39
|
-
private _postUrlEncoded;
|
|
40
|
-
private _postJsonEncoded;
|
|
41
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
/// <reference types="node" />
|
|
4
|
-
import * as EventEmitter from 'events';
|
|
5
|
-
import { CamOverlayDrawingOptions, TCairoCreateResponse, TCairoResponse, TUploadImageResponse, TWriteTextParams } from './types/CamOverlayDrawingAPI';
|
|
6
|
-
export declare class CamOverlayDrawingAPI extends EventEmitter {
|
|
7
|
-
private tls;
|
|
8
|
-
private tlsInsecure;
|
|
9
|
-
private ip;
|
|
10
|
-
private port;
|
|
11
|
-
private user;
|
|
12
|
-
private pass;
|
|
13
|
-
private cameraList;
|
|
14
|
-
private zIndex;
|
|
15
|
-
private callId;
|
|
16
|
-
private sendMessages;
|
|
17
|
-
private timeoutCheckTimer;
|
|
18
|
-
private wsConnected;
|
|
19
|
-
private ws;
|
|
20
|
-
constructor(options?: CamOverlayDrawingOptions);
|
|
21
|
-
connect(): void;
|
|
22
|
-
disconnect(): void;
|
|
23
|
-
isConnected(): boolean;
|
|
24
|
-
cairo(command: string, ...params: unknown[]): Promise<TCairoResponse | TCairoCreateResponse>;
|
|
25
|
-
writeText(...params: TWriteTextParams): Promise<TCairoResponse>;
|
|
26
|
-
uploadImageData(imgBuffer: Buffer): Promise<TUploadImageResponse>;
|
|
27
|
-
uploadFontData(fontBuffer: Buffer): Promise<TCairoCreateResponse>;
|
|
28
|
-
showCairoImage(cairoImage: string, posX: number, posY: number): Promise<TCairoResponse>;
|
|
29
|
-
showCairoImageAbsolute(cairoImage: string, posX: number, posY: number, width: number, height: number): Promise<TCairoResponse>;
|
|
30
|
-
removeImage(): Promise<TCairoResponse>;
|
|
31
|
-
private createWsClient;
|
|
32
|
-
private incomingWsMessageHandler;
|
|
33
|
-
private sendMessage;
|
|
34
|
-
private sendBinaryMessage;
|
|
35
|
-
private startMsgsTimeoutCheck;
|
|
36
|
-
private stopMsgsTimeoutCheck;
|
|
37
|
-
private reconnectWithError;
|
|
38
|
-
private reportMessage;
|
|
39
|
-
private reportError;
|
|
40
|
-
private reportClose;
|
|
41
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import { CamOverlayDrawingAPI } from '../CamOverlayDrawingAPI';
|
|
4
|
-
import { TAlign, TCairoCreateResponse, TUploadImageResponse } from '../types/CamOverlayDrawingAPI';
|
|
5
|
-
import { ResourceManager } from './ResourceManager';
|
|
6
|
-
import { TBg, TBorder, TDrawingCallback, TFrame, TFrameOptions, TObjectFitType, TRgb, TRgba, TText, TTmf } from '../types/CamOverlayPainter';
|
|
7
|
-
export declare class Frame extends EventEmitter {
|
|
8
|
-
protected enabled: boolean;
|
|
9
|
-
protected posX: number;
|
|
10
|
-
protected posY: number;
|
|
11
|
-
protected width: number;
|
|
12
|
-
protected height: number;
|
|
13
|
-
private text;
|
|
14
|
-
private fontColor;
|
|
15
|
-
private fontName?;
|
|
16
|
-
private font?;
|
|
17
|
-
private align;
|
|
18
|
-
private textType;
|
|
19
|
-
private bgColor?;
|
|
20
|
-
private bgImageName?;
|
|
21
|
-
private bgImage?;
|
|
22
|
-
private bgType?;
|
|
23
|
-
private borderRadius;
|
|
24
|
-
private borderWidth;
|
|
25
|
-
private borderColor;
|
|
26
|
-
private customDraw?;
|
|
27
|
-
private layer;
|
|
28
|
-
protected children: Frame[];
|
|
29
|
-
constructor(opt: TFrameOptions);
|
|
30
|
-
enable(): void;
|
|
31
|
-
disable(): void;
|
|
32
|
-
setFramePosition(x: number, y: number): void;
|
|
33
|
-
setFrameSize(width: number, height: number): void;
|
|
34
|
-
getFrameInfo(): TFrame;
|
|
35
|
-
setText(text: string, align: TAlign, textType?: TTmf, fontColor?: TRgb): void;
|
|
36
|
-
setFontColor(fontColor: TRgb): void;
|
|
37
|
-
setFont(fontName: string): void;
|
|
38
|
-
setFontData(fontData: TCairoCreateResponse): void;
|
|
39
|
-
getTextInfo(): TText;
|
|
40
|
-
setBgColor(color: TRgba): void;
|
|
41
|
-
setBgImage(imageName: string, type?: TObjectFitType): void;
|
|
42
|
-
setBgImageData(imageData: TUploadImageResponse, type?: TObjectFitType): void;
|
|
43
|
-
setBgType(type: TObjectFitType): void;
|
|
44
|
-
getBgInfo(): TBg;
|
|
45
|
-
setBorderRadius(radius: number): void;
|
|
46
|
-
setBorderWidth(width: number): void;
|
|
47
|
-
setBorderColor(color: TRgba): void;
|
|
48
|
-
getBorderInfo(): TBorder;
|
|
49
|
-
setCustomDraw(customDraw: TDrawingCallback): void;
|
|
50
|
-
resetFont(): void;
|
|
51
|
-
resetBgColor(): void;
|
|
52
|
-
resetBgImage(): void;
|
|
53
|
-
resetCustomDraw(): void;
|
|
54
|
-
clear(): void;
|
|
55
|
-
insert(...frames: Frame[]): void;
|
|
56
|
-
getLayers(): Set<number>;
|
|
57
|
-
protected layoutChanged(): void;
|
|
58
|
-
displayImage(cod: CamOverlayDrawingAPI, resourceManager: ResourceManager, cairo: string, ppX: number, ppY: number, scale: number, layer: number): Promise<void>;
|
|
59
|
-
private prepareResources;
|
|
60
|
-
protected displayOwnImage(cod: CamOverlayDrawingAPI, cairo: string, ppX: number, ppY: number, scale: number): Promise<void>;
|
|
61
|
-
private clipDrawing;
|
|
62
|
-
private drawFrame;
|
|
63
|
-
private drawImage;
|
|
64
|
-
private drawText;
|
|
65
|
-
private drawBorder;
|
|
66
|
-
private drawRectPath;
|
|
67
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { CamOverlayDrawingAPI } from '../CamOverlayDrawingAPI';
|
|
2
|
-
import { CamOverlayDrawingOptions } from '../types/CamOverlayDrawingAPI';
|
|
3
|
-
import { ResourceManager } from './ResourceManager';
|
|
4
|
-
import { Frame } from './Frame';
|
|
5
|
-
import { TCoAlignment, TPainterOptions } from '../types/CamOverlayPainter';
|
|
6
|
-
export declare const COORD: {
|
|
7
|
-
readonly top_left: readonly [-1, -1];
|
|
8
|
-
readonly center_left: readonly [-1, 0];
|
|
9
|
-
readonly bottom_left: readonly [-1, 1];
|
|
10
|
-
readonly top_center: readonly [0, -1];
|
|
11
|
-
readonly center: readonly [0, 0];
|
|
12
|
-
readonly bottom_center: readonly [0, 1];
|
|
13
|
-
readonly top_right: readonly [1, -1];
|
|
14
|
-
readonly center_right: readonly [1, 0];
|
|
15
|
-
readonly bottom_right: readonly [1, 1];
|
|
16
|
-
};
|
|
17
|
-
export declare class Painter extends Frame {
|
|
18
|
-
private screenWidth;
|
|
19
|
-
private screenHeight;
|
|
20
|
-
private coAlignment;
|
|
21
|
-
private cod;
|
|
22
|
-
private rm;
|
|
23
|
-
private refreshLayers;
|
|
24
|
-
private layers;
|
|
25
|
-
constructor(opt: TPainterOptions, coopt: CamOverlayDrawingOptions);
|
|
26
|
-
get camOverlayDrawingAPI(): CamOverlayDrawingAPI;
|
|
27
|
-
get resourceManager(): ResourceManager;
|
|
28
|
-
connect(): void;
|
|
29
|
-
disconnect(): void;
|
|
30
|
-
isConnected(): boolean;
|
|
31
|
-
registerImage(moniker: string, fileName: string): void;
|
|
32
|
-
registerFont(moniker: string, fileName: string): void;
|
|
33
|
-
setScreenSize(sw: number, sh: number): void;
|
|
34
|
-
setCoAlignment(coAlignment: TCoAlignment): void;
|
|
35
|
-
protected layoutChanged(): void;
|
|
36
|
-
display(scale?: number): Promise<void>;
|
|
37
|
-
hide(): Promise<void>;
|
|
38
|
-
invalidateLayer(layer: number): Promise<void>;
|
|
39
|
-
private prepareLayers;
|
|
40
|
-
private prepareSurface;
|
|
41
|
-
private cleanupSurface;
|
|
42
|
-
private positionConvertor;
|
|
43
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { CamOverlayDrawingAPI } from '../CamOverlayDrawingAPI';
|
|
2
|
-
import { TUploadImageResponse, TCairoCreateResponse } from '../types/CamOverlayDrawingAPI';
|
|
3
|
-
export declare class ResourceManager {
|
|
4
|
-
private co;
|
|
5
|
-
private imgFileNames;
|
|
6
|
-
private fontFileNames;
|
|
7
|
-
private images;
|
|
8
|
-
private fonts;
|
|
9
|
-
constructor(co: CamOverlayDrawingAPI);
|
|
10
|
-
registerImage(moniker: string, fileName: string): void;
|
|
11
|
-
registerFont(moniker: string, fileName: string): void;
|
|
12
|
-
image(moniker: string): Promise<TUploadImageResponse>;
|
|
13
|
-
font(moniker: string): Promise<TCairoCreateResponse>;
|
|
14
|
-
clear(): void;
|
|
15
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import * as EventEmitter from 'events';
|
|
3
|
-
import { WsOptions } from './internal/types';
|
|
4
|
-
export type CamScripterOptions = WsOptions;
|
|
5
|
-
export type TDeclaration = {
|
|
6
|
-
type?: '' | 'SOURCE' | 'DATA';
|
|
7
|
-
namespace: string;
|
|
8
|
-
key: string;
|
|
9
|
-
value: string | boolean | number;
|
|
10
|
-
value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
|
|
11
|
-
key_nice_name?: string;
|
|
12
|
-
value_nice_name?: string;
|
|
13
|
-
};
|
|
14
|
-
export type TEventDeclaration = {
|
|
15
|
-
declaration_id: string;
|
|
16
|
-
stateless: boolean;
|
|
17
|
-
declaration: TDeclaration[];
|
|
18
|
-
};
|
|
19
|
-
export type TEventUndeclaration = {
|
|
20
|
-
declaration_id: string;
|
|
21
|
-
};
|
|
22
|
-
export type TEventData = {
|
|
23
|
-
namespace: string;
|
|
24
|
-
key: string;
|
|
25
|
-
value: string | boolean | number;
|
|
26
|
-
value_type: 'STRING' | 'INT' | 'BOOL' | 'DOUBLE';
|
|
27
|
-
};
|
|
28
|
-
export type TEvent = {
|
|
29
|
-
declaration_id: string;
|
|
30
|
-
event_data: TEventData[];
|
|
31
|
-
};
|
|
32
|
-
export type TResponse = {
|
|
33
|
-
call_id: number;
|
|
34
|
-
message: string;
|
|
35
|
-
};
|
|
36
|
-
export type TErrorResponse = {
|
|
37
|
-
error: string;
|
|
38
|
-
call_id?: number;
|
|
39
|
-
};
|
|
40
|
-
export interface CamScripterAPICameraEventsGenerator {
|
|
41
|
-
on(event: 'open', listener: () => void): this;
|
|
42
|
-
on(event: 'close', listener: () => void): this;
|
|
43
|
-
on(event: 'error', listener: (err: Error) => void): this;
|
|
44
|
-
emit(event: 'open'): boolean;
|
|
45
|
-
emit(event: 'close'): boolean;
|
|
46
|
-
emit(event: 'error', err: Error): boolean;
|
|
47
|
-
}
|
|
48
|
-
export declare class CamScripterAPICameraEventsGenerator extends EventEmitter {
|
|
49
|
-
private tls;
|
|
50
|
-
private tlsInsecure;
|
|
51
|
-
private ip;
|
|
52
|
-
private port;
|
|
53
|
-
private user;
|
|
54
|
-
private pass;
|
|
55
|
-
private callId;
|
|
56
|
-
private sendMessages;
|
|
57
|
-
private timeoutCheckTimer;
|
|
58
|
-
private wsConnected;
|
|
59
|
-
private ws;
|
|
60
|
-
constructor(options?: CamScripterOptions);
|
|
61
|
-
connect(): void;
|
|
62
|
-
disconnect(): void;
|
|
63
|
-
declareEvent(eventDeclaration: TEventDeclaration): Promise<TResponse>;
|
|
64
|
-
undeclareEvent(eventUndeclaration: TEventUndeclaration): Promise<TResponse>;
|
|
65
|
-
sendEvent(event: TEvent): Promise<TResponse>;
|
|
66
|
-
private createWsClient;
|
|
67
|
-
private incomingWsMessageHandler;
|
|
68
|
-
private sendMessage;
|
|
69
|
-
private startMsgsTimeoutCheck;
|
|
70
|
-
private stopMsgsTimeoutCheck;
|
|
71
|
-
private reconnectWithError;
|
|
72
|
-
private reportErr;
|
|
73
|
-
private reportClose;
|
|
74
|
-
}
|
package/esm/CamStreamerAPI.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ProxyClient } from './internal/ProxyClient';
|
|
2
|
-
import { IClient, TResponse } from './internal/types';
|
|
3
|
-
import { TStreamAttributes, TStreamList } from './types/CamStreamerAPI';
|
|
4
|
-
import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
5
|
-
export declare class CamStreamerAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
|
|
6
|
-
client: Client;
|
|
7
|
-
constructor(client: Client);
|
|
8
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
9
|
-
getStreamList(options?: THttpRequestOptions): Promise<TStreamList>;
|
|
10
|
-
getStream(streamId: string, options?: THttpRequestOptions): Promise<TStreamAttributes>;
|
|
11
|
-
getStreamParameter(streamId: string, paramName: string, options?: THttpRequestOptions): Promise<string>;
|
|
12
|
-
setStream(streamId: string, params: Partial<TStreamAttributes>, options?: THttpRequestOptions): Promise<void>;
|
|
13
|
-
setStreamParameter(streamId: string, paramName: string, value: string, options?: THttpRequestOptions): Promise<void>;
|
|
14
|
-
isStreaming(streamId: string, options?: THttpRequestOptions): Promise<boolean>;
|
|
15
|
-
deleteStream(streamId: string, options?: THttpRequestOptions): Promise<void>;
|
|
16
|
-
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
17
|
-
getUtcTime(options?: THttpRequestOptions): Promise<number>;
|
|
18
|
-
private get;
|
|
19
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IWebsocket } from './internal/types';
|
|
2
|
-
import { TCamSwitcherEventOfType, TCamSwitcherEventType } from './types/CamSwitcherEvents';
|
|
3
|
-
type TListenerFunction<T extends TCamSwitcherEventType> = (data: TCamSwitcherEventOfType<T>, isInit: boolean) => void;
|
|
4
|
-
export declare class CamSwitcherEvents<Event extends {
|
|
5
|
-
data: string;
|
|
6
|
-
}> {
|
|
7
|
-
isDestroyed: boolean;
|
|
8
|
-
private ws;
|
|
9
|
-
private listeners;
|
|
10
|
-
setWebsocket(ws: IWebsocket<Event>): void;
|
|
11
|
-
resendInitData(): void;
|
|
12
|
-
addListener<T extends TCamSwitcherEventType>(type: T, listener: TListenerFunction<T>, id: string): void;
|
|
13
|
-
removeListener<T extends TCamSwitcherEventType>(type: T, id: string): void;
|
|
14
|
-
private onMessage;
|
|
15
|
-
private processMessage;
|
|
16
|
-
destroy(): void;
|
|
17
|
-
}
|
|
18
|
-
export {};
|
package/esm/CreatePackage.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/esm/PlaneTrackerAPI.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { IClient, TBlobResponse, TParameters, TResponse } from './internal/types';
|
|
2
|
-
import { ICAO, TApiUser, TExportDataType, TImportDataType } from './types/PlaneTrackerAPI';
|
|
3
|
-
import { THttpRequestOptions, TProxyParams } from './types/common';
|
|
4
|
-
import { ProxyClient } from './internal/ProxyClient';
|
|
5
|
-
export declare class PlaneTrackerAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
|
|
6
|
-
private client;
|
|
7
|
-
private apiUser;
|
|
8
|
-
constructor(client: Client, apiUser: TApiUser);
|
|
9
|
-
static getProxyUrlPath: () => string;
|
|
10
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
11
|
-
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
12
|
-
resetPtzCalibration: (options?: THttpRequestOptions) => Promise<TResponse>;
|
|
13
|
-
resetFocusCalibration: (options?: THttpRequestOptions) => Promise<TResponse>;
|
|
14
|
-
serverRunCheck: (options?: THttpRequestOptions) => Promise<TResponse>;
|
|
15
|
-
getLiveViewAlias: (rtspUrl: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
16
|
-
fetchCameraSettings: (options?: THttpRequestOptions) => Promise<any>;
|
|
17
|
-
setCameraSettings: (settingsJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
18
|
-
fetchServerSettings: (options?: THttpRequestOptions) => Promise<any>;
|
|
19
|
-
exportAppSettings: (dataType: TExportDataType, options?: THttpRequestOptions) => Promise<TBlobResponse<Client>>;
|
|
20
|
-
importAppSettings: (dataType: TImportDataType, formData: FormData, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
21
|
-
fetchFlightInfo: (icao: ICAO, options?: THttpRequestOptions) => Promise<any>;
|
|
22
|
-
getTrackingMode: (options?: THttpRequestOptions) => Promise<any>;
|
|
23
|
-
setTrackingMode: (modeJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
24
|
-
startTrackingPlane: (icao: ICAO, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
25
|
-
stopTrackingPlane: (options?: THttpRequestOptions) => Promise<TResponse>;
|
|
26
|
-
getPriorityList: (options?: THttpRequestOptions) => Promise<any>;
|
|
27
|
-
setPriorityList: (priorityListJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
28
|
-
getWhiteList: (options?: THttpRequestOptions) => Promise<any>;
|
|
29
|
-
setWhiteList: (whiteListJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
30
|
-
getBlackList: (options?: THttpRequestOptions) => Promise<any>;
|
|
31
|
-
setBlackList: (blackListJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
32
|
-
fetchMapInfo: (options?: THttpRequestOptions) => Promise<any>;
|
|
33
|
-
getZones: (options?: THttpRequestOptions) => Promise<any>;
|
|
34
|
-
setZones: (zonesJsonString: string, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
35
|
-
goToCoordinates: (lat: number, lon: number, alt?: number, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
36
|
-
checkGenetecConnection: (params: TParameters, options?: THttpRequestOptions) => Promise<TResponse>;
|
|
37
|
-
getGenetecCameraList: (params: TParameters, options?: THttpRequestOptions) => Promise<any>;
|
|
38
|
-
private _getJson;
|
|
39
|
-
private _getBlob;
|
|
40
|
-
private parseBlobResponse;
|
|
41
|
-
private _postJsonEncoded;
|
|
42
|
-
private _postUrlEncoded;
|
|
43
|
-
}
|
package/esm/VapixAPI.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { IClient, TParameters, TResponse } from './internal/types';
|
|
2
|
-
import { TAudioSampleRates, TSDCardInfo, TPtzOverview, TCameraPTZItem, TCameraPTZItemData, TAudioDevice, TPortSetSchema, TPortSequenceStateSchema } from './types/VapixAPI';
|
|
3
|
-
import { ProxyClient } from './internal/ProxyClient';
|
|
4
|
-
import { TCameraImageConfig, THttpRequestOptions, TProxyParams } from './types/common';
|
|
5
|
-
export declare class VapixAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
|
|
6
|
-
private client;
|
|
7
|
-
constructor(client: Client);
|
|
8
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
9
|
-
postUrlEncoded(path: string, parameters?: TParameters, headers?: Record<string, string>, options?: THttpRequestOptions): Promise<TResponse>;
|
|
10
|
-
postJson(path: string, jsonData: Record<string, any>, headers?: Record<string, string>, options?: THttpRequestOptions): Promise<TResponse>;
|
|
11
|
-
getCameraImage(parameters: TCameraImageConfig, options?: THttpRequestOptions): Promise<TResponse>;
|
|
12
|
-
getEventDeclarations(options?: THttpRequestOptions): Promise<string>;
|
|
13
|
-
getSupportedAudioSampleRate(options?: THttpRequestOptions): Promise<TAudioSampleRates[]>;
|
|
14
|
-
performAutofocus(options?: THttpRequestOptions): Promise<void>;
|
|
15
|
-
checkSDCard(options?: THttpRequestOptions): Promise<TSDCardInfo>;
|
|
16
|
-
mountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
17
|
-
unmountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
18
|
-
private _doSDCardMountAction;
|
|
19
|
-
fetchSDCardJobProgress(jobId: number, options?: THttpRequestOptions): Promise<number>;
|
|
20
|
-
downloadCameraReport(options?: THttpRequestOptions): Promise<TResponse>;
|
|
21
|
-
getSystemLog(options?: THttpRequestOptions): Promise<TResponse>;
|
|
22
|
-
getMaxFps(channel: number, options?: THttpRequestOptions): Promise<number>;
|
|
23
|
-
getTimezone(options?: THttpRequestOptions): Promise<string>;
|
|
24
|
-
getDateTimeInfo(options?: THttpRequestOptions): Promise<{
|
|
25
|
-
data: {
|
|
26
|
-
dateTime: string;
|
|
27
|
-
dstEnabled: boolean;
|
|
28
|
-
localDateTime: string;
|
|
29
|
-
posixTimeZone: string;
|
|
30
|
-
timeZone?: string | undefined;
|
|
31
|
-
};
|
|
32
|
-
}>;
|
|
33
|
-
getDevicesSettings(options?: THttpRequestOptions): Promise<TAudioDevice[]>;
|
|
34
|
-
fetchRemoteDeviceInfo<T extends Record<string, any>>(payload: T, options?: THttpRequestOptions): Promise<any>;
|
|
35
|
-
getHeaders(options?: THttpRequestOptions): Promise<Record<string, string>>;
|
|
36
|
-
setHeaders(headers: Record<string, string>, options?: THttpRequestOptions): Promise<TResponse>;
|
|
37
|
-
getParameter(paramNames: string | string[], options?: THttpRequestOptions): Promise<Record<string, string>>;
|
|
38
|
-
setParameter(params: Record<string, string | number | boolean>, options?: THttpRequestOptions): Promise<boolean>;
|
|
39
|
-
getGuardTourList(options?: THttpRequestOptions): Promise<{
|
|
40
|
-
name: string;
|
|
41
|
-
id: string;
|
|
42
|
-
running: string;
|
|
43
|
-
tour: {
|
|
44
|
-
moveSpeed?: unknown;
|
|
45
|
-
position?: unknown;
|
|
46
|
-
presetNbr?: unknown;
|
|
47
|
-
waitTime?: unknown;
|
|
48
|
-
waitTimeViewType?: unknown;
|
|
49
|
-
}[];
|
|
50
|
-
camNbr?: unknown;
|
|
51
|
-
randomEnabled?: unknown;
|
|
52
|
-
timeBetweenSequences?: unknown;
|
|
53
|
-
}[]>;
|
|
54
|
-
setGuardTourEnabled(guardTourID: string, enable: boolean, options?: THttpRequestOptions): Promise<boolean>;
|
|
55
|
-
getPTZPresetList(channel: number, options?: THttpRequestOptions): Promise<string[]>;
|
|
56
|
-
listPTZ(camera: number, options?: THttpRequestOptions): Promise<TCameraPTZItem[]>;
|
|
57
|
-
listPtzVideoSourceOverview(options?: THttpRequestOptions): Promise<TPtzOverview>;
|
|
58
|
-
goToPreset(channel: number, presetName: string, options?: THttpRequestOptions): Promise<TResponse>;
|
|
59
|
-
getPtzPosition(camera: number, options?: THttpRequestOptions): Promise<TCameraPTZItemData>;
|
|
60
|
-
getPorts(options?: THttpRequestOptions): Promise<{
|
|
61
|
-
name: string;
|
|
62
|
-
port: string;
|
|
63
|
-
state: "open" | "closed";
|
|
64
|
-
configurable: boolean;
|
|
65
|
-
usage: string;
|
|
66
|
-
direction: "input" | "output";
|
|
67
|
-
normalState: "open" | "closed";
|
|
68
|
-
readonly?: boolean | undefined;
|
|
69
|
-
}[]>;
|
|
70
|
-
setPorts(ports: TPortSetSchema[], options?: THttpRequestOptions): Promise<void>;
|
|
71
|
-
setPortStateSequence(port: number, sequence: TPortSequenceStateSchema[], options?: THttpRequestOptions): Promise<void>;
|
|
72
|
-
getApplicationList(options?: THttpRequestOptions): Promise<any>;
|
|
73
|
-
startApplication(applicationID: string, options?: THttpRequestOptions): Promise<void>;
|
|
74
|
-
restartApplication(applicationID: string, options?: THttpRequestOptions): Promise<void>;
|
|
75
|
-
stopApplication(applicationID: string, options?: THttpRequestOptions): Promise<void>;
|
|
76
|
-
installApplication(data: Blob, fileName: string, options?: THttpRequestOptions): Promise<void>;
|
|
77
|
-
private static parseParameters;
|
|
78
|
-
private static parseCameraPtzResponse;
|
|
79
|
-
private static parsePtz;
|
|
80
|
-
}
|
package/esm/VapixEvents.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { EventEmitter2 as EventEmitter } from 'eventemitter2';
|
|
2
|
-
import { WsOptions } from './internal/types';
|
|
3
|
-
export type VapixEventsOptions = WsOptions;
|
|
4
|
-
type TEventMessage = {
|
|
5
|
-
apiVersion: string;
|
|
6
|
-
method: string;
|
|
7
|
-
params: {
|
|
8
|
-
notification: {
|
|
9
|
-
timestamp: number;
|
|
10
|
-
topic: string;
|
|
11
|
-
message: {
|
|
12
|
-
source: Record<string, string>;
|
|
13
|
-
data: Record<string, string>;
|
|
14
|
-
key: Record<string, string>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export interface VapixEvents {
|
|
20
|
-
on(event: 'open', listener: () => void): this;
|
|
21
|
-
on(event: 'close', listener: () => void): this;
|
|
22
|
-
on(event: 'error', listener: (err: Error) => void): this;
|
|
23
|
-
on(event: string, listener: (data: TEventMessage) => void): this;
|
|
24
|
-
emit(event: 'open'): boolean;
|
|
25
|
-
emit(event: 'close'): boolean;
|
|
26
|
-
emit(event: 'error', err: Error): boolean;
|
|
27
|
-
emit(event: string, msg: TEventMessage): boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare class VapixEvents extends EventEmitter {
|
|
30
|
-
private tls;
|
|
31
|
-
private tlsInsecure;
|
|
32
|
-
private ip;
|
|
33
|
-
private port;
|
|
34
|
-
private user;
|
|
35
|
-
private pass;
|
|
36
|
-
private ws;
|
|
37
|
-
constructor(options?: VapixEventsOptions);
|
|
38
|
-
connect(): void;
|
|
39
|
-
disconnect(): void;
|
|
40
|
-
private createWsClient;
|
|
41
|
-
private isReservedEventName;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
package/esm/errors/errors.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export declare class ServiceUnavailableError extends Error {
|
|
2
|
-
constructor();
|
|
3
|
-
}
|
|
4
|
-
export declare class ServiceNotFoundError extends Error {
|
|
5
|
-
constructor();
|
|
6
|
-
}
|
|
7
|
-
export declare class ParsingBlobError extends Error {
|
|
8
|
-
constructor(err: unknown);
|
|
9
|
-
}
|
|
10
|
-
type TApplicationAPIAction = 'START' | 'RESTART' | 'STOP';
|
|
11
|
-
export declare class ApplicationAPIError extends Error {
|
|
12
|
-
constructor(action: TApplicationAPIAction, res: string);
|
|
13
|
-
}
|
|
14
|
-
type TSDCardAction = 'MOUNT' | 'UNMOUNT';
|
|
15
|
-
export declare class SDCardActionError extends Error {
|
|
16
|
-
constructor(action: TSDCardAction, res: string);
|
|
17
|
-
}
|
|
18
|
-
export declare class SDCardJobError extends Error {
|
|
19
|
-
constructor();
|
|
20
|
-
}
|
|
21
|
-
type TMaxFPSErrorType = 'MALFORMED_REPLY' | 'CHANNEL_NOT_FOUND' | 'CAPTURE_MODE_NOT_FOUND' | 'FPS_NOT_SPECIFIED';
|
|
22
|
-
export declare class MaxFPSError extends Error {
|
|
23
|
-
constructor(state: TMaxFPSErrorType);
|
|
24
|
-
}
|
|
25
|
-
export declare class NoDeviceInfoError extends Error {
|
|
26
|
-
constructor();
|
|
27
|
-
}
|
|
28
|
-
export declare class FetchDeviceInfoError extends Error {
|
|
29
|
-
constructor(err: unknown);
|
|
30
|
-
}
|
|
31
|
-
export declare class AddNewClipError extends Error {
|
|
32
|
-
constructor(message: string);
|
|
33
|
-
}
|
|
34
|
-
export declare class PtzNotSupportedError extends Error {
|
|
35
|
-
constructor();
|
|
36
|
-
}
|
|
37
|
-
export {};
|
package/esm/index.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export * from './internal/types';
|
|
2
|
-
export * from './internal/constants';
|
|
3
|
-
export * from './internal/utils';
|
|
4
|
-
export * from './internal/versionCompare';
|
|
5
|
-
export * from './types/common';
|
|
6
|
-
export { CamSwitcherAPI } from './CamSwitcherAPI';
|
|
7
|
-
export { CamSwitcherEvents } from './CamSwitcherEvents';
|
|
8
|
-
export { VapixAPI } from './VapixAPI';
|
|
9
|
-
export { CamOverlayAPI } from './CamOverlayAPI';
|
|
10
|
-
export { CamScripterAPI } from './CamScripterAPI';
|
|
11
|
-
export { CamStreamerAPI } from './CamStreamerAPI';
|
|
12
|
-
export { PlaneTrackerAPI } from './PlaneTrackerAPI';
|
|
13
|
-
export * from './types/CamSwitcherEvents';
|
|
14
|
-
export * from './types/CamSwitcherAPI';
|
|
15
|
-
export * from './types/VapixAPI';
|
|
16
|
-
export * from './types/CamOverlayAPI';
|
|
17
|
-
export * from './types/PlaneTrackerAPI';
|
|
18
|
-
export { Frame } from './CamOverlayPainter/Frame';
|
|
19
|
-
export { Painter } from './CamOverlayPainter/Painter';
|
|
20
|
-
export { ResourceManager } from './CamOverlayPainter/ResourceManager';
|
|
21
|
-
export * from './types/CamOverlayPainter';
|
|
22
|
-
export { CamOverlayDrawingAPI } from './CamOverlayDrawingAPI';
|
|
23
|
-
export * from './types/CamOverlayDrawingAPI';
|
package/esm/internal/Digest.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FIRMWARE_WITH_BITRATE_MODES_SUPPORT = "11.11.73";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { CamelCasedProperties, CamelCasedPropertiesDeep, SnakeCasedProperties, SnakeCasedPropertiesDeep } from 'type-fest';
|
|
2
|
-
export declare const toCamelCase: <T extends object>(o: T) => CamelCasedProperties<T>;
|
|
3
|
-
export declare const toCamelCaseDeep: <T extends object>(o: T) => CamelCasedPropertiesDeep<T>;
|
|
4
|
-
export declare const toSnakeCase: <T extends object>(o: T) => SnakeCasedProperties<T>;
|
|
5
|
-
export declare const toSnakeCaseDeep: <T extends object>(o: T) => SnakeCasedPropertiesDeep<T>;
|
package/esm/internal/utils.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TPlaylistPlayType } from '../types/CamSwitcherAPI';
|
|
2
|
-
import { TParameters, TResponse } from './types';
|
|
3
|
-
export declare const addParametersToPath: (path: string, params?: TParameters) => string;
|
|
4
|
-
export declare const paramToUrl: (params?: TParameters) => string;
|
|
5
|
-
export declare const arrayToUrl: (arr: string | string[]) => string;
|
|
6
|
-
export declare const isCamera: (id?: string) => boolean;
|
|
7
|
-
export declare const isStream: (id?: string) => boolean;
|
|
8
|
-
export declare const isClip: (id?: string) => boolean;
|
|
9
|
-
export declare const isTracker: (id?: string) => boolean;
|
|
10
|
-
export declare const isPlaylist: (id?: string) => boolean;
|
|
11
|
-
export declare const isLoopPlayType: (playType: TPlaylistPlayType) => boolean;
|
|
12
|
-
export declare function responseStringify(res: TResponse): Promise<string>;
|
|
13
|
-
export declare function pad(num: number, size: number): string;
|
|
14
|
-
export declare function isNullish<T>(value: T | undefined | null): value is undefined | null;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const assertVersionString: (s: string, msg?: string) => void;
|
|
2
|
-
export declare const isFirmwareVersionAtLeast: (version: string, compareVersion: string) => boolean;
|
|
3
|
-
export declare const isVersionAtLeast: (version: string, compareVersion: string) => boolean;
|
|
4
|
-
export declare const firmwareVersionCompare: (a: string, b: string) => 0 | 1 | -1;
|
|
5
|
-
export declare const versionCompare: (a: string, b: string) => 0 | 1 | -1;
|
|
6
|
-
export declare const fixVersionToDots: (version: string) => string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { IClient, HttpOptions, TGetParams, TPostParams } from '../internal/types';
|
|
2
|
-
import { Response as UndiciResponse } from 'undici';
|
|
3
|
-
export declare class DefaultClient implements IClient<UndiciResponse> {
|
|
4
|
-
private tls;
|
|
5
|
-
private ip;
|
|
6
|
-
private port;
|
|
7
|
-
private user;
|
|
8
|
-
private pass;
|
|
9
|
-
private httpRequestSender;
|
|
10
|
-
constructor(opt?: HttpOptions);
|
|
11
|
-
get: (params: TGetParams) => Promise<UndiciResponse>;
|
|
12
|
-
post: (params: TPostParams) => Promise<UndiciResponse>;
|
|
13
|
-
private getBaseConnectionParams;
|
|
14
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
3
|
-
import { FormData as UndiciFormData, Response as UndiciResponse } from 'undici';
|
|
4
|
-
export type HttpRequestOptions = {
|
|
5
|
-
method?: string;
|
|
6
|
-
protocol: string;
|
|
7
|
-
host: string;
|
|
8
|
-
port: number;
|
|
9
|
-
path: string;
|
|
10
|
-
user?: string;
|
|
11
|
-
pass?: string;
|
|
12
|
-
timeout?: number;
|
|
13
|
-
headers?: Record<string, string>;
|
|
14
|
-
};
|
|
15
|
-
export type AgentOptions = {
|
|
16
|
-
rejectUnaurhorized?: boolean;
|
|
17
|
-
keepAlive?: boolean;
|
|
18
|
-
};
|
|
19
|
-
export declare class HttpRequestSender {
|
|
20
|
-
private agent?;
|
|
21
|
-
private authData?;
|
|
22
|
-
constructor(agentOptions?: AgentOptions);
|
|
23
|
-
sendRequest(options: HttpRequestOptions, postData?: Buffer | string | UndiciFormData): Promise<UndiciResponse>;
|
|
24
|
-
private sendRequestWithAuth;
|
|
25
|
-
private static getURL;
|
|
26
|
-
private getAuthorization;
|
|
27
|
-
private invalidateAuthorization;
|
|
28
|
-
private static getAuthHeader;
|
|
29
|
-
}
|