feat: client actions (screen-reports) (#1141)

Fixes: #1140
This commit is contained in:
Karan Takalkar
2020-07-19 13:53:28 +05:30
committed by GitHub
parent 3bc8e41a46
commit c134026030
11 changed files with 207 additions and 8 deletions
+12
View File
@@ -301,6 +301,18 @@ export class ClientsService {
return this.http.post(`/clients/${clientId}/charges`, charge);
}
getClientReportTemplates() {
const httpParams = new HttpParams()
.set('entityId', '0')
.set('typeId', '0');
return this.http.get('/templates', { params: httpParams });
}
retrieveClientReportTemplate(templateId: string, clientId: string) {
const httpParams = new HttpParams().set('clientId', clientId);
return this.http.post(`/templates/${templateId}`, {}, { params: httpParams, responseType: 'text' });
}
/**
* @returns {Observable<any>} Offices data
*/