ci: attempt to fix ci scripts by not importing prisma as type

This commit is contained in:
Amruth Pillai
2023-11-24 01:48:14 +01:00
parent 12b52af121
commit a4843cf7e6
6 changed files with 28 additions and 7 deletions

View 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) {}