♻️ 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,5 +1,5 @@
import { Typebot } from 'models'
import { sendRequest } from 'utils'
import { Typebot } from '@typebot.io/schemas'
import { sendRequest } from '@typebot.io/lib'
export const createTypebotQuery = async ({
folderId,

View File

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

View File

@@ -1,5 +1,5 @@
import { Typebot } from 'models'
import { sendRequest } from 'utils'
import { Typebot } from '@typebot.io/schemas'
import { sendRequest } from '@typebot.io/lib'
export const getTypebotQuery = (typebotId: string) =>
sendRequest<{ typebot: Typebot }>({

View File

@@ -1,14 +1,19 @@
import { duplicateWebhookQuery } from '@/features/blocks/integrations/webhook'
import { createId } from '@paralleldrive/cuid2'
import { Plan, Prisma } from 'db'
import { Plan, Prisma } from '@typebot.io/prisma'
import {
ChoiceInputBlock,
ConditionBlock,
LogicBlockType,
Typebot,
} from 'models'
import { JumpBlock } from 'models/features/blocks/logic/jump'
import { blockHasItems, isDefined, isWebhookBlock, sendRequest } from 'utils'
} from '@typebot.io/schemas'
import { JumpBlock } from '@typebot.io/schemas/features/blocks/logic/jump'
import {
blockHasItems,
isDefined,
isWebhookBlock,
sendRequest,
} from '@typebot.io/lib'
export const importTypebotQuery = async (typebot: Typebot, userPlan: Plan) => {
const { typebot: newTypebot, webhookIdsMapping } = duplicateTypebot(