bereach 1.4.0 → 1.4.2
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 +2 -2
- package/esm/lib/config.js +2 -2
- 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} +890 -890
- package/esm/models/operations/search-companies-response.d.ts.map +1 -0
- package/esm/models/operations/{search-people-response.js → search-companies-response.js} +611 -604
- package/esm/models/operations/search-companies-response.js.map +1 -0
- package/esm/models/operations/search-contacts-campaign.d.ts +180 -180
- package/esm/models/operations/search-contacts-campaign.d.ts.map +1 -1
- package/esm/models/operations/search-contacts-campaign.js +102 -102
- package/esm/models/operations/search-contacts-campaign.js.map +1 -1
- package/esm/models/operations/update-account-response.d.ts +634 -634
- package/esm/models/operations/update-account-response.d.ts.map +1 -1
- package/esm/models/operations/update-account-response.js +307 -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 +2 -2
- package/src/models/operations/index.ts +1 -1
- package/src/models/operations/{search-people-response.ts → search-companies-response.ts} +1897 -1909
- package/src/models/operations/search-contacts-campaign.ts +366 -366
- package/src/models/operations/update-account-response.ts +1147 -1147
- 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,111 @@ 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
|
-
logoUrl: types.nullable(types.string()),
|
|
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()),
|
|
636
654
|
});
|
|
637
|
-
export function
|
|
638
|
-
return
|
|
655
|
+
export function collectPostsRequestToJSON(collectPostsRequest) {
|
|
656
|
+
return JSON.stringify(CollectPostsRequest$outboundSchema.parse(collectPostsRequest));
|
|
639
657
|
}
|
|
640
658
|
/** @internal */
|
|
641
|
-
export const
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
659
|
+
export const CollectPostsType$inboundSchema = openEnums.inboundSchema(CollectPostsType);
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const CollectPostsMediaType$inboundSchema = openEnums.inboundSchema(CollectPostsMediaType);
|
|
662
|
+
/** @internal */
|
|
663
|
+
export const CollectPostsMedia$inboundSchema = z.object({
|
|
664
|
+
type: CollectPostsMediaType$inboundSchema,
|
|
665
|
+
urls: z.array(types.string()),
|
|
666
|
+
title: types.optional(types.string()),
|
|
667
|
+
thumbnailUrl: types.optional(types.string()),
|
|
649
668
|
});
|
|
650
|
-
export function
|
|
651
|
-
return safeParse(jsonString, (x) =>
|
|
669
|
+
export function collectPostsMediaFromJSON(jsonString) {
|
|
670
|
+
return safeParse(jsonString, (x) => CollectPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsMedia' from JSON`);
|
|
652
671
|
}
|
|
653
672
|
/** @internal */
|
|
654
|
-
export const
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
673
|
+
export const CollectPostsPost$inboundSchema = z.object({
|
|
674
|
+
postUrl: types.string(),
|
|
675
|
+
text: types.string(),
|
|
676
|
+
date: types.number(),
|
|
677
|
+
likesCount: types.number(),
|
|
678
|
+
commentsCount: types.number(),
|
|
679
|
+
sharesCount: types.number(),
|
|
680
|
+
postUrn: types.string(),
|
|
681
|
+
postId: types.string(),
|
|
682
|
+
type: CollectPostsType$inboundSchema,
|
|
683
|
+
media: types.optional(z.lazy(() => CollectPostsMedia$inboundSchema)),
|
|
659
684
|
});
|
|
660
|
-
export function
|
|
661
|
-
return safeParse(jsonString, (x) =>
|
|
685
|
+
export function collectPostsPostFromJSON(jsonString) {
|
|
686
|
+
return safeParse(jsonString, (x) => CollectPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectPostsPost' from JSON`);
|
|
662
687
|
}
|
|
663
688
|
/** @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({
|
|
689
|
+
export const CollectPostsResponse$inboundSchema = z.object({
|
|
968
690
|
success: types.literal(true),
|
|
969
691
|
posts: z.array(z.lazy(() => CollectPostsPost$inboundSchema)),
|
|
970
692
|
count: types.number(),
|
|
@@ -1130,108 +852,388 @@ export const VisitProfileResponse$inboundSchema = z.object({
|
|
|
1130
852
|
creditsUsed: types.number(),
|
|
1131
853
|
retryAfter: types.number(),
|
|
1132
854
|
});
|
|
1133
|
-
export function visitProfileResponseFromJSON(jsonString) {
|
|
1134
|
-
return safeParse(jsonString, (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitProfileResponse' from JSON`);
|
|
855
|
+
export function visitProfileResponseFromJSON(jsonString) {
|
|
856
|
+
return safeParse(jsonString, (x) => VisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitProfileResponse' from JSON`);
|
|
857
|
+
}
|
|
858
|
+
/** @internal */
|
|
859
|
+
export const BulkVisitProfileRequest$outboundSchema = z.object({
|
|
860
|
+
profiles: z.array(z.string()),
|
|
861
|
+
campaignSlug: z.optional(z.string()),
|
|
862
|
+
includePosts: z.optional(z.boolean()),
|
|
863
|
+
includeComments: z.optional(z.boolean()),
|
|
864
|
+
includeAbout: z.optional(z.boolean()),
|
|
865
|
+
});
|
|
866
|
+
export function bulkVisitProfileRequestToJSON(bulkVisitProfileRequest) {
|
|
867
|
+
return JSON.stringify(BulkVisitProfileRequest$outboundSchema.parse(bulkVisitProfileRequest));
|
|
868
|
+
}
|
|
869
|
+
/** @internal */
|
|
870
|
+
export const BulkVisitProfileResponse$inboundSchema = z.object({
|
|
871
|
+
accepted: types.literal(true),
|
|
872
|
+
batchId: types.string(),
|
|
873
|
+
profileCount: types.number(),
|
|
874
|
+
alreadyCached: types.number(),
|
|
875
|
+
willVisit: types.number(),
|
|
876
|
+
estimatedMinutes: types.number(),
|
|
877
|
+
});
|
|
878
|
+
export function bulkVisitProfileResponseFromJSON(jsonString) {
|
|
879
|
+
return safeParse(jsonString, (x) => BulkVisitProfileResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkVisitProfileResponse' from JSON`);
|
|
880
|
+
}
|
|
881
|
+
/** @internal */
|
|
882
|
+
export const BulkVisitBatchStatusRequest$outboundSchema = z.object({
|
|
883
|
+
batchId: z.string(),
|
|
884
|
+
});
|
|
885
|
+
export function bulkVisitBatchStatusRequestToJSON(bulkVisitBatchStatusRequest) {
|
|
886
|
+
return JSON.stringify(BulkVisitBatchStatusRequest$outboundSchema.parse(bulkVisitBatchStatusRequest));
|
|
887
|
+
}
|
|
888
|
+
/** @internal */
|
|
889
|
+
export const BulkVisitBatchStatusStatus$inboundSchema = openEnums.inboundSchema(BulkVisitBatchStatusStatus);
|
|
890
|
+
/** @internal */
|
|
891
|
+
export const Progress$inboundSchema = z
|
|
892
|
+
.object({
|
|
893
|
+
total: types.number(),
|
|
894
|
+
visited: types.number(),
|
|
895
|
+
cached: types.number(),
|
|
896
|
+
failed: types.number(),
|
|
897
|
+
skipped: types.number(),
|
|
898
|
+
pending: types.number(),
|
|
899
|
+
});
|
|
900
|
+
export function progressFromJSON(jsonString) {
|
|
901
|
+
return safeParse(jsonString, (x) => Progress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Progress' from JSON`);
|
|
902
|
+
}
|
|
903
|
+
/** @internal */
|
|
904
|
+
export const ResultStatus$inboundSchema = openEnums.inboundSchema(ResultStatus);
|
|
905
|
+
/** @internal */
|
|
906
|
+
export const Result$inboundSchema = z.object({
|
|
907
|
+
profile: types.string(),
|
|
908
|
+
status: ResultStatus$inboundSchema,
|
|
909
|
+
contactId: z.optional(z.nullable(types.string())),
|
|
910
|
+
error: z.optional(z.nullable(types.string())),
|
|
911
|
+
});
|
|
912
|
+
export function resultFromJSON(jsonString) {
|
|
913
|
+
return safeParse(jsonString, (x) => Result$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Result' from JSON`);
|
|
914
|
+
}
|
|
915
|
+
/** @internal */
|
|
916
|
+
export const BulkVisitBatchStatusResponse$inboundSchema = z.object({
|
|
917
|
+
batchId: types.string(),
|
|
918
|
+
status: BulkVisitBatchStatusStatus$inboundSchema,
|
|
919
|
+
progress: z.lazy(() => Progress$inboundSchema),
|
|
920
|
+
creditsUsed: types.number(),
|
|
921
|
+
failureReason: z.optional(z.nullable(types.string())),
|
|
922
|
+
results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
|
|
923
|
+
});
|
|
924
|
+
export function bulkVisitBatchStatusResponseFromJSON(jsonString) {
|
|
925
|
+
return safeParse(jsonString, (x) => BulkVisitBatchStatusResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BulkVisitBatchStatusResponse' from JSON`);
|
|
926
|
+
}
|
|
927
|
+
/** @internal */
|
|
928
|
+
export const VisitCompanyRequest$outboundSchema = z.object({
|
|
929
|
+
companyUrl: z.string(),
|
|
930
|
+
includeWorkplacePolicy: z.optional(z.boolean()),
|
|
931
|
+
});
|
|
932
|
+
export function visitCompanyRequestToJSON(visitCompanyRequest) {
|
|
933
|
+
return JSON.stringify(VisitCompanyRequest$outboundSchema.parse(visitCompanyRequest));
|
|
934
|
+
}
|
|
935
|
+
/** @internal */
|
|
936
|
+
export const EmployeeCountRange$inboundSchema = z.object({
|
|
937
|
+
start: types.number(),
|
|
938
|
+
end: types.nullable(types.number()),
|
|
939
|
+
});
|
|
940
|
+
export function employeeCountRangeFromJSON(jsonString) {
|
|
941
|
+
return safeParse(jsonString, (x) => EmployeeCountRange$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'EmployeeCountRange' from JSON`);
|
|
942
|
+
}
|
|
943
|
+
/** @internal */
|
|
944
|
+
export const VisitCompanyHeadquarter$inboundSchema = z.object({
|
|
945
|
+
country: types.nullable(types.string()),
|
|
946
|
+
geographicArea: types.nullable(types.string()),
|
|
947
|
+
city: types.nullable(types.string()),
|
|
948
|
+
postalCode: types.nullable(types.string()),
|
|
949
|
+
line1: types.nullable(types.string()),
|
|
950
|
+
line2: types.nullable(types.string()),
|
|
951
|
+
});
|
|
952
|
+
export function visitCompanyHeadquarterFromJSON(jsonString) {
|
|
953
|
+
return safeParse(jsonString, (x) => VisitCompanyHeadquarter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyHeadquarter' from JSON`);
|
|
954
|
+
}
|
|
955
|
+
/** @internal */
|
|
956
|
+
export const VisitCompanyFoundedOn$inboundSchema = z.object({
|
|
957
|
+
year: types.number(),
|
|
958
|
+
});
|
|
959
|
+
export function visitCompanyFoundedOnFromJSON(jsonString) {
|
|
960
|
+
return safeParse(jsonString, (x) => VisitCompanyFoundedOn$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyFoundedOn' from JSON`);
|
|
961
|
+
}
|
|
962
|
+
/** @internal */
|
|
963
|
+
export const CallToAction$inboundSchema = z.object({
|
|
964
|
+
type: types.string(),
|
|
965
|
+
url: types.string(),
|
|
966
|
+
});
|
|
967
|
+
export function callToActionFromJSON(jsonString) {
|
|
968
|
+
return safeParse(jsonString, (x) => CallToAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CallToAction' from JSON`);
|
|
969
|
+
}
|
|
970
|
+
/** @internal */
|
|
971
|
+
export const AffiliatedCompany$inboundSchema = z.object({
|
|
972
|
+
id: types.string(),
|
|
973
|
+
universalName: types.string(),
|
|
974
|
+
name: types.string(),
|
|
975
|
+
url: types.nullable(types.string()),
|
|
976
|
+
logoUrl: types.nullable(types.string()),
|
|
977
|
+
followerCount: types.nullable(types.number()),
|
|
978
|
+
industry: types.nullable(types.string()),
|
|
979
|
+
});
|
|
980
|
+
export function affiliatedCompanyFromJSON(jsonString) {
|
|
981
|
+
return safeParse(jsonString, (x) => AffiliatedCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AffiliatedCompany' from JSON`);
|
|
982
|
+
}
|
|
983
|
+
/** @internal */
|
|
984
|
+
export const SimilarCompany$inboundSchema = z.object({
|
|
985
|
+
id: types.string(),
|
|
986
|
+
universalName: types.string(),
|
|
987
|
+
name: types.string(),
|
|
988
|
+
url: types.nullable(types.string()),
|
|
989
|
+
logoUrl: types.nullable(types.string()),
|
|
990
|
+
followerCount: types.nullable(types.number()),
|
|
991
|
+
industry: types.nullable(types.string()),
|
|
992
|
+
});
|
|
993
|
+
export function similarCompanyFromJSON(jsonString) {
|
|
994
|
+
return safeParse(jsonString, (x) => SimilarCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SimilarCompany' from JSON`);
|
|
995
|
+
}
|
|
996
|
+
/** @internal */
|
|
997
|
+
export const WorkplacePolicy$inboundSchema = z.object({
|
|
998
|
+
title: types.nullable(types.string()),
|
|
999
|
+
description: types.nullable(types.string()),
|
|
1000
|
+
timeAtOnsite: types.nullable(types.string()),
|
|
1001
|
+
benefits: z.array(types.string()),
|
|
1002
|
+
});
|
|
1003
|
+
export function workplacePolicyFromJSON(jsonString) {
|
|
1004
|
+
return safeParse(jsonString, (x) => WorkplacePolicy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkplacePolicy' from JSON`);
|
|
1005
|
+
}
|
|
1006
|
+
/** @internal */
|
|
1007
|
+
export const VisitCompanyResponse$inboundSchema = z.object({
|
|
1008
|
+
success: types.literal(true),
|
|
1009
|
+
id: types.string(),
|
|
1010
|
+
universalName: types.string(),
|
|
1011
|
+
name: types.string(),
|
|
1012
|
+
description: types.nullable(types.string()),
|
|
1013
|
+
url: types.string(),
|
|
1014
|
+
websiteUrl: types.nullable(types.string()),
|
|
1015
|
+
industry: types.nullable(types.string()),
|
|
1016
|
+
employeeCount: types.nullable(types.number()),
|
|
1017
|
+
employeeCountRange: types.nullable(z.lazy(() => EmployeeCountRange$inboundSchema)),
|
|
1018
|
+
headquarter: types.nullable(z.lazy(() => VisitCompanyHeadquarter$inboundSchema)),
|
|
1019
|
+
logoUrl: types.nullable(types.string()),
|
|
1020
|
+
coverImageUrl: types.nullable(types.string()),
|
|
1021
|
+
followerCount: types.nullable(types.number()),
|
|
1022
|
+
specialities: z.array(types.string()),
|
|
1023
|
+
tagline: types.nullable(types.string()),
|
|
1024
|
+
isVerified: types.boolean(),
|
|
1025
|
+
foundedOn: types.nullable(z.lazy(() => VisitCompanyFoundedOn$inboundSchema)),
|
|
1026
|
+
phone: types.nullable(types.string()),
|
|
1027
|
+
callToAction: types.nullable(z.lazy(() => CallToAction$inboundSchema)),
|
|
1028
|
+
hashtags: z.array(types.string()),
|
|
1029
|
+
affiliatedCompanies: z.array(z.lazy(() => AffiliatedCompany$inboundSchema)),
|
|
1030
|
+
similarCompanies: z.array(z.lazy(() => SimilarCompany$inboundSchema)),
|
|
1031
|
+
workplacePolicy: types.nullable(z.lazy(() => WorkplacePolicy$inboundSchema)),
|
|
1032
|
+
creditsUsed: types.number(),
|
|
1033
|
+
retryAfter: types.number(),
|
|
1034
|
+
});
|
|
1035
|
+
export function visitCompanyResponseFromJSON(jsonString) {
|
|
1036
|
+
return safeParse(jsonString, (x) => VisitCompanyResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'VisitCompanyResponse' from JSON`);
|
|
1037
|
+
}
|
|
1038
|
+
/** @internal */
|
|
1039
|
+
export const ListSavedPostsRequest$outboundSchema = z.object({
|
|
1040
|
+
start: z._default(z.int(), 0),
|
|
1041
|
+
count: z._default(z.int(), 20),
|
|
1042
|
+
});
|
|
1043
|
+
export function listSavedPostsRequestToJSON(listSavedPostsRequest) {
|
|
1044
|
+
return JSON.stringify(ListSavedPostsRequest$outboundSchema.parse(listSavedPostsRequest));
|
|
1045
|
+
}
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
export const ListSavedPostsAuthor$inboundSchema = z.object({
|
|
1048
|
+
name: types.string(),
|
|
1049
|
+
profileUrl: types.nullable(types.string()),
|
|
1050
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1051
|
+
profileUrn: types.nullable(types.string()),
|
|
1052
|
+
});
|
|
1053
|
+
export function listSavedPostsAuthorFromJSON(jsonString) {
|
|
1054
|
+
return safeParse(jsonString, (x) => ListSavedPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsAuthor' from JSON`);
|
|
1055
|
+
}
|
|
1056
|
+
/** @internal */
|
|
1057
|
+
export const ListSavedPostsType$inboundSchema = openEnums.inboundSchema(ListSavedPostsType);
|
|
1058
|
+
/** @internal */
|
|
1059
|
+
export const ListSavedPostsMedia$inboundSchema = z.object({
|
|
1060
|
+
type: ListSavedPostsType$inboundSchema,
|
|
1061
|
+
urls: z.array(types.string()),
|
|
1062
|
+
title: types.optional(types.string()),
|
|
1063
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1064
|
+
});
|
|
1065
|
+
export function listSavedPostsMediaFromJSON(jsonString) {
|
|
1066
|
+
return safeParse(jsonString, (x) => ListSavedPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsMedia' from JSON`);
|
|
1067
|
+
}
|
|
1068
|
+
/** @internal */
|
|
1069
|
+
export const ListSavedPostsPost$inboundSchema = z.object({
|
|
1070
|
+
postUrl: types.string(),
|
|
1071
|
+
postUrn: types.string(),
|
|
1072
|
+
postId: types.string(),
|
|
1073
|
+
text: types.string(),
|
|
1074
|
+
date: types.number(),
|
|
1075
|
+
likesCount: types.number(),
|
|
1076
|
+
commentsCount: types.number(),
|
|
1077
|
+
sharesCount: types.number(),
|
|
1078
|
+
author: z.lazy(() => ListSavedPostsAuthor$inboundSchema),
|
|
1079
|
+
media: types.optional(z.lazy(() => ListSavedPostsMedia$inboundSchema)),
|
|
1080
|
+
});
|
|
1081
|
+
export function listSavedPostsPostFromJSON(jsonString) {
|
|
1082
|
+
return safeParse(jsonString, (x) => ListSavedPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsPost' from JSON`);
|
|
1083
|
+
}
|
|
1084
|
+
/** @internal */
|
|
1085
|
+
export const ListSavedPostsResponse$inboundSchema = z.object({
|
|
1086
|
+
success: types.literal(true),
|
|
1087
|
+
posts: z.array(z.lazy(() => ListSavedPostsPost$inboundSchema)),
|
|
1088
|
+
total: types.nullable(types.number()),
|
|
1089
|
+
hasMore: types.boolean(),
|
|
1090
|
+
creditsUsed: types.number(),
|
|
1091
|
+
retryAfter: types.number(),
|
|
1092
|
+
});
|
|
1093
|
+
export function listSavedPostsResponseFromJSON(jsonString) {
|
|
1094
|
+
return safeParse(jsonString, (x) => ListSavedPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListSavedPostsResponse' from JSON`);
|
|
1135
1095
|
}
|
|
1136
1096
|
/** @internal */
|
|
1137
|
-
export const
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
includeAbout: z.optional(z.boolean()),
|
|
1097
|
+
export const SortOrder$outboundSchema = z.enum(SortOrder);
|
|
1098
|
+
/** @internal */
|
|
1099
|
+
export const GetFeedRequest$outboundSchema = z.object({
|
|
1100
|
+
count: z._default(z.int(), 20),
|
|
1101
|
+
sortOrder: z._default(SortOrder$outboundSchema, "RELEVANCE"),
|
|
1143
1102
|
});
|
|
1144
|
-
export function
|
|
1145
|
-
return JSON.stringify(
|
|
1103
|
+
export function getFeedRequestToJSON(getFeedRequest) {
|
|
1104
|
+
return JSON.stringify(GetFeedRequest$outboundSchema.parse(getFeedRequest));
|
|
1146
1105
|
}
|
|
1147
1106
|
/** @internal */
|
|
1148
|
-
export const
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1107
|
+
export const GetFeedType$inboundSchema = openEnums.inboundSchema(GetFeedType);
|
|
1108
|
+
/** @internal */
|
|
1109
|
+
export const GetFeedMediaType$inboundSchema = openEnums.inboundSchema(GetFeedMediaType);
|
|
1110
|
+
/** @internal */
|
|
1111
|
+
export const GetFeedMedia$inboundSchema = z.object({
|
|
1112
|
+
type: GetFeedMediaType$inboundSchema,
|
|
1113
|
+
urls: z.array(types.string()),
|
|
1114
|
+
title: types.optional(types.string()),
|
|
1115
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1155
1116
|
});
|
|
1156
|
-
export function
|
|
1157
|
-
return safeParse(jsonString, (x) =>
|
|
1117
|
+
export function getFeedMediaFromJSON(jsonString) {
|
|
1118
|
+
return safeParse(jsonString, (x) => GetFeedMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedMedia' from JSON`);
|
|
1158
1119
|
}
|
|
1159
1120
|
/** @internal */
|
|
1160
|
-
export const
|
|
1161
|
-
|
|
1121
|
+
export const GetFeedPost$inboundSchema = z
|
|
1122
|
+
.object({
|
|
1123
|
+
postUrl: types.string(),
|
|
1124
|
+
text: types.string(),
|
|
1125
|
+
date: types.number(),
|
|
1126
|
+
likesCount: types.number(),
|
|
1127
|
+
commentsCount: types.number(),
|
|
1128
|
+
sharesCount: types.number(),
|
|
1129
|
+
postUrn: types.string(),
|
|
1130
|
+
postId: types.string(),
|
|
1131
|
+
type: GetFeedType$inboundSchema,
|
|
1132
|
+
media: types.optional(z.lazy(() => GetFeedMedia$inboundSchema)),
|
|
1162
1133
|
});
|
|
1163
|
-
export function
|
|
1164
|
-
return
|
|
1134
|
+
export function getFeedPostFromJSON(jsonString) {
|
|
1135
|
+
return safeParse(jsonString, (x) => GetFeedPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedPost' from JSON`);
|
|
1165
1136
|
}
|
|
1166
1137
|
/** @internal */
|
|
1167
|
-
export const
|
|
1138
|
+
export const GetFeedResponse$inboundSchema = z.object({
|
|
1139
|
+
success: types.literal(true),
|
|
1140
|
+
posts: z.array(z.lazy(() => GetFeedPost$inboundSchema)),
|
|
1141
|
+
creditsUsed: types.number(),
|
|
1142
|
+
retryAfter: types.number(),
|
|
1143
|
+
});
|
|
1144
|
+
export function getFeedResponseFromJSON(jsonString) {
|
|
1145
|
+
return safeParse(jsonString, (x) => GetFeedResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFeedResponse' from JSON`);
|
|
1146
|
+
}
|
|
1168
1147
|
/** @internal */
|
|
1169
|
-
export const
|
|
1170
|
-
.
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
cached: types.number(),
|
|
1174
|
-
failed: types.number(),
|
|
1175
|
-
skipped: types.number(),
|
|
1176
|
-
pending: types.number(),
|
|
1148
|
+
export const CollectHashtagPostsRequest$outboundSchema = z.object({
|
|
1149
|
+
hashtag: z.string(),
|
|
1150
|
+
start: z._default(z.int(), 0),
|
|
1151
|
+
count: z._default(z.int(), 20),
|
|
1177
1152
|
});
|
|
1178
|
-
export function
|
|
1179
|
-
return
|
|
1153
|
+
export function collectHashtagPostsRequestToJSON(collectHashtagPostsRequest) {
|
|
1154
|
+
return JSON.stringify(CollectHashtagPostsRequest$outboundSchema.parse(collectHashtagPostsRequest));
|
|
1180
1155
|
}
|
|
1181
1156
|
/** @internal */
|
|
1182
|
-
export const
|
|
1157
|
+
export const CollectHashtagPostsAuthor$inboundSchema = z.object({
|
|
1158
|
+
name: types.string(),
|
|
1159
|
+
profileUrl: types.nullable(types.string()),
|
|
1160
|
+
publicIdentifier: types.nullable(types.string()),
|
|
1161
|
+
profileUrn: types.nullable(types.string()),
|
|
1162
|
+
});
|
|
1163
|
+
export function collectHashtagPostsAuthorFromJSON(jsonString) {
|
|
1164
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsAuthor' from JSON`);
|
|
1165
|
+
}
|
|
1183
1166
|
/** @internal */
|
|
1184
|
-
export const
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1167
|
+
export const CollectHashtagPostsType$inboundSchema = openEnums.inboundSchema(CollectHashtagPostsType);
|
|
1168
|
+
/** @internal */
|
|
1169
|
+
export const CollectHashtagPostsMedia$inboundSchema = z.object({
|
|
1170
|
+
type: CollectHashtagPostsType$inboundSchema,
|
|
1171
|
+
urls: z.array(types.string()),
|
|
1172
|
+
title: types.optional(types.string()),
|
|
1173
|
+
thumbnailUrl: types.optional(types.string()),
|
|
1189
1174
|
});
|
|
1190
|
-
export function
|
|
1191
|
-
return safeParse(jsonString, (x) =>
|
|
1175
|
+
export function collectHashtagPostsMediaFromJSON(jsonString) {
|
|
1176
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsMedia' from JSON`);
|
|
1192
1177
|
}
|
|
1193
1178
|
/** @internal */
|
|
1194
|
-
export const
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1179
|
+
export const CollectHashtagPostsPost$inboundSchema = z.object({
|
|
1180
|
+
postUrl: types.string(),
|
|
1181
|
+
postUrn: types.string(),
|
|
1182
|
+
text: types.string(),
|
|
1183
|
+
date: types.number(),
|
|
1184
|
+
likesCount: types.number(),
|
|
1185
|
+
commentsCount: types.number(),
|
|
1186
|
+
sharesCount: types.number(),
|
|
1187
|
+
author: z.lazy(() => CollectHashtagPostsAuthor$inboundSchema),
|
|
1188
|
+
media: types.optional(z.lazy(() => CollectHashtagPostsMedia$inboundSchema)),
|
|
1189
|
+
});
|
|
1190
|
+
export function collectHashtagPostsPostFromJSON(jsonString) {
|
|
1191
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsPost' from JSON`);
|
|
1192
|
+
}
|
|
1193
|
+
/** @internal */
|
|
1194
|
+
export const CollectHashtagPostsResponse$inboundSchema = z.object({
|
|
1195
|
+
success: types.literal(true),
|
|
1196
|
+
posts: z.array(z.lazy(() => CollectHashtagPostsPost$inboundSchema)),
|
|
1197
|
+
total: types.number(),
|
|
1198
|
+
hasMore: types.boolean(),
|
|
1198
1199
|
creditsUsed: types.number(),
|
|
1199
|
-
|
|
1200
|
-
results: types.optional(z.array(z.lazy(() => Result$inboundSchema))),
|
|
1200
|
+
retryAfter: types.number(),
|
|
1201
1201
|
});
|
|
1202
|
-
export function
|
|
1203
|
-
return safeParse(jsonString, (x) =>
|
|
1202
|
+
export function collectHashtagPostsResponseFromJSON(jsonString) {
|
|
1203
|
+
return safeParse(jsonString, (x) => CollectHashtagPostsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CollectHashtagPostsResponse' from JSON`);
|
|
1204
1204
|
}
|
|
1205
1205
|
/** @internal */
|
|
1206
1206
|
export const SearchCategoryRequest$outboundSchema = z.enum(SearchCategoryRequest);
|
|
1207
1207
|
/** @internal */
|
|
1208
|
-
export const
|
|
1209
|
-
.enum(SearchSortBy);
|
|
1208
|
+
export const SortBy$outboundSchema = z.enum(SortBy);
|
|
1210
1209
|
/** @internal */
|
|
1211
|
-
export const
|
|
1210
|
+
export const DatePosted$outboundSchema = z
|
|
1211
|
+
.enum(DatePosted);
|
|
1212
1212
|
/** @internal */
|
|
1213
|
-
export const
|
|
1213
|
+
export const ContentType$outboundSchema = z
|
|
1214
|
+
.enum(ContentType);
|
|
1214
1215
|
/** @internal */
|
|
1215
|
-
export const
|
|
1216
|
+
export const ConnectionDegree$outboundSchema = z.enum(ConnectionDegree);
|
|
1216
1217
|
/** @internal */
|
|
1217
|
-
export const
|
|
1218
|
+
export const CompanySize$outboundSchema = z
|
|
1219
|
+
.enum(CompanySize);
|
|
1218
1220
|
/** @internal */
|
|
1219
|
-
export const
|
|
1221
|
+
export const JobType$outboundSchema = z.enum(JobType);
|
|
1220
1222
|
/** @internal */
|
|
1221
|
-
export const
|
|
1223
|
+
export const ExperienceLevel$outboundSchema = z.enum(ExperienceLevel);
|
|
1222
1224
|
/** @internal */
|
|
1223
|
-
export const
|
|
1225
|
+
export const WorkplaceType$outboundSchema = z.enum(WorkplaceType);
|
|
1224
1226
|
/** @internal */
|
|
1225
1227
|
export const SearchRequest$outboundSchema = z.object({
|
|
1226
1228
|
category: z.optional(SearchCategoryRequest$outboundSchema),
|
|
1227
1229
|
url: z.optional(z.string()),
|
|
1228
1230
|
keywords: z.optional(z.string()),
|
|
1229
|
-
sortBy: z.optional(
|
|
1230
|
-
datePosted: z.optional(
|
|
1231
|
-
contentType: z.optional(
|
|
1231
|
+
sortBy: z.optional(SortBy$outboundSchema),
|
|
1232
|
+
datePosted: z.optional(DatePosted$outboundSchema),
|
|
1233
|
+
contentType: z.optional(ContentType$outboundSchema),
|
|
1232
1234
|
authorIndustry: z.optional(z.array(z.string())),
|
|
1233
1235
|
authorCompany: z.optional(z.array(z.string())),
|
|
1234
|
-
connectionDegree: z.optional(z.array(
|
|
1236
|
+
connectionDegree: z.optional(z.array(ConnectionDegree$outboundSchema)),
|
|
1235
1237
|
firstName: z.optional(z.string()),
|
|
1236
1238
|
lastName: z.optional(z.string()),
|
|
1237
1239
|
title: z.optional(z.string()),
|
|
@@ -1242,10 +1244,10 @@ export const SearchRequest$outboundSchema = z.object({
|
|
|
1242
1244
|
industry: z.optional(z.array(z.string())),
|
|
1243
1245
|
currentCompany: z.optional(z.array(z.string())),
|
|
1244
1246
|
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(
|
|
1247
|
+
companySize: z.optional(z.array(CompanySize$outboundSchema)),
|
|
1248
|
+
jobType: z.optional(z.array(JobType$outboundSchema)),
|
|
1249
|
+
experienceLevel: z.optional(z.array(ExperienceLevel$outboundSchema)),
|
|
1250
|
+
workplaceType: z.optional(z.array(WorkplaceType$outboundSchema)),
|
|
1249
1251
|
start: z.optional(z.int()),
|
|
1250
1252
|
count: z.optional(z.int()),
|
|
1251
1253
|
});
|
|
@@ -1255,10 +1257,12 @@ export function searchRequestToJSON(searchRequest) {
|
|
|
1255
1257
|
/** @internal */
|
|
1256
1258
|
export const SearchCategoryResponseBody$inboundSchema = openEnums.inboundSchema(SearchCategoryResponseBody);
|
|
1257
1259
|
/** @internal */
|
|
1258
|
-
export const
|
|
1260
|
+
export const ItemsTypeJob$inboundSchema = z
|
|
1261
|
+
.enum(ItemsTypeJob);
|
|
1259
1262
|
/** @internal */
|
|
1260
|
-
export const
|
|
1261
|
-
|
|
1263
|
+
export const ItemsJob$inboundSchema = z
|
|
1264
|
+
.object({
|
|
1265
|
+
type: ItemsTypeJob$inboundSchema,
|
|
1262
1266
|
title: types.string(),
|
|
1263
1267
|
company: types.nullable(types.string()),
|
|
1264
1268
|
companyUrl: types.nullable(types.string()),
|
|
@@ -1269,14 +1273,14 @@ export const SearchItemsJob$inboundSchema = z.object({
|
|
|
1269
1273
|
jobUrl: types.string(),
|
|
1270
1274
|
listingId: types.string(),
|
|
1271
1275
|
});
|
|
1272
|
-
export function
|
|
1273
|
-
return safeParse(jsonString, (x) =>
|
|
1276
|
+
export function itemsJobFromJSON(jsonString) {
|
|
1277
|
+
return safeParse(jsonString, (x) => ItemsJob$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsJob' from JSON`);
|
|
1274
1278
|
}
|
|
1275
1279
|
/** @internal */
|
|
1276
|
-
export const
|
|
1280
|
+
export const ItemsTypeCompany$inboundSchema = z.enum(ItemsTypeCompany);
|
|
1277
1281
|
/** @internal */
|
|
1278
|
-
export const
|
|
1279
|
-
type:
|
|
1282
|
+
export const ItemsCompany$inboundSchema = z.object({
|
|
1283
|
+
type: ItemsTypeCompany$inboundSchema,
|
|
1280
1284
|
name: types.string(),
|
|
1281
1285
|
profileUrl: types.nullable(types.string()),
|
|
1282
1286
|
summary: types.nullable(types.string()),
|
|
@@ -1284,41 +1288,43 @@ export const SearchItemsCompany$inboundSchema = z.object({
|
|
|
1284
1288
|
location: types.nullable(types.string()),
|
|
1285
1289
|
followersCount: types.nullable(types.number()),
|
|
1286
1290
|
});
|
|
1287
|
-
export function
|
|
1288
|
-
return safeParse(jsonString, (x) =>
|
|
1291
|
+
export function itemsCompanyFromJSON(jsonString) {
|
|
1292
|
+
return safeParse(jsonString, (x) => ItemsCompany$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsCompany' from JSON`);
|
|
1289
1293
|
}
|
|
1290
1294
|
/** @internal */
|
|
1291
|
-
export const
|
|
1295
|
+
export const ItemsTypePeople$inboundSchema = z.enum(ItemsTypePeople);
|
|
1292
1296
|
/** @internal */
|
|
1293
|
-
export const
|
|
1297
|
+
export const ItemsNetworkDistance$inboundSchema = openEnums.inboundSchema(ItemsNetworkDistance);
|
|
1294
1298
|
/** @internal */
|
|
1295
|
-
export const
|
|
1299
|
+
export const ItemsCurrentPosition$inboundSchema = z.object({
|
|
1296
1300
|
company: types.nullable(types.string()),
|
|
1297
1301
|
role: types.nullable(types.string()),
|
|
1298
1302
|
});
|
|
1299
|
-
export function
|
|
1300
|
-
return safeParse(jsonString, (x) =>
|
|
1303
|
+
export function itemsCurrentPositionFromJSON(jsonString) {
|
|
1304
|
+
return safeParse(jsonString, (x) => ItemsCurrentPosition$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsCurrentPosition' from JSON`);
|
|
1301
1305
|
}
|
|
1302
1306
|
/** @internal */
|
|
1303
|
-
export const
|
|
1304
|
-
|
|
1307
|
+
export const ItemsPeople$inboundSchema = z
|
|
1308
|
+
.object({
|
|
1309
|
+
type: ItemsTypePeople$inboundSchema,
|
|
1305
1310
|
name: types.string(),
|
|
1306
1311
|
profileUrl: types.nullable(types.string()),
|
|
1307
1312
|
headline: types.nullable(types.string()),
|
|
1308
1313
|
location: types.nullable(types.string()),
|
|
1309
1314
|
profilePicture: types.nullable(types.string()),
|
|
1310
|
-
networkDistance: types.nullable(
|
|
1311
|
-
currentPositions: z.array(z.lazy(() =>
|
|
1315
|
+
networkDistance: types.nullable(ItemsNetworkDistance$inboundSchema),
|
|
1316
|
+
currentPositions: z.array(z.lazy(() => ItemsCurrentPosition$inboundSchema)),
|
|
1312
1317
|
profileUrn: types.nullable(types.string()),
|
|
1313
1318
|
publicIdentifier: types.nullable(types.string()),
|
|
1314
1319
|
});
|
|
1315
|
-
export function
|
|
1316
|
-
return safeParse(jsonString, (x) =>
|
|
1320
|
+
export function itemsPeopleFromJSON(jsonString) {
|
|
1321
|
+
return safeParse(jsonString, (x) => ItemsPeople$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsPeople' from JSON`);
|
|
1317
1322
|
}
|
|
1318
1323
|
/** @internal */
|
|
1319
|
-
export const
|
|
1324
|
+
export const ItemsTypePost$inboundSchema = z.enum(ItemsTypePost);
|
|
1320
1325
|
/** @internal */
|
|
1321
|
-
export const
|
|
1326
|
+
export const ItemsAuthor$inboundSchema = z
|
|
1327
|
+
.object({
|
|
1322
1328
|
name: types.string(),
|
|
1323
1329
|
profileUrl: types.nullable(types.string()),
|
|
1324
1330
|
headline: types.nullable(types.string()),
|
|
@@ -1327,25 +1333,26 @@ export const SearchAuthor$inboundSchema = z.object({
|
|
|
1327
1333
|
publicIdentifier: types.nullable(types.string()),
|
|
1328
1334
|
profileUrn: types.nullable(types.string()),
|
|
1329
1335
|
});
|
|
1330
|
-
export function
|
|
1331
|
-
return safeParse(jsonString, (x) =>
|
|
1336
|
+
export function itemsAuthorFromJSON(jsonString) {
|
|
1337
|
+
return safeParse(jsonString, (x) => ItemsAuthor$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsAuthor' from JSON`);
|
|
1332
1338
|
}
|
|
1333
1339
|
/** @internal */
|
|
1334
|
-
export const
|
|
1340
|
+
export const ItemsMediaType$inboundSchema = openEnums.inboundSchema(ItemsMediaType);
|
|
1335
1341
|
/** @internal */
|
|
1336
|
-
export const
|
|
1342
|
+
export const ItemsMedia$inboundSchema = z
|
|
1337
1343
|
.object({
|
|
1338
|
-
type:
|
|
1344
|
+
type: ItemsMediaType$inboundSchema,
|
|
1339
1345
|
urls: z.array(types.string()),
|
|
1340
1346
|
title: types.optional(types.string()),
|
|
1341
1347
|
thumbnailUrl: types.optional(types.string()),
|
|
1342
1348
|
});
|
|
1343
|
-
export function
|
|
1344
|
-
return safeParse(jsonString, (x) =>
|
|
1349
|
+
export function itemsMediaFromJSON(jsonString) {
|
|
1350
|
+
return safeParse(jsonString, (x) => ItemsMedia$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsMedia' from JSON`);
|
|
1345
1351
|
}
|
|
1346
1352
|
/** @internal */
|
|
1347
|
-
export const
|
|
1348
|
-
|
|
1353
|
+
export const ItemsPost$inboundSchema = z
|
|
1354
|
+
.object({
|
|
1355
|
+
type: ItemsTypePost$inboundSchema,
|
|
1349
1356
|
postUrl: types.string(),
|
|
1350
1357
|
text: types.string(),
|
|
1351
1358
|
date: types.number(),
|
|
@@ -1354,43 +1361,43 @@ export const SearchItemsPost$inboundSchema = z.object({
|
|
|
1354
1361
|
sharesCount: types.number(),
|
|
1355
1362
|
postUrn: types.string(),
|
|
1356
1363
|
postId: types.string(),
|
|
1357
|
-
author: z.lazy(() =>
|
|
1364
|
+
author: z.lazy(() => ItemsAuthor$inboundSchema),
|
|
1358
1365
|
isRepost: types.boolean(),
|
|
1359
|
-
media: types.optional(z.lazy(() =>
|
|
1366
|
+
media: types.optional(z.lazy(() => ItemsMedia$inboundSchema)),
|
|
1360
1367
|
});
|
|
1361
|
-
export function
|
|
1362
|
-
return safeParse(jsonString, (x) =>
|
|
1368
|
+
export function itemsPostFromJSON(jsonString) {
|
|
1369
|
+
return safeParse(jsonString, (x) => ItemsPost$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemsPost' from JSON`);
|
|
1363
1370
|
}
|
|
1364
1371
|
/** @internal */
|
|
1365
|
-
export const
|
|
1366
|
-
z.array(z.lazy(() =>
|
|
1367
|
-
z.array(z.lazy(() =>
|
|
1368
|
-
z.array(z.lazy(() =>
|
|
1369
|
-
z.array(z.lazy(() =>
|
|
1372
|
+
export const Items$inboundSchema = smartUnion([
|
|
1373
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
1374
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
1375
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
1376
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
1370
1377
|
]);
|
|
1371
|
-
export function
|
|
1372
|
-
return safeParse(jsonString, (x) =>
|
|
1378
|
+
export function itemsFromJSON(jsonString) {
|
|
1379
|
+
return safeParse(jsonString, (x) => Items$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Items' from JSON`);
|
|
1373
1380
|
}
|
|
1374
1381
|
/** @internal */
|
|
1375
|
-
export const
|
|
1382
|
+
export const SearchPagingResponseBody$inboundSchema = z.object({
|
|
1376
1383
|
start: types.number(),
|
|
1377
1384
|
count: types.number(),
|
|
1378
1385
|
total: types.number(),
|
|
1379
1386
|
});
|
|
1380
|
-
export function
|
|
1381
|
-
return safeParse(jsonString, (x) =>
|
|
1387
|
+
export function searchPagingResponseBodyFromJSON(jsonString) {
|
|
1388
|
+
return safeParse(jsonString, (x) => SearchPagingResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchPagingResponseBody' from JSON`);
|
|
1382
1389
|
}
|
|
1383
1390
|
/** @internal */
|
|
1384
1391
|
export const SearchResponse$inboundSchema = z.object({
|
|
1385
1392
|
success: types.literal(true),
|
|
1386
1393
|
category: SearchCategoryResponseBody$inboundSchema,
|
|
1387
1394
|
items: smartUnion([
|
|
1388
|
-
z.array(z.lazy(() =>
|
|
1389
|
-
z.array(z.lazy(() =>
|
|
1390
|
-
z.array(z.lazy(() =>
|
|
1391
|
-
z.array(z.lazy(() =>
|
|
1395
|
+
z.array(z.lazy(() => ItemsPost$inboundSchema)),
|
|
1396
|
+
z.array(z.lazy(() => ItemsPeople$inboundSchema)),
|
|
1397
|
+
z.array(z.lazy(() => ItemsCompany$inboundSchema)),
|
|
1398
|
+
z.array(z.lazy(() => ItemsJob$inboundSchema)),
|
|
1392
1399
|
]),
|
|
1393
|
-
paging: z.lazy(() =>
|
|
1400
|
+
paging: z.lazy(() => SearchPagingResponseBody$inboundSchema),
|
|
1394
1401
|
hasMore: types.boolean(),
|
|
1395
1402
|
creditsUsed: types.number(),
|
|
1396
1403
|
retryAfter: types.number(),
|
|
@@ -1399,60 +1406,6 @@ export function searchResponseFromJSON(jsonString) {
|
|
|
1399
1406
|
return safeParse(jsonString, (x) => SearchResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchResponse' from JSON`);
|
|
1400
1407
|
}
|
|
1401
1408
|
/** @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
1409
|
export const SearchPostsSortBy$outboundSchema = z.enum(SearchPostsSortBy);
|
|
1457
1410
|
/** @internal */
|
|
1458
1411
|
export const SearchPostsDatePosted$outboundSchema = z.enum(SearchPostsDatePosted);
|
|
@@ -1617,4 +1570,58 @@ export const SearchPeopleResponse$inboundSchema = z.object({
|
|
|
1617
1570
|
export function searchPeopleResponseFromJSON(jsonString) {
|
|
1618
1571
|
return safeParse(jsonString, (x) => SearchPeopleResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchPeopleResponse' from JSON`);
|
|
1619
1572
|
}
|
|
1620
|
-
|
|
1573
|
+
/** @internal */
|
|
1574
|
+
export const SearchCompaniesCompanySize$outboundSchema = z.enum(SearchCompaniesCompanySize);
|
|
1575
|
+
/** @internal */
|
|
1576
|
+
export const SearchCompaniesRequest$outboundSchema = z.object({
|
|
1577
|
+
keywords: z.optional(z.string()),
|
|
1578
|
+
url: z.optional(z.string()),
|
|
1579
|
+
location: z.optional(z.array(z.string())),
|
|
1580
|
+
industry: z.optional(z.array(z.string())),
|
|
1581
|
+
companySize: z.optional(z.array(SearchCompaniesCompanySize$outboundSchema)),
|
|
1582
|
+
start: z.optional(z.int()),
|
|
1583
|
+
count: z.optional(z.int()),
|
|
1584
|
+
});
|
|
1585
|
+
export function searchCompaniesRequestToJSON(searchCompaniesRequest) {
|
|
1586
|
+
return JSON.stringify(SearchCompaniesRequest$outboundSchema.parse(searchCompaniesRequest));
|
|
1587
|
+
}
|
|
1588
|
+
/** @internal */
|
|
1589
|
+
export const SearchCompaniesCategory$inboundSchema = z.enum(SearchCompaniesCategory);
|
|
1590
|
+
/** @internal */
|
|
1591
|
+
export const SearchCompaniesType$inboundSchema = z.enum(SearchCompaniesType);
|
|
1592
|
+
/** @internal */
|
|
1593
|
+
export const SearchCompaniesItem$inboundSchema = z.object({
|
|
1594
|
+
type: SearchCompaniesType$inboundSchema,
|
|
1595
|
+
name: types.string(),
|
|
1596
|
+
profileUrl: types.nullable(types.string()),
|
|
1597
|
+
summary: types.nullable(types.string()),
|
|
1598
|
+
industry: types.nullable(types.string()),
|
|
1599
|
+
location: types.nullable(types.string()),
|
|
1600
|
+
followersCount: types.nullable(types.number()),
|
|
1601
|
+
});
|
|
1602
|
+
export function searchCompaniesItemFromJSON(jsonString) {
|
|
1603
|
+
return safeParse(jsonString, (x) => SearchCompaniesItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesItem' from JSON`);
|
|
1604
|
+
}
|
|
1605
|
+
/** @internal */
|
|
1606
|
+
export const SearchCompaniesPaging$inboundSchema = z.object({
|
|
1607
|
+
start: types.number(),
|
|
1608
|
+
count: types.number(),
|
|
1609
|
+
total: types.number(),
|
|
1610
|
+
});
|
|
1611
|
+
export function searchCompaniesPagingFromJSON(jsonString) {
|
|
1612
|
+
return safeParse(jsonString, (x) => SearchCompaniesPaging$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesPaging' from JSON`);
|
|
1613
|
+
}
|
|
1614
|
+
/** @internal */
|
|
1615
|
+
export const SearchCompaniesResponse$inboundSchema = z.object({
|
|
1616
|
+
success: types.literal(true),
|
|
1617
|
+
category: SearchCompaniesCategory$inboundSchema,
|
|
1618
|
+
items: z.array(z.lazy(() => SearchCompaniesItem$inboundSchema)),
|
|
1619
|
+
paging: z.lazy(() => SearchCompaniesPaging$inboundSchema),
|
|
1620
|
+
hasMore: types.boolean(),
|
|
1621
|
+
creditsUsed: types.number(),
|
|
1622
|
+
retryAfter: types.number(),
|
|
1623
|
+
});
|
|
1624
|
+
export function searchCompaniesResponseFromJSON(jsonString) {
|
|
1625
|
+
return safeParse(jsonString, (x) => SearchCompaniesResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SearchCompaniesResponse' from JSON`);
|
|
1626
|
+
}
|
|
1627
|
+
//# sourceMappingURL=search-companies-response.js.map
|