fix: api v2 typing issues (#23786)

* fix: move validateRoundRobinSlotAvailability to core libraries

* fix: imports

* fix: update CreateCalendarCredentialsInput DTO

* cleanup
This commit is contained in:
Rajiv Sahal authored and GitHub committed 2025-09-12 18:27:56 +01:00
1 parent 794c99239a
commit 1a8b5d145f
2 files changed
+4 -5

No files matched your search

@@ -52,11 +52,7 @@ import {
APPLE_CALENDAR,
CREDENTIAL_CALENDARS,
} from "@calcom/platform-constants";
import type {
ApiResponse,
CalendarBusyTimesInput,
CreateCalendarCredentialsInput,
} from "@calcom/platform-types";
import { ApiResponse, CalendarBusyTimesInput, CreateCalendarCredentialsInput } from "@calcom/platform-types";
import type { User } from "@calcom/prisma/client";
export interface CalendarState {
@@ -1,14 +1,17 @@
import { ApiProperty } from "@nestjs/swagger";
import { Transform } from "class-transformer";
import { IsString, MinLength } from "class-validator";
export class CreateCalendarCredentialsInput {
@IsString()
@MinLength(1)
@ApiProperty()
@Transform(({ value }) => value?.trim())
username!: string;
@IsString()
@MinLength(1)
@ApiProperty()
@Transform(({ value }) => value?.trim())
password!: string;
}