barsa cdfad9d036 Enhance caching infrastructure and improve SIM management features
- Updated CacheModule and CacheService with detailed documentation and new methods for better cache management, including pattern deletion and memory usage tracking.
- Refactored CatalogCacheService and OrdersCacheService to utilize CDC-driven cache invalidation, improving data freshness and reducing unnecessary API calls.
- Introduced SIM plan options and updated related components to leverage new domain utilities for better plan management and user experience.
- Enhanced error handling and validation in TopUpModal for improved user feedback during SIM top-up operations.
- Removed obsolete plan formatting utilities to streamline codebase and improve maintainability.
2025-11-18 18:18:25 +09:00

64 lines
1.4 KiB
TypeScript

/**
* SIM Domain
*
* Exports all SIM-related contracts, schemas, and provider mappers.
*
* Types are derived from Zod schemas (Schema-First Approach)
*/
// Constants
export { SIM_STATUS, SIM_TYPE, SIM_PLAN_CODES, SIM_PLAN_LABELS } from "./contract";
// Schemas (includes derived types)
export * from "./schema";
export * from "./lifecycle";
// Validation functions
export * from "./validation";
export {
canManageActiveSim,
canReissueEsim,
canCancelSim,
canTopUpSim,
formatSimPlanShort,
SIM_PLAN_OPTIONS,
getSimPlanLabel,
buildSimFeaturesUpdatePayload,
} from "./helpers";
// Re-export types for convenience
export type {
SimStatus,
SimType,
SimDetails,
RecentDayUsage,
SimUsage,
SimTopUpHistoryEntry,
SimTopUpHistory,
SimInfo,
// Request types
SimTopUpRequest,
SimPlanChangeRequest,
SimCancelRequest,
SimTopUpHistoryRequest,
SimFeaturesUpdateRequest,
SimReissueRequest,
SimConfigureFormData,
SimCardType,
ActivationType,
MnpData,
// Activation types
SimOrderActivationRequest,
SimOrderActivationMnp,
SimOrderActivationAddons,
// Pricing types
SimTopUpPricing,
SimTopUpPricingPreviewRequest,
SimTopUpPricingPreviewResponse,
} from './schema';
export type { SimPlanCode } from "./contract";
export type { SimPlanOption, SimFeatureToggleSnapshot } from "./helpers";
// Provider adapters
export * as Providers from "./providers/index";