barsa 67691a50b5 Refactor WHMCS service and improve address handling
- Updated WHMCS service to utilize addressSchema for client address retrieval, enhancing data validation.
- Cleaned up imports in WHMCS client service for better organization.
- Improved logging format in WHMCS subscription service for clearer output.
- Streamlined address handling in order builder service for consistency.
- Enhanced code readability by formatting JSX elements in ProfileContainer and other components.
- Removed deprecated billing cycle normalization logic and centralized it in the domain helpers for better maintainability.
2025-11-04 11:14:26 +09:00

87 lines
2.0 KiB
TypeScript

/**
* Auth Domain
*
* Contains ONLY authentication mechanisms:
* - Login, Signup, Password Management
* - Token Management (JWT)
* - MFA, SSO
*
* User entity types are in customer domain (@customer-portal/domain/customer)
*/
// ============================================================================
// Constants & Contract Types
// ============================================================================
export {
AUTH_ERROR_CODE,
TOKEN_TYPE,
GENDER,
type AuthErrorCode,
type TokenTypeValue,
type GenderValue,
} from "./contract";
export type {
// Request types
LoginRequest,
SignupRequest,
PasswordResetRequest,
ResetPasswordRequest,
SetPasswordRequest,
ChangePasswordRequest,
LinkWhmcsRequest,
ValidateSignupRequest,
UpdateCustomerProfileRequest,
AccountStatusRequest,
SsoLinkRequest,
CheckPasswordNeededRequest,
RefreshTokenRequest,
// Token types
AuthTokens,
// Response types
AuthResponse,
SignupResult,
PasswordChangeResult,
SsoLinkResponse,
CheckPasswordNeededResponse,
// Error types
AuthError,
} from "./contract";
// ============================================================================
// Schemas (for validation)
// ============================================================================
export {
// Request schemas
loginRequestSchema,
signupInputSchema, // Base input schema for forms
signupRequestSchema,
passwordResetRequestSchema,
passwordResetSchema,
setPasswordRequestSchema,
changePasswordRequestSchema,
linkWhmcsRequestSchema,
validateSignupRequestSchema,
updateCustomerProfileRequestSchema,
updateProfileRequestSchema,
updateAddressRequestSchema,
accountStatusRequestSchema,
ssoLinkRequestSchema,
checkPasswordNeededRequestSchema,
refreshTokenRequestSchema,
// Token schemas
authTokensSchema,
// Response schemas
authResponseSchema,
signupResultSchema,
passwordChangeResultSchema,
ssoLinkResponseSchema,
checkPasswordNeededResponseSchema,
} from "./schema";
export { buildSignupRequest } from "./helpers";