bereach 1.4.0 → 1.4.3
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 +101 -128
- package/esm/funcs/{linkedin-actions-accept-invitation.d.ts → actions-accept-invitation.d.ts} +2 -2
- package/esm/funcs/actions-accept-invitation.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-accept-invitation.js → actions-accept-invitation.js} +2 -2
- package/esm/funcs/{linkedin-actions-edit-post.js.map → actions-accept-invitation.js.map} +1 -1
- package/esm/funcs/{linked-in-actions-create-comment.d.ts → actions-create-comment.d.ts} +2 -2
- package/esm/funcs/actions-create-comment.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-create-comment.js → actions-create-comment.js} +2 -2
- package/esm/funcs/actions-create-comment.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-list-saved-posts.d.ts → actions-decline-invitation.d.ts} +4 -4
- package/esm/funcs/actions-decline-invitation.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-decline-invitation.js → actions-decline-invitation.js} +2 -2
- package/esm/funcs/{linked-in-actions-save-post.js.map → actions-decline-invitation.js.map} +1 -1
- package/esm/funcs/{linkedin-actions-edit-comment.d.ts → actions-edit-comment.d.ts} +2 -2
- package/esm/funcs/actions-edit-comment.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-edit-comment.js → actions-edit-comment.js} +2 -2
- package/esm/funcs/actions-edit-comment.js.map +1 -0
- package/esm/funcs/{linkedin-actions-edit-post.d.ts → actions-edit-post.d.ts} +2 -2
- package/esm/funcs/actions-edit-post.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-edit-post.js → actions-edit-post.js} +2 -2
- package/esm/funcs/{sales-navigator-search-search-companies.js.map → actions-edit-post.js.map} +1 -1
- package/esm/funcs/{linkedin-actions-follow-profile.d.ts → actions-follow-profile.d.ts} +2 -2
- package/esm/funcs/actions-follow-profile.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-follow-profile.js → actions-follow-profile.js} +2 -2
- package/esm/funcs/actions-follow-profile.js.map +1 -0
- package/esm/funcs/{linked-in-actions-like-comment.d.ts → actions-like-comment.d.ts} +2 -2
- package/esm/funcs/actions-like-comment.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-like-comment.js → actions-like-comment.js} +2 -2
- package/esm/funcs/actions-like-comment.js.map +1 -0
- package/esm/funcs/{linkedin-actions-like-post.d.ts → actions-like-post.d.ts} +2 -2
- package/esm/funcs/actions-like-post.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-like-post.js → actions-like-post.js} +2 -2
- package/esm/funcs/actions-like-post.js.map +1 -0
- package/esm/funcs/{linkedin-actions-list-invitations.d.ts → actions-list-invitations.d.ts} +2 -2
- package/esm/funcs/{linkedin-chat-list-inbox.d.ts.map → actions-list-invitations.d.ts.map} +1 -1
- package/esm/funcs/{linkedin-actions-list-invitations.js → actions-list-invitations.js} +2 -2
- package/esm/funcs/{linkedin-actions-unlike-comment.js.map → actions-list-invitations.js.map} +1 -1
- package/esm/funcs/{linked-in-actions-publish-post.d.ts → actions-publish-post.d.ts} +2 -2
- package/esm/funcs/actions-publish-post.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-publish-post.js → actions-publish-post.js} +2 -2
- package/esm/funcs/actions-publish-post.js.map +1 -0
- package/esm/funcs/{linkedin-actions-reply-to-comment.d.ts → actions-reply-to-comment.d.ts} +2 -2
- package/esm/funcs/{linked-in-chat-unarchive.d.ts.map → actions-reply-to-comment.d.ts.map} +1 -1
- package/esm/funcs/{linkedin-actions-reply-to-comment.js → actions-reply-to-comment.js} +2 -2
- 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/{linkedin-actions-repost-post.js → actions-repost-post.js} +2 -2
- package/esm/funcs/{linkedin-chat-react.js.map → actions-repost-post.js.map} +1 -1
- package/esm/funcs/{linked-in-actions-save-post.d.ts → actions-save-post.d.ts} +2 -2
- package/esm/funcs/actions-save-post.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-save-post.js → actions-save-post.js} +2 -2
- package/esm/funcs/actions-save-post.js.map +1 -0
- package/esm/funcs/{linkedin-chat-list-inbox.d.ts → actions-unfollow-company.d.ts} +4 -4
- package/esm/funcs/actions-unfollow-company.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-unfollow-company.js → actions-unfollow-company.js} +2 -2
- package/esm/funcs/actions-unfollow-company.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-likes.d.ts → actions-unfollow-profile.d.ts} +4 -4
- package/esm/funcs/actions-unfollow-profile.d.ts.map +1 -0
- package/esm/funcs/{linked-in-actions-unfollow-profile.js → actions-unfollow-profile.js} +2 -2
- package/esm/funcs/actions-unfollow-profile.js.map +1 -0
- package/esm/funcs/{linkedin-actions-unlike-comment.d.ts → actions-unlike-comment.d.ts} +2 -2
- package/esm/funcs/actions-unlike-comment.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-unlike-comment.js → actions-unlike-comment.js} +2 -2
- package/esm/funcs/actions-unlike-comment.js.map +1 -0
- package/esm/funcs/{linkedin-actions-unlike-post.d.ts → actions-unlike-post.d.ts} +2 -2
- package/esm/funcs/actions-unlike-post.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-unlike-post.js → actions-unlike-post.js} +2 -2
- package/esm/funcs/{linked-in-chat-star.js.map → actions-unlike-post.js.map} +1 -1
- package/esm/funcs/{linkedin-actions-unsave-post.d.ts → actions-unsave-post.d.ts} +2 -2
- package/esm/funcs/actions-unsave-post.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-unsave-post.js → actions-unsave-post.js} +2 -2
- package/esm/funcs/actions-unsave-post.js.map +1 -0
- package/esm/funcs/{linkedin-actions-withdraw-invitation.d.ts → actions-withdraw-invitation.d.ts} +2 -2
- package/esm/funcs/actions-withdraw-invitation.d.ts.map +1 -0
- package/esm/funcs/{linkedin-actions-withdraw-invitation.js → actions-withdraw-invitation.js} +2 -2
- package/esm/funcs/{linkedin-actions-repost-post.js.map → actions-withdraw-invitation.js.map} +1 -1
- package/esm/funcs/chat-list-inbox.d.ts +18 -0
- package/esm/funcs/chat-list-inbox.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-list-inbox.js → chat-list-inbox.js} +2 -2
- package/esm/funcs/chat-list-inbox.js.map +1 -0
- package/esm/funcs/{linkedin-chat-mark-all-read.d.ts → chat-mark-all-read.d.ts} +2 -2
- package/esm/funcs/chat-mark-all-read.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-mark-all-read.js → chat-mark-all-read.js} +2 -2
- package/esm/funcs/chat-mark-all-read.js.map +1 -0
- package/esm/funcs/{linked-in-chat-mark-seen.d.ts → chat-mark-seen.d.ts} +2 -2
- package/esm/funcs/chat-mark-seen.d.ts.map +1 -0
- package/esm/funcs/{linked-in-chat-mark-seen.js → chat-mark-seen.js} +2 -2
- package/esm/funcs/chat-mark-seen.js.map +1 -0
- package/esm/funcs/{linkedin-chat-react.d.ts → chat-react.d.ts} +2 -2
- package/esm/funcs/chat-react.d.ts.map +1 -0
- package/esm/funcs/{linkedin-chat-react.js → chat-react.js} +2 -2
- package/esm/funcs/{sales-navigator-search-search.js.map → chat-react.js.map} +1 -1
- package/esm/funcs/{linkedin-scrapers-collect-comments.d.ts → chat-send-typing-indicator.d.ts} +4 -4
- package/esm/funcs/{linkedin-actions-edit-post.d.ts.map → chat-send-typing-indicator.d.ts.map} +1 -1
- package/esm/funcs/{linkedin-chat-send-typing-indicator.js → chat-send-typing-indicator.js} +2 -2
- package/esm/funcs/chat-send-typing-indicator.js.map +1 -0
- package/esm/funcs/{linked-in-chat-star.d.ts → chat-star.d.ts} +2 -2
- package/esm/funcs/chat-star.d.ts.map +1 -0
- package/esm/funcs/{linked-in-chat-star.js → chat-star.js} +2 -2
- package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js.map → chat-star.js.map} +1 -1
- package/esm/funcs/{linked-in-chat-unarchive.d.ts → chat-unarchive.d.ts} +2 -2
- package/esm/funcs/chat-unarchive.d.ts.map +1 -0
- package/esm/funcs/{linked-in-chat-unarchive.js → chat-unarchive.js} +2 -2
- package/esm/funcs/chat-unarchive.js.map +1 -0
- package/esm/funcs/{linked-in-chat-unstar.d.ts → chat-unstar.d.ts} +2 -2
- package/esm/funcs/chat-unstar.d.ts.map +1 -0
- package/esm/funcs/{linked-in-chat-unstar.js → chat-unstar.js} +2 -2
- package/esm/funcs/{linked-in-search-search.js.map → chat-unstar.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-get-posts.js → company-pages-posts.js} +2 -2
- package/esm/funcs/company-pages-posts.js.map +1 -0
- package/esm/funcs/{linkedin-actions-repost-post.d.ts → profile-posts.d.ts} +4 -4
- package/esm/funcs/profile-posts.d.ts.map +1 -0
- package/esm/funcs/{profile-get-posts.js → profile-posts.js} +2 -2
- package/esm/funcs/profile-posts.js.map +1 -0
- package/esm/funcs/{profile-get-profile-views.d.ts → profile-views.d.ts} +2 -2
- package/esm/funcs/profile-views.d.ts.map +1 -0
- package/esm/funcs/{profile-get-profile-views.js → profile-views.js} +2 -2
- package/esm/funcs/profile-views.js.map +1 -0
- package/esm/funcs/{sales-navigator-search-search-companies.d.ts → sales-nav-companies.d.ts} +2 -2
- package/esm/funcs/sales-nav-companies.d.ts.map +1 -0
- package/esm/funcs/{sales-navigator-search-search-companies.js → sales-nav-companies.js} +2 -2
- package/esm/funcs/{linkedin-actions-unlike-post.js.map → sales-nav-companies.js.map} +1 -1
- package/esm/funcs/{sales-nav-search-people.d.ts → sales-nav-people.d.ts} +2 -2
- package/esm/funcs/sales-nav-people.d.ts.map +1 -0
- package/esm/funcs/{sales-nav-search-people.js → sales-nav-people.js} +2 -2
- package/esm/funcs/{linkedin-actions-reply-to-comment.js.map → sales-nav-people.js.map} +1 -1
- package/esm/funcs/{sales-navigator-search-search.d.ts → sales-nav-search.d.ts} +2 -2
- package/esm/funcs/sales-nav-search.d.ts.map +1 -0
- package/esm/funcs/{sales-navigator-search-search.js → sales-nav-search.js} +2 -2
- package/esm/funcs/sales-nav-search.js.map +1 -0
- package/esm/funcs/{linked-in-scrapers-collect-comment-replies.d.ts → scrapers-collect-comment-replies.d.ts} +2 -2
- package/esm/funcs/{linked-in-actions-create-comment.d.ts.map → scrapers-collect-comment-replies.d.ts.map} +1 -1
- package/esm/funcs/{linked-in-scrapers-collect-comment-replies.js → scrapers-collect-comment-replies.js} +2 -2
- package/esm/funcs/{linked-in-scrapers-get-feed.js.map → scrapers-collect-comment-replies.js.map} +1 -1
- package/esm/funcs/scrapers-collect-comments.d.ts +18 -0
- package/esm/funcs/scrapers-collect-comments.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-comments.js → scrapers-collect-comments.js} +2 -2
- package/esm/funcs/{linkedin-actions-like-post.js.map → scrapers-collect-comments.js.map} +1 -1
- package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.d.ts → scrapers-collect-hashtag-posts.d.ts} +2 -2
- package/esm/funcs/{linked-in-actions-like-comment.d.ts.map → scrapers-collect-hashtag-posts.d.ts.map} +1 -1
- package/esm/funcs/{linkedin-scrapers-collect-hashtag-posts.js → scrapers-collect-hashtag-posts.js} +2 -2
- package/esm/funcs/{linked-in-search-search-companies.js.map → scrapers-collect-hashtag-posts.js.map} +1 -1
- package/esm/funcs/scrapers-collect-likes.d.ts +18 -0
- package/esm/funcs/scrapers-collect-likes.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-collect-likes.js → scrapers-collect-likes.js} +2 -2
- package/esm/funcs/scrapers-collect-likes.js.map +1 -0
- package/esm/funcs/{linked-in-scrapers-get-feed.d.ts → scrapers-get-feed.d.ts} +2 -2
- package/esm/funcs/scrapers-get-feed.d.ts.map +1 -0
- package/esm/funcs/{linked-in-scrapers-get-feed.js → scrapers-get-feed.js} +2 -2
- package/esm/funcs/{profile-get-posts.js.map → scrapers-get-feed.js.map} +1 -1
- package/esm/funcs/{company-pages-get-posts.d.ts → scrapers-list-saved-posts.d.ts} +4 -4
- package/esm/funcs/scrapers-list-saved-posts.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-list-saved-posts.js → scrapers-list-saved-posts.js} +2 -2
- package/esm/funcs/scrapers-list-saved-posts.js.map +1 -0
- package/esm/funcs/{linkedin-scrapers-visit-company.d.ts → scrapers-visit-company.d.ts} +2 -2
- package/esm/funcs/scrapers-visit-company.d.ts.map +1 -0
- package/esm/funcs/{linkedin-scrapers-visit-company.js → scrapers-visit-company.js} +2 -2
- package/esm/funcs/scrapers-visit-company.js.map +1 -0
- package/esm/funcs/{linkedin-search-search-by-url.d.ts → search-by-url.d.ts} +2 -2
- package/esm/funcs/search-by-url.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-search-by-url.js → search-by-url.js} +2 -2
- package/esm/funcs/search-by-url.js.map +1 -0
- package/esm/funcs/{linked-in-search-search-companies.d.ts → search-companies.d.ts} +2 -2
- package/esm/funcs/search-companies.d.ts.map +1 -0
- package/esm/funcs/{linked-in-search-search-companies.js → search-companies.js} +2 -2
- package/esm/funcs/search-companies.js.map +1 -0
- package/esm/funcs/{linkedin-search-search-jobs.d.ts → search-jobs.d.ts} +2 -2
- package/esm/funcs/search-jobs.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-search-jobs.js → search-jobs.js} +2 -2
- package/esm/funcs/search-jobs.js.map +1 -0
- package/esm/funcs/{linkedin-search-search-people.d.ts → search-people.d.ts} +2 -2
- package/esm/funcs/search-people.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-search-people.js → search-people.js} +2 -2
- package/esm/funcs/search-people.js.map +1 -0
- package/esm/funcs/{linkedin-search-search-posts.d.ts → search-posts.d.ts} +2 -2
- package/esm/funcs/search-posts.d.ts.map +1 -0
- package/esm/funcs/{linkedin-search-search-posts.js → search-posts.js} +2 -2
- package/esm/funcs/search-posts.js.map +1 -0
- package/esm/funcs/{linked-in-search-search.d.ts → search-search.d.ts} +2 -2
- package/esm/funcs/search-search.d.ts.map +1 -0
- package/esm/funcs/{linked-in-search-search.js → search-search.js} +2 -2
- package/esm/funcs/{linkedin-actions-follow-profile.js.map → search-search.js.map} +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/models/operations/index.d.ts +1 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +1 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/{search-people-response.d.ts → search-companies-response.d.ts} +906 -889
- package/esm/models/operations/search-companies-response.d.ts.map +1 -0
- package/esm/models/operations/{search-people-response.js → search-companies-response.js} +615 -604
- package/esm/models/operations/search-companies-response.js.map +1 -0
- package/esm/models/operations/search-contacts-campaign.d.ts +188 -180
- package/esm/models/operations/search-contacts-campaign.d.ts.map +1 -1
- package/esm/models/operations/search-contacts-campaign.js +104 -102
- package/esm/models/operations/search-contacts-campaign.js.map +1 -1
- package/esm/models/operations/update-account-response.d.ts +638 -634
- package/esm/models/operations/update-account-response.d.ts.map +1 -1
- package/esm/models/operations/update-account-response.js +308 -307
- package/esm/models/operations/update-account-response.js.map +1 -1
- package/esm/models/operations/update-schedule-response.d.ts +111 -61
- package/esm/models/operations/update-schedule-response.d.ts.map +1 -1
- package/esm/models/operations/update-schedule-response.js +37 -32
- package/esm/models/operations/update-schedule-response.js.map +1 -1
- package/esm/sdk/actions.d.ts +133 -0
- package/esm/sdk/actions.d.ts.map +1 -1
- package/esm/sdk/actions.js +190 -0
- package/esm/sdk/actions.js.map +1 -1
- package/esm/sdk/chat.d.ts +56 -0
- package/esm/sdk/chat.d.ts.map +1 -1
- package/esm/sdk/chat.js +80 -0
- package/esm/sdk/chat.js.map +1 -1
- package/esm/sdk/company-pages.d.ts +1 -1
- 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 +12 -12
- package/esm/sdk/contacts.d.ts.map +1 -1
- package/esm/sdk/contacts.js +16 -16
- package/esm/sdk/contacts.js.map +1 -1
- package/esm/sdk/profile.d.ts +2 -2
- package/esm/sdk/profile.d.ts.map +1 -1
- package/esm/sdk/profile.js +6 -6
- 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/scrapers.d.ts +49 -0
- package/esm/sdk/scrapers.d.ts.map +1 -1
- package/esm/sdk/scrapers.js +70 -0
- package/esm/sdk/scrapers.js.map +1 -1
- package/esm/sdk/sdk.d.ts +0 -27
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +0 -45
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/search.d.ts +383 -0
- package/esm/sdk/search.d.ts.map +1 -1
- package/esm/sdk/search.js +401 -0
- package/esm/sdk/search.js.map +1 -1
- package/examples/{linkedinScrapersCollectLikes.example.ts → scrapersCollectLikes.example.ts} +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{linkedin-actions-accept-invitation.ts → actions-accept-invitation.ts} +1 -1
- package/src/funcs/{linked-in-actions-create-comment.ts → actions-create-comment.ts} +1 -1
- package/src/funcs/{linked-in-actions-decline-invitation.ts → actions-decline-invitation.ts} +1 -1
- package/src/funcs/{linkedin-actions-edit-comment.ts → actions-edit-comment.ts} +1 -1
- package/src/funcs/{linkedin-actions-edit-post.ts → actions-edit-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-follow-profile.ts → actions-follow-profile.ts} +1 -1
- package/src/funcs/{linked-in-actions-like-comment.ts → actions-like-comment.ts} +1 -1
- package/src/funcs/{linkedin-actions-like-post.ts → actions-like-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-list-invitations.ts → actions-list-invitations.ts} +1 -1
- package/src/funcs/{linked-in-actions-publish-post.ts → actions-publish-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-reply-to-comment.ts → actions-reply-to-comment.ts} +1 -1
- package/src/funcs/{linkedin-actions-repost-post.ts → actions-repost-post.ts} +1 -1
- package/src/funcs/{linked-in-actions-save-post.ts → actions-save-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-unfollow-company.ts → actions-unfollow-company.ts} +1 -1
- package/src/funcs/{linked-in-actions-unfollow-profile.ts → actions-unfollow-profile.ts} +1 -1
- package/src/funcs/{linkedin-actions-unlike-comment.ts → actions-unlike-comment.ts} +1 -1
- package/src/funcs/{linkedin-actions-unlike-post.ts → actions-unlike-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-unsave-post.ts → actions-unsave-post.ts} +1 -1
- package/src/funcs/{linkedin-actions-withdraw-invitation.ts → actions-withdraw-invitation.ts} +1 -1
- package/src/funcs/{linkedin-chat-list-inbox.ts → chat-list-inbox.ts} +1 -1
- package/src/funcs/{linkedin-chat-mark-all-read.ts → chat-mark-all-read.ts} +1 -1
- package/src/funcs/{linked-in-chat-mark-seen.ts → chat-mark-seen.ts} +1 -1
- package/src/funcs/{linkedin-chat-react.ts → chat-react.ts} +1 -1
- package/src/funcs/{linkedin-chat-send-typing-indicator.ts → chat-send-typing-indicator.ts} +1 -1
- package/src/funcs/{linked-in-chat-star.ts → chat-star.ts} +1 -1
- package/src/funcs/{linked-in-chat-unarchive.ts → chat-unarchive.ts} +1 -1
- package/src/funcs/{linked-in-chat-unstar.ts → chat-unstar.ts} +1 -1
- package/src/funcs/{company-pages-get-posts.ts → company-pages-posts.ts} +1 -1
- package/src/funcs/{profile-get-posts.ts → profile-posts.ts} +1 -1
- package/src/funcs/{profile-get-profile-views.ts → profile-views.ts} +1 -1
- package/src/funcs/{sales-navigator-search-search-companies.ts → sales-nav-companies.ts} +1 -1
- package/src/funcs/{sales-nav-search-people.ts → sales-nav-people.ts} +1 -1
- package/src/funcs/{sales-navigator-search-search.ts → sales-nav-search.ts} +1 -1
- package/src/funcs/{linked-in-scrapers-collect-comment-replies.ts → scrapers-collect-comment-replies.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-collect-comments.ts → scrapers-collect-comments.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-collect-hashtag-posts.ts → scrapers-collect-hashtag-posts.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-collect-likes.ts → scrapers-collect-likes.ts} +1 -1
- package/src/funcs/{linked-in-scrapers-get-feed.ts → scrapers-get-feed.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-list-saved-posts.ts → scrapers-list-saved-posts.ts} +1 -1
- package/src/funcs/{linkedin-scrapers-visit-company.ts → scrapers-visit-company.ts} +1 -1
- package/src/funcs/{linkedin-search-search-by-url.ts → search-by-url.ts} +1 -1
- package/src/funcs/{linked-in-search-search-companies.ts → search-companies.ts} +1 -1
- package/src/funcs/{linkedin-search-search-jobs.ts → search-jobs.ts} +1 -1
- package/src/funcs/{linkedin-search-search-people.ts → search-people.ts} +1 -1
- package/src/funcs/{linkedin-search-search-posts.ts → search-posts.ts} +1 -1
- package/src/funcs/{linked-in-search-search.ts → search-search.ts} +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/{search-people-response.ts → search-companies-response.ts} +1919 -1910
- package/src/models/operations/search-contacts-campaign.ts +376 -366
- package/src/models/operations/update-account-response.ts +1156 -1151
- package/src/models/operations/update-schedule-response.ts +180 -125
- package/src/sdk/actions.ts +342 -0
- package/src/sdk/chat.ts +144 -0
- package/src/sdk/company-pages.ts +3 -3
- package/src/sdk/contacts.ts +24 -24
- package/src/sdk/profile.ts +6 -6
- package/src/sdk/sales-nav.ts +75 -3
- package/src/sdk/scrapers.ts +126 -0
- package/src/sdk/sdk.ts +0 -56
- package/src/sdk/search.ts +449 -0
- package/esm/funcs/company-pages-get-posts.d.ts.map +0 -1
- package/esm/funcs/company-pages-get-posts.js.map +0 -1
- 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.map +0 -1
- package/esm/funcs/linked-in-actions-like-comment.js.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.d.ts.map +0 -1
- package/esm/funcs/linked-in-actions-publish-post.js.map +0 -1
- package/esm/funcs/linked-in-actions-save-post.d.ts.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.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-mark-seen.js.map +0 -1
- package/esm/funcs/linked-in-chat-star.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unarchive.js.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.d.ts.map +0 -1
- package/esm/funcs/linked-in-chat-unstar.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.d.ts.map +0 -1
- package/esm/funcs/linked-in-scrapers-collect-comment-replies.js.map +0 -1
- package/esm/funcs/linked-in-scrapers-get-feed.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/linked-in-search-search.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-accept-invitation.js.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-edit-comment.js.map +0 -1
- package/esm/funcs/linkedin-actions-follow-profile.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-like-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-list-invitations.js.map +0 -1
- package/esm/funcs/linkedin-actions-reply-to-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-repost-post.d.ts.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.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-comment.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unlike-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-unsave-post.js.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.d.ts.map +0 -1
- package/esm/funcs/linkedin-actions-withdraw-invitation.js.map +0 -1
- package/esm/funcs/linkedin-chat-list-inbox.js.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.d.ts.map +0 -1
- package/esm/funcs/linkedin-chat-mark-all-read.js.map +0 -1
- package/esm/funcs/linkedin-chat-react.d.ts.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.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-comments.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-hashtag-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-collect-likes.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-list-saved-posts.js.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.d.ts.map +0 -1
- package/esm/funcs/linkedin-scrapers-visit-company.js.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-by-url.js.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-jobs.js.map +0 -1
- package/esm/funcs/linkedin-search-search-people.d.ts.map +0 -1
- package/esm/funcs/linkedin-search-search-people.js.map +0 -1
- package/esm/funcs/linkedin-search-search-posts.d.ts.map +0 -1
- 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-profile-views.d.ts.map +0 -1
- package/esm/funcs/profile-get-profile-views.js.map +0 -1
- package/esm/funcs/sales-nav-search-people.d.ts.map +0 -1
- package/esm/funcs/sales-nav-search-people.js.map +0 -1
- package/esm/funcs/sales-navigator-search-search-companies.d.ts.map +0 -1
- package/esm/funcs/sales-navigator-search-search.d.ts.map +0 -1
- package/esm/models/operations/search-people-response.d.ts.map +0 -1
- package/esm/models/operations/search-people-response.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 -33
- package/esm/sdk/linked-in-chat-2.d.ts.map +0 -1
- package/esm/sdk/linked-in-chat-2.js +0 -48
- 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 -113
- package/esm/sdk/linked-in-search-1.d.ts.map +0 -1
- package/esm/sdk/linked-in-search-1.js +0 -122
- 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 -33
- package/esm/sdk/linkedin-chat-1.d.ts.map +0 -1
- package/esm/sdk/linkedin-chat-1.js +0 -48
- 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/src/sdk/linked-in-actions-2.ts +0 -117
- package/src/sdk/linked-in-chat-2.ts +0 -81
- package/src/sdk/linked-in-scrapers-2.ts +0 -45
- package/src/sdk/linked-in-search-1.ts +0 -139
- package/src/sdk/linkedin-actions-1.ts +0 -243
- package/src/sdk/linkedin-chat-1.ts +0 -81
- 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
|
@@ -15,48 +15,9 @@ export const CollectLikesType = {
|
|
|
15
15
|
export const CollectCommentsType = {
|
|
16
16
|
Comment: "comment",
|
|
17
17
|
};
|
|
18
|
-
/**
|
|
19
|
-
* Type of media attached to the post.
|
|
20
|
-
*/
|
|
21
|
-
export const ListSavedPostsType = {
|
|
22
|
-
Image: "image",
|
|
23
|
-
Video: "video",
|
|
24
|
-
Document: "document",
|
|
25
|
-
Article: "article",
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Type of media attached to the post.
|
|
29
|
-
*/
|
|
30
|
-
export const CollectHashtagPostsType = {
|
|
31
|
-
Image: "image",
|
|
32
|
-
Video: "video",
|
|
33
|
-
Document: "document",
|
|
34
|
-
Article: "article",
|
|
35
|
-
};
|
|
36
18
|
export const CollectCommentRepliesType = {
|
|
37
19
|
Comment: "comment",
|
|
38
20
|
};
|
|
39
|
-
/**
|
|
40
|
-
* Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
|
|
41
|
-
*/
|
|
42
|
-
export const SortOrder = {
|
|
43
|
-
Relevance: "RELEVANCE",
|
|
44
|
-
RevChron: "REV_CHRON",
|
|
45
|
-
};
|
|
46
|
-
export const GetFeedType = {
|
|
47
|
-
Activity: "activity",
|
|
48
|
-
UgcPost: "ugcPost",
|
|
49
|
-
Share: "share",
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Type of media attached to the post.
|
|
53
|
-
*/
|
|
54
|
-
export const GetFeedMediaType = {
|
|
55
|
-
Image: "image",
|
|
56
|
-
Video: "video",
|
|
57
|
-
Document: "document",
|
|
58
|
-
Article: "article",
|
|
59
|
-
};
|
|
60
21
|
export const CollectPostsType = {
|
|
61
22
|
Activity: "activity",
|
|
62
23
|
UgcPost: "ugcPost",
|
|
@@ -114,6 +75,45 @@ export const ResultStatus = {
|
|
|
114
75
|
Skipped: "skipped",
|
|
115
76
|
Pending: "pending",
|
|
116
77
|
};
|
|
78
|
+
/**
|
|
79
|
+
* Type of media attached to the post.
|
|
80
|
+
*/
|
|
81
|
+
export const ListSavedPostsType = {
|
|
82
|
+
Image: "image",
|
|
83
|
+
Video: "video",
|
|
84
|
+
Document: "document",
|
|
85
|
+
Article: "article",
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Sort order: RELEVANCE (default, algorithmic) or REV_CHRON (most recent first)
|
|
89
|
+
*/
|
|
90
|
+
export const SortOrder = {
|
|
91
|
+
Relevance: "RELEVANCE",
|
|
92
|
+
RevChron: "REV_CHRON",
|
|
93
|
+
};
|
|
94
|
+
export const GetFeedType = {
|
|
95
|
+
Activity: "activity",
|
|
96
|
+
UgcPost: "ugcPost",
|
|
97
|
+
Share: "share",
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Type of media attached to the post.
|
|
101
|
+
*/
|
|
102
|
+
export const GetFeedMediaType = {
|
|
103
|
+
Image: "image",
|
|
104
|
+
Video: "video",
|
|
105
|
+
Document: "document",
|
|
106
|
+
Article: "article",
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* Type of media attached to the post.
|
|
110
|
+
*/
|
|
111
|
+
export const CollectHashtagPostsType = {
|
|
112
|
+
Image: "image",
|
|
113
|
+
Video: "video",
|
|
114
|
+
Document: "document",
|
|
115
|
+
Article: "article",
|
|
116
|
+
};
|
|
117
117
|
/**
|
|
118
118
|
* Type of search to perform (required unless url is provided)
|
|
119
119
|
*/
|
|
@@ -126,14 +126,14 @@ export const SearchCategoryRequest = {
|
|
|
126
126
|
/**
|
|
127
127
|
* Sort order (posts & jobs)
|
|
128
128
|
*/
|
|
129
|
-
export const
|
|
129
|
+
export const SortBy = {
|
|
130
130
|
Relevance: "relevance",
|
|
131
131
|
Date: "date",
|
|
132
132
|
};
|
|
133
133
|
/**
|
|
134
134
|
* Time filter (posts & jobs)
|
|
135
135
|
*/
|
|
136
|
-
export const
|
|
136
|
+
export const DatePosted = {
|
|
137
137
|
Past24h: "past-24h",
|
|
138
138
|
PastWeek: "past-week",
|
|
139
139
|
PastMonth: "past-month",
|
|
@@ -141,17 +141,17 @@ export const SearchDatePosted = {
|
|
|
141
141
|
/**
|
|
142
142
|
* Media type filter (posts only)
|
|
143
143
|
*/
|
|
144
|
-
export const
|
|
144
|
+
export const ContentType = {
|
|
145
145
|
Images: "images",
|
|
146
146
|
Videos: "videos",
|
|
147
147
|
Documents: "documents",
|
|
148
148
|
};
|
|
149
|
-
export const
|
|
149
|
+
export const ConnectionDegree = {
|
|
150
150
|
F: "F",
|
|
151
151
|
S: "S",
|
|
152
152
|
O: "O",
|
|
153
153
|
};
|
|
154
|
-
export const
|
|
154
|
+
export const CompanySize = {
|
|
155
155
|
A: "A",
|
|
156
156
|
B: "B",
|
|
157
157
|
C: "C",
|
|
@@ -162,7 +162,7 @@ export const SearchCompanySize = {
|
|
|
162
162
|
H: "H",
|
|
163
163
|
I: "I",
|
|
164
164
|
};
|
|
165
|
-
export const
|
|
165
|
+
export const JobType = {
|
|
166
166
|
F: "F",
|
|
167
167
|
P: "P",
|
|
168
168
|
C: "C",
|
|
@@ -171,7 +171,7 @@ export const SearchJobType = {
|
|
|
171
171
|
V: "V",
|
|
172
172
|
O: "O",
|
|
173
173
|
};
|
|
174
|
-
export const
|
|
174
|
+
export const ExperienceLevel = {
|
|
175
175
|
One: "1",
|
|
176
176
|
Two: "2",
|
|
177
177
|
Three: "3",
|
|
@@ -179,7 +179,7 @@ export const SearchExperienceLevel = {
|
|
|
179
179
|
Five: "5",
|
|
180
180
|
Six: "6",
|
|
181
181
|
};
|
|
182
|
-
export const
|
|
182
|
+
export const WorkplaceType = {
|
|
183
183
|
One: "1",
|
|
184
184
|
Two: "2",
|
|
185
185
|
Three: "3",
|
|
@@ -190,50 +190,33 @@ export const SearchCategoryResponseBody = {
|
|
|
190
190
|
Companies: "companies",
|
|
191
191
|
Jobs: "jobs",
|
|
192
192
|
};
|
|
193
|
-
export const
|
|
193
|
+
export const ItemsTypeJob = {
|
|
194
194
|
Job: "JOB",
|
|
195
195
|
};
|
|
196
|
-
export const
|
|
196
|
+
export const ItemsTypeCompany = {
|
|
197
197
|
Company: "COMPANY",
|
|
198
198
|
};
|
|
199
|
-
export const
|
|
199
|
+
export const ItemsTypePeople = {
|
|
200
200
|
People: "PEOPLE",
|
|
201
201
|
};
|
|
202
|
-
export const
|
|
202
|
+
export const ItemsNetworkDistance = {
|
|
203
203
|
Distance1: "DISTANCE_1",
|
|
204
204
|
Distance2: "DISTANCE_2",
|
|
205
205
|
Distance3: "DISTANCE_3",
|
|
206
206
|
OutOfNetwork: "OUT_OF_NETWORK",
|
|
207
207
|
};
|
|
208
|
-
export const
|
|
208
|
+
export const ItemsTypePost = {
|
|
209
209
|
Post: "POST",
|
|
210
210
|
};
|
|
211
211
|
/**
|
|
212
212
|
* Type of media attached to the post.
|
|
213
213
|
*/
|
|
214
|
-
export const
|
|
214
|
+
export const ItemsMediaType = {
|
|
215
215
|
Image: "image",
|
|
216
216
|
Video: "video",
|
|
217
217
|
Document: "document",
|
|
218
218
|
Article: "article",
|
|
219
219
|
};
|
|
220
|
-
export const SearchCompaniesCompanySize = {
|
|
221
|
-
A: "A",
|
|
222
|
-
B: "B",
|
|
223
|
-
C: "C",
|
|
224
|
-
D: "D",
|
|
225
|
-
E: "E",
|
|
226
|
-
F: "F",
|
|
227
|
-
G: "G",
|
|
228
|
-
H: "H",
|
|
229
|
-
I: "I",
|
|
230
|
-
};
|
|
231
|
-
export const SearchCompaniesCategory = {
|
|
232
|
-
Companies: "companies",
|
|
233
|
-
};
|
|
234
|
-
export const SearchCompaniesType = {
|
|
235
|
-
Company: "COMPANY",
|
|
236
|
-
};
|
|
237
220
|
/**
|
|
238
221
|
* Sort order. 'relevance' (default) returns the most relevant posts. 'date' returns the most recent posts first.
|
|
239
222
|
*/
|
|
@@ -289,6 +272,23 @@ export const SearchPeopleNetworkDistance = {
|
|
|
289
272
|
Distance3: "DISTANCE_3",
|
|
290
273
|
OutOfNetwork: "OUT_OF_NETWORK",
|
|
291
274
|
};
|
|
275
|
+
export const SearchCompaniesCompanySize = {
|
|
276
|
+
A: "A",
|
|
277
|
+
B: "B",
|
|
278
|
+
C: "C",
|
|
279
|
+
D: "D",
|
|
280
|
+
E: "E",
|
|
281
|
+
F: "F",
|
|
282
|
+
G: "G",
|
|
283
|
+
H: "H",
|
|
284
|
+
I: "I",
|
|
285
|
+
};
|
|
286
|
+
export const SearchCompaniesCategory = {
|
|
287
|
+
Companies: "companies",
|
|
288
|
+
};
|
|
289
|
+
export const SearchCompaniesType = {
|
|
290
|
+
Company: "COMPANY",
|
|
291
|
+
};
|
|
292
292
|
/** @internal */
|
|
293
293
|
export const CollectLikesRequest$outboundSchema = z.object({
|
|
294
294
|
postUrl: z.string(),
|
|
@@ -582,389 +582,113 @@ export function collectCommentsResponseFromJSON(jsonString) {
|
|
|
582
582
|
return safeParse(jsonString, (x) => CollectCommentsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectCommentsResponse' from JSON`);
|
|
583
583
|
}
|
|
584
584
|
/** @internal */
|
|
585
|
-
export const
|
|
586
|
-
|
|
587
|
-
|
|
585
|
+
export const CollectCommentRepliesRequest$outboundSchema = z.object({
|
|
586
|
+
commentUrn: z.string(),
|
|
587
|
+
start: z.optional(z.int()),
|
|
588
|
+
count: z.optional(z.int()),
|
|
588
589
|
});
|
|
589
|
-
export function
|
|
590
|
-
return JSON.stringify(
|
|
590
|
+
export function collectCommentRepliesRequestToJSON(collectCommentRepliesRequest) {
|
|
591
|
+
return JSON.stringify(CollectCommentRepliesRequest$outboundSchema.parse(collectCommentRepliesRequest));
|
|
591
592
|
}
|
|
592
593
|
/** @internal */
|
|
593
|
-
export const
|
|
594
|
-
start: types.number(),
|
|
595
|
-
end: types.nullable(types.number()),
|
|
596
|
-
});
|
|
597
|
-
export function employeeCountRangeFromJSON(jsonString) {
|
|
598
|
-
return safeParse(jsonString, (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmployeeCountRange' from JSON`);
|
|
599
|
-
}
|
|
594
|
+
export const CollectCommentRepliesType$inboundSchema = z.enum(CollectCommentRepliesType);
|
|
600
595
|
/** @internal */
|
|
601
|
-
export const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
line2: types.nullable(types.string()),
|
|
596
|
+
export const CollectCommentRepliesActionsCompleted$inboundSchema = z.object({
|
|
597
|
+
message: types.boolean(),
|
|
598
|
+
reply: types.boolean(),
|
|
599
|
+
like: types.boolean(),
|
|
600
|
+
visit: types.boolean(),
|
|
601
|
+
connect: types.boolean(),
|
|
608
602
|
});
|
|
609
|
-
export function
|
|
610
|
-
return safeParse(jsonString, (x) =>
|
|
603
|
+
export function collectCommentRepliesActionsCompletedFromJSON(jsonString) {
|
|
604
|
+
return safeParse(jsonString, (x) => CollectCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectCommentRepliesActionsCompleted' from JSON`);
|
|
611
605
|
}
|
|
612
606
|
/** @internal */
|
|
613
|
-
export const
|
|
614
|
-
|
|
607
|
+
export const Reply$inboundSchema = z.object({
|
|
608
|
+
name: types.string(),
|
|
609
|
+
headline: types.nullable(types.string()),
|
|
610
|
+
profileUrl: types.nullable(types.string()),
|
|
611
|
+
imageUrl: types.nullable(types.string()),
|
|
612
|
+
publicIdentifier: types.nullable(types.string()),
|
|
613
|
+
profileUrn: types.nullable(types.string()),
|
|
614
|
+
type: CollectCommentRepliesType$inboundSchema,
|
|
615
|
+
commentText: types.optional(types.string()),
|
|
616
|
+
timestamp: types.nullable(types.number()),
|
|
617
|
+
isEdited: types.optional(types.boolean()),
|
|
618
|
+
commentUrn: types.optional(types.string()),
|
|
619
|
+
commentHash: types.optional(types.string()),
|
|
620
|
+
isPostAuthor: types.optional(types.boolean()),
|
|
621
|
+
repliesCount: types.optional(types.number()),
|
|
622
|
+
hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
|
|
623
|
+
parentCommentUrn: types.optional(types.string()),
|
|
624
|
+
postUrn: types.optional(types.string()),
|
|
625
|
+
postHash: types.optional(types.string()),
|
|
626
|
+
actionsCompleted: types.optional(z.lazy(() => CollectCommentRepliesActionsCompleted$inboundSchema)),
|
|
627
|
+
knownDistance: types.nullable(types.number()),
|
|
615
628
|
});
|
|
616
|
-
export function
|
|
617
|
-
return safeParse(jsonString, (x) =>
|
|
629
|
+
export function replyFromJSON(jsonString) {
|
|
630
|
+
return safeParse(jsonString, (x) => Reply$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Reply' from JSON`);
|
|
618
631
|
}
|
|
619
632
|
/** @internal */
|
|
620
|
-
export const
|
|
621
|
-
|
|
622
|
-
|
|
633
|
+
export const CollectCommentRepliesResponse$inboundSchema = z.object({
|
|
634
|
+
success: types.literal(true),
|
|
635
|
+
replies: z.array(z.lazy(() => Reply$inboundSchema)),
|
|
636
|
+
count: types.number(),
|
|
637
|
+
total: types.number(),
|
|
638
|
+
start: types.number(),
|
|
639
|
+
hasMore: types.boolean(),
|
|
640
|
+
parentCommentUrn: types.string(),
|
|
641
|
+
previousTotal: types.nullable(types.number()),
|
|
642
|
+
creditsUsed: types.number(),
|
|
643
|
+
retryAfter: types.number(),
|
|
623
644
|
});
|
|
624
|
-
export function
|
|
625
|
-
return safeParse(jsonString, (x) =>
|
|
645
|
+
export function collectCommentRepliesResponseFromJSON(jsonString) {
|
|
646
|
+
return safeParse(jsonString, (x) => CollectCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectCommentRepliesResponse' from JSON`);
|
|
626
647
|
}
|
|
627
648
|
/** @internal */
|
|
628
|
-
export const
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
followerCount: types.nullable(types.number()),
|
|
635
|
-
industry: types.nullable(types.string()),
|
|
649
|
+
export const CollectPostsRequest$outboundSchema = z.object({
|
|
650
|
+
profileUrl: z.string(),
|
|
651
|
+
count: z.optional(z.int()),
|
|
652
|
+
start: z.optional(z.int()),
|
|
653
|
+
paginationToken: z.optional(z.string()),
|
|
654
|
+
returnReposts: z._default(z.boolean(), false),
|
|
636
655
|
});
|
|
637
|
-
export function
|
|
638
|
-
return
|
|
656
|
+
export function collectPostsRequestToJSON(collectPostsRequest) {
|
|
657
|
+
return JSON.stringify(CollectPostsRequest$outboundSchema.parse(collectPostsRequest));
|
|
639
658
|
}
|
|
640
659
|
/** @internal */
|
|
641
|
-
export const
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
660
|
+
export const CollectPostsType$inboundSchema = openEnums.inboundSchema(CollectPostsType);
|
|
661
|
+
/** @internal */
|
|
662
|
+
export const CollectPostsMediaType$inboundSchema = openEnums.inboundSchema(CollectPostsMediaType);
|
|
663
|
+
/** @internal */
|
|
664
|
+
export const CollectPostsMedia$inboundSchema = z.object({
|
|
665
|
+
type: CollectPostsMediaType$inboundSchema,
|
|
666
|
+
urls: z.array(types.string()),
|
|
667
|
+
title: types.optional(types.string()),
|
|
668
|
+
thumbnailUrl: types.optional(types.string()),
|
|
649
669
|
});
|
|
650
|
-
export function
|
|
651
|
-
return safeParse(jsonString, (x) =>
|
|
670
|
+
export function collectPostsMediaFromJSON(jsonString) {
|
|
671
|
+
return safeParse(jsonString, (x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsMedia' from JSON`);
|
|
652
672
|
}
|
|
653
673
|
/** @internal */
|
|
654
|
-
export const
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
674
|
+
export const CollectPostsPost$inboundSchema = z.object({
|
|
675
|
+
postUrl: types.string(),
|
|
676
|
+
text: types.string(),
|
|
677
|
+
date: types.number(),
|
|
678
|
+
likesCount: types.number(),
|
|
679
|
+
commentsCount: types.number(),
|
|
680
|
+
sharesCount: types.number(),
|
|
681
|
+
postUrn: types.string(),
|
|
682
|
+
postId: types.string(),
|
|
683
|
+
type: CollectPostsType$inboundSchema,
|
|
684
|
+
isRepost: types.optional(types.boolean()),
|
|
685
|
+
media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
|
|
659
686
|
});
|
|
660
|
-
export function
|
|
661
|
-
return safeParse(jsonString, (x) =>
|
|
687
|
+
export function collectPostsPostFromJSON(jsonString) {
|
|
688
|
+
return safeParse(jsonString, (x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsPost' from JSON`);
|
|
662
689
|
}
|
|
663
690
|
/** @internal */
|
|
664
|
-
export const
|
|
665
|
-
success: types.literal(true),
|
|
666
|
-
id: types.string(),
|
|
667
|
-
universalName: types.string(),
|
|
668
|
-
name: types.string(),
|
|
669
|
-
description: types.nullable(types.string()),
|
|
670
|
-
url: types.string(),
|
|
671
|
-
websiteUrl: types.nullable(types.string()),
|
|
672
|
-
industry: types.nullable(types.string()),
|
|
673
|
-
employeeCount: types.nullable(types.number()),
|
|
674
|
-
employeeCountRange: types.nullable(z.lazy(() => EmployeeCountRange$inboundSchema)),
|
|
675
|
-
headquarter: types.nullable(z.lazy(() => VisitCompanyHeadquarter$inboundSchema)),
|
|
676
|
-
logoUrl: types.nullable(types.string()),
|
|
677
|
-
coverImageUrl: types.nullable(types.string()),
|
|
678
|
-
followerCount: types.nullable(types.number()),
|
|
679
|
-
specialities: z.array(types.string()),
|
|
680
|
-
tagline: types.nullable(types.string()),
|
|
681
|
-
isVerified: types.boolean(),
|
|
682
|
-
foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
|
|
683
|
-
phone: types.nullable(types.string()),
|
|
684
|
-
callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
|
|
685
|
-
hashtags: z.array(types.string()),
|
|
686
|
-
affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
|
|
687
|
-
similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
|
|
688
|
-
workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
|
|
689
|
-
creditsUsed: types.number(),
|
|
690
|
-
retryAfter: types.number(),
|
|
691
|
-
});
|
|
692
|
-
export function visitCompanyResponseFromJSON(jsonString) {
|
|
693
|
-
return safeParse(jsonString, (x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyResponse' from JSON`);
|
|
694
|
-
}
|
|
695
|
-
/** @internal */
|
|
696
|
-
export const ListSavedPostsRequest$outboundSchema = z.object({
|
|
697
|
-
start: z._default(z.int(), 0),
|
|
698
|
-
count: z._default(z.int(), 20),
|
|
699
|
-
});
|
|
700
|
-
export function listSavedPostsRequestToJSON(listSavedPostsRequest) {
|
|
701
|
-
return JSON.stringify(ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest));
|
|
702
|
-
}
|
|
703
|
-
/** @internal */
|
|
704
|
-
export const ListSavedPostsAuthor$inboundSchema = z.object({
|
|
705
|
-
name: types.string(),
|
|
706
|
-
profileUrl: types.nullable(types.string()),
|
|
707
|
-
publicIdentifier: types.nullable(types.string()),
|
|
708
|
-
profileUrn: types.nullable(types.string()),
|
|
709
|
-
});
|
|
710
|
-
export function listSavedPostsAuthorFromJSON(jsonString) {
|
|
711
|
-
return safeParse(jsonString, (x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsAuthor' from JSON`);
|
|
712
|
-
}
|
|
713
|
-
/** @internal */
|
|
714
|
-
export const ListSavedPostsType$inboundSchema = openEnums.inboundSchema(ListSavedPostsType);
|
|
715
|
-
/** @internal */
|
|
716
|
-
export const ListSavedPostsMedia$inboundSchema = z.object({
|
|
717
|
-
type: ListSavedPostsType$inboundSchema,
|
|
718
|
-
urls: z.array(types.string()),
|
|
719
|
-
title: types.optional(types.string()),
|
|
720
|
-
thumbnailUrl: types.optional(types.string()),
|
|
721
|
-
});
|
|
722
|
-
export function listSavedPostsMediaFromJSON(jsonString) {
|
|
723
|
-
return safeParse(jsonString, (x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsMedia' from JSON`);
|
|
724
|
-
}
|
|
725
|
-
/** @internal */
|
|
726
|
-
export const ListSavedPostsPost$inboundSchema = z.object({
|
|
727
|
-
postUrl: types.string(),
|
|
728
|
-
postUrn: types.string(),
|
|
729
|
-
postId: types.string(),
|
|
730
|
-
text: types.string(),
|
|
731
|
-
date: types.number(),
|
|
732
|
-
likesCount: types.number(),
|
|
733
|
-
commentsCount: types.number(),
|
|
734
|
-
sharesCount: types.number(),
|
|
735
|
-
author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
|
|
736
|
-
media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
|
|
737
|
-
});
|
|
738
|
-
export function listSavedPostsPostFromJSON(jsonString) {
|
|
739
|
-
return safeParse(jsonString, (x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsPost' from JSON`);
|
|
740
|
-
}
|
|
741
|
-
/** @internal */
|
|
742
|
-
export const ListSavedPostsResponse$inboundSchema = z.object({
|
|
743
|
-
success: types.literal(true),
|
|
744
|
-
posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
|
|
745
|
-
total: types.nullable(types.number()),
|
|
746
|
-
hasMore: types.boolean(),
|
|
747
|
-
creditsUsed: types.number(),
|
|
748
|
-
retryAfter: types.number(),
|
|
749
|
-
});
|
|
750
|
-
export function listSavedPostsResponseFromJSON(jsonString) {
|
|
751
|
-
return safeParse(jsonString, (x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsResponse' from JSON`);
|
|
752
|
-
}
|
|
753
|
-
/** @internal */
|
|
754
|
-
export const CollectHashtagPostsRequest$outboundSchema = z.object({
|
|
755
|
-
hashtag: z.string(),
|
|
756
|
-
start: z._default(z.int(), 0),
|
|
757
|
-
count: z._default(z.int(), 20),
|
|
758
|
-
});
|
|
759
|
-
export function collectHashtagPostsRequestToJSON(collectHashtagPostsRequest) {
|
|
760
|
-
return JSON.stringify(CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest));
|
|
761
|
-
}
|
|
762
|
-
/** @internal */
|
|
763
|
-
export const CollectHashtagPostsAuthor$inboundSchema = z.object({
|
|
764
|
-
name: types.string(),
|
|
765
|
-
profileUrl: types.nullable(types.string()),
|
|
766
|
-
publicIdentifier: types.nullable(types.string()),
|
|
767
|
-
profileUrn: types.nullable(types.string()),
|
|
768
|
-
});
|
|
769
|
-
export function collectHashtagPostsAuthorFromJSON(jsonString) {
|
|
770
|
-
return safeParse(jsonString, (x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsAuthor' from JSON`);
|
|
771
|
-
}
|
|
772
|
-
/** @internal */
|
|
773
|
-
export const CollectHashtagPostsType$inboundSchema = openEnums.inboundSchema(CollectHashtagPostsType);
|
|
774
|
-
/** @internal */
|
|
775
|
-
export const CollectHashtagPostsMedia$inboundSchema = z.object({
|
|
776
|
-
type: CollectHashtagPostsType$inboundSchema,
|
|
777
|
-
urls: z.array(types.string()),
|
|
778
|
-
title: types.optional(types.string()),
|
|
779
|
-
thumbnailUrl: types.optional(types.string()),
|
|
780
|
-
});
|
|
781
|
-
export function collectHashtagPostsMediaFromJSON(jsonString) {
|
|
782
|
-
return safeParse(jsonString, (x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsMedia' from JSON`);
|
|
783
|
-
}
|
|
784
|
-
/** @internal */
|
|
785
|
-
export const CollectHashtagPostsPost$inboundSchema = z.object({
|
|
786
|
-
postUrl: types.string(),
|
|
787
|
-
postUrn: types.string(),
|
|
788
|
-
text: types.string(),
|
|
789
|
-
date: types.number(),
|
|
790
|
-
likesCount: types.number(),
|
|
791
|
-
commentsCount: types.number(),
|
|
792
|
-
sharesCount: types.number(),
|
|
793
|
-
author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
|
|
794
|
-
media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
|
|
795
|
-
});
|
|
796
|
-
export function collectHashtagPostsPostFromJSON(jsonString) {
|
|
797
|
-
return safeParse(jsonString, (x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsPost' from JSON`);
|
|
798
|
-
}
|
|
799
|
-
/** @internal */
|
|
800
|
-
export const CollectHashtagPostsResponse$inboundSchema = z.object({
|
|
801
|
-
success: types.literal(true),
|
|
802
|
-
posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
|
|
803
|
-
total: types.number(),
|
|
804
|
-
hasMore: types.boolean(),
|
|
805
|
-
creditsUsed: types.number(),
|
|
806
|
-
retryAfter: types.number(),
|
|
807
|
-
});
|
|
808
|
-
export function collectHashtagPostsResponseFromJSON(jsonString) {
|
|
809
|
-
return safeParse(jsonString, (x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsResponse' from JSON`);
|
|
810
|
-
}
|
|
811
|
-
/** @internal */
|
|
812
|
-
export const CollectCommentRepliesRequest$outboundSchema = z.object({
|
|
813
|
-
commentUrn: z.string(),
|
|
814
|
-
start: z.optional(z.int()),
|
|
815
|
-
count: z.optional(z.int()),
|
|
816
|
-
});
|
|
817
|
-
export function collectCommentRepliesRequestToJSON(collectCommentRepliesRequest) {
|
|
818
|
-
return JSON.stringify(CollectCommentRepliesRequest$outboundSchema.parse(collectCommentRepliesRequest));
|
|
819
|
-
}
|
|
820
|
-
/** @internal */
|
|
821
|
-
export const CollectCommentRepliesType$inboundSchema = z.enum(CollectCommentRepliesType);
|
|
822
|
-
/** @internal */
|
|
823
|
-
export const CollectCommentRepliesActionsCompleted$inboundSchema = z.object({
|
|
824
|
-
message: types.boolean(),
|
|
825
|
-
reply: types.boolean(),
|
|
826
|
-
like: types.boolean(),
|
|
827
|
-
visit: types.boolean(),
|
|
828
|
-
connect: types.boolean(),
|
|
829
|
-
});
|
|
830
|
-
export function collectCommentRepliesActionsCompletedFromJSON(jsonString) {
|
|
831
|
-
return safeParse(jsonString, (x) => CollectCommentRepliesActionsCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectCommentRepliesActionsCompleted' from JSON`);
|
|
832
|
-
}
|
|
833
|
-
/** @internal */
|
|
834
|
-
export const Reply$inboundSchema = z.object({
|
|
835
|
-
name: types.string(),
|
|
836
|
-
headline: types.nullable(types.string()),
|
|
837
|
-
profileUrl: types.nullable(types.string()),
|
|
838
|
-
imageUrl: types.nullable(types.string()),
|
|
839
|
-
publicIdentifier: types.nullable(types.string()),
|
|
840
|
-
profileUrn: types.nullable(types.string()),
|
|
841
|
-
type: CollectCommentRepliesType$inboundSchema,
|
|
842
|
-
commentText: types.optional(types.string()),
|
|
843
|
-
timestamp: types.nullable(types.number()),
|
|
844
|
-
isEdited: types.optional(types.boolean()),
|
|
845
|
-
commentUrn: types.optional(types.string()),
|
|
846
|
-
commentHash: types.optional(types.string()),
|
|
847
|
-
isPostAuthor: types.optional(types.boolean()),
|
|
848
|
-
repliesCount: types.optional(types.number()),
|
|
849
|
-
hasReplyFromPostAuthor: z.optional(z.nullable(types.boolean())),
|
|
850
|
-
parentCommentUrn: types.optional(types.string()),
|
|
851
|
-
postUrn: types.optional(types.string()),
|
|
852
|
-
postHash: types.optional(types.string()),
|
|
853
|
-
actionsCompleted: types.optional(z.lazy(() => CollectCommentRepliesActionsCompleted$inboundSchema)),
|
|
854
|
-
knownDistance: types.nullable(types.number()),
|
|
855
|
-
});
|
|
856
|
-
export function replyFromJSON(jsonString) {
|
|
857
|
-
return safeParse(jsonString, (x) => Reply$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Reply' from JSON`);
|
|
858
|
-
}
|
|
859
|
-
/** @internal */
|
|
860
|
-
export const CollectCommentRepliesResponse$inboundSchema = z.object({
|
|
861
|
-
success: types.literal(true),
|
|
862
|
-
replies: z.array(z.lazy(() => Reply$inboundSchema)),
|
|
863
|
-
count: types.number(),
|
|
864
|
-
total: types.number(),
|
|
865
|
-
start: types.number(),
|
|
866
|
-
hasMore: types.boolean(),
|
|
867
|
-
parentCommentUrn: types.string(),
|
|
868
|
-
previousTotal: types.nullable(types.number()),
|
|
869
|
-
creditsUsed: types.number(),
|
|
870
|
-
retryAfter: types.number(),
|
|
871
|
-
});
|
|
872
|
-
export function collectCommentRepliesResponseFromJSON(jsonString) {
|
|
873
|
-
return safeParse(jsonString, (x) => CollectCommentRepliesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectCommentRepliesResponse' from JSON`);
|
|
874
|
-
}
|
|
875
|
-
/** @internal */
|
|
876
|
-
export const SortOrder$outboundSchema = z.enum(SortOrder);
|
|
877
|
-
/** @internal */
|
|
878
|
-
export const GetFeedRequest$outboundSchema = z.object({
|
|
879
|
-
count: z._default(z.int(), 20),
|
|
880
|
-
sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
|
|
881
|
-
});
|
|
882
|
-
export function getFeedRequestToJSON(getFeedRequest) {
|
|
883
|
-
return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
|
|
884
|
-
}
|
|
885
|
-
/** @internal */
|
|
886
|
-
export const GetFeedType$inboundSchema = openEnums.inboundSchema(GetFeedType);
|
|
887
|
-
/** @internal */
|
|
888
|
-
export const GetFeedMediaType$inboundSchema = openEnums.inboundSchema(GetFeedMediaType);
|
|
889
|
-
/** @internal */
|
|
890
|
-
export const GetFeedMedia$inboundSchema = z.object({
|
|
891
|
-
type: GetFeedMediaType$inboundSchema,
|
|
892
|
-
urls: z.array(types.string()),
|
|
893
|
-
title: types.optional(types.string()),
|
|
894
|
-
thumbnailUrl: types.optional(types.string()),
|
|
895
|
-
});
|
|
896
|
-
export function getFeedMediaFromJSON(jsonString) {
|
|
897
|
-
return safeParse(jsonString, (x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedMedia' from JSON`);
|
|
898
|
-
}
|
|
899
|
-
/** @internal */
|
|
900
|
-
export const GetFeedPost$inboundSchema = z
|
|
901
|
-
.object({
|
|
902
|
-
postUrl: types.string(),
|
|
903
|
-
text: types.string(),
|
|
904
|
-
date: types.number(),
|
|
905
|
-
likesCount: types.number(),
|
|
906
|
-
commentsCount: types.number(),
|
|
907
|
-
sharesCount: types.number(),
|
|
908
|
-
postUrn: types.string(),
|
|
909
|
-
postId: types.string(),
|
|
910
|
-
type: GetFeedType$inboundSchema,
|
|
911
|
-
media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
|
|
912
|
-
});
|
|
913
|
-
export function getFeedPostFromJSON(jsonString) {
|
|
914
|
-
return safeParse(jsonString, (x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedPost' from JSON`);
|
|
915
|
-
}
|
|
916
|
-
/** @internal */
|
|
917
|
-
export const GetFeedResponse$inboundSchema = z.object({
|
|
918
|
-
success: types.literal(true),
|
|
919
|
-
posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
|
|
920
|
-
creditsUsed: types.number(),
|
|
921
|
-
retryAfter: types.number(),
|
|
922
|
-
});
|
|
923
|
-
export function getFeedResponseFromJSON(jsonString) {
|
|
924
|
-
return safeParse(jsonString, (x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedResponse' from JSON`);
|
|
925
|
-
}
|
|
926
|
-
/** @internal */
|
|
927
|
-
export const CollectPostsRequest$outboundSchema = z.object({
|
|
928
|
-
profileUrl: z.string(),
|
|
929
|
-
count: z.optional(z.int()),
|
|
930
|
-
start: z.optional(z.int()),
|
|
931
|
-
paginationToken: z.optional(z.string()),
|
|
932
|
-
});
|
|
933
|
-
export function collectPostsRequestToJSON(collectPostsRequest) {
|
|
934
|
-
return JSON.stringify(CollectPostsRequest$outboundSchema.parse(collectPostsRequest));
|
|
935
|
-
}
|
|
936
|
-
/** @internal */
|
|
937
|
-
export const CollectPostsType$inboundSchema = openEnums.inboundSchema(CollectPostsType);
|
|
938
|
-
/** @internal */
|
|
939
|
-
export const CollectPostsMediaType$inboundSchema = openEnums.inboundSchema(CollectPostsMediaType);
|
|
940
|
-
/** @internal */
|
|
941
|
-
export const CollectPostsMedia$inboundSchema = z.object({
|
|
942
|
-
type: CollectPostsMediaType$inboundSchema,
|
|
943
|
-
urls: z.array(types.string()),
|
|
944
|
-
title: types.optional(types.string()),
|
|
945
|
-
thumbnailUrl: types.optional(types.string()),
|
|
946
|
-
});
|
|
947
|
-
export function collectPostsMediaFromJSON(jsonString) {
|
|
948
|
-
return safeParse(jsonString, (x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsMedia' from JSON`);
|
|
949
|
-
}
|
|
950
|
-
/** @internal */
|
|
951
|
-
export const CollectPostsPost$inboundSchema = z.object({
|
|
952
|
-
postUrl: types.string(),
|
|
953
|
-
text: types.string(),
|
|
954
|
-
date: types.number(),
|
|
955
|
-
likesCount: types.number(),
|
|
956
|
-
commentsCount: types.number(),
|
|
957
|
-
sharesCount: types.number(),
|
|
958
|
-
postUrn: types.string(),
|
|
959
|
-
postId: types.string(),
|
|
960
|
-
type: CollectPostsType$inboundSchema,
|
|
961
|
-
media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
|
|
962
|
-
});
|
|
963
|
-
export function collectPostsPostFromJSON(jsonString) {
|
|
964
|
-
return safeParse(jsonString, (x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsPost' from JSON`);
|
|
965
|
-
}
|
|
966
|
-
/** @internal */
|
|
967
|
-
export const CollectPostsResponse$inboundSchema = z.object({
|
|
691
|
+
export const CollectPostsResponse$inboundSchema = z.object({
|
|
968
692
|
success: types.literal(true),
|
|
969
693
|
posts: z.array(z.lazy(() => CollectPostsPost$inboundSchema)),
|
|
970
694
|
count: types.number(),
|
|
@@ -1078,6 +802,7 @@ export const VisitProfileLastPost$inboundSchema = z.object({
|
|
|
1078
802
|
postUrn: types.string(),
|
|
1079
803
|
postId: types.string(),
|
|
1080
804
|
type: VisitProfileLastPostType$inboundSchema,
|
|
805
|
+
isRepost: types.optional(types.boolean()),
|
|
1081
806
|
media: types.optional(z.lazy(() => VisitProfileMedia$inboundSchema)),
|
|
1082
807
|
});
|
|
1083
808
|
export function visitProfileLastPostFromJSON(jsonString) {
|
|
@@ -1130,108 +855,389 @@ export const VisitProfileResponse$inboundSchema = z.object({
|
|
|
1130
855
|
creditsUsed: types.number(),
|
|
1131
856
|
retryAfter: types.number(),
|
|
1132
857
|
});
|
|
1133
|
-
export function visitProfileResponseFromJSON(jsonString) {
|
|
1134
|
-
return safeParse(jsonString, (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitProfileResponse' from JSON`);
|
|
858
|
+
export function visitProfileResponseFromJSON(jsonString) {
|
|
859
|
+
return safeParse(jsonString, (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitProfileResponse' from JSON`);
|
|
860
|
+
}
|
|
861
|
+
/** @internal */
|
|
862
|
+
export const BulkVisitProfileRequest$outboundSchema = z.object({
|
|
863
|
+
profiles: z.array(z.string()),
|
|
864
|
+
campaignSlug: z.optional(z.string()),
|
|
865
|
+
includePosts: z.optional(z.boolean()),
|
|
866
|
+
includeComments: z.optional(z.boolean()),
|
|
867
|
+
includeAbout: z.optional(z.boolean()),
|
|
868
|
+
});
|
|
869
|
+
export function bulkVisitProfileRequestToJSON(bulkVisitProfileRequest) {
|
|
870
|
+
return JSON.stringify(BulkVisitProfileRequest$outboundSchema.parse(bulkVisitProfileRequest));
|
|
871
|
+
}
|
|
872
|
+
/** @internal */
|
|
873
|
+
export const BulkVisitProfileResponse$inboundSchema = z.object({
|
|
874
|
+
accepted: types.literal(true),
|
|
875
|
+
batchId: types.string(),
|
|
876
|
+
profileCount: types.number(),
|
|
877
|
+
alreadyCached: types.number(),
|
|
878
|
+
willVisit: types.number(),
|
|
879
|
+
estimatedMinutes: types.number(),
|
|
880
|
+
});
|
|
881
|
+
export function bulkVisitProfileResponseFromJSON(jsonString) {
|
|
882
|
+
return safeParse(jsonString, (x) => BulkVisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkVisitProfileResponse' from JSON`);
|
|
883
|
+
}
|
|
884
|
+
/** @internal */
|
|
885
|
+
export const BulkVisitBatchStatusRequest$outboundSchema = z.object({
|
|
886
|
+
batchId: z.string(),
|
|
887
|
+
});
|
|
888
|
+
export function bulkVisitBatchStatusRequestToJSON(bulkVisitBatchStatusRequest) {
|
|
889
|
+
return JSON.stringify(BulkVisitBatchStatusRequest$outboundSchema.parse(bulkVisitBatchStatusRequest));
|
|
890
|
+
}
|
|
891
|
+
/** @internal */
|
|
892
|
+
export const BulkVisitBatchStatusStatus$inboundSchema = openEnums.inboundSchema(BulkVisitBatchStatusStatus);
|
|
893
|
+
/** @internal */
|
|
894
|
+
export const Progress$inboundSchema = z
|
|
895
|
+
.object({
|
|
896
|
+
total: types.number(),
|
|
897
|
+
visited: types.number(),
|
|
898
|
+
cached: types.number(),
|
|
899
|
+
failed: types.number(),
|
|
900
|
+
skipped: types.number(),
|
|
901
|
+
pending: types.number(),
|
|
902
|
+
});
|
|
903
|
+
export function progressFromJSON(jsonString) {
|
|
904
|
+
return safeParse(jsonString, (x) => Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
|
|
905
|
+
}
|
|
906
|
+
/** @internal */
|
|
907
|
+
export const ResultStatus$inboundSchema = openEnums.inboundSchema(ResultStatus);
|
|
908
|
+
/** @internal */
|
|
909
|
+
export const Result$inboundSchema = z.object({
|
|
910
|
+
profile: types.string(),
|
|
911
|
+
status: ResultStatus$inboundSchema,
|
|
912
|
+
contactId: z.optional(z.nullable(types.string())),
|
|
913
|
+
error: z.optional(z.nullable(types.string())),
|
|
914
|
+
});
|
|
915
|
+
export function resultFromJSON(jsonString) {
|
|
916
|
+
return safeParse(jsonString, (x) => Result$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Result' from JSON`);
|
|
917
|
+
}
|
|
918
|
+
/** @internal */
|
|
919
|
+
export const BulkVisitBatchStatusResponse$inboundSchema = z.object({
|
|
920
|
+
batchId: types.string(),
|
|
921
|
+
status: BulkVisitBatchStatusStatus$inboundSchema,
|
|
922
|
+
progress: z.lazy(() => Progress$inboundSchema),
|
|
923
|
+
creditsUsed: types.number(),
|
|
924
|
+
failureReason: z.optional(z.nullable(types.string())),
|
|
925
|
+
results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
|
|
926
|
+
});
|
|
927
|
+
export function bulkVisitBatchStatusResponseFromJSON(jsonString) {
|
|
928
|
+
return safeParse(jsonString, (x) => BulkVisitBatchStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkVisitBatchStatusResponse' from JSON`);
|
|
929
|
+
}
|
|
930
|
+
/** @internal */
|
|
931
|
+
export const VisitCompanyRequest$outboundSchema = z.object({
|
|
932
|
+
companyUrl: z.string(),
|
|
933
|
+
includeWorkplacePolicy: z.optional(z.boolean()),
|
|
934
|
+
});
|
|
935
|
+
export function visitCompanyRequestToJSON(visitCompanyRequest) {
|
|
936
|
+
return JSON.stringify(VisitCompanyRequest$outboundSchema.parse(visitCompanyRequest));
|
|
937
|
+
}
|
|
938
|
+
/** @internal */
|
|
939
|
+
export const EmployeeCountRange$inboundSchema = z.object({
|
|
940
|
+
start: types.number(),
|
|
941
|
+
end: types.nullable(types.number()),
|
|
942
|
+
});
|
|
943
|
+
export function employeeCountRangeFromJSON(jsonString) {
|
|
944
|
+
return safeParse(jsonString, (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmployeeCountRange' from JSON`);
|
|
945
|
+
}
|
|
946
|
+
/** @internal */
|
|
947
|
+
export const VisitCompanyHeadquarter$inboundSchema = z.object({
|
|
948
|
+
country: types.nullable(types.string()),
|
|
949
|
+
geographicArea: types.nullable(types.string()),
|
|
950
|
+
city: types.nullable(types.string()),
|
|
951
|
+
postalCode: types.nullable(types.string()),
|
|
952
|
+
line1: types.nullable(types.string()),
|
|
953
|
+
line2: types.nullable(types.string()),
|
|
954
|
+
});
|
|
955
|
+
export function visitCompanyHeadquarterFromJSON(jsonString) {
|
|
956
|
+
return safeParse(jsonString, (x) => VisitCompanyHeadquarter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyHeadquarter' from JSON`);
|
|
957
|
+
}
|
|
958
|
+
/** @internal */
|
|
959
|
+
export const VisitCompanyFoundedOn$inboundSchema = z.object({
|
|
960
|
+
year: types.number(),
|
|
961
|
+
});
|
|
962
|
+
export function visitCompanyFoundedOnFromJSON(jsonString) {
|
|
963
|
+
return safeParse(jsonString, (x) => VisitCompanyFoundedOn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyFoundedOn' from JSON`);
|
|
964
|
+
}
|
|
965
|
+
/** @internal */
|
|
966
|
+
export const CallToAction$inboundSchema = z.object({
|
|
967
|
+
type: types.string(),
|
|
968
|
+
url: types.string(),
|
|
969
|
+
});
|
|
970
|
+
export function callToActionFromJSON(jsonString) {
|
|
971
|
+
return safeParse(jsonString, (x) => CallToAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CallToAction' from JSON`);
|
|
972
|
+
}
|
|
973
|
+
/** @internal */
|
|
974
|
+
export const AffiliatedCompany$inboundSchema = z.object({
|
|
975
|
+
id: types.string(),
|
|
976
|
+
universalName: types.string(),
|
|
977
|
+
name: types.string(),
|
|
978
|
+
url: types.nullable(types.string()),
|
|
979
|
+
logoUrl: types.nullable(types.string()),
|
|
980
|
+
followerCount: types.nullable(types.number()),
|
|
981
|
+
industry: types.nullable(types.string()),
|
|
982
|
+
});
|
|
983
|
+
export function affiliatedCompanyFromJSON(jsonString) {
|
|
984
|
+
return safeParse(jsonString, (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AffiliatedCompany' from JSON`);
|
|
985
|
+
}
|
|
986
|
+
/** @internal */
|
|
987
|
+
export const SimilarCompany$inboundSchema = z.object({
|
|
988
|
+
id: types.string(),
|
|
989
|
+
universalName: types.string(),
|
|
990
|
+
name: types.string(),
|
|
991
|
+
url: types.nullable(types.string()),
|
|
992
|
+
logoUrl: types.nullable(types.string()),
|
|
993
|
+
followerCount: types.nullable(types.number()),
|
|
994
|
+
industry: types.nullable(types.string()),
|
|
995
|
+
});
|
|
996
|
+
export function similarCompanyFromJSON(jsonString) {
|
|
997
|
+
return safeParse(jsonString, (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimilarCompany' from JSON`);
|
|
998
|
+
}
|
|
999
|
+
/** @internal */
|
|
1000
|
+
export const WorkplacePolicy$inboundSchema = z.object({
|
|
1001
|
+
title: types.nullable(types.string()),
|
|
1002
|
+
description: types.nullable(types.string()),
|
|
1003
|
+
timeAtOnsite: types.nullable(types.string()),
|
|
1004
|
+
benefits: z.array(types.string()),
|
|
1005
|
+
});
|
|
1006
|
+
export function workplacePolicyFromJSON(jsonString) {
|
|
1007
|
+
return safeParse(jsonString, (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkplacePolicy' from JSON`);
|
|
1008
|
+
}
|
|
1009
|
+
/** @internal */
|
|
1010
|
+
export const VisitCompanyResponse$inboundSchema = z.object({
|
|
1011
|
+
success: types.literal(true),
|
|
1012
|
+
id: types.string(),
|
|
1013
|
+
universalName: types.string(),
|
|
1014
|
+
name: types.string(),
|
|
1015
|
+
description: types.nullable(types.string()),
|
|
1016
|
+
url: types.string(),
|
|
1017
|
+
websiteUrl: types.nullable(types.string()),
|
|
1018
|
+
industry: types.nullable(types.string()),
|
|
1019
|
+
employeeCount: types.nullable(types.number()),
|
|
1020
|
+
employeeCountRange: types.nullable(z.lazy(() => EmployeeCountRange$inboundSchema)),
|
|
1021
|
+
headquarter: types.nullable(z.lazy(() => VisitCompanyHeadquarter$inboundSchema)),
|
|
1022
|
+
logoUrl: types.nullable(types.string()),
|
|
1023
|
+
coverImageUrl: types.nullable(types.string()),
|
|
1024
|
+
followerCount: types.nullable(types.number()),
|
|
1025
|
+
specialities: z.array(types.string()),
|
|
1026
|
+
tagline: types.nullable(types.string()),
|
|
1027
|
+
isVerified: types.boolean(),
|
|
1028
|
+
foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
|
|
1029
|
+
phone: types.nullable(types.string()),
|
|
1030
|
+
callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
|
|
1031
|
+
hashtags: z.array(types.string()),
|
|
1032
|
+
affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
|
|
1033
|
+
similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
|
|
1034
|
+
workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
|
|
1035
|
+
creditsUsed: types.number(),
|
|
1036
|
+
retryAfter: types.number(),
|
|
1037
|
+
});
|
|
1038
|
+
export function visitCompanyResponseFromJSON(jsonString) {
|
|
1039
|
+
return safeParse(jsonString, (x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyResponse' from JSON`);
|
|
1040
|
+
}
|
|
1041
|
+
/** @internal */
|
|
1042
|
+
export const ListSavedPostsRequest$outboundSchema = z.object({
|
|
1043
|
+
start: z._default(z.int(), 0),
|
|
1044
|
+
count: z._default(z.int(), 20),
|
|
1045
|
+
});
|
|
1046
|
+
export function listSavedPostsRequestToJSON(listSavedPostsRequest) {
|
|
1047
|
+
return JSON.stringify(ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest));
|
|
1048
|
+
}
|
|
1049
|
+
/** @internal */
|
|
1050
|
+
export const ListSavedPostsAuthor$inboundSchema = z.object({
|
|
1051
|
+
name: types.string(),
|
|
1052
|
+
profileUrl: types.nullable(types.string()),
|
|
1053
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1054
|
+
profileUrn: types.nullable(types.string()),
|
|
1055
|
+
});
|
|
1056
|
+
export function listSavedPostsAuthorFromJSON(jsonString) {
|
|
1057
|
+
return safeParse(jsonString, (x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsAuthor' from JSON`);
|
|
1058
|
+
}
|
|
1059
|
+
/** @internal */
|
|
1060
|
+
export const ListSavedPostsType$inboundSchema = openEnums.inboundSchema(ListSavedPostsType);
|
|
1061
|
+
/** @internal */
|
|
1062
|
+
export const ListSavedPostsMedia$inboundSchema = z.object({
|
|
1063
|
+
type: ListSavedPostsType$inboundSchema,
|
|
1064
|
+
urls: z.array(types.string()),
|
|
1065
|
+
title: types.optional(types.string()),
|
|
1066
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1067
|
+
});
|
|
1068
|
+
export function listSavedPostsMediaFromJSON(jsonString) {
|
|
1069
|
+
return safeParse(jsonString, (x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsMedia' from JSON`);
|
|
1070
|
+
}
|
|
1071
|
+
/** @internal */
|
|
1072
|
+
export const ListSavedPostsPost$inboundSchema = z.object({
|
|
1073
|
+
postUrl: types.string(),
|
|
1074
|
+
postUrn: types.string(),
|
|
1075
|
+
postId: types.string(),
|
|
1076
|
+
text: types.string(),
|
|
1077
|
+
date: types.number(),
|
|
1078
|
+
likesCount: types.number(),
|
|
1079
|
+
commentsCount: types.number(),
|
|
1080
|
+
sharesCount: types.number(),
|
|
1081
|
+
author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
|
|
1082
|
+
media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
|
|
1083
|
+
});
|
|
1084
|
+
export function listSavedPostsPostFromJSON(jsonString) {
|
|
1085
|
+
return safeParse(jsonString, (x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsPost' from JSON`);
|
|
1086
|
+
}
|
|
1087
|
+
/** @internal */
|
|
1088
|
+
export const ListSavedPostsResponse$inboundSchema = z.object({
|
|
1089
|
+
success: types.literal(true),
|
|
1090
|
+
posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
|
|
1091
|
+
total: types.nullable(types.number()),
|
|
1092
|
+
hasMore: types.boolean(),
|
|
1093
|
+
creditsUsed: types.number(),
|
|
1094
|
+
retryAfter: types.number(),
|
|
1095
|
+
});
|
|
1096
|
+
export function listSavedPostsResponseFromJSON(jsonString) {
|
|
1097
|
+
return safeParse(jsonString, (x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsResponse' from JSON`);
|
|
1135
1098
|
}
|
|
1136
1099
|
/** @internal */
|
|
1137
|
-
export const
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
includeAbout: z.optional(z.boolean()),
|
|
1100
|
+
export const SortOrder$outboundSchema = z.enum(SortOrder);
|
|
1101
|
+
/** @internal */
|
|
1102
|
+
export const GetFeedRequest$outboundSchema = z.object({
|
|
1103
|
+
count: z._default(z.int(), 20),
|
|
1104
|
+
sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
|
|
1143
1105
|
});
|
|
1144
|
-
export function
|
|
1145
|
-
return JSON.stringify(
|
|
1106
|
+
export function getFeedRequestToJSON(getFeedRequest) {
|
|
1107
|
+
return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
|
|
1146
1108
|
}
|
|
1147
1109
|
/** @internal */
|
|
1148
|
-
export const
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1110
|
+
export const GetFeedType$inboundSchema = openEnums.inboundSchema(GetFeedType);
|
|
1111
|
+
/** @internal */
|
|
1112
|
+
export const GetFeedMediaType$inboundSchema = openEnums.inboundSchema(GetFeedMediaType);
|
|
1113
|
+
/** @internal */
|
|
1114
|
+
export const GetFeedMedia$inboundSchema = z.object({
|
|
1115
|
+
type: GetFeedMediaType$inboundSchema,
|
|
1116
|
+
urls: z.array(types.string()),
|
|
1117
|
+
title: types.optional(types.string()),
|
|
1118
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1155
1119
|
});
|
|
1156
|
-
export function
|
|
1157
|
-
return safeParse(jsonString, (x) =>
|
|
1120
|
+
export function getFeedMediaFromJSON(jsonString) {
|
|
1121
|
+
return safeParse(jsonString, (x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedMedia' from JSON`);
|
|
1158
1122
|
}
|
|
1159
1123
|
/** @internal */
|
|
1160
|
-
export const
|
|
1161
|
-
|
|
1124
|
+
export const GetFeedPost$inboundSchema = z
|
|
1125
|
+
.object({
|
|
1126
|
+
postUrl: types.string(),
|
|
1127
|
+
text: types.string(),
|
|
1128
|
+
date: types.number(),
|
|
1129
|
+
likesCount: types.number(),
|
|
1130
|
+
commentsCount: types.number(),
|
|
1131
|
+
sharesCount: types.number(),
|
|
1132
|
+
postUrn: types.string(),
|
|
1133
|
+
postId: types.string(),
|
|
1134
|
+
type: GetFeedType$inboundSchema,
|
|
1135
|
+
isRepost: types.optional(types.boolean()),
|
|
1136
|
+
media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
|
|
1162
1137
|
});
|
|
1163
|
-
export function
|
|
1164
|
-
return
|
|
1138
|
+
export function getFeedPostFromJSON(jsonString) {
|
|
1139
|
+
return safeParse(jsonString, (x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedPost' from JSON`);
|
|
1165
1140
|
}
|
|
1166
1141
|
/** @internal */
|
|
1167
|
-
export const
|
|
1142
|
+
export const GetFeedResponse$inboundSchema = z.object({
|
|
1143
|
+
success: types.literal(true),
|
|
1144
|
+
posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
|
|
1145
|
+
creditsUsed: types.number(),
|
|
1146
|
+
retryAfter: types.number(),
|
|
1147
|
+
});
|
|
1148
|
+
export function getFeedResponseFromJSON(jsonString) {
|
|
1149
|
+
return safeParse(jsonString, (x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedResponse' from JSON`);
|
|
1150
|
+
}
|
|
1168
1151
|
/** @internal */
|
|
1169
|
-
export const
|
|
1170
|
-
.
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
cached: types.number(),
|
|
1174
|
-
failed: types.number(),
|
|
1175
|
-
skipped: types.number(),
|
|
1176
|
-
pending: types.number(),
|
|
1152
|
+
export const CollectHashtagPostsRequest$outboundSchema = z.object({
|
|
1153
|
+
hashtag: z.string(),
|
|
1154
|
+
start: z._default(z.int(), 0),
|
|
1155
|
+
count: z._default(z.int(), 20),
|
|
1177
1156
|
});
|
|
1178
|
-
export function
|
|
1179
|
-
return
|
|
1157
|
+
export function collectHashtagPostsRequestToJSON(collectHashtagPostsRequest) {
|
|
1158
|
+
return JSON.stringify(CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest));
|
|
1180
1159
|
}
|
|
1181
1160
|
/** @internal */
|
|
1182
|
-
export const
|
|
1161
|
+
export const CollectHashtagPostsAuthor$inboundSchema = z.object({
|
|
1162
|
+
name: types.string(),
|
|
1163
|
+
profileUrl: types.nullable(types.string()),
|
|
1164
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1165
|
+
profileUrn: types.nullable(types.string()),
|
|
1166
|
+
});
|
|
1167
|
+
export function collectHashtagPostsAuthorFromJSON(jsonString) {
|
|
1168
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsAuthor' from JSON`);
|
|
1169
|
+
}
|
|
1183
1170
|
/** @internal */
|
|
1184
|
-
export const
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1171
|
+
export const CollectHashtagPostsType$inboundSchema = openEnums.inboundSchema(CollectHashtagPostsType);
|
|
1172
|
+
/** @internal */
|
|
1173
|
+
export const CollectHashtagPostsMedia$inboundSchema = z.object({
|
|
1174
|
+
type: CollectHashtagPostsType$inboundSchema,
|
|
1175
|
+
urls: z.array(types.string()),
|
|
1176
|
+
title: types.optional(types.string()),
|
|
1177
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1189
1178
|
});
|
|
1190
|
-
export function
|
|
1191
|
-
return safeParse(jsonString, (x) =>
|
|
1179
|
+
export function collectHashtagPostsMediaFromJSON(jsonString) {
|
|
1180
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsMedia' from JSON`);
|
|
1192
1181
|
}
|
|
1193
1182
|
/** @internal */
|
|
1194
|
-
export const
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1183
|
+
export const CollectHashtagPostsPost$inboundSchema = z.object({
|
|
1184
|
+
postUrl: types.string(),
|
|
1185
|
+
postUrn: types.string(),
|
|
1186
|
+
text: types.string(),
|
|
1187
|
+
date: types.number(),
|
|
1188
|
+
likesCount: types.number(),
|
|
1189
|
+
commentsCount: types.number(),
|
|
1190
|
+
sharesCount: types.number(),
|
|
1191
|
+
author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
|
|
1192
|
+
media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
|
|
1193
|
+
});
|
|
1194
|
+
export function collectHashtagPostsPostFromJSON(jsonString) {
|
|
1195
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsPost' from JSON`);
|
|
1196
|
+
}
|
|
1197
|
+
/** @internal */
|
|
1198
|
+
export const CollectHashtagPostsResponse$inboundSchema = z.object({
|
|
1199
|
+
success: types.literal(true),
|
|
1200
|
+
posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
|
|
1201
|
+
total: types.number(),
|
|
1202
|
+
hasMore: types.boolean(),
|
|
1198
1203
|
creditsUsed: types.number(),
|
|
1199
|
-
|
|
1200
|
-
results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
|
|
1204
|
+
retryAfter: types.number(),
|
|
1201
1205
|
});
|
|
1202
|
-
export function
|
|
1203
|
-
return safeParse(jsonString, (x) =>
|
|
1206
|
+
export function collectHashtagPostsResponseFromJSON(jsonString) {
|
|
1207
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsResponse' from JSON`);
|
|
1204
1208
|
}
|
|
1205
1209
|
/** @internal */
|
|
1206
1210
|
export const SearchCategoryRequest$outboundSchema = z.enum(SearchCategoryRequest);
|
|
1207
1211
|
/** @internal */
|
|
1208
|
-
export const
|
|
1209
|
-
.enum(SearchSortBy);
|
|
1212
|
+
export const SortBy$outboundSchema = z.enum(SortBy);
|
|
1210
1213
|
/** @internal */
|
|
1211
|
-
export const
|
|
1214
|
+
export const DatePosted$outboundSchema = z
|
|
1215
|
+
.enum(DatePosted);
|
|
1212
1216
|
/** @internal */
|
|
1213
|
-
export const
|
|
1217
|
+
export const ContentType$outboundSchema = z
|
|
1218
|
+
.enum(ContentType);
|
|
1214
1219
|
/** @internal */
|
|
1215
|
-
export const
|
|
1220
|
+
export const ConnectionDegree$outboundSchema = z.enum(ConnectionDegree);
|
|
1216
1221
|
/** @internal */
|
|
1217
|
-
export const
|
|
1222
|
+
export const CompanySize$outboundSchema = z
|
|
1223
|
+
.enum(CompanySize);
|
|
1218
1224
|
/** @internal */
|
|
1219
|
-
export const
|
|
1225
|
+
export const JobType$outboundSchema = z.enum(JobType);
|
|
1220
1226
|
/** @internal */
|
|
1221
|
-
export const
|
|
1227
|
+
export const ExperienceLevel$outboundSchema = z.enum(ExperienceLevel);
|
|
1222
1228
|
/** @internal */
|
|
1223
|
-
export const
|
|
1229
|
+
export const WorkplaceType$outboundSchema = z.enum(WorkplaceType);
|
|
1224
1230
|
/** @internal */
|
|
1225
1231
|
export const SearchRequest$outboundSchema = z.object({
|
|
1226
1232
|
category: z.optional(SearchCategoryRequest$outboundSchema),
|
|
1227
1233
|
url: z.optional(z.string()),
|
|
1228
1234
|
keywords: z.optional(z.string()),
|
|
1229
|
-
sortBy: z.optional(
|
|
1230
|
-
datePosted: z.optional(
|
|
1231
|
-
contentType: z.optional(
|
|
1235
|
+
sortBy: z.optional(SortBy$outboundSchema),
|
|
1236
|
+
datePosted: z.optional(DatePosted$outboundSchema),
|
|
1237
|
+
contentType: z.optional(ContentType$outboundSchema),
|
|
1232
1238
|
authorIndustry: z.optional(z.array(z.string())),
|
|
1233
1239
|
authorCompany: z.optional(z.array(z.string())),
|
|
1234
|
-
connectionDegree: z.optional(z.array(
|
|
1240
|
+
connectionDegree: z.optional(z.array(ConnectionDegree$outboundSchema)),
|
|
1235
1241
|
firstName: z.optional(z.string()),
|
|
1236
1242
|
lastName: z.optional(z.string()),
|
|
1237
1243
|
title: z.optional(z.string()),
|
|
@@ -1242,10 +1248,10 @@ export const SearchRequest$outboundSchema = z.object({
|
|
|
1242
1248
|
industry: z.optional(z.array(z.string())),
|
|
1243
1249
|
currentCompany: z.optional(z.array(z.string())),
|
|
1244
1250
|
pastCompany: z.optional(z.array(z.string())),
|
|
1245
|
-
companySize: z.optional(z.array(
|
|
1246
|
-
jobType: z.optional(z.array(
|
|
1247
|
-
experienceLevel: z.optional(z.array(
|
|
1248
|
-
workplaceType: z.optional(z.array(
|
|
1251
|
+
companySize: z.optional(z.array(CompanySize$outboundSchema)),
|
|
1252
|
+
jobType: z.optional(z.array(JobType$outboundSchema)),
|
|
1253
|
+
experienceLevel: z.optional(z.array(ExperienceLevel$outboundSchema)),
|
|
1254
|
+
workplaceType: z.optional(z.array(WorkplaceType$outboundSchema)),
|
|
1249
1255
|
start: z.optional(z.int()),
|
|
1250
1256
|
count: z.optional(z.int()),
|
|
1251
1257
|
});
|
|
@@ -1255,10 +1261,12 @@ export function searchRequestToJSON(searchRequest) {
|
|
|
1255
1261
|
/** @internal */
|
|
1256
1262
|
export const SearchCategoryResponseBody$inboundSchema = openEnums.inboundSchema(SearchCategoryResponseBody);
|
|
1257
1263
|
/** @internal */
|
|
1258
|
-
export const
|
|
1264
|
+
export const ItemsTypeJob$inboundSchema = z
|
|
1265
|
+
.enum(ItemsTypeJob);
|
|
1259
1266
|
/** @internal */
|
|
1260
|
-
export const
|
|
1261
|
-
|
|
1267
|
+
export const ItemsJob$inboundSchema = z
|
|
1268
|
+
.object({
|
|
1269
|
+
type: ItemsTypeJob$inboundSchema,
|
|
1262
1270
|
title: types.string(),
|
|
1263
1271
|
company: types.nullable(types.string()),
|
|
1264
1272
|
companyUrl: types.nullable(types.string()),
|
|
@@ -1269,14 +1277,14 @@ export const SearchItemsJob$inboundSchema = z.object({
|
|
|
1269
1277
|
jobUrl: types.string(),
|
|
1270
1278
|
listingId: types.string(),
|
|
1271
1279
|
});
|
|
1272
|
-
export function
|
|
1273
|
-
return safeParse(jsonString, (x) =>
|
|
1280
|
+
export function itemsJobFromJSON(jsonString) {
|
|
1281
|
+
return safeParse(jsonString, (x) => ItemsJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsJob' from JSON`);
|
|
1274
1282
|
}
|
|
1275
1283
|
/** @internal */
|
|
1276
|
-
export const
|
|
1284
|
+
export const ItemsTypeCompany$inboundSchema = z.enum(ItemsTypeCompany);
|
|
1277
1285
|
/** @internal */
|
|
1278
|
-
export const
|
|
1279
|
-
type:
|
|
1286
|
+
export const ItemsCompany$inboundSchema = z.object({
|
|
1287
|
+
type: ItemsTypeCompany$inboundSchema,
|
|
1280
1288
|
name: types.string(),
|
|
1281
1289
|
profileUrl: types.nullable(types.string()),
|
|
1282
1290
|
summary: types.nullable(types.string()),
|
|
@@ -1284,41 +1292,43 @@ export const SearchItemsCompany$inboundSchema = z.object({
|
|
|
1284
1292
|
location: types.nullable(types.string()),
|
|
1285
1293
|
followersCount: types.nullable(types.number()),
|
|
1286
1294
|
});
|
|
1287
|
-
export function
|
|
1288
|
-
return safeParse(jsonString, (x) =>
|
|
1295
|
+
export function itemsCompanyFromJSON(jsonString) {
|
|
1296
|
+
return safeParse(jsonString, (x) => ItemsCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsCompany' from JSON`);
|
|
1289
1297
|
}
|
|
1290
1298
|
/** @internal */
|
|
1291
|
-
export const
|
|
1299
|
+
export const ItemsTypePeople$inboundSchema = z.enum(ItemsTypePeople);
|
|
1292
1300
|
/** @internal */
|
|
1293
|
-
export const
|
|
1301
|
+
export const ItemsNetworkDistance$inboundSchema = openEnums.inboundSchema(ItemsNetworkDistance);
|
|
1294
1302
|
/** @internal */
|
|
1295
|
-
export const
|
|
1303
|
+
export const ItemsCurrentPosition$inboundSchema = z.object({
|
|
1296
1304
|
company: types.nullable(types.string()),
|
|
1297
1305
|
role: types.nullable(types.string()),
|
|
1298
1306
|
});
|
|
1299
|
-
export function
|
|
1300
|
-
return safeParse(jsonString, (x) =>
|
|
1307
|
+
export function itemsCurrentPositionFromJSON(jsonString) {
|
|
1308
|
+
return safeParse(jsonString, (x) => ItemsCurrentPosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsCurrentPosition' from JSON`);
|
|
1301
1309
|
}
|
|
1302
1310
|
/** @internal */
|
|
1303
|
-
export const
|
|
1304
|
-
|
|
1311
|
+
export const ItemsPeople$inboundSchema = z
|
|
1312
|
+
.object({
|
|
1313
|
+
type: ItemsTypePeople$inboundSchema,
|
|
1305
1314
|
name: types.string(),
|
|
1306
1315
|
profileUrl: types.nullable(types.string()),
|
|
1307
1316
|
headline: types.nullable(types.string()),
|
|
1308
1317
|
location: types.nullable(types.string()),
|
|
1309
1318
|
profilePicture: types.nullable(types.string()),
|
|
1310
|
-
networkDistance: types.nullable(
|
|
1311
|
-
currentPositions: z.array(z.lazy(() =>
|
|
1319
|
+
networkDistance: types.nullable(ItemsNetworkDistance$inboundSchema),
|
|
1320
|
+
currentPositions: z.array(z.lazy(() => ItemsCurrentPosition$inboundSchema)),
|
|
1312
1321
|
profileUrn: types.nullable(types.string()),
|
|
1313
1322
|
publicIdentifier: types.nullable(types.string()),
|
|
1314
1323
|
});
|
|
1315
|
-
export function
|
|
1316
|
-
return safeParse(jsonString, (x) =>
|
|
1324
|
+
export function itemsPeopleFromJSON(jsonString) {
|
|
1325
|
+
return safeParse(jsonString, (x) => ItemsPeople$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsPeople' from JSON`);
|
|
1317
1326
|
}
|
|
1318
1327
|
/** @internal */
|
|
1319
|
-
export const
|
|
1328
|
+
export const ItemsTypePost$inboundSchema = z.enum(ItemsTypePost);
|
|
1320
1329
|
/** @internal */
|
|
1321
|
-
export const
|
|
1330
|
+
export const ItemsAuthor$inboundSchema = z
|
|
1331
|
+
.object({
|
|
1322
1332
|
name: types.string(),
|
|
1323
1333
|
profileUrl: types.nullable(types.string()),
|
|
1324
1334
|
headline: types.nullable(types.string()),
|
|
@@ -1327,25 +1337,26 @@ export const SearchAuthor$inboundSchema = z.object({
|
|
|
1327
1337
|
publicIdentifier: types.nullable(types.string()),
|
|
1328
1338
|
profileUrn: types.nullable(types.string()),
|
|
1329
1339
|
});
|
|
1330
|
-
export function
|
|
1331
|
-
return safeParse(jsonString, (x) =>
|
|
1340
|
+
export function itemsAuthorFromJSON(jsonString) {
|
|
1341
|
+
return safeParse(jsonString, (x) => ItemsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsAuthor' from JSON`);
|
|
1332
1342
|
}
|
|
1333
1343
|
/** @internal */
|
|
1334
|
-
export const
|
|
1344
|
+
export const ItemsMediaType$inboundSchema = openEnums.inboundSchema(ItemsMediaType);
|
|
1335
1345
|
/** @internal */
|
|
1336
|
-
export const
|
|
1346
|
+
export const ItemsMedia$inboundSchema = z
|
|
1337
1347
|
.object({
|
|
1338
|
-
type:
|
|
1348
|
+
type: ItemsMediaType$inboundSchema,
|
|
1339
1349
|
urls: z.array(types.string()),
|
|
1340
1350
|
title: types.optional(types.string()),
|
|
1341
1351
|
thumbnailUrl: types.optional(types.string()),
|
|
1342
1352
|
});
|
|
1343
|
-
export function
|
|
1344
|
-
return safeParse(jsonString, (x) =>
|
|
1353
|
+
export function itemsMediaFromJSON(jsonString) {
|
|
1354
|
+
return safeParse(jsonString, (x) => ItemsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsMedia' from JSON`);
|
|
1345
1355
|
}
|
|
1346
1356
|
/** @internal */
|
|
1347
|
-
export const
|
|
1348
|
-
|
|
1357
|
+
export const ItemsPost$inboundSchema = z
|
|
1358
|
+
.object({
|
|
1359
|
+
type: ItemsTypePost$inboundSchema,
|
|
1349
1360
|
postUrl: types.string(),
|
|
1350
1361
|
text: types.string(),
|
|
1351
1362
|
date: types.number(),
|
|
@@ -1354,43 +1365,43 @@ export const SearchItemsPost$inboundSchema = z.object({
|
|
|
1354
1365
|
sharesCount: types.number(),
|
|
1355
1366
|
postUrn: types.string(),
|
|
1356
1367
|
postId: types.string(),
|
|
1357
|
-
author: z.lazy(() =>
|
|
1368
|
+
author: z.lazy(() => ItemsAuthor$inboundSchema),
|
|
1358
1369
|
isRepost: types.boolean(),
|
|
1359
|
-
media: types.optional(z.lazy(() =>
|
|
1370
|
+
media: types.optional(z.lazy(() => ItemsMedia$inboundSchema)),
|
|
1360
1371
|
});
|
|
1361
|
-
export function
|
|
1362
|
-
return safeParse(jsonString, (x) =>
|
|
1372
|
+
export function itemsPostFromJSON(jsonString) {
|
|
1373
|
+
return safeParse(jsonString, (x) => ItemsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsPost' from JSON`);
|
|
1363
1374
|
}
|
|
1364
1375
|
/** @internal */
|
|
1365
|
-
export const
|
|
1366
|
-
z.array(z.lazy(() =>
|
|
1367
|
-
z.array(z.lazy(() =>
|
|
1368
|
-
z.array(z.lazy(() =>
|
|
1369
|
-
z.array(z.lazy(() =>
|
|
1376
|
+
export const Items$inboundSchema = smartUnion([
|
|
1377
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
1378
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
1379
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
1380
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
1370
1381
|
]);
|
|
1371
|
-
export function
|
|
1372
|
-
return safeParse(jsonString, (x) =>
|
|
1382
|
+
export function itemsFromJSON(jsonString) {
|
|
1383
|
+
return safeParse(jsonString, (x) => Items$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Items' from JSON`);
|
|
1373
1384
|
}
|
|
1374
1385
|
/** @internal */
|
|
1375
|
-
export const
|
|
1386
|
+
export const SearchPagingResponseBody$inboundSchema = z.object({
|
|
1376
1387
|
start: types.number(),
|
|
1377
1388
|
count: types.number(),
|
|
1378
1389
|
total: types.number(),
|
|
1379
1390
|
});
|
|
1380
|
-
export function
|
|
1381
|
-
return safeParse(jsonString, (x) =>
|
|
1391
|
+
export function searchPagingResponseBodyFromJSON(jsonString) {
|
|
1392
|
+
return safeParse(jsonString, (x) => SearchPagingResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchPagingResponseBody' from JSON`);
|
|
1382
1393
|
}
|
|
1383
1394
|
/** @internal */
|
|
1384
1395
|
export const SearchResponse$inboundSchema = z.object({
|
|
1385
1396
|
success: types.literal(true),
|
|
1386
1397
|
category: SearchCategoryResponseBody$inboundSchema,
|
|
1387
1398
|
items: smartUnion([
|
|
1388
|
-
z.array(z.lazy(() =>
|
|
1389
|
-
z.array(z.lazy(() =>
|
|
1390
|
-
z.array(z.lazy(() =>
|
|
1391
|
-
z.array(z.lazy(() =>
|
|
1399
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
1400
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
1401
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
1402
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
1392
1403
|
]),
|
|
1393
|
-
paging: z.lazy(() =>
|
|
1404
|
+
paging: z.lazy(() => SearchPagingResponseBody$inboundSchema),
|
|
1394
1405
|
hasMore: types.boolean(),
|
|
1395
1406
|
creditsUsed: types.number(),
|
|
1396
1407
|
retryAfter: types.number(),
|
|
@@ -1399,60 +1410,6 @@ export function searchResponseFromJSON(jsonString) {
|
|
|
1399
1410
|
return safeParse(jsonString, (x) => SearchResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchResponse' from JSON`);
|
|
1400
1411
|
}
|
|
1401
1412
|
/** @internal */
|
|
1402
|
-
export const SearchCompaniesCompanySize$outboundSchema = z.enum(SearchCompaniesCompanySize);
|
|
1403
|
-
/** @internal */
|
|
1404
|
-
export const SearchCompaniesRequest$outboundSchema = z.object({
|
|
1405
|
-
keywords: z.optional(z.string()),
|
|
1406
|
-
url: z.optional(z.string()),
|
|
1407
|
-
location: z.optional(z.array(z.string())),
|
|
1408
|
-
industry: z.optional(z.array(z.string())),
|
|
1409
|
-
companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
|
|
1410
|
-
start: z.optional(z.int()),
|
|
1411
|
-
count: z.optional(z.int()),
|
|
1412
|
-
});
|
|
1413
|
-
export function searchCompaniesRequestToJSON(searchCompaniesRequest) {
|
|
1414
|
-
return JSON.stringify(SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest));
|
|
1415
|
-
}
|
|
1416
|
-
/** @internal */
|
|
1417
|
-
export const SearchCompaniesCategory$inboundSchema = z.enum(SearchCompaniesCategory);
|
|
1418
|
-
/** @internal */
|
|
1419
|
-
export const SearchCompaniesType$inboundSchema = z.enum(SearchCompaniesType);
|
|
1420
|
-
/** @internal */
|
|
1421
|
-
export const SearchCompaniesItem$inboundSchema = z.object({
|
|
1422
|
-
type: SearchCompaniesType$inboundSchema,
|
|
1423
|
-
name: types.string(),
|
|
1424
|
-
profileUrl: types.nullable(types.string()),
|
|
1425
|
-
summary: types.nullable(types.string()),
|
|
1426
|
-
industry: types.nullable(types.string()),
|
|
1427
|
-
location: types.nullable(types.string()),
|
|
1428
|
-
followersCount: types.nullable(types.number()),
|
|
1429
|
-
});
|
|
1430
|
-
export function searchCompaniesItemFromJSON(jsonString) {
|
|
1431
|
-
return safeParse(jsonString, (x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesItem' from JSON`);
|
|
1432
|
-
}
|
|
1433
|
-
/** @internal */
|
|
1434
|
-
export const SearchCompaniesPaging$inboundSchema = z.object({
|
|
1435
|
-
start: types.number(),
|
|
1436
|
-
count: types.number(),
|
|
1437
|
-
total: types.number(),
|
|
1438
|
-
});
|
|
1439
|
-
export function searchCompaniesPagingFromJSON(jsonString) {
|
|
1440
|
-
return safeParse(jsonString, (x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesPaging' from JSON`);
|
|
1441
|
-
}
|
|
1442
|
-
/** @internal */
|
|
1443
|
-
export const SearchCompaniesResponse$inboundSchema = z.object({
|
|
1444
|
-
success: types.literal(true),
|
|
1445
|
-
category: SearchCompaniesCategory$inboundSchema,
|
|
1446
|
-
items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
|
|
1447
|
-
paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
|
|
1448
|
-
hasMore: types.boolean(),
|
|
1449
|
-
creditsUsed: types.number(),
|
|
1450
|
-
retryAfter: types.number(),
|
|
1451
|
-
});
|
|
1452
|
-
export function searchCompaniesResponseFromJSON(jsonString) {
|
|
1453
|
-
return safeParse(jsonString, (x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesResponse' from JSON`);
|
|
1454
|
-
}
|
|
1455
|
-
/** @internal */
|
|
1456
1413
|
export const SearchPostsSortBy$outboundSchema = z.enum(SearchPostsSortBy);
|
|
1457
1414
|
/** @internal */
|
|
1458
1415
|
export const SearchPostsDatePosted$outboundSchema = z.enum(SearchPostsDatePosted);
|
|
@@ -1617,4 +1574,58 @@ export const SearchPeopleResponse$inboundSchema = z.object({
|
|
|
1617
1574
|
export function searchPeopleResponseFromJSON(jsonString) {
|
|
1618
1575
|
return safeParse(jsonString, (x) => SearchPeopleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchPeopleResponse' from JSON`);
|
|
1619
1576
|
}
|
|
1620
|
-
|
|
1577
|
+
/** @internal */
|
|
1578
|
+
export const SearchCompaniesCompanySize$outboundSchema = z.enum(SearchCompaniesCompanySize);
|
|
1579
|
+
/** @internal */
|
|
1580
|
+
export const SearchCompaniesRequest$outboundSchema = z.object({
|
|
1581
|
+
keywords: z.optional(z.string()),
|
|
1582
|
+
url: z.optional(z.string()),
|
|
1583
|
+
location: z.optional(z.array(z.string())),
|
|
1584
|
+
industry: z.optional(z.array(z.string())),
|
|
1585
|
+
companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
|
|
1586
|
+
start: z.optional(z.int()),
|
|
1587
|
+
count: z.optional(z.int()),
|
|
1588
|
+
});
|
|
1589
|
+
export function searchCompaniesRequestToJSON(searchCompaniesRequest) {
|
|
1590
|
+
return JSON.stringify(SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest));
|
|
1591
|
+
}
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export const SearchCompaniesCategory$inboundSchema = z.enum(SearchCompaniesCategory);
|
|
1594
|
+
/** @internal */
|
|
1595
|
+
export const SearchCompaniesType$inboundSchema = z.enum(SearchCompaniesType);
|
|
1596
|
+
/** @internal */
|
|
1597
|
+
export const SearchCompaniesItem$inboundSchema = z.object({
|
|
1598
|
+
type: SearchCompaniesType$inboundSchema,
|
|
1599
|
+
name: types.string(),
|
|
1600
|
+
profileUrl: types.nullable(types.string()),
|
|
1601
|
+
summary: types.nullable(types.string()),
|
|
1602
|
+
industry: types.nullable(types.string()),
|
|
1603
|
+
location: types.nullable(types.string()),
|
|
1604
|
+
followersCount: types.nullable(types.number()),
|
|
1605
|
+
});
|
|
1606
|
+
export function searchCompaniesItemFromJSON(jsonString) {
|
|
1607
|
+
return safeParse(jsonString, (x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesItem' from JSON`);
|
|
1608
|
+
}
|
|
1609
|
+
/** @internal */
|
|
1610
|
+
export const SearchCompaniesPaging$inboundSchema = z.object({
|
|
1611
|
+
start: types.number(),
|
|
1612
|
+
count: types.number(),
|
|
1613
|
+
total: types.number(),
|
|
1614
|
+
});
|
|
1615
|
+
export function searchCompaniesPagingFromJSON(jsonString) {
|
|
1616
|
+
return safeParse(jsonString, (x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesPaging' from JSON`);
|
|
1617
|
+
}
|
|
1618
|
+
/** @internal */
|
|
1619
|
+
export const SearchCompaniesResponse$inboundSchema = z.object({
|
|
1620
|
+
success: types.literal(true),
|
|
1621
|
+
category: SearchCompaniesCategory$inboundSchema,
|
|
1622
|
+
items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
|
|
1623
|
+
paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
|
|
1624
|
+
hasMore: types.boolean(),
|
|
1625
|
+
creditsUsed: types.number(),
|
|
1626
|
+
retryAfter: types.number(),
|
|
1627
|
+
});
|
|
1628
|
+
export function searchCompaniesResponseFromJSON(jsonString) {
|
|
1629
|
+
return safeParse(jsonString, (x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesResponse' from JSON`);
|
|
1630
|
+
}
|
|
1631
|
+
//# sourceMappingURL=search-companies-response.js.map
|