Skip to content

Commit

Permalink
📝 Migrate from Docusaurus to Mintlify (#1115)
Browse files Browse the repository at this point in the history
Closes #868
  • Loading branch information
baptisteArno authored Dec 22, 2023
1 parent 512bb09 commit 1e5fa5a
Show file tree
Hide file tree
Showing 450 changed files with 49,589 additions and 104,854 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Collect your **Results** and get insights:
Built for **developers**:

- 🔓 No vendor-locking. Features built with flexibility in mind.
- 💻 Easy-to-use [APIs](https://docs.typebot.io/api).
- 💻 Easy-to-use [APIs](https://docs.typebot.io/api-reference).

## Getting started with Typebot

Expand Down
4 changes: 2 additions & 2 deletions apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"@giphy/js-util": "5.0.0",
"@giphy/react-components": "7.1.0",
"@googleapis/drive": "8.0.0",
"@lilyrose2798/trpc-openapi": "^1.3.9",
"@paralleldrive/cuid2": "2.2.1",
"@sentry/nextjs": "7.77.0",
"@tanstack/react-query": "4.29.19",
Expand Down Expand Up @@ -90,7 +91,6 @@
"svg-round-corners": "0.4.1",
"swr": "2.2.0",
"tinycolor2": "1.6.0",
"trpc-openapi": "1.2.0",
"unsplash-js": "7.0.18",
"use-debounce": "9.0.4"
},
Expand All @@ -102,9 +102,9 @@
"@typebot.io/forge-schemas": "workspace:*",
"@typebot.io/lib": "workspace:*",
"@typebot.io/prisma": "workspace:*",
"@typebot.io/radar": "workspace:*",
"@typebot.io/schemas": "workspace:*",
"@typebot.io/tsconfig": "workspace:*",
"@typebot.io/radar": "workspace:*",
"@types/canvas-confetti": "1.6.0",
"@types/jsonwebtoken": "9.0.2",
"@types/micro-cors": "0.1.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/features/billing/api/getSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getSubscription = authenticatedProcedure
)
.output(
z.object({
subscription: subscriptionSchema.or(z.null()),
subscription: subscriptionSchema.or(z.null().openapi({ type: 'string' })),
})
)
.query(async ({ input: { workspaceId }, ctx: { user } }) => {
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/billing/api/getUsage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export const getUsage = authenticatedProcedure
})
.input(
z.object({
workspaceId: z.string(),
workspaceId: z
.string()
.describe(
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
),
})
)
.output(z.object({ totalChatsUsed: z.number(), resetsAt: z.date() }))
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/billing/api/listInvoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export const listInvoices = authenticatedProcedure
})
.input(
z.object({
workspaceId: z.string(),
workspaceId: z
.string()
.describe(
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
),
})
)
.output(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Plan } from '@typebot.io/prisma'
import { TextLink } from '@/components/TextLink'
import { useToast } from '@/hooks/useToast'
import { trpc } from '@/lib/trpc'
import { Workspace } from '@typebot.io/schemas'
import { PreCheckoutModal, PreCheckoutModalProps } from './PreCheckoutModal'
import { useState } from 'react'
import { ParentModalProvider } from '@/features/graph/providers/ParentModalProvider'
Expand All @@ -13,9 +12,10 @@ import { ProPlanPricingCard } from './ProPlanPricingCard'
import { useTranslate } from '@tolgee/react'
import { StripeClimateLogo } from './StripeClimateLogo'
import { guessIfUserIsEuropean } from '@typebot.io/lib/billing/guessIfUserIsEuropean'
import { WorkspaceInApp } from '@/features/workspace/WorkspaceProvider'

