Validated input types for updating unified calendar events including attendees, datetime with timezone, and response status using NestJS class-validator decorators.
// Source: https://github.com/calcom/cal.diy | License: MIT | Copyright 2020-present Cal.com, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { ApiPropertyOptional } from "@nestjs/swagger";
import { Type } from "class-transformer";
import { IsArray, IsEnum, IsISO8601, IsOptional, IsString, ValidateNested } from "class-validator";
import {
CalendarEventResponseStatus,
CalendarEventStatus,
} from "../outputs/get-unified-calendar-event.output";
export class UpdateCalendarEventAttendee {
@IsString()
@ApiPropertyOptional({
type: String,
description: "Email address of the attendee",
})
email!: string;
@IsString()
@IsOptional()
@ApiPropertyOptional({
type: String,
description: "Display name of the attendee",
})
name?: string;
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key