import { Link } from '@dadosfera/protospack-v2/dist/lib/Duc/interfaces/entities'; import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; export class CustomerLink implements Link { @ApiProperty() href: string; @ApiProperty() name: string; @ApiProperty() description: string; @ApiPropertyOptional() iconSrc: string; } export class CustomerLinkRequest { @ApiProperty({ type: [CustomerLink] }) links: CustomerLink[]; } export class CustomerLinksResponse { @ApiProperty({ type: [CustomerLink] }) links: CustomerLink[]; }