2022-04-12 14:21:19 +02:00
|
|
|
import { z } from "zod";
|
2021-07-16 09:52:51 +02:00
|
|
|
|
2021-12-14 19:05:14 +01:00
|
|
|
/*
|
|
|
|
* WARNING! The original file is in /messages/JsonMessages.
|
|
|
|
* All other files are automatically copied from this file on container startup / build
|
|
|
|
*/
|
2021-07-16 09:52:51 +02:00
|
|
|
|
2022-04-12 14:21:19 +02:00
|
|
|
export const isMapDetailsData = z.object({
|
|
|
|
mapUrl: z.string(),
|
|
|
|
authenticationMandatory: z.optional(z.nullable(z.boolean())),
|
|
|
|
group: z.nullable(z.string()),
|
2021-09-21 20:24:53 +02:00
|
|
|
|
2022-04-25 11:00:01 +02:00
|
|
|
contactPage: z.optional(z.nullable(z.string())),
|
2022-04-12 14:21:19 +02:00
|
|
|
iframeAuthentication: z.optional(z.nullable(z.string())),
|
|
|
|
// The date (in ISO 8601 format) at which the room will expire
|
|
|
|
expireOn: z.optional(z.string()),
|
|
|
|
// Whether the "report" feature is enabled or not on this room
|
|
|
|
canReport: z.optional(z.boolean()),
|
|
|
|
// The URL of the logo image on the loading screen
|
|
|
|
loadingLogo: z.optional(z.nullable(z.string())),
|
|
|
|
// The URL of the logo image on "LoginScene"
|
|
|
|
loginSceneLogo: z.optional(z.nullable(z.string())),
|
|
|
|
});
|
|
|
|
|
|
|
|
export type MapDetailsData = z.infer<typeof isMapDetailsData>;
|