- Adjusted .prettierrc to ensure consistent formatting with a newline at the end of the file. - Reformatted eslint.config.mjs for improved readability by aligning array elements. - Updated pnpm-lock.yaml to use single quotes for consistency across dependencies. - Simplified worktree setup in .cursor/worktrees.json for cleaner configuration. - Enhanced documentation in .cursor/plans to clarify architecture refactoring. - Refactored various service files for improved readability and maintainability, including rate-limiting and auth services. - Updated imports and exports across multiple files for consistency and clarity. - Improved error handling and logging in service methods to enhance debugging capabilities. - Streamlined utility functions for better performance and maintainability across the domain packages.
49 lines
1.1 KiB
TypeScript
49 lines
1.1 KiB
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 {
|
|
InvoiceStatus,
|
|
InvoiceItem,
|
|
Invoice,
|
|
InvoicePagination,
|
|
InvoiceList,
|
|
InvoiceSsoLink,
|
|
PaymentInvoiceRequest,
|
|
BillingSummary,
|
|
InvoiceQueryParams,
|
|
InvoiceListQuery,
|
|
} from "./schema.js";
|
|
|
|
// Provider adapters
|
|
export * as Providers from "./providers/index.js";
|
|
|
|
// Re-export provider raw types (request and response)
|
|
export type {
|
|
// Request params
|
|
WhmcsGetInvoicesParams,
|
|
WhmcsCreateInvoiceParams,
|
|
WhmcsUpdateInvoiceParams,
|
|
WhmcsCapturePaymentParams,
|
|
// Response types
|
|
WhmcsInvoiceListResponse,
|
|
WhmcsInvoiceResponse,
|
|
WhmcsCreateInvoiceResponse,
|
|
WhmcsUpdateInvoiceResponse,
|
|
WhmcsCapturePaymentResponse,
|
|
WhmcsCurrency,
|
|
WhmcsCurrenciesResponse,
|
|
} from "./providers/whmcs/raw.types.js";
|