camstreamerlib 4.0.0-beta.47 → 4.0.0-beta.49
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 +123 -30
- package/cjs/CamSwitcherAPI.js +1 -1
- package/cjs/PlaneTrackerAPI.js +7 -2
- package/cjs/index.js +18 -9
- package/cjs/internal/WsEvents.js +6 -5
- package/cjs/node/CamOverlayDrawingAPI.js +10 -10
- package/cjs/node/CamScripterAPICameraEventsGenerator.js +9 -9
- package/cjs/node/Digest.test.js +13 -0
- package/cjs/node/VapixEvents.js +9 -9
- package/cjs/node/WsClient.js +20 -13
- package/cjs/types/CamOverlayAPI/pipSchema.js +1 -1
- package/cjs/types/PlaneTrackerAPI.js +4 -1
- package/cjs/types/ws/CamOverlayEvents.js +19 -0
- package/cjs/types/ws/CamStreamerEvents.js +32 -0
- package/cjs/types/ws/PlaneTrackerEvents.js +103 -0
- package/cjs/web/DefaultClient.js +6 -2
- package/cjs/web/WsClient.js +13 -15
- package/cjs/ws/CamOverlayEvents.js +24 -0
- package/cjs/ws/CamStreamerEvents.js +24 -0
- package/cjs/ws/CamSwitcherEvents.js +24 -0
- package/cjs/ws/PlaneTrackerEvents.js +22 -0
- package/esm/CamSwitcherAPI.js +1 -1
- package/esm/PlaneTrackerAPI.js +8 -3
- package/esm/index.js +12 -6
- package/esm/internal/WsEvents.js +6 -5
- package/esm/node/CamOverlayDrawingAPI.js +10 -10
- package/esm/node/CamScripterAPICameraEventsGenerator.js +9 -9
- package/esm/node/Digest.test.js +11 -0
- package/esm/node/VapixEvents.js +9 -9
- package/esm/node/WsClient.js +20 -13
- package/esm/types/CamOverlayAPI/pipSchema.js +1 -1
- package/esm/types/PlaneTrackerAPI.js +3 -0
- package/esm/types/ws/CamOverlayEvents.js +16 -0
- package/esm/types/ws/CamStreamerEvents.js +29 -0
- package/esm/types/ws/PlaneTrackerEvents.js +100 -0
- package/esm/web/DefaultClient.js +6 -2
- package/esm/web/WsClient.js +13 -15
- package/esm/ws/CamOverlayEvents.js +20 -0
- package/esm/ws/CamStreamerEvents.js +20 -0
- package/esm/ws/CamSwitcherEvents.js +20 -0
- package/esm/ws/PlaneTrackerEvents.js +18 -0
- package/package.json +1 -1
- package/types/CamSwitcherAPI.d.ts +1 -1
- package/types/PlaneTrackerAPI.d.ts +4 -2
- package/types/index.d.ts +12 -6
- package/types/internal/WsEvents.d.ts +3 -5
- package/types/internal/types.d.ts +7 -6
- package/types/node/CamScripterAPICameraEventsGenerator.d.ts +2 -2
- package/types/node/Digest.test.d.ts +1 -0
- package/types/node/VapixEvents.d.ts +2 -2
- package/types/node/WsClient.d.ts +9 -19
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +5 -5
- package/types/types/CamOverlayAPI/pipSchema.d.ts +2 -2
- package/types/types/CamOverlayDrawingAPI.d.ts +2 -2
- package/types/types/PlaneTrackerAPI.d.ts +8 -0
- package/types/types/ws/CamOverlayEvents.d.ts +88 -0
- package/types/types/ws/CamStreamerEvents.d.ts +249 -0
- package/types/types/ws/PlaneTrackerEvents.d.ts +960 -0
- package/types/web/DefaultClient.d.ts +2 -0
- package/types/web/WsClient.d.ts +9 -5
- package/types/ws/CamOverlayEvents.d.ts +8 -0
- package/types/ws/CamStreamerEvents.d.ts +8 -0
- package/types/ws/CamSwitcherEvents.d.ts +8 -0
- package/types/ws/PlaneTrackerEvents.d.ts +9 -0
- package/cjs/CamSwitcherEvents.js +0 -11
- package/esm/CamSwitcherEvents.js +0 -7
- package/types/CamSwitcherEvents.d.ts +0 -8
- /package/cjs/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
- /package/esm/types/{CamSwitcherEvents.js → ws/CamSwitcherEvents.js} +0 -0
- /package/types/types/{CamSwitcherEvents.d.ts → ws/CamSwitcherEvents.d.ts} +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IClient, TGetParams, TPostParams } from '../internal/types';
|
|
2
2
|
export declare class DefaultClient implements IClient<Response, FormData | ArrayBuffer> {
|
|
3
|
+
domain: string;
|
|
4
|
+
constructor(domain?: string);
|
|
3
5
|
get: (params: TGetParams) => Promise<Response>;
|
|
4
6
|
post: (params: TPostParams<FormData | ArrayBuffer>) => Promise<Response>;
|
|
5
7
|
private fetchWithTimeout;
|
package/types/web/WsClient.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import { IWsClient } from '../internal/types';
|
|
2
|
+
export declare class WsClient implements IWsClient {
|
|
2
3
|
private getUrl;
|
|
3
|
-
private getAuthToken;
|
|
4
4
|
isDestroyed: boolean;
|
|
5
5
|
private ws;
|
|
6
6
|
private restartTimeout;
|
|
7
|
-
constructor(getUrl: () => string
|
|
7
|
+
constructor(getUrl: () => string);
|
|
8
8
|
init(): void;
|
|
9
|
-
send: (msg: string) => void;
|
|
10
|
-
|
|
9
|
+
send: (msg: string | ArrayBuffer) => void;
|
|
10
|
+
onMessage: (_: ArrayBuffer | string) => void;
|
|
11
|
+
onOpen: () => void;
|
|
12
|
+
onClose: () => void;
|
|
13
|
+
onError: (error: Error) => void;
|
|
14
|
+
reconnect: () => void;
|
|
11
15
|
destroy: () => void;
|
|
12
16
|
private destroyWebsocket;
|
|
13
17
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IWsClient } from '../internal/types';
|
|
2
|
+
import { WsEvents } from '../internal/WsEvents';
|
|
3
|
+
import { TCamOverlayEvent } from '../types/ws/CamOverlayEvents';
|
|
4
|
+
export declare class CamOverlayEvents extends WsEvents<TCamOverlayEvent> {
|
|
5
|
+
private getAuthToken;
|
|
6
|
+
constructor(ws: IWsClient, getAuthToken: () => Promise<string>);
|
|
7
|
+
private sendInitMsg;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IWsClient } from '../internal/types';
|
|
2
|
+
import { WsEvents } from '../internal/WsEvents';
|
|
3
|
+
import { TCamStreamerEvent } from '../types/ws/CamStreamerEvents';
|
|
4
|
+
export declare class CamStreamerEvents extends WsEvents<TCamStreamerEvent> {
|
|
5
|
+
private getAuthToken;
|
|
6
|
+
constructor(ws: IWsClient, getAuthToken: () => Promise<string>);
|
|
7
|
+
private sendInitMsg;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IWsClient } from '../internal/types';
|
|
2
|
+
import { WsEvents } from '../internal/WsEvents';
|
|
3
|
+
import { TCamSwitcherEvent } from '../types/ws/CamSwitcherEvents';
|
|
4
|
+
export declare class CamSwitcherEvents extends WsEvents<TCamSwitcherEvent> {
|
|
5
|
+
private getAuthToken;
|
|
6
|
+
constructor(ws: IWsClient, getAuthToken: () => Promise<string>);
|
|
7
|
+
private sendInitMsg;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IWsClient } from '../internal/types';
|
|
2
|
+
import { WsEvents } from '../internal/WsEvents';
|
|
3
|
+
import { TApiUser } from '../types/PlaneTrackerAPI';
|
|
4
|
+
import { TPlaneTrackerEvent } from '../types/ws/PlaneTrackerEvents';
|
|
5
|
+
export declare class PlaneTrackerEvents extends WsEvents<TPlaneTrackerEvent> {
|
|
6
|
+
private _apiUser;
|
|
7
|
+
constructor(ws: IWsClient, _apiUser: TApiUser);
|
|
8
|
+
private sendInitMsg;
|
|
9
|
+
}
|
package/cjs/CamSwitcherEvents.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CamSwitcherEvents = void 0;
|
|
4
|
-
const WsEvents_1 = require("./internal/WsEvents");
|
|
5
|
-
const CamSwitcherEvents_1 = require("./types/CamSwitcherEvents");
|
|
6
|
-
class CamSwitcherEvents extends WsEvents_1.WsEvents {
|
|
7
|
-
constructor(ws) {
|
|
8
|
-
super(CamSwitcherEvents_1.cswEventsSchema, ws);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.CamSwitcherEvents = CamSwitcherEvents;
|
package/esm/CamSwitcherEvents.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { IWebsocket } from './internal/types';
|
|
2
|
-
import { WsEvents } from './internal/WsEvents';
|
|
3
|
-
import { TCamSwitcherEvent } from './types/CamSwitcherEvents';
|
|
4
|
-
export declare class CamSwitcherEvents<Event extends {
|
|
5
|
-
data: string;
|
|
6
|
-
}> extends WsEvents<TCamSwitcherEvent, Event> {
|
|
7
|
-
constructor(ws: IWebsocket<Event>);
|
|
8
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|