Skip to content

Scheduling infrastructure for absolutely everyone.

Type fixes

zomars41689ecc9262
diff --git a/packages/app-store/huddle01video/lib/VideoApiAdapter.ts b/packages/app-store/huddle01video/lib/VideoApiAdapter.ts
index 1850a34ca4e..00760f30e2a 100644
--- a/packages/app-store/huddle01video/lib/VideoApiAdapter.ts
+++ b/packages/app-store/huddle01video/lib/VideoApiAdapter.ts
@@ -1,8 +1,12 @@
+import z from "zod";
+
import { handleErrorsJson } from "@calcom/lib/errors";
import { randomString } from "@calcom/lib/random";
import type { PartialReference } from "@calcom/types/EventManager";
import type { VideoApiAdapter, VideoCallData } from "@calcom/types/VideoApiAdapter";
+const huddle01Schema = z.object({ url: z.string().url(), roomId: z.string() });
+
const Huddle01VideoApiAdapter = (): VideoApiAdapter => {
return {
getAvailability: () => {
@@ -13,7 +17,8 @@ const Huddle01VideoApiAdapter = (): VideoApiAdapter => {
"https://wpss2zlpb9.execute-api.us-east-1.amazonaws.com/new-meeting?utmCampaign=cal.com&utmSource=partner&utmMedium=calendar"
);
- const { url } = await handleErrorsJson(res);
+ const json = await handleErrorsJson(res);
+ const { url } = huddle01Schema.parse(json);
return Promise.resolve({
type: "huddle01_video",