2025-10-03 14:26:55 +09:00
|
|
|
/**
|
|
|
|
|
* SIM Domain - Contract
|
2025-10-08 10:33:33 +09:00
|
|
|
*
|
|
|
|
|
* Constants and types for the SIM domain.
|
|
|
|
|
* All validated types are derived from schemas (see schema.ts).
|
2025-10-03 14:26:55 +09:00
|
|
|
*/
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// SIM Status Constants
|
|
|
|
|
// ============================================================================
|
|
|
|
|
|
2025-10-03 14:26:55 +09:00
|
|
|
export const SIM_STATUS = {
|
|
|
|
|
ACTIVE: "active",
|
|
|
|
|
SUSPENDED: "suspended",
|
|
|
|
|
CANCELLED: "cancelled",
|
|
|
|
|
PENDING: "pending",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// SIM Type Constants
|
|
|
|
|
// ============================================================================
|
2025-10-03 14:26:55 +09:00
|
|
|
|
|
|
|
|
export const SIM_TYPE = {
|
|
|
|
|
STANDARD: "standard",
|
|
|
|
|
NANO: "nano",
|
|
|
|
|
MICRO: "micro",
|
|
|
|
|
ESIM: "esim",
|
|
|
|
|
} as const;
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
// Re-export Types from Schema (Schema-First Approach)
|
2025-10-07 17:38:39 +09:00
|
|
|
// ============================================================================
|
|
|
|
|
|
2025-10-08 10:33:33 +09:00
|
|
|
export type {
|
|
|
|
|
SimStatus,
|
|
|
|
|
SimType,
|
|
|
|
|
SimDetails,
|
|
|
|
|
RecentDayUsage,
|
|
|
|
|
SimUsage,
|
|
|
|
|
SimTopUpHistoryEntry,
|
|
|
|
|
SimTopUpHistory,
|
|
|
|
|
// Request types
|
|
|
|
|
SimTopUpRequest,
|
|
|
|
|
SimPlanChangeRequest,
|
|
|
|
|
SimCancelRequest,
|
|
|
|
|
SimTopUpHistoryRequest,
|
|
|
|
|
SimFeaturesUpdateRequest,
|
|
|
|
|
// Activation types
|
|
|
|
|
SimOrderActivationRequest,
|
|
|
|
|
SimOrderActivationMnp,
|
|
|
|
|
SimOrderActivationAddons,
|
|
|
|
|
} from './schema';
|