AQ-1659 Add getItemListUsingRelationship(...)
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
20bda6b81f
commit
946cbc6533
@ -154,4 +154,12 @@ export class ItemService {
|
|||||||
if (unfinishedOnly) params = params.append("unfinishedOnly", unfinishedOnly.toString());
|
if (unfinishedOnly) params = params.append("unfinishedOnly", unfinishedOnly.toString());
|
||||||
return this.httpClient.get<IItemTask[]>(`${this.ApiEndpoint()}/api/v1/items/${itemcode}/tasks`, { params: params });
|
return this.httpClient.get<IItemTask[]>(`${this.ApiEndpoint()}/api/v1/items/${itemcode}/tasks`, { params: params });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getItemListUsingRelationship(itemType: string, relationshipItemType: string, relationshipDataFilter: any): Observable<IItem[]> {
|
||||||
|
var params = new HttpParams();
|
||||||
|
params = params.append("it", itemType);
|
||||||
|
params = params.append("rsit", relationshipItemType);
|
||||||
|
params = params.append("rsdf", JSON.stringify(relationshipDataFilter));
|
||||||
|
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/userelationship`, { params: params });
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user