- Updated ESLint configuration to enforce stricter import rules for the @customer-portal/domain package, promoting better import hygiene and preventing deep imports. - Refactored various files across the BFF and portal applications to comply with the new import rules, ensuring that only the appropriate modules are imported from the domain. - Cleaned up unused imports and optimized code structure for improved maintainability and clarity. - Updated documentation to reflect changes in import practices and domain structure.
40 lines
928 B
TypeScript
40 lines
928 B
TypeScript
/**
|
|
* Subscriptions Domain
|
|
*
|
|
* Exports all subscription-related contracts, schemas, and provider mappers.
|
|
*
|
|
* 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 types for convenience
|
|
export type {
|
|
SubscriptionStatus,
|
|
SubscriptionCycle,
|
|
Subscription,
|
|
SubscriptionArray,
|
|
SubscriptionList,
|
|
SubscriptionIdParam,
|
|
SubscriptionQueryParams,
|
|
SubscriptionQuery,
|
|
SubscriptionStats,
|
|
SimActionResponse,
|
|
SimPlanChangeResult,
|
|
// Internet cancellation types
|
|
InternetCancellationMonth,
|
|
InternetCancellationPreview,
|
|
InternetCancelRequest,
|
|
} from "./schema.js";
|
|
|
|
// Re-export schemas for validation
|
|
export {
|
|
internetCancellationMonthSchema,
|
|
internetCancellationPreviewSchema,
|
|
internetCancelRequestSchema,
|
|
} from "./schema.js";
|