2
0
Files
bot/packages/models/src/features/blocks/integrations/makeCom.ts

14 lines
391 B
TypeScript
Raw Normal View History

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