2
0

♻️ Remove @typebot.io/schemas from @typebot.io/lib

This commit is contained in:
Baptiste Arnaud
2024-03-15 16:32:29 +01:00
parent b53242ce6a
commit 5073be2439
186 changed files with 809 additions and 581 deletions

View File

@ -1,11 +1,11 @@
import { Plan, PrismaClient, WorkspaceRole } from '@typebot.io/prisma'
import { isDefined, isEmpty } from '@typebot.io/lib'
import { getChatsLimit } from '@typebot.io/lib/billing/getChatsLimit'
import { getChatsLimit } from '@typebot.io/billing/getChatsLimit'
import { promptAndSetEnvironment } from './utils'
import { Workspace } from '@typebot.io/schemas'
import { sendAlmostReachedChatsLimitEmail } from '@typebot.io/emails/src/emails/AlmostReachedChatsLimitEmail'
import { TelemetryEvent } from '@typebot.io/schemas/features/telemetry'
import { trackEvents } from '@typebot.io/lib/telemetry/trackEvents'
import { trackEvents } from '@typebot.io/telemetry/trackEvents'
import Stripe from 'stripe'
import { createId } from '@paralleldrive/cuid2'

View File

@ -1,6 +1,6 @@
import { PrismaClient } from '@typebot.io/prisma'
import { promptAndSetEnvironment } from './utils'
import { archiveResults } from '@typebot.io/lib/api/helpers/archiveResults'
import { archiveResults } from '@typebot.io/results/archiveResults'
import { Typebot } from '@typebot.io/schemas'
const prisma = new PrismaClient()

View File

@ -1,9 +1,6 @@
import Stripe from 'stripe'
import { promptAndSetEnvironment } from './utils'
import {
proChatTiers,
starterChatTiers,
} from '@typebot.io/lib/billing/constants'
import { proChatTiers, starterChatTiers } from '@typebot.io/billing/constants'
const chatsProductId = 'prod_MVXtq5sATQzIcM'

View File

@ -9,9 +9,9 @@ import {
resultWithAnswersSchema,
} from '@typebot.io/schemas'
import { byId } from '@typebot.io/lib'
import { parseResultHeader } from '@typebot.io/lib/results/parseResultHeader'
import { convertResultsToTableData } from '@typebot.io/lib/results/convertResultsToTableData'
import { parseColumnsOrder } from '@typebot.io/lib/results/parseColumnsOrder'
import { parseResultHeader } from '@typebot.io/results/parseResultHeader'
import { convertResultsToTableData } from '@typebot.io/results/convertResultsToTableData'
import { parseColumnsOrder } from '@typebot.io/results/parseColumnsOrder'
import { parseUniqueKey } from '@typebot.io/lib/parseUniqueKey'
import { unparse } from 'papaparse'
import { z } from 'zod'

View File

@ -53,6 +53,9 @@
"@clack/prompts": "^0.7.0",
"@paralleldrive/cuid2": "2.2.1",
"cli-progress": "^3.12.0",
"papaparse": "5.4.1"
"papaparse": "5.4.1",
"@typebot.io/results": "workspace:*",
"@typebot.io/billing": "workspace:*",
"@typebot.io/telemetry": "workspace:*"
}
}