bigbuffet-rw/packages/pl-api/lib/entities/directory/statistics-period.ts
marcin mikołajczak db19522a54 pl-api: add server directory client
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2024-08-30 19:28:12 +02:00

12 lines
447 B
TypeScript

import { z } from 'zod';
const directoryStatisticsPeriodSchema = z.object({
period: z.string().date(),
server_count: z.coerce.number().nullable().catch(null),
user_count: z.coerce.number().nullable().catch(null),
active_user_count: z.coerce.number().nullable().catch(null),
});
type DirectoryStatisticsPeriod = z.infer<typeof directoryStatisticsPeriodSchema>;
export { directoryStatisticsPeriodSchema, type DirectoryStatisticsPeriod };