diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index 23a89fb..c857ff7 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -99,12 +99,14 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); } - getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string): Observable { + getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string, + indexed?: boolean): Observable { 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(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params }); }