UNPKG

ratemypackage

Version:

RateMyPackage is a shared library designed to streamline development for the RateMyCampus project. It provides a collection of reusable types, interfaces, and utility functions to support both frontend and backend operations. By centralizing common logic

95 lines (94 loc) 2.86 kB
import { z } from "zod"; export declare const userSchema: z.ZodObject<{ email: z.ZodString; fullName: z.ZodString; password: z.ZodString; profilePhoto: z.ZodNullable<z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>>; }, "strip", z.ZodTypeAny, { email: string; fullName: string; password: string; profilePhoto?: File | null | undefined; }, { email: string; fullName: string; password: string; profilePhoto?: File | null | undefined; }>; export type User = z.infer<typeof userSchema>; export declare const uniSchema: z.ZodObject<{ name: z.ZodString; fee: z.ZodString; topField: z.ZodString; status: z.ZodString; mainCampus: z.ZodString; campuses: z.ZodString; logo: z.ZodType<File, z.ZodTypeDef, File>; coverPhoto: z.ZodType<File, z.ZodTypeDef, File>; }, "strip", z.ZodTypeAny, { status: string; name: string; fee: string; topField: string; mainCampus: string; campuses: string; logo: File; coverPhoto: File; }, { status: string; name: string; fee: string; topField: string; mainCampus: string; campuses: string; logo: File; coverPhoto: File; }>; export type University = z.infer<typeof uniSchema>; export declare const postSchema: z.ZodObject<{ content: z.ZodNullable<z.ZodOptional<z.ZodString>>; universityId: z.ZodNumber; userId: z.ZodNumber; photo: z.ZodNullable<z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>>; }, "strip", z.ZodTypeAny, { universityId: number; userId: number; content?: string | null | undefined; photo?: File | null | undefined; }, { universityId: number; userId: number; content?: string | null | undefined; photo?: File | null | undefined; }>; export type Post = z.infer<typeof postSchema>; export declare const commentSchema: z.ZodObject<{ comment: z.ZodString; userId: z.ZodNumber; postId: z.ZodNumber; }, "strip", z.ZodTypeAny, { userId: number; comment: string; postId: number; }, { userId: number; comment: string; postId: number; }>; export type Comment = z.infer<typeof commentSchema>; export declare const passwordSchema: z.ZodString; export type Password = z.infer<typeof passwordSchema>; export declare const editProfileSchema: z.ZodObject<{ fullName: z.ZodNullable<z.ZodOptional<z.ZodString>>; password: z.ZodNullable<z.ZodOptional<z.ZodString>>; profilePhoto: z.ZodNullable<z.ZodOptional<z.ZodType<File, z.ZodTypeDef, File>>>; }, "strip", z.ZodTypeAny, { fullName?: string | null | undefined; password?: string | null | undefined; profilePhoto?: File | null | undefined; }, { fullName?: string | null | undefined; password?: string | null | undefined; profilePhoto?: File | null | undefined; }>; export type EditProfile = z.infer<typeof editProfileSchema>;