tasks to published refactor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user