🚸 (editor) Add graph gesture notification
This commit is contained in:
1
packages/schemas/features/user/constants.ts
Normal file
1
packages/schemas/features/user/constants.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const graphGestureNotficationKey = 'graphGestureNotification'
|
||||
22
packages/schemas/features/user/schema.ts
Normal file
22
packages/schemas/features/user/schema.ts
Normal 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>
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user