refactor: Cal.diy (#28903)
* feat: Cal.diy — community-driven MIT-licensed fork of Cal.com This squashed commit contains all Cal.diy changes applied on top of calcom/cal.com main: - Rebrand Cal.com to Cal.diy across the entire codebase - Remove Enterprise Edition (EE) features, license checks, and AGPL restrictions - Switch license from AGPL-3.0 to MIT - Remove docs/ directory (migrated to Nextra at cal.diy) - Remove dead code: org tests, EE tips, platform nav, premium username, SAML/SSO, etc. - Clean up .env.example for self-hosted Cal.diy - Update Docker image references to calcom/cal.diy - Update README, CONTRIBUTING.md, and issue templates for Cal.diy community fork - Add PR welcome bot for Cal.diy contributors - Fix API v2 breaking changes oasdiff ignore entries - Replace Blacksmith CI runners with default GitHub Actions 3893 files changed, 20789 insertions(+), 411020 deletions(-) Co-Authored-By: [email protected] <[email protected]> * refactor: remove org-specific /organizations/:orgId endpoints from API v2 atoms controllers (#1701) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * fix: revert Cal.diy Inc to Cal.com, Inc. in license files, copyright notices, and package metadata (#1702) Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * rip out org related comments in api v2 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
a17f28e9ab
commit
ab21c7f805
4080 files changed
+14403
-404922
No files matched your search
@@ -1,5 +1,5 @@
|
||||
## 0.0.51
|
||||
Released to support PR https://github.com/calcom/cal.com/pull/17224 which enabled attendee specified location during booking.
|
||||
Released to support PR https://github.com/calcom/cal.diy/pull/17224 which enabled attendee specified location during booking.
|
||||
|
||||
## 0.0.41
|
||||
Released to support handle cancel booking passing oauth client id to webhooks.
|
||||
@@ -23,15 +23,15 @@ Released to support handle cancel booking passing oauth client id to webhooks.
|
||||
- Added `transformSeatsInternalToApi` translator to enhance readability and clarity of the `seats` data.
|
||||
|
||||
## 0.0.37
|
||||
Released to support PR https://github.com/calcom/cal.com/pull/16200
|
||||
Released to support PR https://github.com/calcom/cal.diy/pull/16200
|
||||
|
||||
## 0.0.36
|
||||
|
||||
Released to support PR https://github.com/calcom/cal.com/pull/16685
|
||||
Released to support PR https://github.com/calcom/cal.diy/pull/16685
|
||||
|
||||
## 0.0.31
|
||||
|
||||
PR https://github.com/calcom/cal.com/pull/16414 fixed issue of deleting and rescheduling recurring events.
|
||||
PR https://github.com/calcom/cal.diy/pull/16414 fixed issue of deleting and rescheduling recurring events.
|
||||
|
||||
## 0.0.30
|
||||
|
||||
@@ -82,5 +82,5 @@ to a specific schedule.
|
||||
|
||||
## 0.0.19
|
||||
|
||||
Added - create event type handler was [updated](https://github.com/calcom/cal.com/pull/15774) for system admins not to be required
|
||||
Added - create event type handler was [updated](https://github.com/calcom/cal.diy/pull/15774) for system admins not to be required
|
||||
to be part of org team when creating event type for team. Update libraries to include these changes.
|
||||
@@ -1,16 +1,13 @@
|
||||
import getEnabledAppsFromCredentials from "@calcom/app-store/_utils/getEnabledAppsFromCredentials";
|
||||
import getApps from "@calcom/app-store/utils";
|
||||
import getApps, { type CredentialDataWithTeamName } from "@calcom/app-store/utils";
|
||||
import handleDeleteCredential from "@calcom/features/credentials/handleDeleteCredential";
|
||||
import addDelegationCredential from "@calcom/trpc/server/routers/viewer/delegationCredential/add.handler";
|
||||
|
||||
export type { TDependencyData } from "@calcom/app-store/_appRegistry";
|
||||
|
||||
export type { CredentialOwner } from "@calcom/app-store/types";
|
||||
export { BuildCalendarService as BuildIcsFeedCalendarService } from "@calcom/app-store/ics-feedcalendar/lib";
|
||||
export { getAppFromSlug } from "@calcom/app-store/utils";
|
||||
export type { CredentialDataWithTeamName, LocationOption } from "@calcom/app-store/utils";
|
||||
|
||||
export { BuildCalendarService } from "@calcom/app-store/applecalendar/lib";
|
||||
export { BuildCalendarService as BuildIcsFeedCalendarService } from "@calcom/app-store/ics-feedcalendar/lib";
|
||||
export type { CredentialOwner } from "@calcom/app-store/types";
|
||||
export type { CredentialDataWithTeamName, LocationOption } from "@calcom/app-store/utils";
|
||||
export { getAppFromSlug } from "@calcom/app-store/utils";
|
||||
|
||||
export { getApps };
|
||||
|
||||
@@ -20,30 +17,35 @@ export type { App } from "@calcom/types/App";
|
||||
|
||||
export { getEnabledAppsFromCredentials };
|
||||
|
||||
export { getConnectedApps } from "@calcom/app-store/_utils/getConnectedApps";
|
||||
|
||||
export type { TServiceAccountKeySchema } from "@calcom/prisma/zod-utils";
|
||||
|
||||
export type { ConnectedApps } from "@calcom/app-store/_utils/getConnectedApps";
|
||||
|
||||
export { getConnectedApps } from "@calcom/app-store/_utils/getConnectedApps";
|
||||
export { OAuth2UniversalSchema } from "@calcom/app-store/_utils/oauth/universalSchema";
|
||||
export {
|
||||
CalendarAppDelegationCredentialClientIdNotAuthorizedError,
|
||||
CalendarAppDelegationCredentialConfigurationError,
|
||||
CalendarAppDelegationCredentialError,
|
||||
CalendarAppDelegationCredentialInvalidGrantError,
|
||||
CalendarAppDelegationCredentialNotSetupError,
|
||||
CalendarAppError,
|
||||
} from "@calcom/lib/CalendarAppError";
|
||||
export type { TServiceAccountKeySchema } from "@calcom/prisma/zod-utils";
|
||||
export type { AppsStatus } from "@calcom/types/Calendar";
|
||||
|
||||
export type { CredentialPayload } from "@calcom/types/Credential";
|
||||
|
||||
export { addDelegationCredential };
|
||||
// Delegation credentials removed (EE feature) — stub for API v2
|
||||
export const DelegationCredentialRepository = {
|
||||
findByIdIncludeSensitiveServiceAccountKey(_args: {
|
||||
id: string;
|
||||
}): Promise<{ serviceAccountKey: { client_email: string; private_key: string } | null } | null> {
|
||||
return Promise.resolve(null);
|
||||
},
|
||||
};
|
||||
|
||||
export { enrichUserWithDelegationConferencingCredentialsWithoutOrgId } from "@calcom/app-store/delegationCredential";
|
||||
export { toggleDelegationCredentialEnabled } from "@calcom/trpc/server/routers/viewer/delegationCredential/toggleEnabled.handler";
|
||||
export {
|
||||
CalendarAppError,
|
||||
CalendarAppDelegationCredentialInvalidGrantError,
|
||||
CalendarAppDelegationCredentialError,
|
||||
CalendarAppDelegationCredentialConfigurationError,
|
||||
CalendarAppDelegationCredentialClientIdNotAuthorizedError,
|
||||
CalendarAppDelegationCredentialNotSetupError,
|
||||
} from "@calcom/lib/CalendarAppError";
|
||||
|
||||
export { DelegationCredentialRepository } from "@calcom/features/delegation-credentials/repositories/DelegationCredentialRepository";
|
||||
|
||||
export { OAuth2UniversalSchema } from "@calcom/app-store/_utils/oauth/universalSchema";
|
||||
export { getUsersCredentialsIncludeServiceAccountKey } from "@calcom/app-store/delegationCredential";
|
||||
|
||||
// enrichUserWithDelegationConferencingCredentialsWithoutOrgId removed (EE feature) — stub for API v2
|
||||
export async function enrichUserWithDelegationConferencingCredentialsWithoutOrgId(_args: {
|
||||
user: { credentials: unknown[]; [key: string]: unknown };
|
||||
}): Promise<{ credentials: unknown[] }> {
|
||||
return { credentials: (_args.user.credentials as unknown[]) || [] };
|
||||
}
|
||||
@@ -1,18 +1,11 @@
|
||||
export { getAuditActorRepository } from "@calcom/features/booking-audit/di/AuditActorRepository.container";
|
||||
export { makeUserActor } from "@calcom/features/booking-audit/lib/makeActor";
|
||||
export { BookingAuditTaskerProducerService } from "@calcom/features/booking-audit/lib/service/BookingAuditTaskerProducerService";
|
||||
export { getBookingAttendeesService } from "@calcom/features/bookings/di/BookingAttendeesService.container";
|
||||
export { BookingEmailSmsHandler } from "@calcom/features/bookings/lib/BookingEmailSmsHandler";
|
||||
export { CheckBookingLimitsService } from "@calcom/features/bookings/lib/checkBookingLimits";
|
||||
export type {
|
||||
InstantBookingCreateResult,
|
||||
RegularBookingCreateResult,
|
||||
} from "@calcom/features/bookings/lib/dto/types";
|
||||
export type { RegularBookingCreateResult } from "@calcom/features/bookings/lib/dto/types";
|
||||
export { LuckyUserService } from "@calcom/features/bookings/lib/getLuckyUser";
|
||||
export { BookingCancelService } from "@calcom/features/bookings/lib/handleCancelBooking";
|
||||
export { CheckBookingAndDurationLimitsService } from "@calcom/features/bookings/lib/handleNewBooking/checkBookingAndDurationLimits";
|
||||
export { BookingEventHandlerService } from "@calcom/features/bookings/lib/onBookingEvents/BookingEventHandlerService";
|
||||
export { InstantBookingCreateService } from "@calcom/features/bookings/lib/service/InstantBookingCreateService";
|
||||
export { RecurringBookingService } from "@calcom/features/bookings/lib/service/RecurringBookingService";
|
||||
export { RegularBookingService } from "@calcom/features/bookings/lib/service/RegularBookingService";
|
||||
export { BookingEmailAndSmsSyncTasker } from "@calcom/features/bookings/lib/tasker/BookingEmailAndSmsSyncTasker";
|
||||
@@ -29,3 +22,8 @@ export {
|
||||
bookingWithUserAndEventDetailsSelect,
|
||||
} from "@calcom/prisma/selects/booking";
|
||||
export { addGuestsHandler } from "@calcom/trpc/server/routers/viewer/bookings/addGuests.handler";
|
||||
|
||||
// Booking audit was removed during EE cleanup — makeUserActor stub for API v2
|
||||
export function makeUserActor(_uuid: string): { type: string; actorId: string } {
|
||||
return { type: "user", actorId: _uuid };
|
||||
}
|
||||
@@ -16,8 +16,8 @@ import {
|
||||
sendChangeOfEmailVerification,
|
||||
sendEmailVerificationByCode,
|
||||
} from "@calcom/features/auth/lib/verifyEmail";
|
||||
import { sendSignupToOrganizationEmail } from "@calcom/trpc/server/routers/viewer/teams/inviteMember/utils";
|
||||
import { verifyEmailCodeHandler } from "@calcom/trpc/server/routers/viewer/workflows/verifyEmailCode.handler";
|
||||
// sendSignupToOrganizationEmail removed (EE/org feature)
|
||||
// verifyEmailCodeHandler removed (EE/workflows feature)
|
||||
|
||||
export { AttendeeVerifyEmail };
|
||||
|
||||
@@ -47,9 +47,25 @@ export { OrganizerRequestEmail };
|
||||
|
||||
export { AttendeeRequestEmail };
|
||||
|
||||
export { sendSignupToOrganizationEmail };
|
||||
|
||||
export { sendEmailVerificationByCode };
|
||||
export { sendChangeOfEmailVerification };
|
||||
|
||||
export { verifyEmailCodeHandler };
|
||||
// sendSignupToOrganizationEmail stub — org feature removed
|
||||
export async function sendSignupToOrganizationEmail(_args: {
|
||||
usernameOrEmail: string;
|
||||
team: { name: string; slug?: string | null; id?: number; parent?: unknown | null };
|
||||
inviterName: string;
|
||||
teamId: number;
|
||||
isOrg: boolean;
|
||||
translation?: unknown;
|
||||
}): Promise<void> {
|
||||
// No-op: organization signup emails are not available in community edition
|
||||
}
|
||||
|
||||
// verifyEmailCodeHandler stub — used by verified-resources service
|
||||
export async function verifyEmailCodeHandler(_opts: {
|
||||
input: { code: string; email: string; teamId?: number };
|
||||
ctx?: { user?: { id: number } };
|
||||
}): Promise<boolean> {
|
||||
return false;
|
||||
}
|
||||
@@ -29,7 +29,5 @@ export { getEventTypesByViewer } from "@calcom/features/eventtypes/lib/getEventT
|
||||
export type { EventType } from "@calcom/features/eventtypes/lib/getEventTypeById";
|
||||
export type { EventTypesByViewer } from "@calcom/features/eventtypes/lib/getEventTypesByViewer";
|
||||
export type { UpdateEventTypeReturn } from "@calcom/trpc/server/routers/viewer/eventTypes/heavy/update.handler";
|
||||
export { updateNewTeamMemberEventTypes } from "@calcom/features/ee/teams/lib/queries";
|
||||
|
||||
export { bulkUpdateEventsToDefaultLocation } from "@calcom/app-store/_utils/bulkUpdateEventsToDefaultLocation";
|
||||
export { bulkUpdateTeamEventsToDefaultLocation } from "@calcom/app-store/_utils/bulkUpdateTeamEventsToDefaultLocation";
|
||||
@@ -3,21 +3,12 @@ import getAllUserBookings from "@calcom/features/bookings/lib/getAllUserBookings
|
||||
import { getBookingFieldsWithSystemFields } from "@calcom/features/bookings/lib/getBookingFields";
|
||||
import getBookingInfo from "@calcom/features/bookings/lib/getBookingInfo";
|
||||
import handleCancelBooking from "@calcom/features/bookings/lib/handleCancelBooking";
|
||||
import { getClientSecretFromPayment } from "@calcom/features/ee/payments/pages/getClientSecretFromPayment";
|
||||
import { getTeamMemberEmailForResponseOrContactUsingUrlQuery } from "@calcom/features/ee/teams/lib/getTeamMemberEmailFromCrm";
|
||||
import {
|
||||
sendVerificationCode,
|
||||
verifyPhoneNumber,
|
||||
} from "@calcom/features/ee/workflows/lib/reminders/verifyPhoneNumber";
|
||||
import { handleCreatePhoneCall } from "@calcom/features/handleCreatePhoneCall";
|
||||
import handleMarkNoShow from "@calcom/features/handleMarkNoShow";
|
||||
import { getRoutedUrl } from "@calcom/features/routing-forms/lib/getRoutedUrl";
|
||||
import { getTranslation } from "@calcom/i18n/server";
|
||||
import { symmetricDecrypt, symmetricEncrypt } from "@calcom/lib/crypto";
|
||||
import type { Prisma } from "@calcom/prisma/client";
|
||||
import { credentialForCalendarServiceSelect } from "@calcom/prisma/selects/credential";
|
||||
import { paymentDataSelect } from "@calcom/prisma/selects/payment";
|
||||
import { createNewUsersConnectToOrgIfExists } from "@calcom/trpc/server/routers/viewer/teams/inviteMember/utils";
|
||||
|
||||
export { slugify } from "@calcom/lib/slugify";
|
||||
export { slugifyLenient } from "@calcom/lib/slugify-lenient";
|
||||
@@ -38,14 +29,10 @@ export {
|
||||
SchedulingType,
|
||||
TimeUnit,
|
||||
WebhookTriggerEvents,
|
||||
WorkflowActions,
|
||||
WorkflowTemplates,
|
||||
WorkflowTriggerEvents,
|
||||
} from "@calcom/prisma/enums";
|
||||
export type { CalendarEvent, EventBusyDate } from "@calcom/types/Calendar";
|
||||
|
||||
export { handleMarkNoShow };
|
||||
export { handleCreatePhoneCall };
|
||||
|
||||
export type {
|
||||
BookingCreateBody,
|
||||
@@ -62,7 +49,6 @@ export type { CityTimezones } from "@calcom/features/cityTimezones/cityTimezones
|
||||
export { cityTimezonesHandler } from "@calcom/features/cityTimezones/cityTimezonesHandler";
|
||||
export { ENABLE_ASYNC_TASKER, MINUTES_TO_BOOK } from "@calcom/lib/constants";
|
||||
export { TRPCError } from "@trpc/server";
|
||||
export { createNewUsersConnectToOrgIfExists };
|
||||
|
||||
export { getAllUserBookings };
|
||||
export { getBookingInfo };
|
||||
@@ -81,8 +67,6 @@ export { symmetricEncrypt, symmetricDecrypt };
|
||||
|
||||
export { getTranslation };
|
||||
|
||||
export { roundRobinManualReassignment } from "@calcom/features/ee/round-robin/roundRobinManualReassignment";
|
||||
export { roundRobinReassignment } from "@calcom/features/ee/round-robin/roundRobinReassignment";
|
||||
export { validateCustomEventName } from "@calcom/features/eventtypes/lib/eventNaming";
|
||||
|
||||
export type TeamQuery = Prisma.TeamGetPayload<{
|
||||
@@ -103,45 +87,29 @@ export type TeamQuery = Prisma.TeamGetPayload<{
|
||||
|
||||
export { credentialForCalendarServiceSelect };
|
||||
export { paymentDataSelect };
|
||||
export { getClientSecretFromPayment };
|
||||
|
||||
export type { GroupedAttribute } from "@calcom/trpc/server/routers/viewer/attributes/getByUserId.handler";
|
||||
export { groupMembershipAttributes } from "@calcom/trpc/server/routers/viewer/attributes/getByUserId.handler";
|
||||
export { confirmHandler as confirmBookingHandler } from "@calcom/trpc/server/routers/viewer/bookings/confirm.handler";
|
||||
export { getBookingFieldsWithSystemFields };
|
||||
|
||||
export { getRoutedUrl };
|
||||
|
||||
export { getTeamMemberEmailForResponseOrContactUsingUrlQuery };
|
||||
|
||||
export { checkAdminOrOwner } from "@calcom/features/auth/lib/checkAdminOrOwner";
|
||||
export { getCalendarLinks } from "@calcom/features/bookings/lib/getCalendarLinks";
|
||||
export { findTeamMembersMatchingAttributeLogic } from "@calcom/features/routing-forms/lib/findTeamMembersMatchingAttributeLogic";
|
||||
export { SelectedCalendarRepository } from "@calcom/features/selectedCalendar/repositories/SelectedCalendarRepository";
|
||||
export { encryptServiceAccountKey } from "@calcom/lib/server/serviceAccountKey";
|
||||
export { createHandler as createApiKeyHandler } from "@calcom/trpc/server/routers/viewer/apiKeys/create.handler";
|
||||
export type { TFindTeamMembersMatchingAttributeLogicInputSchema } from "@calcom/trpc/server/routers/viewer/attributes/findTeamMembersMatchingAttributeLogic.schema";
|
||||
|
||||
export { verifyPhoneNumber, sendVerificationCode };
|
||||
|
||||
export { sendLocationChangeEmailsAndSMS } from "@calcom/emails/email-manager";
|
||||
export { verifyCodeUnAuthenticated } from "@calcom/features/auth/lib/verifyCodeUnAuthenticated";
|
||||
export { sendEmailVerificationByCode } from "@calcom/features/auth/lib/verifyEmail";
|
||||
export { getCalendarLinks } from "@calcom/features/bookings/lib/getCalendarLinks";
|
||||
export { BookingReferenceRepository } from "@calcom/features/bookingReference/repositories/BookingReferenceRepository";
|
||||
export { BookingAccessService } from "@calcom/features/bookings/services/BookingAccessService";
|
||||
export { CredentialRepository } from "@calcom/features/credentials/repositories/CredentialRepository";
|
||||
export type { OrgMembershipLookup } from "@calcom/features/di/modules/OrgMembershipLookup";
|
||||
export { StripeBillingService } from "@calcom/features/ee/billing/service/billingProvider/StripeBillingService";
|
||||
export { TeamService } from "@calcom/features/ee/teams/services/teamService";
|
||||
export type { OAuth2Tokens } from "@calcom/features/oauth/services/OAuthService";
|
||||
export { OAuthService } from "@calcom/features/oauth/services/OAuthService";
|
||||
export { generateSecret } from "@calcom/features/oauth/utils/generateSecret";
|
||||
export { ProfileRepository } from "@calcom/features/profile/repositories/ProfileRepository";
|
||||
export { SelectedCalendarRepository } from "@calcom/features/selectedCalendar/repositories/SelectedCalendarRepository";
|
||||
export type { Tasker } from "@calcom/features/tasker/tasker";
|
||||
export { getTasker } from "@calcom/features/tasker/tasker-factory";
|
||||
export { buildCalEventFromBooking } from "@calcom/lib/buildCalEventFromBooking";
|
||||
export { getVideoCallUrlFromCalEvent } from "@calcom/lib/CalEventParser";
|
||||
export { verifyCodeChallenge } from "@calcom/lib/pkce";
|
||||
export { encryptServiceAccountKey } from "@calcom/lib/server/serviceAccountKey";
|
||||
export { validateUrlForSSRFSync } from "@calcom/lib/ssrfProtection";
|
||||
export type { TraceContext } from "@calcom/lib/tracing";
|
||||
export { distributedTracing } from "@calcom/lib/tracing/factory";
|
||||
@@ -150,5 +118,97 @@ export {
|
||||
bookingWithUserAndEventDetailsSelect,
|
||||
} from "@calcom/prisma/selects/booking";
|
||||
export { checkEmailVerificationRequired } from "@calcom/trpc/server/routers/publicViewer/checkIfUserEmailVerificationRequired.handler";
|
||||
export { verifyCode as verifyCodeAuthenticated } from "@calcom/trpc/server/routers/viewer/organizations/verifyCode.handler";
|
||||
export type { CredentialForCalendarService } from "@calcom/types/Credential";
|
||||
|
||||
// === Stubs for deleted EE features still imported by API v2 ===
|
||||
|
||||
// Round-robin reassignment removed (EE feature) — stubs for API v2
|
||||
export async function roundRobinManualReassignment(_args: {
|
||||
bookingId: number;
|
||||
newUserId: number;
|
||||
orgId?: number | null;
|
||||
reassignReason?: string;
|
||||
reassignedById?: number;
|
||||
emailsEnabled?: boolean;
|
||||
platformClientParams?: unknown;
|
||||
actionSource?: string;
|
||||
reassignedByUuid?: string;
|
||||
}): Promise<void> {
|
||||
// No-op in community edition
|
||||
}
|
||||
|
||||
export async function roundRobinReassignment(_args: {
|
||||
bookingId: number;
|
||||
orgId?: number | null;
|
||||
emailsEnabled?: boolean;
|
||||
platformClientParams?: unknown;
|
||||
reassignedById?: number;
|
||||
actionSource?: string;
|
||||
reassignedByUuid?: string;
|
||||
}): Promise<void> {
|
||||
// No-op in community edition
|
||||
}
|
||||
|
||||
// createApiKeyHandler removed (EE feature) — stub for API v2
|
||||
export async function createApiKeyHandler(_args: {
|
||||
ctx: { user: { id: number } };
|
||||
input: {
|
||||
note?: string | null;
|
||||
neverExpires?: boolean;
|
||||
expiresAt?: Date | null;
|
||||
teamId?: number;
|
||||
};
|
||||
}): Promise<string> {
|
||||
throw new Error("API key creation is not available in community edition");
|
||||
}
|
||||
|
||||
// getClientSecretFromPayment removed (EE feature) — stub for API v2
|
||||
export function getClientSecretFromPayment(payment: { data: Record<string, unknown> }): string | null {
|
||||
const data = payment.data;
|
||||
if (data && typeof data === "object" && "client_secret" in data) {
|
||||
return data.client_secret as string;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
// verifyCodeAuthenticated removed (EE feature) — stub for API v2
|
||||
export async function verifyCodeAuthenticated(_args: {
|
||||
user: { id: number; email?: string; [key: string]: unknown };
|
||||
email: string;
|
||||
code: string;
|
||||
}): Promise<boolean> {
|
||||
return false;
|
||||
}
|
||||
|
||||
// createNewUsersConnectToOrgIfExists removed (EE feature) — stub for API v2
|
||||
export async function createNewUsersConnectToOrgIfExists(_args: {
|
||||
invitations: { usernameOrEmail: string; role: string }[];
|
||||
creationSource?: string;
|
||||
teamId: number;
|
||||
isOrg: boolean;
|
||||
parentId: number | null;
|
||||
autoAcceptEmailDomain: string;
|
||||
orgConnectInfoByUsernameOrEmail: Record<string, { orgId: number; autoAccept: boolean }>;
|
||||
isPlatformManaged?: boolean;
|
||||
timeFormat?: number;
|
||||
weekStart?: string;
|
||||
timeZone?: string;
|
||||
language?: string;
|
||||
}): Promise<{ id: number; email: string; username: string }[]> {
|
||||
throw new Error("Organization user creation is not available in community edition");
|
||||
}
|
||||
|
||||
// sendVerificationCode removed (EE feature) — stub for API v2
|
||||
export async function sendVerificationCode(_phoneNumber: string): Promise<void> {
|
||||
throw new Error("Phone verification is not available in community edition");
|
||||
}
|
||||
|
||||
// verifyPhoneNumber removed (EE feature) — stub for API v2
|
||||
export async function verifyPhoneNumber(
|
||||
_phoneNumber: string,
|
||||
_code: string,
|
||||
_userId: number,
|
||||
_teamId?: number
|
||||
): Promise<boolean> {
|
||||
throw new Error("Phone verification is not available in community edition");
|
||||
}
|
||||
@@ -1,17 +1,24 @@
|
||||
export { getOrganizationRepository } from "@calcom/features/ee/organizations/di/OrganizationRepository.container";
|
||||
export { OrganizationRepository } from "@calcom/features/ee/organizations/repositories/OrganizationRepository";
|
||||
export { OrganizationMembershipService } from "@calcom/features/ee/organizations/lib/service/OrganizationMembershipService";
|
||||
export type { IOrganizationRepository } from "@calcom/features/ee/organizations/lib/repository/IOrganizationRepository";
|
||||
// Organizations are not available in community edition
|
||||
// Only getBookerBaseUrlSync is kept as it's used for URL generation
|
||||
|
||||
export { getOrgFullOrigin, subdomainSuffix } from "@calcom/features/ee/organizations/lib/orgDomains";
|
||||
export { getBookerBaseUrlSync } from "@calcom/features/ee/organizations/lib/getBookerBaseUrlSync";
|
||||
import process from "node:process";
|
||||
export function getBookerBaseUrlSync(_orgSlug: string | null): string {
|
||||
return process.env.NEXT_PUBLIC_WEBAPP_URL || "https://app.cal.com";
|
||||
}
|
||||
|
||||
export { PlatformBillingRepository } from "@calcom/features/ee/organizations/repositories/PlatformBillingRepository";
|
||||
export { PlatformOrganizationBillingTasker } from "@calcom/features/ee/organizations/lib/billing/tasker/PlatformOrganizationBillingTasker";
|
||||
export { PlatformOrganizationBillingSyncTasker } from "@calcom/features/ee/organizations/lib/billing/tasker/PlatformOrganizationBillingSyncTasker";
|
||||
export { PlatformOrganizationBillingTriggerTasker } from "@calcom/features/ee/organizations/lib/billing/tasker/PlatformOrganizationBillingTriggerTasker";
|
||||
export { PlatformOrganizationBillingTaskService } from "@calcom/features/ee/organizations/lib/billing/tasker/PlatformOrganizationBillingTaskService";
|
||||
export type { IBillingProviderService } from "@calcom/features/ee/billing/service/billingProvider/IBillingProviderService";
|
||||
// Stub billing service for API v2 — org billing removed in community edition
|
||||
class ActiveUserBillingServiceStub {
|
||||
async getActiveUserCountForPlatformOrg(
|
||||
_subscriptionId: string,
|
||||
_invoiceStart: Date,
|
||||
_invoiceEnd: Date
|
||||
): Promise<number> {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
export { getActiveUserBillingService } from "@calcom/features/ee/billing/active-user/di/ActiveUserBillingService.container";
|
||||
export { ActiveUserBillingService } from "@calcom/features/ee/billing/active-user/services/ActiveUserBillingService";
|
||||
const activeUserBillingServiceStub = new ActiveUserBillingServiceStub();
|
||||
|
||||
export function getActiveUserBillingService(): ActiveUserBillingServiceStub {
|
||||
return activeUserBillingServiceStub;
|
||||
}
|
||||
@@ -36,11 +36,6 @@
|
||||
"vite-plugin-environment": "1.1.3"
|
||||
},
|
||||
"exports": {
|
||||
"./workflows": {
|
||||
"import": "./dist/workflows.js",
|
||||
"require": "./dist/workflows.cjs",
|
||||
"types": "./dist/workflows.d.ts"
|
||||
},
|
||||
"./app-store": {
|
||||
"import": "./dist/app-store.js",
|
||||
"require": "./dist/app-store.cjs",
|
||||
@@ -96,11 +91,6 @@
|
||||
"require": "./dist/private-links.cjs",
|
||||
"types": "./dist/private-links.d.ts"
|
||||
},
|
||||
"./pbac": {
|
||||
"import": "./dist/pbac.js",
|
||||
"require": "./dist/pbac.cjs",
|
||||
"types": "./dist/pbac.d.ts"
|
||||
},
|
||||
"./errors": {
|
||||
"import": "./dist/errors.js",
|
||||
"require": "./dist/errors.cjs",
|
||||
@@ -134,9 +124,6 @@
|
||||
"schedules": [
|
||||
"dist/schedules.d.ts"
|
||||
],
|
||||
"workflows": [
|
||||
"dist/workflows.d.ts"
|
||||
],
|
||||
"conferencing": [
|
||||
"dist/conferencing.d.ts"
|
||||
],
|
||||
@@ -152,9 +139,6 @@
|
||||
"private-links": [
|
||||
"dist/private-links.d.ts"
|
||||
],
|
||||
"pbac": [
|
||||
"dist/pbac.d.ts"
|
||||
],
|
||||
"errors": [
|
||||
"dist/errors.d.ts"
|
||||
],
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
export type { PermissionString } from "@calcom/features/pbac/domain/types/permission-registry";
|
||||
export { Scope } from "@calcom/features/pbac/domain/types/permission-registry";
|
||||
export { getAllPermissionStringsForScope } from "@calcom/features/pbac/domain/types/permission-registry";
|
||||
export { PermissionCheckService } from "@calcom/features/pbac/services/permission-check.service";
|
||||
export { FeaturesRepository } from "@calcom/features/flags/features.repository";
|
||||
export { RoleService } from "@calcom/features/pbac/services/role.service";
|
||||
export type { Role } from "@calcom/features/pbac/domain/models/Role";
|
||||
export type { CreateRoleData, UpdateRolePermissionsData } from "@calcom/features/pbac/domain/models/Role";
|
||||
export { isValidPermissionString } from "@calcom/features/pbac/domain/types/permission-registry";
|
||||
export { isValidPermissionStringForScope } from "@calcom/features/pbac/domain/types/permission-registry";
|
||||
@@ -1,12 +1,9 @@
|
||||
export { PrismaAttributeRepository } from "@calcom/features/attributes/repositories/PrismaAttributeRepository";
|
||||
export { PrismaOOORepository } from "@calcom/features/ooo/repositories/PrismaOOORepository";
|
||||
export { PrismaHolidayRepository } from "@calcom/features/holidays/repositories/PrismaHolidayRepository";
|
||||
export { ScheduleRepository as PrismaScheduleRepository } from "@calcom/features/schedules/repositories/ScheduleRepository";
|
||||
export { BookingRepository as PrismaBookingRepository } from "@calcom/features/bookings/repositories/BookingRepository";
|
||||
export { EventTypeRepository as PrismaEventTypeRepository } from "@calcom/features/eventtypes/repositories/eventTypeRepository";
|
||||
export { RoutingFormResponseRepository as PrismaRoutingFormResponseRepository } from "@calcom/features/routing-forms/repositories/RoutingFormResponseRepository";
|
||||
export { PrismaSelectedSlotRepository } from "@calcom/features/selectedSlots/repositories/PrismaSelectedSlotRepository";
|
||||
export { TeamRepository as PrismaTeamRepository } from "@calcom/features/ee/teams/repositories/TeamRepository";
|
||||
export { UserRepository as PrismaUserRepository } from "@calcom/features/users/repositories/UserRepository";
|
||||
export { FeaturesRepository as PrismaFeaturesRepository } from "@calcom/features/flags/features.repository";
|
||||
export { MembershipRepository as PrismaMembershipRepository } from "@calcom/features/membership/repositories/MembershipRepository";
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
import { FilterHostsService } from "@calcom/features/bookings/lib/host-filtering/filterHostsBySameRoundRobinHost";
|
||||
import { QualifiedHostsService } from "@calcom/features/bookings/lib/host-filtering/findQualifiedHostsWithDelegationCredentials";
|
||||
import { BusyTimesService } from "@calcom/features/busyTimes/services/getBusyTimes";
|
||||
import { validateRoundRobinSlotAvailability } from "@calcom/features/ee/round-robin/utils/validateRoundRobinSlotAvailability";
|
||||
import { NoSlotsNotificationService } from "@calcom/features/slots/handleNotificationWhenNoSlots";
|
||||
import { AvailableSlotsService } from "@calcom/trpc/server/routers/viewer/slots/util";
|
||||
|
||||
export type { GetScheduleOptions } from "@calcom/trpc/server/routers/viewer/slots/types";
|
||||
|
||||
export { AvailableSlotsService };
|
||||
|
||||
export { BusyTimesService };
|
||||
|
||||
export { QualifiedHostsService };
|
||||
|
||||
export { FilterHostsService };
|
||||
export { NoSlotsNotificationService };
|
||||
export { validateRoundRobinSlotAvailability };
|
||||
|
||||
// Round-robin slot validation removed (EE feature) — stub for API v2
|
||||
export async function validateRoundRobinSlotAvailability(
|
||||
_eventTypeId: number,
|
||||
_startDate: unknown,
|
||||
_endDate: unknown,
|
||||
_hosts: unknown[]
|
||||
): Promise<boolean> {
|
||||
return true;
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
export {
|
||||
CANCEL_USAGE_INCREMENT_JOB_ID,
|
||||
getIncrementUsageIdempotencyKey,
|
||||
getIncrementUsageJobTag,
|
||||
INCREMENT_USAGE_JOB_ID,
|
||||
RESCHEDULE_USAGE_INCREMENT_JOB_ID,
|
||||
} from "@calcom/features/ee/organizations/lib/billing/tasker/constants";
|
||||
export type { Tasker } from "@calcom/features/tasker/tasker";
|
||||
export { getTasker } from "@calcom/features/tasker/tasker-factory";
|
||||
|
||||
// Billing tasker helpers removed (EE feature) — stubs for API v2
|
||||
export function getIncrementUsageIdempotencyKey(bookingUid: string): string {
|
||||
return `increment-usage-${bookingUid}`;
|
||||
}
|
||||
|
||||
export function getIncrementUsageJobTag(bookingUid: string): string {
|
||||
return `increment-usage-tag-${bookingUid}`;
|
||||
}
|
||||
@@ -11,7 +11,7 @@
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@calcom/lib/server/i18n": ["./i18n.ts"]
|
||||
"@calcom/i18n/server": ["../../i18n/server.ts"]
|
||||
}
|
||||
},
|
||||
"include": [".", "../../types/*.d.ts"],
|
||||
|
||||
@@ -34,14 +34,12 @@ export default defineConfig({
|
||||
emails: resolve(__dirname, "./emails.ts"),
|
||||
"event-types": resolve(__dirname, "./event-types.ts"),
|
||||
"app-store": resolve(__dirname, "./app-store.ts"),
|
||||
workflows: resolve(__dirname, "./workflows.ts"),
|
||||
slots: resolve(__dirname, "./slots.ts"),
|
||||
conferencing: resolve(__dirname, "./conferencing.ts"),
|
||||
repositories: resolve(__dirname, "./repositories.ts"),
|
||||
bookings: resolve(__dirname, "./bookings.ts"),
|
||||
organizations: resolve(__dirname, "./organizations.ts"),
|
||||
"private-links": resolve(__dirname, "./private-links.ts"),
|
||||
pbac: resolve(__dirname, "./pbac.ts"),
|
||||
errors: resolve(__dirname, "./errors.ts"),
|
||||
calendars: resolve(__dirname, "./calendars.ts"),
|
||||
tasker: resolve(__dirname, "./tasker.ts"),
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export { updateHandler as updateWorkflow } from "@calcom/trpc/server/routers/viewer/workflows/update.handler";
|
||||
export type { TUpdateInputSchema } from "@calcom/trpc/server/routers/viewer/workflows/update.schema";
|
||||
Reference in new issue
Block a user