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";

export interface Bahan extends Timestamp {
  id: string;
  name: string;
  qty: number;
  unit: string;
}

@Injectable({
  providedIn: "root",
})
export class BahanService extends ApiService<Bahan> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "inventory-list";
  }
}
