core/CoreProfileService Service
File: src/services/core/CoreProfileService.ts
Overview
Exports
- ProfileData - interface export
- CoreProfileServiceError - interface export
- ProfileSearchOptions - interface export
- UserStats - interface export
- CoreProfileService - class export
- coreProfileService - const export
Classes
CoreProfileService
No description available.
Methods:
getInstanceloadProfilecatchloadProfileByAuthUserIdsearchProfilesupdateProfilecreateProfilegetUserStatssanitizeProfileDatasanitizeProfileCreationDatasanitizeSearchQuerysanitizeProfileForPublicViewvalidateProfileDatavalidateProfileCreationDatacreateError
Properties:
instanceconstantsMAX_SEARCH_LIMITMAX_USERNAME_LENGTHMAX_DISPLAY_NAME_LENGTHMAX_BIO_LENGTHvalidationCoredatais_verifiednullsanitizedProfileerrorprofilequeryoptionslimitinjectionsanitizedQuerysecureLimitqueryBuilderis_privatefilteringfilteredProfilesprofileIdauthUsersanitizationsanitizedDataverificationsecurityviolationscreationauth_user_idis_localsecurelyaggregationfollowing_countstatsposts_countfollowers_countprofile_viewsMETHODSusernamedisplay_nameavatar_urlbanner_urlbiocolordomaincharactersviewingProfilemessageSecuritysecureDetailsdetails
Interfaces
ProfileData
No description available.
typescript
interface ProfileData {
username?: string
display_name?: string
avatar_url?: string
banner_url?: string
bio?: string
color?: string
}CoreProfileServiceError
No description available.
typescript
interface CoreProfileServiceError {
code: string
message: string
details?: any
}ProfileSearchOptions
No description available.
typescript
interface ProfileSearchOptions {
limit?: number
includePrivate?: boolean
signal?: AbortSignal
}UserStats
No description available.
typescript
interface UserStats {
posts_count: number
followers_count: number
following_count: number
profile_views: number
}Source Code Insights
File Size: 14346 characters Lines of Code: 459 Imports: 4
Usage Example
typescript
import { ProfileData, CoreProfileServiceError, ProfileSearchOptions, UserStats, CoreProfileService, coreProfileService } from '@/services/core/CoreProfileService'
// Example usage
// Use the exported functionalityThis documentation was automatically generated from the source code.
