DigitalData.UserManager/DigitalData.UserManager.NgWebUI/ClientApp/.angular/cache/17.3.0/babel-webpack/cbc874b6f61991bb37e5be4a5d3b56747f73304272da131203051bcc5caf5dfc.json

1 line
1.5 KiB
JSON

{"ast":null,"code":"import { HttpParams } from '@angular/common/http';\nimport { ApiService } from './user-management.api.service';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/common/http\";\nexport let GroupOfUserService = /*#__PURE__*/(() => {\n class GroupOfUserService extends ApiService {\n constructor(http, userUri) {\n super(http, userUri);\n this.userUri = userUri;\n }\n deleteByGroupUserId(groupId, userId) {\n const url = `${this.baseUrl}?groupId=${groupId}&userId=${userId}`;\n return this.http.delete(url, {\n withCredentials: true\n });\n }\n getAll(withUser = false, withGroup = false) {\n let params = new HttpParams();\n if (withUser) {\n params = params.set('withUser', withUser);\n }\n if (withGroup) {\n params = params.set('withGroup', withGroup);\n }\n return this.http.get(this.baseUrl, {\n params,\n withCredentials: true\n });\n }\n static #_ = this.ɵfac = function GroupOfUserService_Factory(t) {\n return new (t || GroupOfUserService)(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject('GROUP_OF_USER_URL'));\n };\n static #_2 = this.ɵprov = /*@__PURE__*/i0.ɵɵdefineInjectable({\n token: GroupOfUserService,\n factory: GroupOfUserService.ɵfac,\n providedIn: 'root'\n });\n }\n return GroupOfUserService;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}