2
0

feat(editor): Add Zapier step

This commit is contained in:
Baptiste Arnaud
2022-02-22 08:03:38 +01:00
parent d0994e6577
commit 642a42779b
15 changed files with 117 additions and 13 deletions

View File

@ -99,7 +99,7 @@ export const isIntegrationStep = (
(Object.values(IntegrationStepType) as string[]).includes(step.type)
export const isWebhookStep = (step: Step | PublicStep): step is WebhookStep =>
step.type === IntegrationStepType.WEBHOOK
'webhook' in step
export const isBubbleStepType = (type: StepType): type is BubbleStepType =>
(Object.values(BubbleStepType) as string[]).includes(type)
@ -114,7 +114,11 @@ export const stepTypeHasOption = (
export const stepTypeHasWebhook = (
type: StepType
): type is IntegrationStepType.WEBHOOK => type === IntegrationStepType.WEBHOOK
): type is IntegrationStepType.WEBHOOK =>
Object.values([
IntegrationStepType.WEBHOOK,
IntegrationStepType.ZAPIER,
] as string[]).includes(type)
export const stepTypeHasItems = (
type: StepType