♻️ Re-organize workspace folders
This commit is contained in:
@@ -9,8 +9,8 @@ import prisma from '@/lib/prisma'
|
||||
import { Provider } from 'next-auth/providers'
|
||||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
import { CustomAdapter } from './adapter'
|
||||
import { User } from 'db'
|
||||
import { env, getAtPath, isDefined, isNotEmpty } from 'utils'
|
||||
import { User } from '@typebot.io/prisma'
|
||||
import { env, getAtPath, isDefined, isNotEmpty } from '@typebot.io/lib'
|
||||
import { mockedUser } from '@/features/auth'
|
||||
import { getNewUserInvitations } from '@/features/auth/api'
|
||||
import { sendVerificationRequest } from './sendVerificationRequest'
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
// Forked from https://github.com/nextauthjs/adapters/blob/main/packages/prisma/src/index.ts
|
||||
import { PrismaClient, Prisma, WorkspaceRole, Session } from 'db'
|
||||
import {
|
||||
PrismaClient,
|
||||
Prisma,
|
||||
WorkspaceRole,
|
||||
Session,
|
||||
} from '@typebot.io/prisma'
|
||||
import type { Adapter, AdapterUser } from 'next-auth/adapters'
|
||||
import { createId } from '@paralleldrive/cuid2'
|
||||
import { generateId } from 'utils'
|
||||
import { generateId } from '@typebot.io/lib'
|
||||
import { parseWorkspaceDefaultPlan } from '@/features/workspace'
|
||||
import {
|
||||
getNewUserInvitations,
|
||||
convertInvitationsToCollaborations,
|
||||
joinWorkspaces,
|
||||
} from '@/features/auth/api'
|
||||
import { sendTelemetryEvents } from 'utils/telemetry/sendTelemetryEvent'
|
||||
import { TelemetryEvent } from 'models/features/telemetry'
|
||||
import { sendTelemetryEvents } from '@typebot.io/lib/telemetry/sendTelemetryEvent'
|
||||
import { TelemetryEvent } from '@typebot.io/schemas/features/telemetry'
|
||||
|
||||
export function CustomAdapter(p: PrismaClient): Adapter {
|
||||
return {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EmailConfig } from 'next-auth/providers/email'
|
||||
import { sendMagicLinkEmail } from 'emails'
|
||||
import { sendMagicLinkEmail } from '@typebot.io/emails'
|
||||
|
||||
type Props = {
|
||||
identifier: string
|
||||
|
||||
Reference in New Issue
Block a user