Skip to content

feat(reporting): implement regulatory reporting module#324

Merged
yusuftomilola merged 1 commit intoDistinctCodes:mainfrom
Ibinola:feat/regulatory-reporting-module
Oct 2, 2025
Merged

feat(reporting): implement regulatory reporting module#324
yusuftomilola merged 1 commit intoDistinctCodes:mainfrom
Ibinola:feat/regulatory-reporting-module

Conversation

@Ibinola
Copy link
Contributor

@Ibinola Ibinola commented Oct 2, 2025

This PR introduces a new module for generating and exporting regulatory compliance reports, addressing the requirements of different jurisdictions.

Key Changes:

  1. RegulatoryReportingModule: Encapsulates all reporting-related components, including controllers and services.
  2. ReportingService: A new service containing the core business logic to aggregate data and format it according to specific jurisdictional rules.
  3. ReportingController: Exposes a GET /reports/:jurisdiction endpoint to generate reports on demand. The export format (csv or pdf) can be specified using a query parameter (e.g., ?format=pdf).
  4. Export Functionality: Added utility functions to stream generated reports directly to the client in either CSV or PDF format, ensuring efficient memory usage.

This implementation provides a scalable foundation for adding new report types and jurisdictions in the future.

Closes #322

@vercel
Copy link

vercel bot commented Oct 2, 2025

@Ibinola is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Collaborator

@yusuftomilola yusuftomilola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splendid job

@yusuftomilola yusuftomilola merged commit b13aead into DistinctCodes:main Oct 2, 2025
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regulatory Reporting Module

2 participants