feat: add clients document upload list

fixes: #264
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent 59dfaa6148
commit 6001446310
9 changed files with 203 additions and 2 deletions
+12
View File
@@ -88,6 +88,18 @@ export class ClientsService {
return this.http.post(`/client_identifiers/${identifierId}/documents`, documentData);
}
getClientDocuments(clientId: string) {
return this.http.get(`/clients/${clientId}/documents`);
}
downloadClientDocument(parentEntityId: string, documentId: string) {
return this.http.get(`/clients/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
}
deleteClientDocument(parentEntityId: string, documentId: string) {
return this.http.delete(`/clients/${parentEntityId}/documents/${documentId}`);
}
getClientNotes(clientId: string) {
return this.http.get(`/clients/${clientId}/notes`);
}