♻️ Remove @typebot.io/schemas from @typebot.io/lib
This commit is contained in:
@@ -8,7 +8,7 @@ import { z } from 'zod'
|
||||
import { createCheckoutSessionUrl } from './createCheckoutSession'
|
||||
import { isAdminWriteWorkspaceForbidden } from '@/features/workspace/helpers/isAdminWriteWorkspaceForbidden'
|
||||
import { env } from '@typebot.io/env'
|
||||
import { trackEvents } from '@typebot.io/lib/telemetry/trackEvents'
|
||||
import { trackEvents } from '@typebot.io/telemetry/trackEvents'
|
||||
|
||||
export const updateSubscription = authenticatedProcedure
|
||||
.meta({
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
createWorkspaces,
|
||||
deleteWorkspaces,
|
||||
injectFakeResults,
|
||||
} from '@typebot.io/lib/playwright/databaseActions'
|
||||
} from '@typebot.io/playwright/databaseActions'
|
||||
import { env } from '@typebot.io/env'
|
||||
|
||||
const usageWorkspaceId = createId()
|
||||
@@ -148,7 +148,7 @@ test('plan changes should work', async ({ page }) => {
|
||||
await expect(page.locator('text="$89"')).toBeVisible()
|
||||
await page.click('button >> text=Upgrade')
|
||||
await expect(
|
||||
page.locator('text="Workspace PRO plan successfully updated 🎉" >> nth=0')
|
||||
page.locator('text="Workspace PRO plan successfully updated" >> nth=0')
|
||||
).toBeVisible()
|
||||
|
||||
// Go to customer portal
|
||||
|
||||
@@ -11,7 +11,7 @@ import { StarterPlanPricingCard } from './StarterPlanPricingCard'
|
||||
import { ProPlanPricingCard } from './ProPlanPricingCard'
|
||||
import { useTranslate } from '@tolgee/react'
|
||||
import { StripeClimateLogo } from './StripeClimateLogo'
|
||||
import { guessIfUserIsEuropean } from '@typebot.io/lib/billing/guessIfUserIsEuropean'
|
||||
import { guessIfUserIsEuropean } from '@typebot.io/billing/guessIfUserIsEuropean'
|
||||
import { WorkspaceInApp } from '@/features/workspace/WorkspaceProvider'
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -17,8 +17,8 @@ import {
|
||||
Tr,
|
||||
} from '@chakra-ui/react'
|
||||
import { useTranslate } from '@tolgee/react'
|
||||
import { proChatTiers } from '@typebot.io/lib/billing/constants'
|
||||
import { formatPrice } from '@typebot.io/lib/billing/formatPrice'
|
||||
import { proChatTiers } from '@typebot.io/billing/constants'
|
||||
import { formatPrice } from '@typebot.io/billing/formatPrice'
|
||||
|
||||
type Props = {
|
||||
isOpen: boolean
|
||||
|
||||
@@ -14,9 +14,9 @@ import {
|
||||
import { Plan } from '@typebot.io/prisma'
|
||||
import { FeaturesList } from './FeaturesList'
|
||||
import { MoreInfoTooltip } from '@/components/MoreInfoTooltip'
|
||||
import { formatPrice } from '@typebot.io/lib/billing/formatPrice'
|
||||
import { formatPrice } from '@typebot.io/billing/formatPrice'
|
||||
import { ChatsProTiersModal } from './ChatsProTiersModal'
|
||||
import { prices } from '@typebot.io/lib/billing/constants'
|
||||
import { prices } from '@typebot.io/billing/constants'
|
||||
import { T, useTranslate } from '@tolgee/react'
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -10,8 +10,8 @@ import {
|
||||
import { Plan } from '@typebot.io/prisma'
|
||||
import { FeaturesList } from './FeaturesList'
|
||||
import { MoreInfoTooltip } from '@/components/MoreInfoTooltip'
|
||||
import { formatPrice } from '@typebot.io/lib/billing/formatPrice'
|
||||
import { prices } from '@typebot.io/lib/billing/constants'
|
||||
import { formatPrice } from '@typebot.io/billing/formatPrice'
|
||||
import { prices } from '@typebot.io/billing/constants'
|
||||
import { T, useTranslate } from '@tolgee/react'
|
||||
|
||||
type Props = {
|
||||
|
||||
@@ -12,7 +12,7 @@ import { AlertIcon } from '@/components/icons'
|
||||
import { WorkspaceInApp } from '@/features/workspace/WorkspaceProvider'
|
||||
import { parseNumberWithCommas } from '@typebot.io/lib'
|
||||
import { defaultQueryOptions, trpc } from '@/lib/trpc'
|
||||
import { getChatsLimit } from '@typebot.io/lib/billing/getChatsLimit'
|
||||
import { getChatsLimit } from '@typebot.io/billing/getChatsLimit'
|
||||
import { useTranslate } from '@tolgee/react'
|
||||
|
||||
type Props = {
|
||||
|
||||
Reference in New Issue
Block a user