mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-19 19:21:33 +10:00
ci: attempt to fix ci scripts by not importing prisma as type
This commit is contained in:
17
libs/dto/src/secrets/secrets.ts
Normal file
17
libs/dto/src/secrets/secrets.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import { idSchema } from "@reactive-resume/schema";
|
||||
import { createZodDto } from "nestjs-zod/dto";
|
||||
import { z } from "nestjs-zod/z";
|
||||
|
||||
export const secretsSchema = z.object({
|
||||
id: idSchema,
|
||||
password: z.string().nullable(),
|
||||
lastSignedIn: z.date().nullable(),
|
||||
verificationToken: z.string().nullable(),
|
||||
twoFactorSecret: z.string().nullable(),
|
||||
twoFactorBackupCodes: z.array(z.string()).default([]),
|
||||
refreshToken: z.string().nullable(),
|
||||
resetToken: z.string().nullable(),
|
||||
userId: idSchema,
|
||||
});
|
||||
|
||||
export class SecretsDto extends createZodDto(secretsSchema) {}
|
||||
Reference in New Issue
Block a user