import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { ApiService } from "../../services/api.service";
import { Timestamp } from "../../interfaces/timestamp";
import { HelpersService } from "../../services/helpers.service";
import { AnalyticData, Segmen } from "../../interfaces/master";

export interface ReportSegmen extends Timestamp {
  id: string;
  report_id: string;
  map_street_segmen_id: string;
  user_type: string;
  user_level: string;
  segmen: Segmen;
  analytic_data: AnalyticData;
}

@Injectable({
  providedIn: "root",
})
export class ReportSegmens extends ApiService<ReportSegmen> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "report-segmens";
  }
}
