mirror of
https://github.com/SkalaraAI/beta.git
synced 2025-04-09 15:00:20 -04:00
16 lines
404 B
TypeScript
16 lines
404 B
TypeScript
import { z } from "zod";
|
|
|
|
export const taskSchema = z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
description: z.string(),
|
|
feature_name: z.string().nullable(),
|
|
feature_id: z.string().nullable(),
|
|
feature: z.any(),
|
|
project: z.any(),
|
|
status: z.enum(["backlog", "todo", "in_progress", "done"]).optional(),
|
|
priority: z.string().nullable(),
|
|
});
|
|
|
|
export type Task = z.infer<typeof taskSchema>;
|