ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: Voice Tasker preview и трейс активности

This commit is contained in:
DCCONSTRUCTIONS
2026-04-26 20:41:38 +03:00
parent d867a89a1b
commit 9a91af372e
10 changed files with 588 additions and 289 deletions
@@ -23,6 +23,7 @@ import type {
TSearchEntityRequestPayload,
TWidgetEntityData,
TActivityEntityData,
IUserActivityResponse,
IWorkspaceSidebarNavigationItem,
IWorkspaceSidebarNavigation,
IWorkspaceUserPropertiesResponse,
@@ -353,6 +354,23 @@ export class WorkspaceService extends APIService {
});
}
async fetchWorkspaceActivity(
workspaceSlug: string,
params: {
per_page: number;
cursor?: string;
project?: string;
}
): Promise<IUserActivityResponse> {
return this.get(`/api/workspaces/${workspaceSlug}/activity/`, {
params,
})
.then((response) => response?.data)
.catch((error) => {
throw error?.response?.data;
});
}
// widgets
async fetchWorkspaceWidgets(workspaceSlug: string): Promise<TWidgetEntityData[]> {
return this.get(`/api/workspaces/${workspaceSlug}/home-preferences/`)