import { Link, Theme } 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[]; } export class CustomerTheme implements Theme { @ApiProperty() backgroundColor: string; @ApiProperty() textColor: string; @ApiProperty() logo: string; @ApiProperty() logoLogin: string; } export class CustomerThemeResponse { @ApiProperty() theme: CustomerTheme; } export class CustomerThemeRequest { @ApiProperty() displayName: string; @ApiProperty() backgroundColor: string; @ApiProperty() textColor: string; }