refactor: move a constant to a dedicated file in App store package (#23671)
* define DailyLocationType in app-store/locations.ts * update imports
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
export const MeetLocationType = "integrations:google:meet";
|
||||
|
||||
export const MSTeamsLocationType = "integrations:office365_video";
|
||||
|
||||
export const DailyLocationType = "integrations:daily";
|
||||
|
||||
@@ -13,10 +13,12 @@ import type { EventLocationTypeFromAppMeta } from "../types/App";
|
||||
import {
|
||||
MeetLocationType as importedMeetLocationType,
|
||||
MSTeamsLocationType as importedMSTeamsLocationType,
|
||||
DailyLocationType as importedDailyLocationType,
|
||||
} from "./constants";
|
||||
|
||||
export const MeetLocationType = importedMeetLocationType;
|
||||
export const MSTeamsLocationType = importedMSTeamsLocationType;
|
||||
export const DailyLocationType = importedDailyLocationType;
|
||||
|
||||
export type DefaultEventLocationType = {
|
||||
default: true;
|
||||
@@ -69,7 +71,6 @@ export type EventLocationTypeFromApp = Ensure<
|
||||
|
||||
export type EventLocationType = DefaultEventLocationType | EventLocationTypeFromApp;
|
||||
|
||||
export const DailyLocationType = "integrations:daily";
|
||||
export const CalVideoLocationType = DailyLocationType;
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { Prisma, WorkflowReminder } from "@prisma/client";
|
||||
import type { z } from "zod";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import { FAKE_DAILY_CREDENTIAL } from "@calcom/app-store/dailyvideo/lib/VideoApiAdapter";
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import { sendCancelledEmailsAndSMS } from "@calcom/emails";
|
||||
import { getCalEventResponses } from "@calcom/features/bookings/lib/getCalEventResponses";
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import type { Booking, User, Webhook } from "@prisma/client";
|
||||
import { afterAll, beforeAll, describe, expect, test, vi } from "vitest";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import { getMeetingSessionsFromRoomName } from "@calcom/features/tasker/tasks/triggerNoShow/getMeetingSessionsFromRoomName";
|
||||
import { triggerHostNoShow } from "@calcom/features/tasker/tasks/triggerNoShow/triggerHostNoShow";
|
||||
import { sendGenericWebhookPayload } from "@calcom/features/webhooks/lib/sendPayload";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import dayjs from "@calcom/dayjs";
|
||||
import tasker from "@calcom/features/tasker";
|
||||
import getWebhooks from "@calcom/features/webhooks/lib/getWebhooks";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Prisma, SelectedCalendar } from "@prisma/client";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import slugify from "@calcom/lib/slugify";
|
||||
import { PeriodType, SchedulingType } from "@calcom/prisma/enums";
|
||||
import type { userSelect } from "@calcom/prisma/selects";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import getAppKeysFromSlug from "@calcom/app-store/_utils/getAppKeysFromSlug";
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import getApps from "@calcom/app-store/utils";
|
||||
import { getUsersCredentialsIncludeServiceAccountKey } from "@calcom/lib/server/getUsersCredentials";
|
||||
import { userMetadata as userMetadataSchema } from "@calcom/prisma/zod-utils";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import short from "short-uuid";
|
||||
import { v5 as uuidv5 } from "uuid";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import { getDailyAppKeys } from "@calcom/app-store/dailyvideo/lib/getDailyAppKeys";
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { VideoApiAdapterMap } from "@calcom/app-store/video.adapters.generated";
|
||||
import { sendBrokenIntegrationEmail } from "@calcom/emails";
|
||||
import { getUid } from "@calcom/lib/CalEventParser";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { z } from "zod";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
|
||||
import { commonBookingSchema } from "./types";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import { getDefaultLocations } from "@calcom/lib/server/getDefaultLocations";
|
||||
import { EventTypeRepository } from "@calcom/lib/server/repository/eventTypeRepository";
|
||||
import type { PrismaClient } from "@calcom/prisma";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Prisma } from "@prisma/client";
|
||||
import type { NextApiResponse, GetServerSidePropsContext } from "next";
|
||||
|
||||
import type { appDataSchemas } from "@calcom/app-store/apps.schemas.generated";
|
||||
import { DailyLocationType } from "@calcom/app-store/locations";
|
||||
import { DailyLocationType } from "@calcom/app-store/constants";
|
||||
import updateChildrenEventTypes from "@calcom/features/ee/managed-event-types/lib/handleChildrenEventTypes";
|
||||
import {
|
||||
allowDisablingAttendeeConfirmationEmails,
|
||||
|
||||
Reference in New Issue
Block a user