MCPcopy
hub / github.com/calcom/cal.diy / getLocation

Function getLocation

packages/lib/CalEventParser.ts:180–192  ·  view source on GitHub ↗
(calEvent: {
  videoCallData?: { type?: string; url?: string };
  additionalInformation?: AdditionalInformation;
  location?: string | null;
  uid?: string | null;
})

Source from the content-addressed store, hash-verified

178};
179
180export const getLocation = (calEvent: {
181 videoCallData?: { type?: string; url?: string };
182 additionalInformation?: AdditionalInformation;
183 location?: string | null;
184 uid?: string | null;
185}) => {
186 const meetingUrl = getVideoCallUrlFromCalEvent(calEvent);
187 if (meetingUrl) {
188 return meetingUrl;
189 }
190 const providerName = getProviderName(calEvent.location);
191 return providerName || calEvent.location || "";
192};
193
194export const getProviderName = (location?: string | null): string => {
195 if (location && location.includes("integrations:")) {

Callers 15

createEventFunction · 0.90
updateEventFunction · 0.90
createEventMethod · 0.90
updateEventMethod · 0.90
ZohoCalendarServiceClass · 0.90
createBiginEventMethod · 0.90
updateEventMethod · 0.90
LarkCalendarServiceClass · 0.90
ZohoCrmCrmServiceClass · 0.90

Calls 2

getProviderNameFunction · 0.85

Tested by

no test coverage detected