Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linkedapi/node",
"version": "2.3.19",
"version": "2.3.20",
"description": "Control your LinkedIn accounts and retrieve real-time data, all through this Node.js SDK.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/types/admin/subscription.type.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export interface TSubscriptionStatus {
status: 'active' | 'trialing' | 'past_due' | 'canceled' | undefined;
status: 'active' | 'trialing' | 'past_due' | 'unpaid' | 'canceled' | undefined;
eligibleForTrial: boolean;
cancelAtPeriodEnd: boolean;
}
Expand Down
26 changes: 26 additions & 0 deletions src/types/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ import { TOperationName } from '../core';
* Common types:
* - personNotFound (sendMessage, syncConversation, checkConnectionStatus, sendConnectionRequest, withdrawConnectionRequest, removeConnection, endorsePersonSkill, endorsePersonSkills, fetchPerson, nvSendMessage, nvSyncConversation, nvFetchPerson)
* - selfProfileNotAllowed (fetchPerson, nvFetchPerson)
* - personLikelyChangedPublicUrl (fetchPerson, sendMessage)
* - messagingNotAllowed (sendMessage, nvSendMessage)
* - alreadyPending (sendConnectionRequest)
* - alreadyConnected (sendConnectionRequest)
* - emailRequired (sendConnectionRequest)
* - noteTooLong (sendConnectionRequest)
* - noteLimitExceeded (sendConnectionRequest)
* - invitationAlreadyReceived (sendConnectionRequest)
* - requestNotAllowed (sendConnectionRequest)
* - notPending (withdrawConnectionRequest))
* - noPendingRequest (acceptInvitation, ignoreInvitation)
* - retrievingNotAllowed (retrieveConnections, fetchCompany, nvFetchCompany)
* - connectionNotFound (removeConnection, endorsePersonSkill, endorsePersonSkills)
* - skillNotFound (endorsePersonSkill)
Expand All @@ -23,6 +26,7 @@ import { TOperationName } from '../core';
* - searchingNotAllowed (searchCompanies, searchPeople, searchJobs, searchPosts, nvSearchCompanies, nvSearchPeople)
* - filterNotApplied (searchPeople, searchCompanies, searchPosts, retrieveConnections, fetchCompany, nvSearchPeople, nvSearchCompanies, nvFetchCompany)
* - searchInterfaceMismatch (searchJobs)
* - searchTemporarilyUnavailable (nvSearchCompanies, nvSearchPeople, nvFetchCompany)
* - companyNotFound (fetchCompany, nvFetchCompany)
* - postNotFound (fetchPost, reactToPost, commentOnPost, createRepost)
* - jobNotFound (fetchJob)
Expand All @@ -31,31 +35,40 @@ import { TOperationName } from '../core';
* - replyingNotAllowed (replyToComment)
* - duplicateComment (commentOnPost, replyToComment)
* - noPostingPermission (createPost, reactToPost, commentOnPost)
* - textTooLong (createPost)
* - unsupportedAttachmentType, missingDocumentName, urlNotAccessible, fileTooLarge, unsupportedMimeType, tooManyAttachments, mixingNotAllowed (createPost)
* - mentionNotResolved (createPost, createRepost)
* - repostNotAllowed (createRepost)
* - alreadyReposted (createRepost)
* - noSalesNavigator (nvSendMessage, nvSyncConversation, nvSyncInbox, nvSearchCompanies, nvSearchPeople, nvFetchCompany, nvFetchPerson, nvManageConversation)
* - salesNavigatorOnboardingRequired (nvSearchCompanies, nvSearchPeople)
* - conversationsNotSynced (pollConversations)
* - threadNotFound (manageConversation, nvManageConversation)
* - ssiNotAvailable (retrieveSSI)
* - unexpectedError (any operation)
*/
export const LINKED_API_ACTION_ERROR = {
personNotFound: 'personNotFound',
selfProfileNotAllowed: 'selfProfileNotAllowed',
personLikelyChangedPublicUrl: 'personLikelyChangedPublicUrl',
messagingNotAllowed: 'messagingNotAllowed',
alreadyPending: 'alreadyPending',
alreadyConnected: 'alreadyConnected',
emailRequired: 'emailRequired',
noteTooLong: 'noteTooLong',
noteLimitExceeded: 'noteLimitExceeded',
invitationAlreadyReceived: 'invitationAlreadyReceived',
requestNotAllowed: 'requestNotAllowed',
notPending: 'notPending',
noPendingRequest: 'noPendingRequest',
retrievingNotAllowed: 'retrievingNotAllowed',
connectionNotFound: 'connectionNotFound',
skillNotFound: 'skillNotFound',
endorsementUnavailable: 'endorsementUnavailable',
limitExceeded: 'limitExceeded',
searchingNotAllowed: 'searchingNotAllowed',
searchInterfaceMismatch: 'searchInterfaceMismatch',
searchTemporarilyUnavailable: 'searchTemporarilyUnavailable',
filterNotApplied: 'filterNotApplied',
companyNotFound: 'companyNotFound',
postNotFound: 'postNotFound',
Expand All @@ -65,12 +78,23 @@ export const LINKED_API_ACTION_ERROR = {
replyingNotAllowed: 'replyingNotAllowed',
duplicateComment: 'duplicateComment',
noPostingPermission: 'noPostingPermission',
textTooLong: 'textTooLong',
unsupportedAttachmentType: 'unsupportedAttachmentType',
missingDocumentName: 'missingDocumentName',
urlNotAccessible: 'urlNotAccessible',
fileTooLarge: 'fileTooLarge',
unsupportedMimeType: 'unsupportedMimeType',
tooManyAttachments: 'tooManyAttachments',
mixingNotAllowed: 'mixingNotAllowed',
mentionNotResolved: 'mentionNotResolved',
repostNotAllowed: 'repostNotAllowed',
alreadyReposted: 'alreadyReposted',
noSalesNavigator: 'noSalesNavigator',
salesNavigatorOnboardingRequired: 'salesNavigatorOnboardingRequired',
conversationsNotSynced: 'conversationsNotSynced',
threadNotFound: 'threadNotFound',
ssiNotAvailable: 'ssiNotAvailable',
unexpectedError: 'unexpectedError',
} as const;
export type TLinkedApiActionErrorType =
(typeof LINKED_API_ACTION_ERROR)[keyof typeof LINKED_API_ACTION_ERROR];
Expand Down Expand Up @@ -99,6 +123,8 @@ export const LINKED_API_ERROR = {
workflowTimeout: 'workflowTimeout',
outsideWorkingHours: 'outsideWorkingHours',
workingHoursWaitExpired: 'workingHoursWaitExpired',
cancelledByUser: 'cancelledByUser',
unexpectedError: 'unexpectedError',
httpError: 'httpError',
tooManyRequests: 'tooManyRequests',
accountNotFound: 'accountNotFound',
Expand Down
Loading