tasks to published refactor

This commit is contained in:
alorig
2025-11-28 15:25:19 +05:00
parent 8103c20341
commit 1aead06939
10 changed files with 3330 additions and 12 deletions

View File

@@ -2119,6 +2119,19 @@ export async function unpublishContent(id: number): Promise<UnpublishContentResu
});
}
export async function deleteContent(id: number): Promise<void> {
return fetchAPI(`/v1/writer/content/${id}/`, {
method: 'DELETE',
});
}
export async function bulkDeleteContent(ids: number[]): Promise<{ deleted_count: number }> {
return fetchAPI(`/v1/writer/content/bulk_delete/`, {
method: 'POST',
body: JSON.stringify({ ids }),
});
}
// Stage 3: Content Validation API
export interface ContentValidationResult {
content_id: number;