fix: fetching event-types of org users apiv2 (#18004)

This commit is contained in:
Morgan authored and GitHub committed 2024-12-05 06:02:19 +00:00
1 parent ab2ab31eef
commit 16a7cf6d04
7 files changed
+255 -36

No files matched your search

@@ -1,6 +1,6 @@
import { ApiPropertyOptional } from "@nestjs/swagger";
import { Transform } from "class-transformer";
import { IsOptional, IsString } from "class-validator";
import { IsNumber, IsOptional, IsString } from "class-validator";
export class GetEventTypesQuery_2024_06_14 {
@IsOptional()
@@ -27,6 +27,25 @@ export class GetEventTypesQuery_2024_06_14 {
type: String,
})
usernames?: string[];
@IsOptional()
@IsString()
@ApiPropertyOptional({
description:
"slug of the user's organization if he is in one, orgId is not required if using this parameter",
type: String,
})
orgSlug?: string;
@Transform(({ value }) => Number(value))
@IsOptional()
@IsNumber()
@ApiPropertyOptional({
description:
"ID of the organization of the user you want the get the event-types of, orgSlug is not needed when using this parameter",
type: Number,
})
orgId?: number;
}
export class GetTeamEventTypesQuery_2024_06_14 {