♻️ 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,14 +1,14 @@
import test, { expect } from '@playwright/test'
import { createId } from '@paralleldrive/cuid2'
import { CollaborationType, Plan, WorkspaceRole } from 'db'
import { CollaborationType, Plan, WorkspaceRole } from '@typebot.io/prisma'
import prisma from '@/lib/prisma'
import { InputBlockType, defaultTextInputOptions } from 'models'
import { InputBlockType, defaultTextInputOptions } from '@typebot.io/schemas'
import {
createTypebots,
injectFakeResults,
} from 'utils/playwright/databaseActions'
import { parseDefaultGroupWithBlock } from 'utils/playwright/databaseHelpers'
import { userId } from 'utils/playwright/databaseSetup'
} from '@typebot.io/lib/playwright/databaseActions'
import { parseDefaultGroupWithBlock } from '@typebot.io/lib/playwright/databaseHelpers'
import { userId } from '@typebot.io/lib/playwright/databaseSetup'
import { createFolder } from '@/test/utils/databaseActions'
test.describe('Typebot owner', () => {

View File

@@ -17,7 +17,7 @@ import { ChevronLeftIcon } from '@/components/icons'
import { useToast } from '@/hooks/useToast'
import { useTypebot } from '@/features/editor'
import { useWorkspace } from '@/features/workspace'
import { CollaborationType, WorkspaceRole } from 'db'
import { CollaborationType, WorkspaceRole } from '@typebot.io/prisma'
import React, { FormEvent, useState } from 'react'
import { CollaboratorItem } from './CollaboratorButton'
import { EmojiOrImageIcon } from '@/components/EmojiOrImageIcon'

View File

@@ -10,7 +10,7 @@ import {
Text,
useColorModeValue,
} from '@chakra-ui/react'
import { CollaborationType } from 'db'
import { CollaborationType } from '@typebot.io/prisma'
import React from 'react'
import { convertCollaborationTypeEnumToReadable } from './CollaborationList'

View File

@@ -1,7 +1,7 @@
import { fetcher } from '@/utils/helpers'
import { Invitation } from 'db'
import { Invitation } from '@typebot.io/prisma'
import useSWR from 'swr'
import { env } from 'utils'
import { env } from '@typebot.io/lib'
export const useInvitations = ({
typebotId,

View File

@@ -1,4 +1,4 @@
import { sendRequest } from 'utils'
import { sendRequest } from '@typebot.io/lib'
export const deleteCollaboratorQuery = (typebotId: string, userId: string) =>
sendRequest({

View File

@@ -1,4 +1,4 @@
import { sendRequest } from 'utils'
import { sendRequest } from '@typebot.io/lib'
export const deleteInvitationQuery = (typebotId: string, email: string) =>
sendRequest({

View File

@@ -1,5 +1,5 @@
import { CollaborationType } from 'db'
import { sendRequest } from 'utils'
import { CollaborationType } from '@typebot.io/prisma'
import { sendRequest } from '@typebot.io/lib'
export const sendInvitationQuery = (
typebotId: string,

View File

@@ -1,5 +1,5 @@
import { CollaboratorsOnTypebots } from 'db'
import { sendRequest } from 'utils'
import { CollaboratorsOnTypebots } from '@typebot.io/prisma'
import { sendRequest } from '@typebot.io/lib'
export const updateCollaboratorQuery = (
typebotId: string,

View File

@@ -1,5 +1,5 @@
import { Invitation } from 'db'
import { sendRequest } from 'utils'
import { Invitation } from '@typebot.io/prisma'
import { sendRequest } from '@typebot.io/lib'
export const updateInvitationQuery = (
typebotId: string,

View File

@@ -1,4 +1,4 @@
import { CollaboratorsOnTypebots } from 'db'
import { CollaboratorsOnTypebots } from '@typebot.io/prisma'
export type Collaborator = CollaboratorsOnTypebots & {
user: {