2
0

🚸 (editor) Add graph gesture notification

This commit is contained in:
Baptiste Arnaud
2024-01-24 10:15:40 +01:00
parent d85a03f621
commit bf6c258edc
17 changed files with 154 additions and 59 deletions

View File

@@ -0,0 +1 @@
export const graphGestureNotficationKey = 'graphGestureNotification'

View File

@@ -0,0 +1,22 @@
import { GraphNavigation, User as PrismaUser } from '@typebot.io/prisma'
import { z } from '../../zod'
const displayedInAppNotificationsSchema = z.record(z.boolean())
export const userSchema = z.object({
id: z.string(),
createdAt: z.date(),
updatedAt: z.date(),
lastActivityAt: z.date(),
name: z.string().nullable(),
email: z.string().nullable(),
emailVerified: z.date().nullable(),
image: z.string().nullable(),
company: z.string().nullable(),
onboardingCategories: z.array(z.string()),
graphNavigation: z.nativeEnum(GraphNavigation),
preferredAppAppearance: z.string().nullable(),
displayedInAppNotifications: displayedInAppNotificationsSchema.nullable(),
}) satisfies z.ZodType<PrismaUser>
export type User = z.infer<typeof userSchema>

View File

@@ -13,3 +13,4 @@ export * from './features/workspace'
export * from './features/items'
export * from './features/analytics'
export * from './features/events'
export * from './features/user/schema'