2
0

♻️ 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,13 +1,13 @@
import { getTestAsset } from '@/test/utils/playwright'
import test, { expect } from '@playwright/test'
import { createId } from '@paralleldrive/cuid2'
import { Plan } from 'db'
import { defaultSettings } from 'models'
import { Plan } from '@typebot.io/prisma'
import { defaultSettings } from '@typebot.io/schemas'
import {
createWorkspaces,
importTypebotInDatabase,
injectFakeResults,
} from 'utils/playwright/databaseActions'
} from '@typebot.io/lib/playwright/databaseActions'
test('should not start if chat limit is reached', async ({ page, context }) => {
await test.step('Free plan', async () => {

View File

@ -1,12 +1,12 @@
import prisma from '@/lib/prisma'
import { WorkspaceRole } from 'db'
import { WorkspaceRole } from '@typebot.io/prisma'
import {
sendAlmostReachedChatsLimitEmail,
sendReachedChatsLimitEmail,
} from 'emails'
import { Workspace } from 'models'
import { env, isDefined } from 'utils'
import { getChatsLimit } from 'utils/pricing'
} from '@typebot.io/emails'
import { Workspace } from '@typebot.io/schemas'
import { env, isDefined } from '@typebot.io/lib'
import { getChatsLimit } from '@typebot.io/lib/pricing'
const LIMIT_EMAIL_TRIGGER_PERCENT = 0.8