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
|
@@ -57,7 +57,7 @@ export declare const infoTickerSchema: z.ZodObject<{
|
|
|
57
57
|
crawlSpeed: number;
|
|
58
58
|
font: string;
|
|
59
59
|
fontSize: number;
|
|
60
|
-
sourceType: "
|
|
60
|
+
sourceType: "text" | "url";
|
|
61
61
|
camera?: number | undefined;
|
|
62
62
|
schedule?: string | undefined;
|
|
63
63
|
invertInput?: boolean | undefined;
|
|
@@ -88,7 +88,7 @@ export declare const infoTickerSchema: z.ZodObject<{
|
|
|
88
88
|
crawlSpeed: number;
|
|
89
89
|
font: string;
|
|
90
90
|
fontSize: number;
|
|
91
|
-
sourceType: "
|
|
91
|
+
sourceType: "text" | "url";
|
|
92
92
|
camera?: number | undefined;
|
|
93
93
|
schedule?: string | undefined;
|
|
94
94
|
invertInput?: boolean | undefined;
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const sportFontSchema: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>;
|
|
3
|
+
export declare const scoreBoardSchema: z.ZodObject<{
|
|
4
|
+
id: z.ZodNumber;
|
|
5
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
6
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
7
|
+
cameraList: z.ZodArray<z.ZodNumber, "many">;
|
|
8
|
+
zIndex: z.ZodNumber;
|
|
9
|
+
name: z.ZodLiteral<"scoreBoard">;
|
|
10
|
+
pos_x: z.ZodNumber;
|
|
11
|
+
pos_y: z.ZodNumber;
|
|
12
|
+
coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
|
|
13
|
+
width: z.ZodNumber;
|
|
14
|
+
height: z.ZodNumber;
|
|
15
|
+
scale: z.ZodNumber;
|
|
16
|
+
teamHomeShortname: z.ZodString;
|
|
17
|
+
teamGuestShortname: z.ZodString;
|
|
18
|
+
teamHomeBackgroundColor: z.ZodString;
|
|
19
|
+
teamGuestBackgroundColor: z.ZodString;
|
|
20
|
+
teamHomeTextColor: z.ZodString;
|
|
21
|
+
teamGuestTextColor: z.ZodString;
|
|
22
|
+
teamHomeImgPath: z.ZodString;
|
|
23
|
+
teamGuestImgPath: z.ZodString;
|
|
24
|
+
teamHomeCurrentScore: z.ZodNumber;
|
|
25
|
+
teamGuestCurrentScore: z.ZodNumber;
|
|
26
|
+
baseTimeTimestamp: z.ZodNumber;
|
|
27
|
+
baseTimePlaytime: z.ZodNumber;
|
|
28
|
+
currentPeriodPlaytime: z.ZodNumber;
|
|
29
|
+
timeIsRunning: z.ZodBoolean;
|
|
30
|
+
currentPeriodLength: z.ZodNumber;
|
|
31
|
+
currentPeriod: z.ZodNumber;
|
|
32
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
name: "scoreBoard";
|
|
35
|
+
enabled: 0 | 1;
|
|
36
|
+
id: number;
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
cameraList: number[];
|
|
40
|
+
zIndex: number;
|
|
41
|
+
pos_x: number;
|
|
42
|
+
pos_y: number;
|
|
43
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
44
|
+
scale: number;
|
|
45
|
+
font: "classic" | (string & {});
|
|
46
|
+
teamHomeShortname: string;
|
|
47
|
+
teamGuestShortname: string;
|
|
48
|
+
teamHomeBackgroundColor: string;
|
|
49
|
+
teamGuestBackgroundColor: string;
|
|
50
|
+
teamHomeTextColor: string;
|
|
51
|
+
teamGuestTextColor: string;
|
|
52
|
+
teamHomeImgPath: string;
|
|
53
|
+
teamGuestImgPath: string;
|
|
54
|
+
teamHomeCurrentScore: number;
|
|
55
|
+
teamGuestCurrentScore: number;
|
|
56
|
+
baseTimeTimestamp: number;
|
|
57
|
+
baseTimePlaytime: number;
|
|
58
|
+
currentPeriodPlaytime: number;
|
|
59
|
+
timeIsRunning: boolean;
|
|
60
|
+
currentPeriodLength: number;
|
|
61
|
+
currentPeriod: number;
|
|
62
|
+
schedule?: string | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
name: "scoreBoard";
|
|
65
|
+
enabled: 0 | 1;
|
|
66
|
+
id: number;
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
cameraList: number[];
|
|
70
|
+
zIndex: number;
|
|
71
|
+
pos_x: number;
|
|
72
|
+
pos_y: number;
|
|
73
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
74
|
+
scale: number;
|
|
75
|
+
teamHomeShortname: string;
|
|
76
|
+
teamGuestShortname: string;
|
|
77
|
+
teamHomeBackgroundColor: string;
|
|
78
|
+
teamGuestBackgroundColor: string;
|
|
79
|
+
teamHomeTextColor: string;
|
|
80
|
+
teamGuestTextColor: string;
|
|
81
|
+
teamHomeImgPath: string;
|
|
82
|
+
teamGuestImgPath: string;
|
|
83
|
+
teamHomeCurrentScore: number;
|
|
84
|
+
teamGuestCurrentScore: number;
|
|
85
|
+
baseTimeTimestamp: number;
|
|
86
|
+
baseTimePlaytime: number;
|
|
87
|
+
currentPeriodPlaytime: number;
|
|
88
|
+
timeIsRunning: boolean;
|
|
89
|
+
currentPeriodLength: number;
|
|
90
|
+
currentPeriod: number;
|
|
91
|
+
schedule?: string | undefined;
|
|
92
|
+
font?: "classic" | (string & {}) | undefined;
|
|
93
|
+
}>;
|
|
94
|
+
export declare const baseballScoreBoardSchema: z.ZodObject<{
|
|
95
|
+
id: z.ZodNumber;
|
|
96
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
97
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
98
|
+
cameraList: z.ZodArray<z.ZodNumber, "many">;
|
|
99
|
+
zIndex: z.ZodNumber;
|
|
100
|
+
name: z.ZodLiteral<"baseballScoreBoard">;
|
|
101
|
+
pos_x: z.ZodNumber;
|
|
102
|
+
pos_y: z.ZodNumber;
|
|
103
|
+
coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
|
|
104
|
+
width: z.ZodNumber;
|
|
105
|
+
height: z.ZodNumber;
|
|
106
|
+
scale: z.ZodNumber;
|
|
107
|
+
matchFinished: z.ZodBoolean;
|
|
108
|
+
bases: z.ZodTuple<[z.ZodBoolean, z.ZodBoolean, z.ZodBoolean], null>;
|
|
109
|
+
homeInning: z.ZodBoolean;
|
|
110
|
+
inning: z.ZodNumber;
|
|
111
|
+
outs: z.ZodNumber;
|
|
112
|
+
balls: z.ZodNumber;
|
|
113
|
+
strikes: z.ZodNumber;
|
|
114
|
+
baseTimeTimestamp: z.ZodNumber;
|
|
115
|
+
baseTimePlaytime: z.ZodNumber;
|
|
116
|
+
timeIsRunning: z.ZodBoolean;
|
|
117
|
+
teamHomeShortname: z.ZodString;
|
|
118
|
+
teamGuestShortname: z.ZodString;
|
|
119
|
+
teamHomeBackgroundColor: z.ZodString;
|
|
120
|
+
teamGuestBackgroundColor: z.ZodString;
|
|
121
|
+
teamHomeTextColor: z.ZodString;
|
|
122
|
+
teamGuestTextColor: z.ZodString;
|
|
123
|
+
teamHomeCurrentScore: z.ZodNumber;
|
|
124
|
+
teamGuestCurrentScore: z.ZodNumber;
|
|
125
|
+
footerImgPath: z.ZodOptional<z.ZodString>;
|
|
126
|
+
footerText: z.ZodOptional<z.ZodString>;
|
|
127
|
+
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
128
|
+
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
129
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
name: "baseballScoreBoard";
|
|
132
|
+
enabled: 0 | 1;
|
|
133
|
+
id: number;
|
|
134
|
+
width: number;
|
|
135
|
+
height: number;
|
|
136
|
+
cameraList: number[];
|
|
137
|
+
zIndex: number;
|
|
138
|
+
pos_x: number;
|
|
139
|
+
pos_y: number;
|
|
140
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
141
|
+
scale: number;
|
|
142
|
+
font: "classic" | (string & {});
|
|
143
|
+
teamHomeShortname: string;
|
|
144
|
+
teamGuestShortname: string;
|
|
145
|
+
teamHomeBackgroundColor: string;
|
|
146
|
+
teamGuestBackgroundColor: string;
|
|
147
|
+
teamHomeTextColor: string;
|
|
148
|
+
teamGuestTextColor: string;
|
|
149
|
+
teamHomeCurrentScore: number;
|
|
150
|
+
teamGuestCurrentScore: number;
|
|
151
|
+
baseTimeTimestamp: number;
|
|
152
|
+
baseTimePlaytime: number;
|
|
153
|
+
timeIsRunning: boolean;
|
|
154
|
+
matchFinished: boolean;
|
|
155
|
+
bases: [boolean, boolean, boolean];
|
|
156
|
+
homeInning: boolean;
|
|
157
|
+
inning: number;
|
|
158
|
+
outs: number;
|
|
159
|
+
balls: number;
|
|
160
|
+
strikes: number;
|
|
161
|
+
schedule?: string | undefined;
|
|
162
|
+
footerImgPath?: string | undefined;
|
|
163
|
+
footerText?: string | undefined;
|
|
164
|
+
footerBackgroundColor?: string | undefined;
|
|
165
|
+
footerTextColor?: string | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
name: "baseballScoreBoard";
|
|
168
|
+
enabled: 0 | 1;
|
|
169
|
+
id: number;
|
|
170
|
+
width: number;
|
|
171
|
+
height: number;
|
|
172
|
+
cameraList: number[];
|
|
173
|
+
zIndex: number;
|
|
174
|
+
pos_x: number;
|
|
175
|
+
pos_y: number;
|
|
176
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
177
|
+
scale: number;
|
|
178
|
+
teamHomeShortname: string;
|
|
179
|
+
teamGuestShortname: string;
|
|
180
|
+
teamHomeBackgroundColor: string;
|
|
181
|
+
teamGuestBackgroundColor: string;
|
|
182
|
+
teamHomeTextColor: string;
|
|
183
|
+
teamGuestTextColor: string;
|
|
184
|
+
teamHomeCurrentScore: number;
|
|
185
|
+
teamGuestCurrentScore: number;
|
|
186
|
+
baseTimeTimestamp: number;
|
|
187
|
+
baseTimePlaytime: number;
|
|
188
|
+
timeIsRunning: boolean;
|
|
189
|
+
matchFinished: boolean;
|
|
190
|
+
bases: [boolean, boolean, boolean];
|
|
191
|
+
homeInning: boolean;
|
|
192
|
+
inning: number;
|
|
193
|
+
outs: number;
|
|
194
|
+
balls: number;
|
|
195
|
+
strikes: number;
|
|
196
|
+
schedule?: string | undefined;
|
|
197
|
+
font?: "classic" | (string & {}) | undefined;
|
|
198
|
+
footerImgPath?: string | undefined;
|
|
199
|
+
footerText?: string | undefined;
|
|
200
|
+
footerBackgroundColor?: string | undefined;
|
|
201
|
+
footerTextColor?: string | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
export declare const baseballScoreBoardAutomaticSchema: z.ZodObject<{
|
|
204
|
+
id: z.ZodNumber;
|
|
205
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
206
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
207
|
+
cameraList: z.ZodArray<z.ZodNumber, "many">;
|
|
208
|
+
zIndex: z.ZodNumber;
|
|
209
|
+
name: z.ZodLiteral<"myBallBaseballWidgets">;
|
|
210
|
+
width: z.ZodNumber;
|
|
211
|
+
height: z.ZodNumber;
|
|
212
|
+
scale: z.ZodNumber;
|
|
213
|
+
matchDetailLink: z.ZodString;
|
|
214
|
+
matchListLink: z.ZodString;
|
|
215
|
+
mirrored: z.ZodBoolean;
|
|
216
|
+
pregameWidgetText: z.ZodString;
|
|
217
|
+
teamHomeBackgroundColor: z.ZodString;
|
|
218
|
+
teamGuestBackgroundColor: z.ZodString;
|
|
219
|
+
teamHomeTextColor: z.ZodString;
|
|
220
|
+
teamGuestTextColor: z.ZodString;
|
|
221
|
+
homeLogoPath: z.ZodString;
|
|
222
|
+
guestLogoPath: z.ZodString;
|
|
223
|
+
footerImgPath: z.ZodOptional<z.ZodString>;
|
|
224
|
+
footerText: z.ZodOptional<z.ZodString>;
|
|
225
|
+
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
226
|
+
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
227
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
name: "myBallBaseballWidgets";
|
|
230
|
+
enabled: 0 | 1;
|
|
231
|
+
id: number;
|
|
232
|
+
width: number;
|
|
233
|
+
height: number;
|
|
234
|
+
cameraList: number[];
|
|
235
|
+
zIndex: number;
|
|
236
|
+
scale: number;
|
|
237
|
+
font: "classic" | (string & {});
|
|
238
|
+
teamHomeBackgroundColor: string;
|
|
239
|
+
teamGuestBackgroundColor: string;
|
|
240
|
+
teamHomeTextColor: string;
|
|
241
|
+
teamGuestTextColor: string;
|
|
242
|
+
matchDetailLink: string;
|
|
243
|
+
matchListLink: string;
|
|
244
|
+
mirrored: boolean;
|
|
245
|
+
pregameWidgetText: string;
|
|
246
|
+
homeLogoPath: string;
|
|
247
|
+
guestLogoPath: string;
|
|
248
|
+
schedule?: string | undefined;
|
|
249
|
+
footerImgPath?: string | undefined;
|
|
250
|
+
footerText?: string | undefined;
|
|
251
|
+
footerBackgroundColor?: string | undefined;
|
|
252
|
+
footerTextColor?: string | undefined;
|
|
253
|
+
}, {
|
|
254
|
+
name: "myBallBaseballWidgets";
|
|
255
|
+
enabled: 0 | 1;
|
|
256
|
+
id: number;
|
|
257
|
+
width: number;
|
|
258
|
+
height: number;
|
|
259
|
+
cameraList: number[];
|
|
260
|
+
zIndex: number;
|
|
261
|
+
scale: number;
|
|
262
|
+
teamHomeBackgroundColor: string;
|
|
263
|
+
teamGuestBackgroundColor: string;
|
|
264
|
+
teamHomeTextColor: string;
|
|
265
|
+
teamGuestTextColor: string;
|
|
266
|
+
matchDetailLink: string;
|
|
267
|
+
matchListLink: string;
|
|
268
|
+
mirrored: boolean;
|
|
269
|
+
pregameWidgetText: string;
|
|
270
|
+
homeLogoPath: string;
|
|
271
|
+
guestLogoPath: string;
|
|
272
|
+
schedule?: string | undefined;
|
|
273
|
+
font?: "classic" | (string & {}) | undefined;
|
|
274
|
+
footerImgPath?: string | undefined;
|
|
275
|
+
footerText?: string | undefined;
|
|
276
|
+
footerBackgroundColor?: string | undefined;
|
|
277
|
+
footerTextColor?: string | undefined;
|
|
278
|
+
}>;
|
|
279
|
+
export declare const scoreOverviewSchema: z.ZodObject<{
|
|
280
|
+
id: z.ZodNumber;
|
|
281
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
282
|
+
cameraList: z.ZodArray<z.ZodNumber, "many">;
|
|
283
|
+
zIndex: z.ZodNumber;
|
|
284
|
+
name: z.ZodLiteral<"scoreOverview">;
|
|
285
|
+
pos_x: z.ZodNumber;
|
|
286
|
+
pos_y: z.ZodNumber;
|
|
287
|
+
coordSystem: z.ZodUnion<[z.ZodLiteral<"top_left">, z.ZodLiteral<"top">, z.ZodLiteral<"top_right">, z.ZodLiteral<"left">, z.ZodLiteral<"center">, z.ZodLiteral<"right">, z.ZodLiteral<"bottom_left">, z.ZodLiteral<"bottom">, z.ZodLiteral<"bottom_right">]>;
|
|
288
|
+
width: z.ZodNumber;
|
|
289
|
+
height: z.ZodNumber;
|
|
290
|
+
scale: z.ZodNumber;
|
|
291
|
+
teamHomeName: z.ZodString;
|
|
292
|
+
teamGuestName: z.ZodString;
|
|
293
|
+
teamHomeBackgroundColor: z.ZodString;
|
|
294
|
+
teamGuestBackgroundColor: z.ZodString;
|
|
295
|
+
teamHomeTextColor: z.ZodString;
|
|
296
|
+
teamGuestTextColor: z.ZodString;
|
|
297
|
+
teamHomeImgPath: z.ZodString;
|
|
298
|
+
teamGuestImgPath: z.ZodString;
|
|
299
|
+
teamHomeCurrentScore: z.ZodNumber;
|
|
300
|
+
teamGuestCurrentScore: z.ZodNumber;
|
|
301
|
+
scoreVisible: z.ZodBoolean;
|
|
302
|
+
description: z.ZodString;
|
|
303
|
+
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
|
|
304
|
+
scoreFont: z.ZodLiteral<"classic">;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
name: "scoreOverview";
|
|
307
|
+
enabled: 0 | 1;
|
|
308
|
+
id: number;
|
|
309
|
+
width: number;
|
|
310
|
+
height: number;
|
|
311
|
+
cameraList: number[];
|
|
312
|
+
zIndex: number;
|
|
313
|
+
pos_x: number;
|
|
314
|
+
pos_y: number;
|
|
315
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
316
|
+
scale: number;
|
|
317
|
+
teamHomeBackgroundColor: string;
|
|
318
|
+
teamGuestBackgroundColor: string;
|
|
319
|
+
teamHomeTextColor: string;
|
|
320
|
+
teamGuestTextColor: string;
|
|
321
|
+
teamHomeImgPath: string;
|
|
322
|
+
teamGuestImgPath: string;
|
|
323
|
+
teamHomeCurrentScore: number;
|
|
324
|
+
teamGuestCurrentScore: number;
|
|
325
|
+
teamHomeName: string;
|
|
326
|
+
teamGuestName: string;
|
|
327
|
+
scoreVisible: boolean;
|
|
328
|
+
description: string;
|
|
329
|
+
textFont: "classic" | (string & {});
|
|
330
|
+
scoreFont: "classic";
|
|
331
|
+
}, {
|
|
332
|
+
name: "scoreOverview";
|
|
333
|
+
enabled: 0 | 1;
|
|
334
|
+
id: number;
|
|
335
|
+
width: number;
|
|
336
|
+
height: number;
|
|
337
|
+
cameraList: number[];
|
|
338
|
+
zIndex: number;
|
|
339
|
+
pos_x: number;
|
|
340
|
+
pos_y: number;
|
|
341
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
342
|
+
scale: number;
|
|
343
|
+
teamHomeBackgroundColor: string;
|
|
344
|
+
teamGuestBackgroundColor: string;
|
|
345
|
+
teamHomeTextColor: string;
|
|
346
|
+
teamGuestTextColor: string;
|
|
347
|
+
teamHomeImgPath: string;
|
|
348
|
+
teamGuestImgPath: string;
|
|
349
|
+
teamHomeCurrentScore: number;
|
|
350
|
+
teamGuestCurrentScore: number;
|
|
351
|
+
teamHomeName: string;
|
|
352
|
+
teamGuestName: string;
|
|
353
|
+
scoreVisible: boolean;
|
|
354
|
+
description: string;
|
|
355
|
+
scoreFont: "classic";
|
|
356
|
+
textFont?: "classic" | (string & {}) | undefined;
|
|
357
|
+
}>;
|
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { HttpOptions } from '../internal/types';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export type CamStreamerAPIOptions = HttpOptions;
|
|
4
|
+
export declare const cameraStreamSchema: z.ZodObject<{
|
|
5
|
+
enabled: z.ZodString;
|
|
6
|
+
active: z.ZodString;
|
|
7
|
+
audioSource: z.ZodString;
|
|
8
|
+
avSyncMsec: z.ZodString;
|
|
9
|
+
internalVapixParameters: z.ZodString;
|
|
10
|
+
userVapixParameters: z.ZodString;
|
|
11
|
+
outputParameters: z.ZodString;
|
|
12
|
+
outputType: z.ZodString;
|
|
13
|
+
mediaServerUrl: z.ZodString;
|
|
14
|
+
inputType: z.ZodString;
|
|
15
|
+
inputUrl: z.ZodString;
|
|
16
|
+
forceStereo: z.ZodString;
|
|
17
|
+
streamDelay: z.ZodString;
|
|
18
|
+
statusLed: z.ZodString;
|
|
19
|
+
statusPort: z.ZodString;
|
|
20
|
+
callApi: z.ZodString;
|
|
21
|
+
trigger: z.ZodString;
|
|
22
|
+
schedule: z.ZodString;
|
|
23
|
+
prepareAhead: z.ZodString;
|
|
24
|
+
startTime: z.ZodString;
|
|
25
|
+
stopTime: z.ZodString;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
enabled: string;
|
|
28
|
+
schedule: string;
|
|
29
|
+
active: string;
|
|
30
|
+
audioSource: string;
|
|
31
|
+
avSyncMsec: string;
|
|
32
|
+
internalVapixParameters: string;
|
|
33
|
+
userVapixParameters: string;
|
|
34
|
+
outputParameters: string;
|
|
35
|
+
outputType: string;
|
|
36
|
+
mediaServerUrl: string;
|
|
37
|
+
inputType: string;
|
|
38
|
+
inputUrl: string;
|
|
39
|
+
forceStereo: string;
|
|
40
|
+
streamDelay: string;
|
|
41
|
+
statusLed: string;
|
|
42
|
+
statusPort: string;
|
|
43
|
+
callApi: string;
|
|
44
|
+
trigger: string;
|
|
45
|
+
prepareAhead: string;
|
|
46
|
+
startTime: string;
|
|
47
|
+
stopTime: string;
|
|
48
|
+
}, {
|
|
49
|
+
enabled: string;
|
|
50
|
+
schedule: string;
|
|
51
|
+
active: string;
|
|
52
|
+
audioSource: string;
|
|
53
|
+
avSyncMsec: string;
|
|
54
|
+
internalVapixParameters: string;
|
|
55
|
+
userVapixParameters: string;
|
|
56
|
+
outputParameters: string;
|
|
57
|
+
outputType: string;
|
|
58
|
+
mediaServerUrl: string;
|
|
59
|
+
inputType: string;
|
|
60
|
+
inputUrl: string;
|
|
61
|
+
forceStereo: string;
|
|
62
|
+
streamDelay: string;
|
|
63
|
+
statusLed: string;
|
|
64
|
+
statusPort: string;
|
|
65
|
+
callApi: string;
|
|
66
|
+
trigger: string;
|
|
67
|
+
prepareAhead: string;
|
|
68
|
+
startTime: string;
|
|
69
|
+
stopTime: string;
|
|
70
|
+
}>;
|
|
71
|
+
export type TCameraStream = z.infer<typeof cameraStreamSchema>;
|
|
72
|
+
export declare const streamSchema: z.ZodObject<{
|
|
73
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
74
|
+
active: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
75
|
+
audioSource: z.ZodString;
|
|
76
|
+
avSyncMsec: z.ZodNumber;
|
|
77
|
+
internalVapixParameters: z.ZodString;
|
|
78
|
+
userVapixParameters: z.ZodString;
|
|
79
|
+
outputParameters: z.ZodString;
|
|
80
|
+
outputType: z.ZodUnion<[z.ZodLiteral<"video">, z.ZodLiteral<"images">, z.ZodLiteral<"none">]>;
|
|
81
|
+
mediaServerUrl: z.ZodString;
|
|
82
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
83
|
+
inputUrl: z.ZodString;
|
|
84
|
+
forceStereo: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
85
|
+
streamDelay: z.ZodNullable<z.ZodNumber>;
|
|
86
|
+
statusLed: z.ZodNumber;
|
|
87
|
+
statusPort: z.ZodString;
|
|
88
|
+
callApi: z.ZodNumber;
|
|
89
|
+
trigger: z.ZodString;
|
|
90
|
+
schedule: z.ZodString;
|
|
91
|
+
prepareAhead: z.ZodNumber;
|
|
92
|
+
startTime: z.ZodNullable<z.ZodNumber>;
|
|
93
|
+
stopTime: z.ZodNullable<z.ZodNumber>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
enabled: 0 | 1;
|
|
96
|
+
schedule: string;
|
|
97
|
+
active: 0 | 1;
|
|
98
|
+
audioSource: string;
|
|
99
|
+
avSyncMsec: number;
|
|
100
|
+
internalVapixParameters: string;
|
|
101
|
+
userVapixParameters: string;
|
|
102
|
+
outputParameters: string;
|
|
103
|
+
outputType: "video" | "images" | "none";
|
|
104
|
+
mediaServerUrl: string;
|
|
105
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
106
|
+
inputUrl: string;
|
|
107
|
+
forceStereo: 0 | 1;
|
|
108
|
+
streamDelay: number | null;
|
|
109
|
+
statusLed: number;
|
|
110
|
+
statusPort: string;
|
|
111
|
+
callApi: number;
|
|
112
|
+
trigger: string;
|
|
113
|
+
prepareAhead: number;
|
|
114
|
+
startTime: number | null;
|
|
115
|
+
stopTime: number | null;
|
|
116
|
+
}, {
|
|
117
|
+
enabled: 0 | 1;
|
|
118
|
+
schedule: string;
|
|
119
|
+
active: 0 | 1;
|
|
120
|
+
audioSource: string;
|
|
121
|
+
avSyncMsec: number;
|
|
122
|
+
internalVapixParameters: string;
|
|
123
|
+
userVapixParameters: string;
|
|
124
|
+
outputParameters: string;
|
|
125
|
+
outputType: "video" | "images" | "none";
|
|
126
|
+
mediaServerUrl: string;
|
|
127
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
128
|
+
inputUrl: string;
|
|
129
|
+
forceStereo: 0 | 1;
|
|
130
|
+
streamDelay: number | null;
|
|
131
|
+
statusLed: number;
|
|
132
|
+
statusPort: string;
|
|
133
|
+
callApi: number;
|
|
134
|
+
trigger: string;
|
|
135
|
+
prepareAhead: number;
|
|
136
|
+
startTime: number | null;
|
|
137
|
+
stopTime: number | null;
|
|
138
|
+
}>;
|
|
139
|
+
export type TStream = z.infer<typeof streamSchema>;
|
|
140
|
+
export declare const cameraStreamResponseSchema: z.ZodObject<{
|
|
141
|
+
data: z.ZodObject<{
|
|
142
|
+
enabled: z.ZodString;
|
|
143
|
+
active: z.ZodString;
|
|
144
|
+
audioSource: z.ZodString;
|
|
145
|
+
avSyncMsec: z.ZodString;
|
|
146
|
+
internalVapixParameters: z.ZodString;
|
|
147
|
+
userVapixParameters: z.ZodString;
|
|
148
|
+
outputParameters: z.ZodString;
|
|
149
|
+
outputType: z.ZodString;
|
|
150
|
+
mediaServerUrl: z.ZodString;
|
|
151
|
+
inputType: z.ZodString;
|
|
152
|
+
inputUrl: z.ZodString;
|
|
153
|
+
forceStereo: z.ZodString;
|
|
154
|
+
streamDelay: z.ZodString;
|
|
155
|
+
statusLed: z.ZodString;
|
|
156
|
+
statusPort: z.ZodString;
|
|
157
|
+
callApi: z.ZodString;
|
|
158
|
+
trigger: z.ZodString;
|
|
159
|
+
schedule: z.ZodString;
|
|
160
|
+
prepareAhead: z.ZodString;
|
|
161
|
+
startTime: z.ZodString;
|
|
162
|
+
stopTime: z.ZodString;
|
|
163
|
+
}, "strip", z.ZodTypeAny, {
|
|
164
|
+
enabled: string;
|
|
165
|
+
schedule: string;
|
|
166
|
+
active: string;
|
|
167
|
+
audioSource: string;
|
|
168
|
+
avSyncMsec: string;
|
|
169
|
+
internalVapixParameters: string;
|
|
170
|
+
userVapixParameters: string;
|
|
171
|
+
outputParameters: string;
|
|
172
|
+
outputType: string;
|
|
173
|
+
mediaServerUrl: string;
|
|
174
|
+
inputType: string;
|
|
175
|
+
inputUrl: string;
|
|
176
|
+
forceStereo: string;
|
|
177
|
+
streamDelay: string;
|
|
178
|
+
statusLed: string;
|
|
179
|
+
statusPort: string;
|
|
180
|
+
callApi: string;
|
|
181
|
+
trigger: string;
|
|
182
|
+
prepareAhead: string;
|
|
183
|
+
startTime: string;
|
|
184
|
+
stopTime: string;
|
|
185
|
+
}, {
|
|
186
|
+
enabled: string;
|
|
187
|
+
schedule: string;
|
|
188
|
+
active: string;
|
|
189
|
+
audioSource: string;
|
|
190
|
+
avSyncMsec: string;
|
|
191
|
+
internalVapixParameters: string;
|
|
192
|
+
userVapixParameters: string;
|
|
193
|
+
outputParameters: string;
|
|
194
|
+
outputType: string;
|
|
195
|
+
mediaServerUrl: string;
|
|
196
|
+
inputType: string;
|
|
197
|
+
inputUrl: string;
|
|
198
|
+
forceStereo: string;
|
|
199
|
+
streamDelay: string;
|
|
200
|
+
statusLed: string;
|
|
201
|
+
statusPort: string;
|
|
202
|
+
callApi: string;
|
|
203
|
+
trigger: string;
|
|
204
|
+
prepareAhead: string;
|
|
205
|
+
startTime: string;
|
|
206
|
+
stopTime: string;
|
|
207
|
+
}>;
|
|
208
|
+
code: z.ZodNumber;
|
|
209
|
+
message: z.ZodString;
|
|
210
|
+
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
code: number;
|
|
212
|
+
message: string;
|
|
213
|
+
data: {
|
|
214
|
+
enabled: string;
|
|
215
|
+
schedule: string;
|
|
216
|
+
active: string;
|
|
217
|
+
audioSource: string;
|
|
218
|
+
avSyncMsec: string;
|
|
219
|
+
internalVapixParameters: string;
|
|
220
|
+
userVapixParameters: string;
|
|
221
|
+
outputParameters: string;
|
|
222
|
+
outputType: string;
|
|
223
|
+
mediaServerUrl: string;
|
|
224
|
+
inputType: string;
|
|
225
|
+
inputUrl: string;
|
|
226
|
+
forceStereo: string;
|
|
227
|
+
streamDelay: string;
|
|
228
|
+
statusLed: string;
|
|
229
|
+
statusPort: string;
|
|
230
|
+
callApi: string;
|
|
231
|
+
trigger: string;
|
|
232
|
+
prepareAhead: string;
|
|
233
|
+
startTime: string;
|
|
234
|
+
stopTime: string;
|
|
235
|
+
};
|
|
236
|
+
}, {
|
|
237
|
+
code: number;
|
|
238
|
+
message: string;
|
|
239
|
+
data: {
|
|
240
|
+
enabled: string;
|
|
241
|
+
schedule: string;
|
|
242
|
+
active: string;
|
|
243
|
+
audioSource: string;
|
|
244
|
+
avSyncMsec: string;
|
|
245
|
+
internalVapixParameters: string;
|
|
246
|
+
userVapixParameters: string;
|
|
247
|
+
outputParameters: string;
|
|
248
|
+
outputType: string;
|
|
249
|
+
mediaServerUrl: string;
|
|
250
|
+
inputType: string;
|
|
251
|
+
inputUrl: string;
|
|
252
|
+
forceStereo: string;
|
|
253
|
+
streamDelay: string;
|
|
254
|
+
statusLed: string;
|
|
255
|
+
statusPort: string;
|
|
256
|
+
callApi: string;
|
|
257
|
+
trigger: string;
|
|
258
|
+
prepareAhead: string;
|
|
259
|
+
startTime: string;
|
|
260
|
+
stopTime: string;
|
|
261
|
+
};
|
|
262
|
+
}>;
|
|
263
|
+
export type TStreamCameraDataResponse = z.infer<typeof cameraStreamResponseSchema>;
|
|
264
|
+
export declare const camstreamerServerResponseSchema: z.ZodObject<{
|
|
265
|
+
code: z.ZodNumber;
|
|
266
|
+
message: z.ZodString;
|
|
267
|
+
}, "strip", z.ZodTypeAny, {
|
|
268
|
+
code: number;
|
|
269
|
+
message: string;
|
|
270
|
+
}, {
|
|
271
|
+
code: number;
|
|
272
|
+
message: string;
|
|
273
|
+
}>;
|
|
274
|
+
export type TCamstreamerServerResponse = z.infer<typeof camstreamerServerResponseSchema>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IClient, TGetParams, TPostParams } from '../internal/types';
|
|
2
|
+
export declare class DefaultClient implements IClient<Response, FormData | ArrayBuffer> {
|
|
3
|
+
get: (params: TGetParams) => Promise<Response>;
|
|
4
|
+
post: (params: TPostParams<FormData | ArrayBuffer>) => Promise<Response>;
|
|
5
|
+
private fetchWithTimeout;
|
|
6
|
+
}
|
package/cjs/CamScripterAPI.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ProxyClient } from './internal/ProxyClient';
|
|
2
|
-
import { IClient, TResponse } from './internal/types';
|
|
3
|
-
import { TNodeState, TPackageInfoList, TStorage, TStorageType } from './types/CamScripterAPI';
|
|
4
|
-
import { THttpRequestOptions, TNetworkCamera, TProxyParams } from './types/common';
|
|
5
|
-
export declare class CamScripterAPI<Client extends IClient<TResponse> = IClient<TResponse>> {
|
|
6
|
-
client: Client;
|
|
7
|
-
constructor(client: Client);
|
|
8
|
-
static getProxyUrlPath: () => string;
|
|
9
|
-
getClient(proxyParams?: TProxyParams): Client | ProxyClient<Client>;
|
|
10
|
-
checkCameraTime(options?: THttpRequestOptions): Promise<boolean>;
|
|
11
|
-
getNetworkCameraList(options?: THttpRequestOptions): Promise<TNetworkCamera[]>;
|
|
12
|
-
getStorageInfo(options?: THttpRequestOptions): Promise<TStorage>;
|
|
13
|
-
getPackageList(options?: THttpRequestOptions): Promise<TPackageInfoList>;
|
|
14
|
-
installPackages(formData: FormData, storage: TStorageType, options?: THttpRequestOptions): Promise<{
|
|
15
|
-
status: number;
|
|
16
|
-
message: string;
|
|
17
|
-
}>;
|
|
18
|
-
uninstallPackage(packageId: string, options?: THttpRequestOptions): Promise<{
|
|
19
|
-
status: number;
|
|
20
|
-
message: string;
|
|
21
|
-
}>;
|
|
22
|
-
importSettings(packageId: string, formData: FormData, options?: THttpRequestOptions): Promise<{
|
|
23
|
-
status: number;
|
|
24
|
-
message: string;
|
|
25
|
-
}>;
|
|
26
|
-
exportSettings(packageId: string, formData: FormData, options?: THttpRequestOptions): Promise<{
|
|
27
|
-
status: number;
|
|
28
|
-
message: string;
|
|
29
|
-
}>;
|
|
30
|
-
getNodejsStatus(options?: THttpRequestOptions): Promise<TNodeState>;
|
|
31
|
-
installNodejs(storage: TStorageType, options?: THttpRequestOptions): Promise<{
|
|
32
|
-
status: number;
|
|
33
|
-
message: string;
|
|
34
|
-
}>;
|
|
35
|
-
private get;
|
|
36
|
-
private post;
|
|
37
|
-
}
|