import { Schema } from "mongoose"; import { EnumMap, IJson, IDocument, IObject, IInstance, IModel, IAction, IActionTypes, ISettings, MiscInfo } from "@onebro/oba-common"; export declare enum FinavigatorUserProfileStatuses { N = "New", S = "Saved", Y = "Sent", Z = "Seen/Read", A = "Accepted", D = "Declined", R = "Revised", E = "Expired", C = "Cancelled" } export declare type FinavigatorUserProfileStatus = keyof typeof FinavigatorUserProfileStatuses; export declare enum FinavigatorRoles { G = "GUEST", U = "USER", A = "ADMIN", S = "SUPER", SA = "SYSADMIN" } export declare type FinavigatorRole = keyof typeof FinavigatorRoles; export declare type FinavigatorExperienceLevel = "novice" | "beginner" | "intermediate" | "advanced" | "expert"; export declare type FinavigatorUserProfileConfig = { username: string; role: FinavigatorRole; settings: ISettings<"location" | "cookies">; img?: string; }; export declare type FinavigatorUserProfileType = IObject & FinavigatorUserProfileConfig & { bio: string; motto: string; socials?: MiscInfo; stats?: MiscInfo; expYrs?: number; expLvl?: FinavigatorExperienceLevel; rating?: number; followers?: FinavigatorUserProfile[]; following?: FinavigatorUserProfile[]; }; export interface FinavigatorUserProfileDocument extends IDocument, FinavigatorUserProfileType { lang: string; } export interface FinavigatorUserProfile extends IInstance, FinavigatorUserProfileDocument { following: FinavigatorUserProfile[]; followers: FinavigatorUserProfile[]; preview(): FinavigatorUserProfilePreview; follow(o: any): Promise; unfollow(o: any): Promise; rate(o: any): Promise; invite(o: any): Promise; respond(o: any): Promise; } export interface FinavigatorUserProfileModel extends IModel { } export declare type FinavigatorUSerProfilePublicKeys = "username" | "bio" | "motto" | "expYrs" | "expLvl" | "rating" | "settings" | "img" | "socials" | "lang"; export declare type FinavigatorUSerProfilePublicData = Pick; export declare type FinavigatorUserProfilePreview = Pick & { role: FinavigatorRoles; }; export declare type FinavigatorUserProfileJson = IJson & FinavigatorUSerProfilePublicData & { role: FinavigatorRoles; memberSince: Date; followers: FinavigatorUserProfilePreview[]; following: FinavigatorUserProfilePreview[]; }; export declare type FinavigatorUserProfileModelMap = { FinavigatorUserProfile: FinavigatorUserProfileModel; }; export declare type FinavigatorUserProfileInstanceMap = { profile: FinavigatorUserProfile; }; export declare type FinavigatorUserProfileSchemaMap = { profile: Schema; }; export declare type FinavigatorUserProfileActionTypes = IActionTypes | "fetchByUsername$"; export declare type FinavigatorUserProfileActions = EnumMap; export declare type FinavigatorUserProfileUpdateFollowersOrFollowing = Partial<{ addFollowers?: string[]; removeFollowers?: string[]; addFollowing?: string[]; removeFollowing?: string[]; }>;