feat(SW-497): Added global alerts query and typings

This commit is contained in:
Erik Tiekstra
2024-09-30 13:11:27 +02:00
parent fb68759720
commit 78569fcb21
7 changed files with 297 additions and 89 deletions

View File

@@ -0,0 +1,17 @@
import { z } from "zod"
import {
globalAlertSchema,
siteConfigurationSchema,
} from "@/server/routers/contentstack/base/output"
export enum GlobalAlertType {
Info = "info",
Alarm = "alarm",
}
export type GetSiteConfigurationData = z.input<typeof siteConfigurationSchema>
export type SiteConfiguration = z.output<typeof siteConfigurationSchema>
export type GetGlobalAlertData = z.input<typeof globalAlertSchema>
export type GlobalAlert = z.output<typeof globalAlertSchema>