tema 675f7d5cfd Remove cached profile fields migration and update CSRF middleware for new public auth endpoints
- 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.
2025-11-21 17:12:34 +09:00

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 service
  • backend/freebit-integration/services/freebit-client.service.ts - HTTP client service
  • backend/freebit-integration/services/freebit-error.service.ts - Error handling
  • backend/freebit-integration/services/freebit-mapper.service.ts - Data mapping
  • backend/freebit-integration/services/freebit-operations.service.ts - API operations
  • backend/freebit-integration/services/freebit-orchestrator.service.ts - Orchestration layer
  • backend/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.ts
  • backend/sim-management/sim-management.service.ts - Main service facade
  • backend/sim-management/index.ts - Module exports

Services

  • backend/sim-management/services/sim-cancellation.service.ts - SIM cancellation logic
  • backend/sim-management/services/sim-details.service.ts - SIM details retrieval
  • backend/sim-management/services/esim-management.service.ts - eSIM operations
  • backend/sim-management/services/sim-notification.service.ts - Notification handling
  • backend/sim-management/services/sim-orchestrator.service.ts - Main orchestrator
  • backend/sim-management/services/sim-plan.service.ts - Plan change logic
  • backend/sim-management/services/sim-topup.service.ts - Top-up with payment flow
  • backend/sim-management/services/sim-usage.service.ts - Usage data retrieval
  • backend/sim-management/services/sim-validation.service.ts - Validation logic
  • backend/sim-management/services/sim-voice-options.service.ts - Voice options management

Types & Interfaces

  • backend/sim-management/types/sim-requests.types.ts - Request/response types
  • backend/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 component
  • frontend/components/SimDetailsCard.tsx - SIM details display
  • frontend/components/DataUsageChart.tsx - Usage visualization
  • frontend/components/SimActions.tsx - Action buttons
  • frontend/components/SimFeatureToggles.tsx - Service options
  • frontend/components/TopUpModal.tsx - Top-up interface
  • frontend/components/ChangePlanModal.tsx - Plan change modal
  • frontend/components/ReissueSimModal.tsx - eSIM reissue modal

Utilities

  • frontend/utils/plan.ts - Plan utilities
  • frontend/index.ts - Component exports

Documentation

  • docs/FREEBIT-SIM-MANAGEMENT.md - Complete implementation guide
  • docs/SIM-MANAGEMENT-API-DATA-FLOW.md - API data flow documentation

Migration Files

  • README.md - Migration instructions
  • FILE_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.