61 lines
1.3 KiB
TypeScript
61 lines
1.3 KiB
TypeScript
/**
|
|
* Orders Domain
|
|
*
|
|
* Exports all order-related contracts, schemas, and provider mappers.
|
|
*
|
|
* Types are derived from Zod schemas (Schema-First Approach)
|
|
*/
|
|
|
|
// Business types and constants
|
|
export {
|
|
type OrderCreationType,
|
|
type OrderStatus,
|
|
type OrderType,
|
|
type OrderTypeValue,
|
|
type UserMapping,
|
|
// Constants
|
|
ORDER_TYPE,
|
|
ORDER_STATUS,
|
|
ACTIVATION_TYPE,
|
|
SIM_TYPE,
|
|
ORDER_FULFILLMENT_ERROR_CODE,
|
|
type OrderFulfillmentErrorCode,
|
|
} from "./contract";
|
|
|
|
// Schemas (includes derived types)
|
|
export * from "./schema";
|
|
|
|
// Validation (extended business rules)
|
|
export * from "./validation";
|
|
|
|
// Utilities
|
|
export * from "./utils";
|
|
export {
|
|
buildSimOrderConfigurations,
|
|
type BuildSimOrderConfigurationsOptions,
|
|
} from "./helpers";
|
|
|
|
// 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';
|
|
|
|
// Provider adapters
|
|
export * as Providers from "./providers/index";
|
|
|
|
// Re-export provider types for convenience
|
|
export * from "./providers/whmcs/raw.types";
|
|
export * from "./providers/salesforce/raw.types";
|