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 ChangePassword extends Timestamp {
  old_password: string;
  new_password: string;
}

@Injectable({
  providedIn: "root",
})
export class ChangePasswordService extends ApiService<ChangePassword> {
  constructor(
    public override http: HttpClient,
    public override helpers: HelpersService
  ) {
    super(http, helpers);
    this.endpoint = "users/change-password";
  }
}
