From 5b961f7d962f76f4c9f2733daa85f701f1c4c278 Mon Sep 17 00:00:00 2001 From: Somay Chauhan Date: Fri, 28 Feb 2025 13:40:02 +0530 Subject: [PATCH] fix: added zoom, msTeams as valid locations in event-type, booker atoms (#19599) --- apps/api/v2/package.json | 2 +- .../transformers/api-to-internal/locations.ts | 4 +++- .../transformApiEventTypeForAtom.ts | 2 +- .../event-types_2024_06_14/inputs/locations.input.ts | 2 +- yarn.lock | 10 +++++----- 5 files changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/api/v2/package.json b/apps/api/v2/package.json index 6c78f0c356..58b6c84d84 100644 --- a/apps/api/v2/package.json +++ b/apps/api/v2/package.json @@ -30,7 +30,7 @@ "@axiomhq/winston": "^1.2.0", "@calcom/platform-constants": "*", "@calcom/platform-enums": "*", - "@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.116", + "@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.121", "@calcom/platform-libraries-0.0.2": "npm:@calcom/platform-libraries@0.0.2", "@calcom/platform-types": "*", "@calcom/platform-utils": "*", diff --git a/packages/lib/event-types/transformers/api-to-internal/locations.ts b/packages/lib/event-types/transformers/api-to-internal/locations.ts index 5ae02b6039..afa8c2c230 100644 --- a/packages/lib/event-types/transformers/api-to-internal/locations.ts +++ b/packages/lib/event-types/transformers/api-to-internal/locations.ts @@ -13,10 +13,12 @@ import type { const apiToInternalintegrationsMapping: Record< Integration_2024_06_14, - "integrations:daily" | "integrations:google:meet" + "integrations:daily" | "integrations:google:meet" | "integrations:office365_video" | "integrations:zoom" > = { "cal-video": "integrations:daily", "google-meet": "integrations:google:meet", + "office365-video": "integrations:office365_video", + zoom: "integrations:zoom", }; export function transformLocationsApiToInternal(inputLocations: InputLocation_2024_06_14[] | undefined) { diff --git a/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.ts b/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.ts index 0d9d003cff..7cce905d30 100644 --- a/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.ts +++ b/packages/platform/atoms/event-types/atom-api-transformers/transformApiEventTypeForAtom.ts @@ -329,7 +329,7 @@ function getLocations(locations: EventTypeOutput_2024_06_14["locations"]) { function isAtomSupportedLocation( location: EventTypeOutput_2024_06_14["locations"][number] ): location is InputLocation_2024_06_14 { - const supportedIntegrations = ["cal-video", "google-meet"]; + const supportedIntegrations = ["cal-video", "google-meet", "office365-video", "zoom"]; return ( location.type === "address" || diff --git a/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.ts b/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.ts index 8995f149bd..6874211fec 100644 --- a/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.ts +++ b/packages/platform/types/event-types/event-types_2024_06_14/inputs/locations.input.ts @@ -43,7 +43,7 @@ export class InputLinkLocation_2024_06_14 { public!: boolean; } -export const supportedIntegrations = ["cal-video", "google-meet"] as const; +export const supportedIntegrations = ["cal-video", "google-meet", "office365-video", "zoom"] as const; export type Integration_2024_06_14 = (typeof supportedIntegrations)[number]; export class InputIntegrationLocation_2024_06_14 { diff --git a/yarn.lock b/yarn.lock index 00f476e52e..31b49b1496 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3526,7 +3526,7 @@ __metadata: "@axiomhq/winston": ^1.2.0 "@calcom/platform-constants": "*" "@calcom/platform-enums": "*" - "@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.116" + "@calcom/platform-libraries": "npm:@calcom/platform-libraries@0.0.121" "@calcom/platform-libraries-0.0.2": "npm:@calcom/platform-libraries@0.0.2" "@calcom/platform-types": "*" "@calcom/platform-utils": "*" @@ -4592,14 +4592,14 @@ __metadata: languageName: node linkType: hard -"@calcom/platform-libraries@npm:@calcom/platform-libraries@0.0.116": - version: 0.0.116 - resolution: "@calcom/platform-libraries@npm:0.0.116" +"@calcom/platform-libraries@npm:@calcom/platform-libraries@0.0.121": + version: 0.0.121 + resolution: "@calcom/platform-libraries@npm:0.0.121" dependencies: "@calcom/core": "*" "@calcom/features": "*" "@calcom/lib": "*" - checksum: 2d3159fa6e8428f16cab7ace42078d54a97145c668b476ce546c75ea62866a13cad5bd414e6a72c6f90740089d8ea82115e1225352ff41da1683f70a9211139b + checksum: 1f4fa106b146960c5bcef0fa6edaeba7485ea558a4582f7c7cea36ba45d73b024074ee0b471a1a9fbb9a8baa71056e3c256b5519140c435bd5c9d08740bd0b5b languageName: node linkType: hard