camstreamerlib 4.0.0-beta.95 → 4.0.0-beta.97
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.d.ts +4 -4
- package/cjs/CamStreamerAPI.d.ts +1058 -60
- package/cjs/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
- package/cjs/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
- package/cjs/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.d.ts +7915 -1028
- package/cjs/types/CamStreamerAPI/CamStreamerAPI.js +79 -7
- package/cjs/types/CamStreamerAPI/churchSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/churchSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/daCastSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/dailymotionSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/gameChangerSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/hlsPullSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/hlsPushSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/{hlsSchema.d.ts → ibmSchema.d.ts} +50 -4
- package/cjs/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +3 -3
- package/cjs/types/CamStreamerAPI/index.d.ts +0 -1
- package/cjs/types/CamStreamerAPI/index.js +0 -1
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/microsoftAzureSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/microsoftStreamSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/cjs/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/{types/types/CamStreamerAPI/hlsSchema.d.ts → cjs/types/CamStreamerAPI/srtSchema.d.ts} +50 -4
- package/cjs/types/CamStreamerAPI/srtSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/cjs/types/CamStreamerAPI/streamCommonTypes.js +27 -2
- package/cjs/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/twitchSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/vimeoSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/cjs/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
- package/cjs/types/CamStreamerAPI/wowzaSchema.js +11 -0
- package/cjs/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
- package/cjs/types/CamStreamerAPI/youtubeSchema.js +0 -15
- package/esm/types/CamStreamerAPI/CamStreamerAPI.js +65 -5
- package/esm/types/CamStreamerAPI/churchSchema.js +5 -0
- package/esm/types/CamStreamerAPI/daCastSchema.js +5 -0
- package/esm/types/CamStreamerAPI/dailymotionSchema.js +5 -0
- package/esm/types/CamStreamerAPI/gameChangerSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsPullSchema.js +5 -0
- package/esm/types/CamStreamerAPI/hlsPushSchema.js +5 -0
- package/esm/types/CamStreamerAPI/{hlsSchema.js → ibmSchema.js} +2 -2
- package/esm/types/CamStreamerAPI/index.js +0 -1
- package/esm/types/CamStreamerAPI/microsoftAzureSchema.js +5 -0
- package/esm/types/CamStreamerAPI/microsoftStreamSchema.js +5 -0
- package/esm/types/CamStreamerAPI/srtSchema.js +5 -0
- package/esm/types/CamStreamerAPI/streamCommonTypes.js +26 -1
- package/esm/types/CamStreamerAPI/twitchSchema.js +5 -0
- package/esm/types/CamStreamerAPI/vimeoSchema.js +5 -0
- package/esm/types/CamStreamerAPI/wowzaSchema.js +5 -0
- package/esm/types/CamStreamerAPI/youtubeSchema.js +0 -15
- package/package.json +1 -1
- package/types/CamOverlayAPI.d.ts +4 -4
- package/types/CamStreamerAPI.d.ts +1058 -60
- package/types/types/CamOverlayAPI/CamOverlayAPI.d.ts +22 -22
- package/types/types/CamOverlayAPI/customGraphicsSchema.d.ts +12 -12
- package/types/types/CamOverlayAPI/scoreBoardSchema.d.ts +2 -2
- package/types/types/CamStreamerAPI/CamStreamerAPI.d.ts +7915 -1028
- package/types/types/CamStreamerAPI/churchSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/daCastSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/dailymotionSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/facebookSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/gameChangerSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/hlsPullSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/hlsPushSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/ibmSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/index.d.ts +0 -1
- package/types/types/CamStreamerAPI/microsoftAzureSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/microsoftStreamSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/mpegDvbSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/oldStreamSchema.d.ts +12 -12
- package/types/types/CamStreamerAPI/rtmpSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/sdCardSchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/srtSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/streamCommonTypes.d.ts +75 -1
- package/types/types/CamStreamerAPI/twitchSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/vimeoSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/windySchema.d.ts +46 -0
- package/types/types/CamStreamerAPI/wowzaSchema.d.ts +202 -0
- package/types/types/CamStreamerAPI/youtubeSchema.d.ts +46 -45
|
@@ -1,32 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.audioLocalSchema = exports.audioUrlSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.
|
|
3
|
+
exports.audioLocalSchema = exports.audioUrlSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isGameChangerStream = exports.isMicrosoftStream = exports.isMicrosoftAzureStream = exports.isIbmStream = exports.isDailymotionStream = exports.isWowzaStream = exports.isHlsPushStream = exports.isHlsPullStream = exports.isDaCastStream = exports.isSrtStream = exports.isChurchStream = exports.isTwitchStream = exports.isVimeoStream = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isFacebookStream = exports.streamListSchema = exports.streamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const facebookSchema_1 = require("./facebookSchema");
|
|
6
|
-
const hlsSchema_1 = require("./hlsSchema");
|
|
7
6
|
const mpegDvbSchema_1 = require("./mpegDvbSchema");
|
|
8
7
|
const rtmpSchema_1 = require("./rtmpSchema");
|
|
9
8
|
const sdCardSchema_1 = require("./sdCardSchema");
|
|
10
9
|
const windySchema_1 = require("./windySchema");
|
|
11
10
|
const youtubeSchema_1 = require("./youtubeSchema");
|
|
11
|
+
const vimeoSchema_1 = require("./vimeoSchema");
|
|
12
|
+
const twitchSchema_1 = require("./twitchSchema");
|
|
13
|
+
const churchSchema_1 = require("./churchSchema");
|
|
14
|
+
const srtSchema_1 = require("./srtSchema");
|
|
15
|
+
const daCastSchema_1 = require("./daCastSchema");
|
|
16
|
+
const hlsPullSchema_1 = require("./hlsPullSchema");
|
|
17
|
+
const hlsPushSchema_1 = require("./hlsPushSchema");
|
|
18
|
+
const wowzaSchema_1 = require("./wowzaSchema");
|
|
19
|
+
const dailymotionSchema_1 = require("./dailymotionSchema");
|
|
20
|
+
const ibmSchema_1 = require("./ibmSchema");
|
|
21
|
+
const microsoftAzureSchema_1 = require("./microsoftAzureSchema");
|
|
22
|
+
const microsoftStreamSchema_1 = require("./microsoftStreamSchema");
|
|
23
|
+
const gameChangerSchema_1 = require("./gameChangerSchema");
|
|
12
24
|
exports.streamSchema = zod_1.z.discriminatedUnion('type', [
|
|
13
25
|
facebookSchema_1.facebookSchema,
|
|
14
|
-
hlsSchema_1.hlsSchema,
|
|
15
26
|
mpegDvbSchema_1.mpegDvbSchema,
|
|
16
27
|
rtmpSchema_1.rtmpSchema,
|
|
17
28
|
sdCardSchema_1.sdCardSchema,
|
|
18
29
|
windySchema_1.windySchema,
|
|
19
30
|
youtubeSchema_1.youtubeSchema,
|
|
31
|
+
vimeoSchema_1.vimeoSchema,
|
|
32
|
+
twitchSchema_1.twitchSchema,
|
|
33
|
+
churchSchema_1.churchSchema,
|
|
34
|
+
srtSchema_1.srtSchema,
|
|
35
|
+
daCastSchema_1.daCastSchema,
|
|
36
|
+
hlsPullSchema_1.hlsPullSchema,
|
|
37
|
+
hlsPushSchema_1.hlsPushSchema,
|
|
38
|
+
wowzaSchema_1.wowzaSchema,
|
|
39
|
+
dailymotionSchema_1.dailymotionSchema,
|
|
40
|
+
ibmSchema_1.ibmSchema,
|
|
41
|
+
microsoftAzureSchema_1.microsoftAzureSchema,
|
|
42
|
+
microsoftStreamSchema_1.microsoftStreamSchema,
|
|
43
|
+
gameChangerSchema_1.gameChangerSchema,
|
|
20
44
|
]);
|
|
21
45
|
exports.streamListSchema = zod_1.z.object({ streamList: zod_1.z.array(exports.streamSchema) });
|
|
22
46
|
const isFacebookStream = (stream) => {
|
|
23
47
|
return stream.type === 'facebook';
|
|
24
48
|
};
|
|
25
49
|
exports.isFacebookStream = isFacebookStream;
|
|
26
|
-
const isHlsStream = (stream) => {
|
|
27
|
-
return stream.type === 'hls';
|
|
28
|
-
};
|
|
29
|
-
exports.isHlsStream = isHlsStream;
|
|
30
50
|
const isMpegDvbStream = (stream) => {
|
|
31
51
|
return stream.type === 'mpeg_dvb';
|
|
32
52
|
};
|
|
@@ -47,6 +67,58 @@ const isYouTubeStream = (stream) => {
|
|
|
47
67
|
return stream.type === 'youtube';
|
|
48
68
|
};
|
|
49
69
|
exports.isYouTubeStream = isYouTubeStream;
|
|
70
|
+
const isVimeoStream = (stream) => {
|
|
71
|
+
return stream.type === 'vimeo';
|
|
72
|
+
};
|
|
73
|
+
exports.isVimeoStream = isVimeoStream;
|
|
74
|
+
const isTwitchStream = (stream) => {
|
|
75
|
+
return stream.type === 'twitch';
|
|
76
|
+
};
|
|
77
|
+
exports.isTwitchStream = isTwitchStream;
|
|
78
|
+
const isChurchStream = (stream) => {
|
|
79
|
+
return stream.type === 'church';
|
|
80
|
+
};
|
|
81
|
+
exports.isChurchStream = isChurchStream;
|
|
82
|
+
const isSrtStream = (stream) => {
|
|
83
|
+
return stream.type === 'srt';
|
|
84
|
+
};
|
|
85
|
+
exports.isSrtStream = isSrtStream;
|
|
86
|
+
const isDaCastStream = (stream) => {
|
|
87
|
+
return stream.type === 'da_cast';
|
|
88
|
+
};
|
|
89
|
+
exports.isDaCastStream = isDaCastStream;
|
|
90
|
+
const isHlsPullStream = (stream) => {
|
|
91
|
+
return stream.type === 'hls_pull';
|
|
92
|
+
};
|
|
93
|
+
exports.isHlsPullStream = isHlsPullStream;
|
|
94
|
+
const isHlsPushStream = (stream) => {
|
|
95
|
+
return stream.type === 'hls_push';
|
|
96
|
+
};
|
|
97
|
+
exports.isHlsPushStream = isHlsPushStream;
|
|
98
|
+
const isWowzaStream = (stream) => {
|
|
99
|
+
return stream.type === 'wowza';
|
|
100
|
+
};
|
|
101
|
+
exports.isWowzaStream = isWowzaStream;
|
|
102
|
+
const isDailymotionStream = (stream) => {
|
|
103
|
+
return stream.type === 'dailymotion';
|
|
104
|
+
};
|
|
105
|
+
exports.isDailymotionStream = isDailymotionStream;
|
|
106
|
+
const isIbmStream = (stream) => {
|
|
107
|
+
return stream.type === 'ibm';
|
|
108
|
+
};
|
|
109
|
+
exports.isIbmStream = isIbmStream;
|
|
110
|
+
const isMicrosoftAzureStream = (stream) => {
|
|
111
|
+
return stream.type === 'microsoft_azure';
|
|
112
|
+
};
|
|
113
|
+
exports.isMicrosoftAzureStream = isMicrosoftAzureStream;
|
|
114
|
+
const isMicrosoftStream = (stream) => {
|
|
115
|
+
return stream.type === 'microsoft_stream';
|
|
116
|
+
};
|
|
117
|
+
exports.isMicrosoftStream = isMicrosoftStream;
|
|
118
|
+
const isGameChangerStream = (stream) => {
|
|
119
|
+
return stream.type === 'game_changer';
|
|
120
|
+
};
|
|
121
|
+
exports.isGameChangerStream = isGameChangerStream;
|
|
50
122
|
var AudioType;
|
|
51
123
|
(function (AudioType) {
|
|
52
124
|
AudioType[AudioType["MP3"] = 0] = "MP3";
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const churchSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"manual">;
|
|
9
|
+
ioPort: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "manual";
|
|
12
|
+
ioPort: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
type: "manual";
|
|
15
|
+
ioPort: string | null;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"onetime">;
|
|
18
|
+
startTime: z.ZodNumber;
|
|
19
|
+
stopTime: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "onetime";
|
|
22
|
+
startTime: number;
|
|
23
|
+
stopTime: number;
|
|
24
|
+
}, {
|
|
25
|
+
type: "onetime";
|
|
26
|
+
startTime: number;
|
|
27
|
+
stopTime: number;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"recurrent">;
|
|
30
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
31
|
+
start: z.ZodObject<{
|
|
32
|
+
day: z.ZodNumber;
|
|
33
|
+
timeS: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
day: number;
|
|
36
|
+
timeS: number;
|
|
37
|
+
}, {
|
|
38
|
+
day: number;
|
|
39
|
+
timeS: number;
|
|
40
|
+
}>;
|
|
41
|
+
stop: z.ZodObject<{
|
|
42
|
+
day: z.ZodNumber;
|
|
43
|
+
timeS: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
day: number;
|
|
46
|
+
timeS: number;
|
|
47
|
+
}, {
|
|
48
|
+
day: number;
|
|
49
|
+
timeS: number;
|
|
50
|
+
}>;
|
|
51
|
+
isActive: z.ZodBoolean;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
start: {
|
|
54
|
+
day: number;
|
|
55
|
+
timeS: number;
|
|
56
|
+
};
|
|
57
|
+
stop: {
|
|
58
|
+
day: number;
|
|
59
|
+
timeS: number;
|
|
60
|
+
};
|
|
61
|
+
isActive: boolean;
|
|
62
|
+
}, {
|
|
63
|
+
start: {
|
|
64
|
+
day: number;
|
|
65
|
+
timeS: number;
|
|
66
|
+
};
|
|
67
|
+
stop: {
|
|
68
|
+
day: number;
|
|
69
|
+
timeS: number;
|
|
70
|
+
};
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "recurrent";
|
|
75
|
+
schedule: {
|
|
76
|
+
start: {
|
|
77
|
+
day: number;
|
|
78
|
+
timeS: number;
|
|
79
|
+
};
|
|
80
|
+
stop: {
|
|
81
|
+
day: number;
|
|
82
|
+
timeS: number;
|
|
83
|
+
};
|
|
84
|
+
isActive: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
type: "recurrent";
|
|
88
|
+
schedule: {
|
|
89
|
+
start: {
|
|
90
|
+
day: number;
|
|
91
|
+
timeS: number;
|
|
92
|
+
};
|
|
93
|
+
stop: {
|
|
94
|
+
day: number;
|
|
95
|
+
timeS: number;
|
|
96
|
+
};
|
|
97
|
+
isActive: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
} & {
|
|
127
|
+
type: z.ZodLiteral<"church">;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: "church";
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
id: number;
|
|
132
|
+
active: boolean;
|
|
133
|
+
title: string;
|
|
134
|
+
trigger: {
|
|
135
|
+
type: "manual";
|
|
136
|
+
ioPort: string | null;
|
|
137
|
+
} | {
|
|
138
|
+
type: "onetime";
|
|
139
|
+
startTime: number;
|
|
140
|
+
stopTime: number;
|
|
141
|
+
} | {
|
|
142
|
+
type: "recurrent";
|
|
143
|
+
schedule: {
|
|
144
|
+
start: {
|
|
145
|
+
day: number;
|
|
146
|
+
timeS: number;
|
|
147
|
+
};
|
|
148
|
+
stop: {
|
|
149
|
+
day: number;
|
|
150
|
+
timeS: number;
|
|
151
|
+
};
|
|
152
|
+
isActive: boolean;
|
|
153
|
+
}[];
|
|
154
|
+
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
type: "church";
|
|
167
|
+
enabled: boolean;
|
|
168
|
+
id: number;
|
|
169
|
+
active: boolean;
|
|
170
|
+
title: string;
|
|
171
|
+
trigger: {
|
|
172
|
+
type: "manual";
|
|
173
|
+
ioPort: string | null;
|
|
174
|
+
} | {
|
|
175
|
+
type: "onetime";
|
|
176
|
+
startTime: number;
|
|
177
|
+
stopTime: number;
|
|
178
|
+
} | {
|
|
179
|
+
type: "recurrent";
|
|
180
|
+
schedule: {
|
|
181
|
+
start: {
|
|
182
|
+
day: number;
|
|
183
|
+
timeS: number;
|
|
184
|
+
};
|
|
185
|
+
stop: {
|
|
186
|
+
day: number;
|
|
187
|
+
timeS: number;
|
|
188
|
+
};
|
|
189
|
+
isActive: boolean;
|
|
190
|
+
}[];
|
|
191
|
+
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.churchSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
+
exports.churchSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
|
+
type: zod_1.default.literal('church'),
|
|
11
|
+
});
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const daCastSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodNumber;
|
|
4
|
+
enabled: z.ZodBoolean;
|
|
5
|
+
active: z.ZodBoolean;
|
|
6
|
+
title: z.ZodString;
|
|
7
|
+
trigger: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"manual">;
|
|
9
|
+
ioPort: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "manual";
|
|
12
|
+
ioPort: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
type: "manual";
|
|
15
|
+
ioPort: string | null;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
type: z.ZodLiteral<"onetime">;
|
|
18
|
+
startTime: z.ZodNumber;
|
|
19
|
+
stopTime: z.ZodNumber;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
type: "onetime";
|
|
22
|
+
startTime: number;
|
|
23
|
+
stopTime: number;
|
|
24
|
+
}, {
|
|
25
|
+
type: "onetime";
|
|
26
|
+
startTime: number;
|
|
27
|
+
stopTime: number;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"recurrent">;
|
|
30
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
31
|
+
start: z.ZodObject<{
|
|
32
|
+
day: z.ZodNumber;
|
|
33
|
+
timeS: z.ZodNumber;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
day: number;
|
|
36
|
+
timeS: number;
|
|
37
|
+
}, {
|
|
38
|
+
day: number;
|
|
39
|
+
timeS: number;
|
|
40
|
+
}>;
|
|
41
|
+
stop: z.ZodObject<{
|
|
42
|
+
day: z.ZodNumber;
|
|
43
|
+
timeS: z.ZodNumber;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
day: number;
|
|
46
|
+
timeS: number;
|
|
47
|
+
}, {
|
|
48
|
+
day: number;
|
|
49
|
+
timeS: number;
|
|
50
|
+
}>;
|
|
51
|
+
isActive: z.ZodBoolean;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
start: {
|
|
54
|
+
day: number;
|
|
55
|
+
timeS: number;
|
|
56
|
+
};
|
|
57
|
+
stop: {
|
|
58
|
+
day: number;
|
|
59
|
+
timeS: number;
|
|
60
|
+
};
|
|
61
|
+
isActive: boolean;
|
|
62
|
+
}, {
|
|
63
|
+
start: {
|
|
64
|
+
day: number;
|
|
65
|
+
timeS: number;
|
|
66
|
+
};
|
|
67
|
+
stop: {
|
|
68
|
+
day: number;
|
|
69
|
+
timeS: number;
|
|
70
|
+
};
|
|
71
|
+
isActive: boolean;
|
|
72
|
+
}>, "many">;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "recurrent";
|
|
75
|
+
schedule: {
|
|
76
|
+
start: {
|
|
77
|
+
day: number;
|
|
78
|
+
timeS: number;
|
|
79
|
+
};
|
|
80
|
+
stop: {
|
|
81
|
+
day: number;
|
|
82
|
+
timeS: number;
|
|
83
|
+
};
|
|
84
|
+
isActive: boolean;
|
|
85
|
+
}[];
|
|
86
|
+
}, {
|
|
87
|
+
type: "recurrent";
|
|
88
|
+
schedule: {
|
|
89
|
+
start: {
|
|
90
|
+
day: number;
|
|
91
|
+
timeS: number;
|
|
92
|
+
};
|
|
93
|
+
stop: {
|
|
94
|
+
day: number;
|
|
95
|
+
timeS: number;
|
|
96
|
+
};
|
|
97
|
+
isActive: boolean;
|
|
98
|
+
}[];
|
|
99
|
+
}>]>;
|
|
100
|
+
inputType: z.ZodUnion<[z.ZodLiteral<"CSw">, z.ZodLiteral<"CRS">, z.ZodLiteral<"RTSP_URL">]>;
|
|
101
|
+
internalVapixParameters: z.ZodObject<{
|
|
102
|
+
camera: z.ZodString;
|
|
103
|
+
resolution: z.ZodOptional<z.ZodString>;
|
|
104
|
+
compression: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
videobitrate: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
videomaxbitrate: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
audio: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>]>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
camera: string;
|
|
111
|
+
resolution?: string | undefined;
|
|
112
|
+
compression?: number | undefined;
|
|
113
|
+
audio?: 0 | 1 | undefined;
|
|
114
|
+
fps?: number | undefined;
|
|
115
|
+
videobitrate?: number | undefined;
|
|
116
|
+
videomaxbitrate?: number | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
camera: string;
|
|
119
|
+
resolution?: string | undefined;
|
|
120
|
+
compression?: number | undefined;
|
|
121
|
+
audio?: 0 | 1 | undefined;
|
|
122
|
+
fps?: number | undefined;
|
|
123
|
+
videobitrate?: number | undefined;
|
|
124
|
+
videomaxbitrate?: number | undefined;
|
|
125
|
+
}>;
|
|
126
|
+
} & {
|
|
127
|
+
type: z.ZodLiteral<"da_cast">;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: "da_cast";
|
|
130
|
+
enabled: boolean;
|
|
131
|
+
id: number;
|
|
132
|
+
active: boolean;
|
|
133
|
+
title: string;
|
|
134
|
+
trigger: {
|
|
135
|
+
type: "manual";
|
|
136
|
+
ioPort: string | null;
|
|
137
|
+
} | {
|
|
138
|
+
type: "onetime";
|
|
139
|
+
startTime: number;
|
|
140
|
+
stopTime: number;
|
|
141
|
+
} | {
|
|
142
|
+
type: "recurrent";
|
|
143
|
+
schedule: {
|
|
144
|
+
start: {
|
|
145
|
+
day: number;
|
|
146
|
+
timeS: number;
|
|
147
|
+
};
|
|
148
|
+
stop: {
|
|
149
|
+
day: number;
|
|
150
|
+
timeS: number;
|
|
151
|
+
};
|
|
152
|
+
isActive: boolean;
|
|
153
|
+
}[];
|
|
154
|
+
};
|
|
155
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
156
|
+
internalVapixParameters: {
|
|
157
|
+
camera: string;
|
|
158
|
+
resolution?: string | undefined;
|
|
159
|
+
compression?: number | undefined;
|
|
160
|
+
audio?: 0 | 1 | undefined;
|
|
161
|
+
fps?: number | undefined;
|
|
162
|
+
videobitrate?: number | undefined;
|
|
163
|
+
videomaxbitrate?: number | undefined;
|
|
164
|
+
};
|
|
165
|
+
}, {
|
|
166
|
+
type: "da_cast";
|
|
167
|
+
enabled: boolean;
|
|
168
|
+
id: number;
|
|
169
|
+
active: boolean;
|
|
170
|
+
title: string;
|
|
171
|
+
trigger: {
|
|
172
|
+
type: "manual";
|
|
173
|
+
ioPort: string | null;
|
|
174
|
+
} | {
|
|
175
|
+
type: "onetime";
|
|
176
|
+
startTime: number;
|
|
177
|
+
stopTime: number;
|
|
178
|
+
} | {
|
|
179
|
+
type: "recurrent";
|
|
180
|
+
schedule: {
|
|
181
|
+
start: {
|
|
182
|
+
day: number;
|
|
183
|
+
timeS: number;
|
|
184
|
+
};
|
|
185
|
+
stop: {
|
|
186
|
+
day: number;
|
|
187
|
+
timeS: number;
|
|
188
|
+
};
|
|
189
|
+
isActive: boolean;
|
|
190
|
+
}[];
|
|
191
|
+
};
|
|
192
|
+
inputType: "RTSP_URL" | "CSw" | "CRS";
|
|
193
|
+
internalVapixParameters: {
|
|
194
|
+
camera: string;
|
|
195
|
+
resolution?: string | undefined;
|
|
196
|
+
compression?: number | undefined;
|
|
197
|
+
audio?: 0 | 1 | undefined;
|
|
198
|
+
fps?: number | undefined;
|
|
199
|
+
videobitrate?: number | undefined;
|
|
200
|
+
videomaxbitrate?: number | undefined;
|
|
201
|
+
};
|
|
202
|
+
}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.daCastSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const streamCommonTypes_1 = require("./streamCommonTypes");
|
|
9
|
+
exports.daCastSchema = streamCommonTypes_1.streamCommonSchema.extend({
|
|
10
|
+
type: zod_1.default.literal('da_cast'),
|
|
11
|
+
});
|