Skip to content

Commit eac854e

Browse files
add urn support for entities
1 parent 53a3e97 commit eac854e

12 files changed

Lines changed: 36 additions & 1 deletion

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@linkedapi/node",
3-
"version": "2.3.7",
3+
"version": "2.3.8",
44
"description": "Control your LinkedIn accounts and retrieve real-time data, all through this Node.js SDK.",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/types/actions/company.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { TPost } from './post';
55

66
export interface TCompany {
77
name: string;
8+
urn: string | null;
89
publicUrl: string;
910
description: string;
1011
location: string;
@@ -47,16 +48,20 @@ export type TFetchCompanyResult = TCompany;
4748

4849
export interface TStCompanyEmployee {
4950
name: string;
51+
urn: string | null;
5052
publicUrl: string;
5153
headline: string;
5254
location: string;
55+
avatarUrl: string | null;
5356
}
5457

5558
export interface TStCompanyDm {
5659
name: string;
60+
urn: string | null;
5761
publicUrl: string;
5862
headline: string;
5963
location: string;
64+
avatarUrl: string | null;
6065
countryCode: string;
6166
}
6267

@@ -73,6 +78,7 @@ export interface TStCompanyEmployeesRetrievalConfig extends TLimitParams {
7378

7479
export interface TNvCompany {
7580
name: string;
81+
urn: string | null;
7682
publicUrl: string;
7783
description: string;
7884
location: string;
@@ -88,16 +94,20 @@ export interface TNvCompany {
8894

8995
export interface TNvCompanyEmployee {
9096
name: string;
97+
urn: string | null;
9198
hashedUrl: string;
9299
position: string;
93100
location: string;
101+
avatarUrl: string | null;
94102
}
95103

96104
export interface TNvCompanyDm {
97105
name: string;
106+
urn: string | null;
98107
hashedUrl: string;
99108
position: string;
100109
location: string;
110+
avatarUrl: string | null;
101111
countryCode: string;
102112
}
103113

src/types/actions/connection.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface TWithdrawConnectionRequestParams extends TBaseActionParams {
3838

3939
export interface TRetrievePendingRequestsResult {
4040
name: string;
41+
urn: string | null;
4142
publicUrl: string;
4243
headline: string;
4344
sentTime: string;
@@ -59,10 +60,12 @@ export interface TRetrieveConnectionsParams extends TLimitParams {
5960

6061
export interface TRetrieveConnectionsResult {
6162
name: string;
63+
urn: string | null;
6264
publicUrl: string;
6365
headline: string;
6466
location?: string;
6567
connectedAt?: string;
68+
avatarUrl?: string | null;
6669
}
6770

6871
// Remove Connection
@@ -76,12 +79,15 @@ export interface TNvOpenPersonPageParams extends TBaseActionParams {
7679

7780
export interface TNvOpenPersonPageResult {
7881
name: string;
82+
urn: string | null;
7983
publicUrl: string;
8084
hashedUrl: string;
8185
headline: string;
8286
location: string;
8387
countryCode: string;
8488
position: string;
8589
companyName: string;
90+
companyUrn: string | null;
8691
companyHashedUrl: string;
92+
avatarUrl: string | null;
8793
}

src/types/actions/job.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ export interface TSearchJobsParams extends TBaseActionParams {
116116

117117
export interface TSearchJobResult {
118118
jobId: string | null;
119+
urn: string | null;
119120
jobUrl: string | null;
120121
title: string;
121122
companyName: string | null;
@@ -134,9 +135,11 @@ export type TFetchJobParams = TBaseFetchJobParams;
134135

135136
export interface TJob {
136137
jobId: string;
138+
urn: string | null;
137139
jobUrl: string;
138140
title: string;
139141
companyName: string | null;
142+
companyUrn: string | null;
140143
companyUrl: string | null;
141144
location: string | null;
142145
postedDate: string | null;

src/types/actions/message.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export interface TMessage {
6565
}
6666

6767
export interface TConversationPollResult {
68+
personUrn: string | null;
6869
personUrl: string;
6970
since?: string;
7071
type: TConversationType;
@@ -82,6 +83,7 @@ export interface TInboxMessage {
8283
id: string;
8384
type: TConversationType;
8485
threadId: string;
86+
personUrn: string | null;
8587
personUrl: string;
8688
sender: TMessageSender;
8789
text: string;

src/types/actions/network.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ export interface TNetworkPollRequest {
1010
export interface TNetworkEvent {
1111
id: string;
1212
type: TNetworkEventType;
13+
personUrn: string | null;
1314
personUrl: string;
1415
detectedAt: string;
1516
}

src/types/actions/person.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export type TFetchPersonParams<T extends TBaseFetchPersonParams = TBaseFetchPers
3535

3636
export interface TPerson {
3737
name: string;
38+
urn: string | null;
3839
publicUrl: string;
3940
hashedUrl: string;
4041
headline: string;

src/types/actions/post.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,15 @@ export type TPostActorType = (typeof POST_ACTOR_TYPE)[keyof typeof POST_ACTOR_TY
3939
export interface TPostPersonAuthor {
4040
type: typeof POST_ACTOR_TYPE.person;
4141
name: string | null;
42+
urn: string | null;
4243
profileUrl: string | null;
4344
headline: string | null;
4445
}
4546

4647
export interface TPostCompanyAuthor {
4748
type: typeof POST_ACTOR_TYPE.company;
4849
name: string | null;
50+
urn: string | null;
4951
companyUrl: string | null;
5052
}
5153

@@ -54,13 +56,15 @@ export type TPostAuthor = TPostPersonAuthor | TPostCompanyAuthor;
5456
export interface TPostPersonReposter {
5557
type: typeof POST_ACTOR_TYPE.person;
5658
name: string | null;
59+
urn: string | null;
5760
profileUrl: string | null;
5861
headline: string | null;
5962
}
6063

6164
export interface TPostCompanyReposter {
6265
type: typeof POST_ACTOR_TYPE.company;
6366
name: string | null;
67+
urn: string | null;
6468
companyUrl: string | null;
6569
}
6670

@@ -149,6 +153,7 @@ export const POST_ENGAGER_TYPE = {
149153
export type TPostEngagerType = (typeof POST_ENGAGER_TYPE)[keyof typeof POST_ENGAGER_TYPE];
150154

151155
export interface TPostReaction {
156+
engagerUrn: string | null;
152157
engagerUrl: string;
153158
engagerName: string;
154159
engagerHeadline: string;

src/types/actions/retrieve-invitations-result.type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { INVITATION_TYPE } from './invitation-type.type';
22

33
interface TInvitationBase {
44
name: string;
5+
urn: string | null;
56
publicUrl: string;
67
}
78

src/types/actions/search-companies.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export type TSearchCompanySize = (typeof SEARCH_COMPANY_SIZE)[keyof typeof SEARC
2525

2626
export interface TSearchCompanyResult {
2727
name: string;
28+
urn: string | null;
2829
publicUrl: string;
2930
industry: string;
3031
location: string;
@@ -78,6 +79,7 @@ export type TMaxAnnualRevenue = (typeof MAX_ANNUAL_REVENUE)[keyof typeof MAX_ANN
7879

7980
export interface TNvSearchCompanyResult {
8081
name: string;
82+
urn: string | null;
8183
hashedUrl: string;
8284
industry: string;
8385
employeesCount: number;

0 commit comments

Comments
 (0)