Apps Status + Updates to non-traditional calendars (#5034)
* Apps Status + Updates to non-traditional calendars * Recurring booking tweaks * Last tweaks * Fixing checks * Fixing eslint * Reverting unneeded changes, using plain text email * More unneeded changes revert * Update packages/features/bookings/lib/handleNewBooking.ts Co-authored-by: Omar López <[email protected]> * Fixing lint * Refactored appsStatus in emails * Update packages/emails/src/templates/OrganizerScheduledEmail.tsx Co-authored-by: Omar López <[email protected]>
This commit is contained in:
1 parent
f298865d9e
commit
b6be94fd14
16 files changed
+220
-38
No files matched your search
@@ -4,6 +4,7 @@ import { v5 as uuidv5 } from "uuid";
|
||||
|
||||
import appStore from "@calcom/app-store";
|
||||
import { getDailyAppKeys } from "@calcom/app-store/dailyvideo/lib/getDailyAppKeys";
|
||||
import type { ExtendedCredential } from "@calcom/core/EventManager";
|
||||
import { sendBrokenIntegrationEmail } from "@calcom/emails";
|
||||
import { getUid } from "@calcom/lib/CalEventParser";
|
||||
import logger from "@calcom/lib/logger";
|
||||
@@ -34,7 +35,7 @@ const getBusyVideoTimes = (withCredentials: Credential[]) =>
|
||||
results.reduce((acc, availability) => acc.concat(availability), [] as (EventBusyDate | undefined)[])
|
||||
);
|
||||
|
||||
const createMeeting = async (credential: Credential, calEvent: CalendarEvent) => {
|
||||
const createMeeting = async (credential: ExtendedCredential, calEvent: CalendarEvent) => {
|
||||
const uid: string = getUid(calEvent);
|
||||
|
||||
if (!credential) {
|
||||
@@ -51,6 +52,7 @@ const createMeeting = async (credential: Credential, calEvent: CalendarEvent) =>
|
||||
|
||||
if (!createdMeeting) {
|
||||
return {
|
||||
appName: credential.appName,
|
||||
type: credential.type,
|
||||
success: false,
|
||||
uid,
|
||||
@@ -70,6 +72,7 @@ const createMeeting = async (credential: Credential, calEvent: CalendarEvent) =>
|
||||
}
|
||||
|
||||
return {
|
||||
appName: credential.appName,
|
||||
type: credential.type,
|
||||
success: true,
|
||||
uid,
|
||||
@@ -79,7 +82,7 @@ const createMeeting = async (credential: Credential, calEvent: CalendarEvent) =>
|
||||
};
|
||||
|
||||
const updateMeeting = async (
|
||||
credential: Credential,
|
||||
credential: ExtendedCredential,
|
||||
calEvent: CalendarEvent,
|
||||
bookingRef: PartialReference | null
|
||||
): Promise<EventResult<VideoCallData>> => {
|
||||
@@ -100,6 +103,7 @@ const updateMeeting = async (
|
||||
|
||||
if (!updatedMeeting) {
|
||||
return {
|
||||
appName: credential.appName,
|
||||
type: credential.type,
|
||||
success,
|
||||
uid,
|
||||
@@ -108,6 +112,7 @@ const updateMeeting = async (
|
||||
}
|
||||
|
||||
return {
|
||||
appName: credential.appName,
|
||||
type: credential.type,
|
||||
success,
|
||||
uid,
|
||||
|
||||
Reference in new issue
Block a user