- Deleted migration file that removed cached profile fields from the users table, centralizing profile data retrieval from WHMCS. - Updated CsrfMiddleware to include new public authentication endpoints for password reset, setting password, and WHMCS account linking. - Enhanced error handling in password and WHMCS linking workflows to provide clearer feedback on missing mappings and improve user experience. - Adjusted user creation and update methods in UsersFacade to handle cases where WHMCS mappings are not yet available, ensuring smoother account setup.
3.4 KiB
3.4 KiB
SIM Manager Migration - File Inventory
This document lists all files included in the migration package.
Backend - Freebit Integration
Module
backend/freebit-integration/freebit.module.ts
Services
backend/freebit-integration/services/freebit-auth.service.ts- Authentication servicebackend/freebit-integration/services/freebit-client.service.ts- HTTP client servicebackend/freebit-integration/services/freebit-error.service.ts- Error handlingbackend/freebit-integration/services/freebit-mapper.service.ts- Data mappingbackend/freebit-integration/services/freebit-operations.service.ts- API operationsbackend/freebit-integration/services/freebit-orchestrator.service.ts- Orchestration layerbackend/freebit-integration/services/index.ts- Service exports
Interfaces & Types
backend/freebit-integration/interfaces/freebit.types.ts- TypeScript interfaces
Backend - SIM Management
Module
backend/sim-management/sim-management.module.tsbackend/sim-management/sim-management.service.ts- Main service facadebackend/sim-management/index.ts- Module exports
Services
backend/sim-management/services/sim-cancellation.service.ts- SIM cancellation logicbackend/sim-management/services/sim-details.service.ts- SIM details retrievalbackend/sim-management/services/esim-management.service.ts- eSIM operationsbackend/sim-management/services/sim-notification.service.ts- Notification handlingbackend/sim-management/services/sim-orchestrator.service.ts- Main orchestratorbackend/sim-management/services/sim-plan.service.ts- Plan change logicbackend/sim-management/services/sim-topup.service.ts- Top-up with payment flowbackend/sim-management/services/sim-usage.service.ts- Usage data retrievalbackend/sim-management/services/sim-validation.service.ts- Validation logicbackend/sim-management/services/sim-voice-options.service.ts- Voice options management
Types & Interfaces
backend/sim-management/types/sim-requests.types.ts- Request/response typesbackend/sim-management/interfaces/sim-base.interface.ts- Base interfaces
Backend - Controllers
API Endpoints
backend/controllers/sim-endpoints.controller.ts- All SIM management endpoints
Frontend - Components
Main Components
frontend/components/SimManagementSection.tsx- Main container componentfrontend/components/SimDetailsCard.tsx- SIM details displayfrontend/components/DataUsageChart.tsx- Usage visualizationfrontend/components/SimActions.tsx- Action buttonsfrontend/components/SimFeatureToggles.tsx- Service optionsfrontend/components/TopUpModal.tsx- Top-up interfacefrontend/components/ChangePlanModal.tsx- Plan change modalfrontend/components/ReissueSimModal.tsx- eSIM reissue modal
Utilities
frontend/utils/plan.ts- Plan utilitiesfrontend/index.ts- Component exports
Documentation
docs/FREEBIT-SIM-MANAGEMENT.md- Complete implementation guidedocs/SIM-MANAGEMENT-API-DATA-FLOW.md- API data flow documentation
Migration Files
README.md- Migration instructionsFILE_INVENTORY.md- This file
Summary
- Backend Files: ~25 TypeScript files
- Frontend Files: ~10 TypeScript/TSX files
- Documentation: 2 markdown files
- Total: ~37 files
All files are ready for migration to a new branch.