UNPKG

camstreamerlib

Version:

Helper library for CamStreamer ACAP applications.

28 lines (27 loc) 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.infoTickerSchema = void 0; const constants_1 = require("./constants"); const widgetCommonSchema_1 = require("./widgetCommonSchema"); const zod_1 = require("zod"); exports.infoTickerSchema = widgetCommonSchema_1.widgetCommonSchema.extend({ name: zod_1.z.literal(constants_1.allowedWidgetNames.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: widgetCommonSchema_1.languageSchema, weatherUnits: widgetCommonSchema_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: widgetCommonSchema_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(), });