linkedin-private-api
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -17,5 +17,6 @@ import { Client } from '../core/client'; | ||
}): InvitationScroller; | ||
sendInvitation({ profileId, trackingId }: { | ||
sendInvitation({ profileId, trackingId, message, }: { | ||
profileId: string; | ||
trackingId: string; | ||
message?: string; | ||
}): Promise<Invitation>; | ||
@@ -22,0 +23,0 @@ private fetchReceived; |
@@ -39,4 +39,4 @@ "use strict"; | ||
} | ||
async sendInvitation({ profileId, trackingId }) { | ||
await this.client.request.invitation.sendInvitation({ profileId, trackingId }); | ||
async sendInvitation({ profileId, trackingId, message, }) { | ||
await this.client.request.invitation.sendInvitation({ profileId, trackingId, message }); | ||
const lastInvitation = (await this.fetchSent({ skip: 0, limit: 1 }))[0]; | ||
@@ -43,0 +43,0 @@ return lastInvitation; |
@@ -9,5 +9,6 @@ import { LinkedInRequest } from '../core/linkedin-request'; | ||
}); | ||
sendInvitation({ profileId, trackingId }: { | ||
sendInvitation({ profileId, trackingId, message }: { | ||
profileId: string; | ||
trackingId: string; | ||
message?: string; | ||
}): Promise<void>; | ||
@@ -14,0 +15,0 @@ getReceivedInvitations({ skip, limit }?: { |
@@ -8,3 +8,3 @@ "use strict"; | ||
} | ||
sendInvitation({ profileId, trackingId }) { | ||
sendInvitation({ profileId, trackingId, message }) { | ||
const requestPayload = { | ||
@@ -18,2 +18,3 @@ trackingId, | ||
}, | ||
...(message && { message }), | ||
}; | ||
@@ -20,0 +21,0 @@ return this.request.post('growth/normInvitations', requestPayload); |
{ | ||
"name": "linkedin-private-api", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1
221987
280
3299