barsa 74d469ce22 Refactor API Client Error Handling and Update Date Formatting
- Enhanced error handling in various API client services by integrating `redactForLogs` for sensitive data protection in logs.
- Updated date formatting across multiple components and services to utilize `formatIsoDate` and `formatIsoRelative`, improving consistency and readability.
- Removed unused imports and optimized code structure for better maintainability.
- Streamlined retry logic in the Freebit and WHMCS services to improve resilience and error management during API requests.
2025-12-29 17:17:36 +09:00

22 lines
370 B
TypeScript

export { cn } from "./cn";
export {
formatIsoDate,
formatIsoRelative,
formatIsoMonthDay,
isSameDay,
isToday,
isYesterday,
type FormatDateFallbackOptions,
} from "./date";
export {
parseError,
getErrorMessage,
shouldLogout,
canRetry,
getErrorCode,
ErrorCode,
ErrorMessages,
type ParsedError,
type ErrorCodeType,
} from "./error-handling";