barsa cff6c21bae Add CurrencyModule to router configuration and enhance WHMCS subscription service response handling
- Integrated CurrencyModule into the API routes for improved currency management.
- Updated WHMCS subscription service to utilize a new response schema for better error handling and data normalization.
- Refactored address and profile API endpoints in account service to use consistent API paths.
- Introduced normalization functions for WHMCS product response types to enhance data integrity.
2025-10-21 14:41:22 +09:00

42 lines
949 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";
// Schemas (includes derived types)
export * from "./schema";
// Re-export types for convenience
export type {
SubscriptionStatus,
SubscriptionCycle,
Subscription,
SubscriptionList,
SubscriptionQueryParams,
SubscriptionQuery,
SubscriptionStats,
SimActionResponse,
SimPlanChangeResult,
} from './schema';
// Provider adapters
export * as Providers from "./providers/index";
// Re-export provider raw types (request and response)
export type {
// Request params
WhmcsGetClientsProductsParams,
// Response types
WhmcsProductListResponse,
} from "./providers/whmcs/raw.types";
export {
whmcsProductListResponseSchema,
} from "./providers/whmcs/raw.types";