- Changed TypeScript target and library settings in tsconfig files to align with ESNext standards. - Updated pnpm version in GitHub workflows for better dependency management. - Modified Dockerfile to reflect the updated pnpm version. - Adjusted import statements across various domain modules to include file extensions for consistency and compatibility. - Cleaned up TypeScript configuration files for improved clarity and organization.
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";
|