2
0

feat(integration): Add webhooks

This commit is contained in:
Baptiste Arnaud
2022-01-22 18:24:57 +01:00
parent 66f3e7ee7c
commit a58600a38a
78 changed files with 2399 additions and 800 deletions

View File

@ -13,6 +13,7 @@ import {
Table,
TextInputStep,
TextBubbleStep,
WebhookStep,
} from 'models'
export const sendRequest = async <ResponseData>({
@ -74,3 +75,6 @@ export const isConditionStep = (step: Step): step is ConditionStep =>
export const isIntegrationStep = (step: Step): step is IntegrationStep =>
(Object.values(IntegrationStepType) as string[]).includes(step.type)
export const isWebhookStep = (step: Step): step is WebhookStep =>
step.type === IntegrationStepType.WEBHOOK