- Implemented VpnServicesService for managing VPN plans and activation fees. - Created SimCallHistoryFormatterService for formatting call history data. - Developed SimCallHistoryParserService to parse call history CSV files. - Added AnimatedContainer and AnimatedBackground components for UI animations. - Introduced BentoServiceCard, FloatingGlassCard, GlowButton, and ValuePropCard components for landing page. - Implemented useCountUp hook for animated number counting. - Added cancellation months utility functions for subscription management.
38 lines
944 B
TypeScript
38 lines
944 B
TypeScript
/**
|
|
* Subscriptions Domain
|
|
*
|
|
* Exports subscriptions contracts + schemas.
|
|
*
|
|
* Provider adapters (BFF-only) live under: `@customer-portal/domain/subscriptions/providers`.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Constants
|
|
export { SUBSCRIPTION_STATUS, SUBSCRIPTION_CYCLE } from "./contract.js";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema.js";
|
|
|
|
// Re-export schemas for validation
|
|
export {
|
|
internetCancellationMonthSchema,
|
|
internetCancellationPreviewSchema,
|
|
internetCancelRequestSchema,
|
|
// Unified cancellation
|
|
serviceTypeSchema,
|
|
cancellationNoticeSchema,
|
|
cancellationStatusSchema,
|
|
cancellationPreviewSchema,
|
|
} from "./schema.js";
|
|
|
|
// Utilities
|
|
export {
|
|
generateCancellationMonths,
|
|
getCancellationEffectiveDate,
|
|
getRunDateFromMonth,
|
|
type BaseCancellationMonth,
|
|
type CancellationMonthWithRunDate,
|
|
type GenerateCancellationMonthsOptions,
|
|
} from "./utils/index.js";
|