Skip to content

TaskView is a self-hosted project and task management platform focused on clarity, ownership, and control. TaskView is built for teams that want a transparent, self-hosted alternative to SaaS task managers.

491 B
Raw Blame
import { z } from 'zod';
import { StringToNumber } from './app.types';

export const FetchAnalyticsDataSchema = z.object({
    startDate: z.string(),
    endDate: z.string(),
});

export type FetchAnalyticsDataArg = z.infer<typeof FetchAnalyticsDataSchema>;

export const FetchAnalyticsDataForProjectScheme = z.object({
    goalId: StringToNumber,
    dates: FetchAnalyticsDataSchema,
});

export type FetchAnalyticsDataForProjectScheme = z.infer<typeof FetchAnalyticsDataForProjectScheme>;