camstreamerlib 4.0.0-beta.37 → 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.
Files changed (79) hide show
  1. package/README.md +38 -27
  2. package/cjs/CamOverlayAPI.js +42 -75
  3. package/cjs/CamScripterAPI.js +30 -24
  4. package/cjs/CamStreamerAPI.js +30 -33
  5. package/cjs/CamSwitcherAPI.js +57 -52
  6. package/cjs/PlaneTrackerAPI.js +55 -66
  7. package/cjs/VapixAPI.js +23 -22
  8. package/cjs/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
  9. package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +4 -14
  10. package/cjs/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
  11. package/cjs/{VapixEvents.js → node/VapixEvents.js} +1 -1
  12. package/cjs/node/events/GenetecAgent.js +5 -27
  13. package/cjs/node/index.js +17 -0
  14. package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +2 -2
  15. package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
  16. package/cjs/types/CamOverlayPainter.js +12 -0
  17. package/cjs/types/CamScripterAPICameraEventsGenerator.js +2 -0
  18. package/cjs/types/CamSwitcherAPI.js +38 -1
  19. package/cjs/types/GenetecAgent.js +31 -0
  20. package/cjs/types/PlaneTrackerAPI.js +277 -0
  21. package/cjs/types/VapixAPI.js +20 -2
  22. package/cjs/types/VapixEvents.js +2 -0
  23. package/esm/CamOverlayAPI.js +43 -76
  24. package/esm/CamScripterAPI.js +30 -24
  25. package/esm/CamStreamerAPI.js +30 -30
  26. package/esm/CamSwitcherAPI.js +58 -53
  27. package/esm/PlaneTrackerAPI.js +56 -67
  28. package/esm/VapixAPI.js +24 -23
  29. package/esm/{CamOverlayDrawingAPI.js → node/CamOverlayDrawingAPI.js} +1 -1
  30. package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Painter.js +1 -11
  31. package/esm/{CamScripterAPICameraEventsGenerator.js → node/CamScripterAPICameraEventsGenerator.js} +1 -1
  32. package/esm/{VapixEvents.js → node/VapixEvents.js} +1 -1
  33. package/esm/node/events/GenetecAgent.js +1 -23
  34. package/esm/node/index.js +10 -0
  35. package/esm/types/CamOverlayAPI/CamOverlayAPI.js +1 -1
  36. package/esm/types/CamOverlayAPI/scoreBoardSchema.js +6 -1
  37. package/esm/types/CamOverlayPainter.js +11 -1
  38. package/esm/types/CamSwitcherAPI.js +38 -1
  39. package/esm/types/GenetecAgent.js +28 -0
  40. package/esm/types/PlaneTrackerAPI.js +276 -1
  41. package/esm/types/VapixAPI.js +19 -1
  42. package/esm/types/VapixEvents.js +1 -0
  43. package/package.json +1 -1
  44. package/types/CamOverlayAPI.d.ts +24 -14
  45. package/types/CamScripterAPI.d.ts +34 -9
  46. package/types/CamStreamerAPI.d.ts +27 -5
  47. package/types/CamSwitcherAPI.d.ts +136 -23
  48. package/types/PlaneTrackerAPI.d.ts +201 -20
  49. package/types/VapixAPI.d.ts +46 -12
  50. package/types/bin/CreatePackage.d.ts +1 -0
  51. package/types/{CamOverlayDrawingAPI.d.ts → node/CamOverlayDrawingAPI.d.ts} +1 -1
  52. package/types/{CamOverlayPainter → node/CamOverlayPainter}/Frame.d.ts +2 -2
  53. package/types/{CamOverlayPainter → node/CamOverlayPainter}/Painter.d.ts +2 -13
  54. package/types/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.d.ts +1 -1
  55. package/types/node/CamScripterAPICameraEventsGenerator.d.ts +31 -0
  56. package/types/node/VapixEvents.d.ts +16 -0
  57. package/types/node/events/GenetecAgent.d.ts +1 -144
  58. package/types/node/index.d.ts +10 -0
  59. package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +38 -38
  60. package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +13 -13
  61. package/types/types/CamOverlayDrawingAPI.d.ts +3 -13
  62. package/types/types/CamOverlayPainter.d.ts +12 -10
  63. package/types/types/CamScripterAPICameraEventsGenerator.d.ts +45 -0
  64. package/types/types/CamStreamerAPI.d.ts +2 -2
  65. package/types/types/CamSwitcherAPI.d.ts +111 -30
  66. package/types/types/GenetecAgent.d.ts +174 -0
  67. package/types/types/PlaneTrackerAPI.d.ts +859 -0
  68. package/types/types/VapixAPI.d.ts +54 -8
  69. package/types/types/VapixEvents.d.ts +15 -0
  70. package/types/types/common.d.ts +1 -0
  71. package/types/CamScripterAPICameraEventsGenerator.d.ts +0 -74
  72. package/types/VapixEvents.d.ts +0 -43
  73. /package/cjs/{CreatePackage.js → bin/CreatePackage.js} +0 -0
  74. /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
  75. /package/cjs/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
  76. /package/esm/{CreatePackage.js → bin/CreatePackage.js} +0 -0
  77. /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/Frame.js +0 -0
  78. /package/esm/{CamOverlayPainter → node/CamOverlayPainter}/ResourceManager.js +0 -0
  79. /package/{types/CreatePackage.d.ts → esm/types/CamScripterAPICameraEventsGenerator.js} +0 -0
