2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* Orders Domain
|
|
|
|
|
*
|
|
|
|
|
* Exports all order-related contracts, schemas, and provider mappers.
|
2025-10-08 10:33:33 +09:00
|
|
|
*
|
|
|
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
2025-10-03 14:26:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-10-08 13:46:23 +09:00
|
|
|
// Business types and constants
|
|
|
|
|
export {
|
|
|
|
|
type OrderCreationType,
|
|
|
|
|
type OrderStatus,
|
|
|
|
|
type OrderType,
|
|
|
|
|
type UserMapping,
|
|
|
|
|
// Constants
|
|
|
|
|
ORDER_TYPE,
|
|
|
|
|
ORDER_STATUS,
|
|
|
|
|
ACTIVATION_TYPE,
|
|
|
|
|
SIM_TYPE,
|
|
|
|
|
ORDER_FULFILLMENT_ERROR_CODE,
|
|
|
|
|
type OrderFulfillmentErrorCode,
|
2025-10-08 18:14:12 +09:00
|
|
|
} from "./contract.js";
|
2025-10-08 10:33:33 +09:00
|
|
|
|
|
|
|
|
// Schemas (includes derived types)
|
2025-10-08 18:14:12 +09:00
|
|
|
export * from "./schema.js";
|
2025-10-03 14:26:55 +09:00
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// Validation (extended business rules)
|
2025-10-08 18:14:12 +09:00
|
|
|
export * from "./validation.js";
|
2025-10-08 10:33:33 +09:00
|
|
|
|
|
|
|
|
// Re-export types for convenience
|
|
|
|
|
export type {
|
|
|
|
|
// Order item types
|
|
|
|
|
OrderItemSummary,
|
|
|
|
|
OrderItemDetails,
|
|
|
|
|
// Order types
|
|
|
|
|
OrderSummary,
|
|
|
|
|
OrderDetails,
|
|
|
|
|
// Query and creation types
|
|
|
|
|
OrderQueryParams,
|
|
|
|
|
OrderConfigurationsAddress,
|
|
|
|
|
OrderConfigurations,
|
|
|
|
|
CreateOrderRequest,
|
|
|
|
|
OrderBusinessValidation,
|
|
|
|
|
SfOrderIdParam,
|
|
|
|
|
} from './schema';
|
|
|
|
|
|
2025-10-03 14:26:55 +09:00
|
|
|
// Provider adapters
|
2025-10-08 18:14:12 +09:00
|
|
|
export * as Providers from "./providers/index.js";
|
2025-10-03 15:05:46 +09:00
|
|
|
|
|
|
|
|
// Re-export provider types for convenience
|
2025-10-08 18:14:12 +09:00
|
|
|
export * from "./providers/whmcs/raw.types.js";
|
|
|
|
|
export * from "./providers/salesforce/raw.types.js";
|