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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const cameraGuidsResponseSchema: z.ZodObject<{
|
|
3
3
|
Rsp: z.ZodObject<{
|
|
4
|
-
Status: z.
|
|
4
|
+
Status: z.ZodLiteral<"Ok">;
|
|
5
5
|
Result: z.ZodArray<z.ZodObject<{
|
|
6
6
|
Guid: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -10,51 +10,33 @@ declare const cameraGuidsResponseSchema: z.ZodObject<{
|
|
|
10
10
|
Guid: string;
|
|
11
11
|
}>, "many">;
|
|
12
12
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
Status:
|
|
13
|
+
Status: "Ok";
|
|
14
14
|
Result: {
|
|
15
15
|
Guid: string;
|
|
16
16
|
}[];
|
|
17
17
|
}, {
|
|
18
|
-
Status:
|
|
18
|
+
Status: "Ok";
|
|
19
19
|
Result: {
|
|
20
20
|
Guid: string;
|
|
21
21
|
}[];
|
|
22
22
|
}>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
24
|
Rsp: {
|
|
25
|
-
Status:
|
|
25
|
+
Status: "Ok";
|
|
26
26
|
Result: {
|
|
27
27
|
Guid: string;
|
|
28
28
|
}[];
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
Rsp: {
|
|
32
|
-
Status:
|
|
32
|
+
Status: "Ok";
|
|
33
33
|
Result: {
|
|
34
34
|
Guid: string;
|
|
35
35
|
}[];
|
|
36
36
|
};
|
|
37
37
|
}>;
|
|
38
38
|
export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
|
|
39
|
-
declare const
|
|
40
|
-
Rsp: z.ZodObject<{
|
|
41
|
-
Status: z.ZodString;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
Status: string;
|
|
44
|
-
}, {
|
|
45
|
-
Status: string;
|
|
46
|
-
}>;
|
|
47
|
-
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
Rsp: {
|
|
49
|
-
Status: string;
|
|
50
|
-
};
|
|
51
|
-
}, {
|
|
52
|
-
Rsp: {
|
|
53
|
-
Status: string;
|
|
54
|
-
};
|
|
55
|
-
}>;
|
|
56
|
-
export type TConnectionResponse = z.infer<typeof connectionResponseSchema>;
|
|
57
|
-
export declare const cameraDetailSchema: z.ZodObject<{
|
|
39
|
+
declare const cameraDetailSchema: z.ZodObject<{
|
|
58
40
|
Guid: z.ZodOptional<z.ZodString>;
|
|
59
41
|
Name: z.ZodOptional<z.ZodString>;
|
|
60
42
|
EntityType: z.ZodOptional<z.ZodString>;
|
|
@@ -67,9 +49,9 @@ export declare const cameraDetailSchema: z.ZodObject<{
|
|
|
67
49
|
Guid?: string | undefined;
|
|
68
50
|
EntityType?: string | undefined;
|
|
69
51
|
}>;
|
|
70
|
-
|
|
52
|
+
declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
71
53
|
Rsp: z.ZodObject<{
|
|
72
|
-
Status: z.
|
|
54
|
+
Status: z.ZodLiteral<"Ok">;
|
|
73
55
|
Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
|
|
74
56
|
Guid: z.ZodOptional<z.ZodString>;
|
|
75
57
|
Name: z.ZodOptional<z.ZodString>;
|
|
@@ -96,7 +78,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
|
96
78
|
EntityType?: string | undefined;
|
|
97
79
|
}>]>;
|
|
98
80
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
-
Status:
|
|
81
|
+
Status: "Ok";
|
|
100
82
|
Result: {
|
|
101
83
|
Name?: string | undefined;
|
|
102
84
|
Guid?: string | undefined;
|
|
@@ -107,7 +89,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
|
107
89
|
EntityType?: string | undefined;
|
|
108
90
|
}[];
|
|
109
91
|
}, {
|
|
110
|
-
Status:
|
|
92
|
+
Status: "Ok";
|
|
111
93
|
Result: {
|
|
112
94
|
Name?: string | undefined;
|
|
113
95
|
Guid?: string | undefined;
|
|
@@ -120,7 +102,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
|
120
102
|
}>;
|
|
121
103
|
}, "strip", z.ZodTypeAny, {
|
|
122
104
|
Rsp: {
|
|
123
|
-
Status:
|
|
105
|
+
Status: "Ok";
|
|
124
106
|
Result: {
|
|
125
107
|
Name?: string | undefined;
|
|
126
108
|
Guid?: string | undefined;
|
|
@@ -133,7 +115,7 @@ export declare const cameraDetailsResponseSchema: z.ZodObject<{
|
|
|
133
115
|
};
|
|
134
116
|
}, {
|
|
135
117
|
Rsp: {
|
|
136
|
-
Status:
|
|
118
|
+
Status: "Ok";
|
|
137
119
|
Result: {
|
|
138
120
|
Name?: string | undefined;
|
|
139
121
|
Guid?: string | undefined;
|
|
@@ -164,12 +146,12 @@ export declare class GenetecAgent {
|
|
|
164
146
|
private baseUrl;
|
|
165
147
|
private credentials;
|
|
166
148
|
constructor(options?: GenetecAgentOptions);
|
|
167
|
-
checkConnection(): Promise<
|
|
149
|
+
checkConnection(): Promise<void>;
|
|
168
150
|
getAllCameraGuids(): Promise<TCameraGuidsResponse>;
|
|
169
151
|
getCameraDetails(guids: {
|
|
170
152
|
Guid: string;
|
|
171
153
|
}[], parameters: TParams): Promise<TCameraDetail[]>;
|
|
172
|
-
sendBookmark(guids: string[], bookmarkText: string): Promise<
|
|
154
|
+
sendBookmark(guids: string[], bookmarkText: string): Promise<void>;
|
|
173
155
|
private getRequestOptions;
|
|
174
156
|
private getTimeStamp;
|
|
175
157
|
private fetchWithTimeout;
|