2024-10-13 15:25:30 -07:00
|
|
|
import * as v from 'valibot';
|
2024-08-30 10:28:12 -07:00
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
const directoryStatisticsPeriodSchema = v.object({
|
2024-08-30 10:28:12 -07:00
|
|
|
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),
|
|
|
|
});
|
|
|
|
|
2024-10-13 15:25:30 -07:00
|
|
|
type DirectoryStatisticsPeriod = v.InferOutput<typeof directoryStatisticsPeriodSchema>;
|
2024-08-30 10:28:12 -07:00
|
|
|
|
|
|
|
export { directoryStatisticsPeriodSchema, type DirectoryStatisticsPeriod };
|