- Added a new script to check domain imports, promoting better import hygiene across the codebase. - Refactored multiple domain index files to remove unnecessary type re-exports, streamlining the module structure. - Expanded documentation on import patterns and validation processes to provide clearer guidance for developers. - Included an architecture diagram to illustrate the relationships between the Portal, BFF, and Domain packages.
21 lines
502 B
TypeScript
21 lines
502 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 schemas for validation
|
|
export {
|
|
internetCancellationMonthSchema,
|
|
internetCancellationPreviewSchema,
|
|
internetCancelRequestSchema,
|
|
} from "./schema.js";
|