♻️ Re-organize workspace folders

This commit is contained in:
Baptiste Arnaud
2023-03-15 08:35:16 +01:00
parent 25c367901f
commit cbc8194f19
987 changed files with 2716 additions and 2770 deletions

View File

@@ -1,7 +1,7 @@
import prisma from '@/lib/prisma'
import { deleteFiles } from '@/utils/api/storage'
import { Prisma } from 'db'
import { InputBlockType, Typebot } from 'models'
import { Prisma } from '@typebot.io/prisma'
import { InputBlockType, Typebot } from '@typebot.io/schemas'
const batchSize = 100

View File

@@ -1,7 +1,7 @@
import { getTypebot } from '@/features/typebot/api/utils/getTypebot'
import { authenticatedProcedure } from '@/utils/server/trpc'
import { TRPCError } from '@trpc/server'
import { Typebot } from 'models'
import { Typebot } from '@typebot.io/schemas'
import { z } from 'zod'
import { archiveResults } from '../archiveResults'

View File

@@ -1,7 +1,7 @@
import { getTypebot } from '@/features/typebot/api/utils/getTypebot'
import prisma from '@/lib/prisma'
import { authenticatedProcedure } from '@/utils/server/trpc'
import { logSchema } from 'models'
import { logSchema } from '@typebot.io/schemas'
import { z } from 'zod'
export const getResultLogsProcedure = authenticatedProcedure

View File

@@ -2,7 +2,7 @@ import { getTypebot } from '@/features/typebot/api/utils/getTypebot'
import prisma from '@/lib/prisma'
import { authenticatedProcedure } from '@/utils/server/trpc'
import { TRPCError } from '@trpc/server'
import { ResultWithAnswers, resultWithAnswersSchema } from 'models'
import { ResultWithAnswers, resultWithAnswersSchema } from '@typebot.io/schemas'
import { z } from 'zod'
const maxLimit = 200