AW-6410 Add indexed parm to getItemListCount
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
All checks were successful
FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
This commit is contained in:
parent
c3dbf85eb6
commit
ceeaa89ba3
@ -99,12 +99,14 @@ export class ItemService {
|
||||
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
|
||||
}
|
||||
|
||||
getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string): Observable<number> {
|
||||
getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string,
|
||||
indexed?: boolean): Observable<number> {
|
||||
let params = new HttpParams();
|
||||
params = params.append("it", itemType);
|
||||
if (sourceTask) params = params.append("sourceTask", sourceTask);
|
||||
if (startDate) params = params.append("sDate", startDate.toISOString());
|
||||
if (endDate) params = params.append("eDate", endDate.toISOString());
|
||||
if(indexed) params = params.append("ind",indexed?"true":"false");
|
||||
return this.httpClient.get<number>(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params });
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user