AW-6801 Add switch to add full path to items result
This commit is contained in:
parent
8684ba25c8
commit
51291cd86f
@ -26,6 +26,7 @@ export class Item implements IItem {
|
||||
public data?:any;
|
||||
public isEditable?:boolean;
|
||||
public owner?: string;
|
||||
public fullPath?: string;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
@ -79,7 +79,8 @@ export class ItemService {
|
||||
|
||||
getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string,
|
||||
indexed?: boolean, validToday?: boolean,tags?:string,crs?:string, startDate?: Date, endDate?: Date,
|
||||
skip?: number, take?: number, sourceTask?: string, exactMatchStartOrEndDate?: boolean, owner?:string): Observable<IItem[]> {
|
||||
skip?: number, take?: number, sourceTask?: string, exactMatchStartOrEndDate?: boolean, owner?:string,
|
||||
includeFullpath?: boolean): Observable<IItem[]> {
|
||||
let params = new HttpParams();
|
||||
if(itemType) params = params.append("it", itemType);
|
||||
if(dataFilter) params = params.append("df", JSON.stringify(dataFilter));
|
||||
@ -96,6 +97,7 @@ export class ItemService {
|
||||
if(take) params = params.append("take", take);
|
||||
if(exactMatchStartOrEndDate !== undefined) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate);
|
||||
if(owner) params = params.append("owner", owner);
|
||||
if(includeFullpath) params = params.append("includeFullpath",includeFullpath?"true":"false");
|
||||
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user