camstreamerlib 4.0.0-beta.97 → 4.0.1
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 +44 -15
- package/cjs/CamOverlayAPI.d.ts +147 -109
- package/cjs/CamOverlayAPI.js +14 -63
- package/cjs/CamScripterAPI.d.ts +5 -8
- package/cjs/CamScripterAPI.js +11 -29
- package/cjs/CamStreamerAPI.d.ts +2745 -589
- package/cjs/CamStreamerAPI.js +68 -76
- package/cjs/CamSwitcherAPI.d.ts +23 -22
- package/cjs/CamSwitcherAPI.js +30 -88
- package/cjs/PlaneTrackerAPI.d.ts +28 -30
- package/cjs/PlaneTrackerAPI.js +20 -75
- package/cjs/VapixAPI.d.ts +36 -23
- package/cjs/VapixAPI.js +227 -106
- package/cjs/errors/errors.d.ts +11 -5
- package/cjs/errors/errors.js +5 -1
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/cjs/internal/BasicAPI.d.ts +15 -0
- package/cjs/internal/BasicAPI.js +93 -0
- package/cjs/internal/WsEvents.d.ts +1 -0
- package/cjs/internal/WsEvents.js +5 -0
- package/cjs/internal/constants.d.ts +1 -0
- package/cjs/internal/constants.js +2 -1
- package/cjs/internal/convertors.d.ts +6 -0
- package/cjs/internal/convertors.js +115 -0
- package/cjs/internal/transformers.js +8 -8
- package/cjs/internal/types.d.ts +3 -0
- package/cjs/internal/versionCompare.d.ts +2 -2
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.js +54 -11
- package/cjs/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/cjs/types/CamOverlayAPI/htmlOverlaySchema.js +21 -0
- package/cjs/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/index.d.ts +1 -0
- package/cjs/types/CamOverlayAPI/index.js +1 -0
- package/cjs/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/cjs/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/cjs/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/cjs/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/cjs/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/cjs/types/CamScripterAPI.d.ts +0 -11
- package/cjs/types/CamScripterAPI.js +1 -5
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +126 -57
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
- package/cjs/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/cjs/types/CamStreamerAPI/index.d.ts +1 -3
- package/cjs/types/CamStreamerAPI/index.js +1 -3
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/cjs/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +116 -58
- package/cjs/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/cjs/types/CamStreamerAPI/streamsSchema.js +81 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +394 -52
- package/cjs/types/CamStreamerAPI/windySchema.js +9 -1
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +12 -1
- package/cjs/types/CamSwitcherAPI.d.ts +96 -91
- package/cjs/types/CamSwitcherAPI.js +9 -9
- package/cjs/types/GenetecAgent.d.ts +2 -2
- package/cjs/types/PlaneTrackerAPI.d.ts +60 -47
- package/cjs/types/PlaneTrackerAPI.js +5 -2
- package/cjs/types/VapixAPI.d.ts +51 -32
- package/cjs/types/VapixAPI.js +10 -3
- package/cjs/types/common.d.ts +27 -0
- package/cjs/types/common.js +13 -1
- package/cjs/types/ws/CamStreamerEvents.d.ts +110 -77
- package/cjs/types/ws/CamStreamerEvents.js +11 -7
- package/cjs/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/cjs/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/esm/CamOverlayAPI.js +16 -65
- package/esm/CamScripterAPI.js +9 -30
- package/esm/CamStreamerAPI.js +70 -78
- package/esm/CamSwitcherAPI.js +31 -89
- package/esm/PlaneTrackerAPI.js +21 -76
- package/esm/VapixAPI.js +228 -107
- package/esm/errors/errors.js +5 -1
- package/esm/index.js +1 -0
- package/esm/internal/BasicAPI.js +89 -0
- package/esm/internal/WsEvents.js +5 -0
- package/esm/internal/constants.js +1 -0
- package/esm/internal/convertors.js +108 -0
- package/esm/internal/transformers.js +1 -1
- package/esm/types/CamOverlayAPI/CamOverlayAPI.js +47 -10
- package/esm/types/CamOverlayAPI/htmlOverlaySchema.js +18 -0
- package/esm/types/CamOverlayAPI/index.js +1 -0
- package/esm/types/CamOverlayAPI/serviceCommonTypes.js +6 -3
- package/esm/types/CamScripterAPI.js +0 -4
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +109 -41
- package/esm/types/CamStreamerAPI/facebookSchema.js +13 -1
- package/esm/types/CamStreamerAPI/index.js +1 -3
- package/esm/types/CamStreamerAPI/oldStreamSchema.js +1 -1
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +116 -58
- package/esm/types/CamStreamerAPI/streamsSchema.js +75 -0
- package/esm/types/CamStreamerAPI/windySchema.js +9 -1
- package/esm/types/CamStreamerAPI/youtubeSchema.js +12 -1
- package/esm/types/CamSwitcherAPI.js +8 -8
- package/esm/types/PlaneTrackerAPI.js +5 -2
- package/esm/types/VapixAPI.js +9 -2
- package/esm/types/common.js +12 -0
- package/esm/types/ws/CamStreamerEvents.js +11 -7
- package/package.json +4 -4
- package/types/CamOverlayAPI.d.ts +147 -109
- package/types/CamScripterAPI.d.ts +5 -8
- package/types/CamStreamerAPI.d.ts +2745 -589
- package/types/CamSwitcherAPI.d.ts +23 -22
- package/types/PlaneTrackerAPI.d.ts +28 -30
- package/types/VapixAPI.d.ts +36 -23
- package/types/errors/errors.d.ts +11 -5
- package/types/index.d.ts +1 -0
- package/types/internal/BasicAPI.d.ts +15 -0
- package/types/internal/WsEvents.d.ts +1 -0
- package/types/internal/constants.d.ts +1 -0
- package/types/internal/convertors.d.ts +6 -0
- package/types/internal/types.d.ts +3 -0
- package/types/internal/versionCompare.d.ts +2 -2
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +894 -374
- package/types/types/CamOverlayAPI/accuweatherSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +40 -40
- package/types/types/CamOverlayAPI/htmlOverlaySchema.d.ts +81 -0
- package/types/types/CamOverlayAPI/imagesSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/index.d.ts +1 -0
- package/types/types/CamOverlayAPI/infotickerSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/pipSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/ptzCompassSchema.d.ts +10 -10
- package/types/types/CamOverlayAPI/ptzSchema.d.ts +13 -13
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +18 -18
- package/types/types/CamOverlayAPI/screenSharingSchema.d.ts +8 -8
- package/types/types/CamOverlayAPI/serviceCommonTypes.d.ts +17 -16
- package/types/types/CamOverlayAPI/webCameraSharingSchema.d.ts +8 -8
- package/types/types/CamScripterAPI.d.ts +0 -11
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +19642 -3073
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +434 -52
- package/types/types/CamStreamerAPI/index.d.ts +1 -3
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +47 -47
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +430 -219
- package/types/types/CamStreamerAPI/streamsSchema.d.ts +8812 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +394 -52
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +402 -52
- package/types/types/CamSwitcherAPI.d.ts +96 -91
- package/types/types/GenetecAgent.d.ts +2 -2
- package/types/types/PlaneTrackerAPI.d.ts +60 -47
- package/types/types/VapixAPI.d.ts +51 -32
- package/types/types/common.d.ts +27 -0
- package/types/types/ws/CamStreamerEvents.d.ts +110 -77
- package/types/types/ws/CamSwitcherEvents.d.ts +8 -8
- package/types/types/ws/PlaneTrackerEvents.d.ts +3 -3
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/churchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/daCastSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/ibmSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/ibmSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -250
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.js +0 -27
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
- package/cjs/types/CamStreamerAPI/rtmpSchema.js +0 -14
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/sdCardSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/srtSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/srtSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/twitchSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +0 -11
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +0 -11
- package/esm/types/CamStreamerAPI/churchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/daCastSchema.js +0 -5
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +0 -5
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +0 -5
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +0 -5
- package/esm/types/CamStreamerAPI/ibmSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +0 -5
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +0 -5
- package/esm/types/CamStreamerAPI/mpegDvbSchema.js +0 -21
- package/esm/types/CamStreamerAPI/rtmpSchema.js +0 -8
- package/esm/types/CamStreamerAPI/sdCardSchema.js +0 -5
- package/esm/types/CamStreamerAPI/srtSchema.js +0 -5
- package/esm/types/CamStreamerAPI/twitchSchema.js +0 -5
- package/esm/types/CamStreamerAPI/vimeoSchema.js +0 -5
- package/esm/types/CamStreamerAPI/wowzaSchema.js +0 -5
- package/types/types/CamStreamerAPI/churchSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +0 -250
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +0 -211
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/srtSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +0 -202
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +0 -202
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getFileDataSchema = exports.fontFileDataSchema = exports.imageFileDataSchema = exports.getFileListSchema = exports.fontFileListSchema = exports.imageFileListSchema = exports.getFileSchema = exports.fontFileSchema = exports.imageFileSchema = exports.getStorageResponseSchema = exports.fontStorageResponseSchema = exports.imageStorageResponseSchema = exports.getStorageDataListSchema = exports.fontStorageDataListSchema = exports.imageFilestorageDataListSchema = exports.fontFileStorageTypeSchema = exports.imageFileStorageTypeSchema = exports.ImageType = exports.isHtmlOverlay = exports.isScoreOverview = exports.isBaseballScoreBoardAutomatic = exports.isBaseballScoreBoard = exports.isScoreBoard = exports.isWebCameraSharing = exports.isScreenSharing = exports.isPtz = exports.isPtzCompass = exports.isPip = exports.isInfoticker = exports.isImages = exports.isCustomGraphics = exports.isAccuweather = exports.serviceListSchema = exports.servicesSchema = exports.wsResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const infotickerSchema_1 = require("./infotickerSchema");
|
|
6
6
|
const accuweatherSchema_1 = require("./accuweatherSchema");
|
|
@@ -12,6 +12,7 @@ const customGraphicsSchema_1 = require("./customGraphicsSchema");
|
|
|
12
12
|
const screenSharingSchema_1 = require("./screenSharingSchema");
|
|
13
13
|
const webCameraSharingSchema_1 = require("./webCameraSharingSchema");
|
|
14
14
|
const scoreBoardSchema_1 = require("./scoreBoardSchema");
|
|
15
|
+
const htmlOverlaySchema_1 = require("./htmlOverlaySchema");
|
|
15
16
|
exports.wsResponseSchema = zod_1.z.object({
|
|
16
17
|
status: zod_1.z.number(),
|
|
17
18
|
message: zod_1.z.string(),
|
|
@@ -30,6 +31,7 @@ exports.servicesSchema = zod_1.z.discriminatedUnion('name', [
|
|
|
30
31
|
scoreBoardSchema_1.baseballScoreBoardSchema,
|
|
31
32
|
scoreBoardSchema_1.baseballScoreBoardAutomaticSchema,
|
|
32
33
|
scoreBoardSchema_1.scoreOverviewSchema,
|
|
34
|
+
htmlOverlaySchema_1.htmlOverlaySchema,
|
|
33
35
|
]);
|
|
34
36
|
exports.serviceListSchema = zod_1.z.object({
|
|
35
37
|
services: zod_1.z.array(exports.servicesSchema),
|
|
@@ -60,33 +62,74 @@ const isBaseballScoreBoardAutomatic = (service) => service.name === 'myBallBaseb
|
|
|
60
62
|
exports.isBaseballScoreBoardAutomatic = isBaseballScoreBoardAutomatic;
|
|
61
63
|
const isScoreOverview = (service) => service.name === 'scoreOverview';
|
|
62
64
|
exports.isScoreOverview = isScoreOverview;
|
|
65
|
+
const isHtmlOverlay = (service) => service.name === 'htmlOverlay';
|
|
66
|
+
exports.isHtmlOverlay = isHtmlOverlay;
|
|
63
67
|
var ImageType;
|
|
64
68
|
(function (ImageType) {
|
|
65
69
|
ImageType[ImageType["PNG"] = 0] = "PNG";
|
|
66
70
|
ImageType[ImageType["JPEG"] = 1] = "JPEG";
|
|
67
71
|
})(ImageType || (exports.ImageType = ImageType = {}));
|
|
68
|
-
exports.
|
|
72
|
+
exports.imageFileStorageTypeSchema = zod_1.z.union([
|
|
69
73
|
zod_1.z.literal('flash'),
|
|
70
74
|
zod_1.z.literal('SD0'),
|
|
71
75
|
zod_1.z.literal('ftp'),
|
|
72
76
|
zod_1.z.literal('samba'),
|
|
73
77
|
zod_1.z.literal('url'),
|
|
74
78
|
]);
|
|
75
|
-
exports.
|
|
76
|
-
|
|
79
|
+
exports.fontFileStorageTypeSchema = zod_1.z.union([zod_1.z.literal('flash'), zod_1.z.literal('SD0')]);
|
|
80
|
+
exports.imageFilestorageDataListSchema = zod_1.z.array(zod_1.z.object({
|
|
81
|
+
type: exports.imageFileStorageTypeSchema,
|
|
77
82
|
state: zod_1.z.string(),
|
|
78
83
|
}));
|
|
79
|
-
exports.
|
|
84
|
+
exports.fontStorageDataListSchema = zod_1.z.array(zod_1.z.object({
|
|
85
|
+
type: exports.fontFileStorageTypeSchema,
|
|
86
|
+
state: zod_1.z.string(),
|
|
87
|
+
}));
|
|
88
|
+
const getStorageDataListSchema = (fileType) => {
|
|
89
|
+
return fileType === 'image' ? exports.imageFilestorageDataListSchema : exports.fontStorageDataListSchema;
|
|
90
|
+
};
|
|
91
|
+
exports.getStorageDataListSchema = getStorageDataListSchema;
|
|
92
|
+
exports.imageStorageResponseSchema = zod_1.z.object({
|
|
80
93
|
code: zod_1.z.number(),
|
|
81
|
-
list: exports.
|
|
94
|
+
list: exports.imageFilestorageDataListSchema,
|
|
82
95
|
});
|
|
83
|
-
exports.
|
|
96
|
+
exports.fontStorageResponseSchema = zod_1.z.object({
|
|
97
|
+
code: zod_1.z.number(),
|
|
98
|
+
list: exports.fontStorageDataListSchema,
|
|
99
|
+
});
|
|
100
|
+
const getStorageResponseSchema = (fileType) => {
|
|
101
|
+
return fileType === 'image' ? exports.imageStorageResponseSchema : exports.fontStorageResponseSchema;
|
|
102
|
+
};
|
|
103
|
+
exports.getStorageResponseSchema = getStorageResponseSchema;
|
|
104
|
+
exports.imageFileSchema = zod_1.z.object({
|
|
84
105
|
name: zod_1.z.string(),
|
|
85
106
|
path: zod_1.z.string().url(),
|
|
86
|
-
storage: exports.
|
|
107
|
+
storage: exports.imageFileStorageTypeSchema,
|
|
108
|
+
});
|
|
109
|
+
exports.fontFileSchema = zod_1.z.object({
|
|
110
|
+
name: zod_1.z.string(),
|
|
111
|
+
path: zod_1.z.string().url(),
|
|
112
|
+
storage: exports.fontFileStorageTypeSchema,
|
|
113
|
+
});
|
|
114
|
+
const getFileSchema = (fileType) => {
|
|
115
|
+
return fileType === 'image' ? exports.imageFileSchema : exports.fontFileSchema;
|
|
116
|
+
};
|
|
117
|
+
exports.getFileSchema = getFileSchema;
|
|
118
|
+
exports.imageFileListSchema = zod_1.z.array(exports.imageFileSchema);
|
|
119
|
+
exports.fontFileListSchema = zod_1.z.array(exports.fontFileSchema);
|
|
120
|
+
const getFileListSchema = (fileType) => {
|
|
121
|
+
return fileType === 'image' ? exports.imageFileListSchema : exports.fontFileListSchema;
|
|
122
|
+
};
|
|
123
|
+
exports.getFileListSchema = getFileListSchema;
|
|
124
|
+
exports.imageFileDataSchema = zod_1.z.object({
|
|
125
|
+
code: zod_1.z.number(),
|
|
126
|
+
list: exports.imageFileListSchema,
|
|
87
127
|
});
|
|
88
|
-
exports.
|
|
89
|
-
exports.fileDataSchema = zod_1.z.object({
|
|
128
|
+
exports.fontFileDataSchema = zod_1.z.object({
|
|
90
129
|
code: zod_1.z.number(),
|
|
91
|
-
list: exports.
|
|
130
|
+
list: exports.fontFileListSchema,
|
|
92
131
|
});
|
|
132
|
+
const getFileDataSchema = (fileType) => {
|
|
133
|
+
return fileType === 'image' ? exports.imageFileDataSchema : exports.fontFileDataSchema;
|
|
134
|
+
};
|
|
135
|
+
exports.getFileDataSchema = getFileDataSchema;
|
|
@@ -2,9 +2,9 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const accuweatherSchema: z.ZodObject<{
|
|
3
3
|
id: z.ZodNumber;
|
|
4
4
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
5
|
-
automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]
|
|
5
|
+
automationType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>>;
|
|
6
6
|
invertInput: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
cameraList: z.ZodArray<z.ZodNumber, "many"
|
|
7
|
+
cameraList: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
8
8
|
camera: z.ZodOptional<z.ZodNumber>;
|
|
9
9
|
schedule: z.ZodOptional<z.ZodString>;
|
|
10
10
|
customName: z.ZodDefault<z.ZodString>;
|
|
@@ -30,13 +30,14 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
31
|
name: "accuweather";
|
|
32
32
|
enabled: 0 | 1;
|
|
33
|
-
id: number;
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
33
|
title: string;
|
|
34
|
+
locationName: string;
|
|
35
|
+
id: number;
|
|
37
36
|
automationType: "manual" | "schedule" | "time" | `input${number}`;
|
|
38
37
|
cameraList: number[];
|
|
39
38
|
customName: string;
|
|
39
|
+
width: number;
|
|
40
|
+
height: number;
|
|
40
41
|
pos_x: number;
|
|
41
42
|
pos_y: number;
|
|
42
43
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
@@ -44,7 +45,6 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
44
45
|
clockType: "12h" | "24h";
|
|
45
46
|
font: string;
|
|
46
47
|
location: string;
|
|
47
|
-
locationName: string;
|
|
48
48
|
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
|
|
49
49
|
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
|
|
50
50
|
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
|
|
@@ -57,12 +57,11 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
57
57
|
}, {
|
|
58
58
|
name: "accuweather";
|
|
59
59
|
enabled: 0 | 1;
|
|
60
|
+
title: string;
|
|
61
|
+
locationName: string;
|
|
60
62
|
id: number;
|
|
61
63
|
width: number;
|
|
62
64
|
height: number;
|
|
63
|
-
title: string;
|
|
64
|
-
automationType: "manual" | "schedule" | "time" | `input${number}`;
|
|
65
|
-
cameraList: number[];
|
|
66
65
|
pos_x: number;
|
|
67
66
|
pos_y: number;
|
|
68
67
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
@@ -70,7 +69,6 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
70
69
|
clockType: "12h" | "24h";
|
|
71
70
|
font: string;
|
|
72
71
|
location: string;
|
|
73
|
-
locationName: string;
|
|
74
72
|
bgStartColor: "237,143,73,0.93" | "0,0,0,0.75" | "31,32,73,0.9" | "76,94,127,0.95";
|
|
75
73
|
bgEndColor: "0,0,0,0.75" | "234,181,89,0.93" | "73,96,213,0.9" | "140,150,168,0.95";
|
|
76
74
|
lang: "en-us" | "fr-fr" | "ja-jp" | "pt-pt" | "es-es" | "de-de" | "ko-kr" | "zh-hk" | "zh-cn" | "nl-nl" | "cs-cz" | "ru-ru" | "sv-se";
|
|
@@ -78,7 +76,9 @@ export declare const accuweatherSchema: z.ZodObject<{
|
|
|
78
76
|
layout: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13";
|
|
79
77
|
camera?: number | undefined;
|
|
80
78
|
schedule?: string | undefined;
|
|
79
|
+
automationType?: "manual" | "schedule" | "time" | `input${number}` | undefined;
|
|
81
80
|
invertInput?: boolean | undefined;
|
|
81
|
+
cameraList?: number[] | undefined;
|
|
82
82
|
customName?: string | undefined;
|
|
83
83
|
zIndex?: number | undefined;
|
|
84
84
|
}>;
|
|
@@ -19,10 +19,10 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
|
19
19
|
loopPeriod: z.ZodNumber;
|
|
20
20
|
waitingPeriod: z.ZodNumber;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
countdown: boolean;
|
|
22
23
|
loop: boolean;
|
|
23
24
|
startDate: number;
|
|
24
25
|
targetDate: number;
|
|
25
|
-
countdown: boolean;
|
|
26
26
|
countup: boolean;
|
|
27
27
|
displayDay: boolean;
|
|
28
28
|
displayHour: boolean;
|
|
@@ -38,10 +38,10 @@ export declare const mappingZonesCountdownSettingsSchema: z.ZodObject<{
|
|
|
38
38
|
loopPeriod: number;
|
|
39
39
|
waitingPeriod: number;
|
|
40
40
|
}, {
|
|
41
|
+
countdown: boolean;
|
|
41
42
|
loop: boolean;
|
|
42
43
|
startDate: number;
|
|
43
44
|
targetDate: number;
|
|
44
|
-
countdown: boolean;
|
|
45
45
|
countup: boolean;
|
|
46
46
|
displayDay: boolean;
|
|
47
47
|
displayHour: boolean;
|
|
@@ -65,11 +65,11 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
65
65
|
source: z.ZodString;
|
|
66
66
|
active: z.ZodBoolean;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
source: string;
|
|
69
68
|
active: boolean;
|
|
70
|
-
}, {
|
|
71
69
|
source: string;
|
|
70
|
+
}, {
|
|
72
71
|
active: boolean;
|
|
72
|
+
source: string;
|
|
73
73
|
}>, "many">>;
|
|
74
74
|
wrapText: z.ZodBoolean;
|
|
75
75
|
textLines: z.ZodNumber;
|
|
@@ -97,8 +97,8 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
97
97
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
98
98
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
99
99
|
text?: {
|
|
100
|
-
source: string;
|
|
101
100
|
active: boolean;
|
|
101
|
+
source: string;
|
|
102
102
|
}[] | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
type: "plain";
|
|
@@ -115,8 +115,8 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
115
115
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
116
116
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
117
117
|
text?: {
|
|
118
|
-
source: string;
|
|
119
118
|
active: boolean;
|
|
119
|
+
source: string;
|
|
120
120
|
}[] | undefined;
|
|
121
121
|
}>, z.ZodObject<{
|
|
122
122
|
name: z.ZodString;
|
|
@@ -126,11 +126,11 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
126
126
|
source: z.ZodString;
|
|
127
127
|
active: z.ZodBoolean;
|
|
128
128
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
source: string;
|
|
130
129
|
active: boolean;
|
|
131
|
-
}, {
|
|
132
130
|
source: string;
|
|
131
|
+
}, {
|
|
133
132
|
active: boolean;
|
|
133
|
+
source: string;
|
|
134
134
|
}>, "many">>;
|
|
135
135
|
wrapText: z.ZodBoolean;
|
|
136
136
|
textLines: z.ZodNumber;
|
|
@@ -163,10 +163,10 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
163
163
|
loopPeriod: z.ZodNumber;
|
|
164
164
|
waitingPeriod: z.ZodNumber;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
+
countdown: boolean;
|
|
166
167
|
loop: boolean;
|
|
167
168
|
startDate: number;
|
|
168
169
|
targetDate: number;
|
|
169
|
-
countdown: boolean;
|
|
170
170
|
countup: boolean;
|
|
171
171
|
displayDay: boolean;
|
|
172
172
|
displayHour: boolean;
|
|
@@ -182,10 +182,10 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
182
182
|
loopPeriod: number;
|
|
183
183
|
waitingPeriod: number;
|
|
184
184
|
}, {
|
|
185
|
+
countdown: boolean;
|
|
185
186
|
loop: boolean;
|
|
186
187
|
startDate: number;
|
|
187
188
|
targetDate: number;
|
|
188
|
-
countdown: boolean;
|
|
189
189
|
countup: boolean;
|
|
190
190
|
displayDay: boolean;
|
|
191
191
|
displayHour: boolean;
|
|
@@ -216,10 +216,10 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
216
216
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
217
217
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
218
218
|
settings: {
|
|
219
|
+
countdown: boolean;
|
|
219
220
|
loop: boolean;
|
|
220
221
|
startDate: number;
|
|
221
222
|
targetDate: number;
|
|
222
|
-
countdown: boolean;
|
|
223
223
|
countup: boolean;
|
|
224
224
|
displayDay: boolean;
|
|
225
225
|
displayHour: boolean;
|
|
@@ -236,8 +236,8 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
236
236
|
waitingPeriod: number;
|
|
237
237
|
};
|
|
238
238
|
text?: {
|
|
239
|
-
source: string;
|
|
240
239
|
active: boolean;
|
|
240
|
+
source: string;
|
|
241
241
|
}[] | undefined;
|
|
242
242
|
}, {
|
|
243
243
|
type: "countdown";
|
|
@@ -254,10 +254,10 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
254
254
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
255
255
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
256
256
|
settings: {
|
|
257
|
+
countdown: boolean;
|
|
257
258
|
loop: boolean;
|
|
258
259
|
startDate: number;
|
|
259
260
|
targetDate: number;
|
|
260
|
-
countdown: boolean;
|
|
261
261
|
countup: boolean;
|
|
262
262
|
displayDay: boolean;
|
|
263
263
|
displayHour: boolean;
|
|
@@ -274,16 +274,16 @@ export declare const mappingZoneSchema: z.ZodDiscriminatedUnion<"type", [z.ZodOb
|
|
|
274
274
|
waitingPeriod: number;
|
|
275
275
|
};
|
|
276
276
|
text?: {
|
|
277
|
-
source: string;
|
|
278
277
|
active: boolean;
|
|
278
|
+
source: string;
|
|
279
279
|
}[] | undefined;
|
|
280
280
|
}>]>;
|
|
281
281
|
export declare const customGraphicsSchema: z.ZodObject<{
|
|
282
282
|
id: z.ZodNumber;
|
|
283
283
|
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
284
|
-
automationType: z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]
|
|
284
|
+
automationType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>>;
|
|
285
285
|
invertInput: z.ZodOptional<z.ZodBoolean>;
|
|
286
|
-
cameraList: z.ZodArray<z.ZodNumber, "many"
|
|
286
|
+
cameraList: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
287
287
|
camera: z.ZodOptional<z.ZodNumber>;
|
|
288
288
|
schedule: z.ZodOptional<z.ZodString>;
|
|
289
289
|
customName: z.ZodDefault<z.ZodString>;
|
|
@@ -310,11 +310,11 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
310
310
|
source: z.ZodString;
|
|
311
311
|
active: z.ZodBoolean;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
source: string;
|
|
314
313
|
active: boolean;
|
|
315
|
-
}, {
|
|
316
314
|
source: string;
|
|
315
|
+
}, {
|
|
317
316
|
active: boolean;
|
|
317
|
+
source: string;
|
|
318
318
|
}>, "many">>;
|
|
319
319
|
wrapText: z.ZodBoolean;
|
|
320
320
|
textLines: z.ZodNumber;
|
|
@@ -342,8 +342,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
342
342
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
343
343
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
344
344
|
text?: {
|
|
345
|
-
source: string;
|
|
346
345
|
active: boolean;
|
|
346
|
+
source: string;
|
|
347
347
|
}[] | undefined;
|
|
348
348
|
}, {
|
|
349
349
|
type: "plain";
|
|
@@ -360,8 +360,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
360
360
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
361
361
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
362
362
|
text?: {
|
|
363
|
-
source: string;
|
|
364
363
|
active: boolean;
|
|
364
|
+
source: string;
|
|
365
365
|
}[] | undefined;
|
|
366
366
|
}>, z.ZodObject<{
|
|
367
367
|
name: z.ZodString;
|
|
@@ -371,11 +371,11 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
371
371
|
source: z.ZodString;
|
|
372
372
|
active: z.ZodBoolean;
|
|
373
373
|
}, "strip", z.ZodTypeAny, {
|
|
374
|
-
source: string;
|
|
375
374
|
active: boolean;
|
|
376
|
-
}, {
|
|
377
375
|
source: string;
|
|
376
|
+
}, {
|
|
378
377
|
active: boolean;
|
|
378
|
+
source: string;
|
|
379
379
|
}>, "many">>;
|
|
380
380
|
wrapText: z.ZodBoolean;
|
|
381
381
|
textLines: z.ZodNumber;
|
|
@@ -408,10 +408,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
408
408
|
loopPeriod: z.ZodNumber;
|
|
409
409
|
waitingPeriod: z.ZodNumber;
|
|
410
410
|
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
countdown: boolean;
|
|
411
412
|
loop: boolean;
|
|
412
413
|
startDate: number;
|
|
413
414
|
targetDate: number;
|
|
414
|
-
countdown: boolean;
|
|
415
415
|
countup: boolean;
|
|
416
416
|
displayDay: boolean;
|
|
417
417
|
displayHour: boolean;
|
|
@@ -427,10 +427,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
427
427
|
loopPeriod: number;
|
|
428
428
|
waitingPeriod: number;
|
|
429
429
|
}, {
|
|
430
|
+
countdown: boolean;
|
|
430
431
|
loop: boolean;
|
|
431
432
|
startDate: number;
|
|
432
433
|
targetDate: number;
|
|
433
|
-
countdown: boolean;
|
|
434
434
|
countup: boolean;
|
|
435
435
|
displayDay: boolean;
|
|
436
436
|
displayHour: boolean;
|
|
@@ -461,10 +461,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
461
461
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
462
462
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
463
463
|
settings: {
|
|
464
|
+
countdown: boolean;
|
|
464
465
|
loop: boolean;
|
|
465
466
|
startDate: number;
|
|
466
467
|
targetDate: number;
|
|
467
|
-
countdown: boolean;
|
|
468
468
|
countup: boolean;
|
|
469
469
|
displayDay: boolean;
|
|
470
470
|
displayHour: boolean;
|
|
@@ -481,8 +481,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
481
481
|
waitingPeriod: number;
|
|
482
482
|
};
|
|
483
483
|
text?: {
|
|
484
|
-
source: string;
|
|
485
484
|
active: boolean;
|
|
485
|
+
source: string;
|
|
486
486
|
}[] | undefined;
|
|
487
487
|
}, {
|
|
488
488
|
type: "countdown";
|
|
@@ -499,10 +499,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
499
499
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
500
500
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
501
501
|
settings: {
|
|
502
|
+
countdown: boolean;
|
|
502
503
|
loop: boolean;
|
|
503
504
|
startDate: number;
|
|
504
505
|
targetDate: number;
|
|
505
|
-
countdown: boolean;
|
|
506
506
|
countup: boolean;
|
|
507
507
|
displayDay: boolean;
|
|
508
508
|
displayHour: boolean;
|
|
@@ -519,23 +519,23 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
519
519
|
waitingPeriod: number;
|
|
520
520
|
};
|
|
521
521
|
text?: {
|
|
522
|
-
source: string;
|
|
523
522
|
active: boolean;
|
|
523
|
+
source: string;
|
|
524
524
|
}[] | undefined;
|
|
525
525
|
}>]>, "many">;
|
|
526
526
|
}, "strip", z.ZodTypeAny, {
|
|
527
527
|
name: "customGraphics";
|
|
528
528
|
enabled: 0 | 1;
|
|
529
|
+
image: string;
|
|
529
530
|
id: number;
|
|
530
|
-
width: number;
|
|
531
|
-
height: number;
|
|
532
531
|
automationType: "manual" | "schedule" | "time" | `input${number}`;
|
|
533
532
|
cameraList: number[];
|
|
534
533
|
customName: string;
|
|
534
|
+
width: number;
|
|
535
|
+
height: number;
|
|
535
536
|
pos_x: number;
|
|
536
537
|
pos_y: number;
|
|
537
538
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
538
|
-
image: string;
|
|
539
539
|
clockFormat: "12h" | "24h";
|
|
540
540
|
background: "custom" | "image";
|
|
541
541
|
customAreaColor: string;
|
|
@@ -557,8 +557,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
557
557
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
558
558
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
559
559
|
text?: {
|
|
560
|
-
source: string;
|
|
561
560
|
active: boolean;
|
|
561
|
+
source: string;
|
|
562
562
|
}[] | undefined;
|
|
563
563
|
} | {
|
|
564
564
|
type: "countdown";
|
|
@@ -575,10 +575,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
575
575
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
576
576
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
577
577
|
settings: {
|
|
578
|
+
countdown: boolean;
|
|
578
579
|
loop: boolean;
|
|
579
580
|
startDate: number;
|
|
580
581
|
targetDate: number;
|
|
581
|
-
countdown: boolean;
|
|
582
582
|
countup: boolean;
|
|
583
583
|
displayDay: boolean;
|
|
584
584
|
displayHour: boolean;
|
|
@@ -595,8 +595,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
595
595
|
waitingPeriod: number;
|
|
596
596
|
};
|
|
597
597
|
text?: {
|
|
598
|
-
source: string;
|
|
599
598
|
active: boolean;
|
|
599
|
+
source: string;
|
|
600
600
|
}[] | undefined;
|
|
601
601
|
})[];
|
|
602
602
|
camera?: number | undefined;
|
|
@@ -606,15 +606,13 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
606
606
|
}, {
|
|
607
607
|
name: "customGraphics";
|
|
608
608
|
enabled: 0 | 1;
|
|
609
|
+
image: string;
|
|
609
610
|
id: number;
|
|
610
611
|
width: number;
|
|
611
612
|
height: number;
|
|
612
|
-
automationType: "manual" | "schedule" | "time" | `input${number}`;
|
|
613
|
-
cameraList: number[];
|
|
614
613
|
pos_x: number;
|
|
615
614
|
pos_y: number;
|
|
616
615
|
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
617
|
-
image: string;
|
|
618
616
|
clockFormat: "12h" | "24h";
|
|
619
617
|
background: "custom" | "image";
|
|
620
618
|
customAreaColor: string;
|
|
@@ -636,8 +634,8 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
636
634
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
637
635
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
638
636
|
text?: {
|
|
639
|
-
source: string;
|
|
640
637
|
active: boolean;
|
|
638
|
+
source: string;
|
|
641
639
|
}[] | undefined;
|
|
642
640
|
} | {
|
|
643
641
|
type: "countdown";
|
|
@@ -654,10 +652,10 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
654
652
|
textAlign: "A_LEFT" | "A_CENTER" | "A_RIGHT";
|
|
655
653
|
textVerticalAlign: "VA_TOP" | "VA_CENTER" | "VA_BOTTOM";
|
|
656
654
|
settings: {
|
|
655
|
+
countdown: boolean;
|
|
657
656
|
loop: boolean;
|
|
658
657
|
startDate: number;
|
|
659
658
|
targetDate: number;
|
|
660
|
-
countdown: boolean;
|
|
661
659
|
countup: boolean;
|
|
662
660
|
displayDay: boolean;
|
|
663
661
|
displayHour: boolean;
|
|
@@ -674,13 +672,15 @@ export declare const customGraphicsSchema: z.ZodObject<{
|
|
|
674
672
|
waitingPeriod: number;
|
|
675
673
|
};
|
|
676
674
|
text?: {
|
|
677
|
-
source: string;
|
|
678
675
|
active: boolean;
|
|
676
|
+
source: string;
|
|
679
677
|
}[] | undefined;
|
|
680
678
|
})[];
|
|
681
679
|
camera?: number | undefined;
|
|
682
680
|
schedule?: string | undefined;
|
|
681
|
+
automationType?: "manual" | "schedule" | "time" | `input${number}` | undefined;
|
|
683
682
|
invertInput?: boolean | undefined;
|
|
683
|
+
cameraList?: number[] | undefined;
|
|
684
684
|
customName?: string | undefined;
|
|
685
685
|
zIndex?: number | undefined;
|
|
686
686
|
}>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const htmlOverlaySchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
enabled: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>;
|
|
5
|
+
automationType: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"time">, z.ZodLiteral<"manual">, z.ZodLiteral<"schedule">, z.ZodType<`input${number}`, z.ZodTypeDef, `input${number}`>]>>;
|
|
6
|
+
invertInput: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
cameraList: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
|
|
8
|
+
camera: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
schedule: z.ZodOptional<z.ZodString>;
|
|
10
|
+
customName: z.ZodDefault<z.ZodString>;
|
|
11
|
+
zIndex: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
width: z.ZodNumber;
|
|
13
|
+
height: z.ZodNumber;
|
|
14
|
+
} & {
|
|
15
|
+
name: z.ZodLiteral<"htmlOverlay">;
|
|
16
|
+
pos_x: z.ZodNumber;
|
|
17
|
+
pos_y: z.ZodNumber;
|
|
18
|
+
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">]>;
|
|
19
|
+
url: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>;
|
|
20
|
+
pageWidth: z.ZodNumber;
|
|
21
|
+
pageHeight: z.ZodNumber;
|
|
22
|
+
fps: z.ZodNumber;
|
|
23
|
+
scale: z.ZodNumber;
|
|
24
|
+
cropEnabled: z.ZodBoolean;
|
|
25
|
+
cropLeft: z.ZodNumber;
|
|
26
|
+
cropTop: z.ZodNumber;
|
|
27
|
+
cropWidth: z.ZodNumber;
|
|
28
|
+
cropHeight: z.ZodNumber;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
name: "htmlOverlay";
|
|
31
|
+
enabled: 0 | 1;
|
|
32
|
+
url: string;
|
|
33
|
+
fps: number;
|
|
34
|
+
id: number;
|
|
35
|
+
automationType: "manual" | "schedule" | "time" | `input${number}`;
|
|
36
|
+
cameraList: number[];
|
|
37
|
+
customName: string;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
pos_x: number;
|
|
41
|
+
pos_y: number;
|
|
42
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
43
|
+
scale: number;
|
|
44
|
+
pageWidth: number;
|
|
45
|
+
pageHeight: number;
|
|
46
|
+
cropEnabled: boolean;
|
|
47
|
+
cropLeft: number;
|
|
48
|
+
cropTop: number;
|
|
49
|
+
cropWidth: number;
|
|
50
|
+
cropHeight: number;
|
|
51
|
+
camera?: number | undefined;
|
|
52
|
+
schedule?: string | undefined;
|
|
53
|
+
invertInput?: boolean | undefined;
|
|
54
|
+
zIndex?: number | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
name: "htmlOverlay";
|
|
57
|
+
enabled: 0 | 1;
|
|
58
|
+
fps: number;
|
|
59
|
+
id: number;
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
pos_x: number;
|
|
63
|
+
pos_y: number;
|
|
64
|
+
coordSystem: "top_left" | "top" | "top_right" | "left" | "center" | "right" | "bottom_left" | "bottom" | "bottom_right";
|
|
65
|
+
scale: number;
|
|
66
|
+
pageWidth: number;
|
|
67
|
+
pageHeight: number;
|
|
68
|
+
cropEnabled: boolean;
|
|
69
|
+
cropLeft: number;
|
|
70
|
+
cropTop: number;
|
|
71
|
+
cropWidth: number;
|
|
72
|
+
cropHeight: number;
|
|
73
|
+
camera?: number | undefined;
|
|
74
|
+
schedule?: string | undefined;
|
|
75
|
+
url?: string | undefined;
|
|
76
|
+
automationType?: "manual" | "schedule" | "time" | `input${number}` | undefined;
|
|
77
|
+
invertInput?: boolean | undefined;
|
|
78
|
+
cameraList?: number[] | undefined;
|
|
79
|
+
customName?: string | undefined;
|
|
80
|
+
zIndex?: number | undefined;
|
|
81
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.htmlOverlaySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const serviceCommonTypes_1 = require("./serviceCommonTypes");
|
|
6
|
+
exports.htmlOverlaySchema = serviceCommonTypes_1.serviceCommonSchema.extend({
|
|
7
|
+
name: zod_1.z.literal(serviceCommonTypes_1.serviceNames.htmlOverlay),
|
|
8
|
+
pos_x: zod_1.z.number().nonnegative(),
|
|
9
|
+
pos_y: zod_1.z.number().nonnegative(),
|
|
10
|
+
coordSystem: serviceCommonTypes_1.coordinateSystemSchema,
|
|
11
|
+
url: zod_1.z.string().url().or(zod_1.z.literal('')).default(''),
|
|
12
|
+
pageWidth: zod_1.z.number().nonnegative(),
|
|
13
|
+
pageHeight: zod_1.z.number().nonnegative(),
|
|
14
|
+
fps: zod_1.z.number().nonnegative(),
|
|
15
|
+
scale: zod_1.z.number(),
|
|
16
|
+
cropEnabled: zod_1.z.boolean(),
|
|
17
|
+
cropLeft: zod_1.z.number().nonnegative(),
|
|
18
|
+
cropTop: zod_1.z.number().nonnegative(),
|
|
19
|
+
cropWidth: zod_1.z.number().nonnegative(),
|
|
20
|
+
cropHeight: zod_1.z.number().nonnegative(),
|
|
21
|
+
});
|