UNPKG

shiqiyue-linkedin-private-api

Version:

![Build](https://github.com/eilonmore/linkedin-private-api/workflows/Build/badge.svg?branch=master)

26 lines (25 loc) 896 B
import { Client } from '../core/client'; import { LinkedInMiniProfile } from '../entities/linkedin-mini-profile.entity'; import { MiniProfile, ProfileId } from '../entities/mini-profile.entity'; import { Profile } from '../entities/profile.entity'; export declare const getProfilesFromResponse: <T extends { included: (LinkedInMiniProfile | { $type: string; })[]; }>(response: T) => Record<ProfileId, MiniProfile>; export declare class ProfileRepository { private client; constructor({ client }: { client: Client; }); getProfile({ publicIdentifier }: { publicIdentifier: string; }): Promise<Profile>; getProfile2({ publicIdentifier }: { publicIdentifier: string; }): Promise<any>; getOwnProfile(): Promise<Profile | null>; getFullProfile({ publicIdentifier }: { publicIdentifier: string; }): Promise<any>; }