Updates typings
parent
6a7fa041f3
commit
9fcb82cc80
|
@ -3,6 +3,8 @@ import async from "async";
|
||||||
import merge from "lodash/merge";
|
import merge from "lodash/merge";
|
||||||
import { v5 as uuidv5 } from "uuid";
|
import { v5 as uuidv5 } from "uuid";
|
||||||
|
|
||||||
|
import type { PartialReference } from "@calcom/types/EventManager";
|
||||||
|
|
||||||
import { FAKE_DAILY_CREDENTIAL } from "@lib/integrations/Daily/DailyVideoApiAdapter";
|
import { FAKE_DAILY_CREDENTIAL } from "@lib/integrations/Daily/DailyVideoApiAdapter";
|
||||||
import { FAKE_HUDDLE_CREDENTIAL } from "@lib/integrations/Huddle01/Huddle01VideoApiAdapter";
|
import { FAKE_HUDDLE_CREDENTIAL } from "@lib/integrations/Huddle01/Huddle01VideoApiAdapter";
|
||||||
import { LocationType } from "@lib/location";
|
import { LocationType } from "@lib/location";
|
||||||
|
@ -33,15 +35,6 @@ export interface PartialBooking {
|
||||||
references: Array<PartialReference>;
|
references: Array<PartialReference>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PartialReference {
|
|
||||||
id?: number;
|
|
||||||
type: string;
|
|
||||||
uid: string;
|
|
||||||
meetingId?: string | null;
|
|
||||||
meetingPassword?: string | null;
|
|
||||||
meetingUrl?: string | null;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const isZoom = (location: string): boolean => {
|
export const isZoom = (location: string): boolean => {
|
||||||
return location === "integrations:zoom";
|
return location === "integrations:zoom";
|
||||||
};
|
};
|
||||||
|
|
|
@ -106,6 +106,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@calcom/config": "*",
|
"@calcom/config": "*",
|
||||||
|
"@calcom/types": "*",
|
||||||
"@microsoft/microsoft-graph-types-beta": "0.15.0-preview",
|
"@microsoft/microsoft-graph-types-beta": "0.15.0-preview",
|
||||||
"@playwright/test": "^1.18.1",
|
"@playwright/test": "^1.18.1",
|
||||||
"@tailwindcss/forms": "^0.4.0",
|
"@tailwindcss/forms": "^0.4.0",
|
||||||
|
|
|
@ -9,9 +9,15 @@
|
||||||
"@ee/*": ["ee/*"],
|
"@ee/*": ["ee/*"],
|
||||||
"@apps/*": ["lib/apps/*"]
|
"@apps/*": ["lib/apps/*"]
|
||||||
},
|
},
|
||||||
"typeRoots": ["./types"],
|
"typeRoots": ["./types", "@calcom/types"],
|
||||||
"types": ["@types/jest"]
|
"types": ["@types/jest", "@calcom/types/*.d.ts"]
|
||||||
},
|
},
|
||||||
"include": ["next-env.d.ts", "@types/*.d.ts", "**/*.ts", "**/*.tsx"],
|
"include": [
|
||||||
|
"next-env.d.ts",
|
||||||
|
"../../packages/types/*.d.ts",
|
||||||
|
"../../packages/types/next-auth.d.ts",
|
||||||
|
"**/*.ts",
|
||||||
|
"**/*.tsx"
|
||||||
|
],
|
||||||
"exclude": ["node_modules"]
|
"exclude": ["node_modules"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
export interface PartialReference {
|
||||||
|
id?: number;
|
||||||
|
type: string;
|
||||||
|
uid: string;
|
||||||
|
meetingId?: string | null;
|
||||||
|
meetingPassword?: string | null;
|
||||||
|
meetingUrl?: string | null;
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
||||||
|
import type { IncomingMessage } from "http";
|
||||||
|
import { Session } from "next-auth";
|
||||||
|
|
||||||
|
import "./next-auth";
|
||||||
|
|
||||||
|
declare module "next" {
|
||||||
|
export interface NextApiRequest extends IncomingMessage {
|
||||||
|
session?: Session | null;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue