|
@ -5,6 +5,7 @@ import type { TaskFilter, TaskInput, TaskLink, TaskResult, TaskUpdate } from ".. |
|
|
import type { LogFilter, LogInput, LogResult, LogUpdate } from "../models/log"; |
|
|
import type { LogFilter, LogInput, LogResult, LogUpdate } from "../models/log"; |
|
|
import type { GroupInput, GroupResult, GroupUpdate } from "../models/group"; |
|
|
import type { GroupInput, GroupResult, GroupUpdate } from "../models/group"; |
|
|
import type { ItemInput, ItemResult, ItemUpdate } from "../models/item"; |
|
|
import type { ItemInput, ItemResult, ItemUpdate } from "../models/item"; |
|
|
|
|
|
import type { ProjectGroupResult } from "../models/projectgroup"; |
|
|
|
|
|
|
|
|
export class StufflogClient { |
|
|
export class StufflogClient { |
|
|
private root: string; |
|
|
private root: string; |
|
@ -98,6 +99,18 @@ export class StufflogClient { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async findProjectGroup(id: string): Promise<ProjectGroupResult> { |
|
|
|
|
|
const data = await this.fetch("GET", `/api/projectgroup/${id}`); |
|
|
|
|
|
return data.projectGroup; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
async listProjectGroups(): Promise<ProjectGroupResult[]> { |
|
|
|
|
|
const data = await this.fetch("GET", `/api/projectgroup/`); |
|
|
|
|
|
return data.projectGroups; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async findLog(id: string): Promise<LogResult> { |
|
|
async findLog(id: string): Promise<LogResult> { |
|
|
const data = await this.fetch("GET", `/api/log/${id}`); |
|
|
const data = await this.fetch("GET", `/api/log/${id}`); |
|
|
return data.log; |
|
|
return data.log; |
|
|