2022-06-11 07:27:38 +02:00
|
|
|
import { z } from 'zod'
|
2022-11-15 11:02:26 +01:00
|
|
|
import { blockBaseSchema, IntegrationBlockType } from '../shared'
|
2022-06-11 07:27:38 +02:00
|
|
|
import { webhookOptionsSchema } from './webhook'
|
|
|
|
|
|
|
|
export const pabblyConnectBlockSchema = blockBaseSchema.and(
|
|
|
|
z.object({
|
|
|
|
type: z.enum([IntegrationBlockType.PABBLY_CONNECT]),
|
|
|
|
options: webhookOptionsSchema,
|
|
|
|
webhookId: z.string(),
|
|
|
|
})
|
|
|
|
)
|
|
|
|
|
|
|
|
export type PabblyConnectBlock = z.infer<typeof pabblyConnectBlockSchema>
|