- 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.
24 lines
516 B
TypeScript
24 lines
516 B
TypeScript
/**
|
|
* Payments Domain
|
|
*
|
|
* Exports all payment-related contracts, schemas, and provider mappers.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Constants
|
|
export { PAYMENT_METHOD_TYPE, PAYMENT_GATEWAY_TYPE } from "./contract.js";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema.js";
|
|
|
|
// Re-export types for convenience
|
|
export type {
|
|
PaymentMethodType,
|
|
PaymentMethod,
|
|
PaymentMethodList,
|
|
PaymentGatewayType,
|
|
PaymentGateway,
|
|
PaymentGatewayList,
|
|
} from "./schema.js";
|