Download src/dtos/analytics.dto.ts from lynfera/api: direct link, hf CLI and curl.
- Browser
- Download file 270 Bytes
-
https://huggingface.co/spaces/lynfera/api/resolve/main/src/dtos/analytics.dto.ts
- Command line
-
hf download hf://spaces/lynfera/api/src/dtos/analytics.dto.ts
-
curl -L -o analytics.dto.ts https://huggingface.co/spaces/lynfera/api/resolve/main/src/dtos/analytics.dto.ts
270 Bytes
| import z from "zod"; | |
| export const AnalyticsQuerySchema = z.object({ | |
| range: z.string().optional(), | |
| interval: z.string().optional(), | |
| limit: z.coerce.number().int().min(1).max(100).default(10), | |
| }); | |
| export type AnalyticsQueryDTO = z.infer<typeof AnalyticsQuerySchema>; | |