2024-07-28 20:32:41 +08:00
|
|
|
import { MonitorInfo } from '../../../types/index.js';
|
|
|
|
import { MonitorModelSchema } from '../../prisma/zod/monitor.js';
|
2024-01-29 01:00:35 +08:00
|
|
|
|
|
|
|
export type MonitorInfoWithNotificationIds = MonitorInfo & {
|
|
|
|
notifications: { id: string }[];
|
|
|
|
};
|
|
|
|
|
2024-07-24 00:34:47 +08:00
|
|
|
export const monitorPublicInfoSchema = MonitorModelSchema.pick({
|
2024-01-29 01:00:35 +08:00
|
|
|
id: true,
|
|
|
|
name: true,
|
|
|
|
type: true,
|
2024-10-14 00:24:16 +08:00
|
|
|
trendingMode: true,
|
2024-01-29 01:00:35 +08:00
|
|
|
});
|