refactor: circular deps between app store and lib [6] (#23971)
* move delegation credential repository to features * mv credential repository to features * update imports * mv * fix * fix * fix * fix * fix * update imports * update imports * update eslint rule * fix * fix * mv getConnectedDestinationCalendars * fix import errors * mv getCalendarsEvents * remove getUsersCredentials * wip * revert eslint rule change for now * fix type checks * fix * format * cleanup * fix * fix * fix * fix * fix tests * migrate getUserAvailability * migrate * fix tests * fix type checks * fix * fix * migrate crmManager * update imports * migrate raqbUtils to appstore * migrate getLuckyUser to features * migrate findTeamMembersMatchingAttributeLogic to appstore * update imports * fix * fix * fix test * fix unit tests * fix * fix * add eslint config
This commit is contained in:
1 parent
445b307972
commit
bb68cd73ef
114 files changed
+263
-245
No files matched your search
@@ -62,7 +62,7 @@ vi.mock("../lib/buildCalendarEvent", () => ({
|
||||
}));
|
||||
|
||||
const mockCreateEvent = vi.fn().mockResolvedValue({ id: "sf-event-123" });
|
||||
vi.mock("@calcom/lib/crmManager/crmManager", () => ({
|
||||
vi.mock("@calcom/features/crmManager/crmManager", () => ({
|
||||
default: class MockCrmManager {
|
||||
private credential: CRMCredential;
|
||||
|
||||
|
||||
@@ -170,7 +170,7 @@ export async function createCRMEvent(payload: string): Promise<void> {
|
||||
continue;
|
||||
}
|
||||
|
||||
const CrmManager = (await import("@calcom/lib/crmManager/crmManager")).default;
|
||||
const CrmManager = (await import("@calcom/features/crmManager/crmManager")).default;
|
||||
|
||||
const crm = new CrmManager(crmCredential, app);
|
||||
|
||||
|
||||
Reference in new issue
Block a user