fix: fetching event-types of org users apiv2 (#18004)
This commit is contained in:
1 parent
ab2ab31eef
commit
16a7cf6d04
7 files changed
+255
-36
No files matched your search
+20
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user