VSN-2137 : Integrating new optimized approach of default passengers template downloading in both preparation & passengers components.
Merge Request Description
Style Enhancement
A snackbar was added to display during file download time. This improves user feedback and enhances the overall user experience by providing clear visual confirmation of ongoing actions.
API Integration for Templates
API calls related to template handling were implemented. This includes fetching department codes and class level codes, ensuring that template generation and validation processes are supported by accurate data.
Establishment Codes API
An API call was introduced to retrieve establishment codes. This addition ensures that template and exportation processes can reference institution-level data consistently.
Administrative Endpoints
New endpoints were added to support administrative actions. These include retrieving all department codes and all class levels, providing broader access to organizational data for administrative workflows.
Exportation Integration
Exportation functionality was integrated into the relevant components, specifically within preparation and final modules. This ensures that data export is seamlessly available in the appropriate contexts.
Store Method Refactoring
The store method was rectified to align with default template exportation requirements. This refactoring improves reliability and consistency in handling exportation processes.
Exportation Payload Definition
A new payload type, ReferenceSheetRequest, was defined to support default template exportation. This ensures that data sent during exportation is structured and validated appropriately.
Closes VSN-2137