* refactor: rename SelectedSlotsRepository to PrismaSelectedSlotRepository - Rename class from SelectedSlotsRepository to PrismaSelectedSlotRepository for consistency - Update all imports and type references throughout the codebase - Update DI module bindings and variable names - Maintain type safety without breaking changes Co-Authored-By: [email protected] <[email protected]> * refactor: complete PrismaSelectedSlotRepository rename - Update DI module binding property name from selectedSlotsRepo to selectedSlotRepo - Update test mock to use PrismaSelectedSlotRepository class name - Ensure all references are consistently updated Co-Authored-By: [email protected] <[email protected]> * fix: rename file to prismaSelectedSlotRepository.ts and fix plural variable references - Rename apps/api/v2/src/lib/repositories/prisma-selected-slots.repository.ts to prismaSelectedSlotRepository.ts - Update class name from PrismaSelectedSlotsRepository to PrismaSelectedSlotRepository - Fix plural variable reference selectedSlotsRepository to selectedSlotRepository in service - Update all import paths to reference the new file name - Maintain consistency with camelCase naming convention Co-Authored-By: [email protected] <[email protected]> * fix: rename SelectedSlotsRepositoryFixture to SelectedSlotRepositoryFixture for consistency - Rename test fixture class from SelectedSlotsRepositoryFixture to SelectedSlotRepositoryFixture (singular) - Update all import statements in test files to use the renamed class - Resolves naming mismatch between fixture class and variable declarations - Fixes TypeScript compilation errors in CI tests Co-Authored-By: [email protected] <[email protected]> * feat: add SelectedSlotRepositoryInterface and update DI to use interface Co-Authored-By: [email protected] <[email protected]> * refactor: rename selectedSlots.ts to selectedSlot.ts and update all imports Co-Authored-By: [email protected] <[email protected]> * fix: update test mock import path after file rename Co-Authored-By: [email protected] <[email protected]> * Update apps/api/v2/src/lib/modules/available-slots.module.ts * Update apps/api/v2/src/lib/modules/available-slots.module.ts * Implement DTO * dont declare dependencies locally, duplicating * Small DTO/token fix * chore: bump @calcom/platform-libraries from 0.0.266 to 0.0.267 * oops. * Update fixture names also * Omg these vscode actions preventing saves * Final fix, hopefully --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Somay Chauhan <[email protected]>
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import { PrismaBookingRepository } from "@/lib/repositories/prisma-booking.repository";
|
|
import { PrismaEventTypeRepository } from "@/lib/repositories/prisma-event-type.repository";
|
|
import { PrismaOOORepository } from "@/lib/repositories/prisma-ooo.repository";
|
|
import { PrismaRoutingFormResponseRepository } from "@/lib/repositories/prisma-routing-form-response.repository";
|
|
import { PrismaScheduleRepository } from "@/lib/repositories/prisma-schedule.repository";
|
|
import { PrismaSelectedSlotRepository } from "@/lib/repositories/prisma-selected-slot.repository";
|
|
import { PrismaTeamRepository } from "@/lib/repositories/prisma-team.repository";
|
|
import { PrismaUserRepository } from "@/lib/repositories/prisma-user.repository";
|
|
import { AvailableSlotsService } from "@/lib/services/available-slots.service";
|
|
import { PrismaModule } from "@/modules/prisma/prisma.module";
|
|
import { Module } from "@nestjs/common";
|
|
|
|
@Module({
|
|
imports: [PrismaModule],
|
|
providers: [
|
|
PrismaOOORepository,
|
|
PrismaScheduleRepository,
|
|
PrismaBookingRepository,
|
|
PrismaSelectedSlotRepository,
|
|
PrismaUserRepository,
|
|
PrismaEventTypeRepository,
|
|
PrismaRoutingFormResponseRepository,
|
|
PrismaTeamRepository,
|
|
AvailableSlotsService,
|
|
],
|
|
exports: [AvailableSlotsService],
|
|
})
|
|
export class AvailableSlotsModule {}
|