mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-16 09:41:31 +10:00
ci: attempt to fix ci scripts by not importing prisma as type
This commit is contained in:
@ -1,8 +1,9 @@
|
||||
import type { Prisma } from "@prisma/client";
|
||||
import { idSchema } from "@reactive-resume/schema";
|
||||
import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "nestjs-zod/z";
|
||||
|
||||
import { secretsSchema } from "../secrets";
|
||||
|
||||
export const usernameSchema = z
|
||||
.string()
|
||||
.min(3)
|
||||
@ -28,4 +29,6 @@ export const userSchema = z.object({
|
||||
|
||||
export class UserDto extends createZodDto(userSchema) {}
|
||||
|
||||
export type UserWithSecrets = Prisma.UserGetPayload<{ include: { secrets: true } }>;
|
||||
export const userWithSecretsSchema = userSchema.merge(z.object({ secrets: secretsSchema }));
|
||||
|
||||
export class UserWithSecrets extends createZodDto(userWithSecretsSchema) {}
|
||||
|
||||
Reference in New Issue
Block a user