export type TicketItemType = {
  id: string;
  numericId: number;
  subject: string;
  category: {
    title: string;
  };
  user: {
    id: string;
    firstName: string;
    lastName: string;
  };
  assignedTo: {
    id: string;
    firstName: string;
    lastName: string;
  };
  updatedAt: string;
  status: string;
  priority: string;
  danakService: {
    id: string;
    name: string;
    description: string;
    icon: string;
    link: string;
    isActive: boolean;
    isDanakSuggest: boolean;
    metaDescription: string;
    serviceLanguage: string;
    softwareLanguage: string;
    title: string;
    userCount: number;
    createdAt: string;
    updatedAt: string;
  };
};

export type AddMessageTicketType = {
  content: string;
  attachmentUrls?: string[];
};

export type TicketMessageType = {
  id: string;
  content: string;
  attachmentUrls: string[];
  createdAt: string;
  user: {
    id: string;
    name: string;
  };
  author: {
    id: string;
    firstName: string;
    lastName: string;
    roles: {
      name: string;
    }[];
  };
  attachments: {
    attachmentUrl: string;
    id: string;
  }[];
};

export type CreateCategoryType = {
  title: string;
  description: string;
  isActive: boolean;
};

export type CategoriesItemType = {
  id: string;
  title: string;
  description: string;
  isActive: boolean;
  createdAt: string;
  updatedAt: string;
};

export type UpdateCategoryType = {
  title: string;
  description: string;
  isActive: boolean;
};
