feat (clients) : add client identifier

fixes: #260
This commit is contained in:
Jivjyot Singh
2019-12-01 23:20:51 +03:00
committed by Abhay Chawla
parent 97ccce531b
commit 4281a19c6c
6 changed files with 159 additions and 50 deletions
+10
View File
@@ -24,6 +24,7 @@ export class ClientsService {
getClientTemplate(): Observable<any> {
return this.http.get('/clients/template');
}
getClientData(clientId: string) {
return this.http.get(`/clients/${clientId}`);
}
@@ -32,6 +33,7 @@ export class ClientsService {
const httpParams = new HttpParams().set('apptable', 'm_client');
return this.http.get(`/datatables`, { params: httpParams });
}
getClientDatatable(clientId: string, datatableName: string) {
const httpParams = new HttpParams().set('genericResultSet', 'true');
return this.http.get(`/datatables/${datatableName}/${clientId}`, { params: httpParams });
@@ -81,6 +83,14 @@ export class ClientsService {
return this.http.get(`/clients/${clientId}/identifiers`);
}
getClientIdentifierTemplate(clientId: string) {
return this.http.get(`/clients/${clientId}/identifiers/template`);
}
addClientIdentifier(clientId: string, identifierData: any) {
return this.http.post(`/clients/${clientId}/identifiers`, identifierData);
}
deleteClientIdentifier(clientId: string, identifierId: string) {
return this.http.delete(`/clients/${clientId}/identifiers/${identifierId}`);
}