UNPKG

@beincom/dto

Version:

Share dto for all projects of Beincom

90 lines (89 loc) 2.42 kB
import { INTEREST, LANGUAGE, USER_DIRECT_MESSAGE_PRIVACY, USER_GENDER, USER_INVITATION_PRIVACY, USER_RELATIONSHIP_STATUS, USER_STAFF_ROLE, USER_VISIBILITY_PRIVACY } from '@beincom/constants'; declare class CommunityInfo { id: string; name: string; } export declare class ShowingBadgeDto { id: string; name: string; iconUrl: string; community?: CommunityInfo; isNew?: boolean; } export declare class ShowingBadgesByUserIdMapDto { [key: string]: ShowingBadgeDto[]; } export declare class LatestWorkExperienceDto { company: string; titlePosition: string; } export declare class UserDto { id: string; username: string; fullname: string; email: string; avatar: string; chatId: string; beinStaffRole: USER_STAFF_ROLE; countryCode: string; country: string; city: string; address: string; backgroundImgUrl: string; birthday: Date; description: string; gender: USER_GENDER; language: string[]; phone: string; relationshipStatus: USER_RELATIONSHIP_STATUS; isDeactivated: boolean; isVerified: boolean; /** * @note this field is required in the next major release. */ isPhoneVerified?: boolean; /** * @note this field is required in the next major release. */ isProfsCreator?: boolean; /** * @warning These fields are not optional. Must be a required field in the next major release. */ referralCode?: string; primaryId?: string; latestWork?: LatestWorkExperienceDto; showingBadges?: ShowingBadgeDto[]; shouldCreatePwd?: boolean; interests?: INTEREST[]; createdAt: Date; updatedAt: Date; deletedAt?: Date; } export interface SharedUserDto { id: string; username: string; fullname: string; avatar: string; email: string; isDeactivated: boolean; isVerified: boolean; blockings: string[]; groups: string[]; showingBadges?: ShowingBadgeDto[]; setting?: UserSettingDto; } export declare class UserSettingDto { visibilityPrivacy: USER_VISIBILITY_PRIVACY; invitationPrivacy: USER_INVITATION_PRIVACY; directMessagePrivacy?: USER_DIRECT_MESSAGE_PRIVACY; language: LANGUAGE; } export declare class UserPublicInfoDto { fullname: string; avatar: string; } export declare class UserBasicInfo extends UserPublicInfoDto { id: string; username: string; } export {};