ProfileService Service
File: src/services/ProfileService.ts
Overview
Exports
- ProfileData - interface export
- ProfileServiceError - interface export
- ProfileService - class export
- profileService - const export
- updateUserStatus - const export
- getProfile - const export
- getProfileWithAvatarUrl - const export
- getProfileByAuthUserId - const export
- updateProfile - const export
- uploadAvatar - const export
- uploadBanner - const export
Functions
fetchPromise(async ()
No description available.
Parameters:
async (
Returns: Unknown
typescript
const fetchPromise = (async () =>Classes
ProfileService
No description available.
Methods:
getInstancegetCurrentProfilecatchupdateCurrentProfilecreateProfilegetProfileByIdgetProfileByUsernamesearchProfilescheckUsernameAvailabilitycreateErrorupdateUserStatusfetchProfilefetchProfileByAuthUserIdupdateProfileisProfileCompletegetProfileWithAvatarUrluploadAvataruploadBanner
Properties:
instancededuplicationpendingFetchesCachecachetimestampCACHE_TTLprofilelookupcontextdataerrorautomaticallyauth_user_iduserDataServiceIDusernamedomainqueryprofilesoptionslimitoffsetincludeFederatedhasMoretotalsearchQuerycountavailabilityavailablereasonmessagecodedetailsstatussupabasecachinguseCachefirstcachedProfileServicependingpromisefetchPromiseresultfetchnulluserIdurlimportsURLavatar_urlsuccessavatarbanner_urlbanner
Interfaces
ProfileData
No description available.
typescript
interface ProfileData {
username?: string
display_name?: string
avatar_url?: string
banner_url?: string
bio?: string
color?: string
}ProfileServiceError
No description available.
typescript
interface ProfileServiceError {
code: string
message: string
details?: any
}Source Code Insights
File Size: 13318 characters Lines of Code: 462 Imports: 5
Usage Example
typescript
import { ProfileData, ProfileServiceError, ProfileService, profileService, updateUserStatus, getProfile, getProfileWithAvatarUrl, getProfileByAuthUserId, updateProfile, uploadAvatar, uploadBanner } from '@/services/ProfileService'
// Example usage
fetchPromise()This documentation was automatically generated from the source code.
