2026-06-07 13:56:36 +03:30
|
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
|
|
import { Injectable } from '@angular/core';
|
|
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
|
|
2026-06-11 17:53:06 +03:30
|
|
|
interface IChangePasswordSubmitPayload {
|
|
|
|
|
currentPassword: string;
|
|
|
|
|
password: string;
|
|
|
|
|
}
|
|
|
|
|
|
2026-06-07 13:56:36 +03:30
|
|
|
@Injectable({
|
|
|
|
|
providedIn: 'root',
|
|
|
|
|
})
|
|
|
|
|
export class PosChangePasswordService {
|
|
|
|
|
constructor(private readonly http: HttpClient) {}
|
|
|
|
|
|
2026-06-11 17:53:06 +03:30
|
|
|
changePassword(payload: IChangePasswordSubmitPayload): Observable<unknown> {
|
|
|
|
|
return this.http.put('/api/v1/pos/update-password', payload);
|
2026-06-07 13:56:36 +03:30
|
|
|
}
|
|
|
|
|
}
|