import{b as m}from"./chunk-R5GBW5HQ.js";import{S as i,md as a,p as o,pd as c,va as n,ya as s}from"./chunk-3NIPUOIR.js";var l=function(r){return r[r.DOCUMENT_SHARE=0]="DOCUMENT_SHARE",r[r.REMINDER=1]="REMINDER",r[r.FILE_REQUEST=2]="FILE_REQUEST",r[r.WORKFLOW=3]="WORKFLOW",r}(l||{});var g=(()=>{class r{constructor(t,e){this.httpClient=t,this.commonHttpErrorService=e,this._sideMenuStatus$=new o(!1)}getNotification(){return this.httpClient.get("userNotification/notification").pipe(i(this.commonHttpErrorService.handleError))}getNotifications(t){let e="userNotification/notifications",p=new a().set("fields",t.fields).set("orderBy",t.orderBy).set("pageSize",t.pageSize.toString()).set("skip",t.skip.toString()).set("searchQuery",t.searchQuery).set("categoryId",t.categoryId).set("name",t.name).set("id",t.id.toString()).set("createdBy",t.createdBy.toString());return this.httpClient.get(e,{params:p,observe:"response"}).pipe(i(this.commonHttpErrorService.handleError))}markAsRead(t){return this.httpClient.post("userNotification/MarkAsRead",{id:t}).pipe(i(this.commonHttpErrorService.handleError))}markAllAsRead(){return this.httpClient.post("UserNotification/MarkAllAsRead",null).pipe(i(this.commonHttpErrorService.handleError))}get sideMenuStatus$(){return this._sideMenuStatus$.asObservable()}setSideMenuStatus(t){this._sideMenuStatus$.next(t)}static{this.\u0275fac=function(e){return new(e||r)(s(c),s(m))}}static{this.\u0275prov=n({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{l as a,g as b};
