Service Layer high complexity backend
2
Dependencies
1
Dependents
4
Entities
0
Integrations

Description

Orchestrates the full Bufdir report export workflow for administrators. Accepts export parameters, invokes the backend report generation endpoint, manages the async job lifecycle (enqueue, poll, retrieve), and validates data completeness prior to generation. Acts as the primary coordination layer between the UI and the backend infrastructure.

Feature: Admin Bufdir Report Export

admin-export-service

Responsibilities

  • Validate data completeness and surface warnings before initiating export
  • Submit export job to backend API and return a job ID for polling
  • Poll job status and notify UI on completion or failure
  • Retrieve signed download URL for the generated report file
  • Log each export attempt to the audit trail

Interfaces

validateExportReadiness(period, orgId)
submitExportJob(params)
pollJobStatus(jobId)
getDownloadUrl(jobId)
cancelExportJob(jobId)
getExportHistory(orgId, limit)
getValidationWarnings(period, orgId)

Relationships

Dependencies (2)

Components this component depends on

Dependents (1)

Components that depend on this component