bigbuffet-rw/packages/pl-api/lib/entities/directory/statistics-period.ts
2024-10-14 20:54:44 +02:00

12 lines
479 B
TypeScript

import * as v from 'valibot';
const directoryStatisticsPeriodSchema = v.object({
period: z.string().date(),
server_count: v.fallback(v.nullable(z.coerce.number()), null),
user_count: v.fallback(v.nullable(z.coerce.number()), null),
active_user_count: v.fallback(v.nullable(z.coerce.number()), null),
});
type DirectoryStatisticsPeriod = v.InferOutput<typeof directoryStatisticsPeriodSchema>;
export { directoryStatisticsPeriodSchema, type DirectoryStatisticsPeriod };