-
Notifications
You must be signed in to change notification settings - Fork 79
/
linkedin-profile.entity.ts
79 lines (72 loc) · 2.25 KB
/
linkedin-profile.entity.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { Country } from '../types/country-code.enum';
import { LinkedInVectorImage } from './linkedin-vector-image.entity';
export const PROFILE_TYPE = 'com.linkedin.voyager.dash.identity.profile.Profile';
interface LinkedInProfileGeoLocation {
$type: 'com.linkedin.voyager.dash.identity.profile.ProfileGeoLocation';
'*geo': string;
$recipeTypes: string[];
geoUrn: string;
}
interface LinkedInProfileLocation {
$type: 'com.linkedin.voyager.dash.identity.profile.ProfileLocation';
countryCode: Country;
}
interface LinkedInPrimaryLocale {
$type: 'com.linkedin.common.Locale';
$anti_abuse_annotations: {
attributeId: number;
entityId: number;
}[];
country: Country;
language: string;
}
export interface LinkedInPhotoFilterPicture {
$type: 'com.linkedin.voyager.dash.identity.profile.PhotoFilterPicture';
$recipeTypes: string[];
displayImageReference: {
vectorImage: LinkedInVectorImage;
};
displayImageUrn: string;
photoFilterEditInfo: unknown;
}
export type ProfileUrn = string;
export interface LinkedInProfile {
$type: typeof PROFILE_TYPE;
'*industry': string;
'*profileCertifications': string;
'*profileCourses': string;
'*profileEducations': string;
'*profileHonors': string;
'*profileLanguages': string;
'*profileOrganizations': string;
'*profilePatents': string;
'*profilePositionGroups': string;
'*profileProjects': string;
'*profilePublications': string;
'*profileSkills': string;
'*profileTestScores': string;
'*profileTreasuryMediaProfile': string;
'*profileVolunteerExperiences': string;
$recipeTypes: string[];
defaultToActivityTab: boolean;
educationOnProfileTopCardShown: boolean;
entityUrn: ProfileUrn;
firstName: string;
lastName: string;
geoLocation: LinkedInProfileGeoLocation;
geoLocationBackfilled: boolean;
headline: string;
industryUrn: string;
location: LinkedInProfileLocation;
locationName: string;
multiLocaleFirstName: Record<string, string>;
multiLocaleHeadline: Record<string, string>;
multiLocaleLastName: Record<string, string>;
objectUrn: string;
primaryLocale: LinkedInPrimaryLocale;
profilePicture: LinkedInPhotoFilterPicture;
publicIdentifier: string;
supportedLocales: LinkedInPrimaryLocale[];
trackingId: string;
versionTag: string;
}