♻️ Re-organize workspace folders
This commit is contained in:
@@ -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', () => {
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { sendRequest } from 'utils'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const deleteCollaboratorQuery = (typebotId: string, userId: string) =>
|
||||
sendRequest({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { sendRequest } from 'utils'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const deleteInvitationQuery = (typebotId: string, email: string) =>
|
||||
sendRequest({
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CollaboratorsOnTypebots } from 'db'
|
||||
import { CollaboratorsOnTypebots } from '@typebot.io/prisma'
|
||||
|
||||
export type Collaborator = CollaboratorsOnTypebots & {
|
||||
user: {
|
||||
|
||||
Reference in New Issue
Block a user