import{b as p}from"./chunk-R5GBW5HQ.js";import{S as e,pd as n,va as s,ya as i}from"./chunk-3NIPUOIR.js";var m=(()=>{class o{constructor(r,t){this.httpClient=r,this.commonHttpErrorService=t}updateUser(r){let t=`user/${r.id}`;return this.httpClient.put(t,r).pipe(e(this.commonHttpErrorService.handleError))}addUser(r){return this.httpClient.post("user",r).pipe(e(this.commonHttpErrorService.handleError))}deleteUser(r){let t=`user/${r}`;return this.httpClient.delete(t).pipe(e(this.commonHttpErrorService.handleError))}getUser(r){let t=`user/${r}`;return this.httpClient.get(t).pipe(e(this.commonHttpErrorService.handleError))}updateUserClaim(r,t){let c=`userClaim/${t}`;return this.httpClient.put(c,{userClaims:r}).pipe(e(this.commonHttpErrorService.handleError))}resetPassword(r){return this.httpClient.post("user/resetpassword",r).pipe(e(this.commonHttpErrorService.handleError))}changePassword(r){return this.httpClient.post("user/changepassword",r).pipe(e(this.commonHttpErrorService.handleError))}updateUserProfile(r){return this.httpClient.put("users/profile",r).pipe(e(this.commonHttpErrorService.handleError))}getUserInfoFromResetToken(r){let t=`user/getResetinfo/${r}`;return this.httpClient.get(t).pipe(e(this.commonHttpErrorService.handleError))}sendResetPasswordLink(r){return this.httpClient.post("user/forgotPassword",r).pipe(e(this.commonHttpErrorService.handleError))}recoverPassword(r){return this.httpClient.post("user/recoverPassword",r).pipe(e(this.commonHttpErrorService.handleError))}static{this.\u0275fac=function(t){return new(t||o)(i(n),i(p))}}static{this.\u0275prov=s({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{m as a};
