feat: add entity data table checks component (#523)

Fixes: #168
This commit is contained in:
punwai
2019-12-29 20:02:17 +03:00
committed by Abhay Chawla
parent 2ce737e53d
commit fc8bb04934
9 changed files with 304 additions and 4 deletions
+21 -1
View File
@@ -1,6 +1,6 @@
/** Angular Imports */
import { Injectable } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { HttpClient, HttpParams } from '@angular/common/http';
/** rxjs Imports */
import { Observable } from 'rxjs';
@@ -97,4 +97,24 @@ export class OrganizationService {
return this.http.put('/passwordpreferences', passwordPreferences);
}
/**
* @param {number} offset Page offset.
* @param {number} limit Number of entries within the page.
* @returns {Observable<any>} Entity Data Table Checks data.
*/
getEntityDataTableChecks(offset: number = 0, limit: number = -1): Observable<any> {
const httpParams = new HttpParams()
.set('offset', offset.toString())
.set('limit', limit.toString());
return this.http.get('/entityDatatableChecks', { params: httpParams });
}
/**
* @param {string} entityDataTableCheckId Entity Data Table Check ID of entity data table to be deleted.
* @returns {Observable<any>}
*/
deleteEntityDataTableCheck(entityDataTableCheckId: string): Observable<any> {
return this.http.delete(`/entityDatatableChecks/${entityDataTableCheckId}`);
}
}