♻️ Re-organize workspace folders
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { sendRequest } from 'utils'
|
||||
import { sendRequest } from '@typebot.io/lib'
|
||||
|
||||
export const deleteTypebotQuery = async (id: string) =>
|
||||
sendRequest({
|
||||
|
||||
@@ -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 }>({
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user