Revision 59315
Added by Konstantinos Triantafyllou over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/services/user-registry.service.ts | ||
---|---|---|
26 | 26 |
return this.http.post(properties.registryUrl + 'unsubscribe/' + encodeURIComponent(type) + '/' + encodeURIComponent(id), |
27 | 27 |
null, CustomOptions.registryOptions()) |
28 | 28 |
} |
29 |
|
|
30 |
public removeManagerRole(type: string, id: string, email: string): Observable<any> { |
|
31 |
return this.http.delete<any>(properties.registryUrl + |
|
32 |
encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/manager/' + encodeURIComponent(email), CustomOptions.registryOptions()); |
|
33 |
} |
|
34 |
|
|
35 |
public invite(type: string, id: string, email: string): Observable<any[]> { |
|
36 |
return this.http.post<any>(properties.registryUrl + 'invite/' + |
|
37 |
encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/manager/' + encodeURIComponent(email), null, |
|
38 |
CustomOptions.registryOptions()).pipe(map((response: any) => response.response)); |
|
39 |
} |
|
40 |
|
|
41 |
public cancelInvitation(type: string, id: string, email: string): Observable<any> { |
|
42 |
return this.http.delete<any>(properties.registryUrl + 'invite/' + |
|
43 |
encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/manager/' + encodeURIComponent(email), |
|
44 |
CustomOptions.registryOptions()); |
|
45 |
} |
|
46 |
|
|
47 |
public getPendingManagers(type: string, id: string): Observable<any[]> { |
|
48 |
return this.http.get<any>(properties.registryUrl + 'invite/' + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/managers/', |
|
49 |
CustomOptions.registryOptions()).pipe(map((response: any) => response.response)); |
|
50 |
} |
|
29 | 51 |
|
30 | 52 |
public getSubscribers(type: string, id: string): Observable<any[]> { |
31 | 53 |
return this.http.get<any>(properties.registryUrl + encodeURIComponent(type) + '/' + encodeURIComponent(id) + '/subscribers/').pipe(map(response => response.response)); |
Also available in: Unified diff
[Library | trunk]: Add methods on user registry service