2
0

feat(integrations): Add Pabbly block

This commit is contained in:
Baptiste Arnaud
2022-04-12 12:10:20 -05:00
parent a49d1cac03
commit 348055d68a
12 changed files with 62 additions and 4 deletions

View File

@ -224,6 +224,18 @@ export const StepSettings = ({
/>
)
}
case IntegrationStepType.PABBLY_CONNECT: {
return (
<WebhookSettings
step={step}
onOptionsChange={handleOptionsChange}
provider={{
name: 'Pabbly Connect',
url: 'https://www.pabbly.com/connect/integrations/typebot/',
}}
/>
)
}
case IntegrationStepType.WEBHOOK: {
return (
<WebhookSettings step={step} onOptionsChange={handleOptionsChange} />

View File

@ -27,6 +27,7 @@ import {
defaultWebhookAttributes,
Webhook,
MakeComStep,
PabblyConnectStep,
} from 'models'
import { DropdownList } from 'components/shared/DropdownList'
import { TableList, TableListItemProps } from 'components/shared/TableList'
@ -44,11 +45,11 @@ import { SwitchWithLabel } from 'components/shared/SwitchWithLabel'
import { ExternalLinkIcon } from 'assets/icons'
type Provider = {
name: 'Make.com'
name: 'Make.com' | 'Pabbly Connect'
url: string
}
type Props = {
step: WebhookStep | MakeComStep
step: WebhookStep | MakeComStep | PabblyConnectStep
onOptionsChange: (options: WebhookOptions) => void
provider?: Provider
}

View File

@ -125,6 +125,7 @@ export const StepNodeContent = ({ step, indices }: Props) => {
<ProviderWebhookContent step={step} configuredLabel="Trigger zap" />
)
}
case IntegrationStepType.PABBLY_CONNECT:
case IntegrationStepType.MAKE_COM: {
return (
<ProviderWebhookContent

View File

@ -3,6 +3,7 @@ import { useTypebot } from 'contexts/TypebotContext'
import {
defaultWebhookAttributes,
MakeComStep,
PabblyConnectStep,
Webhook,
ZapierStep,
} from 'models'
@ -10,7 +11,7 @@ import { useEffect } from 'react'
import { byId, isNotDefined } from 'utils'
type Props = {
step: ZapierStep | MakeComStep
step: ZapierStep | MakeComStep | PabblyConnectStep
configuredLabel: string
}