camstreamerlib
Version:
Helper library for CamStreamer ACAP applications.
28 lines (27 loc) • 1.21 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.widgetListSchema = exports.widgetsSchema = void 0;
const customGraphicsSchema_1 = require("./customGraphicsSchema");
const imagesSchema_1 = require("./imagesSchema");
const accuweatherSchema_1 = require("./accuweatherSchema");
const infotickerSchema_1 = require("./infotickerSchema");
const pipSchema_1 = require("./pipSchema");
const ptzCompassSchema_1 = require("./ptzCompassSchema");
const ptzSchema_1 = require("./ptzSchema");
const screenSharingSchema_1 = require("./screenSharingSchema");
const webCameraSharingSchema_1 = require("./webCameraSharingSchema");
const zod_1 = require("zod");
exports.widgetsSchema = zod_1.z.discriminatedUnion('name', [
infotickerSchema_1.infoTickerSchema,
accuweatherSchema_1.accuweatherSchema,
ptzCompassSchema_1.ptzCompassSchema,
imagesSchema_1.imagesSchema,
ptzSchema_1.ptzSchema,
pipSchema_1.pipSchema,
customGraphicsSchema_1.customGraphicsSchema,
screenSharingSchema_1.screenSharingSchema,
webCameraSharingSchema_1.webCameraSharingSchema,
]);
exports.widgetListSchema = zod_1.z.object({
services: zod_1.z.array(exports.widgetsSchema),
});