docs: v2 team event schedulingType (#20289)

* refactor: input scheduling type

* refactor: output scheduling type
This commit is contained in:
Lauris Skraucis authored and GitHub committed 2025-03-21 13:25:59 +00:00
1 parent 2e86f8404f
commit c0ecfcd910
7 files changed
+162 -32

No files matched your search

@@ -460,7 +460,11 @@ export class CreateTeamEventTypeInput_2024_06_14 extends BaseCreateEventTypeInpu
return value;
})
@IsEnum(SchedulingType)
@DocsProperty()
@DocsProperty({
enum: ["collective", "roundRobin", "managed"],
example: "collective",
description: "The scheduling type for the team event - collective, roundRobin or managed.",
})
schedulingType!: keyof typeof SchedulingType;
@ValidateNested({ each: true })
@@ -68,14 +68,6 @@ import {
ValidateOutputLocations_2024_06_14,
} from "./locations.output";
enum SchedulingTypeEnum {
ROUND_ROBIN = "ROUND_ROBIN",
COLLECTIVE = "COLLECTIVE",
MANAGED = "MANAGED",
}
export type EventTypesOutputSchedulingType = "ROUND_ROBIN" | "COLLECTIVE" | "MANAGED";
class User_2024_06_14 {
@IsInt()
@DocsProperty()
@@ -486,9 +478,9 @@ export class TeamEventTypeOutput_2024_06_14 extends BaseEventTypeOutput_2024_06_
@ApiPropertyOptional()
assignAllTeamMembers?: boolean;
@IsEnum(SchedulingTypeEnum)
@DocsProperty({ enum: SchedulingTypeEnum, nullable: true })
schedulingType!: EventTypesOutputSchedulingType | null;
@IsEnum(["roundRobin", "collective", "managed"] as const)
@DocsProperty({ enum: ["roundRobin", "collective", "managed"] })
schedulingType!: "roundRobin" | "collective" | "managed" | null;
@IsOptional()
@IsBoolean()