type Props = {
workspace: Workspace
workspace: WorkspaceInApp
excludedPlans?: ('STARTER' | 'PRO')[]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ import {
Tooltip,
} from '@chakra-ui/react'
import { AlertIcon } from '@/components/icons'
import { Workspace } from '@typebot.io/prisma'
import React from 'react'
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 { useTranslate } from '@tolgee/react'

type Props = {
workspace: Workspace
workspace: WorkspaceInApp
}

export const UsageProgressBars = ({ workspace }: Props) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/builder/src/features/graph/helpers/getHelpDocUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const getHelpDocUrl = (
case IntegrationBlockType.CHATWOOT:
return 'https://docs.typebot.io/editor/blocks/integrations/chatwoot'
case IntegrationBlockType.GOOGLE_ANALYTICS:
return 'https://docs.typebot.io/editor/blocks/integrations/ga'
return 'https://docs.typebot.io/editor/blocks/integrations/google-analytics'
case IntegrationBlockType.GOOGLE_SHEETS:
return 'https://docs.typebot.io/editor/blocks/integrations/google-sheets'
case IntegrationBlockType.ZAPIER:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const ApiPreviewInstructions = (props: StackProps) => {
<OrderedList spacing={6} px="1">
<ListItem>
All your requests need to be authenticated with an API token.{' '}
<TextLink href="https://docs.typebot.io/api/builder/authenticate">
<TextLink href="https://docs.typebot.io/api-reference/authentication">
See instructions
</TextLink>
.
Expand Down Expand Up @@ -90,7 +90,7 @@ export const ApiPreviewInstructions = (props: StackProps) => {
<Text fontSize="sm" pl="1">
Check out the{' '}
<TextLink
href="https://docs.typebot.io/api/start-preview-chat"
href="https://docs.typebot.io/api-reference/chat/start-preview-chat"
isExternal
>
API reference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const WhatsAppPreviewInstructions = (props: StackProps) => {
<Text fontSize="sm">Need help?</Text>
<Button
as={Link}
href="https://docs.typebot.io/embed/whatsapp"
href="https://docs.typebot.io/deploy/whatsapp/overview"
leftIcon={<BuoyIcon />}
size="sm"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export const PublishButton = ({
<Stack spacing="3">
<Text>
You are about to a deploy a version of your bot with an updated
engine. (Typebot V6).
engine (Typebot V6).
</Text>
<Text fontWeight="bold">
Make sure to check out all the{' '}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ export const ApiModal = ({
</OrderedList>
<Text fontSize="sm" colorScheme="gray">
Check out the{' '}
<TextLink href="https://docs.typebot.io/api/start-chat" isExternal>
<TextLink
href="https://docs.typebot.io/api-reference/chat/start-chat"
isExternal
>
API reference
</TextLink>{' '}
for more information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ export const WebflowPopupInstructions = () => {
</OrderedList>
<Text fontSize="sm" colorScheme="gray" pl="5">
Check out the{' '}
<TextLink href="https://docs.typebot.io/embed/webflow#popup" isExternal>
<TextLink
href="https://docs.typebot.io/deploy/web/webflow#popup"
isExternal
>
Webflow embed documentation
</TextLink>{' '}
for more options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ const Requirements = () => (
<Text>
Make sure you have{' '}
<TextLink
href="https://docs.typebot.io/embed/whatsapp/create-meta-app"
href="https://docs.typebot.io/deploy/whatsapp/create-meta-app"
isExternal
>
created a WhatsApp Meta app
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/results/api/deleteResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export const deleteResults = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
resultIds: z
.string()
.describe(
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/results/api/getResult.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ export const getResult = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
resultId: z.string(),
})
)
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/results/api/getResultLogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export const getResultLogs = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
resultId: z.string(),
})
)
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/results/api/getResults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ export const getResults = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
limit: z.coerce.number().min(1).max(maxLimit).default(50),
cursor: z.string().optional(),
})
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/typebot/api/deleteTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ export const deleteTypebot = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
})
)
.output(
Expand Down
18 changes: 13 additions & 5 deletions apps/builder/src/features/typebot/api/getPublishedTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ export const getPublishedTypebot = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
migrateToLatestVersion: z
.boolean()
.optional()
.default(false)
.describe(
'If enabled, the typebot will be converted to the latest schema version'
),
Expand All @@ -36,11 +41,14 @@ export const getPublishedTypebot = authenticatedProcedure
z.object({
publishedTypebot: publicTypebotSchema.nullable(),
version: z
.union([
publicTypebotSchemaV5._def.schema.shape.version,
publicTypebotSchemaV6.shape.version,
.enum([
...publicTypebotSchemaV5._def.schema.shape.version._def.values,
publicTypebotSchemaV6.shape.version._def.value,
])
.optional(),
.optional()
.describe(
'Provides the version the published bot was migrated from if `migrateToLatestVersion` is set to `true`.'
),
})
)
.query(
Expand Down
7 changes: 6 additions & 1 deletion apps/builder/src/features/typebot/api/getTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,15 @@ export const getTypebot = publicProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
migrateToLatestVersion: z
.boolean()
.optional()
.default(false)
.describe(
'If enabled, the typebot will be converted to the latest schema version'
),
Expand Down
32 changes: 23 additions & 9 deletions apps/builder/src/features/typebot/api/importTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,24 @@ const omittedProps = {
const importingTypebotSchema = z.preprocess(
preprocessTypebot,
z.discriminatedUnion('version', [
typebotV5Schema._def.schema.omit(omittedProps).extend({
resultsTablePreferences: resultsTablePreferencesSchema.nullish(),
selectedThemeTemplateId: z.string().nullish(),
}),
typebotV6Schema.omit(omittedProps).extend({
resultsTablePreferences: resultsTablePreferencesSchema.nullish(),
selectedThemeTemplateId: z.string().nullish(),
}),
typebotV6Schema
.omit(omittedProps)
.extend({
resultsTablePreferences: resultsTablePreferencesSchema.nullish(),
selectedThemeTemplateId: z.string().nullish(),
})
.openapi({
title: 'Typebot V6',
}),
typebotV5Schema._def.schema
.omit(omittedProps)
.extend({
resultsTablePreferences: resultsTablePreferencesSchema.nullish(),
selectedThemeTemplateId: z.string().nullish(),
})
.openapi({
title: 'Typebot V5',
}),
])
)

Expand Down Expand Up @@ -82,7 +92,11 @@ export const importTypebot = authenticatedProcedure
})
.input(
z.object({
workspaceId: z.string(),
workspaceId: z
.string()
.describe(
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
),
typebot: importingTypebotSchema,
})
)
Expand Down
11 changes: 10 additions & 1 deletion apps/builder/src/features/typebot/api/listTypebots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ export const listTypebots = authenticatedProcedure
tags: ['Typebot'],
},
})
.input(z.object({ workspaceId: z.string(), folderId: z.string().optional() }))
.input(
z.object({
workspaceId: z
.string()
.describe(
'[Where to find my workspace ID?](../how-to#how-to-find-my-workspaceid)'
),
folderId: z.string().optional(),
})
)
.output(
z.object({
typebots: z.array(
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/typebot/api/publishTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export const publishTypebot = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
})
)
.output(
Expand Down
6 changes: 5 additions & 1 deletion apps/builder/src/features/typebot/api/unpublishTypebot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ export const unpublishTypebot = authenticatedProcedure
})
.input(
z.object({
typebotId: z.string(),
typebotId: z
.string()
.describe(
"[Where to find my bot's ID?](../how-to#how-to-find-my-typebotid)"
),
})
)
.output(
Expand Down
Loading

3 comments on commit 1e5fa5a

@vercel
Copy link

@vercel vercel bot commented on 1e5fa5a Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

landing-page-v2 – ./apps/landing-page

landing-page-v2-git-main-typebot-io.vercel.app
home.typebot.io
landing-page-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1e5fa5a Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1e5fa5a Dec 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

viewer-v2 – ./apps/viewer

team.cr8.ai
triprint.my
wolf.cr8.ai
ai.meant.com
alphamen.pro
bet7k.online
bot.afric.ai
bot.grace.bj
bot.tobb.pro
chatgov.site
cinecorn.com
diversao.net
ezbooking.ai
gniorder.com
help.taxt.co
kusamint.com
p18bm940.fun
psmix.online
receita.info
rhino.cr8.ai
sheep.cr8.ai
headsbet.info
implant35.com
majie.move.sg
payforbet.com
rabbit.cr8.ai
saquegov.site
shop.mexwa.my
signup.cr8.ai
start.taxt.co
thegymgame.it
theusm.com.br
turkey.cr8.ai
vhpage.cr8.ai
vitamyway.com
webwhats.chat
whatchat.site
www.wiccom.it
acessovip.shop
adsgrow.com.br
am.nigerias.io
an.nigerias.io
app.yvon.earth
ar.nigerias.io
bot.enreso.org
bot.mail2wa.me
bot.rslabs.pro
bot.share5.net
bot.sussmeg.hu
bot.wachap.app
bots.bng.tools
bots.bridge.ai
chad.gocto.com
chat.ftplay.me
chat.hayuri.id
chat.uprize.hu
chatgpt.lam.ee
chicken.cr8.ai
debitozero.com
drayumi.social
gollum.riku.ai
gsbulletin.com
journey.cr8.ai
kopibayane.com
panther.cr7.ai
panther.cr8.ai
pay.sifuim.com
penguin.cr8.ai
petaikorea.com
privetvplus.me
viewer-v2-typebot-io.vercel.app
mdb.assessoria.carreirinha.progenbr.com
chrome-os-inquiry-system.itschromeos.com
mdb.assessoria.paulomarques.progenbr.com
viewer-v2-git-main-typebot-io.vercel.app
main-menu-for-itschromeos.itschromeos.com
mdb.assessoria.qrcode.ademir.progenbr.com
mdb.assessoria.qrcode.arthur.progenbr.com
mdb.assessoria.qrcode.danilo.progenbr.com
mdb.assessoria.qrcode.marcao.progenbr.com
mdb.assessoria.qrcode.marcio.progenbr.com
mdb.assessoria.qrcode.aloisio.progenbr.com
mdb.assessoria.qrcode.girotto.progenbr.com
mdb.assessoria.qrcode.marinho.progenbr.com
mdb.assessoria.qrcode.rodrigo.progenbr.com
mdb.assessoria.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.desideri.progenbr.com
mdb.assessoria.qrcode.fernanda.progenbr.com
mdb.assessoria.qrcode.jbatista.progenbr.com
mdb.assessoria.qrcode.mauricio.progenbr.com
mdb.assessoria.fernanda.regional.progenbr.com
mdb.assessoria.qrcode.boaventura.progenbr.com
mdb.assessoria.qrcode.jtrebesqui.progenbr.com
mdb.assessoria.qrcode.carreirinha.progenbr.com
mdb.assessoria.qrcode.paulomarques.progenbr.com
mdb.assessoria.qrcode.carlosalexandre.progenbr.com
mdb.assessoria.qrcode.fernanda.regional.progenbr.com
www.typebot.io
get-typebot.com
www.get-typebot.com

Please sign in to comment.