chore: add new fetaure
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { IsNotEmpty, IsOptional, IsString } from "class-validator";
|
||||
|
||||
export class CreateDomainAccessDto {
|
||||
@ApiProperty({
|
||||
description: "Domain name to add to the list",
|
||||
example: "example.com",
|
||||
})
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
domain: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: "Optional description for this domain entry",
|
||||
example: "Trusted business partner domain",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export class ListDomainAccessQueryDto {
|
||||
@ApiPropertyOptional({
|
||||
description: "Number of entries to return",
|
||||
example: 20,
|
||||
default: 20,
|
||||
})
|
||||
@IsOptional()
|
||||
limit?: number;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: "Page number for pagination",
|
||||
example: 1,
|
||||
default: 1,
|
||||
})
|
||||
@IsOptional()
|
||||
page?: number;
|
||||
}
|
||||
Reference in New Issue
Block a user