camstreamerlib 4.0.0-beta.38 → 4.0.0-beta.39
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 +38 -27
- package/cjs/CamOverlayAPI.js +0 -6
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
- package/esm/CamOverlayAPI.js +0 -6
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +8 -8
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +36 -36
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +13 -13
package/README.md
CHANGED
|
@@ -15,32 +15,34 @@ Examples of CamScripter packages can be found at https://github.com/CamStreamer/
|
|
|
15
15
|
npm install camstreamerlib
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
# Documentation for
|
|
19
|
-
|
|
20
|
-
- [HttpServer](doc/HttpServer.md) is a module for processing HTTP requests in your scripts. It also automatically serves up the content from html directory or you can register paths which you can process by your own (e.g. http://$CAMERA_IP/local/camscripter/proxy/$MY_PACKAGE_NAME/control.cgi).
|
|
18
|
+
# Documentation for ACAP and Camera API
|
|
21
19
|
|
|
22
20
|
- [VapixAPI](doc/VapixAPI.md) is a module to access Axis camera VAPIX interface.
|
|
23
21
|
|
|
24
|
-
- [VapixEvents](doc/VapixEvents.md) is a module which allows receiving camera events from the VAPIX API.
|
|
25
|
-
|
|
26
22
|
- [CamStreamerAPI](doc/CamStreamerAPI.md) is a module for easy control of video streaming in the CamStreamer ACAP application (RTMP, HLS, SRT and MPEG-TS protocols).
|
|
27
23
|
|
|
28
24
|
- [CamOverlayAPI](doc/CamOverlayAPI.md) is a module to access CamOverlay API.
|
|
29
25
|
|
|
26
|
+
- [CamScripterAPI](doc/CamScripterAPI.md) is a module to access CamScripter API.
|
|
27
|
+
|
|
28
|
+
- [CamSwitcherAPI](doc/CamSwitcherAPI.md) is a module to access CamSwitcher API.
|
|
29
|
+
|
|
30
|
+
- [PlaneTrackerAPI](doc/PlaneTrackerAPI.md) is a module to access PlaneTracker API.
|
|
31
|
+
|
|
32
|
+
# Documentation for Node.js modules
|
|
33
|
+
|
|
34
|
+
- [HttpServer](doc/HttpServer.md) is a module for processing HTTP requests in your scripts. It also automatically serves up the content from html directory or you can register paths which you can process by your own (e.g. http://$CAMERA_IP/local/camscripter/proxy/$MY_PACKAGE_NAME/control.cgi).
|
|
35
|
+
|
|
36
|
+
- [VapixEvents](doc/VapixEvents.md) is a module which allows receiving camera events from the VAPIX API.
|
|
37
|
+
|
|
30
38
|
- [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) is a module for easy control of CamOverlay drawing API. For more details on supported video overlay drawing functions see https://camstreamer.com/camoverlay-api1
|
|
31
39
|
|
|
32
40
|
- [CamOverlayPainter/](doc/CamOverlayPainter.md) contains three modules which makes easier to use CamOverlayDrawingAPI.
|
|
33
41
|
|
|
34
|
-
- [CamScripterAPI](doc/CamScripterAPI.md) is a module to access CamScripter API.
|
|
35
|
-
|
|
36
42
|
- [CamScripterAPICameraEventsGenerator](doc/CamScripterAPICameraEventsGenerator.md) is a module which allows generating events on an Axis camera. These events can be used for triggers in the Axis camera rule engine (events/actions). It is also an easy way how to integrate events and metadata in VMS systems which support Axis camera events.
|
|
37
43
|
|
|
38
|
-
- [CamSwitcherAPI](doc/CamSwitcherAPI.md) is a module to access CamSwitcher API.
|
|
39
|
-
|
|
40
44
|
- [CamSwitcherEvents](doc/CamSwitcherEvents.md) is a module which allows receiving events from CamSwitcher ACAP application.
|
|
41
45
|
|
|
42
|
-
- [PlaneTrackerAPI](doc/PlaneTrackerAPI.md) is a module to access PlaneTracker API.
|
|
43
|
-
|
|
44
46
|
- [GenetecAgent](doc/GenetecAgent.md) is a module which allows receiving and sending data to Genetec VMS.
|
|
45
47
|
|
|
46
48
|
## For Developers
|
|
@@ -65,7 +67,7 @@ If you want to create your own package and upload it to CamScripter App, you can
|
|
|
65
67
|
|
|
66
68
|
```json
|
|
67
69
|
"scripts": {
|
|
68
|
-
"create-package": "node node_modules/camstreamerlib/CreatePackage.js"
|
|
70
|
+
"create-package": "node node_modules/camstreamerlib/bin/CreatePackage.js"
|
|
69
71
|
}
|
|
70
72
|
```
|
|
71
73
|
|
|
@@ -77,29 +79,38 @@ The zip package is created in the current directory. You can choose different lo
|
|
|
77
79
|
|
|
78
80
|
```json
|
|
79
81
|
"scripts": {
|
|
80
|
-
"create-package": "node node_modules/camstreamerlib/CreatePackage.js -i -e=react"
|
|
82
|
+
"create-package": "node node_modules/camstreamerlib/bin/CreatePackage.js -i -e=react"
|
|
81
83
|
}
|
|
82
84
|
```
|
|
83
85
|
|
|
84
|
-
### Breaking changes when moving from version
|
|
86
|
+
### Breaking changes when moving from version 3.\*.\* to 4.\*.\*
|
|
87
|
+
|
|
88
|
+
...
|
|
85
89
|
|
|
86
|
-
- Renamed file HTTPRequest.ts to HttpRequest.ts
|
|
87
|
-
- Removed deprecated protocol attribute from all options objects (use tls instead).
|
|
88
|
-
- Removed RTSP
|
|
89
|
-
> Previously CameraVapix.ts supported both WebSocket and RTSP.
|
|
90
|
-
> Starting with version 2.0.0, it supports WebSocket only.
|
|
91
|
-
- ServiceID shouldn't be passed to CamOverlayAPI by the options object. Pass it as a parameter.
|
|
92
|
-
- Renamed CamOverlayDrawingAPI event msg to message.
|
|
93
|
-
- Drawing services extracted from CamOverlayAPI.ts to a separate file.
|
|
94
|
-
> Please read [CamOverlayAPI](doc/CamOverlayAPI.md) and [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) for more information.
|
|
95
90
|
|
|
96
91
|
### Breaking changes when moving from version 2.\*.\* to 3.\*.\*
|
|
97
92
|
|
|
98
93
|
- CamStreamerlib requiers Node.js version 18 or higher.
|
|
99
94
|
- CamOverlayDrawingAPI tries to reconnect when the websocket is closed. You don't have to do it manually.
|
|
100
|
-
|
|
95
|
+
> [!IMPORTANT]
|
|
96
|
+
> However, events `open` and `close` are still emitted in case you need to react to them.
|
|
101
97
|
- Files common.ts, Digest.ts, HttpRequest.ts and WsClient.ts moved to a folder internal.
|
|
102
98
|
- Removed function httpRequest(). Use sendRequest() instead. It uses the same interface except for the "noWaitForData" parameter.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
> [!IMPORTANT]
|
|
100
|
+
> It returns (Response object)[https://developer.mozilla.org/en-US/docs/Web/API/Response] which doesn't contain data by default.
|
|
101
|
+
> If you need to wait for data, you can call for example the function `await res.text()`.
|
|
102
|
+
> This change affects the function `vapixGet` from (CameraVapix)[doc/CameraVapix.md] too.
|
|
103
|
+
|
|
104
|
+
### Breaking changes when moving from version 1.\*.\* to 2.\*.\*
|
|
105
|
+
|
|
106
|
+
- Renamed file HTTPRequest.ts to HttpRequest.ts
|
|
107
|
+
- Removed deprecated protocol attribute from all options objects (use tls instead).
|
|
108
|
+
- Removed RTSP
|
|
109
|
+
> [!IMPORTANT]
|
|
110
|
+
> Previously CameraVapix.ts supported both WebSocket and RTSP.
|
|
111
|
+
> Starting with version 2.0.0, it supports WebSocket only.
|
|
112
|
+
- ServiceID shouldn't be passed to CamOverlayAPI by the options object. Pass it as a parameter.
|
|
113
|
+
- Renamed CamOverlayDrawingAPI event msg to message.
|
|
114
|
+
- Drawing services extracted from CamOverlayAPI.ts to a separate file.
|
|
115
|
+
> [!IMPORTANT]
|
|
116
|
+
> Please read [CamOverlayAPI](doc/CamOverlayAPI.md) and [CamOverlayDrawingAPI](doc/CamOverlayDrawingAPI.md) for more information.
|
package/cjs/CamOverlayAPI.js
CHANGED
|
@@ -92,12 +92,6 @@ class CamOverlayAPI {
|
|
|
92
92
|
async getServices(options) {
|
|
93
93
|
const res = await this._getJson(`${BASE_PATH}/services.cgi`, { action: 'get' }, options);
|
|
94
94
|
const services = CamOverlayAPI_1.serviceListSchema.parse(res).services;
|
|
95
|
-
services.forEach((service) => {
|
|
96
|
-
const parsedService = CamOverlayAPI_1.servicesSchema.safeParse(service);
|
|
97
|
-
if (!parsedService.success) {
|
|
98
|
-
console.warn(`[SERVICE SCHEMA MISMATCH]: Service ${service.name} (${service.id}) does not match the current schema, or is a hidden service.`);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
95
|
return services;
|
|
102
96
|
}
|
|
103
97
|
async updateSingleService(service, options) {
|
|
@@ -3,7 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.scoreOverviewSchema = exports.baseballScoreBoardAutomaticSchema = exports.baseballScoreBoardSchema = exports.scoreBoardSchema = exports.sportFontSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const serviceCommonTypes_1 = require("./serviceCommonTypes");
|
|
6
|
-
exports.sportFontSchema = zod_1.z.union([
|
|
6
|
+
exports.sportFontSchema = zod_1.z.union([
|
|
7
|
+
zod_1.z.literal('classic'),
|
|
8
|
+
zod_1.z.custom((val) => {
|
|
9
|
+
return typeof val === 'string';
|
|
10
|
+
}),
|
|
11
|
+
]);
|
|
7
12
|
exports.scoreBoardSchema = zod_1.z.object({
|
|
8
13
|
id: zod_1.z.number().nonnegative(),
|
|
9
14
|
enabled: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
|
package/esm/CamOverlayAPI.js
CHANGED
|
@@ -89,12 +89,6 @@ export class CamOverlayAPI {
|
|
|
89
89
|
async getServices(options) {
|
|
90
90
|
const res = await this._getJson(`${BASE_PATH}/services.cgi`, { action: 'get' }, options);
|
|
91
91
|
const services = serviceListSchema.parse(res).services;
|
|
92
|
-
services.forEach((service) => {
|
|
93
|
-
const parsedService = servicesSchema.safeParse(service);
|
|
94
|
-
if (!parsedService.success) {
|
|
95
|
-
console.warn(`[SERVICE SCHEMA MISMATCH]: Service ${service.name} (${service.id}) does not match the current schema, or is a hidden service.`);
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
92
|
return services;
|
|
99
93
|
}
|
|
100
94
|
async updateSingleService(service, options) {
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { coordinateSystemSchema, serviceNames } from './serviceCommonTypes';
|
|
3
|
-
export const sportFontSchema = z.union([
|
|
3
|
+
export const sportFontSchema = z.union([
|
|
4
|
+
z.literal('classic'),
|
|
5
|
+
z.custom((val) => {
|
|
6
|
+
return typeof val === 'string';
|
|
7
|
+
}),
|
|
8
|
+
]);
|
|
4
9
|
export const scoreBoardSchema = z.object({
|
|
5
10
|
id: z.number().nonnegative(),
|
|
6
11
|
enabled: z.union([z.literal(0), z.literal(1)]),
|
package/package.json
CHANGED
package/types/CamOverlayAPI.d.ts
CHANGED
|
@@ -334,7 +334,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
334
334
|
pos_y: number;
|
|
335
335
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
336
336
|
scale: number;
|
|
337
|
-
font:
|
|
337
|
+
font: string;
|
|
338
338
|
teamHomeShortname: string;
|
|
339
339
|
teamGuestShortname: string;
|
|
340
340
|
teamHomeBackgroundColor: string;
|
|
@@ -364,7 +364,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
364
364
|
pos_y: number;
|
|
365
365
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
366
366
|
scale: number;
|
|
367
|
-
font:
|
|
367
|
+
font: string;
|
|
368
368
|
teamHomeShortname: string;
|
|
369
369
|
teamGuestShortname: string;
|
|
370
370
|
teamHomeBackgroundColor: string;
|
|
@@ -397,7 +397,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
397
397
|
cameraList: number[];
|
|
398
398
|
zIndex: number;
|
|
399
399
|
scale: number;
|
|
400
|
-
font:
|
|
400
|
+
font: string;
|
|
401
401
|
teamHomeBackgroundColor: string;
|
|
402
402
|
teamGuestBackgroundColor: string;
|
|
403
403
|
teamHomeTextColor: string;
|
|
@@ -437,7 +437,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
437
437
|
teamGuestName: string;
|
|
438
438
|
scoreVisible: boolean;
|
|
439
439
|
description: string;
|
|
440
|
-
textFont:
|
|
440
|
+
textFont: string;
|
|
441
441
|
scoreFont: "classic";
|
|
442
442
|
}>;
|
|
443
443
|
getServices(options?: THttpRequestOptions): Promise<({
|
|
@@ -743,7 +743,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
743
743
|
pos_y: number;
|
|
744
744
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
745
745
|
scale: number;
|
|
746
|
-
font:
|
|
746
|
+
font: string;
|
|
747
747
|
teamHomeShortname: string;
|
|
748
748
|
teamGuestShortname: string;
|
|
749
749
|
teamHomeBackgroundColor: string;
|
|
@@ -773,7 +773,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
773
773
|
pos_y: number;
|
|
774
774
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
775
775
|
scale: number;
|
|
776
|
-
font:
|
|
776
|
+
font: string;
|
|
777
777
|
teamHomeShortname: string;
|
|
778
778
|
teamGuestShortname: string;
|
|
779
779
|
teamHomeBackgroundColor: string;
|
|
@@ -806,7 +806,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
806
806
|
cameraList: number[];
|
|
807
807
|
zIndex: number;
|
|
808
808
|
scale: number;
|
|
809
|
-
font:
|
|
809
|
+
font: string;
|
|
810
810
|
teamHomeBackgroundColor: string;
|
|
811
811
|
teamGuestBackgroundColor: string;
|
|
812
812
|
teamHomeTextColor: string;
|
|
@@ -846,7 +846,7 @@ export declare class CamOverlayAPI<Client extends IClient<TResponse, any>> {
|
|
|
846
846
|
teamGuestName: string;
|
|
847
847
|
scoreVisible: boolean;
|
|
848
848
|
description: string;
|
|
849
|
-
textFont:
|
|
849
|
+
textFont: string;
|
|
850
850
|
scoreFont: "classic";
|
|
851
851
|
})[]>;
|
|
852
852
|
updateSingleService(service: TService, options?: THttpRequestOptions): Promise<void>;
|
|
@@ -1166,7 +1166,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1166
1166
|
timeIsRunning: z.ZodBoolean;
|
|
1167
1167
|
currentPeriodLength: z.ZodNumber;
|
|
1168
1168
|
currentPeriod: z.ZodNumber;
|
|
1169
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
1169
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
1170
1170
|
}, "strip", z.ZodTypeAny, {
|
|
1171
1171
|
name: "scoreBoard";
|
|
1172
1172
|
enabled: 0 | 1;
|
|
@@ -1179,7 +1179,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1179
1179
|
pos_y: number;
|
|
1180
1180
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
1181
1181
|
scale: number;
|
|
1182
|
-
font:
|
|
1182
|
+
font: string;
|
|
1183
1183
|
teamHomeShortname: string;
|
|
1184
1184
|
teamGuestShortname: string;
|
|
1185
1185
|
teamHomeBackgroundColor: string;
|
|
@@ -1226,7 +1226,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1226
1226
|
currentPeriodLength: number;
|
|
1227
1227
|
currentPeriod: number;
|
|
1228
1228
|
schedule?: string | undefined;
|
|
1229
|
-
font?:
|
|
1229
|
+
font?: string | undefined;
|
|
1230
1230
|
}>, z.ZodObject<{
|
|
1231
1231
|
id: z.ZodNumber;
|
|
1232
1232
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
@@ -1262,7 +1262,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1262
1262
|
footerText: z.ZodOptional<z.ZodString>;
|
|
1263
1263
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
1264
1264
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
1265
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
1265
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
1266
1266
|
}, "strip", z.ZodTypeAny, {
|
|
1267
1267
|
name: "baseballScoreBoard";
|
|
1268
1268
|
enabled: 0 | 1;
|
|
@@ -1275,7 +1275,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1275
1275
|
pos_y: number;
|
|
1276
1276
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
1277
1277
|
scale: number;
|
|
1278
|
-
font:
|
|
1278
|
+
font: string;
|
|
1279
1279
|
teamHomeShortname: string;
|
|
1280
1280
|
teamGuestShortname: string;
|
|
1281
1281
|
teamHomeBackgroundColor: string;
|
|
@@ -1330,7 +1330,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1330
1330
|
balls: number;
|
|
1331
1331
|
strikes: number;
|
|
1332
1332
|
schedule?: string | undefined;
|
|
1333
|
-
font?:
|
|
1333
|
+
font?: string | undefined;
|
|
1334
1334
|
footerImgPath?: string | undefined;
|
|
1335
1335
|
footerText?: string | undefined;
|
|
1336
1336
|
footerBackgroundColor?: string | undefined;
|
|
@@ -1359,7 +1359,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1359
1359
|
footerText: z.ZodOptional<z.ZodString>;
|
|
1360
1360
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
1361
1361
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
1362
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
1362
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
1363
1363
|
}, "strip", z.ZodTypeAny, {
|
|
1364
1364
|
name: "myBallBaseballWidgets";
|
|
1365
1365
|
enabled: 0 | 1;
|
|
@@ -1369,7 +1369,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1369
1369
|
cameraList: number[];
|
|
1370
1370
|
zIndex: number;
|
|
1371
1371
|
scale: number;
|
|
1372
|
-
font:
|
|
1372
|
+
font: string;
|
|
1373
1373
|
teamHomeBackgroundColor: string;
|
|
1374
1374
|
teamGuestBackgroundColor: string;
|
|
1375
1375
|
teamHomeTextColor: string;
|
|
@@ -1405,7 +1405,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1405
1405
|
homeLogoPath: string;
|
|
1406
1406
|
guestLogoPath: string;
|
|
1407
1407
|
schedule?: string | undefined;
|
|
1408
|
-
font?:
|
|
1408
|
+
font?: string | undefined;
|
|
1409
1409
|
footerImgPath?: string | undefined;
|
|
1410
1410
|
footerText?: string | undefined;
|
|
1411
1411
|
footerBackgroundColor?: string | undefined;
|
|
@@ -1434,7 +1434,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1434
1434
|
teamGuestCurrentScore: z.ZodNumber;
|
|
1435
1435
|
scoreVisible: z.ZodBoolean;
|
|
1436
1436
|
description: z.ZodString;
|
|
1437
|
-
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
1437
|
+
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
1438
1438
|
scoreFont: z.ZodLiteral<"classic">;
|
|
1439
1439
|
}, "strip", z.ZodTypeAny, {
|
|
1440
1440
|
name: "scoreOverview";
|
|
@@ -1460,7 +1460,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1460
1460
|
teamGuestName: string;
|
|
1461
1461
|
scoreVisible: boolean;
|
|
1462
1462
|
description: string;
|
|
1463
|
-
textFont:
|
|
1463
|
+
textFont: string;
|
|
1464
1464
|
scoreFont: "classic";
|
|
1465
1465
|
}, {
|
|
1466
1466
|
name: "scoreOverview";
|
|
@@ -1487,7 +1487,7 @@ export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObjec
|
|
|
1487
1487
|
scoreVisible: boolean;
|
|
1488
1488
|
description: string;
|
|
1489
1489
|
scoreFont: "classic";
|
|
1490
|
-
textFont?:
|
|
1490
|
+
textFont?: string | undefined;
|
|
1491
1491
|
}>]>;
|
|
1492
1492
|
export type TService = z.infer<typeof servicesSchema>;
|
|
1493
1493
|
export declare const serviceListSchema: z.ZodObject<{
|
|
@@ -2636,7 +2636,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2636
2636
|
timeIsRunning: z.ZodBoolean;
|
|
2637
2637
|
currentPeriodLength: z.ZodNumber;
|
|
2638
2638
|
currentPeriod: z.ZodNumber;
|
|
2639
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
2639
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
2640
2640
|
}, "strip", z.ZodTypeAny, {
|
|
2641
2641
|
name: "scoreBoard";
|
|
2642
2642
|
enabled: 0 | 1;
|
|
@@ -2649,7 +2649,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2649
2649
|
pos_y: number;
|
|
2650
2650
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
2651
2651
|
scale: number;
|
|
2652
|
-
font:
|
|
2652
|
+
font: string;
|
|
2653
2653
|
teamHomeShortname: string;
|
|
2654
2654
|
teamGuestShortname: string;
|
|
2655
2655
|
teamHomeBackgroundColor: string;
|
|
@@ -2696,7 +2696,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2696
2696
|
currentPeriodLength: number;
|
|
2697
2697
|
currentPeriod: number;
|
|
2698
2698
|
schedule?: string | undefined;
|
|
2699
|
-
font?:
|
|
2699
|
+
font?: string | undefined;
|
|
2700
2700
|
}>, z.ZodObject<{
|
|
2701
2701
|
id: z.ZodNumber;
|
|
2702
2702
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
@@ -2732,7 +2732,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2732
2732
|
footerText: z.ZodOptional<z.ZodString>;
|
|
2733
2733
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
2734
2734
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
2735
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
2735
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
2736
2736
|
}, "strip", z.ZodTypeAny, {
|
|
2737
2737
|
name: "baseballScoreBoard";
|
|
2738
2738
|
enabled: 0 | 1;
|
|
@@ -2745,7 +2745,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2745
2745
|
pos_y: number;
|
|
2746
2746
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
2747
2747
|
scale: number;
|
|
2748
|
-
font:
|
|
2748
|
+
font: string;
|
|
2749
2749
|
teamHomeShortname: string;
|
|
2750
2750
|
teamGuestShortname: string;
|
|
2751
2751
|
teamHomeBackgroundColor: string;
|
|
@@ -2800,7 +2800,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2800
2800
|
balls: number;
|
|
2801
2801
|
strikes: number;
|
|
2802
2802
|
schedule?: string | undefined;
|
|
2803
|
-
font?:
|
|
2803
|
+
font?: string | undefined;
|
|
2804
2804
|
footerImgPath?: string | undefined;
|
|
2805
2805
|
footerText?: string | undefined;
|
|
2806
2806
|
footerBackgroundColor?: string | undefined;
|
|
@@ -2829,7 +2829,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2829
2829
|
footerText: z.ZodOptional<z.ZodString>;
|
|
2830
2830
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
2831
2831
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
2832
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
2832
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
2833
2833
|
}, "strip", z.ZodTypeAny, {
|
|
2834
2834
|
name: "myBallBaseballWidgets";
|
|
2835
2835
|
enabled: 0 | 1;
|
|
@@ -2839,7 +2839,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2839
2839
|
cameraList: number[];
|
|
2840
2840
|
zIndex: number;
|
|
2841
2841
|
scale: number;
|
|
2842
|
-
font:
|
|
2842
|
+
font: string;
|
|
2843
2843
|
teamHomeBackgroundColor: string;
|
|
2844
2844
|
teamGuestBackgroundColor: string;
|
|
2845
2845
|
teamHomeTextColor: string;
|
|
@@ -2875,7 +2875,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2875
2875
|
homeLogoPath: string;
|
|
2876
2876
|
guestLogoPath: string;
|
|
2877
2877
|
schedule?: string | undefined;
|
|
2878
|
-
font?:
|
|
2878
|
+
font?: string | undefined;
|
|
2879
2879
|
footerImgPath?: string | undefined;
|
|
2880
2880
|
footerText?: string | undefined;
|
|
2881
2881
|
footerBackgroundColor?: string | undefined;
|
|
@@ -2904,7 +2904,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2904
2904
|
teamGuestCurrentScore: z.ZodNumber;
|
|
2905
2905
|
scoreVisible: z.ZodBoolean;
|
|
2906
2906
|
description: z.ZodString;
|
|
2907
|
-
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
2907
|
+
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
2908
2908
|
scoreFont: z.ZodLiteral<"classic">;
|
|
2909
2909
|
}, "strip", z.ZodTypeAny, {
|
|
2910
2910
|
name: "scoreOverview";
|
|
@@ -2930,7 +2930,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2930
2930
|
teamGuestName: string;
|
|
2931
2931
|
scoreVisible: boolean;
|
|
2932
2932
|
description: string;
|
|
2933
|
-
textFont:
|
|
2933
|
+
textFont: string;
|
|
2934
2934
|
scoreFont: "classic";
|
|
2935
2935
|
}, {
|
|
2936
2936
|
name: "scoreOverview";
|
|
@@ -2957,7 +2957,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
2957
2957
|
scoreVisible: boolean;
|
|
2958
2958
|
description: string;
|
|
2959
2959
|
scoreFont: "classic";
|
|
2960
|
-
textFont?:
|
|
2960
|
+
textFont?: string | undefined;
|
|
2961
2961
|
}>]>, "many">;
|
|
2962
2962
|
}, "strip", z.ZodTypeAny, {
|
|
2963
2963
|
services: ({
|
|
@@ -3263,7 +3263,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3263
3263
|
pos_y: number;
|
|
3264
3264
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
3265
3265
|
scale: number;
|
|
3266
|
-
font:
|
|
3266
|
+
font: string;
|
|
3267
3267
|
teamHomeShortname: string;
|
|
3268
3268
|
teamGuestShortname: string;
|
|
3269
3269
|
teamHomeBackgroundColor: string;
|
|
@@ -3293,7 +3293,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3293
3293
|
pos_y: number;
|
|
3294
3294
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
3295
3295
|
scale: number;
|
|
3296
|
-
font:
|
|
3296
|
+
font: string;
|
|
3297
3297
|
teamHomeShortname: string;
|
|
3298
3298
|
teamGuestShortname: string;
|
|
3299
3299
|
teamHomeBackgroundColor: string;
|
|
@@ -3326,7 +3326,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3326
3326
|
cameraList: number[];
|
|
3327
3327
|
zIndex: number;
|
|
3328
3328
|
scale: number;
|
|
3329
|
-
font:
|
|
3329
|
+
font: string;
|
|
3330
3330
|
teamHomeBackgroundColor: string;
|
|
3331
3331
|
teamGuestBackgroundColor: string;
|
|
3332
3332
|
teamHomeTextColor: string;
|
|
@@ -3366,7 +3366,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3366
3366
|
teamGuestName: string;
|
|
3367
3367
|
scoreVisible: boolean;
|
|
3368
3368
|
description: string;
|
|
3369
|
-
textFont:
|
|
3369
|
+
textFont: string;
|
|
3370
3370
|
scoreFont: "classic";
|
|
3371
3371
|
})[];
|
|
3372
3372
|
}, {
|
|
@@ -3690,7 +3690,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3690
3690
|
currentPeriodLength: number;
|
|
3691
3691
|
currentPeriod: number;
|
|
3692
3692
|
schedule?: string | undefined;
|
|
3693
|
-
font?:
|
|
3693
|
+
font?: string | undefined;
|
|
3694
3694
|
} | {
|
|
3695
3695
|
name: "baseballScoreBoard";
|
|
3696
3696
|
enabled: 0 | 1;
|
|
@@ -3722,7 +3722,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3722
3722
|
balls: number;
|
|
3723
3723
|
strikes: number;
|
|
3724
3724
|
schedule?: string | undefined;
|
|
3725
|
-
font?:
|
|
3725
|
+
font?: string | undefined;
|
|
3726
3726
|
footerImgPath?: string | undefined;
|
|
3727
3727
|
footerText?: string | undefined;
|
|
3728
3728
|
footerBackgroundColor?: string | undefined;
|
|
@@ -3747,7 +3747,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3747
3747
|
homeLogoPath: string;
|
|
3748
3748
|
guestLogoPath: string;
|
|
3749
3749
|
schedule?: string | undefined;
|
|
3750
|
-
font?:
|
|
3750
|
+
font?: string | undefined;
|
|
3751
3751
|
footerImgPath?: string | undefined;
|
|
3752
3752
|
footerText?: string | undefined;
|
|
3753
3753
|
footerBackgroundColor?: string | undefined;
|
|
@@ -3777,7 +3777,7 @@ export declare const serviceListSchema: z.ZodObject<{
|
|
|
3777
3777
|
scoreVisible: boolean;
|
|
3778
3778
|
description: string;
|
|
3779
3779
|
scoreFont: "classic";
|
|
3780
|
-
textFont?:
|
|
3780
|
+
textFont?: string | undefined;
|
|
3781
3781
|
})[];
|
|
3782
3782
|
}>;
|
|
3783
3783
|
export type TServiceList = z.infer<typeof serviceListSchema>;
|
|
@@ -4103,7 +4103,7 @@ export declare const isScoreBoard: (service: TService) => service is {
|
|
|
4103
4103
|
pos_y: number;
|
|
4104
4104
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
4105
4105
|
scale: number;
|
|
4106
|
-
font:
|
|
4106
|
+
font: string;
|
|
4107
4107
|
teamHomeShortname: string;
|
|
4108
4108
|
teamGuestShortname: string;
|
|
4109
4109
|
teamHomeBackgroundColor: string;
|
|
@@ -4135,7 +4135,7 @@ export declare const isBaseballScoreBoard: (service: TService) => service is {
|
|
|
4135
4135
|
pos_y: number;
|
|
4136
4136
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
4137
4137
|
scale: number;
|
|
4138
|
-
font:
|
|
4138
|
+
font: string;
|
|
4139
4139
|
teamHomeShortname: string;
|
|
4140
4140
|
teamGuestShortname: string;
|
|
4141
4141
|
teamHomeBackgroundColor: string;
|
|
@@ -4170,7 +4170,7 @@ export declare const isBaseballScoreBoardAutomatic: (service: TService) => servi
|
|
|
4170
4170
|
cameraList: number[];
|
|
4171
4171
|
zIndex: number;
|
|
4172
4172
|
scale: number;
|
|
4173
|
-
font:
|
|
4173
|
+
font: string;
|
|
4174
4174
|
teamHomeBackgroundColor: string;
|
|
4175
4175
|
teamGuestBackgroundColor: string;
|
|
4176
4176
|
teamHomeTextColor: string;
|
|
@@ -4212,7 +4212,7 @@ export declare const isScoreOverview: (service: TService) => service is {
|
|
|
4212
4212
|
teamGuestName: string;
|
|
4213
4213
|
scoreVisible: boolean;
|
|
4214
4214
|
description: string;
|
|
4215
|
-
textFont:
|
|
4215
|
+
textFont: string;
|
|
4216
4216
|
scoreFont: "classic";
|
|
4217
4217
|
};
|
|
4218
4218
|
export type TFileType = 'image' | 'font';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sportFontSchema: z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
2
|
+
export declare const sportFontSchema: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>;
|
|
3
3
|
export declare const scoreBoardSchema: z.ZodObject<{
|
|
4
4
|
id: z.ZodNumber;
|
|
5
5
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
@@ -29,7 +29,7 @@ export declare const scoreBoardSchema: z.ZodObject<{
|
|
|
29
29
|
timeIsRunning: z.ZodBoolean;
|
|
30
30
|
currentPeriodLength: z.ZodNumber;
|
|
31
31
|
currentPeriod: z.ZodNumber;
|
|
32
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
32
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
name: "scoreBoard";
|
|
35
35
|
enabled: 0 | 1;
|
|
@@ -42,7 +42,7 @@ export declare const scoreBoardSchema: z.ZodObject<{
|
|
|
42
42
|
pos_y: number;
|
|
43
43
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
44
44
|
scale: number;
|
|
45
|
-
font:
|
|
45
|
+
font: string;
|
|
46
46
|
teamHomeShortname: string;
|
|
47
47
|
teamGuestShortname: string;
|
|
48
48
|
teamHomeBackgroundColor: string;
|
|
@@ -89,7 +89,7 @@ export declare const scoreBoardSchema: z.ZodObject<{
|
|
|
89
89
|
currentPeriodLength: number;
|
|
90
90
|
currentPeriod: number;
|
|
91
91
|
schedule?: string | undefined;
|
|
92
|
-
font?:
|
|
92
|
+
font?: string | undefined;
|
|
93
93
|
}>;
|
|
94
94
|
export declare const baseballScoreBoardSchema: z.ZodObject<{
|
|
95
95
|
id: z.ZodNumber;
|
|
@@ -126,7 +126,7 @@ export declare const baseballScoreBoardSchema: z.ZodObject<{
|
|
|
126
126
|
footerText: z.ZodOptional<z.ZodString>;
|
|
127
127
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
128
128
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
129
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
129
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
131
|
name: "baseballScoreBoard";
|
|
132
132
|
enabled: 0 | 1;
|
|
@@ -139,7 +139,7 @@ export declare const baseballScoreBoardSchema: z.ZodObject<{
|
|
|
139
139
|
pos_y: number;
|
|
140
140
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
141
141
|
scale: number;
|
|
142
|
-
font:
|
|
142
|
+
font: string;
|
|
143
143
|
teamHomeShortname: string;
|
|
144
144
|
teamGuestShortname: string;
|
|
145
145
|
teamHomeBackgroundColor: string;
|
|
@@ -194,7 +194,7 @@ export declare const baseballScoreBoardSchema: z.ZodObject<{
|
|
|
194
194
|
balls: number;
|
|
195
195
|
strikes: number;
|
|
196
196
|
schedule?: string | undefined;
|
|
197
|
-
font?:
|
|
197
|
+
font?: string | undefined;
|
|
198
198
|
footerImgPath?: string | undefined;
|
|
199
199
|
footerText?: string | undefined;
|
|
200
200
|
footerBackgroundColor?: string | undefined;
|
|
@@ -224,7 +224,7 @@ export declare const baseballScoreBoardAutomaticSchema: z.ZodObject<{
|
|
|
224
224
|
footerText: z.ZodOptional<z.ZodString>;
|
|
225
225
|
footerBackgroundColor: z.ZodOptional<z.ZodString>;
|
|
226
226
|
footerTextColor: z.ZodOptional<z.ZodString>;
|
|
227
|
-
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
227
|
+
font: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
228
228
|
}, "strip", z.ZodTypeAny, {
|
|
229
229
|
name: "myBallBaseballWidgets";
|
|
230
230
|
enabled: 0 | 1;
|
|
@@ -234,7 +234,7 @@ export declare const baseballScoreBoardAutomaticSchema: z.ZodObject<{
|
|
|
234
234
|
cameraList: number[];
|
|
235
235
|
zIndex: number;
|
|
236
236
|
scale: number;
|
|
237
|
-
font:
|
|
237
|
+
font: string;
|
|
238
238
|
teamHomeBackgroundColor: string;
|
|
239
239
|
teamGuestBackgroundColor: string;
|
|
240
240
|
teamHomeTextColor: string;
|
|
@@ -270,7 +270,7 @@ export declare const baseballScoreBoardAutomaticSchema: z.ZodObject<{
|
|
|
270
270
|
homeLogoPath: string;
|
|
271
271
|
guestLogoPath: string;
|
|
272
272
|
schedule?: string | undefined;
|
|
273
|
-
font?:
|
|
273
|
+
font?: string | undefined;
|
|
274
274
|
footerImgPath?: string | undefined;
|
|
275
275
|
footerText?: string | undefined;
|
|
276
276
|
footerBackgroundColor?: string | undefined;
|
|
@@ -300,7 +300,7 @@ export declare const scoreOverviewSchema: z.ZodObject<{
|
|
|
300
300
|
teamGuestCurrentScore: z.ZodNumber;
|
|
301
301
|
scoreVisible: z.ZodBoolean;
|
|
302
302
|
description: z.ZodString;
|
|
303
|
-
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.
|
|
303
|
+
textFont: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodType<string, z.ZodTypeDef, string>]>>;
|
|
304
304
|
scoreFont: z.ZodLiteral<"classic">;
|
|
305
305
|
}, "strip", z.ZodTypeAny, {
|
|
306
306
|
name: "scoreOverview";
|
|
@@ -326,7 +326,7 @@ export declare const scoreOverviewSchema: z.ZodObject<{
|
|
|
326
326
|
teamGuestName: string;
|
|
327
327
|
scoreVisible: boolean;
|
|
328
328
|
description: string;
|
|
329
|
-
textFont:
|
|
329
|
+
textFont: string;
|
|
330
330
|
scoreFont: "classic";
|
|
331
331
|
}, {
|
|
332
332
|
name: "scoreOverview";
|
|
@@ -353,5 +353,5 @@ export declare const scoreOverviewSchema: z.ZodObject<{
|
|
|
353
353
|
scoreVisible: boolean;
|
|
354
354
|
description: string;
|
|
355
355
|
scoreFont: "classic";
|
|
356
|
-
textFont?:
|
|
356
|
+
textFont?: string | undefined;
|
|
357
357
|
}>;
|