UNPKG

@bernierllc/todo-list

Version:

Pure todo list business logic and management utilities for @bernierllc packages

215 lines 6.85 kB
import { z } from 'zod'; /** * Task type validation schema */ export declare const TaskTypeSchema: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodString; icon: z.ZodString; defaultPriority: z.ZodEnum<["urgent", "high", "normal"]>; }, "strip", z.ZodTypeAny, { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }, { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }>; /** * Create task request validation schema */ export declare const CreateTaskRequestSchema: z.ZodObject<{ userId: z.ZodString; groupId: z.ZodOptional<z.ZodString>; type: z.ZodString; title: z.ZodString; description: z.ZodString; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal"]>>; dueDate: z.ZodOptional<z.ZodString>; relatedId: z.ZodOptional<z.ZodString>; actionUrl: z.ZodOptional<z.ZodString>; canCompleteDirectly: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { description: string; type: string; userId: string; title: string; canCompleteDirectly: boolean; groupId?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDate?: string | undefined; relatedId?: string | undefined; actionUrl?: string | undefined; }, { description: string; type: string; userId: string; title: string; groupId?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDate?: string | undefined; relatedId?: string | undefined; actionUrl?: string | undefined; canCompleteDirectly?: boolean | undefined; }>; /** * Update task request validation schema */ export declare const UpdateTaskRequestSchema: z.ZodObject<{ title: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal"]>>; dueDate: z.ZodOptional<z.ZodString>; status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed"]>>; actionUrl: z.ZodOptional<z.ZodString>; canCompleteDirectly: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { description?: string | undefined; status?: "pending" | "in-progress" | "completed" | undefined; title?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDate?: string | undefined; actionUrl?: string | undefined; canCompleteDirectly?: boolean | undefined; }, { description?: string | undefined; status?: "pending" | "in-progress" | "completed" | undefined; title?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDate?: string | undefined; actionUrl?: string | undefined; canCompleteDirectly?: boolean | undefined; }>; /** * Task completion request validation schema */ export declare const TaskCompletionRequestSchema: z.ZodObject<{ completedBy: z.ZodString; notes: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { completedBy: string; notes?: string | undefined; }, { completedBy: string; notes?: string | undefined; }>; /** * Task filters validation schema */ export declare const TaskFiltersSchema: z.ZodObject<{ userId: z.ZodOptional<z.ZodString>; groupId: z.ZodOptional<z.ZodString>; type: z.ZodOptional<z.ZodString>; priority: z.ZodOptional<z.ZodEnum<["urgent", "high", "normal"]>>; status: z.ZodOptional<z.ZodEnum<["pending", "in-progress", "completed"]>>; dueDateFrom: z.ZodOptional<z.ZodString>; dueDateTo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { status?: "pending" | "in-progress" | "completed" | undefined; type?: string | undefined; userId?: string | undefined; groupId?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDateFrom?: string | undefined; dueDateTo?: string | undefined; }, { status?: "pending" | "in-progress" | "completed" | undefined; type?: string | undefined; userId?: string | undefined; groupId?: string | undefined; priority?: "urgent" | "high" | "normal" | undefined; dueDateFrom?: string | undefined; dueDateTo?: string | undefined; }>; /** * Task validation schema */ export declare const TaskSchema: z.ZodObject<{ id: z.ZodString; userId: z.ZodString; groupId: z.ZodOptional<z.ZodString>; type: z.ZodObject<{ id: z.ZodString; name: z.ZodString; description: z.ZodString; icon: z.ZodString; defaultPriority: z.ZodEnum<["urgent", "high", "normal"]>; }, "strip", z.ZodTypeAny, { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }, { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }>; title: z.ZodString; description: z.ZodString; priority: z.ZodEnum<["urgent", "high", "normal"]>; dueDate: z.ZodOptional<z.ZodString>; status: z.ZodEnum<["pending", "in-progress", "completed"]>; relatedId: z.ZodOptional<z.ZodString>; actionUrl: z.ZodOptional<z.ZodString>; canCompleteDirectly: z.ZodBoolean; createdAt: z.ZodString; updatedAt: z.ZodString; completedAt: z.ZodOptional<z.ZodString>; completedBy: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; description: string; status: "pending" | "in-progress" | "completed"; type: { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }; userId: string; title: string; priority: "urgent" | "high" | "normal"; canCompleteDirectly: boolean; createdAt: string; updatedAt: string; groupId?: string | undefined; dueDate?: string | undefined; relatedId?: string | undefined; actionUrl?: string | undefined; completedBy?: string | undefined; completedAt?: string | undefined; }, { id: string; description: string; status: "pending" | "in-progress" | "completed"; type: { id: string; name: string; description: string; icon: string; defaultPriority: "urgent" | "high" | "normal"; }; userId: string; title: string; priority: "urgent" | "high" | "normal"; canCompleteDirectly: boolean; createdAt: string; updatedAt: string; groupId?: string | undefined; dueDate?: string | undefined; relatedId?: string | undefined; actionUrl?: string | undefined; completedBy?: string | undefined; completedAt?: string | undefined; }>; //# sourceMappingURL=schemas.d.ts.map