Merge pull request #83 from calcom/fix/webhook

Updates webhook API params and read picks
pull/9078/head
Syed Ali Shahbaz 2022-05-19 16:44:22 +05:30 committed by GitHub
commit 54f2edef30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 8 deletions

View File

@ -23,10 +23,9 @@ export const schemaWebhookCreateBodyParams = schemaWebhookBaseBodyParams.merge(s
const schemaWebhookEditParams = z
.object({
uid: z.string().optional(),
title: z.string().optional(),
startTime: z.date().optional(),
endTime: z.date().optional(),
payloadTemplate: z.string().optional(),
eventTriggers: z.string().optional(),
subscriberUrl: z.string().optional(),
})
.strict();
@ -36,8 +35,9 @@ export const schemaWebhookReadPublic = Webhook.pick({
id: true,
userId: true,
eventTypeId: true,
uid: true,
title: true,
startTime: true,
endTime: true,
payloadTemplate: true,
eventTriggers: true,
eventType: true,
app: true,
appId: true,
});