camstreamerlib 4.0.0-beta.36 → 4.0.0-beta.37
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 +15 -15
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +17 -17
- package/cjs/types/CamOverlayAPI/accuweatherSchema.js +7 -7
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.js +5 -5
- package/cjs/types/CamOverlayAPI/imagesSchema.js +4 -4
- package/cjs/types/CamOverlayAPI/index.js +1 -1
- package/cjs/types/CamOverlayAPI/infotickerSchema.js +6 -6
- package/cjs/types/CamOverlayAPI/pipSchema.js +4 -4
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.js +4 -4
- package/cjs/types/CamOverlayAPI/ptzSchema.js +4 -4
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.js +8 -8
- package/cjs/types/CamOverlayAPI/screenSharingSchema.js +3 -3
- package/cjs/types/CamOverlayAPI/{widgetCommonTypes.js → serviceCommonTypes.js} +8 -4
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.js +3 -3
- package/esm/CamOverlayAPI.js +16 -16
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +16 -16
- package/esm/types/CamOverlayAPI/accuweatherSchema.js +3 -3
- package/esm/types/CamOverlayAPI/customGraphicsSchema.js +3 -3
- package/esm/types/CamOverlayAPI/imagesSchema.js +3 -3
- package/esm/types/CamOverlayAPI/index.js +1 -1
- package/esm/types/CamOverlayAPI/infotickerSchema.js +3 -3
- package/esm/types/CamOverlayAPI/pipSchema.js +3 -3
- package/esm/types/CamOverlayAPI/ptzCompassSchema.js +3 -3
- package/esm/types/CamOverlayAPI/ptzSchema.js +3 -3
- package/esm/types/CamOverlayAPI/scoreBoardSchema.js +5 -5
- package/esm/types/CamOverlayAPI/screenSharingSchema.js +2 -2
- package/esm/types/CamOverlayAPI/{widgetCommonTypes.js → serviceCommonTypes.js} +7 -3
- package/esm/types/CamOverlayAPI/webCameraSharingSchema.js +2 -2
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +821 -5
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +18 -18
- package/types/types/CamOverlayAPI/index.d.ts +1 -1
- package/types/types/CamOverlayAPI/{widgetCommonTypes.d.ts → serviceCommonTypes.d.ts} +6 -2
|
@@ -8,7 +8,7 @@ import { pipSchema } from './pipSchema';
|
|
|
8
8
|
import { customGraphicsSchema } from './customGraphicsSchema';
|
|
9
9
|
import { screenSharingSchema } from './screenSharingSchema';
|
|
10
10
|
import { webCameraSharingSchema } from './webCameraSharingSchema';
|
|
11
|
-
import { overlaySchema } from './
|
|
11
|
+
import { overlaySchema } from './serviceCommonTypes';
|
|
12
12
|
import { baseballScoreBoardAutomaticSchema, baseballScoreBoardSchema, scoreBoardSchema, scoreOverviewSchema } from './scoreBoardSchema';
|
|
13
13
|
export declare const WSResponseSchema: z.ZodObject<{
|
|
14
14
|
status: z.ZodNumber;
|
|
@@ -21,7 +21,7 @@ export declare const WSResponseSchema: z.ZodObject<{
|
|
|
21
21
|
message: string;
|
|
22
22
|
}>;
|
|
23
23
|
export type TWSResponse = z.infer<typeof WSResponseSchema>;
|
|
24
|
-
export declare const
|
|
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>]>;
|
|
27
27
|
automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
|
|
@@ -1489,8 +1489,8 @@ export declare const widgetsSchema: z.ZodDiscriminatedUnion<"name", [z.ZodObject
|
|
|
1489
1489
|
scoreFont: "classic";
|
|
1490
1490
|
textFont?: "classic" | (string & {}) | undefined;
|
|
1491
1491
|
}>]>;
|
|
1492
|
-
export type
|
|
1493
|
-
export declare const
|
|
1492
|
+
export type TService = z.infer<typeof servicesSchema>;
|
|
1493
|
+
export declare const serviceListSchema: z.ZodObject<{
|
|
1494
1494
|
services: z.ZodArray<z.ZodDiscriminatedUnion<"name", [z.ZodObject<{
|
|
1495
1495
|
id: z.ZodNumber;
|
|
1496
1496
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
@@ -3780,9 +3780,9 @@ export declare const widgetListSchema: z.ZodObject<{
|
|
|
3780
3780
|
textFont?: "classic" | (string & {}) | undefined;
|
|
3781
3781
|
})[];
|
|
3782
3782
|
}>;
|
|
3783
|
-
export type
|
|
3783
|
+
export type TServiceList = z.infer<typeof serviceListSchema>;
|
|
3784
3784
|
export type TAccuweather = z.infer<typeof accuweatherSchema>;
|
|
3785
|
-
export declare const isAccuweather: (
|
|
3785
|
+
export declare const isAccuweather: (service: TService) => service is {
|
|
3786
3786
|
name: "accuweather";
|
|
3787
3787
|
enabled: 0 | 1;
|
|
3788
3788
|
id: number;
|
|
@@ -3811,7 +3811,7 @@ export declare const isAccuweather: (widget: TWidget) => widget is {
|
|
|
3811
3811
|
zIndex?: number | undefined;
|
|
3812
3812
|
};
|
|
3813
3813
|
export type TCustomGraphics = z.infer<typeof customGraphicsSchema>;
|
|
3814
|
-
export declare const isCustomGraphics: (
|
|
3814
|
+
export declare const isCustomGraphics: (service: TService) => service is {
|
|
3815
3815
|
name: "customGraphics";
|
|
3816
3816
|
enabled: 0 | 1;
|
|
3817
3817
|
id: number;
|
|
@@ -3893,7 +3893,7 @@ export declare const isCustomGraphics: (widget: TWidget) => widget is {
|
|
|
3893
3893
|
zIndex?: number | undefined;
|
|
3894
3894
|
};
|
|
3895
3895
|
export type TImages = z.infer<typeof imagesSchema>;
|
|
3896
|
-
export declare const isImages: (
|
|
3896
|
+
export declare const isImages: (service: TService) => service is {
|
|
3897
3897
|
name: "images";
|
|
3898
3898
|
enabled: 0 | 1;
|
|
3899
3899
|
id: number;
|
|
@@ -3919,7 +3919,7 @@ export declare const isImages: (widget: TWidget) => widget is {
|
|
|
3919
3919
|
zIndex?: number | undefined;
|
|
3920
3920
|
};
|
|
3921
3921
|
export type TInfoticker = z.infer<typeof infoTickerSchema>;
|
|
3922
|
-
export declare const isInfoticker: (
|
|
3922
|
+
export declare const isInfoticker: (service: TService) => service is {
|
|
3923
3923
|
name: "infoticker";
|
|
3924
3924
|
enabled: 0 | 1;
|
|
3925
3925
|
id: number;
|
|
@@ -3952,7 +3952,7 @@ export declare const isInfoticker: (widget: TWidget) => widget is {
|
|
|
3952
3952
|
zIndex?: number | undefined;
|
|
3953
3953
|
};
|
|
3954
3954
|
export type TPip = z.infer<typeof pipSchema>;
|
|
3955
|
-
export declare const isPip: (
|
|
3955
|
+
export declare const isPip: (service: TService) => service is {
|
|
3956
3956
|
name: "pip";
|
|
3957
3957
|
compression: number;
|
|
3958
3958
|
enabled: 0 | 1;
|
|
@@ -3992,7 +3992,7 @@ export declare const isPip: (widget: TWidget) => widget is {
|
|
|
3992
3992
|
zIndex?: number | undefined;
|
|
3993
3993
|
};
|
|
3994
3994
|
export type TPtzCompass = z.infer<typeof ptzCompassSchema>;
|
|
3995
|
-
export declare const isPtzCompass: (
|
|
3995
|
+
export declare const isPtzCompass: (service: TService) => service is {
|
|
3996
3996
|
type: "map" | "compass" | "image";
|
|
3997
3997
|
name: "ptzCompass";
|
|
3998
3998
|
enabled: 0 | 1;
|
|
@@ -4024,7 +4024,7 @@ export declare const isPtzCompass: (widget: TWidget) => widget is {
|
|
|
4024
4024
|
generalAddress?: string | undefined;
|
|
4025
4025
|
};
|
|
4026
4026
|
export type TPtz = z.infer<typeof ptzSchema>;
|
|
4027
|
-
export declare const isPtz: (
|
|
4027
|
+
export declare const isPtz: (service: TService) => service is {
|
|
4028
4028
|
name: "ptz";
|
|
4029
4029
|
enabled: 0 | 1;
|
|
4030
4030
|
id: number;
|
|
@@ -4051,7 +4051,7 @@ export declare const isPtz: (widget: TWidget) => widget is {
|
|
|
4051
4051
|
zIndex?: number | undefined;
|
|
4052
4052
|
};
|
|
4053
4053
|
export type TScreenSharing = z.infer<typeof screenSharingSchema>;
|
|
4054
|
-
export declare const isScreenSharing: (
|
|
4054
|
+
export declare const isScreenSharing: (service: TService) => service is {
|
|
4055
4055
|
name: "screenSharing";
|
|
4056
4056
|
enabled: 0 | 1;
|
|
4057
4057
|
id: number;
|
|
@@ -4071,7 +4071,7 @@ export declare const isScreenSharing: (widget: TWidget) => widget is {
|
|
|
4071
4071
|
zIndex?: number | undefined;
|
|
4072
4072
|
};
|
|
4073
4073
|
export type TWebCameraSharing = z.infer<typeof webCameraSharingSchema>;
|
|
4074
|
-
export declare const isWebCameraSharing: (
|
|
4074
|
+
export declare const isWebCameraSharing: (service: TService) => service is {
|
|
4075
4075
|
name: "web_camera";
|
|
4076
4076
|
enabled: 0 | 1;
|
|
4077
4077
|
id: number;
|
|
@@ -4091,7 +4091,7 @@ export declare const isWebCameraSharing: (widget: TWidget) => widget is {
|
|
|
4091
4091
|
zIndex?: number | undefined;
|
|
4092
4092
|
};
|
|
4093
4093
|
export type TScoreBoard = z.infer<typeof scoreBoardSchema>;
|
|
4094
|
-
export declare const isScoreBoard: (
|
|
4094
|
+
export declare const isScoreBoard: (service: TService) => service is {
|
|
4095
4095
|
name: "scoreBoard";
|
|
4096
4096
|
enabled: 0 | 1;
|
|
4097
4097
|
id: number;
|
|
@@ -4123,7 +4123,7 @@ export declare const isScoreBoard: (widget: TWidget) => widget is {
|
|
|
4123
4123
|
schedule?: string | undefined;
|
|
4124
4124
|
};
|
|
4125
4125
|
export type TBaseballScoreBoard = z.infer<typeof baseballScoreBoardSchema>;
|
|
4126
|
-
export declare const isBaseballScoreBoard: (
|
|
4126
|
+
export declare const isBaseballScoreBoard: (service: TService) => service is {
|
|
4127
4127
|
name: "baseballScoreBoard";
|
|
4128
4128
|
enabled: 0 | 1;
|
|
4129
4129
|
id: number;
|
|
@@ -4161,7 +4161,7 @@ export declare const isBaseballScoreBoard: (widget: TWidget) => widget is {
|
|
|
4161
4161
|
footerTextColor?: string | undefined;
|
|
4162
4162
|
};
|
|
4163
4163
|
export type TBaseballScoreBoardAutomatic = z.infer<typeof baseballScoreBoardAutomaticSchema>;
|
|
4164
|
-
export declare const isBaseballScoreBoardAutomatic: (
|
|
4164
|
+
export declare const isBaseballScoreBoardAutomatic: (service: TService) => service is {
|
|
4165
4165
|
name: "myBallBaseballWidgets";
|
|
4166
4166
|
enabled: 0 | 1;
|
|
4167
4167
|
id: number;
|
|
@@ -4188,7 +4188,7 @@ export declare const isBaseballScoreBoardAutomatic: (widget: TWidget) => widget
|
|
|
4188
4188
|
footerTextColor?: string | undefined;
|
|
4189
4189
|
};
|
|
4190
4190
|
export type TScoreOverview = z.infer<typeof scoreOverviewSchema>;
|
|
4191
|
-
export declare const isScoreOverview: (
|
|
4191
|
+
export declare const isScoreOverview: (service: TService) => service is {
|
|
4192
4192
|
name: "scoreOverview";
|
|
4193
4193
|
enabled: 0 | 1;
|
|
4194
4194
|
id: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const serviceNames: {
|
|
3
3
|
readonly accuweather: "accuweather";
|
|
4
4
|
readonly infoticker: "infoticker";
|
|
5
5
|
readonly customGraphics: "customGraphics";
|
|
@@ -9,6 +9,10 @@ export declare const allowedWidgetNames: {
|
|
|
9
9
|
readonly pip: "pip";
|
|
10
10
|
readonly screenSharing: "screenSharing";
|
|
11
11
|
readonly web_camera: "web_camera";
|
|
12
|
+
readonly scoreBoard: "scoreBoard";
|
|
13
|
+
readonly baseballScoreBoard: "baseballScoreBoard";
|
|
14
|
+
readonly myBallBaseballWidgets: "myBallBaseballWidgets";
|
|
15
|
+
readonly scoreOverview: "scoreOverview";
|
|
12
16
|
};
|
|
13
17
|
export declare const coordinateSystemSchema: 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">]>;
|
|
14
18
|
export type TCoordinates = z.infer<typeof coordinateSystemSchema> | '';
|
|
@@ -18,7 +22,7 @@ export declare const fontSchema: z.ZodUnion<[z.ZodLiteral<"classic">, z.ZodLiter
|
|
|
18
22
|
export type TFont = z.infer<typeof fontSchema>;
|
|
19
23
|
export declare const weatherUnitSchema: z.ZodUnion<[z.ZodLiteral<"Metric">, z.ZodLiteral<"Imperial">]>;
|
|
20
24
|
export type TWeatherUnit = z.infer<typeof weatherUnitSchema>;
|
|
21
|
-
export declare const
|
|
25
|
+
export declare const serviceCommonSchema: z.ZodObject<{
|
|
22
26
|
id: z.ZodNumber;
|
|
23
27
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
24
28
|
automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>;
|