refactor: circular deps between app store and lib [5] (#23936)
* getBulkEventTypes * 2 eventtypes related utils to features * locationsResolver * checkForEmptyAssignment * mv defaultEvents to features * update imports * PrismaAppRepository * mv currencyConversions from appstore to lib * useAppsData * videoClient * analytics files * fix * mv * prettier * use named import
This commit is contained in:
1 parent
dfdda8a5b8
commit
76332a759b
75 files changed
+182
-192
No files matched your search
@@ -22,7 +22,7 @@ import { getUsersCredentialsIncludeServiceAccountKey } from "@calcom/lib/server/
|
||||
import { getTranslation } from "@calcom/lib/server/i18n";
|
||||
import { WorkflowRepository } from "@calcom/lib/server/repository/workflow";
|
||||
import { BookingWebhookFactory } from "@calcom/lib/server/service/BookingWebhookFactory";
|
||||
import { deleteMeeting } from "@calcom/lib/videoClient";
|
||||
import { deleteMeeting } from "@calcom/app-store/videoClient";
|
||||
import { prisma } from "@calcom/prisma";
|
||||
import type { BookingReference, EventType } from "@calcom/prisma/client";
|
||||
import type { WebhookTriggerEvents } from "@calcom/prisma/enums";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getRecordingsOfCalVideoByRoomName } from "@calcom/lib/videoClient";
|
||||
import { getRecordingsOfCalVideoByRoomName } from "@calcom/app-store/videoClient";
|
||||
import type { TrpcSessionUser } from "@calcom/trpc/server/types";
|
||||
|
||||
import { TRPCError } from "@trpc/server";
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
/// <reference types="@calcom/types/next-auth" />
|
||||
import { IS_SELF_HOSTED } from "@calcom/lib/constants";
|
||||
import { getDownloadLinkOfCalVideoByRecordingId } from "@calcom/lib/videoClient";
|
||||
import { getDownloadLinkOfCalVideoByRecordingId } from "@calcom/app-store/videoClient";
|
||||
|
||||
import { TRPCError } from "@trpc/server";
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getBulkUserEventTypes } from "@calcom/lib/event-types/getBulkEventTypes";
|
||||
import { getBulkUserEventTypes } from "@calcom/app-store/_utils/getBulkEventTypes";
|
||||
|
||||
import type { TrpcSessionUser } from "../../../types";
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getEventTypesByViewer } from "@calcom/features/eventtypes/lib/getEventTypesByViewer";
|
||||
import { checkRateLimitAndThrowError } from "@calcom/lib/checkRateLimitAndThrowError";
|
||||
import { getEventTypesByViewer } from "@calcom/lib/event-types/getEventTypesByViewer";
|
||||
import type { PrismaClient } from "@calcom/prisma";
|
||||
|
||||
import type { TrpcSessionUser } from "../../../types";
|
||||
|
||||
@@ -66,4 +66,4 @@ export const getUserEventGroups = async ({ ctx, input }: GetByViewerOptions) =>
|
||||
};
|
||||
|
||||
// Re-export the compareMembership function for backward compatibility
|
||||
export { compareMembership } from "@calcom/lib/event-types/getEventTypesByViewer";
|
||||
export { compareMembership } from "@calcom/features/eventtypes/lib/getEventTypesByViewer";
|
||||
@@ -15,7 +15,7 @@ import { shouldIgnoreContactOwner } from "@calcom/lib/bookings/routing/utils";
|
||||
import { RESERVED_SUBDOMAINS } from "@calcom/lib/constants";
|
||||
import { buildDateRanges } from "@calcom/lib/date-ranges";
|
||||
import { getUTCOffsetByTimezone } from "@calcom/lib/dayjs";
|
||||
import { getDefaultEvent } from "@calcom/lib/defaultEvents";
|
||||
import { getDefaultEvent } from "@calcom/features/eventtypes/lib/defaultEvents";
|
||||
import type { getBusyTimesService } from "@calcom/lib/di/containers/BusyTimes";
|
||||
import { getAggregatedAvailability } from "@calcom/lib/getAggregatedAvailability";
|
||||
import type { BusyTimesService } from "@calcom/lib/getBusyTimes";
|
||||
|
||||
Reference in new issue
Block a user