New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

linkedin-private-api-v2

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkedin-private-api-v2 - npm Package Compare versions

Comparing version

to
1.1.4

dist/src/entities/accepted-notification-hit.entity.d.ts

3

dist/src/core/client.d.ts
import { AxiosProxyConfig } from 'axios';
import { CommentRepository } from '../repositories/comment.repository';
import { CelebrationsRepository, ConversationRepository, InvitationRepository, MessageRepository, ProfileRepository, SearchRepository } from '../repositories';
import { CelebrationsRepository, ConversationRepository, InvitationRepository, MessageRepository, NotificationRepository, ProfileRepository, SearchRepository } from '../repositories';
import { LinkedInRequest } from './linkedin-request';

@@ -20,3 +20,4 @@ import { Login } from './login';

comment: CommentRepository;
notification: NotificationRepository;
}
export {};

@@ -18,2 +18,3 @@ "use strict";

this.comment = new comment_repository_1.CommentRepository({ client: this });
this.notification = new repositories_1.NotificationRepository({ client: this });
this.request = new linkedin_request_1.LinkedInRequest({ proxy });

@@ -20,0 +21,0 @@ }

@@ -10,2 +10,3 @@ import { CelebrationRequest } from '../requests/celebrations.request';

import { CommentRequest } from '../requests/comment.request';
import { NotificationRequest } from '../requests/notification.request';
export declare class LinkedInRequest extends Request {

@@ -20,2 +21,3 @@ conversation: ConversationRequest;

comments: CommentRequest;
notification: NotificationRequest;
}

@@ -13,2 +13,3 @@ "use strict";

const comment_request_1 = require("../requests/comment.request");
const notification_request_1 = require("../requests/notification.request");
class LinkedInRequest extends request_1.Request {

@@ -25,2 +26,3 @@ constructor() {

this.comments = new comment_request_1.CommentRequest({ request: this });
this.notification = new notification_request_1.NotificationRequest({ request: this });
}

@@ -27,0 +29,0 @@ }

@@ -0,1 +1,2 @@

import { HeaderImage } from './common.entity';
export declare type CelebrationId = string;

@@ -7,8 +8,2 @@ export declare enum CelebrationEnum {

}
declare type CelebrationHeaderImageAttribute = {
$type: 'com.linkedin.voyager.dash.common.image.ImageAttribute';
detailData: {
'*profilePicture': 'urn:li:fsd_profile:ACoAAAcHn4gBB8hy_7hl8fJOh9oNLqvbf0CNnQk';
};
};
export interface CelebrationImage {

@@ -37,8 +32,3 @@ $type: string;

objectUrn: string;
headerImage: {
$recipeTypes: string[];
actionTarget: string;
accessibilityText: string;
attributes: CelebrationHeaderImageAttribute[];
};
headerImage: HeaderImage;
actions: CelebrationActionAttribute[];

@@ -45,0 +35,0 @@ publishedAt: number;

@@ -35,1 +35,4 @@ export * from './company-search-hit.entity';

export * from './comment-create-response.entity';
export * from './accepted-notification-hit.entity';
export * from './accepted-notification-params.entity';
export * from './common.entity';

@@ -51,2 +51,5 @@ "use strict";

__exportStar(require("./comment-create-response.entity"), exports);
__exportStar(require("./accepted-notification-hit.entity"), exports);
__exportStar(require("./accepted-notification-params.entity"), exports);
__exportStar(require("./common.entity"), exports);
//# sourceMappingURL=index.js.map

@@ -30,4 +30,3 @@ "use strict";

const scrollers_1 = require("../scrollers");
const transformToProfileIdentifier = (actionTarget) => decodeURI(actionTarget.replace('/in/', ''));
const transformToProfileId = (profilePicture) => profilePicture.replace('urn:li:fsd_profile:', '');
const utils_1 = require("../utils");
const actionToUrn = (participant) => decodeURIComponent(participant.replace('/feed/update/', ''));

@@ -57,3 +56,3 @@ class CelebrationsRepository {

.map(item => {
var _a, _b, _c, _d, _e, _f, _g;
var _a, _b, _c, _d, _e;
return ({

@@ -63,5 +62,5 @@ publishedAt: item === null || item === void 0 ? void 0 : item.publishedAt,

predefinedMessage: (_d = (_c = (_b = item.actions.find(action => { var _a, _b; return (_b = (_a = action === null || action === void 0 ? void 0 : action.action) === null || _a === void 0 ? void 0 : _a.messageAction) === null || _b === void 0 ? void 0 : _b.prefilledMessage; })) === null || _b === void 0 ? void 0 : _b.action) === null || _c === void 0 ? void 0 : _c.messageAction) === null || _d === void 0 ? void 0 : _d.prefilledMessage,
publicIdentifier: transformToProfileIdentifier(item.headerImage.actionTarget),
profileId: transformToProfileId((_f = (_e = item.headerImage.attributes.find(attribute => attribute.$type === 'com.linkedin.voyager.dash.common.image.ImageAttribute')) === null || _e === void 0 ? void 0 : _e.detailData['*profilePicture']) !== null && _f !== void 0 ? _f : ''),
postUrn: actionToUrn((_g = item === null || item === void 0 ? void 0 : item.cardAction) === null || _g === void 0 ? void 0 : _g.displayAction),
publicIdentifier: (0, utils_1.transformToProfileIdentifier)(item.headerImage.actionTarget),
profileId: (0, utils_1.transformHeaderImageToProfileId)(item.headerImage),
postUrn: actionToUrn((_e = item === null || item === void 0 ? void 0 : item.cardAction) === null || _e === void 0 ? void 0 : _e.displayAction),
});

@@ -68,0 +67,0 @@ });

@@ -7,1 +7,2 @@ export * from './conversation.repository';

export * from './celebrations.repository';
export * from './notification.repository';

@@ -23,2 +23,3 @@ "use strict";

__exportStar(require("./celebrations.repository"), exports);
__exportStar(require("./notification.repository"), exports);
//# sourceMappingURL=index.js.map

@@ -11,1 +11,2 @@ export * from './blended-search.reponse.get';

export * from './celebration-response.get';
export * from './accepted-invitations.response.get';

@@ -27,2 +27,3 @@ "use strict";

__exportStar(require("./celebration-response.get"), exports);
__exportStar(require("./accepted-invitations.response.get"), exports);
//# sourceMappingURL=index.js.map
export * from './paramsSerializer';
export * from './common';

@@ -18,2 +18,3 @@ "use strict";

__exportStar(require("./paramsSerializer"), exports);
__exportStar(require("./common"), exports);
//# sourceMappingURL=index.js.map
{
"name": "linkedin-private-api-v2",
"version": "1.1.3",
"version": "1.1.4",
"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

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

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