feat(SW-497): Changes to global alert schema
This commit is contained in:
5
types/enums/alert.ts
Normal file
5
types/enums/alert.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export enum AlertTypeEnum {
|
||||
Info = "info",
|
||||
Warning = "warning",
|
||||
Alarm = "alarm",
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user