2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* Subscriptions Domain
|
|
|
|
|
*
|
2025-10-08 10:33:33 +09:00
|
|
|
* Exports all subscription-related contracts, schemas, and provider mappers.
|
|
|
|
|
*
|
|
|
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
2025-10-03 14:26:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Constants
|
2025-10-08 18:35:05 +09:00
|
|
|
export { SUBSCRIPTION_STATUS, SUBSCRIPTION_CYCLE } from "./contract";
|
2025-10-03 14:26:55 +09:00
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Schemas (includes derived types)
|
2025-10-08 18:35:05 +09:00
|
|
|
export * from "./schema";
|
2025-10-03 14:26:55 +09:00
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Re-export types for convenience
|
|
|
|
|
export type {
|
|
|
|
|
SubscriptionStatus,
|
|
|
|
|
SubscriptionCycle,
|
|
|
|
|
Subscription,
|
|
|
|
|
SubscriptionList,
|
|
|
|
|
SubscriptionQueryParams,
|
|
|
|
|
SubscriptionQuery,
|
2025-10-08 16:31:42 +09:00
|
|
|
SubscriptionStats,
|
|
|
|
|
SimActionResponse,
|
|
|
|
|
SimPlanChangeResult,
|
2025-10-08 18:35:05 +09:00
|
|
|
} from './schema';
|
2025-10-08 10:33:33 +09:00
|
|
|
|
2025-10-03 14:26:55 +09:00
|
|
|
// Provider adapters
|
2025-10-08 18:35:05 +09:00
|
|
|
export * as Providers from "./providers/index";
|
2025-10-08 13:46:23 +09:00
|
|
|
|
2025-10-08 16:31:42 +09:00
|
|
|
// Re-export provider raw types (request and response)
|
2025-10-08 13:46:23 +09:00
|
|
|
export type {
|
2025-10-08 16:31:42 +09:00
|
|
|
// Request params
|
|
|
|
|
WhmcsGetClientsProductsParams,
|
|
|
|
|
// Response types
|
2025-10-08 13:46:23 +09:00
|
|
|
WhmcsProductListResponse,
|
|
|
|
|
} from "./providers/whmcs/raw.types";
|
2025-10-21 14:41:22 +09:00
|
|
|
|
|
|
|
|
export {
|
|
|
|
|
whmcsProductListResponseSchema,
|
|
|
|
|
} from "./providers/whmcs/raw.types";
|