camstreamerlib 4.0.0-beta.99 → 4.0.2
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/README.md +44 -15
- package/cjs/CamOverlayAPI.d.ts +145 -107
- package/cjs/CamOverlayAPI.js +14 -63
- package/cjs/CamScripterAPI.d.ts +5 -8
- package/cjs/CamScripterAPI.js +11 -29
- package/cjs/CamStreamerAPI.d.ts +2362 -806
- package/cjs/CamStreamerAPI.js +68 -76
- package/cjs/CamSwitcherAPI.d.ts +23 -22
- package/cjs/CamSwitcherAPI.js +30 -88
- package/cjs/PlaneTrackerAPI.d.ts +31 -31
- package/cjs/PlaneTrackerAPI.js +20 -75
- package/cjs/VapixAPI.d.ts +36 -23
- package/cjs/VapixAPI.js +227 -106
- package/cjs/errors/errors.d.ts +11 -5
- package/cjs/errors/errors.js +5 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/cjs/internal/BasicAPI.d.ts +15 -0
- package/cjs/internal/BasicAPI.js +93 -0
- package/cjs/internal/WsEvents.d.ts +1 -0
- package/cjs/internal/WsEvents.js +5 -0
- package/cjs/internal/constants.d.ts +1 -0
- package/cjs/internal/constants.js +2 -1
- package/cjs/internal/convertors.d.ts +6 -0
- package/cjs/internal/convertors.js +115 -0
- package/cjs/internal/transformers.js +8 -8
- package/cjs/internal/types.d.ts +3 -0
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
- package/cjs/types/CamOverlayAPI/index.js +1 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/cjs/types/CamScripterAPI.d.ts +0 -11
- package/cjs/types/CamScripterAPI.js +1 -5
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
- package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
- package/cjs/types/CamStreamerAPI/index.js +1 -3
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -76
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +356 -87
- package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +5 -9
- package/cjs/types/CamSwitcherAPI.d.ts +96 -91
- package/cjs/types/CamSwitcherAPI.js +9 -9
- package/cjs/types/GenetecAgent.d.ts +2 -2
- package/cjs/types/PlaneTrackerAPI.d.ts +75 -52
- package/cjs/types/PlaneTrackerAPI.js +11 -5
- package/cjs/types/VapixAPI.d.ts +51 -32
- package/cjs/types/VapixAPI.js +10 -3
- package/cjs/types/common.d.ts +27 -0
- package/cjs/types/common.js +13 -1
- package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
- package/cjs/types/ws/CamStreamerEvents.js +11 -7
- package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/esm/CamOverlayAPI.js +16 -65
- package/esm/CamScripterAPI.js +9 -30
- package/esm/CamStreamerAPI.js +70 -78
- package/esm/CamSwitcherAPI.js +31 -89
- package/esm/PlaneTrackerAPI.js +21 -76
- package/esm/VapixAPI.js +228 -107
- package/esm/errors/errors.js +5 -1
- package/esm/index.js +1 -0
- package/esm/internal/BasicAPI.js +89 -0
- package/esm/internal/WsEvents.js +5 -0
- package/esm/internal/constants.js +1 -0
- package/esm/internal/convertors.js +108 -0
- package/esm/internal/transformers.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
- package/esm/types/CamOverlayAPI/index.js +1 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/esm/types/CamScripterAPI.js +0 -4
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
- package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/esm/types/CamStreamerAPI/index.js +1 -3
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -76
- package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
- package/esm/types/CamStreamerAPI/windySchema.js +9 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +5 -9
- package/esm/types/CamSwitcherAPI.js +8 -8
- package/esm/types/PlaneTrackerAPI.js +11 -5
- package/esm/types/VapixAPI.js +9 -2
- package/esm/types/common.js +12 -0
- package/esm/types/ws/CamStreamerEvents.js +11 -7
- package/package.json +4 -4
- package/types/CamOverlayAPI.d.ts +145 -107
- package/types/CamScripterAPI.d.ts +5 -8
- package/types/CamStreamerAPI.d.ts +2362 -806
- package/types/CamSwitcherAPI.d.ts +23 -22
- package/types/PlaneTrackerAPI.d.ts +31 -31
- package/types/VapixAPI.d.ts +36 -23
- package/types/errors/errors.d.ts +11 -5
- package/types/index.d.ts +1 -0
- package/types/internal/BasicAPI.d.ts +15 -0
- package/types/internal/WsEvents.d.ts +1 -0
- package/types/internal/constants.d.ts +1 -0
- package/types/internal/convertors.d.ts +6 -0
- package/types/internal/types.d.ts +3 -0
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +878 -358
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +28 -28
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/index.d.ts +1 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/types/types/CamScripterAPI.d.ts +0 -11
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +17745 -4940
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +395 -86
- package/types/types/CamStreamerAPI/index.d.ts +1 -3
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +392 -304
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +356 -87
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +351 -119
- package/types/types/CamSwitcherAPI.d.ts +96 -91
- package/types/types/GenetecAgent.d.ts +2 -2
- package/types/types/PlaneTrackerAPI.d.ts +75 -52
- package/types/types/VapixAPI.d.ts +51 -32
- package/types/types/common.d.ts +27 -0
- package/types/types/ws/CamStreamerEvents.d.ts +110 -77
- package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
- package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
- package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
- package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
- package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
- package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
- package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
- package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -323
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -284
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -275
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -275
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IClient, TResponse } from './internal/types';
|
|
2
2
|
import { TStreamSaveList, TTrackerSaveList, TClipSaveList, TPlaylistSaveList, TCameraOptions, TGlobalAudioSettings, TSecondaryAudioSettings } from './types/CamSwitcherAPI';
|
|
3
|
-
import { TAudioChannel, THttpRequestOptions,
|
|
4
|
-
import {
|
|
5
|
-
export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
6
|
-
private client;
|
|
3
|
+
import { TAudioChannel, THttpRequestOptions, TStorageType } from './types/common';
|
|
4
|
+
import { BasicAPI } from './internal/BasicAPI';
|
|
5
|
+
export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
|
|
7
6
|
private CustomFormData;
|
|
8
7
|
private vapixAgent;
|
|
9
8
|
constructor(client: Client, CustomFormData?: {
|
|
@@ -13,7 +12,7 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
13
12
|
static getProxyPath: () => string;
|
|
14
13
|
static getWsEventsPath: () => string;
|
|
15
14
|
static getClipPreviewPath: (clipId: string, storage: TStorageType) => string;
|
|
16
|
-
|
|
15
|
+
checkAPIAvailable(options?: THttpRequestOptions): Promise<void>;
|
|
17
16
|
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
18
17
|
getNetworkCameraList(options?: THttpRequestOptions): Promise<{
|
|
19
18
|
name: string;
|
|
@@ -22,9 +21,9 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
22
21
|
generateSilence(sampleRate: number, channels: TAudioChannel, options?: THttpRequestOptions): Promise<void>;
|
|
23
22
|
getMaxFps(source: number, options?: THttpRequestOptions): Promise<number>;
|
|
24
23
|
getStorageInfo(options?: THttpRequestOptions): Promise<{
|
|
24
|
+
size: number;
|
|
25
25
|
storage: "FLASH" | "SD_DISK";
|
|
26
26
|
writable: boolean;
|
|
27
|
-
size: number;
|
|
28
27
|
available: number;
|
|
29
28
|
}[]>;
|
|
30
29
|
wsAuthorization(options?: THttpRequestOptions): Promise<string>;
|
|
@@ -39,26 +38,26 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
39
38
|
}>;
|
|
40
39
|
getStreamSaveList(options?: THttpRequestOptions): Promise<Record<string, {
|
|
41
40
|
ip?: string | undefined;
|
|
41
|
+
enabled?: boolean | undefined;
|
|
42
|
+
port?: number | undefined;
|
|
42
43
|
niceName?: string | undefined;
|
|
43
44
|
mdnsName?: string | undefined;
|
|
44
|
-
port?: number | undefined;
|
|
45
|
-
enabled?: boolean | undefined;
|
|
46
45
|
auth?: string | undefined;
|
|
47
46
|
query?: string | undefined;
|
|
48
|
-
channel?: "
|
|
47
|
+
channel?: "video" | "audio" | "av" | undefined;
|
|
49
48
|
keyboard?: Record<string, string | null> | undefined;
|
|
50
49
|
sortIndexOverview?: number | undefined;
|
|
51
50
|
viewNumber?: number | undefined;
|
|
52
51
|
}>>;
|
|
53
52
|
getClipSaveList(options?: THttpRequestOptions): Promise<Record<string, {
|
|
54
53
|
niceName?: string | undefined;
|
|
55
|
-
channel?: "
|
|
54
|
+
channel?: "video" | "audio" | "av" | undefined;
|
|
56
55
|
keyboard?: Record<string, string | null> | undefined;
|
|
57
56
|
sortIndexOverview?: number | undefined;
|
|
58
57
|
}>>;
|
|
59
58
|
getPlaylistSaveList(options?: THttpRequestOptions): Promise<Record<string, {
|
|
60
59
|
niceName?: string | undefined;
|
|
61
|
-
channel?: "
|
|
60
|
+
channel?: "video" | "audio" | "av" | undefined;
|
|
62
61
|
keyboard?: Record<string, string | null> | undefined;
|
|
63
62
|
sortIndexOverview?: number | undefined;
|
|
64
63
|
isFavourite?: boolean | undefined;
|
|
@@ -87,16 +86,16 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
87
86
|
}>>;
|
|
88
87
|
getTrackerSaveList(options?: THttpRequestOptions): Promise<Record<string, {
|
|
89
88
|
name?: string | undefined;
|
|
90
|
-
|
|
89
|
+
fps?: number | undefined;
|
|
90
|
+
id?: string | undefined;
|
|
91
|
+
width?: number | undefined;
|
|
92
|
+
height?: number | undefined;
|
|
93
|
+
duration?: number | undefined;
|
|
94
|
+
channel?: "video" | "audio" | "av" | undefined;
|
|
91
95
|
keyboard?: Record<string, string | null> | undefined;
|
|
92
96
|
sortIndexOverview?: number | undefined;
|
|
93
97
|
viewNumber?: number | undefined;
|
|
94
|
-
id?: string | undefined;
|
|
95
98
|
previewId?: string | undefined;
|
|
96
|
-
duration?: number | undefined;
|
|
97
|
-
width?: number | undefined;
|
|
98
|
-
height?: number | undefined;
|
|
99
|
-
fps?: number | undefined;
|
|
100
99
|
motion_history_frames?: number | undefined;
|
|
101
100
|
include_zone?: number[][] | undefined;
|
|
102
101
|
include_node_ids?: string[] | undefined;
|
|
@@ -123,11 +122,12 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
123
122
|
removeClip(clipId: string, storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
|
|
124
123
|
getClipList(options?: THttpRequestOptions): Promise<Record<string, {
|
|
125
124
|
storage: "FLASH" | "SD_DISK";
|
|
125
|
+
duration: number;
|
|
126
126
|
stream_list: ({
|
|
127
127
|
type: "video";
|
|
128
|
+
fps: number;
|
|
128
129
|
width: number;
|
|
129
130
|
height: number;
|
|
130
|
-
fps: number;
|
|
131
131
|
sample_rate: number;
|
|
132
132
|
h264_profile: "high" | "main" | "baseline";
|
|
133
133
|
h264_level: "4.1";
|
|
@@ -138,7 +138,6 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
138
138
|
sample_rate: number;
|
|
139
139
|
channel_count: 1 | 2;
|
|
140
140
|
})[];
|
|
141
|
-
duration: number;
|
|
142
141
|
}>>;
|
|
143
142
|
setCamSwitchOptions(data: TCameraOptions, cameraFWVersion: string, options?: THttpRequestOptions): Promise<void>;
|
|
144
143
|
setGlobalAudioSettings(settings: TGlobalAudioSettings, options?: THttpRequestOptions): Promise<void>;
|
|
@@ -147,7 +146,7 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
147
146
|
setPermanentRtspUrlToken(token: string, options?: THttpRequestOptions): Promise<void>;
|
|
148
147
|
getCamSwitchOptions(options?: THttpRequestOptions): Promise<any>;
|
|
149
148
|
getGlobalAudioSettings(options?: THttpRequestOptions): Promise<{
|
|
150
|
-
type: "
|
|
149
|
+
type: "source" | "fromSource";
|
|
151
150
|
source: string;
|
|
152
151
|
storage?: string | undefined;
|
|
153
152
|
}>;
|
|
@@ -160,8 +159,10 @@ export declare class CamSwitcherAPI<Client extends IClient<TResponse, any>> {
|
|
|
160
159
|
clipName?: string | undefined;
|
|
161
160
|
}>;
|
|
162
161
|
getPermanentRtspUrlToken(options?: THttpRequestOptions): Promise<string>;
|
|
163
|
-
|
|
164
|
-
private _post;
|
|
162
|
+
downloadReport(options?: THttpRequestOptions): Promise<string>;
|
|
165
163
|
private setParamFromCameraJSON;
|
|
166
164
|
private getParamFromCameraAndJSONParse;
|
|
165
|
+
getUploadedFileList(clipName: string, storage: TStorageType, options?: THttpRequestOptions): Promise<string[]>;
|
|
166
|
+
downloadClipFile(fileName: string, storage: TStorageType, options?: THttpRequestOptions): Promise<ReturnType<Awaited<ReturnType<Client["get"]>>["blob"]>>;
|
|
167
|
+
uploadClipFiles(files: File[], storage: TStorageType, options?: THttpRequestOptions): Promise<void>;
|
|
167
168
|
}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { IClient,
|
|
1
|
+
import { IClient, TParameters, TResponse } from './internal/types';
|
|
2
2
|
import { ICAO, TApiUser, TBlackList, TCameraSettings, TExportDataType, TGetIcaoByOption, TImportDataType, TPriorityList, TTrackingMode, TTypePriorityList, TWhiteList, TZones } from './types/PlaneTrackerAPI';
|
|
3
|
-
import { THttpRequestOptions
|
|
4
|
-
import {
|
|
5
|
-
export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
6
|
-
private client;
|
|
3
|
+
import { THttpRequestOptions } from './types/common';
|
|
4
|
+
import { BasicAPI } from './internal/BasicAPI';
|
|
5
|
+
export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
|
|
7
6
|
private apiUser;
|
|
8
7
|
constructor(client: Client, apiUser: TApiUser);
|
|
9
8
|
static getProxyPath: () => string;
|
|
10
9
|
static getWsEventsPath: () => string;
|
|
11
|
-
|
|
10
|
+
checkAPIAvailable(options?: THttpRequestOptions): Promise<void>;
|
|
12
11
|
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
13
|
-
serverRunCheck(options?: THttpRequestOptions): Promise<
|
|
12
|
+
serverRunCheck(options?: THttpRequestOptions): Promise<boolean>;
|
|
14
13
|
getLiveViewAlias(rtspUrl: string, options?: THttpRequestOptions): Promise<{
|
|
15
14
|
ws: string;
|
|
16
15
|
ws_initial_message: string;
|
|
@@ -22,15 +21,19 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
22
21
|
camera: {
|
|
23
22
|
ip: string;
|
|
24
23
|
port: number;
|
|
25
|
-
protocol: "https" | "http" | "https_insecure";
|
|
26
|
-
user: string;
|
|
27
24
|
pass: string;
|
|
25
|
+
user: string;
|
|
26
|
+
protocol: "https" | "http" | "https_insecure";
|
|
28
27
|
};
|
|
29
28
|
units: "metric" | "imperial";
|
|
30
29
|
adsbSource: {
|
|
31
30
|
ip: string;
|
|
31
|
+
enabled: boolean;
|
|
32
32
|
port: number;
|
|
33
33
|
};
|
|
34
|
+
dronetagSource: {
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
};
|
|
34
37
|
cameraCalibrationProcessConfig: {
|
|
35
38
|
nightSkyCalibrationEnabled: boolean;
|
|
36
39
|
scheduleNightSkyCalibrationTimestamp: number;
|
|
@@ -39,7 +42,6 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
39
42
|
cameraConfig: {
|
|
40
43
|
defaultCaptureSizeMeters: number;
|
|
41
44
|
captureSizeExtensionMeters: number;
|
|
42
|
-
maxZoomLevel?: number | undefined;
|
|
43
45
|
};
|
|
44
46
|
stream: {
|
|
45
47
|
width: number;
|
|
@@ -84,8 +86,8 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
84
86
|
};
|
|
85
87
|
radarcapeFlightInfoSource: {
|
|
86
88
|
ip: string;
|
|
87
|
-
port: number;
|
|
88
89
|
enabled: boolean;
|
|
90
|
+
port: number;
|
|
89
91
|
priority: number;
|
|
90
92
|
};
|
|
91
93
|
identificationLabel: {
|
|
@@ -97,22 +99,22 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
97
99
|
};
|
|
98
100
|
acs: {
|
|
99
101
|
ip: string;
|
|
100
|
-
port: number;
|
|
101
102
|
enabled: boolean;
|
|
102
|
-
|
|
103
|
-
user: string;
|
|
103
|
+
port: number;
|
|
104
104
|
pass: string;
|
|
105
|
+
user: string;
|
|
106
|
+
protocol: "https" | "http" | "https_insecure";
|
|
105
107
|
sourceKey: string;
|
|
106
108
|
};
|
|
107
109
|
genetec: {
|
|
108
110
|
ip: string;
|
|
109
|
-
port: number;
|
|
110
111
|
enabled: boolean;
|
|
112
|
+
port: number;
|
|
111
113
|
cameraList: string[];
|
|
114
|
+
pass: string;
|
|
112
115
|
appId: string;
|
|
113
|
-
protocol: "https" | "http" | "https_insecure";
|
|
114
116
|
user: string;
|
|
115
|
-
|
|
117
|
+
protocol: "https" | "http" | "https_insecure";
|
|
116
118
|
baseUri: string;
|
|
117
119
|
};
|
|
118
120
|
camstreamerIntegration: {
|
|
@@ -132,18 +134,20 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
132
134
|
displayPTError?: boolean | undefined;
|
|
133
135
|
displayPTZSpeed?: boolean | undefined;
|
|
134
136
|
displayVelocityData?: boolean | undefined;
|
|
137
|
+
displayAdsbVelocityData?: boolean | undefined;
|
|
135
138
|
displaySignalQuality?: boolean | undefined;
|
|
136
139
|
displayAutoTrackingInfo?: boolean | undefined;
|
|
137
140
|
displayGPSCoords?: boolean | undefined;
|
|
138
141
|
displayVapixQuery?: boolean | undefined;
|
|
139
142
|
displayFocus?: boolean | undefined;
|
|
140
143
|
displayAperture?: boolean | undefined;
|
|
144
|
+
displayAircraftInfo?: boolean | undefined;
|
|
141
145
|
displaySunDistance?: boolean | undefined;
|
|
142
146
|
displayTickTime?: boolean | undefined;
|
|
143
|
-
|
|
147
|
+
displaySystemInfo?: boolean | undefined;
|
|
144
148
|
} | undefined;
|
|
145
149
|
}>;
|
|
146
|
-
setCameraSettings(settings: TCameraSettings, options?: THttpRequestOptions): Promise<
|
|
150
|
+
setCameraSettings(settings: TCameraSettings, options?: THttpRequestOptions): Promise<void>;
|
|
147
151
|
fetchServerSettings(options?: THttpRequestOptions): Promise<{
|
|
148
152
|
cameraCalibration: {
|
|
149
153
|
posLat: number;
|
|
@@ -162,7 +166,7 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
162
166
|
}[];
|
|
163
167
|
};
|
|
164
168
|
}>;
|
|
165
|
-
exportAppSettings(dataType: TExportDataType, options?: THttpRequestOptions): Promise<
|
|
169
|
+
exportAppSettings(dataType: TExportDataType, options?: THttpRequestOptions): Promise<ReturnType<Awaited<ReturnType<Client["get"]>>["blob"]>>;
|
|
166
170
|
importAppSettings(dataType: TImportDataType, formData: Parameters<Client['post']>[0]['data'], options?: THttpRequestOptions): Promise<void>;
|
|
167
171
|
fetchFlightInfo(icao: ICAO, options?: THttpRequestOptions): Promise<{
|
|
168
172
|
destinationAirport: {
|
|
@@ -193,13 +197,13 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
193
197
|
stopTrackingPlane(options?: THttpRequestOptions): Promise<void>;
|
|
194
198
|
getIcao(by: TGetIcaoByOption, value: string, options?: THttpRequestOptions): Promise<string>;
|
|
195
199
|
getPriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
196
|
-
setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<
|
|
200
|
+
setPriorityList(priorityList: TPriorityList['priorityList'], options?: THttpRequestOptions): Promise<void>;
|
|
197
201
|
getTypePriorityList(options?: THttpRequestOptions): Promise<string[]>;
|
|
198
|
-
setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<
|
|
202
|
+
setTypePriorityList(typePriorityList: TTypePriorityList['typePriorityList'], options?: THttpRequestOptions): Promise<void>;
|
|
199
203
|
getWhiteList(options?: THttpRequestOptions): Promise<string[]>;
|
|
200
|
-
setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<
|
|
204
|
+
setWhiteList(whiteList: TWhiteList['whiteList'], options?: THttpRequestOptions): Promise<void>;
|
|
201
205
|
getBlackList(options?: THttpRequestOptions): Promise<string[]>;
|
|
202
|
-
setBlackList(blackList: TBlackList['blackList'], options?: THttpRequestOptions): Promise<
|
|
206
|
+
setBlackList(blackList: TBlackList['blackList'], options?: THttpRequestOptions): Promise<void>;
|
|
203
207
|
fetchMapInfo(options?: THttpRequestOptions): Promise<{
|
|
204
208
|
minZoom: number;
|
|
205
209
|
maxZoom: number;
|
|
@@ -227,15 +231,11 @@ export declare class PlaneTrackerAPI<Client extends IClient<TResponse, any>> {
|
|
|
227
231
|
}>;
|
|
228
232
|
setZones(zones: TZones, options?: THttpRequestOptions): Promise<void>;
|
|
229
233
|
goToCoordinates(lat: number, lon: number, alt?: number, options?: THttpRequestOptions): Promise<void>;
|
|
230
|
-
|
|
234
|
+
downloadReport(options?: THttpRequestOptions): Promise<string>;
|
|
235
|
+
checkGenetecConnection(params: TParameters, options?: THttpRequestOptions): Promise<boolean>;
|
|
231
236
|
getGenetecCameraList(params: TParameters, options?: THttpRequestOptions): Promise<{
|
|
232
237
|
value: string;
|
|
233
|
-
index: number;
|
|
234
238
|
label: string;
|
|
239
|
+
index: number;
|
|
235
240
|
}[]>;
|
|
236
|
-
private _getJson;
|
|
237
|
-
private _getBlob;
|
|
238
|
-
private parseBlobResponse;
|
|
239
|
-
private _postJsonEncoded;
|
|
240
|
-
private _postUrlEncoded;
|
|
241
241
|
}
|
package/types/VapixAPI.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { IClient, TParameters, TResponse } from './internal/types';
|
|
2
2
|
import { TAudioDevice, TPortSetSchema, TPortSequenceStateSchema } from './types/VapixAPI';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
6
|
-
private client;
|
|
3
|
+
import { TCameraImageConfig, THttpRequestOptions } from './types/common';
|
|
4
|
+
import { BasicAPI } from './internal/BasicAPI';
|
|
5
|
+
export declare class VapixAPI<Client extends IClient<TResponse, any>> extends BasicAPI<Client> {
|
|
7
6
|
private CustomFormData;
|
|
8
7
|
constructor(client: Client, CustomFormData?: {
|
|
9
8
|
new (form?: HTMLFormElement | undefined, submitter?: HTMLElement | null | undefined): FormData;
|
|
10
9
|
prototype: FormData;
|
|
11
10
|
});
|
|
12
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
13
11
|
postUrlEncoded(path: string, parameters?: TParameters, headers?: Record<string, string>, options?: THttpRequestOptions): Promise<TResponse>;
|
|
14
|
-
postJson(path: string,
|
|
12
|
+
postJson(path: string, data: Record<string, any>, headers?: Record<string, string>, options?: THttpRequestOptions): Promise<TResponse>;
|
|
15
13
|
getCameraImage(parameters: TCameraImageConfig, options?: THttpRequestOptions): Promise<ReturnType<Client["get"]>>;
|
|
16
14
|
getEventDeclarations(options?: THttpRequestOptions): Promise<string>;
|
|
17
15
|
getSupportedAudioSampleRate(options?: THttpRequestOptions): Promise<{
|
|
@@ -19,17 +17,8 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
19
17
|
bitRates: number[];
|
|
20
18
|
}[]>;
|
|
21
19
|
performAutofocus(options?: THttpRequestOptions): Promise<void>;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
totalSize: number;
|
|
25
|
-
freeSize: number;
|
|
26
|
-
}>;
|
|
27
|
-
mountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
28
|
-
unmountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
29
|
-
private _doSDCardMountAction;
|
|
30
|
-
fetchSDCardJobProgress(jobId: number, options?: THttpRequestOptions): Promise<number>;
|
|
31
|
-
downloadCameraReport(options?: THttpRequestOptions): Promise<TResponse>;
|
|
32
|
-
getSystemLog(options?: THttpRequestOptions): Promise<TResponse>;
|
|
20
|
+
downloadCameraReport(options?: THttpRequestOptions): Promise<string>;
|
|
21
|
+
getSystemLog(options?: THttpRequestOptions): Promise<string>;
|
|
33
22
|
getMaxFps(channel: number, options?: THttpRequestOptions): Promise<number>;
|
|
34
23
|
getTimezone(options?: THttpRequestOptions): Promise<string>;
|
|
35
24
|
getDateTimeInfo(options?: THttpRequestOptions): Promise<{
|
|
@@ -44,7 +33,16 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
44
33
|
getDevicesSettings(options?: THttpRequestOptions): Promise<TAudioDevice[]>;
|
|
45
34
|
fetchRemoteDeviceInfo<T extends Record<string, any>>(payload: T, options?: THttpRequestOptions): Promise<any>;
|
|
46
35
|
getHeaders(options?: THttpRequestOptions): Promise<Record<string, string>>;
|
|
47
|
-
setHeaders(headers: Record<string, string>, options?: THttpRequestOptions): Promise<
|
|
36
|
+
setHeaders(headers: Record<string, string>, options?: THttpRequestOptions): Promise<void>;
|
|
37
|
+
checkSDCard(options?: THttpRequestOptions): Promise<{
|
|
38
|
+
status: "OK" | "connected" | "disconnected";
|
|
39
|
+
totalSize: number;
|
|
40
|
+
freeSize: number;
|
|
41
|
+
}>;
|
|
42
|
+
mountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
43
|
+
unmountSDCard(options?: THttpRequestOptions): Promise<number>;
|
|
44
|
+
private _doSDCardMountAction;
|
|
45
|
+
fetchSDCardJobProgress(jobId: number, options?: THttpRequestOptions): Promise<number>;
|
|
48
46
|
getParameter(paramNames: string | string[], options?: THttpRequestOptions): Promise<Record<string, string>>;
|
|
49
47
|
setParameter(params: Record<string, string | number | boolean>, options?: THttpRequestOptions): Promise<void>;
|
|
50
48
|
getGuardTourList(options?: THttpRequestOptions): Promise<{
|
|
@@ -52,8 +50,8 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
52
50
|
id: string;
|
|
53
51
|
running: string;
|
|
54
52
|
tour: {
|
|
55
|
-
moveSpeed?: unknown;
|
|
56
53
|
position?: unknown;
|
|
54
|
+
moveSpeed?: unknown;
|
|
57
55
|
presetNbr?: unknown;
|
|
58
56
|
waitTime?: unknown;
|
|
59
57
|
waitTimeViewType?: unknown;
|
|
@@ -66,18 +64,18 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
66
64
|
getPTZPresetList(channel: number, options?: THttpRequestOptions): Promise<string[]>;
|
|
67
65
|
listPTZ(camera: number, options?: THttpRequestOptions): Promise<{
|
|
68
66
|
name: string;
|
|
69
|
-
id: number;
|
|
70
67
|
data: {
|
|
71
68
|
pan?: number | undefined;
|
|
72
69
|
tilt?: number | undefined;
|
|
73
70
|
zoom?: number | undefined;
|
|
74
71
|
};
|
|
72
|
+
id: number;
|
|
75
73
|
}[]>;
|
|
76
74
|
listPtzVideoSourceOverview(options?: THttpRequestOptions): Promise<Record<number, {
|
|
77
75
|
name: string;
|
|
78
76
|
id: number;
|
|
79
77
|
}[]>>;
|
|
80
|
-
goToPreset(channel: number, presetName: string, options?: THttpRequestOptions): Promise<
|
|
78
|
+
goToPreset(channel: number, presetName: string, options?: THttpRequestOptions): Promise<void>;
|
|
81
79
|
getPtzPosition(camera: number, options?: THttpRequestOptions): Promise<{
|
|
82
80
|
pan?: number | undefined;
|
|
83
81
|
tilt?: number | undefined;
|
|
@@ -86,15 +84,27 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
86
84
|
getPorts(options?: THttpRequestOptions): Promise<{
|
|
87
85
|
name: string;
|
|
88
86
|
port: string;
|
|
87
|
+
direction: "output" | "input";
|
|
89
88
|
state: "open" | "closed";
|
|
90
89
|
configurable: boolean;
|
|
91
90
|
usage: string;
|
|
92
|
-
direction: "input" | "output";
|
|
93
91
|
normalState: "open" | "closed";
|
|
94
92
|
readonly?: boolean | undefined;
|
|
95
93
|
}[]>;
|
|
96
94
|
setPorts(ports: TPortSetSchema[], options?: THttpRequestOptions): Promise<void>;
|
|
97
95
|
setPortStateSequence(port: number, sequence: TPortSequenceStateSchema[], options?: THttpRequestOptions): Promise<void>;
|
|
96
|
+
addCameraUser(username: string, pass: string, sgrp: string, comment?: string, options?: THttpRequestOptions): Promise<void>;
|
|
97
|
+
getCameraUsers(options?: THttpRequestOptions): Promise<string[]>;
|
|
98
|
+
editCameraUser(username: string, pass: string, options?: THttpRequestOptions): Promise<void>;
|
|
99
|
+
getRecordingRuleList(options?: THttpRequestOptions): Promise<{
|
|
100
|
+
options: Record<string, string>;
|
|
101
|
+
diskid: string;
|
|
102
|
+
eventid: string;
|
|
103
|
+
profile: string;
|
|
104
|
+
}[]>;
|
|
105
|
+
addRecordingRule(params: Record<string, string>, options?: THttpRequestOptions): Promise<string | null>;
|
|
106
|
+
removeRecordingRule(profileId: string, options?: THttpRequestOptions): Promise<void>;
|
|
107
|
+
getDiskInfo(diskId?: string, options?: THttpRequestOptions): Promise<boolean>;
|
|
98
108
|
getApplicationList(options?: THttpRequestOptions): Promise<{
|
|
99
109
|
Name: string;
|
|
100
110
|
NiceName: string;
|
|
@@ -102,7 +112,7 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
102
112
|
Version: string;
|
|
103
113
|
License: string;
|
|
104
114
|
Status: string;
|
|
105
|
-
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | null;
|
|
115
|
+
appId: "CamStreamer" | "CamSwitcher" | "CamOverlay" | "CamScripter" | "PlaneTracker" | "Ndihxplugin" | "SportTracker" | "CamOverlayHtmlplugin" | null;
|
|
106
116
|
ApplicationID?: string | undefined;
|
|
107
117
|
ConfigurationPage?: string | undefined;
|
|
108
118
|
VendorHomePage?: string | undefined;
|
|
@@ -112,7 +122,10 @@ export declare class VapixAPI<Client extends IClient<TResponse, any>> {
|
|
|
112
122
|
restartApplication(applicationId: string, options?: THttpRequestOptions): Promise<void>;
|
|
113
123
|
stopApplication(applicationId: string, options?: THttpRequestOptions): Promise<void>;
|
|
114
124
|
installApplication(data: Parameters<typeof FormData.prototype.append>[1], fileName: string, options?: THttpRequestOptions): Promise<void>;
|
|
125
|
+
private static parseQueryString;
|
|
126
|
+
private static checkTextResponseForError;
|
|
115
127
|
private static parseParameters;
|
|
116
128
|
private static parseCameraPtzResponse;
|
|
117
129
|
private static parsePtz;
|
|
130
|
+
private static parseXmlResponse;
|
|
118
131
|
}
|
package/types/errors/errors.d.ts
CHANGED
|
@@ -92,11 +92,17 @@ export declare class BadRequestError<T extends TResponse> extends ErrorWithRespo
|
|
|
92
92
|
}
|
|
93
93
|
export declare class MigrationError extends Error {
|
|
94
94
|
readonly valid: TStream[];
|
|
95
|
-
readonly
|
|
96
|
-
|
|
95
|
+
readonly old: (TOldStream & {
|
|
96
|
+
streamId: string;
|
|
97
97
|
})[];
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
readonly invalid: any[];
|
|
99
|
+
readonly unknown: {
|
|
100
|
+
platform: string;
|
|
101
|
+
}[];
|
|
102
|
+
constructor(valid: TStream[], old: (TOldStream & {
|
|
103
|
+
streamId: string;
|
|
104
|
+
})[], invalid?: any[], unknown?: {
|
|
105
|
+
platform: string;
|
|
106
|
+
}[]);
|
|
101
107
|
}
|
|
102
108
|
export {};
|
package/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './errors/errors';
|
|
2
2
|
export * from './internal/types';
|
|
3
3
|
export * from './internal/constants';
|
|
4
|
+
export * from './internal/convertors';
|
|
4
5
|
export * from './internal/utils';
|
|
5
6
|
export * from './internal/versionCompare';
|
|
6
7
|
export * from './internal/ProxyClient';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { THttpRequestOptions, TProxyParams } from '../types/common';
|
|
2
|
+
import { ProxyClient } from './ProxyClient';
|
|
3
|
+
import { IClient, TBlobResponse, TParameters, TResponse } from './types';
|
|
4
|
+
export declare class BasicAPI<Client extends IClient<TResponse, any>> {
|
|
5
|
+
protected client: Client;
|
|
6
|
+
constructor(client: Client);
|
|
7
|
+
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
8
|
+
protected _getJson(path: string, parameters?: TParameters, options?: THttpRequestOptions): Promise<any>;
|
|
9
|
+
protected _getText(path: string, parameters?: TParameters, options?: THttpRequestOptions): Promise<string>;
|
|
10
|
+
protected _getBlob(path: string, parameters?: TParameters, options?: THttpRequestOptions): Promise<TBlobResponse<Client>>;
|
|
11
|
+
private parseBlobResponse;
|
|
12
|
+
protected _post(path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions, headers?: Record<string, string>): Promise<any>;
|
|
13
|
+
protected _postJsonEncoded(path: string, data: string | Parameters<Client['post']>[0]['data'], parameters?: TParameters, options?: THttpRequestOptions): Promise<TResponse>;
|
|
14
|
+
protected _postUrlEncoded(path: string, data: TParameters, options?: THttpRequestOptions): Promise<TResponse>;
|
|
15
|
+
}
|
|
@@ -30,6 +30,7 @@ export declare class WsEvents<T extends {
|
|
|
30
30
|
resendInitData(): void;
|
|
31
31
|
addListener<Type extends TEventType<T>>(type: Type, listener: TListenerFunction<T, Type>, id: string): void;
|
|
32
32
|
removeListener<Type extends TEventType<T>>(type: Type, id: string): void;
|
|
33
|
+
removeAllListenersForId(id: string): void;
|
|
33
34
|
private onMessage;
|
|
34
35
|
private processMessage;
|
|
35
36
|
destroy(): void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TInternalVapixParameters } from '../types/CamStreamerAPI';
|
|
2
|
+
import { TBitrateMode, TBitrateVapixParams } from '../types/common';
|
|
3
|
+
export declare const parseBitrateOptionsToVapixParams: (firmWareVersion: string, bitrateMode: TBitrateMode | undefined, cameraOptions: Partial<TBitrateVapixParams>) => string;
|
|
4
|
+
export declare const parseVapixParamsToBitrateOptions: (bitrateVapixParams: string) => TBitrateVapixParams;
|
|
5
|
+
export declare const parseVideoOptionsToVapixParams: (firmWareVersion: string, video: TInternalVapixParameters) => string;
|
|
6
|
+
export declare const parseVapixParamsToVideoOptions: (internalVapixParams: string) => TInternalVapixParameters;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const assertVersionString: (s: string, msg?: string) => void;
|
|
2
2
|
export declare const isFirmwareVersionAtLeast: (version: string, compareVersion: string) => boolean;
|
|
3
3
|
export declare const isVersionAtLeast: (version: string, compareVersion: string) => boolean;
|
|
4
|
-
export declare const firmwareVersionCompare: (a: string, b: string) =>
|
|
5
|
-
export declare const versionCompare: (a: string, b: string) =>
|
|
4
|
+
export declare const firmwareVersionCompare: (a: string, b: string) => 1 | 0 | -1;
|
|
5
|
+
export declare const versionCompare: (a: string, b: string) => 1 | 0 | -1;
|
|
6
6
|
export declare const fixVersionToDots: (version: string) => string;
|