- 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.
33 lines
657 B
TypeScript
33 lines
657 B
TypeScript
/**
|
|
* Billing Domain
|
|
*
|
|
* Exports all billing-related contracts, schemas, and provider mappers.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Constants
|
|
export { INVOICE_STATUS } from "./contract.js";
|
|
export * from "./constants.js";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema.js";
|
|
|
|
// Re-export types for convenience
|
|
export type {
|
|
Currency,
|
|
InvoiceStatus,
|
|
InvoiceItem,
|
|
Invoice,
|
|
InvoiceIdParam,
|
|
InvoicePagination,
|
|
InvoiceList,
|
|
InvoiceSsoLink,
|
|
PaymentInvoiceRequest,
|
|
BillingSummary,
|
|
InvoiceQueryParams,
|
|
InvoiceListQuery,
|
|
InvoiceSsoQuery,
|
|
InvoicePaymentLinkQuery,
|
|
} from "./schema.js";
|