Skip to content

The Open Source DocuSign Alternative.

feat: adding the schema for the admin delete document mutation

Rohit Saluja884eab36eb6d
diff --git a/packages/trpc/server/admin-router/schema.ts b/packages/trpc/server/admin-router/schema.ts
index cfedb06ba..a26d92fa6 100644
--- a/packages/trpc/server/admin-router/schema.ts
+++ b/packages/trpc/server/admin-router/schema.ts
@@ -48,3 +48,10 @@ export const ZAdminDeleteUserMutationSchema = z.object({
});
export type TAdminDeleteUserMutationSchema = z.infer<typeof ZAdminDeleteUserMutationSchema>;
+
+export const ZAdminDeleteDocumentMutationSchema = z.object({
+ id: z.number().min(1),
+ userId: z.number(),
+});
+
+export type TAdminDeleteDocomentMutationSchema = z.infer<typeof ZAdminDeleteDocumentMutationSchema>;