feat: clients identities page
- add identities-tab component - add upload-document-dialog component - remove content-type header from authentication interceptor fixes: #261
This commit is contained in:
committed by
Abhay Chawla
parent
c33995ba77
commit
d84dbf50ed
@@ -27,35 +27,64 @@ export class ClientsService {
|
||||
getClientData(clientId: string) {
|
||||
return this.http.get(`/clients/${clientId}`);
|
||||
}
|
||||
|
||||
getClientAccountData(clientId: string) {
|
||||
return this.http.get(`/clients/${clientId}/accounts`);
|
||||
}
|
||||
|
||||
getClientChargesData(clientId: string) {
|
||||
const httpParams = new HttpParams().set('pendingPayment', 'true');
|
||||
return this.http.get(`/clients/${clientId}/charges`, { params: httpParams });
|
||||
}
|
||||
|
||||
getClientSummary(clientId: string) {
|
||||
const httpParams = new HttpParams().set('R_clientId', clientId)
|
||||
.set('genericResultSet', 'false');
|
||||
return this.http.get(`/runreports/ClientSummary`, { params: httpParams });
|
||||
}
|
||||
|
||||
getClientProfileImage(clientId: string) {
|
||||
const httpParams = new HttpParams().set('maxHeight', '150');
|
||||
return this.http.get(`/clients/${clientId}/images`, { params: httpParams, responseType: 'text' });
|
||||
}
|
||||
|
||||
getClientFamilyMembers(clientId: string) {
|
||||
return this.http.get(`/clients/${clientId}/familymembers`);
|
||||
}
|
||||
|
||||
getClientFamilyMember(clientId: string, familyMemberId: string) {
|
||||
return this.http.get(`/clients/${clientId}/familymembers/${familyMemberId}`);
|
||||
}
|
||||
|
||||
addFamilyMember(clientId: string, familyMemberData: any) {
|
||||
return this.http.post(`/clients/${clientId}/familymembers`, familyMemberData);
|
||||
}
|
||||
|
||||
editFamilyMember(clientId: string, familyMemberId: any, familyMemberData: any) {
|
||||
return this.http.put(`/clients/${clientId}/familymembers/${familyMemberId}`, familyMemberData);
|
||||
}
|
||||
|
||||
deleteFamilyMember(clientId: string, familyMemberId: string) {
|
||||
return this.http.delete(`/clients/${clientId}/familymembers/${familyMemberId}`);
|
||||
}
|
||||
|
||||
getClientIdentifiers(clientId: string) {
|
||||
return this.http.get(`/clients/${clientId}/identifiers`);
|
||||
}
|
||||
|
||||
deleteClientIdentifier(clientId: string, identifierId: string) {
|
||||
return this.http.delete(`/clients/${clientId}/identifiers/${identifierId}`);
|
||||
}
|
||||
|
||||
getClientIdentificationDocuments(documentId: string) {
|
||||
return this.http.get(`/client_identifiers/${documentId}/documents`);
|
||||
}
|
||||
|
||||
downloadClientIdentificationDocument(parentEntityId: string, documentId: string) {
|
||||
return this.http.get(`/client_identifiers/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
|
||||
}
|
||||
|
||||
uploadClientIdentifierDocument(identifierId: string, documentData: any) {
|
||||
return this.http.post(`/client_identifiers/${identifierId}/documents`, documentData);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user