2024-02-23 10:47:01 +00:00
|
|
|
import { z } from 'zod';
|
|
|
|
|
|
|
|
|
|
import { ZSiteSettingsBannerSchema } from './schemas/banner';
|
2024-06-03 19:38:52 +00:00
|
|
|
import { ZSiteSettingsTelemetrySchema } from './schemas/telemetry';
|
2024-02-23 10:47:01 +00:00
|
|
|
|
2024-06-03 19:38:52 +00:00
|
|
|
export const ZSiteSettingSchema = z.union([
|
|
|
|
|
ZSiteSettingsBannerSchema,
|
|
|
|
|
ZSiteSettingsTelemetrySchema,
|
|
|
|
|
]);
|
2024-02-23 10:47:01 +00:00
|
|
|
|
|
|
|
|
export type TSiteSettingSchema = z.infer<typeof ZSiteSettingSchema>;
|
|
|
|
|
|
|
|
|
|
export const ZSiteSettingsSchema = z.array(ZSiteSettingSchema);
|
|
|
|
|
|
|
|
|
|
export type TSiteSettingsSchema = z.infer<typeof ZSiteSettingsSchema>;
|