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
|
|
|
|
|
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-03 14:26:55 +09:00
|
|
|
export * from "./schema";
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Re-export types for convenience
|
|
|
|
|
export type {
|
|
|
|
|
SubscriptionStatus,
|
|
|
|
|
SubscriptionCycle,
|
|
|
|
|
Subscription,
|
|
|
|
|
SubscriptionList,
|
|
|
|
|
SubscriptionQueryParams,
|
|
|
|
|
SubscriptionQuery,
|
|
|
|
|
} from './schema';
|
|
|
|
|
|
2025-10-03 14:26:55 +09:00
|
|
|
// Provider adapters
|
|
|
|
|
export * as Providers from "./providers";
|
2025-10-08 13:46:23 +09:00
|
|
|
|
|
|
|
|
// Re-export provider response types
|
|
|
|
|
export type {
|
|
|
|
|
WhmcsProductListResponse,
|
|
|
|
|
} from "./providers/whmcs/raw.types";
|