import type { UserIdMapping } from "@customer-portal/domain/mappings";

/**
 * BFF-specific mapping types
 * Business types and validation have been moved to domain layer
 */

// Infrastructure types for caching
export interface MappingCacheKey {
  type: "userId" | "whmcsClientId" | "sfAccountId";
  value: string | number;
}

export interface CachedMapping {
  mapping: UserIdMapping;
  cachedAt: Date;
  ttl: number;
}

// Re-export validation result from domain for backward compatibility
export type { MappingValidationResult } from "@customer-portal/domain/mappings";
