2022-06-11 07:27:38 +02:00
|
|
|
import { z } from 'zod'
|
2023-03-09 08:46:36 +01:00
|
|
|
import { chatwootBlockSchema } from './chatwoot'
|
|
|
|
import { googleAnalyticsBlockSchema } from './googleAnalytics'
|
|
|
|
import { googleSheetsBlockSchema } from './googleSheets/schemas'
|
2022-06-11 07:27:38 +02:00
|
|
|
import { makeComBlockSchema } from './makeCom'
|
2023-03-09 08:46:36 +01:00
|
|
|
import { openAIBlockSchema } from './openai'
|
2022-06-11 07:27:38 +02:00
|
|
|
import { pabblyConnectBlockSchema } from './pabblyConnect'
|
2023-03-09 08:46:36 +01:00
|
|
|
import { sendEmailBlockSchema } from './sendEmail'
|
|
|
|
import { webhookBlockSchema } from './webhook'
|
2022-06-11 07:27:38 +02:00
|
|
|
import { zapierBlockSchema } from './zapier'
|
|
|
|
|
|
|
|
export const integrationBlockSchema = googleSheetsBlockSchema
|
|
|
|
.or(googleAnalyticsBlockSchema)
|
|
|
|
.or(webhookBlockSchema)
|
|
|
|
.or(sendEmailBlockSchema)
|
|
|
|
.or(zapierBlockSchema)
|
|
|
|
.or(makeComBlockSchema)
|
|
|
|
.or(pabblyConnectBlockSchema)
|
2022-11-10 10:53:44 +01:00
|
|
|
.or(chatwootBlockSchema)
|
2023-03-09 08:46:36 +01:00
|
|
|
.or(openAIBlockSchema)
|
2022-06-11 07:27:38 +02:00
|
|
|
|
|
|
|
export type IntegrationBlock = z.infer<typeof integrationBlockSchema>
|
2023-03-09 08:46:36 +01:00
|
|
|
export type IntegrationBlockOptions = IntegrationBlock['options']
|