Updates typings

pull/2022/head
zomars 2022-02-16 13:42:18 -07:00
parent 6a7fa041f3
commit 9fcb82cc80
6 changed files with 31 additions and 12 deletions

View File

@ -3,6 +3,8 @@ import async from "async";
import merge from "lodash/merge";
import { v5 as uuidv5 } from "uuid";
import type { PartialReference } from "@calcom/types/EventManager";
import { FAKE_DAILY_CREDENTIAL } from "@lib/integrations/Daily/DailyVideoApiAdapter";
import { FAKE_HUDDLE_CREDENTIAL } from "@lib/integrations/Huddle01/Huddle01VideoApiAdapter";
import { LocationType } from "@lib/location";
@ -33,15 +35,6 @@ export interface PartialBooking {
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 => {
return location === "integrations:zoom";
};

View File

@ -106,6 +106,7 @@
},
"devDependencies": {
"@calcom/config": "*",
"@calcom/types": "*",
"@microsoft/microsoft-graph-types-beta": "0.15.0-preview",
"@playwright/test": "^1.18.1",
"@tailwindcss/forms": "^0.4.0",

View File

@ -9,9 +9,15 @@
"@ee/*": ["ee/*"],
"@apps/*": ["lib/apps/*"]
},
"typeRoots": ["./types"],
"types": ["@types/jest"]
"typeRoots": ["./types", "@calcom/types"],
"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"]
}

8
packages/types/EventManager.d.ts vendored Normal file
View File

@ -0,0 +1,8 @@
export interface PartialReference {
id?: number;
type: string;
uid: string;
meetingId?: string | null;
meetingPassword?: string | null;
meetingUrl?: string | null;
}

11
packages/types/next.d.ts vendored Normal file
View File

@ -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;
}
}