Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/app-store/applecalendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import logger from "@calcom/lib/logger";
import prisma from "@calcom/prisma";

import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === "POST") {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/caldavcalendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import logger from "@calcom/lib/logger";
import prisma from "@calcom/prisma";

import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === "POST") {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/exchange2013calendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { defaultResponder } from "@calcom/lib/server/defaultResponder";
import prisma from "@calcom/prisma";

import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

const bodySchema = z
.object({
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/exchange2016calendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { defaultResponder } from "@calcom/lib/server/defaultResponder";
import prisma from "@calcom/prisma";

import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

const bodySchema = z
.object({
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/exchangecalendar/api/_postAdd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import prisma from "@calcom/prisma";

import checkSession from "../../_utils/auth";
import { ExchangeAuthentication, ExchangeVersion } from "../enums";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

const formSchema = z
.object({
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/ics-feedcalendar/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import prisma from "@calcom/prisma";

import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import appConfig from "../config.json";
import { CalendarService } from "../lib";
import CalendarService from "../lib/CalendarService";

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === "POST") {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/stripepayment/lib/PaymentService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import type { CalendarEvent } from "@calcom/types/Calendar";
import type { IAbstractPaymentService } from "@calcom/types/PaymentService";

import { paymentOptionEnum } from "../zod";
import { createPaymentLink } from "./client";
import { createPaymentLink } from "./client/createPaymentLink";
import { retrieveOrCreateStripeCustomerByEmail } from "./customer";
import type { StripePaymentData, StripeSetupIntentData } from "./server";

Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/vital/api/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import prisma from "@calcom/prisma";
import type { Prisma } from "@calcom/prisma/client";
import { BookingStatus } from "@calcom/prisma/enums";

import { Reschedule } from "../lib";
import Reschedule from "../lib/reschedule";
import { initVitalClient, vitalEnv } from "../lib/client";

interface EventType {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/wipemycalother/api/wipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { z, ZodError } from "zod";
import prisma from "@calcom/prisma";
import { BookingStatus } from "@calcom/prisma/enums";

import { Reschedule } from "../lib";
import Reschedule from "../lib/reschedule";

const wipeMyCalendarBodySchema = z.object({
initialDate: z.string(),
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zoomvideo/api/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { defaultResponder } from "@calcom/lib/server/defaultResponder";
import prisma from "@calcom/prisma";

import { encodeOAuthState } from "../../_utils/oauth/encodeOAuthState";
import { getZoomAppKeys } from "../lib";
import { getZoomAppKeys } from "../lib/getZoomAppKeys";

async function handler(req: NextApiRequest) {
// Get user
Expand Down
2 changes: 1 addition & 1 deletion packages/app-store/zoomvideo/api/callback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import prisma from "@calcom/prisma";
import getInstalledAppPath from "../../_utils/getInstalledAppPath";
import createOAuthAppCredential from "../../_utils/oauth/createOAuthAppCredential";
import { decodeOAuthState } from "../../_utils/oauth/decodeOAuthState";
import { getZoomAppKeys } from "../lib";
import { getZoomAppKeys } from "../lib/getZoomAppKeys";

export default async function handler(req: NextApiRequest, res: NextApiResponse) {
const state = decodeOAuthState(req);
Expand Down
2 changes: 1 addition & 1 deletion packages/features/calAIPhone/initializeRegistry.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AIPhoneServiceRegistry } from "./AIPhoneServiceRegistry";
import { AIPhoneServiceProviderType } from "./interfaces/AIPhoneService.interface";
import { RetellAIPhoneServiceProviderFactory } from "./providers/retellAI";
import { RetellAIPhoneServiceProviderFactory } from "./providers/retellAI/RetellAIPhoneServiceProviderFactory";

/**
* Initialize the AI Phone Service Registry
Expand Down
10 changes: 4 additions & 6 deletions packages/features/ee/workflows/lib/actionHelperFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ import type { TFunction } from "i18next";
import type { TimeFormat } from "@calcom/lib/timeFormat";
import { WorkflowActions, WorkflowTemplates, WorkflowTriggerEvents } from "@calcom/prisma/enums";

import {
whatsappEventCancelledTemplate,
whatsappEventCompletedTemplate,
whatsappEventRescheduledTemplate,
whatsappReminderTemplate,
} from "../lib/reminders/templates/whatsapp";
import { whatsappEventCancelledTemplate } from "../lib/reminders/templates/whatsapp/whatsappEventCancelledTemplate";
import { whatsappEventCompletedTemplate } from "../lib/reminders/templates/whatsapp/whatsappEventCompletedTemplate";
import { whatsappEventRescheduledTemplate } from "../lib/reminders/templates/whatsapp/whatsappEventRescheduledTemplate";
import { whatsappReminderTemplate } from "../lib/reminders/templates/whatsapp/whatsappEventReminderTemplate";
import { FORM_TRIGGER_WORKFLOW_EVENTS } from "./constants";
import emailRatingTemplate from "./reminders/templates/emailRatingTemplate";
import emailReminderTemplate from "./reminders/templates/emailReminderTemplate";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,10 @@ import {
} from "../reminders/templates/whatsapp/ContentSidMapping";
import { scheduleSmsOrFallbackEmail, sendSmsOrFallbackEmail } from "./messageDispatcher";
import type { BookingInfo, ScheduleTextReminderArgs, timeUnitLowerCase } from "./smsReminderManager";
import {
whatsappEventCancelledTemplate,
whatsappEventCompletedTemplate,
whatsappEventRescheduledTemplate,
whatsappReminderTemplate,
} from "./templates/whatsapp";
import { whatsappEventCancelledTemplate } from "./templates/whatsapp/whatsappEventCancelledTemplate";
import { whatsappEventCompletedTemplate } from "./templates/whatsapp/whatsappEventCompletedTemplate";
import { whatsappEventRescheduledTemplate } from "./templates/whatsapp/whatsappEventRescheduledTemplate";
import { whatsappReminderTemplate } from "./templates/whatsapp/whatsappEventReminderTemplate";

const log = logger.getSubLogger({ prefix: ["[whatsappReminderManager]"] });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, test, expect, vi, beforeEach } from "vitest";
import { WatchlistType } from "@calcom/prisma/enums";

import { WatchlistFeature } from "../lib/facade/WatchlistFeature";
import type { SpanFn } from "../lib/telemetry";
import { SpanFn } from "../lib/telemetry/types";
import { checkIfEmailIsBlockedInWatchlistController } from "./check-if-email-in-watchlist.controller";

// Mock the DI container
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getWatchlistFeature } from "@calcom/features/di/watchlist/containers/watchlist";

import type { SpanFn } from "../lib/telemetry";
import { SpanFn } from "../lib/telemetry/types";
import { normalizeEmail } from "../lib/utils/normalization";

interface CheckEmailBlockedParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, test, expect, vi, beforeEach } from "vitest";

import { WatchlistType } from "@calcom/prisma/enums";

import type { SpanFn } from "../lib/telemetry";
import { SpanFn } from "../lib/telemetry/types";
import { checkIfUsersAreBlocked } from "./check-if-users-are-blocked.controller";

// Mock the DI container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, test, expect, vi, beforeEach } from "vitest";

import { WatchlistType, WatchlistAction, WatchlistSource } from "@calcom/prisma/enums";

import type { SpanFn } from "../lib/telemetry";
import { SpanFn } from "../lib/telemetry/types";
import { listAllSystemEntriesController } from "./list-all-system-entries.controller";

// Mock the DI container
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { getWatchlistFeature } from "@calcom/features/di/watchlist/containers/watchlist";

import type { SpanFn } from "../lib/telemetry";
import { SpanFn } from "../lib/telemetry/types";
import type { WatchlistEntry } from "../lib/types";

interface ListAllSystemEntriesParams {
Expand Down