fix: build webhooks and event-types
This commit is contained in:
1 parent
2e8f42c5d7
commit
f2ce2f324b
6 files changed
+188
-187
No files matched your search
+13
-11
@@ -1,19 +1,21 @@
|
||||
import type { IncomingMessage } from "http";
|
||||
// import type { NextApiRequest } from "next";
|
||||
import { NextMiddleware } from "next-api-middleware";
|
||||
|
||||
import { hashAPIKey } from "@calcom/ee/lib/api/apiKeys";
|
||||
import prisma from "@calcom/prisma";
|
||||
|
||||
/** @todo figure how to use the one from `@calcom/types`fi */
|
||||
/** @todo: remove once `@calcom/types` is updated with it.*/
|
||||
declare module "next" {
|
||||
export interface NextApiRequest extends IncomingMessage {
|
||||
userId: number;
|
||||
query: {
|
||||
apiKey: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
// /** @todo figure how to use the one from `@calcom/types`fi */
|
||||
// /** @todo: remove once `@calcom/types` is updated with it.*/
|
||||
// declare module "next" {
|
||||
// export interface NextApiRequest extends NextApiRequest {
|
||||
// userId: number;
|
||||
// body: any;
|
||||
// method: string;
|
||||
// query: {
|
||||
// apiKey: string;
|
||||
// };
|
||||
// }
|
||||
// }
|
||||
|
||||
// Used to check if the apiKey is not expired, could be extracted if reused. but not for now.
|
||||
export const dateNotInPast = function (date: Date) {
|
||||
|
||||
Reference in new issue
Block a user