import { IsString, IsNotEmpty, IsEnum } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { SyncDirection } from './find-sync-logs.dto';

export class TriggerSyncDto {
  @ApiProperty({
    description: 'Entity type to sync',
    example: 'clients',
  })
  @IsString()
  @IsNotEmpty()
  entityType: string;

  @ApiProperty({ description: 'Sync direction', enum: SyncDirection })
  @IsEnum(SyncDirection)
  direction: SyncDirection;
}
