Compare commits

..

No commits in common. "8db1edb262a89b53c3ccce2c28a93a06c93eaa36" and "0da21675916f1f09641a15eeaa6b2632bfe0cb4b" have entirely different histories.

2 changed files with 2 additions and 14 deletions

View File

@ -2,21 +2,13 @@
export interface IItemTask {
code?: string;
taskType?: string;
attributes?: any;
message?: string,
state?: number,
started?: Date,
finished?: Date
attributes?:any
}
export class ItemTask implements IItemTask {
public code?:string;
public taskType?: string;
public attributes?: any;
public message?: string;
public state?: number;
public started?: Date;
public finished?: Date;
constructor() {
}

View File

@ -148,9 +148,5 @@ export class ItemService {
postItemTask(item: IItem, task: IItemTask): Observable<IItemTask> {
return this.httpClient.post<IItemTask>(`${this.ApiEndpoint()}/api/v1/items/${item.code}/tasks`, task);
}
getItemTaskList(itemcode: string): Observable<IItemTask[]> {
return this.httpClient.get<IItemTask[]>(`${this.ApiEndpoint()}/api/v1/items/${itemcode}/tasks`).pipe(map(ia => ia.map(i => this.parseDates(i))));
}
}