@ -1,13 +1,16 @@
|
||||
import { z } from 'zod'
|
||||
import { blockBaseSchema } from '../baseSchemas'
|
||||
import { IntegrationBlockType } from './enums'
|
||||
import { webhookOptionsSchema } from './webhook'
|
||||
import { webhookOptionsSchema } from './webhook/schemas'
|
||||
|
||||
export const pabblyConnectBlockSchema = blockBaseSchema.merge(
|
||||
z.object({
|
||||
type: z.enum([IntegrationBlockType.PABBLY_CONNECT]),
|
||||
options: webhookOptionsSchema,
|
||||
webhookId: z.string(),
|
||||
webhookId: z
|
||||
.string()
|
||||
.describe('Deprecated, use webhook.id instead')
|
||||
.optional(),
|
||||
})
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user