feat: add view entity to entity mapping (#613)

- adds entity to entity mapping list
- displays the data as per user selection

Fixes: #485
This commit is contained in:
Muskan Khedia
2020-05-31 19:58:59 +05:30
committed by GitHub
parent 224ff151da
commit 8cc76f50e0
9 changed files with 438 additions and 3 deletions
+46
View File
@@ -459,4 +459,50 @@ export class SystemService {
return this.http.get('/audits/searchtemplate');
}
/**
* @returns {Observable<any>} Fetches Mapping Data.
*/
getEntityMappings(): Observable<any> {
return this.http.get('/entitytoentitymapping');
}
/**
* @param mappingId Mapping Id.
* @param fromId From Entity ID.
* @param toId To Entity ID.
* @returns {Observable<any>} fetches the list of mappings for particular mapping type
*/
getEntitytoEntityData(mappingId: number, fromId: number, toId: number): Observable<any> {
return this.http.get(`/entitytoentitymapping/${mappingId}/${fromId}/${toId}`);
}
/**
* @returns {Observable<any>} Offices data
*/
getOffices(): Observable<any> {
return this.http.get('/offices');
}
/**
* @returns {Observable<any>} Loan products data.
*/
getLoanProducts(): Observable<any> {
return this.http.get('/loanproducts');
}
/**
* @returns {Observable<any>} Saving products data
*/
getSavingProducts(): Observable<any> {
return this.http.get('/savingsproducts');
}
/**
* @returns {Observable<any>} Charges data
*/
getCharges(): Observable<any> {
return this.http.get('/charges');
}
}