ФУНКЦИИ - МЕЖПРОЕКТНАЯ КОММУНИКАЦИЯ: resolver, commit и обновление доски Voice Tasker
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
|
||||
import { API_BASE_URL } from "@plane/constants";
|
||||
import type {
|
||||
TVoiceTaskCommitResult,
|
||||
TVoiceTaskPreflight,
|
||||
TVoiceTaskDraft,
|
||||
TVoiceTaskUploadResult,
|
||||
TWorkspaceAIConnectionTestResult,
|
||||
TWorkspaceAISettings,
|
||||
@@ -61,4 +63,19 @@ export class WorkspaceAIService extends APIService {
|
||||
throw error?.response?.data;
|
||||
});
|
||||
}
|
||||
|
||||
async commitVoiceTask(
|
||||
workspaceSlug: string,
|
||||
data: {
|
||||
voice_session_id: string;
|
||||
action: "create_task";
|
||||
draft?: TVoiceTaskDraft;
|
||||
}
|
||||
): Promise<TVoiceTaskCommitResult> {
|
||||
return this.post(`/api/workspaces/${workspaceSlug}/voice-task/commit/`, data)
|
||||
.then((response) => response?.data)
|
||||
.catch((error) => {
|
||||
throw error?.response?.data;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user