2023-08-17 09:39:11 +02:00
|
|
|
import { CollaborationType, CollaboratorsOnTypebots } from '@typebot.io/prisma'
|
2023-12-22 09:13:53 +01:00
|
|
|
import { z } from '../zod'
|
2023-08-17 09:39:11 +02:00
|
|
|
|
|
|
|
export const collaboratorSchema = z.object({
|
|
|
|
type: z.nativeEnum(CollaborationType),
|
|
|
|
userId: z.string(),
|
|
|
|
typebotId: z.string(),
|
|
|
|
createdAt: z.date(),
|
|
|
|
updatedAt: z.date(),
|
|
|
|
}) satisfies z.ZodType<CollaboratorsOnTypebots>
|