import { RedmineTypes } from '@app/event-emitter/models/redmine-types';
import { ChangeMessage } from './change-message.model';

export class Change {
  initiator?: RedmineTypes.PublicUser;
  dev?: RedmineTypes.PublicUser;
  cr?: RedmineTypes.PublicUser;
  qa?: RedmineTypes.PublicUser;
  current_user?: RedmineTypes.PublicUser;
  author?: RedmineTypes.PublicUser;
  issue_id: number;
  issue_url: string;
  issue_tracker: string;
  issue_subject: string;
  journal_note?: string;
  old_status?: {
    id?: number;
    name?: string;
  } | null;
  new_status?: {
    id?: number;
    name?: string;
  };
  created_on: string;
  created_on_timestamp: number | null;
  messages: ChangeMessage[];
}
