feat(SW-497): Changes to global alert schema

This commit is contained in:
Erik Tiekstra
2024-10-16 12:30:59 +02:00
parent 3f12246e12
commit c8d4f6c47c
8 changed files with 131 additions and 49 deletions

5
types/enums/alert.ts Normal file
View File

@@ -0,0 +1,5 @@
export enum AlertTypeEnum {
Info = "info",
Warning = "warning",
Alarm = "alarm",
}

View File

@@ -1,17 +1,11 @@
import { z } from "zod"
import {
globalAlertSchema,
alertSchema,
siteConfigSchema,
} from "@/server/routers/contentstack/base/output"
export enum GlobalAlertType {
Info = "info",
Alarm = "alarm",
}
export type GetSiteConfigData = z.input<typeof siteConfigSchema>
export type SiteConfig = z.output<typeof siteConfigSchema>
export type GetGlobalAlertData = z.input<typeof globalAlertSchema>
export type GlobalAlert = z.output<typeof globalAlertSchema>
export type Alert = z.output<typeof alertSchema>