import { Injectable } from "@angular/core";
import { Timestamp } from "../../interfaces/timestamp";
import { ApiService } from "../../services/api.service";
import { HttpClient } from "@angular/common/http";
import { HelpersService } from "../../services/helpers.service";
import { User } from "../manage/user.service";
import { Schedule, Segmens, StatusReport } from "../../interfaces/master";

export interface Rejected extends Timestamp {
  id: string;
  user_id: string;
  status_id: string;
  note: string;
  no_ticket: string;
  status_report: StatusReport;
  user: User;
  schedule: Schedule;
  segmens: Segmens[];
}

@Injectable({
  providedIn: "root",
})
export class RejectedLaporanService extends ApiService<Rejected> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = `rejected`;
  }
}
