From ceeaa89ba3c8f57c66e1aa1aea5a86da44af9e25 Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Wed, 30 Oct 2024 11:37:51 +0100 Subject: [PATCH] AW-6410 Add indexed parm to getItemListCount --- projects/common/src/fm/services/item.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }); }