mirror of
https://github.com/ION606/linkedin-api.git
synced 2026-05-14 22:06:54 +00:00
exposed number conversion functions
This commit is contained in:
Vendored
+24
-7
@@ -12,7 +12,7 @@ export class LinkedInProfile {
|
|||||||
navigationUrl?: string,
|
navigationUrl?: string,
|
||||||
trackingUrn?: string,
|
trackingUrn?: string,
|
||||||
entityUrn?: string,
|
entityUrn?: string,
|
||||||
insightsResolutionResults?: Array<{simpleInsight?: {title?: {text: string}}}>
|
insightsResolutionResults?: Array<{ simpleInsight?: { title?: { text: string } } }>
|
||||||
primarySubtitle?: { text: string },
|
primarySubtitle?: { text: string },
|
||||||
secondarySubtitle?: { text: string },
|
secondarySubtitle?: { text: string },
|
||||||
bserpEntityNavigationalUrl?: string,
|
bserpEntityNavigationalUrl?: string,
|
||||||
@@ -112,12 +112,12 @@ export class ReactionTypeCount {
|
|||||||
* Class representing the counts of social activities such as likes and comments.
|
* Class representing the counts of social activities such as likes and comments.
|
||||||
*/
|
*/
|
||||||
export class SocialActivityCounts {
|
export class SocialActivityCounts {
|
||||||
constructor(params: {
|
constructor(params: {
|
||||||
entityUrn: string;
|
entityUrn: string;
|
||||||
numComments: number;
|
numComments: number;
|
||||||
numLikes: number;
|
numLikes: number;
|
||||||
reactionTypeCounts: Array<{ count: number; reactionType: string; }>;
|
reactionTypeCounts: Array<{ count: number; reactionType: string; }>;
|
||||||
liked: boolean;
|
liked: boolean;
|
||||||
preDashEntityUrn?: string;
|
preDashEntityUrn?: string;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -199,3 +199,20 @@ export default class linkedInAPIClass {
|
|||||||
private resetCookies: boolean;
|
private resetCookies: boolean;
|
||||||
private helper: any;
|
private helper: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Finds the range index for a given number.
|
||||||
|
*
|
||||||
|
* @param number The number to find the range index for.
|
||||||
|
* @returns The corresponding range index as a string.
|
||||||
|
*/
|
||||||
|
export function findRangeIndex(number: number): string | -1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts an array of numbers to a comma-separated string of range indices.
|
||||||
|
*
|
||||||
|
* @param nums An array of numbers to convert to range indices.
|
||||||
|
* @returns A comma-separated string of range indices.
|
||||||
|
* @throws An error if more than 8 numbers are provided or if any number is invalid.
|
||||||
|
*/
|
||||||
|
export function numsToSizes(...nums: number[]): string;
|
||||||
Reference in New Issue
Block a user