|
|
|
@ -10,63 +10,63 @@ export const getHelpDocUrl = (
|
|
|
|
|
): string | undefined => {
|
|
|
|
|
switch (blockType) {
|
|
|
|
|
case LogicBlockType.TYPEBOT_LINK:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/typebot-link'
|
|
|
|
|
return 'https://bls.media/bot?typebot-link'
|
|
|
|
|
case LogicBlockType.SET_VARIABLE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/set-variable'
|
|
|
|
|
return 'https://bls.media/bot?set-variable'
|
|
|
|
|
case LogicBlockType.REDIRECT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/redirect'
|
|
|
|
|
return 'https://bls.media/bot?redirect'
|
|
|
|
|
case LogicBlockType.SCRIPT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/script'
|
|
|
|
|
return 'https://bls.media/bot?script'
|
|
|
|
|
case LogicBlockType.WAIT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/wait'
|
|
|
|
|
return 'https://bls.media/bot?wait'
|
|
|
|
|
case InputBlockType.TEXT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/text'
|
|
|
|
|
return 'https://bls.media/bot?text'
|
|
|
|
|
case InputBlockType.NUMBER:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/number'
|
|
|
|
|
return 'https://bls.media/bot?number'
|
|
|
|
|
case InputBlockType.EMAIL:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/email'
|
|
|
|
|
return 'https://bls.media/bot?email'
|
|
|
|
|
case InputBlockType.URL:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/website'
|
|
|
|
|
return 'https://bls.media/bot?website'
|
|
|
|
|
case InputBlockType.DATE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/date'
|
|
|
|
|
return 'https://bls.media/bot?date'
|
|
|
|
|
case InputBlockType.PHONE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/phone-number'
|
|
|
|
|
return 'https://bls.media/bot?phone-number'
|
|
|
|
|
case InputBlockType.CHOICE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/buttons'
|
|
|
|
|
return 'https://bls.media/bot?buttons'
|
|
|
|
|
case InputBlockType.PAYMENT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/payment'
|
|
|
|
|
return 'https://bls.media/bot?payment'
|
|
|
|
|
case InputBlockType.RATING:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/rating'
|
|
|
|
|
return 'https://bls.media/bot?rating'
|
|
|
|
|
case InputBlockType.FILE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/file-upload'
|
|
|
|
|
return 'https://bls.media/bot?file-upload'
|
|
|
|
|
case IntegrationBlockType.EMAIL:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/email'
|
|
|
|
|
return 'https://bls.media/bot?email'
|
|
|
|
|
case IntegrationBlockType.CHATWOOT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/chatwoot'
|
|
|
|
|
return 'https://bls.media/bot?chatwoot'
|
|
|
|
|
case IntegrationBlockType.GOOGLE_ANALYTICS:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/google-analytics'
|
|
|
|
|
return 'https://bls.media/bot?google-analytics'
|
|
|
|
|
case IntegrationBlockType.GOOGLE_SHEETS:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/google-sheets'
|
|
|
|
|
return 'https://bls.media/bot?google-sheets'
|
|
|
|
|
case IntegrationBlockType.ZAPIER:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/zapier'
|
|
|
|
|
return 'https://bls.media/bot?zapier'
|
|
|
|
|
case IntegrationBlockType.PABBLY_CONNECT:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/pabbly'
|
|
|
|
|
return 'https://bls.media/bot?/pabbly'
|
|
|
|
|
case IntegrationBlockType.WEBHOOK:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/webhook'
|
|
|
|
|
return 'https://bls.media/bot?webhook'
|
|
|
|
|
case InputBlockType.PICTURE_CHOICE:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/inputs/picture-choice'
|
|
|
|
|
return 'https://bls.media/bot?picture-choice'
|
|
|
|
|
case IntegrationBlockType.OPEN_AI:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/openai'
|
|
|
|
|
return 'https://bls.media/bot?openai'
|
|
|
|
|
case IntegrationBlockType.MAKE_COM:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/make-com'
|
|
|
|
|
return 'https://bls.media/bot?make-com'
|
|
|
|
|
case LogicBlockType.AB_TEST:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/abTest'
|
|
|
|
|
return 'https://bls.media/bot?abTest'
|
|
|
|
|
case LogicBlockType.JUMP:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/jump'
|
|
|
|
|
return 'https://bls.media/bot?jump'
|
|
|
|
|
case IntegrationBlockType.PIXEL:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/integrations/pixel'
|
|
|
|
|
return 'https://bls.media/bot?pixel'
|
|
|
|
|
case LogicBlockType.CONDITION:
|
|
|
|
|
return 'https://docs.typebot.io/editor/blocks/logic/condition'
|
|
|
|
|
return 'https://bls.media/bot?condition'
|
|
|
|
|
default:
|
|
|
|
|
return blockDef?.docsUrl
|
|
|
|
|
}
|
|
|
|
|