camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
27 lines (26 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.infoTickerSchema = void 0;
const zod_1 = require("zod");
const serviceCommonTypes_1 = require("./serviceCommonTypes");
exports.infoTickerSchema = serviceCommonTypes_1.serviceCommonSchema.extend({
name: zod_1.z.literal(serviceCommonTypes_1.serviceNames.infoticker),
showClock: zod_1.z.union([zod_1.z.literal(0), zod_1.z.literal(1)]),
clockType: zod_1.z.union([zod_1.z.literal('12h'), zod_1.z.literal('24h')]),
textColor: zod_1.z.string(),
bgColor: zod_1.z.string(),
weatherLocation: zod_1.z.string(),
weatherLocationName: zod_1.z.string(),
weatherLang: serviceCommonTypes_1.languageSchema,
weatherUnits: serviceCommonTypes_1.weatherUnitSchema,
numberOfLines: zod_1.z.number().positive(),
switchingTime: zod_1.z.number().nonnegative(),
crawlLeft: zod_1.z.boolean(),
crawlSpeed: zod_1.z.number(),
coordSystem: zod_1.z.union([zod_1.z.literal('top'), zod_1.z.literal('bottom')]),
pos_y: zod_1.z.number(),
font: serviceCommonTypes_1.fontSchema,
fontSize: zod_1.z.number().nonnegative(),
sourceType: zod_1.z.union([zod_1.z.literal('text'), zod_1.z.literal('url')]),
source: zod_1.z.string(),
});