bereach 1.3.2 → 1.4.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +3 -3
- package/README.md +235 -149
- package/esm/funcs/actions-accept-invitation.d.ts +18 -0
- package/esm/funcs/actions-accept-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-accept-invitation.js +97 -0
- package/esm/funcs/actions-accept-invitation.js.map +1 -0
- package/esm/funcs/actions-connect-profile.d.ts +2 -2
- package/esm/funcs/actions-connect-profile.d.ts.map +1 -1
- package/esm/funcs/actions-connect-profile.js +6 -4
- package/esm/funcs/actions-connect-profile.js.map +1 -1
- package/esm/funcs/actions-create-comment.d.ts +18 -0
- package/esm/funcs/actions-create-comment.d.ts.map +1 -0
- package/esm/funcs/actions-create-comment.js +97 -0
- package/esm/funcs/actions-create-comment.js.map +1 -0
- package/esm/funcs/actions-decline-invitation.d.ts +18 -0
- package/esm/funcs/actions-decline-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-decline-invitation.js +97 -0
- package/esm/funcs/actions-decline-invitation.js.map +1 -0
- package/esm/funcs/actions-edit-comment.d.ts +18 -0
- package/esm/funcs/actions-edit-comment.d.ts.map +1 -0
- package/esm/funcs/actions-edit-comment.js +97 -0
- package/esm/funcs/actions-edit-comment.js.map +1 -0
- package/esm/funcs/actions-edit-post.d.ts +18 -0
- package/esm/funcs/actions-edit-post.d.ts.map +1 -0
- package/esm/funcs/actions-edit-post.js +97 -0
- package/esm/funcs/actions-edit-post.js.map +1 -0
- package/esm/funcs/actions-follow-company.d.ts +1 -1
- package/esm/funcs/actions-follow-company.d.ts.map +1 -1
- package/esm/funcs/actions-follow-company.js +5 -3
- package/esm/funcs/actions-follow-company.js.map +1 -1
- package/esm/funcs/actions-follow-profile.d.ts +18 -0
- package/esm/funcs/actions-follow-profile.d.ts.map +1 -0
- package/esm/funcs/actions-follow-profile.js +97 -0
- package/esm/funcs/actions-follow-profile.js.map +1 -0
- package/esm/funcs/actions-like-comment.d.ts +18 -0
- package/esm/funcs/actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/actions-like-comment.js +97 -0
- package/esm/funcs/actions-like-comment.js.map +1 -0
- package/esm/funcs/actions-like-post.d.ts +18 -0
- package/esm/funcs/actions-like-post.d.ts.map +1 -0
- package/esm/funcs/actions-like-post.js +97 -0
- package/esm/funcs/actions-like-post.js.map +1 -0
- package/esm/funcs/actions-list-invitations.d.ts +18 -0
- package/esm/funcs/actions-list-invitations.d.ts.map +1 -0
- package/esm/funcs/actions-list-invitations.js +99 -0
- package/esm/funcs/actions-list-invitations.js.map +1 -0
- package/esm/funcs/actions-list-sent-invitations.d.ts +1 -1
- package/esm/funcs/actions-list-sent-invitations.d.ts.map +1 -1
- package/esm/funcs/actions-list-sent-invitations.js +5 -3
- package/esm/funcs/actions-list-sent-invitations.js.map +1 -1
- package/esm/funcs/actions-publish-post.d.ts +18 -0
- package/esm/funcs/actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/actions-publish-post.js +97 -0
- package/esm/funcs/actions-publish-post.js.map +1 -0
- package/esm/funcs/actions-reply-to-comment.d.ts +18 -0
- package/esm/funcs/actions-reply-to-comment.d.ts.map +1 -0
- package/esm/funcs/actions-reply-to-comment.js +97 -0
- package/esm/funcs/actions-reply-to-comment.js.map +1 -0
- package/esm/funcs/actions-repost-post.d.ts +18 -0
- package/esm/funcs/actions-repost-post.d.ts.map +1 -0
- package/esm/funcs/actions-repost-post.js +97 -0
- package/esm/funcs/actions-repost-post.js.map +1 -0
- package/esm/funcs/actions-save-post.d.ts +18 -0
- package/esm/funcs/actions-save-post.d.ts.map +1 -0
- package/esm/funcs/actions-save-post.js +97 -0
- package/esm/funcs/actions-save-post.js.map +1 -0
- package/esm/funcs/actions-send-message.d.ts +2 -2
- package/esm/funcs/actions-send-message.d.ts.map +1 -1
- package/esm/funcs/actions-send-message.js +6 -4
- package/esm/funcs/actions-send-message.js.map +1 -1
- package/esm/funcs/actions-unfollow-company.d.ts +18 -0
- package/esm/funcs/actions-unfollow-company.d.ts.map +1 -0
- package/esm/funcs/actions-unfollow-company.js +97 -0
- package/esm/funcs/actions-unfollow-company.js.map +1 -0
- package/esm/funcs/actions-unfollow-profile.d.ts +18 -0
- package/esm/funcs/actions-unfollow-profile.d.ts.map +1 -0
- package/esm/funcs/actions-unfollow-profile.js +97 -0
- package/esm/funcs/actions-unfollow-profile.js.map +1 -0
- package/esm/funcs/actions-unlike-comment.d.ts +18 -0
- package/esm/funcs/actions-unlike-comment.d.ts.map +1 -0
- package/esm/funcs/actions-unlike-comment.js +97 -0
- package/esm/funcs/actions-unlike-comment.js.map +1 -0
- package/esm/funcs/actions-unlike-post.d.ts +18 -0
- package/esm/funcs/actions-unlike-post.d.ts.map +1 -0
- package/esm/funcs/actions-unlike-post.js +97 -0
- package/esm/funcs/actions-unlike-post.js.map +1 -0
- package/esm/funcs/actions-unsave-post.d.ts +18 -0
- package/esm/funcs/actions-unsave-post.d.ts.map +1 -0
- package/esm/funcs/actions-unsave-post.js +97 -0
- package/esm/funcs/actions-unsave-post.js.map +1 -0
- package/esm/funcs/actions-withdraw-invitation.d.ts +18 -0
- package/esm/funcs/actions-withdraw-invitation.d.ts.map +1 -0
- package/esm/funcs/actions-withdraw-invitation.js +97 -0
- package/esm/funcs/actions-withdraw-invitation.js.map +1 -0
- package/esm/funcs/campaigns-filter.d.ts +1 -1
- package/esm/funcs/campaigns-filter.d.ts.map +1 -1
- package/esm/funcs/campaigns-filter.js +5 -3
- package/esm/funcs/campaigns-filter.js.map +1 -1
- package/esm/funcs/campaigns-get-status.d.ts +1 -1
- package/esm/funcs/campaigns-get-status.d.ts.map +1 -1
- package/esm/funcs/campaigns-get-status.js +5 -3
- package/esm/funcs/campaigns-get-status.js.map +1 -1
- package/esm/funcs/campaigns-stats.d.ts +18 -0
- package/esm/funcs/campaigns-stats.d.ts.map +1 -0
- package/esm/funcs/campaigns-stats.js +102 -0
- package/esm/funcs/campaigns-stats.js.map +1 -0
- package/esm/funcs/campaigns-sync.d.ts +1 -1
- package/esm/funcs/campaigns-sync.d.ts.map +1 -1
- package/esm/funcs/campaigns-sync.js +5 -3
- package/esm/funcs/campaigns-sync.js.map +1 -1
- package/esm/funcs/chat-archive.d.ts +1 -1
- package/esm/funcs/chat-archive.d.ts.map +1 -1
- package/esm/funcs/chat-archive.js +5 -3
- package/esm/funcs/chat-archive.js.map +1 -1
- package/esm/funcs/chat-find-conversation.d.ts +2 -9
- package/esm/funcs/chat-find-conversation.d.ts.map +1 -1
- package/esm/funcs/chat-find-conversation.js +6 -11
- package/esm/funcs/chat-find-conversation.js.map +1 -1
- package/esm/funcs/chat-get-messages.d.ts +22 -0
- package/esm/funcs/chat-get-messages.d.ts.map +1 -0
- package/esm/funcs/chat-get-messages.js +105 -0
- package/esm/funcs/chat-get-messages.js.map +1 -0
- package/esm/funcs/chat-get-unread-count.d.ts +18 -0
- package/esm/funcs/chat-get-unread-count.d.ts.map +1 -0
- package/esm/funcs/chat-get-unread-count.js +86 -0
- package/esm/funcs/chat-get-unread-count.js.map +1 -0
- package/esm/funcs/chat-list-archived.d.ts +18 -0
- package/esm/funcs/chat-list-archived.d.ts.map +1 -0
- package/esm/funcs/chat-list-archived.js +100 -0
- package/esm/funcs/chat-list-archived.js.map +1 -0
- package/esm/funcs/chat-list-inbox.d.ts +18 -0
- package/esm/funcs/chat-list-inbox.d.ts.map +1 -0
- package/esm/funcs/chat-list-inbox.js +99 -0
- package/esm/funcs/chat-list-inbox.js.map +1 -0
- package/esm/funcs/chat-list-starred.d.ts +18 -0
- package/esm/funcs/chat-list-starred.d.ts.map +1 -0
- package/esm/funcs/chat-list-starred.js +100 -0
- package/esm/funcs/chat-list-starred.js.map +1 -0
- package/esm/funcs/chat-mark-all-read.d.ts +18 -0
- package/esm/funcs/chat-mark-all-read.d.ts.map +1 -0
- package/esm/funcs/chat-mark-all-read.js +87 -0
- package/esm/funcs/chat-mark-all-read.js.map +1 -0
- package/esm/funcs/chat-mark-seen.d.ts +18 -0
- package/esm/funcs/chat-mark-seen.d.ts.map +1 -0
- package/esm/funcs/chat-mark-seen.js +97 -0
- package/esm/funcs/chat-mark-seen.js.map +1 -0
- package/esm/funcs/chat-react.d.ts +18 -0
- package/esm/funcs/chat-react.d.ts.map +1 -0
- package/esm/funcs/chat-react.js +97 -0
- package/esm/funcs/chat-react.js.map +1 -0
- package/esm/funcs/chat-search-conversations.d.ts +2 -2
- package/esm/funcs/chat-search-conversations.d.ts.map +1 -1
- package/esm/funcs/chat-search-conversations.js +14 -8
- package/esm/funcs/chat-search-conversations.js.map +1 -1
- package/esm/funcs/chat-send-typing-indicator.d.ts +18 -0
- package/esm/funcs/chat-send-typing-indicator.d.ts.map +1 -0
- package/esm/funcs/chat-send-typing-indicator.js +97 -0
- package/esm/funcs/chat-send-typing-indicator.js.map +1 -0
- package/esm/funcs/chat-star.d.ts +18 -0
- package/esm/funcs/chat-star.d.ts.map +1 -0
- package/esm/funcs/chat-star.js +97 -0
- package/esm/funcs/chat-star.js.map +1 -0
- package/esm/funcs/chat-unarchive.d.ts +18 -0
- package/esm/funcs/chat-unarchive.d.ts.map +1 -0
- package/esm/funcs/chat-unarchive.js +97 -0
- package/esm/funcs/chat-unarchive.js.map +1 -0
- package/esm/funcs/chat-unreact.d.ts +1 -1
- package/esm/funcs/chat-unreact.d.ts.map +1 -1
- package/esm/funcs/chat-unreact.js +5 -3
- package/esm/funcs/chat-unreact.js.map +1 -1
- package/esm/funcs/chat-unstar.d.ts +18 -0
- package/esm/funcs/chat-unstar.d.ts.map +1 -0
- package/esm/funcs/chat-unstar.js +97 -0
- package/esm/funcs/chat-unstar.js.map +1 -0
- package/esm/funcs/company-pages-get-analytics.d.ts +1 -1
- package/esm/funcs/company-pages-get-analytics.d.ts.map +1 -1
- package/esm/funcs/company-pages-get-analytics.js +5 -3
- package/esm/funcs/company-pages-get-analytics.js.map +1 -1
- package/esm/funcs/company-pages-get-permissions.d.ts +1 -1
- package/esm/funcs/company-pages-get-permissions.d.ts.map +1 -1
- package/esm/funcs/company-pages-get-permissions.js +5 -3
- package/esm/funcs/company-pages-get-permissions.js.map +1 -1
- package/esm/funcs/company-pages-list.d.ts +1 -1
- package/esm/funcs/company-pages-list.d.ts.map +1 -1
- package/esm/funcs/company-pages-list.js +4 -2
- package/esm/funcs/company-pages-list.js.map +1 -1
- package/esm/funcs/company-pages-posts.d.ts +18 -0
- package/esm/funcs/company-pages-posts.d.ts.map +1 -0
- package/esm/funcs/company-pages-posts.js +97 -0
- package/esm/funcs/company-pages-posts.js.map +1 -0
- package/esm/funcs/contacts-add-activities.d.ts +18 -0
- package/esm/funcs/contacts-add-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-add-activities.js +103 -0
- package/esm/funcs/contacts-add-activities.js.map +1 -0
- package/esm/funcs/contacts-add-to-campaign.d.ts +18 -0
- package/esm/funcs/contacts-add-to-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-add-to-campaign.js +103 -0
- package/esm/funcs/contacts-add-to-campaign.js.map +1 -0
- package/esm/funcs/contacts-bulk-update.d.ts +18 -0
- package/esm/funcs/contacts-bulk-update.d.ts.map +1 -0
- package/esm/funcs/contacts-bulk-update.js +97 -0
- package/esm/funcs/contacts-bulk-update.js.map +1 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts +18 -0
- package/esm/funcs/contacts-campaign-status-transition.d.ts.map +1 -0
- package/esm/funcs/contacts-campaign-status-transition.js +103 -0
- package/esm/funcs/contacts-campaign-status-transition.js.map +1 -0
- package/esm/funcs/contacts-create-campaign.d.ts +18 -0
- package/esm/funcs/contacts-create-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-create-campaign.js +97 -0
- package/esm/funcs/contacts-create-campaign.js.map +1 -0
- package/esm/funcs/contacts-delete-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-delete-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-agent-state.js +102 -0
- package/esm/funcs/contacts-delete-agent-state.js.map +1 -0
- package/esm/funcs/contacts-delete-campaign.d.ts +18 -0
- package/esm/funcs/contacts-delete-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-delete-campaign.js +102 -0
- package/esm/funcs/contacts-delete-campaign.js.map +1 -0
- package/esm/funcs/contacts-get-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-get-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-get-agent-state.js +102 -0
- package/esm/funcs/contacts-get-agent-state.js.map +1 -0
- package/esm/funcs/contacts-get-by-url.d.ts +18 -0
- package/esm/funcs/contacts-get-by-url.d.ts.map +1 -0
- package/esm/funcs/contacts-get-by-url.js +100 -0
- package/esm/funcs/contacts-get-by-url.js.map +1 -0
- package/esm/funcs/contacts-get-campaign.d.ts +18 -0
- package/esm/funcs/contacts-get-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-get-campaign.js +102 -0
- package/esm/funcs/contacts-get-campaign.js.map +1 -0
- package/esm/funcs/contacts-get.d.ts +18 -0
- package/esm/funcs/contacts-get.d.ts.map +1 -0
- package/esm/funcs/contacts-get.js +102 -0
- package/esm/funcs/contacts-get.js.map +1 -0
- package/esm/funcs/contacts-list-activities.d.ts +18 -0
- package/esm/funcs/contacts-list-activities.d.ts.map +1 -0
- package/esm/funcs/contacts-list-activities.js +108 -0
- package/esm/funcs/contacts-list-activities.js.map +1 -0
- package/esm/funcs/contacts-list-agent-states.d.ts +18 -0
- package/esm/funcs/contacts-list-agent-states.d.ts.map +1 -0
- package/esm/funcs/contacts-list-agent-states.js +100 -0
- package/esm/funcs/contacts-list-agent-states.js.map +1 -0
- package/esm/funcs/contacts-list-by-campaign.d.ts +18 -0
- package/esm/funcs/contacts-list-by-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-list-by-campaign.js +111 -0
- package/esm/funcs/contacts-list-by-campaign.js.map +1 -0
- package/esm/funcs/contacts-list-campaigns.d.ts +18 -0
- package/esm/funcs/contacts-list-campaigns.d.ts.map +1 -0
- package/esm/funcs/contacts-list-campaigns.js +103 -0
- package/esm/funcs/contacts-list-campaigns.js.map +1 -0
- package/esm/funcs/contacts-patch-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-patch-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-patch-agent-state.js +103 -0
- package/esm/funcs/contacts-patch-agent-state.js.map +1 -0
- package/esm/funcs/contacts-search.d.ts +18 -0
- package/esm/funcs/contacts-search.d.ts.map +1 -0
- package/esm/funcs/contacts-search.js +112 -0
- package/esm/funcs/contacts-search.js.map +1 -0
- package/esm/funcs/contacts-set-agent-state.d.ts +18 -0
- package/esm/funcs/contacts-set-agent-state.d.ts.map +1 -0
- package/esm/funcs/contacts-set-agent-state.js +103 -0
- package/esm/funcs/contacts-set-agent-state.js.map +1 -0
- package/esm/funcs/contacts-stats.d.ts +18 -0
- package/esm/funcs/contacts-stats.d.ts.map +1 -0
- package/esm/funcs/contacts-stats.js +100 -0
- package/esm/funcs/contacts-stats.js.map +1 -0
- package/esm/funcs/contacts-update-campaign.d.ts +18 -0
- package/esm/funcs/contacts-update-campaign.d.ts.map +1 -0
- package/esm/funcs/contacts-update-campaign.js +103 -0
- package/esm/funcs/contacts-update-campaign.js.map +1 -0
- package/esm/funcs/contacts-update.d.ts +18 -0
- package/esm/funcs/contacts-update.d.ts.map +1 -0
- package/esm/funcs/contacts-update.js +103 -0
- package/esm/funcs/contacts-update.js.map +1 -0
- package/esm/funcs/contacts-upsert.d.ts +3 -2
- package/esm/funcs/contacts-upsert.d.ts.map +1 -1
- package/esm/funcs/contacts-upsert.js +23 -5
- package/esm/funcs/contacts-upsert.js.map +1 -1
- package/esm/funcs/context-delete.d.ts +18 -0
- package/esm/funcs/context-delete.d.ts.map +1 -0
- package/esm/funcs/context-delete.js +101 -0
- package/esm/funcs/context-delete.js.map +1 -0
- package/esm/funcs/context-list-entries.d.ts +18 -0
- package/esm/funcs/context-list-entries.d.ts.map +1 -0
- package/esm/funcs/context-list-entries.js +101 -0
- package/esm/funcs/context-list-entries.js.map +1 -0
- package/esm/funcs/context-set.d.ts +18 -0
- package/esm/funcs/context-set.d.ts.map +1 -0
- package/esm/funcs/context-set.js +97 -0
- package/esm/funcs/context-set.js.map +1 -0
- package/esm/funcs/cron-list-schedules.d.ts +18 -0
- package/esm/funcs/cron-list-schedules.d.ts.map +1 -0
- package/esm/funcs/cron-list-schedules.js +86 -0
- package/esm/funcs/cron-list-schedules.js.map +1 -0
- package/esm/funcs/cron-update-schedule.d.ts +18 -0
- package/esm/funcs/cron-update-schedule.d.ts.map +1 -0
- package/esm/funcs/cron-update-schedule.js +103 -0
- package/esm/funcs/cron-update-schedule.js.map +1 -0
- package/esm/funcs/profile-get-credits.d.ts +1 -1
- package/esm/funcs/profile-get-credits.d.ts.map +1 -1
- package/esm/funcs/profile-get-credits.js +5 -3
- package/esm/funcs/profile-get-credits.js.map +1 -1
- package/esm/funcs/profile-get-follower-analytics.d.ts +1 -1
- package/esm/funcs/profile-get-follower-analytics.d.ts.map +1 -1
- package/esm/funcs/profile-get-follower-analytics.js +4 -2
- package/esm/funcs/profile-get-follower-analytics.js.map +1 -1
- package/esm/funcs/profile-get-followers.d.ts +1 -1
- package/esm/funcs/profile-get-followers.d.ts.map +1 -1
- package/esm/funcs/profile-get-followers.js +5 -3
- package/esm/funcs/profile-get-followers.js.map +1 -1
- package/esm/funcs/profile-get-limits.d.ts +1 -1
- package/esm/funcs/profile-get-limits.d.ts.map +1 -1
- package/esm/funcs/profile-get-limits.js +5 -3
- package/esm/funcs/profile-get-limits.js.map +1 -1
- package/esm/funcs/profile-get-post-analytics.d.ts +2 -2
- package/esm/funcs/profile-get-post-analytics.d.ts.map +1 -1
- package/esm/funcs/profile-get-post-analytics.js +6 -4
- package/esm/funcs/profile-get-post-analytics.js.map +1 -1
- package/esm/funcs/profile-get-search-appearances.d.ts +1 -1
- package/esm/funcs/profile-get-search-appearances.d.ts.map +1 -1
- package/esm/funcs/profile-get-search-appearances.js +4 -2
- package/esm/funcs/profile-get-search-appearances.js.map +1 -1
- package/esm/funcs/profile-get.d.ts +1 -1
- package/esm/funcs/profile-get.d.ts.map +1 -1
- package/esm/funcs/profile-get.js +5 -3
- package/esm/funcs/profile-get.js.map +1 -1
- package/esm/funcs/profile-list-accounts.d.ts +1 -1
- package/esm/funcs/profile-list-accounts.d.ts.map +1 -1
- package/esm/funcs/profile-list-accounts.js +5 -3
- package/esm/funcs/profile-list-accounts.js.map +1 -1
- package/esm/funcs/profile-list-connections.d.ts +18 -0
- package/esm/funcs/profile-list-connections.d.ts.map +1 -0
- package/esm/funcs/profile-list-connections.js +103 -0
- package/esm/funcs/profile-list-connections.js.map +1 -0
- package/esm/funcs/profile-posts.d.ts +18 -0
- package/esm/funcs/profile-posts.d.ts.map +1 -0
- package/esm/funcs/profile-posts.js +99 -0
- package/esm/funcs/profile-posts.js.map +1 -0
- package/esm/funcs/profile-refresh.d.ts +1 -1
- package/esm/funcs/profile-refresh.d.ts.map +1 -1
- package/esm/funcs/profile-refresh.js +4 -2
- package/esm/funcs/profile-refresh.js.map +1 -1
- package/esm/funcs/profile-switch-account.d.ts +18 -0
- package/esm/funcs/profile-switch-account.d.ts.map +1 -0
- package/esm/funcs/profile-switch-account.js +97 -0
- package/esm/funcs/profile-switch-account.js.map +1 -0
- package/esm/funcs/profile-update-account.d.ts +1 -1
- package/esm/funcs/profile-update-account.d.ts.map +1 -1
- package/esm/funcs/profile-update-account.js +5 -3
- package/esm/funcs/profile-update-account.js.map +1 -1
- package/esm/funcs/profile-views.d.ts +18 -0
- package/esm/funcs/profile-views.d.ts.map +1 -0
- package/esm/funcs/profile-views.js +87 -0
- package/esm/funcs/profile-views.js.map +1 -0
- package/esm/funcs/sales-nav-companies.d.ts +33 -0
- package/esm/funcs/sales-nav-companies.d.ts.map +1 -0
- package/esm/funcs/sales-nav-companies.js +112 -0
- package/esm/funcs/sales-nav-companies.js.map +1 -0
- package/esm/funcs/sales-nav-people.d.ts +53 -0
- package/esm/funcs/sales-nav-people.d.ts.map +1 -0
- package/esm/funcs/sales-nav-people.js +132 -0
- package/esm/funcs/sales-nav-people.js.map +1 -0
- package/esm/funcs/sales-nav-search.d.ts +39 -0
- package/esm/funcs/sales-nav-search.d.ts.map +1 -0
- package/esm/funcs/sales-nav-search.js +118 -0
- package/esm/funcs/sales-nav-search.js.map +1 -0
- package/esm/funcs/scheduled-messages-batch-schedule.d.ts +18 -0
- package/esm/funcs/scheduled-messages-batch-schedule.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-batch-schedule.js +97 -0
- package/esm/funcs/scheduled-messages-batch-schedule.js.map +1 -0
- package/esm/funcs/scheduled-messages-cancel.d.ts +18 -0
- package/esm/funcs/scheduled-messages-cancel.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-cancel.js +97 -0
- package/esm/funcs/scheduled-messages-cancel.js.map +1 -0
- package/esm/funcs/scheduled-messages-create.d.ts +18 -0
- package/esm/funcs/scheduled-messages-create.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-create.js +97 -0
- package/esm/funcs/scheduled-messages-create.js.map +1 -0
- package/esm/funcs/scheduled-messages-list.d.ts +18 -0
- package/esm/funcs/scheduled-messages-list.d.ts.map +1 -0
- package/esm/funcs/scheduled-messages-list.js +104 -0
- package/esm/funcs/scheduled-messages-list.js.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js +102 -0
- package/esm/funcs/scrapers-bulk-visit-batch-status.js.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts +18 -0
- package/esm/funcs/scrapers-bulk-visit-profile.d.ts.map +1 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js +97 -0
- package/esm/funcs/scrapers-bulk-visit-profile.js.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts +18 -0
- package/esm/funcs/scrapers-collect-comment-replies.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-comment-replies.js +97 -0
- package/esm/funcs/scrapers-collect-comment-replies.js.map +1 -0
- package/esm/funcs/scrapers-collect-comments.d.ts +18 -0
- package/esm/funcs/scrapers-collect-comments.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-comments.js +97 -0
- package/esm/funcs/scrapers-collect-comments.js.map +1 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.d.ts +18 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.js +97 -0
- package/esm/funcs/scrapers-collect-hashtag-posts.js.map +1 -0
- package/esm/funcs/scrapers-collect-likes.d.ts +18 -0
- package/esm/funcs/scrapers-collect-likes.d.ts.map +1 -0
- package/esm/funcs/scrapers-collect-likes.js +97 -0
- package/esm/funcs/scrapers-collect-likes.js.map +1 -0
- package/esm/funcs/scrapers-collect-posts.d.ts +2 -2
- package/esm/funcs/scrapers-collect-posts.d.ts.map +1 -1
- package/esm/funcs/scrapers-collect-posts.js +6 -4
- package/esm/funcs/scrapers-collect-posts.js.map +1 -1
- package/esm/funcs/scrapers-get-feed.d.ts +18 -0
- package/esm/funcs/scrapers-get-feed.d.ts.map +1 -0
- package/esm/funcs/scrapers-get-feed.js +99 -0
- package/esm/funcs/scrapers-get-feed.js.map +1 -0
- package/esm/funcs/scrapers-list-saved-posts.d.ts +18 -0
- package/esm/funcs/scrapers-list-saved-posts.d.ts.map +1 -0
- package/esm/funcs/scrapers-list-saved-posts.js +97 -0
- package/esm/funcs/scrapers-list-saved-posts.js.map +1 -0
- package/esm/funcs/scrapers-visit-company.d.ts +18 -0
- package/esm/funcs/scrapers-visit-company.d.ts.map +1 -0
- package/esm/funcs/scrapers-visit-company.js +97 -0
- package/esm/funcs/scrapers-visit-company.js.map +1 -0
- package/esm/funcs/scrapers-visit-profile.d.ts +4 -2
- package/esm/funcs/scrapers-visit-profile.d.ts.map +1 -1
- package/esm/funcs/scrapers-visit-profile.js +8 -4
- package/esm/funcs/scrapers-visit-profile.js.map +1 -1
- package/esm/funcs/search-by-url.d.ts +69 -0
- package/esm/funcs/search-by-url.d.ts.map +1 -0
- package/esm/funcs/search-by-url.js +148 -0
- package/esm/funcs/search-by-url.js.map +1 -0
- package/esm/funcs/search-companies.d.ts +75 -0
- package/esm/funcs/search-companies.d.ts.map +1 -0
- package/esm/funcs/search-companies.js +154 -0
- package/esm/funcs/search-companies.js.map +1 -0
- package/esm/funcs/search-jobs.d.ts +96 -0
- package/esm/funcs/search-jobs.d.ts.map +1 -0
- package/esm/funcs/search-jobs.js +175 -0
- package/esm/funcs/search-jobs.js.map +1 -0
- package/esm/funcs/search-people.d.ts +83 -0
- package/esm/funcs/search-people.d.ts.map +1 -0
- package/esm/funcs/search-people.js +162 -0
- package/esm/funcs/search-people.js.map +1 -0
- package/esm/funcs/search-posts.d.ts +71 -0
- package/esm/funcs/search-posts.d.ts.map +1 -0
- package/esm/funcs/search-posts.js +150 -0
- package/esm/funcs/search-posts.js.map +1 -0
- package/esm/funcs/search-resolve-parameters.d.ts +50 -0
- package/esm/funcs/search-resolve-parameters.d.ts.map +1 -0
- package/esm/funcs/search-resolve-parameters.js +134 -0
- package/esm/funcs/search-resolve-parameters.js.map +1 -0
- package/esm/funcs/search-search.d.ts +55 -0
- package/esm/funcs/search-search.d.ts.map +1 -0
- package/esm/funcs/search-search.js +134 -0
- package/esm/funcs/search-search.js.map +1 -0
- package/esm/lib/config.d.ts +5 -5
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +8 -4
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/files.d.ts +13 -0
- package/esm/lib/files.d.ts.map +1 -1
- package/esm/lib/files.js +18 -0
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +8 -4
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/url.d.ts.map +1 -1
- package/esm/lib/url.js +4 -2
- package/esm/lib/url.js.map +1 -1
- package/esm/models/errors/collect-likes.d.ts +257 -0
- package/esm/models/errors/collect-likes.d.ts.map +1 -0
- package/esm/models/errors/collect-likes.js +372 -0
- package/esm/models/errors/collect-likes.js.map +1 -0
- package/esm/models/errors/index.d.ts +1 -1
- package/esm/models/errors/index.d.ts.map +1 -1
- package/esm/models/errors/index.js +1 -1
- package/esm/models/errors/index.js.map +1 -1
- package/esm/models/operations/index.d.ts +4 -4
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +4 -4
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/search-companies-response.d.ts +2499 -0
- package/esm/models/operations/search-companies-response.d.ts.map +1 -0
- package/esm/models/operations/search-companies-response.js +1626 -0
- package/esm/models/operations/search-companies-response.js.map +1 -0
- package/esm/models/operations/search-contacts-contact.d.ts +2635 -0
- package/esm/models/operations/search-contacts-contact.d.ts.map +1 -0
- package/esm/models/operations/search-contacts-contact.js +1605 -0
- package/esm/models/operations/search-contacts-contact.js.map +1 -0
- package/esm/models/operations/update-account-response.d.ts +2800 -0
- package/esm/models/operations/update-account-response.d.ts.map +1 -0
- package/esm/models/operations/update-account-response.js +1575 -0
- package/esm/models/operations/update-account-response.js.map +1 -0
- package/esm/models/operations/update-schedule-response.d.ts +2216 -0
- package/esm/models/operations/update-schedule-response.d.ts.map +1 -0
- package/esm/models/operations/update-schedule-response.js +1459 -0
- package/esm/models/operations/update-schedule-response.js.map +1 -0
- package/esm/sdk/actions.d.ts +139 -6
- package/esm/sdk/actions.d.ts.map +1 -1
- package/esm/sdk/actions.js +192 -2
- package/esm/sdk/actions.js.map +1 -1
- package/esm/sdk/campaigns.d.ts +4 -4
- package/esm/sdk/campaigns.d.ts.map +1 -1
- package/esm/sdk/campaigns.js +3 -3
- package/esm/sdk/campaigns.js.map +1 -1
- package/esm/sdk/chat.d.ts +91 -10
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +125 -8
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/company-pages.d.ts +4 -4
- package/esm/sdk/company-pages.d.ts.map +1 -1
- package/esm/sdk/company-pages.js +3 -3
- package/esm/sdk/company-pages.js.map +1 -1
- package/esm/sdk/contacts.d.ts +149 -2
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +211 -1
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/context.d.ts +26 -0
- package/esm/sdk/context.d.ts.map +1 -0
- package/esm/sdk/context.js +38 -0
- package/esm/sdk/context.js.map +1 -0
- package/esm/sdk/cron.d.ts +19 -0
- package/esm/sdk/cron.d.ts.map +1 -0
- package/esm/sdk/cron.js +28 -0
- package/esm/sdk/cron.js.map +1 -0
- package/esm/sdk/profile.d.ts +27 -13
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +27 -7
- package/esm/sdk/profile.js.map +1 -1
- package/esm/sdk/sales-nav.d.ts +51 -1
- package/esm/sdk/sales-nav.d.ts.map +1 -1
- package/esm/sdk/sales-nav.js +59 -3
- package/esm/sdk/sales-nav.js.map +1 -1
- package/esm/sdk/scheduled-messages.d.ts +33 -0
- package/esm/sdk/scheduled-messages.d.ts.map +1 -0
- package/esm/sdk/scheduled-messages.js +48 -0
- package/esm/sdk/scheduled-messages.js.map +1 -0
- package/esm/sdk/scrapers.d.ts +69 -4
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +94 -2
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +12 -27
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +19 -44
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/search.d.ts +427 -0
- package/esm/sdk/search.d.ts.map +1 -0
- package/esm/sdk/search.js +451 -0
- package/esm/sdk/search.js.map +1 -0
- package/examples/node_modules/@types/node/assert/strict.d.ts +8 -0
- package/examples/node_modules/@types/node/assert.d.ts +1062 -0
- package/examples/node_modules/@types/node/async_hooks.d.ts +605 -0
- package/examples/node_modules/@types/node/buffer.buffer.d.ts +471 -0
- package/examples/node_modules/@types/node/buffer.d.ts +1936 -0
- package/examples/node_modules/@types/node/child_process.d.ts +1475 -0
- package/examples/node_modules/@types/node/cluster.d.ts +577 -0
- package/examples/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/examples/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/examples/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/examples/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/examples/node_modules/@types/node/console.d.ts +452 -0
- package/examples/node_modules/@types/node/constants.d.ts +21 -0
- package/examples/node_modules/@types/node/crypto.d.ts +4590 -0
- package/examples/node_modules/@types/node/dgram.d.ts +597 -0
- package/examples/node_modules/@types/node/diagnostics_channel.d.ts +578 -0
- package/examples/node_modules/@types/node/dns/promises.d.ts +479 -0
- package/examples/node_modules/@types/node/dns.d.ts +871 -0
- package/examples/node_modules/@types/node/domain.d.ts +170 -0
- package/examples/node_modules/@types/node/events.d.ts +977 -0
- package/examples/node_modules/@types/node/fs/promises.d.ts +1270 -0
- package/examples/node_modules/@types/node/fs.d.ts +4375 -0
- package/examples/node_modules/@types/node/globals.d.ts +172 -0
- package/examples/node_modules/@types/node/globals.typedarray.d.ts +38 -0
- package/examples/node_modules/@types/node/http.d.ts +2049 -0
- package/examples/node_modules/@types/node/http2.d.ts +2631 -0
- package/examples/node_modules/@types/node/https.d.ts +578 -0
- package/examples/node_modules/@types/node/index.d.ts +93 -0
- package/examples/node_modules/@types/node/inspector.generated.d.ts +3966 -0
- package/examples/node_modules/@types/node/module.d.ts +539 -0
- package/examples/node_modules/@types/node/net.d.ts +1012 -0
- package/examples/node_modules/@types/node/os.d.ts +506 -0
- package/examples/node_modules/@types/node/path.d.ts +200 -0
- package/examples/node_modules/@types/node/perf_hooks.d.ts +961 -0
- package/examples/node_modules/@types/node/process.d.ts +1961 -0
- package/examples/node_modules/@types/node/punycode.d.ts +117 -0
- package/examples/node_modules/@types/node/querystring.d.ts +152 -0
- package/examples/node_modules/@types/node/readline/promises.d.ts +162 -0
- package/examples/node_modules/@types/node/readline.d.ts +589 -0
- package/examples/node_modules/@types/node/repl.d.ts +430 -0
- package/examples/node_modules/@types/node/sea.d.ts +153 -0
- package/examples/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/examples/node_modules/@types/node/stream/promises.d.ts +90 -0
- package/examples/node_modules/@types/node/stream/web.d.ts +533 -0
- package/examples/node_modules/@types/node/stream.d.ts +1675 -0
- package/examples/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/examples/node_modules/@types/node/test.d.ts +1787 -0
- package/examples/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/examples/node_modules/@types/node/timers.d.ts +286 -0
- package/examples/node_modules/@types/node/tls.d.ts +1259 -0
- package/examples/node_modules/@types/node/trace_events.d.ts +197 -0
- package/examples/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +468 -0
- package/examples/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +34 -0
- package/examples/node_modules/@types/node/ts5.6/index.d.ts +93 -0
- package/examples/node_modules/@types/node/tty.d.ts +208 -0
- package/examples/node_modules/@types/node/url.d.ts +964 -0
- package/examples/node_modules/@types/node/util.d.ts +2331 -0
- package/examples/node_modules/@types/node/v8.d.ts +809 -0
- package/examples/node_modules/@types/node/vm.d.ts +1001 -0
- package/examples/node_modules/@types/node/wasi.d.ts +181 -0
- package/examples/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/examples/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/examples/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/examples/node_modules/@types/node/web-globals/fetch.d.ts +55 -0
- package/examples/node_modules/@types/node/worker_threads.d.ts +715 -0
- package/examples/node_modules/@types/node/zlib.d.ts +598 -0
- package/examples/node_modules/dotenv/config.d.ts +1 -0
- package/examples/node_modules/dotenv/config.js +9 -0
- package/examples/node_modules/dotenv/lib/cli-options.js +17 -0
- package/examples/node_modules/dotenv/lib/env-options.js +28 -0
- package/examples/node_modules/dotenv/lib/main.d.ts +162 -0
- package/examples/node_modules/dotenv/lib/main.js +386 -0
- package/examples/node_modules/esbuild/install.js +289 -0
- package/examples/node_modules/esbuild/lib/main.d.ts +716 -0
- package/examples/node_modules/esbuild/lib/main.js +2242 -0
- package/examples/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/examples/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cjs/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/cli.mjs +55 -0
- package/examples/node_modules/tsx/dist/client-BQVF1NaW.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/api/index.mjs +1 -0
- package/examples/node_modules/tsx/dist/esm/index.mjs +2 -0
- package/examples/node_modules/tsx/dist/get-pipe-path-BHW2eJdv.mjs +1 -0
- package/examples/node_modules/tsx/dist/index-7AaEi15b.mjs +14 -0
- package/examples/node_modules/tsx/dist/index-gbaejti9.mjs +1 -0
- package/examples/node_modules/tsx/dist/lexer-DQCqS3nf.mjs +3 -0
- package/examples/node_modules/tsx/dist/loader.mjs +1 -0
- package/examples/node_modules/tsx/dist/node-features-_8ZFwP_x.mjs +1 -0
- package/examples/node_modules/tsx/dist/package-CeBgXWuR.mjs +1 -0
- package/examples/node_modules/tsx/dist/patch-repl.mjs +1 -0
- package/examples/node_modules/tsx/dist/preflight.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-B7jrtLTO.mjs +1 -0
- package/examples/node_modules/tsx/dist/register-CFH5oNdT.mjs +4 -0
- package/examples/node_modules/tsx/dist/repl.mjs +3 -0
- package/examples/node_modules/tsx/dist/require-DQxpCAr4.mjs +1 -0
- package/examples/node_modules/tsx/dist/suppress-warnings.mjs +1 -0
- package/examples/node_modules/tsx/dist/temporary-directory-CwHp0_NW.mjs +1 -0
- package/examples/node_modules/tsx/dist/types-Cxp8y2TL.d.ts +5 -0
- package/examples/node_modules/undici-types/agent.d.ts +31 -0
- package/examples/node_modules/undici-types/api.d.ts +43 -0
- package/examples/node_modules/undici-types/balanced-pool.d.ts +29 -0
- package/examples/node_modules/undici-types/cache.d.ts +36 -0
- package/examples/node_modules/undici-types/client.d.ts +108 -0
- package/examples/node_modules/undici-types/connector.d.ts +34 -0
- package/examples/node_modules/undici-types/content-type.d.ts +21 -0
- package/examples/node_modules/undici-types/cookies.d.ts +28 -0
- package/examples/node_modules/undici-types/diagnostics-channel.d.ts +66 -0
- package/examples/node_modules/undici-types/dispatcher.d.ts +256 -0
- package/examples/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/examples/node_modules/undici-types/errors.d.ts +149 -0
- package/examples/node_modules/undici-types/eventsource.d.ts +61 -0
- package/examples/node_modules/undici-types/fetch.d.ts +209 -0
- package/examples/node_modules/undici-types/file.d.ts +39 -0
- package/examples/node_modules/undici-types/filereader.d.ts +54 -0
- package/examples/node_modules/undici-types/formdata.d.ts +108 -0
- package/examples/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/examples/node_modules/undici-types/global-origin.d.ts +7 -0
- package/examples/node_modules/undici-types/handlers.d.ts +15 -0
- package/examples/node_modules/undici-types/header.d.ts +4 -0
- package/examples/node_modules/undici-types/index.d.ts +71 -0
- package/examples/node_modules/undici-types/interceptors.d.ts +17 -0
- package/examples/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/examples/node_modules/undici-types/mock-client.d.ts +25 -0
- package/examples/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/examples/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/examples/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/examples/node_modules/undici-types/patch.d.ts +33 -0
- package/examples/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/examples/node_modules/undici-types/pool.d.ts +39 -0
- package/examples/node_modules/undici-types/proxy-agent.d.ts +28 -0
- package/examples/node_modules/undici-types/readable.d.ts +65 -0
- package/examples/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/examples/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/examples/node_modules/undici-types/util.d.ts +18 -0
- package/examples/node_modules/undici-types/webidl.d.ts +228 -0
- package/examples/node_modules/undici-types/websocket.d.ts +150 -0
- package/examples/scrapersCollectLikes.example.ts +30 -0
- package/jsr.json +1 -1
- package/package.json +2 -4
- package/src/funcs/actions-accept-invitation.ts +225 -0
- package/src/funcs/actions-connect-profile.ts +19 -10
- package/src/funcs/actions-create-comment.ts +224 -0
- package/src/funcs/actions-decline-invitation.ts +225 -0
- package/src/funcs/actions-edit-comment.ts +224 -0
- package/src/funcs/actions-edit-post.ts +224 -0
- package/src/funcs/actions-follow-company.ts +18 -9
- package/src/funcs/actions-follow-profile.ts +224 -0
- package/src/funcs/actions-like-comment.ts +224 -0
- package/src/funcs/actions-like-post.ts +224 -0
- package/src/funcs/actions-list-invitations.ts +230 -0
- package/src/funcs/actions-list-sent-invitations.ts +18 -11
- package/src/funcs/actions-publish-post.ts +224 -0
- package/src/funcs/actions-reply-to-comment.ts +224 -0
- package/src/funcs/actions-repost-post.ts +224 -0
- package/src/funcs/actions-save-post.ts +224 -0
- package/src/funcs/actions-send-message.ts +19 -10
- package/src/funcs/actions-unfollow-company.ts +224 -0
- package/src/funcs/actions-unfollow-profile.ts +224 -0
- package/src/funcs/actions-unlike-comment.ts +224 -0
- package/src/funcs/actions-unlike-post.ts +224 -0
- package/src/funcs/actions-unsave-post.ts +224 -0
- package/src/funcs/actions-withdraw-invitation.ts +225 -0
- package/src/funcs/campaigns-filter.ts +18 -9
- package/src/funcs/campaigns-get-status.ts +18 -10
- package/src/funcs/campaigns-stats.ts +230 -0
- package/src/funcs/campaigns-sync.ts +18 -10
- package/src/funcs/chat-archive.ts +18 -9
- package/src/funcs/chat-find-conversation.ts +19 -16
- package/src/funcs/chat-get-messages.ts +233 -0
- package/src/funcs/chat-get-unread-count.ts +205 -0
- package/src/funcs/chat-list-archived.ts +229 -0
- package/src/funcs/chat-list-inbox.ts +227 -0
- package/src/funcs/chat-list-starred.ts +229 -0
- package/src/funcs/chat-mark-all-read.ts +209 -0
- package/src/funcs/chat-mark-seen.ts +224 -0
- package/src/funcs/chat-react.ts +224 -0
- package/src/funcs/chat-search-conversations.ts +28 -16
- package/src/funcs/chat-send-typing-indicator.ts +225 -0
- package/src/funcs/chat-star.ts +224 -0
- package/src/funcs/chat-unarchive.ts +224 -0
- package/src/funcs/chat-unreact.ts +18 -9
- package/src/funcs/chat-unstar.ts +224 -0
- package/src/funcs/company-pages-get-analytics.ts +18 -9
- package/src/funcs/company-pages-get-permissions.ts +18 -12
- package/src/funcs/company-pages-list.ts +15 -5
- package/src/funcs/company-pages-posts.ts +224 -0
- package/src/funcs/contacts-add-activities.ts +230 -0
- package/src/funcs/contacts-add-to-campaign.ts +233 -0
- package/src/funcs/contacts-bulk-update.ts +224 -0
- package/src/funcs/contacts-campaign-status-transition.ts +233 -0
- package/src/funcs/contacts-create-campaign.ts +224 -0
- package/src/funcs/contacts-delete-agent-state.ts +230 -0
- package/src/funcs/contacts-delete-campaign.ts +229 -0
- package/src/funcs/contacts-get-agent-state.ts +229 -0
- package/src/funcs/contacts-get-by-url.ts +228 -0
- package/src/funcs/contacts-get-campaign.ts +229 -0
- package/src/funcs/contacts-get.ts +229 -0
- package/src/funcs/contacts-list-activities.ts +236 -0
- package/src/funcs/contacts-list-agent-states.ts +232 -0
- package/src/funcs/contacts-list-by-campaign.ts +242 -0
- package/src/funcs/contacts-list-campaigns.ts +235 -0
- package/src/funcs/contacts-patch-agent-state.ts +230 -0
- package/src/funcs/contacts-search.ts +244 -0
- package/src/funcs/contacts-set-agent-state.ts +230 -0
- package/src/funcs/contacts-stats.ts +232 -0
- package/src/funcs/contacts-update-campaign.ts +230 -0
- package/src/funcs/contacts-update.ts +230 -0
- package/src/funcs/contacts-upsert.ts +74 -11
- package/src/funcs/context-delete.ts +229 -0
- package/src/funcs/context-list-entries.ts +230 -0
- package/src/funcs/context-set.ts +224 -0
- package/src/funcs/cron-list-schedules.ts +205 -0
- package/src/funcs/cron-update-schedule.ts +230 -0
- package/src/funcs/profile-get-credits.ts +16 -6
- package/src/funcs/profile-get-follower-analytics.ts +17 -7
- package/src/funcs/profile-get-followers.ts +18 -11
- package/src/funcs/profile-get-limits.ts +16 -6
- package/src/funcs/profile-get-post-analytics.ts +19 -9
- package/src/funcs/profile-get-search-appearances.ts +17 -7
- package/src/funcs/profile-get.ts +16 -6
- package/src/funcs/profile-list-accounts.ts +16 -6
- package/src/funcs/profile-list-connections.ts +235 -0
- package/src/funcs/profile-posts.ts +227 -0
- package/src/funcs/profile-refresh.ts +15 -5
- package/src/funcs/profile-switch-account.ts +224 -0
- package/src/funcs/profile-update-account.ts +18 -9
- package/src/funcs/profile-views.ts +209 -0
- package/src/funcs/sales-nav-companies.ts +240 -0
- package/src/funcs/sales-nav-people.ts +260 -0
- package/src/funcs/sales-nav-search.ts +245 -0
- package/src/funcs/scheduled-messages-batch-schedule.ts +224 -0
- package/src/funcs/scheduled-messages-cancel.ts +224 -0
- package/src/funcs/scheduled-messages-create.ts +224 -0
- package/src/funcs/scheduled-messages-list.ts +233 -0
- package/src/funcs/scrapers-bulk-visit-batch-status.ts +230 -0
- package/src/funcs/scrapers-bulk-visit-profile.ts +225 -0
- package/src/funcs/scrapers-collect-comment-replies.ts +225 -0
- package/src/funcs/scrapers-collect-comments.ts +224 -0
- package/src/funcs/scrapers-collect-hashtag-posts.ts +225 -0
- package/src/funcs/scrapers-collect-likes.ts +224 -0
- package/src/funcs/scrapers-collect-posts.ts +19 -10
- package/src/funcs/scrapers-get-feed.ts +227 -0
- package/src/funcs/scrapers-list-saved-posts.ts +224 -0
- package/src/funcs/scrapers-visit-company.ts +224 -0
- package/src/funcs/scrapers-visit-profile.ts +21 -10
- package/src/funcs/search-by-url.ts +275 -0
- package/src/funcs/search-companies.ts +281 -0
- package/src/funcs/search-jobs.ts +302 -0
- package/src/funcs/search-people.ts +289 -0
- package/src/funcs/search-posts.ts +277 -0
- package/src/funcs/search-resolve-parameters.ts +263 -0
- package/src/funcs/search-search.ts +261 -0
- package/src/lib/config.ts +8 -4
- package/src/lib/files.ts +22 -0
- package/src/lib/sdks.ts +7 -5
- package/src/lib/url.ts +16 -14
- package/src/models/errors/collect-likes.ts +600 -0
- package/src/models/errors/index.ts +1 -1
- package/src/models/operations/index.ts +4 -4
- package/src/models/operations/search-companies-response.ts +4888 -0
- package/src/models/operations/search-contacts-contact.ts +5287 -0
- package/src/models/operations/update-account-response.ts +5354 -0
- package/src/models/operations/update-schedule-response.ts +4456 -0
- package/src/sdk/actions.ts +352 -10
- package/src/sdk/campaigns.ts +9 -9
- package/src/sdk/chat.ts +227 -16
- package/src/sdk/company-pages.ts +10 -10
- package/src/sdk/contacts.ts +381 -3
- package/src/sdk/context.ts +63 -0
- package/src/sdk/cron.ts +43 -0
- package/src/sdk/profile.ts +62 -26
- package/src/sdk/sales-nav.ts +75 -3
- package/src/sdk/scheduled-messages.ts +81 -0
- package/src/sdk/scrapers.ts +170 -6
- package/src/sdk/sdk.ts +22 -54
- package/src/sdk/search.ts +508 -0
- package/esm/funcs/campaigns-get-stats.d.ts +0 -18
- package/esm/funcs/campaigns-get-stats.d.ts.map +0 -1
- package/esm/funcs/campaigns-get-stats.js +0 -101
- package/esm/funcs/campaigns-get-stats.js.map +0 -1
- package/esm/funcs/company-pages-get-posts.d.ts +0 -18
- package/esm/funcs/company-pages-get-posts.d.ts.map +0 -1
- package/esm/funcs/company-pages-get-posts.js +0 -95
- package/esm/funcs/company-pages-get-posts.js.map +0 -1
- package/esm/funcs/linked-in-actions-create-comment.d.ts +0 -18
- package/esm/funcs/linked-in-actions-create-comment.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-create-comment.js +0 -95
- package/esm/funcs/linked-in-actions-create-comment.js.map +0 -1
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts +0 -18
- package/esm/funcs/linked-in-actions-decline-invitation.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-decline-invitation.js +0 -95
- package/esm/funcs/linked-in-actions-decline-invitation.js.map +0 -1
- package/esm/funcs/linked-in-actions-like-comment.d.ts +0 -18
- package/esm/funcs/linked-in-actions-like-comment.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-like-comment.js +0 -95
- package/esm/funcs/linked-in-actions-like-comment.js.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.d.ts +0 -18
- package/esm/funcs/linked-in-actions-publish-post.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.js +0 -95
- package/esm/funcs/linked-in-actions-publish-post.js.map +0 -1
- package/esm/funcs/linked-in-actions-save-post.d.ts +0 -18
- package/esm/funcs/linked-in-actions-save-post.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-save-post.js +0 -95
- package/esm/funcs/linked-in-actions-save-post.js.map +0 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts +0 -18
- package/esm/funcs/linked-in-actions-unfollow-profile.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-unfollow-profile.js +0 -95
- package/esm/funcs/linked-in-actions-unfollow-profile.js.map +0 -1
- package/esm/funcs/linked-in-chat-list-starred.d.ts +0 -18
- package/esm/funcs/linked-in-chat-list-starred.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-list-starred.js +0 -97
- package/esm/funcs/linked-in-chat-list-starred.js.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.d.ts +0 -18
- package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.js +0 -95
- package/esm/funcs/linked-in-chat-mark-seen.js.map +0 -1
- package/esm/funcs/linked-in-chat-star.d.ts +0 -18
- package/esm/funcs/linked-in-chat-star.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-star.js +0 -95
- package/esm/funcs/linked-in-chat-star.js.map +0 -1
- package/esm/funcs/linked-in-chat-unarchive.d.ts +0 -18
- package/esm/funcs/linked-in-chat-unarchive.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unarchive.js +0 -95
- package/esm/funcs/linked-in-chat-unarchive.js.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.d.ts +0 -18
- package/esm/funcs/linked-in-chat-unstar.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.js +0 -95
- package/esm/funcs/linked-in-chat-unstar.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts +0 -18
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js +0 -95
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts +0 -18
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +0 -1
- package/esm/funcs/linked-in-scrapers-get-feed.js +0 -97
- package/esm/funcs/linked-in-scrapers-get-feed.js.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts +0 -47
- package/esm/funcs/linked-in-search-resolve-parameters.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-resolve-parameters.js +0 -124
- package/esm/funcs/linked-in-search-resolve-parameters.js.map +0 -1
- package/esm/funcs/linked-in-search-search-companies.d.ts +0 -75
- package/esm/funcs/linked-in-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search-companies.js +0 -152
- package/esm/funcs/linked-in-search-search-companies.js.map +0 -1
- package/esm/funcs/linked-in-search-search.d.ts +0 -55
- package/esm/funcs/linked-in-search-search.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search.js +0 -132
- package/esm/funcs/linked-in-search-search.js.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts +0 -18
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.js +0 -95
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.js +0 -95
- package/esm/funcs/linkedin-actions-edit-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-edit-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-edit-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-edit-post.js +0 -95
- package/esm/funcs/linkedin-actions-edit-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-follow-profile.d.ts +0 -18
- package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-follow-profile.js +0 -95
- package/esm/funcs/linkedin-actions-follow-profile.js.map +0 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-like-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-like-post.js +0 -95
- package/esm/funcs/linkedin-actions-like-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.d.ts +0 -18
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.js +0 -97
- package/esm/funcs/linkedin-actions-list-invitations.js.map +0 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.js +0 -95
- package/esm/funcs/linkedin-actions-reply-to-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-repost-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-repost-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-repost-post.js +0 -95
- package/esm/funcs/linkedin-actions-repost-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unfollow-company.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unfollow-company.js +0 -95
- package/esm/funcs/linkedin-actions-unfollow-company.js.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-comment.js +0 -95
- package/esm/funcs/linkedin-actions-unlike-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-post.js +0 -95
- package/esm/funcs/linkedin-actions-unlike-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.d.ts +0 -18
- package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.js +0 -95
- package/esm/funcs/linkedin-actions-unsave-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts +0 -18
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.js +0 -95
- package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +0 -1
- package/esm/funcs/linkedin-chat-get-messages.d.ts +0 -22
- package/esm/funcs/linkedin-chat-get-messages.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-get-messages.js +0 -99
- package/esm/funcs/linkedin-chat-get-messages.js.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts +0 -18
- package/esm/funcs/linkedin-chat-get-unread-count.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-get-unread-count.js +0 -85
- package/esm/funcs/linkedin-chat-get-unread-count.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.d.ts +0 -18
- package/esm/funcs/linkedin-chat-list-archived.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-archived.js +0 -97
- package/esm/funcs/linkedin-chat-list-archived.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts +0 -18
- package/esm/funcs/linkedin-chat-list-inbox-conversations.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js +0 -95
- package/esm/funcs/linkedin-chat-list-inbox-conversations.js.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts +0 -18
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.js +0 -85
- package/esm/funcs/linkedin-chat-mark-all-read.js.map +0 -1
- package/esm/funcs/linkedin-chat-react.d.ts +0 -18
- package/esm/funcs/linkedin-chat-react.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-react.js +0 -95
- package/esm/funcs/linkedin-chat-react.js.map +0 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts +0 -18
- package/esm/funcs/linkedin-chat-send-typing-indicator.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-send-typing-indicator.js +0 -95
- package/esm/funcs/linkedin-chat-send-typing-indicator.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.js +0 -95
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js +0 -95
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts +0 -18
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.js +0 -95
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.d.ts +0 -69
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.js +0 -146
- package/esm/funcs/linkedin-search-search-by-url.js.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.d.ts +0 -96
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.js +0 -173
- package/esm/funcs/linkedin-search-search-jobs.js.map +0 -1
- package/esm/funcs/linkedin-search-search-people.d.ts +0 -83
- package/esm/funcs/linkedin-search-search-people.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-people.js +0 -160
- package/esm/funcs/linkedin-search-search-people.js.map +0 -1
- package/esm/funcs/linkedin-search-search-posts.d.ts +0 -71
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-posts.js +0 -148
- package/esm/funcs/linkedin-search-search-posts.js.map +0 -1
- package/esm/funcs/profile-get-posts.d.ts +0 -18
- package/esm/funcs/profile-get-posts.d.ts.map +0 -1
- package/esm/funcs/profile-get-posts.js +0 -97
- package/esm/funcs/profile-get-posts.js.map +0 -1
- package/esm/funcs/profile-get-profile-views.d.ts +0 -18
- package/esm/funcs/profile-get-profile-views.d.ts.map +0 -1
- package/esm/funcs/profile-get-profile-views.js +0 -85
- package/esm/funcs/profile-get-profile-views.js.map +0 -1
- package/esm/funcs/sales-nav-search-people.d.ts +0 -53
- package/esm/funcs/sales-nav-search-people.d.ts.map +0 -1
- package/esm/funcs/sales-nav-search-people.js +0 -130
- package/esm/funcs/sales-nav-search-people.js.map +0 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts +0 -33
- package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/sales-navigator-search-search-companies.js +0 -110
- package/esm/funcs/sales-navigator-search-search-companies.js.map +0 -1
- package/esm/funcs/sales-navigator-search-search.d.ts +0 -39
- package/esm/funcs/sales-navigator-search-search.d.ts.map +0 -1
- package/esm/funcs/sales-navigator-search-search.js +0 -116
- package/esm/funcs/sales-navigator-search-search.js.map +0 -1
- package/esm/models/errors/collect-linked-in-likes.d.ts +0 -211
- package/esm/models/errors/collect-linked-in-likes.d.ts.map +0 -1
- package/esm/models/errors/collect-linked-in-likes.js +0 -306
- package/esm/models/errors/collect-linked-in-likes.js.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.d.ts +0 -1550
- package/esm/models/operations/get-campaign-stats-response.d.ts.map +0 -1
- package/esm/models/operations/get-campaign-stats-response.js +0 -961
- package/esm/models/operations/get-campaign-stats-response.js.map +0 -1
- package/esm/models/operations/scraping-weekly.d.ts +0 -2946
- package/esm/models/operations/scraping-weekly.d.ts.map +0 -1
- package/esm/models/operations/scraping-weekly.js +0 -1594
- package/esm/models/operations/scraping-weekly.js.map +0 -1
- package/esm/models/operations/search-linked-in-by-url-type-post.d.ts +0 -2412
- package/esm/models/operations/search-linked-in-by-url-type-post.d.ts.map +0 -1
- package/esm/models/operations/search-linked-in-by-url-type-post.js +0 -1577
- package/esm/models/operations/search-linked-in-by-url-type-post.js.map +0 -1
- package/esm/models/operations/upsert-contacts.d.ts +0 -182
- package/esm/models/operations/upsert-contacts.d.ts.map +0 -1
- package/esm/models/operations/upsert-contacts.js +0 -116
- package/esm/models/operations/upsert-contacts.js.map +0 -1
- package/esm/sdk/linked-in-actions-2.d.ts +0 -47
- package/esm/sdk/linked-in-actions-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-actions-2.js +0 -68
- package/esm/sdk/linked-in-actions-2.js.map +0 -1
- package/esm/sdk/linked-in-chat-2.d.ts +0 -40
- package/esm/sdk/linked-in-chat-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-chat-2.js +0 -58
- package/esm/sdk/linked-in-chat-2.js.map +0 -1
- package/esm/sdk/linked-in-scrapers-2.d.ts +0 -19
- package/esm/sdk/linked-in-scrapers-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-scrapers-2.js +0 -28
- package/esm/sdk/linked-in-scrapers-2.js.map +0 -1
- package/esm/sdk/linked-in-search-1.d.ts +0 -149
- package/esm/sdk/linked-in-search-1.d.ts.map +0 -1
- package/esm/sdk/linked-in-search-1.js +0 -161
- package/esm/sdk/linked-in-search-1.js.map +0 -1
- package/esm/sdk/linkedin-actions-1.d.ts +0 -96
- package/esm/sdk/linkedin-actions-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-actions-1.js +0 -138
- package/esm/sdk/linkedin-actions-1.js.map +0 -1
- package/esm/sdk/linkedin-chat-1.d.ts +0 -58
- package/esm/sdk/linkedin-chat-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-chat-1.js +0 -82
- package/esm/sdk/linkedin-chat-1.js.map +0 -1
- package/esm/sdk/linkedin-scrapers-1.d.ts +0 -40
- package/esm/sdk/linkedin-scrapers-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-scrapers-1.js +0 -58
- package/esm/sdk/linkedin-scrapers-1.js.map +0 -1
- package/esm/sdk/linkedin-search-2.d.ts +0 -280
- package/esm/sdk/linkedin-search-2.d.ts.map +0 -1
- package/esm/sdk/linkedin-search-2.js +0 -295
- package/esm/sdk/linkedin-search-2.js.map +0 -1
- package/esm/sdk/sales-navigator-search.d.ts +0 -55
- package/esm/sdk/sales-navigator-search.d.ts.map +0 -1
- package/esm/sdk/sales-navigator-search.js +0 -64
- package/esm/sdk/sales-navigator-search.js.map +0 -1
- package/examples/linkedinScrapersCollectLikes.example.ts +0 -30
- package/src/funcs/campaigns-get-stats.ts +0 -222
- package/src/funcs/company-pages-get-posts.ts +0 -215
- package/src/funcs/linked-in-actions-create-comment.ts +0 -215
- package/src/funcs/linked-in-actions-decline-invitation.ts +0 -218
- package/src/funcs/linked-in-actions-like-comment.ts +0 -215
- package/src/funcs/linked-in-actions-publish-post.ts +0 -215
- package/src/funcs/linked-in-actions-save-post.ts +0 -215
- package/src/funcs/linked-in-actions-unfollow-profile.ts +0 -215
- package/src/funcs/linked-in-chat-list-starred.ts +0 -220
- package/src/funcs/linked-in-chat-mark-seen.ts +0 -215
- package/src/funcs/linked-in-chat-star.ts +0 -215
- package/src/funcs/linked-in-chat-unarchive.ts +0 -215
- package/src/funcs/linked-in-chat-unstar.ts +0 -215
- package/src/funcs/linked-in-scrapers-collect-comment-replies.ts +0 -218
- package/src/funcs/linked-in-scrapers-get-feed.ts +0 -220
- package/src/funcs/linked-in-search-resolve-parameters.ts +0 -250
- package/src/funcs/linked-in-search-search-companies.ts +0 -272
- package/src/funcs/linked-in-search-search.ts +0 -251
- package/src/funcs/linkedin-actions-accept-invitation.ts +0 -215
- package/src/funcs/linkedin-actions-edit-comment.ts +0 -215
- package/src/funcs/linkedin-actions-edit-post.ts +0 -215
- package/src/funcs/linkedin-actions-follow-profile.ts +0 -215
- package/src/funcs/linkedin-actions-like-post.ts +0 -215
- package/src/funcs/linkedin-actions-list-invitations.ts +0 -220
- package/src/funcs/linkedin-actions-reply-to-comment.ts +0 -215
- package/src/funcs/linkedin-actions-repost-post.ts +0 -215
- package/src/funcs/linkedin-actions-unfollow-company.ts +0 -215
- package/src/funcs/linkedin-actions-unlike-comment.ts +0 -215
- package/src/funcs/linkedin-actions-unlike-post.ts +0 -215
- package/src/funcs/linkedin-actions-unsave-post.ts +0 -215
- package/src/funcs/linkedin-actions-withdraw-invitation.ts +0 -218
- package/src/funcs/linkedin-chat-get-messages.ts +0 -219
- package/src/funcs/linkedin-chat-get-unread-count.ts +0 -199
- package/src/funcs/linkedin-chat-list-archived.ts +0 -220
- package/src/funcs/linkedin-chat-list-inbox-conversations.ts +0 -215
- package/src/funcs/linkedin-chat-mark-all-read.ts +0 -199
- package/src/funcs/linkedin-chat-react.ts +0 -214
- package/src/funcs/linkedin-chat-send-typing-indicator.ts +0 -215
- package/src/funcs/linkedin-scrapers-collect-comments.ts +0 -215
- package/src/funcs/linkedin-scrapers-collect-hashtag-posts.ts +0 -218
- package/src/funcs/linkedin-scrapers-collect-likes.ts +0 -215
- package/src/funcs/linkedin-scrapers-list-saved-posts.ts +0 -218
- package/src/funcs/linkedin-scrapers-visit-company.ts +0 -215
- package/src/funcs/linkedin-search-search-by-url.ts +0 -266
- package/src/funcs/linkedin-search-search-jobs.ts +0 -293
- package/src/funcs/linkedin-search-search-people.ts +0 -280
- package/src/funcs/linkedin-search-search-posts.ts +0 -268
- package/src/funcs/profile-get-posts.ts +0 -220
- package/src/funcs/profile-get-profile-views.ts +0 -199
- package/src/funcs/sales-nav-search-people.ts +0 -250
- package/src/funcs/sales-navigator-search-search-companies.ts +0 -230
- package/src/funcs/sales-navigator-search-search.ts +0 -235
- package/src/models/errors/collect-linked-in-likes.ts +0 -494
- package/src/models/operations/get-campaign-stats-response.ts +0 -3367
- package/src/models/operations/scraping-weekly.ts +0 -5707
- package/src/models/operations/search-linked-in-by-url-type-post.ts +0 -4897
- package/src/models/operations/upsert-contacts.ts +0 -305
- package/src/sdk/linked-in-actions-2.ts +0 -117
- package/src/sdk/linked-in-chat-2.ts +0 -99
- package/src/sdk/linked-in-scrapers-2.ts +0 -45
- package/src/sdk/linked-in-search-1.ts +0 -186
- package/src/sdk/linkedin-actions-1.ts +0 -243
- package/src/sdk/linkedin-chat-1.ts +0 -139
- package/src/sdk/linkedin-scrapers-1.ts +0 -99
- package/src/sdk/linkedin-search-2.ts +0 -328
- package/src/sdk/sales-navigator-search.ts +0 -81
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { IncomingHttpHeaders } from './header'
|
|
2
|
+
import Dispatcher from './dispatcher';
|
|
3
|
+
import { BodyInit, Headers } from './fetch'
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
Interceptable,
|
|
7
|
+
MockInterceptor,
|
|
8
|
+
MockScope
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** The scope associated with a mock dispatch. */
|
|
12
|
+
declare class MockScope<TData extends object = object> {
|
|
13
|
+
constructor(mockDispatch: MockInterceptor.MockDispatch<TData>);
|
|
14
|
+
/** Delay a reply by a set amount of time in ms. */
|
|
15
|
+
delay(waitInMs: number): MockScope<TData>;
|
|
16
|
+
/** Persist the defined mock data for the associated reply. It will return the defined mock data indefinitely. */
|
|
17
|
+
persist(): MockScope<TData>;
|
|
18
|
+
/** Define a reply for a set amount of matching requests. */
|
|
19
|
+
times(repeatTimes: number): MockScope<TData>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/** The interceptor for a Mock. */
|
|
23
|
+
declare class MockInterceptor {
|
|
24
|
+
constructor(options: MockInterceptor.Options, mockDispatches: MockInterceptor.MockDispatch[]);
|
|
25
|
+
/** Mock an undici request with the defined reply. */
|
|
26
|
+
reply<TData extends object = object>(replyOptionsCallback: MockInterceptor.MockReplyOptionsCallback<TData>): MockScope<TData>;
|
|
27
|
+
reply<TData extends object = object>(
|
|
28
|
+
statusCode: number,
|
|
29
|
+
data?: TData | Buffer | string | MockInterceptor.MockResponseDataHandler<TData>,
|
|
30
|
+
responseOptions?: MockInterceptor.MockResponseOptions
|
|
31
|
+
): MockScope<TData>;
|
|
32
|
+
/** Mock an undici request by throwing the defined reply error. */
|
|
33
|
+
replyWithError<TError extends Error = Error>(error: TError): MockScope;
|
|
34
|
+
/** Set default reply headers on the interceptor for subsequent mocked replies. */
|
|
35
|
+
defaultReplyHeaders(headers: IncomingHttpHeaders): MockInterceptor;
|
|
36
|
+
/** Set default reply trailers on the interceptor for subsequent mocked replies. */
|
|
37
|
+
defaultReplyTrailers(trailers: Record<string, string>): MockInterceptor;
|
|
38
|
+
/** Set automatically calculated content-length header on subsequent mocked replies. */
|
|
39
|
+
replyContentLength(): MockInterceptor;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare namespace MockInterceptor {
|
|
43
|
+
/** MockInterceptor options. */
|
|
44
|
+
export interface Options {
|
|
45
|
+
/** Path to intercept on. */
|
|
46
|
+
path: string | RegExp | ((path: string) => boolean);
|
|
47
|
+
/** Method to intercept on. Defaults to GET. */
|
|
48
|
+
method?: string | RegExp | ((method: string) => boolean);
|
|
49
|
+
/** Body to intercept on. */
|
|
50
|
+
body?: string | RegExp | ((body: string) => boolean);
|
|
51
|
+
/** Headers to intercept on. */
|
|
52
|
+
headers?: Record<string, string | RegExp | ((body: string) => boolean)> | ((headers: Record<string, string>) => boolean);
|
|
53
|
+
/** Query params to intercept on */
|
|
54
|
+
query?: Record<string, any>;
|
|
55
|
+
}
|
|
56
|
+
export interface MockDispatch<TData extends object = object, TError extends Error = Error> extends Options {
|
|
57
|
+
times: number | null;
|
|
58
|
+
persist: boolean;
|
|
59
|
+
consumed: boolean;
|
|
60
|
+
data: MockDispatchData<TData, TError>;
|
|
61
|
+
}
|
|
62
|
+
export interface MockDispatchData<TData extends object = object, TError extends Error = Error> extends MockResponseOptions {
|
|
63
|
+
error: TError | null;
|
|
64
|
+
statusCode?: number;
|
|
65
|
+
data?: TData | string;
|
|
66
|
+
}
|
|
67
|
+
export interface MockResponseOptions {
|
|
68
|
+
headers?: IncomingHttpHeaders;
|
|
69
|
+
trailers?: Record<string, string>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface MockResponseCallbackOptions {
|
|
73
|
+
path: string;
|
|
74
|
+
method: string;
|
|
75
|
+
headers?: Headers | Record<string, string>;
|
|
76
|
+
origin?: string;
|
|
77
|
+
body?: BodyInit | Dispatcher.DispatchOptions['body'] | null;
|
|
78
|
+
maxRedirections?: number;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type MockResponseDataHandler<TData extends object = object> = (
|
|
82
|
+
opts: MockResponseCallbackOptions
|
|
83
|
+
) => TData | Buffer | string;
|
|
84
|
+
|
|
85
|
+
export type MockReplyOptionsCallback<TData extends object = object> = (
|
|
86
|
+
opts: MockResponseCallbackOptions
|
|
87
|
+
) => { statusCode: number, data?: TData | Buffer | string, responseOptions?: MockResponseOptions }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface Interceptable extends Dispatcher {
|
|
91
|
+
/** Intercepts any matching requests that use the same origin as this mock client. */
|
|
92
|
+
intercept(options: MockInterceptor.Options): MockInterceptor;
|
|
93
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Pool from './pool'
|
|
2
|
+
import MockAgent from './mock-agent'
|
|
3
|
+
import { Interceptable, MockInterceptor } from './mock-interceptor'
|
|
4
|
+
import Dispatcher from './dispatcher'
|
|
5
|
+
|
|
6
|
+
export default MockPool
|
|
7
|
+
|
|
8
|
+
/** MockPool extends the Pool API and allows one to mock requests. */
|
|
9
|
+
declare class MockPool extends Pool implements Interceptable {
|
|
10
|
+
constructor(origin: string, options: MockPool.Options);
|
|
11
|
+
/** Intercepts any matching requests that use the same origin as this mock pool. */
|
|
12
|
+
intercept(options: MockInterceptor.Options): MockInterceptor;
|
|
13
|
+
/** Dispatches a mocked request. */
|
|
14
|
+
dispatch(options: Dispatcher.DispatchOptions, handlers: Dispatcher.DispatchHandlers): boolean;
|
|
15
|
+
/** Closes the mock pool and gracefully waits for enqueued requests to complete. */
|
|
16
|
+
close(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare namespace MockPool {
|
|
20
|
+
/** MockPool options. */
|
|
21
|
+
export interface Options extends Pool.Options {
|
|
22
|
+
/** The agent to associate this MockPool with. */
|
|
23
|
+
agent: MockAgent;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
|
|
3
|
+
// See https://github.com/nodejs/undici/issues/1740
|
|
4
|
+
|
|
5
|
+
export type DOMException = typeof globalThis extends { DOMException: infer T }
|
|
6
|
+
? T
|
|
7
|
+
: any
|
|
8
|
+
|
|
9
|
+
export interface EventInit {
|
|
10
|
+
bubbles?: boolean
|
|
11
|
+
cancelable?: boolean
|
|
12
|
+
composed?: boolean
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface EventListenerOptions {
|
|
16
|
+
capture?: boolean
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface AddEventListenerOptions extends EventListenerOptions {
|
|
20
|
+
once?: boolean
|
|
21
|
+
passive?: boolean
|
|
22
|
+
signal?: AbortSignal
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type EventListenerOrEventListenerObject = EventListener | EventListenerObject
|
|
26
|
+
|
|
27
|
+
export interface EventListenerObject {
|
|
28
|
+
handleEvent (object: Event): void
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface EventListener {
|
|
32
|
+
(evt: Event): void
|
|
33
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import Pool from "./pool"
|
|
2
|
+
|
|
3
|
+
export default PoolStats
|
|
4
|
+
|
|
5
|
+
declare class PoolStats {
|
|
6
|
+
constructor(pool: Pool);
|
|
7
|
+
/** Number of open socket connections in this pool. */
|
|
8
|
+
connected: number;
|
|
9
|
+
/** Number of open socket connections in this pool that do not have an active request. */
|
|
10
|
+
free: number;
|
|
11
|
+
/** Number of pending requests across all clients in this pool. */
|
|
12
|
+
pending: number;
|
|
13
|
+
/** Number of queued requests across all clients in this pool. */
|
|
14
|
+
queued: number;
|
|
15
|
+
/** Number of currently active requests across all clients in this pool. */
|
|
16
|
+
running: number;
|
|
17
|
+
/** Number of active, pending, or queued requests across all clients in this pool. */
|
|
18
|
+
size: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import Client from './client'
|
|
2
|
+
import TPoolStats from './pool-stats'
|
|
3
|
+
import { URL } from 'url'
|
|
4
|
+
import Dispatcher from "./dispatcher";
|
|
5
|
+
|
|
6
|
+
export default Pool
|
|
7
|
+
|
|
8
|
+
type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, "origin">;
|
|
9
|
+
|
|
10
|
+
declare class Pool extends Dispatcher {
|
|
11
|
+
constructor(url: string | URL, options?: Pool.Options)
|
|
12
|
+
/** `true` after `pool.close()` has been called. */
|
|
13
|
+
closed: boolean;
|
|
14
|
+
/** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
|
|
15
|
+
destroyed: boolean;
|
|
16
|
+
/** Aggregate stats for a Pool. */
|
|
17
|
+
readonly stats: TPoolStats;
|
|
18
|
+
|
|
19
|
+
// Override dispatcher APIs.
|
|
20
|
+
override connect(
|
|
21
|
+
options: PoolConnectOptions
|
|
22
|
+
): Promise<Dispatcher.ConnectData>;
|
|
23
|
+
override connect(
|
|
24
|
+
options: PoolConnectOptions,
|
|
25
|
+
callback: (err: Error | null, data: Dispatcher.ConnectData) => void
|
|
26
|
+
): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare namespace Pool {
|
|
30
|
+
export type PoolStats = TPoolStats;
|
|
31
|
+
export interface Options extends Client.Options {
|
|
32
|
+
/** Default: `(origin, opts) => new Client(origin, opts)`. */
|
|
33
|
+
factory?(origin: URL, opts: object): Dispatcher;
|
|
34
|
+
/** The max number of clients to create. `null` if no limit. Default `null`. */
|
|
35
|
+
connections?: number | null;
|
|
36
|
+
|
|
37
|
+
interceptors?: { Pool?: readonly Dispatcher.DispatchInterceptor[] } & Client.Options["interceptors"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Agent from './agent'
|
|
2
|
+
import buildConnector from './connector';
|
|
3
|
+
import Dispatcher from './dispatcher'
|
|
4
|
+
import { IncomingHttpHeaders } from './header'
|
|
5
|
+
|
|
6
|
+
export default ProxyAgent
|
|
7
|
+
|
|
8
|
+
declare class ProxyAgent extends Dispatcher {
|
|
9
|
+
constructor(options: ProxyAgent.Options | string)
|
|
10
|
+
|
|
11
|
+
dispatch(options: Agent.DispatchOptions, handler: Dispatcher.DispatchHandlers): boolean;
|
|
12
|
+
close(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare namespace ProxyAgent {
|
|
16
|
+
export interface Options extends Agent.Options {
|
|
17
|
+
uri: string;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated use opts.token
|
|
20
|
+
*/
|
|
21
|
+
auth?: string;
|
|
22
|
+
token?: string;
|
|
23
|
+
headers?: IncomingHttpHeaders;
|
|
24
|
+
requestTls?: buildConnector.BuildOptions;
|
|
25
|
+
proxyTls?: buildConnector.BuildOptions;
|
|
26
|
+
clientFactory?(origin: URL, opts: object): Dispatcher;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Readable } from "stream";
|
|
2
|
+
import { Blob } from 'buffer'
|
|
3
|
+
|
|
4
|
+
export default BodyReadable
|
|
5
|
+
|
|
6
|
+
declare class BodyReadable extends Readable {
|
|
7
|
+
constructor(
|
|
8
|
+
resume?: (this: Readable, size: number) => void | null,
|
|
9
|
+
abort?: () => void | null,
|
|
10
|
+
contentType?: string
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
/** Consumes and returns the body as a string
|
|
14
|
+
* https://fetch.spec.whatwg.org/#dom-body-text
|
|
15
|
+
*/
|
|
16
|
+
text(): Promise<string>
|
|
17
|
+
|
|
18
|
+
/** Consumes and returns the body as a JavaScript Object
|
|
19
|
+
* https://fetch.spec.whatwg.org/#dom-body-json
|
|
20
|
+
*/
|
|
21
|
+
json(): Promise<unknown>
|
|
22
|
+
|
|
23
|
+
/** Consumes and returns the body as a Blob
|
|
24
|
+
* https://fetch.spec.whatwg.org/#dom-body-blob
|
|
25
|
+
*/
|
|
26
|
+
blob(): Promise<Blob>
|
|
27
|
+
|
|
28
|
+
/** Consumes and returns the body as an Uint8Array
|
|
29
|
+
* https://fetch.spec.whatwg.org/#dom-body-bytes
|
|
30
|
+
*/
|
|
31
|
+
bytes(): Promise<Uint8Array>
|
|
32
|
+
|
|
33
|
+
/** Consumes and returns the body as an ArrayBuffer
|
|
34
|
+
* https://fetch.spec.whatwg.org/#dom-body-arraybuffer
|
|
35
|
+
*/
|
|
36
|
+
arrayBuffer(): Promise<ArrayBuffer>
|
|
37
|
+
|
|
38
|
+
/** Not implemented
|
|
39
|
+
*
|
|
40
|
+
* https://fetch.spec.whatwg.org/#dom-body-formdata
|
|
41
|
+
*/
|
|
42
|
+
formData(): Promise<never>
|
|
43
|
+
|
|
44
|
+
/** Returns true if the body is not null and the body has been consumed
|
|
45
|
+
*
|
|
46
|
+
* Otherwise, returns false
|
|
47
|
+
*
|
|
48
|
+
* https://fetch.spec.whatwg.org/#dom-body-bodyused
|
|
49
|
+
*/
|
|
50
|
+
readonly bodyUsed: boolean
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* If body is null, it should return null as the body
|
|
54
|
+
*
|
|
55
|
+
* If body is not null, should return the body as a ReadableStream
|
|
56
|
+
*
|
|
57
|
+
* https://fetch.spec.whatwg.org/#dom-body-body
|
|
58
|
+
*/
|
|
59
|
+
readonly body: never | undefined
|
|
60
|
+
|
|
61
|
+
/** Dumps the response body by reading `limit` number of bytes.
|
|
62
|
+
* @param opts.limit Number of bytes to read (optional) - Default: 262144
|
|
63
|
+
*/
|
|
64
|
+
dump(opts?: { limit: number }): Promise<void>
|
|
65
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import Dispatcher from "./dispatcher";
|
|
2
|
+
|
|
3
|
+
export default RetryHandler;
|
|
4
|
+
|
|
5
|
+
declare class RetryHandler implements Dispatcher.DispatchHandlers {
|
|
6
|
+
constructor(
|
|
7
|
+
options: Dispatcher.DispatchOptions & {
|
|
8
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
9
|
+
},
|
|
10
|
+
retryHandlers: RetryHandler.RetryHandlers
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare namespace RetryHandler {
|
|
15
|
+
export type RetryState = { counter: number; };
|
|
16
|
+
|
|
17
|
+
export type RetryContext = {
|
|
18
|
+
state: RetryState;
|
|
19
|
+
opts: Dispatcher.DispatchOptions & {
|
|
20
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type OnRetryCallback = (result?: Error | null) => void;
|
|
25
|
+
|
|
26
|
+
export type RetryCallback = (
|
|
27
|
+
err: Error,
|
|
28
|
+
context: {
|
|
29
|
+
state: RetryState;
|
|
30
|
+
opts: Dispatcher.DispatchOptions & {
|
|
31
|
+
retryOptions?: RetryHandler.RetryOptions;
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
callback: OnRetryCallback
|
|
35
|
+
) => number | null;
|
|
36
|
+
|
|
37
|
+
export interface RetryOptions {
|
|
38
|
+
/**
|
|
39
|
+
* Callback to be invoked on every retry iteration.
|
|
40
|
+
* It receives the error, current state of the retry object and the options object
|
|
41
|
+
* passed when instantiating the retry handler.
|
|
42
|
+
*
|
|
43
|
+
* @type {RetryCallback}
|
|
44
|
+
* @memberof RetryOptions
|
|
45
|
+
*/
|
|
46
|
+
retry?: RetryCallback;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum number of retries to allow.
|
|
49
|
+
*
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof RetryOptions
|
|
52
|
+
* @default 5
|
|
53
|
+
*/
|
|
54
|
+
maxRetries?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Max number of milliseconds allow between retries
|
|
57
|
+
*
|
|
58
|
+
* @type {number}
|
|
59
|
+
* @memberof RetryOptions
|
|
60
|
+
* @default 30000
|
|
61
|
+
*/
|
|
62
|
+
maxTimeout?: number;
|
|
63
|
+
/**
|
|
64
|
+
* Initial number of milliseconds to wait before retrying for the first time.
|
|
65
|
+
*
|
|
66
|
+
* @type {number}
|
|
67
|
+
* @memberof RetryOptions
|
|
68
|
+
* @default 500
|
|
69
|
+
*/
|
|
70
|
+
minTimeout?: number;
|
|
71
|
+
/**
|
|
72
|
+
* Factior to multiply the timeout factor between retries.
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof RetryOptions
|
|
76
|
+
* @default 2
|
|
77
|
+
*/
|
|
78
|
+
timeoutFactor?: number;
|
|
79
|
+
/**
|
|
80
|
+
* It enables to automatically infer timeout between retries based on the `Retry-After` header.
|
|
81
|
+
*
|
|
82
|
+
* @type {boolean}
|
|
83
|
+
* @memberof RetryOptions
|
|
84
|
+
* @default true
|
|
85
|
+
*/
|
|
86
|
+
retryAfter?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* HTTP methods to retry.
|
|
89
|
+
*
|
|
90
|
+
* @type {Dispatcher.HttpMethod[]}
|
|
91
|
+
* @memberof RetryOptions
|
|
92
|
+
* @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],
|
|
93
|
+
*/
|
|
94
|
+
methods?: Dispatcher.HttpMethod[];
|
|
95
|
+
/**
|
|
96
|
+
* Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc.
|
|
97
|
+
*
|
|
98
|
+
* @type {string[]}
|
|
99
|
+
* @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE']
|
|
100
|
+
*/
|
|
101
|
+
errorCodes?: string[];
|
|
102
|
+
/**
|
|
103
|
+
* HTTP status codes to be retried.
|
|
104
|
+
*
|
|
105
|
+
* @type {number[]}
|
|
106
|
+
* @memberof RetryOptions
|
|
107
|
+
* @default [500, 502, 503, 504, 429],
|
|
108
|
+
*/
|
|
109
|
+
statusCodes?: number[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface RetryHandlers {
|
|
113
|
+
dispatch: Dispatcher["dispatch"];
|
|
114
|
+
handler: Dispatcher.DispatchHandlers;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export namespace util {
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves a header name and returns its lowercase value.
|
|
4
|
+
* @param value Header name
|
|
5
|
+
*/
|
|
6
|
+
export function headerNameToString(value: string | Buffer): string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Receives a header object and returns the parsed value.
|
|
10
|
+
* @param headers Header object
|
|
11
|
+
* @param obj Object to specify a proxy object. Used to assign parsed values.
|
|
12
|
+
* @returns If `obj` is specified, it is equivalent to `obj`.
|
|
13
|
+
*/
|
|
14
|
+
export function parseHeaders(
|
|
15
|
+
headers: (Buffer | string | (Buffer | string)[])[],
|
|
16
|
+
obj?: Record<string, string | string[]>
|
|
17
|
+
): Record<string, string | string[]>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// These types are not exported, and are only used internally
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Take in an unknown value and return one that is of type T
|
|
5
|
+
*/
|
|
6
|
+
type Converter<T> = (object: unknown) => T
|
|
7
|
+
|
|
8
|
+
type SequenceConverter<T> = (object: unknown, iterable?: IterableIterator<T>) => T[]
|
|
9
|
+
|
|
10
|
+
type RecordConverter<K extends string, V> = (object: unknown) => Record<K, V>
|
|
11
|
+
|
|
12
|
+
interface ConvertToIntOpts {
|
|
13
|
+
clamp?: boolean
|
|
14
|
+
enforceRange?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface WebidlErrors {
|
|
18
|
+
exception (opts: { header: string, message: string }): TypeError
|
|
19
|
+
/**
|
|
20
|
+
* @description Throw an error when conversion from one type to another has failed
|
|
21
|
+
*/
|
|
22
|
+
conversionFailed (opts: {
|
|
23
|
+
prefix: string
|
|
24
|
+
argument: string
|
|
25
|
+
types: string[]
|
|
26
|
+
}): TypeError
|
|
27
|
+
/**
|
|
28
|
+
* @description Throw an error when an invalid argument is provided
|
|
29
|
+
*/
|
|
30
|
+
invalidArgument (opts: {
|
|
31
|
+
prefix: string
|
|
32
|
+
value: string
|
|
33
|
+
type: string
|
|
34
|
+
}): TypeError
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface WebidlUtil {
|
|
38
|
+
/**
|
|
39
|
+
* @see https://tc39.es/ecma262/#sec-ecmascript-data-types-and-values
|
|
40
|
+
*/
|
|
41
|
+
Type (object: unknown):
|
|
42
|
+
| 'Undefined'
|
|
43
|
+
| 'Boolean'
|
|
44
|
+
| 'String'
|
|
45
|
+
| 'Symbol'
|
|
46
|
+
| 'Number'
|
|
47
|
+
| 'BigInt'
|
|
48
|
+
| 'Null'
|
|
49
|
+
| 'Object'
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
53
|
+
*/
|
|
54
|
+
ConvertToInt (
|
|
55
|
+
V: unknown,
|
|
56
|
+
bitLength: number,
|
|
57
|
+
signedness: 'signed' | 'unsigned',
|
|
58
|
+
opts?: ConvertToIntOpts
|
|
59
|
+
): number
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* @see https://webidl.spec.whatwg.org/#abstract-opdef-converttoint
|
|
63
|
+
*/
|
|
64
|
+
IntegerPart (N: number): number
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Stringifies {@param V}
|
|
68
|
+
*/
|
|
69
|
+
Stringify (V: any): string
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Mark a value as uncloneable for Node.js.
|
|
73
|
+
* This is only effective in some newer Node.js versions.
|
|
74
|
+
*/
|
|
75
|
+
markAsUncloneable (V: any): void
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface WebidlConverters {
|
|
79
|
+
/**
|
|
80
|
+
* @see https://webidl.spec.whatwg.org/#es-DOMString
|
|
81
|
+
*/
|
|
82
|
+
DOMString (V: unknown, prefix: string, argument: string, opts?: {
|
|
83
|
+
legacyNullToEmptyString: boolean
|
|
84
|
+
}): string
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @see https://webidl.spec.whatwg.org/#es-ByteString
|
|
88
|
+
*/
|
|
89
|
+
ByteString (V: unknown, prefix: string, argument: string): string
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @see https://webidl.spec.whatwg.org/#es-USVString
|
|
93
|
+
*/
|
|
94
|
+
USVString (V: unknown): string
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* @see https://webidl.spec.whatwg.org/#es-boolean
|
|
98
|
+
*/
|
|
99
|
+
boolean (V: unknown): boolean
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @see https://webidl.spec.whatwg.org/#es-any
|
|
103
|
+
*/
|
|
104
|
+
any <Value>(V: Value): Value
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* @see https://webidl.spec.whatwg.org/#es-long-long
|
|
108
|
+
*/
|
|
109
|
+
['long long'] (V: unknown): number
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long-long
|
|
113
|
+
*/
|
|
114
|
+
['unsigned long long'] (V: unknown): number
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-long
|
|
118
|
+
*/
|
|
119
|
+
['unsigned long'] (V: unknown): number
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @see https://webidl.spec.whatwg.org/#es-unsigned-short
|
|
123
|
+
*/
|
|
124
|
+
['unsigned short'] (V: unknown, opts?: ConvertToIntOpts): number
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @see https://webidl.spec.whatwg.org/#idl-ArrayBuffer
|
|
128
|
+
*/
|
|
129
|
+
ArrayBuffer (V: unknown): ArrayBufferLike
|
|
130
|
+
ArrayBuffer (V: unknown, opts: { allowShared: false }): ArrayBuffer
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
134
|
+
*/
|
|
135
|
+
TypedArray (
|
|
136
|
+
V: unknown,
|
|
137
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike
|
|
138
|
+
): NodeJS.TypedArray | ArrayBufferLike
|
|
139
|
+
TypedArray (
|
|
140
|
+
V: unknown,
|
|
141
|
+
TypedArray: NodeJS.TypedArray | ArrayBufferLike,
|
|
142
|
+
opts?: { allowShared: false }
|
|
143
|
+
): NodeJS.TypedArray | ArrayBuffer
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* @see https://webidl.spec.whatwg.org/#es-buffer-source-types
|
|
147
|
+
*/
|
|
148
|
+
DataView (V: unknown, opts?: { allowShared: boolean }): DataView
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* @see https://webidl.spec.whatwg.org/#BufferSource
|
|
152
|
+
*/
|
|
153
|
+
BufferSource (
|
|
154
|
+
V: unknown,
|
|
155
|
+
opts?: { allowShared: boolean }
|
|
156
|
+
): NodeJS.TypedArray | ArrayBufferLike | DataView
|
|
157
|
+
|
|
158
|
+
['sequence<ByteString>']: SequenceConverter<string>
|
|
159
|
+
|
|
160
|
+
['sequence<sequence<ByteString>>']: SequenceConverter<string[]>
|
|
161
|
+
|
|
162
|
+
['record<ByteString, ByteString>']: RecordConverter<string, string>
|
|
163
|
+
|
|
164
|
+
[Key: string]: (...args: any[]) => unknown
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export interface Webidl {
|
|
168
|
+
errors: WebidlErrors
|
|
169
|
+
util: WebidlUtil
|
|
170
|
+
converters: WebidlConverters
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* @description Performs a brand-check on {@param V} to ensure it is a
|
|
174
|
+
* {@param cls} object.
|
|
175
|
+
*/
|
|
176
|
+
brandCheck <Interface>(V: unknown, cls: Interface, opts?: { strict?: boolean }): asserts V is Interface
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* @see https://webidl.spec.whatwg.org/#es-sequence
|
|
180
|
+
* @description Convert a value, V, to a WebIDL sequence type.
|
|
181
|
+
*/
|
|
182
|
+
sequenceConverter <Type>(C: Converter<Type>): SequenceConverter<Type>
|
|
183
|
+
|
|
184
|
+
illegalConstructor (): never
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* @see https://webidl.spec.whatwg.org/#es-to-record
|
|
188
|
+
* @description Convert a value, V, to a WebIDL record type.
|
|
189
|
+
*/
|
|
190
|
+
recordConverter <K extends string, V>(
|
|
191
|
+
keyConverter: Converter<K>,
|
|
192
|
+
valueConverter: Converter<V>
|
|
193
|
+
): RecordConverter<K, V>
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Similar to {@link Webidl.brandCheck} but allows skipping the check if third party
|
|
197
|
+
* interfaces are allowed.
|
|
198
|
+
*/
|
|
199
|
+
interfaceConverter <Interface>(cls: Interface): (
|
|
200
|
+
V: unknown,
|
|
201
|
+
opts?: { strict: boolean }
|
|
202
|
+
) => asserts V is typeof cls
|
|
203
|
+
|
|
204
|
+
// TODO(@KhafraDev): a type could likely be implemented that can infer the return type
|
|
205
|
+
// from the converters given?
|
|
206
|
+
/**
|
|
207
|
+
* Converts a value, V, to a WebIDL dictionary types. Allows limiting which keys are
|
|
208
|
+
* allowed, values allowed, optional and required keys. Auto converts the value to
|
|
209
|
+
* a type given a converter.
|
|
210
|
+
*/
|
|
211
|
+
dictionaryConverter (converters: {
|
|
212
|
+
key: string,
|
|
213
|
+
defaultValue?: () => unknown,
|
|
214
|
+
required?: boolean,
|
|
215
|
+
converter: (...args: unknown[]) => unknown,
|
|
216
|
+
allowedValues?: unknown[]
|
|
217
|
+
}[]): (V: unknown) => Record<string, unknown>
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @see https://webidl.spec.whatwg.org/#idl-nullable-type
|
|
221
|
+
* @description allows a type, V, to be null
|
|
222
|
+
*/
|
|
223
|
+
nullableConverter <T>(
|
|
224
|
+
converter: Converter<T>
|
|
225
|
+
): (V: unknown) => ReturnType<typeof converter> | null
|
|
226
|
+
|
|
227
|
+
argumentLengthCheck (args: { length: number }, min: number, context: string): void
|
|
228
|
+
}
|