Merge branch 'dev' into feature/billing

This commit is contained in:
MartinNYHC
2026-06-25 10:01:38 +02:00
committed by GitHub
33 changed files with 1149 additions and 215 deletions
+11
View File
@@ -4884,6 +4884,17 @@ export const api = {
const qs = opts?.skipFilamentCheck ? '?skip_filament_check=true' : '';
return request<PrintQueueItem>(`/queue/${id}/start${qs}`, { method: 'POST' });
},
/**
* Clear the `require_previous_success` gate for a printer after the user
* resolves the failure. Acknowledges any failed/aborted predecessors and
* restores skipped items whose error_message matches the gate string
* back to pending. Returns counts so the UI can render a precise toast.
*/
resumeQueueAfterFailure: (printerId: number) =>
request<{ acknowledged: number; restored: number }>(
`/queue/printer/${printerId}/resume`,
{ method: 'POST' },
),
bulkUpdateQueue: (data: PrintQueueBulkUpdate) =>
request<PrintQueueBulkUpdateResponse>('/queue/bulk', {
method: 'PATCH',