import { ParticipantType } from './common.types';

export interface Participant {
  participantId: string;
  requestId: string;
  userId: string;
  userEmail: string;
  userName: string;
  participantType: ParticipantType;
  canComment: boolean;
  canViewDocuments: boolean;
  canDownloadDocuments: boolean;
  notificationEnabled: boolean;
  addedBy: string;
  addedAt: Date;
  isActive: boolean;
}

export interface CreateParticipant {
  userId: string;
  userEmail: string;
  userName: string;
  participantType: ParticipantType;
  canComment?: boolean;
  canViewDocuments?: boolean;
  canDownloadDocuments?: boolean;
  notificationEnabled?: boolean;
}

export interface UpdateParticipant {
  canComment?: boolean;
  canViewDocuments?: boolean;
  canDownloadDocuments?: boolean;
  notificationEnabled?: boolean;
  isActive?: boolean;
}
