feat: add centers action (staff assignment history) (#1194)

Fixes: #1193
This commit is contained in:
Muskan Khedia
2020-08-11 18:59:13 +05:30
committed by GitHub
parent cfc27b53e2
commit c620d3145e
11 changed files with 110 additions and 4 deletions
+14
View File
@@ -246,4 +246,18 @@ export class CentersService {
return this.http.put(`/centers/${centerId}/calendars/${calendarId}`, data);
}
/**
* Run Report Data for Staff Assignement History.
* @param {any} reportName reportName object containing 'name' of the report
* @param {object} centerId CenterId.
* @returns {Observable<any>}
*/
getStaffAssignmentHistoryData(reportName: any, centerId: any, tenantIdentifier: string, locale: string): Observable<any> {
const httpParams = new HttpParams()
.set('tenantIdentifier', tenantIdentifier)
.set('locale', locale)
.set('R_centerId', centerId);
return this.http.get(`/runreports/${reportName}`, { responseType: 'arraybuffer', observe: 'response', params: httpParams });
}
}