import { IsString, IsOptional, IsBoolean } from 'class-validator';
import { ApiPropertyOptional } from '@nestjs/swagger';

export class UpdateNorthDataSettingsDto {
  @ApiPropertyOptional({ description: 'North Data API Key' })
  @IsOptional()
  @IsString()
  apiKey?: string;

  @ApiPropertyOptional({ description: 'Integration aktiviert?' })
  @IsOptional()
  @IsBoolean()
  enabled?: boolean;
}

export interface NorthDataSettings {
  apiKey: string | null;
  enabled: boolean;
}