@@ -1,146 +1,4 @@
1
- import { z } from 'zod';
2
- declare const cameraGuidsResponseSchema: z.ZodObject<{
3
- Rsp: z.ZodObject<{
4
- Status: z.ZodLiteral<"Ok">;
5
- Result: z.ZodArray<z.ZodObject<{
6
- Guid: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- Guid: string;
9
- }, {
10
- Guid: string;
11
- }>, "many">;
12
- }, "strip", z.ZodTypeAny, {
13
- Status: "Ok";
14
- Result: {
15
- Guid: string;
16
- }[];
17
- }, {
18
- Status: "Ok";
19
- Result: {
20
- Guid: string;
21
- }[];
22
- }>;
23
- }, "strip", z.ZodTypeAny, {
24
- Rsp: {
25
- Status: "Ok";
26
- Result: {
27
- Guid: string;
28
- }[];
29
- };
30
- }, {
31
- Rsp: {
32
- Status: "Ok";
33
- Result: {
34
- Guid: string;
35
- }[];
36
- };
37
- }>;
38
- export type TCameraGuidsResponse = z.infer<typeof cameraGuidsResponseSchema>;
39
- declare const cameraDetailSchema: z.ZodObject<{
40
- Guid: z.ZodOptional<z.ZodString>;
41
- Name: z.ZodOptional<z.ZodString>;
42
- EntityType: z.ZodOptional<z.ZodString>;
43
- }, "strip", z.ZodTypeAny, {
44
- Name?: string | undefined;
45
- Guid?: string | undefined;
46
- EntityType?: string | undefined;
47
- }, {
48
- Name?: string | undefined;
49
- Guid?: string | undefined;
50
- EntityType?: string | undefined;
51
- }>;
52
- declare const cameraDetailsResponseSchema: z.ZodObject<{
53
- Rsp: z.ZodObject<{
54
- Status: z.ZodLiteral<"Ok">;
55
- Result: z.ZodUnion<[z.ZodArray<z.ZodObject<{
56
- Guid: z.ZodOptional<z.ZodString>;
57
- Name: z.ZodOptional<z.ZodString>;
58
- EntityType: z.ZodOptional<z.ZodString>;
59
- }, "strip", z.ZodTypeAny, {
60
- Name?: string | undefined;
61
- Guid?: string | undefined;
62
- EntityType?: string | undefined;
63
- }, {
64
- Name?: string | undefined;
65
- Guid?: string | undefined;
66
- EntityType?: string | undefined;
67
- }>, "many">, z.ZodObject<{
68
- Guid: z.ZodOptional<z.ZodString>;
69
- Name: z.ZodOptional<z.ZodString>;
70
- EntityType: z.ZodOptional<z.ZodString>;
71
- }, "strip", z.ZodTypeAny, {
72
- Name?: string | undefined;
73
- Guid?: string | undefined;
74
- EntityType?: string | undefined;
75
- }, {
76
- Name?: string | undefined;
77
- Guid?: string | undefined;
78
- EntityType?: string | undefined;
79
- }>]>;
80
- }, "strip", z.ZodTypeAny, {
81
- Status: "Ok";
82
- Result: {
83
- Name?: string | undefined;
84
- Guid?: string | undefined;
85
- EntityType?: string | undefined;
86
- } | {
87
- Name?: string | undefined;
88
- Guid?: string | undefined;
89
- EntityType?: string | undefined;
90
- }[];
91
- }, {
92
- Status: "Ok";
93
- Result: {
94
- Name?: string | undefined;
95
- Guid?: string | undefined;
96
- EntityType?: string | undefined;
97
- } | {
98
- Name?: string | undefined;
99
- Guid?: string | undefined;
100
- EntityType?: string | undefined;
101
- }[];
102
- }>;
103
- }, "strip", z.ZodTypeAny, {
104
- Rsp: {
105
- Status: "Ok";
106
- Result: {
107
- Name?: string | undefined;
108
- Guid?: string | undefined;
109
- EntityType?: string | undefined;
110
- } | {
111
- Name?: string | undefined;
112
- Guid?: string | undefined;
113
- EntityType?: string | undefined;
114
- }[];
115
- };
116
- }, {
117
- Rsp: {
118
- Status: "Ok";
119
- Result: {
120
- Name?: string | undefined;
121
- Guid?: string | undefined;
122
- EntityType?: string | undefined;
123
- } | {
124
- Name?: string | undefined;
125
- Guid?: string | undefined;
126
- EntityType?: string | undefined;
127
- }[];
128
- };
129
- }>;
130
- export type TCameraDetailsResponse = z.infer<typeof cameraDetailsResponseSchema>;
131
- export type TCameraDetail = z.infer<typeof cameraDetailSchema>;
132
- export type TParams = Array<'Guid' | 'Name' | 'EntityType'>;
133
- export type TProtocol = 'http' | 'https' | 'https_insecure';
134
- export type GenetecAgentOptions = {
135
- protocol?: TProtocol;
136
- ip?: string;
137
- port?: number;
138
- baseUri?: string;
139
- user?: string;
140
- pass?: string;
141
- appId?: string;
142
- timeout?: number;
143
- };
1
+ import { GenetecAgentOptions, TCameraDetail, TCameraGuidsResponse, TParams } from '../../types/GenetecAgent';
144
2
  export declare class GenetecAgent {
145
3
  private settings;
146
4
  private baseUrl;
@@ -156,4 +14,3 @@ export declare class GenetecAgent {
156
14
  private getTimeStamp;
157
15
  private fetchWithTimeout;
158
16
  }
159
- export {};
@@ -3,3 +3,13 @@ export * from './WsClient';
3
3
  export * from './HttpServer';
4
4
  export * from './events/AxisCameraStationEvents';
5
5
  export * from './events/GenetecAgent';
6
+ export { ResourceManager } from './CamOverlayPainter/ResourceManager';
7
+ export { Painter } from './CamOverlayPainter/Painter';
8
+ export { Frame } from './CamOverlayPainter/Frame';
9
+ export * from '../types/CamOverlayPainter';
10
+ export { CamOverlayDrawingAPI } from './CamOverlayDrawingAPI';
11
+ export * from '../types/CamOverlayDrawingAPI';
12
+ export { CamScripterAPICameraEventsGenerator } from './CamScripterAPICameraEventsGenerator';
13
+ export * from '../types/CamScripterAPICameraEventsGenerator';
14
+ export { VapixEvents } from './VapixEvents';
15
+ export * from '../types/VapixEvents';
@@ -10,7 +10,7 @@ import { screenSharingSchema } from './screenSharingSchema';
10
10
  import { webCameraSharingSchema } from './webCameraSharingSchema';
11
11
  import { overlaySchema } from './serviceCommonTypes';
12
12
  import { baseballScoreBoardAutomaticSchema, baseballScoreBoardSchema, scoreBoardSchema, scoreOverviewSchema } from './scoreBoardSchema';
13
- export declare const WSResponseSchema: z.ZodObject<{
13
+ export declare const wsResponseSchema: z.ZodObject<{
14
14
  status: z.ZodNumber;
15
15
  message: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
@@ -20,7 +20,7 @@ export declare const WSResponseSchema: z.ZodObject<{
20
20
  status: number;
21
21
  message: string;
22
22
  }>;
23
- export type TWSResponse = z.infer<typeof WSResponseSchema>;
23
+ export type TWSResponse = z.infer<typeof wsResponseSchema>;
24
24
  export declare const servicesSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
25
25
  id: z.ZodNumber;
26
26
  enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
@@ -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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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: "classic" | (string & {});
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: "classic" | (string & {});
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: "classic" | (string & {});
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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?: "classic" | (string & {}) | undefined;
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?: "classic" | (string & {}) | undefined;
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?: "classic" | (string & {}) | undefined;
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: "classic" | (string & {});
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: "classic" | (string & {});
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: "classic" | (string & {});
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: "classic" | (string & {});
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
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.ZodIntersection<z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>]>>;
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: "classic" | (string & {});
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?: "classic" | (string & {}) | undefined;
356
+ textFont?: string | undefined;
357
357
  }>;
@@ -26,7 +26,7 @@ export type TErrorResponse = {
26
26
  error: string;
27
27
  call_id?: number;
28
28
  };
29
- export type TService = {
29
+ export type TCoService = {
30
30
  id: number;
31
31
  enabled: number;
32
32
  schedule: string;
@@ -34,8 +34,8 @@ export type TService = {
34
34
  identifier: string;
35
35
  cameraList: number[];
36
36
  };
37
- export type TServiceList = {
38
- services: TService[];
37
+ export type TCoServiceList = {
38
+ services: TCoService[];
39
39
  };
40
40
  export type TAlign = 'A_RIGHT' | 'A_LEFT' | 'A_CENTER';
41
41
  export type TextFit = 'TFM_SCALE' | 'TFM_TRUNCATE' | 'TFM_OVERFLOW';
@@ -46,13 +46,3 @@ export type AsyncMessage = {
46
46
  reject: (reason: Error) => void;
47
47
  sentTimestamp: number;
48
48
  };
49
- export interface CamOverlayDrawingAPI {
50
- on(event: 'open', listener: () => void): this;
51
- on(event: 'close', listener: () => void): this;
52
- on(event: 'error', listener: (err: Error) => void): this;
53
- on(event: 'message', listener: (msg: string) => void): this;
54
- emit(event: 'open'): boolean;
55
- emit(event: 'close'): boolean;
56
- emit(event: 'error', err: Error): boolean;
57
- emit(event: 'message', msg: string): boolean;
58
- }