1 line
4.3 KiB
JSON
1 line
4.3 KiB
JSON
{"ast":null,"code":"import { ApiService } from \"./user-management.api.service\";\nimport { HttpParams } from \"@angular/common/http\";\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport class UserRepService extends ApiService {\n constructor(http, userRepUri) {\n super(http, userRepUri);\n this.userRepUri = userRepUri;\n }\n getAll(withUser = false, withRepGroup = false, withRightGroup = false, withRepUser = false, userId) {\n let params = new HttpParams();\n if (withUser) {\n params = params.set('withUser', withUser);\n }\n if (withRepGroup) {\n params = params.set('withRepGroup', withRepGroup);\n }\n if (withRightGroup) {\n params = params.set('withRightGroup', withRightGroup);\n }\n if (withRepUser) {\n params = params.set('withRepUser', withRepUser);\n }\n if (userId) {\n params = params.set('userId', userId);\n }\n return this.http.get(`${this.baseUrl}`, {\n params: params,\n withCredentials: true\n });\n }\n static #_ = this.ɵfac = function UserRepService_Factory(t) {\n return new (t || UserRepService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('USER_REP_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: UserRepService,\n factory: UserRepService.ɵfac,\n providedIn: \"root\"\n });\n}","map":{"version":3,"names":["ApiService","HttpParams","UserRepService","constructor","http","userRepUri","getAll","withUser","withRepGroup","withRightGroup","withRepUser","userId","params","set","get","baseUrl","withCredentials","_","i0","ɵɵinject","i1","HttpClient","_2","factory","ɵfac","providedIn"],"sources":["E:\\TekH\\Visual Studio\\WebUserManager\\DigitalData.UserManager.NgWebUI\\ClientApp\\src\\app\\services\\user-representation.service.ts"],"sourcesContent":["import { Inject, Injectable } from \"@angular/core\";\r\nimport { UserRep } from \"../models/user-management.api.models\";\r\nimport { ApiService } from \"./user-management.api.service\";\r\nimport { HttpClient, HttpParams } from \"@angular/common/http\";\r\nimport { Observable } from \"rxjs\";\r\n\r\n@Injectable({\r\n providedIn: \"root\"\r\n})\r\nexport class UserRepService extends ApiService<UserRep> {\r\n constructor(http: HttpClient, @Inject('USER_REP_URL') private userRepUri: string) {\r\n super(http, userRepUri)\r\n }\r\n\r\n override getAll(withUser: boolean = false, withRepGroup: boolean = false, withRightGroup: boolean = false, withRepUser: boolean = false, userId?: number): Observable<UserRep[]> {\r\n let params = new HttpParams();\r\n if (withUser) {\r\n params = params.set('withUser', withUser);\r\n }\r\n if (withRepGroup) {\r\n params = params.set('withRepGroup', withRepGroup);\r\n }\r\n if (withRightGroup) {\r\n params = params.set('withRightGroup', withRightGroup);\r\n }\r\n if (withRepUser) {\r\n params = params.set('withRepUser', withRepUser);\r\n }\r\n if (userId) {\r\n params = params.set('userId', userId)\r\n }\r\n\r\n return this.http.get<UserRep[]>(`${this.baseUrl}`, { params: params, withCredentials: true });\r\n }\r\n}"],"mappings":"AAEA,SAASA,UAAU,QAAQ,+BAA+B;AAC1D,SAAqBC,UAAU,QAAQ,sBAAsB;;;AAM7D,OAAM,MAAOC,cAAe,SAAQF,UAAmB;EACrDG,YAAYC,IAAgB,EAAkCC,UAAkB;IAC9E,KAAK,CAACD,IAAI,EAAEC,UAAU,CAAC;IADqC,KAAAA,UAAU,GAAVA,UAAU;EAExE;EAESC,MAAMA,CAACC,QAAA,GAAoB,KAAK,EAAEC,YAAA,GAAwB,KAAK,EAAEC,cAAA,GAA0B,KAAK,EAAEC,WAAA,GAAuB,KAAK,EAAEC,MAAe;IACtJ,IAAIC,MAAM,GAAG,IAAIX,UAAU,EAAE;IAC7B,IAAIM,QAAQ,EAAE;MACZK,MAAM,GAAGA,MAAM,CAACC,GAAG,CAAC,UAAU,EAAEN,QAAQ,CAAC;;IAE3C,IAAIC,YAAY,EAAE;MAChBI,MAAM,GAAGA,MAAM,CAACC,GAAG,CAAC,cAAc,EAAEL,YAAY,CAAC;;IAEnD,IAAIC,cAAc,EAAE;MAClBG,MAAM,GAAGA,MAAM,CAACC,GAAG,CAAC,gBAAgB,EAAEJ,cAAc,CAAC;;IAEvD,IAAIC,WAAW,EAAE;MACfE,MAAM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