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

15 lines
423 B
TypeScript
Raw Normal View History

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