feat(patient-connection-page demo added)

This commit is contained in:
2025-12-18 00:38:09 +05:30
parent 1fbe30242c
commit 3ad5bd633d
9 changed files with 977 additions and 23 deletions

View File

@@ -9,4 +9,5 @@ export * from "./user-types";
export * from "./databaseBackup-types";
export * from "./notifications-types";
export * from "./cloudStorage-types";
export * from "./payments-reports-types";
export * from "./payments-reports-types";
export * from "./patientConnection-types";

View File

@@ -0,0 +1,42 @@
import { CommunicationUncheckedCreateInputObjectSchema } from "@repo/db/usedSchemas";
import { z } from "zod";
/**
* Full Communication type (Prisma unchecked create input)
*/
export type Communication = z.infer<
typeof CommunicationUncheckedCreateInputObjectSchema
>;
/**
* Insert Communication
* - excludes auto-generated fields
*/
export const insertCommunicationSchema = (
CommunicationUncheckedCreateInputObjectSchema as unknown as z.ZodObject<any>
).omit({
id: true,
createdAt: true,
});
export type InsertCommunication = z.infer<
typeof insertCommunicationSchema
>;
/**
* Update Communication
* - excludes immutable fields
* - makes everything optional
*/
export const updateCommunicationSchema = (
CommunicationUncheckedCreateInputObjectSchema as unknown as z.ZodObject<any>
)
.omit({
id: true,
createdAt: true,
})
.partial();
export type UpdateCommunication = z.infer<
typeof updateCommunicationSchema
>;