@upv/ushi-shared
Version:
Shared DTOs, types, and utilities for the USHI platform (LMS, Trials, Social, Wallet).
31 lines (30 loc) • 1.02 kB
TypeScript
import BaseDto from '../base/BaseDto';
import { ISocialProfileDto, ISocialProfile } from '../../../types/socialProfile';
/**
* SocialProfileDto
*
* DTO for representing a user's social presence in the USHI community platform.
*/
declare class SocialProfileDto extends BaseDto<ISocialProfileDto> {
protected _userId: string;
protected _displayName?: string;
protected _handle: string;
protected _avatarUrl?: string;
protected _mood?: string;
protected _bio?: string;
protected _tags?: string[];
protected _isPrivate?: boolean;
protected _reputation?: number;
constructor(data: ISocialProfileDto);
serialize(): Promise<ISocialProfile>;
get userId(): string;
get displayName(): string | undefined;
get handle(): string;
get avatarUrl(): string | undefined;
get mood(): string | undefined;
get bio(): string | undefined;
get tags(): string[] | undefined;
get isPrivate(): boolean;
get reputation(): number;
}
export default SocialProfileDto;