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