Merge pull request #83 from calcom/fix/webhook
Updates webhook API params and read pickspull/9078/head
commit
54f2edef30
|
@ -23,10 +23,9 @@ export const schemaWebhookCreateBodyParams = schemaWebhookBaseBodyParams.merge(s
|
||||||
|
|
||||||
const schemaWebhookEditParams = z
|
const schemaWebhookEditParams = z
|
||||||
.object({
|
.object({
|
||||||
uid: z.string().optional(),
|
payloadTemplate: z.string().optional(),
|
||||||
title: z.string().optional(),
|
eventTriggers: z.string().optional(),
|
||||||
startTime: z.date().optional(),
|
subscriberUrl: z.string().optional(),
|
||||||
endTime: z.date().optional(),
|
|
||||||
})
|
})
|
||||||
.strict();
|
.strict();
|
||||||
|
|
||||||
|
@ -36,8 +35,9 @@ export const schemaWebhookReadPublic = Webhook.pick({
|
||||||
id: true,
|
id: true,
|
||||||
userId: true,
|
userId: true,
|
||||||
eventTypeId: true,
|
eventTypeId: true,
|
||||||
uid: true,
|
payloadTemplate: true,
|
||||||
title: true,
|
eventTriggers: true,
|
||||||
startTime: true,
|
eventType: true,
|
||||||
endTime: true,
|
app: true,
|
||||||
|
appId: true,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue