linkedapi 1.6.3__tar.gz → 1.6.5__tar.gz
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.
- {linkedapi-1.6.3 → linkedapi-1.6.5}/PKG-INFO +1 -1
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/__init__.py +29 -15
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/client.py +21 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/errors.py +16 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/__init__.py +14 -0
- linkedapi-1.6.5/linkedapi/operations/archive_job.py +14 -0
- linkedapi-1.6.5/linkedapi/operations/delete_tracked_job.py +14 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/fetch_company.py +2 -0
- linkedapi-1.6.5/linkedapi/operations/retrieve_tracked_jobs.py +17 -0
- linkedapi-1.6.5/linkedapi/operations/save_job.py +15 -0
- linkedapi-1.6.5/linkedapi/operations/set_job_stage.py +15 -0
- linkedapi-1.6.5/linkedapi/operations/unarchive_job.py +14 -0
- linkedapi-1.6.5/linkedapi/operations/unsave_job.py +14 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/__init__.py +30 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/admin/limits.py +1 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/company.py +15 -2
- linkedapi-1.6.5/linkedapi/types/job_tracker.py +72 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/jobs.py +1 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/signals.py +85 -8
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/webhooks.py +3 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/pyproject.toml +1 -1
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_errors.py +8 -0
- linkedapi-1.6.5/tests/test_job_tracker.py +203 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_open_vocabularies.py +15 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_operations.py +8 -1
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_signals.py +78 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/.github/workflows/publish.yaml +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/.gitignore +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/LICENSE +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/README.md +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/examples/verify_webhook_signature.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/accounts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/admin.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/http_client.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/limits.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/subscription.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/admin/webhooks.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/changelog.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/config.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/core/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/core/operation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/core/polling.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/http/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/http/base.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/http/linked_api_http_client.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/array.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/base.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/endorse_person_skills.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/send_message.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/simple.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/then.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/mappers/void.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/accept_invitation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/check_connection_status.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/comment_on_post.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/create_post.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/create_repost.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/custom_workflow.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/endorse_person_skill.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/endorse_person_skills.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/fetch_job.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/fetch_person.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/fetch_post.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/find_person_by_email.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/find_person_email.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/ignore_invitation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/manage_conversation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_create_list.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_create_saved_search.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_delete_list.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_delete_saved_search.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_fetch_company.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_fetch_person.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_manage_conversation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_remove_account_from_list.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_remove_lead_from_list.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_rename_list.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_retrieve_list_accounts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_retrieve_list_leads.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_retrieve_lists.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_retrieve_saved_searches.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_save_account.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_save_lead.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_search_companies.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_search_people.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_send_message.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_sync_conversation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_sync_inbox.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_unsave_account.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/nv_unsave_lead.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_archive_project.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_create_project.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_fetch_person.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_rename_project.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_retrieve_project_candidates.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_retrieve_projects.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_save_to_project.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_search_people.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_send_message.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/rc_sync_inbox.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/react_to_comment.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/react_to_post.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/remove_connection.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/reply_to_comment.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_connections.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_feed.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_invitations.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_pending_requests.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_performance.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/retrieve_ssi.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/search_companies.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/search_jobs.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/search_people.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/search_posts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/send_connection_request.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/send_message.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/sync_conversation.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/sync_inbox.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/sync_network.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/operations/withdraw_connection_request.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/py.typed +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/account.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/admin/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/admin/accounts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/admin/config.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/admin/subscription.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/base.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/changelog.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/connection.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/email.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/feed.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/message.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/network.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/nv_alerts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/nv_list_management.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/nv_list_members.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/nv_saved_searches.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/nv_saved_subjects.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/params.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/person.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/post.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/profile_viewers.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/rc_people.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/rc_projects.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/responses.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/search_companies.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/search_people.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/search_posts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/statistics.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/viewer_state.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/types/workflow.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/webhooks/__init__.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/webhooks/headers.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/webhooks/parse.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/linkedapi/webhooks/signature.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/conftest.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_admin.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_admin_webhooks.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_changelog.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_direct_methods.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_endorse_operations.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_find_person_email.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_http_client.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_limits_categories.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_mappers.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_models.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_nv_backlog.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_nv_list_management.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_nv_retrieve_alerts.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_nv_saved_subjects.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_polling.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_rc_operations.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_webhook_signature.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_webhooks.py +0 -0
- {linkedapi-1.6.3 → linkedapi-1.6.5}/tests/test_working_hours_contract.py +0 -0
|
@@ -31,11 +31,13 @@ from linkedapi.mappers import (
|
|
|
31
31
|
)
|
|
32
32
|
from linkedapi.operations import (
|
|
33
33
|
AcceptInvitation,
|
|
34
|
+
ArchiveJob,
|
|
34
35
|
CheckConnectionStatus,
|
|
35
36
|
CommentOnPost,
|
|
36
37
|
CreatePost,
|
|
37
38
|
CreateRepost,
|
|
38
39
|
CustomWorkflow,
|
|
40
|
+
DeleteTrackedJob,
|
|
39
41
|
EndorsePersonSkill,
|
|
40
42
|
EndorsePersonSkills,
|
|
41
43
|
FetchCompany,
|
|
@@ -98,15 +100,20 @@ from linkedapi.operations import (
|
|
|
98
100
|
RetrievePerformance,
|
|
99
101
|
RetrieveProfileViewers,
|
|
100
102
|
RetrieveSSI,
|
|
103
|
+
RetrieveTrackedJobs,
|
|
104
|
+
SaveJob,
|
|
101
105
|
SearchCompanies,
|
|
102
106
|
SearchJobs,
|
|
103
107
|
SearchPeople,
|
|
104
108
|
SearchPosts,
|
|
105
109
|
SendConnectionRequest,
|
|
106
110
|
SendMessage,
|
|
111
|
+
SetJobStage,
|
|
107
112
|
SyncConversation,
|
|
108
113
|
SyncInbox,
|
|
109
114
|
SyncNetwork,
|
|
115
|
+
UnarchiveJob,
|
|
116
|
+
UnsaveJob,
|
|
110
117
|
WithdrawConnectionRequest,
|
|
111
118
|
)
|
|
112
119
|
from linkedapi.types import * # noqa: F403
|
|
@@ -118,18 +125,19 @@ from linkedapi.webhooks import (
|
|
|
118
125
|
verify_webhook_signature,
|
|
119
126
|
)
|
|
120
127
|
|
|
121
|
-
__version__ = "1.6.
|
|
128
|
+
__version__ = "1.6.5"
|
|
122
129
|
PredefinedOperation = Operation
|
|
123
130
|
|
|
124
131
|
__all__ = [
|
|
125
132
|
*_types_all,
|
|
126
133
|
"AcceptInvitation",
|
|
134
|
+
"ActionConfig",
|
|
127
135
|
"AdminAccounts",
|
|
128
136
|
"AdminHttpClient",
|
|
129
137
|
"AdminLimits",
|
|
130
138
|
"AdminSubscription",
|
|
131
139
|
"AdminWebhooks",
|
|
132
|
-
"
|
|
140
|
+
"ArchiveJob",
|
|
133
141
|
"ArrayWorkflowMapper",
|
|
134
142
|
"BaseMapper",
|
|
135
143
|
"CheckConnectionStatus",
|
|
@@ -137,6 +145,7 @@ __all__ = [
|
|
|
137
145
|
"CreatePost",
|
|
138
146
|
"CreateRepost",
|
|
139
147
|
"CustomWorkflow",
|
|
148
|
+
"DeleteTrackedJob",
|
|
140
149
|
"EndorsePersonSkill",
|
|
141
150
|
"EndorsePersonSkills",
|
|
142
151
|
"FetchCompany",
|
|
@@ -145,10 +154,10 @@ __all__ = [
|
|
|
145
154
|
"FetchJobMapper",
|
|
146
155
|
"FetchPerson",
|
|
147
156
|
"FetchPersonMapper",
|
|
148
|
-
"FindPersonByEmail",
|
|
149
|
-
"FindPersonEmail",
|
|
150
157
|
"FetchPost",
|
|
151
158
|
"FetchPostMapper",
|
|
159
|
+
"FindPersonByEmail",
|
|
160
|
+
"FindPersonEmail",
|
|
152
161
|
"HttpClient",
|
|
153
162
|
"IgnoreInvitation",
|
|
154
163
|
"LINKED_API_ACTION_ERROR_TYPES",
|
|
@@ -163,32 +172,32 @@ __all__ = [
|
|
|
163
172
|
"LinkedApiWorkflowTimeoutError",
|
|
164
173
|
"ManageConversation",
|
|
165
174
|
"MappedResponse",
|
|
175
|
+
"NvCreateList",
|
|
176
|
+
"NvCreateSavedSearch",
|
|
177
|
+
"NvDeleteList",
|
|
178
|
+
"NvDeleteSavedSearch",
|
|
166
179
|
"NvFetchCompany",
|
|
167
180
|
"NvFetchCompanyMapper",
|
|
168
181
|
"NvFetchPerson",
|
|
169
182
|
"NvFetchPersonMapper",
|
|
170
183
|
"NvManageConversation",
|
|
171
|
-
"NvRetrieveAlerts",
|
|
172
|
-
"NvRetrieveLists",
|
|
173
|
-
"NvDeleteList",
|
|
174
|
-
"NvCreateList",
|
|
175
|
-
"NvDeleteSavedSearch",
|
|
176
|
-
"NvCreateSavedSearch",
|
|
177
|
-
"NvRetrieveSavedSearches",
|
|
178
|
-
"NvRenameList",
|
|
179
184
|
"NvRemoveAccountFromList",
|
|
180
185
|
"NvRemoveLeadFromList",
|
|
186
|
+
"NvRenameList",
|
|
187
|
+
"NvRetrieveAlerts",
|
|
181
188
|
"NvRetrieveListAccounts",
|
|
182
189
|
"NvRetrieveListLeads",
|
|
183
|
-
"
|
|
190
|
+
"NvRetrieveLists",
|
|
191
|
+
"NvRetrieveSavedSearches",
|
|
184
192
|
"NvSaveAccount",
|
|
185
|
-
"NvUnsaveLead",
|
|
186
193
|
"NvSaveLead",
|
|
187
194
|
"NvSearchCompanies",
|
|
188
195
|
"NvSearchPeople",
|
|
189
196
|
"NvSendMessage",
|
|
190
197
|
"NvSyncConversation",
|
|
191
198
|
"NvSyncInbox",
|
|
199
|
+
"NvUnsaveAccount",
|
|
200
|
+
"NvUnsaveLead",
|
|
192
201
|
"Operation",
|
|
193
202
|
"PredefinedOperation",
|
|
194
203
|
"RcArchiveProject",
|
|
@@ -207,24 +216,29 @@ __all__ = [
|
|
|
207
216
|
"RemoveConnection",
|
|
208
217
|
"ReplyToComment",
|
|
209
218
|
"ResponseMapping",
|
|
210
|
-
"RetrieveInvitations",
|
|
211
219
|
"RetrieveConnections",
|
|
212
220
|
"RetrieveFeed",
|
|
221
|
+
"RetrieveInvitations",
|
|
213
222
|
"RetrievePendingRequests",
|
|
214
223
|
"RetrievePerformance",
|
|
215
224
|
"RetrieveProfileViewers",
|
|
216
225
|
"RetrieveSSI",
|
|
226
|
+
"RetrieveTrackedJobs",
|
|
227
|
+
"SaveJob",
|
|
217
228
|
"SearchCompanies",
|
|
218
229
|
"SearchJobs",
|
|
219
230
|
"SearchPeople",
|
|
220
231
|
"SearchPosts",
|
|
221
232
|
"SendConnectionRequest",
|
|
222
233
|
"SendMessage",
|
|
234
|
+
"SetJobStage",
|
|
223
235
|
"SimpleWorkflowMapper",
|
|
224
236
|
"SyncConversation",
|
|
225
237
|
"SyncInbox",
|
|
226
238
|
"SyncNetwork",
|
|
227
239
|
"ThenWorkflowMapper",
|
|
240
|
+
"UnarchiveJob",
|
|
241
|
+
"UnsaveJob",
|
|
228
242
|
"VoidWorkflowMapper",
|
|
229
243
|
"WEBHOOK_SIGNATURE_HEADER",
|
|
230
244
|
"WEBHOOK_SIGNATURE_TIMESTAMP_HEADER",
|
|
@@ -9,11 +9,13 @@ from linkedapi.http import HttpClient, LinkedApiHttpClient
|
|
|
9
9
|
from linkedapi.mappers import MappedResponse
|
|
10
10
|
from linkedapi.operations import (
|
|
11
11
|
AcceptInvitation,
|
|
12
|
+
ArchiveJob,
|
|
12
13
|
CheckConnectionStatus,
|
|
13
14
|
CommentOnPost,
|
|
14
15
|
CreatePost,
|
|
15
16
|
CreateRepost,
|
|
16
17
|
CustomWorkflow,
|
|
18
|
+
DeleteTrackedJob,
|
|
17
19
|
EndorsePersonSkill,
|
|
18
20
|
EndorsePersonSkills,
|
|
19
21
|
FetchCompany,
|
|
@@ -69,15 +71,20 @@ from linkedapi.operations import (
|
|
|
69
71
|
RetrievePerformance,
|
|
70
72
|
RetrieveProfileViewers,
|
|
71
73
|
RetrieveSSI,
|
|
74
|
+
RetrieveTrackedJobs,
|
|
75
|
+
SaveJob,
|
|
72
76
|
SearchCompanies,
|
|
73
77
|
SearchJobs,
|
|
74
78
|
SearchPeople,
|
|
75
79
|
SearchPosts,
|
|
76
80
|
SendConnectionRequest,
|
|
77
81
|
SendMessage,
|
|
82
|
+
SetJobStage,
|
|
78
83
|
SyncConversation,
|
|
79
84
|
SyncInbox,
|
|
80
85
|
SyncNetwork,
|
|
86
|
+
UnarchiveJob,
|
|
87
|
+
UnsaveJob,
|
|
81
88
|
WithdrawConnectionRequest,
|
|
82
89
|
)
|
|
83
90
|
from linkedapi.types import AccountInfo, LinkedApiActionError, LinkedApiResponse, serialize_value
|
|
@@ -138,6 +145,13 @@ class LinkedApi:
|
|
|
138
145
|
self.endorse_person_skills = EndorsePersonSkills(self.http_client)
|
|
139
146
|
self.fetch_post = FetchPost(self.http_client)
|
|
140
147
|
self.fetch_job = FetchJob(self.http_client)
|
|
148
|
+
self.retrieve_tracked_jobs = RetrieveTrackedJobs(self.http_client)
|
|
149
|
+
self.save_job = SaveJob(self.http_client)
|
|
150
|
+
self.unsave_job = UnsaveJob(self.http_client)
|
|
151
|
+
self.set_job_stage = SetJobStage(self.http_client)
|
|
152
|
+
self.archive_job = ArchiveJob(self.http_client)
|
|
153
|
+
self.unarchive_job = UnarchiveJob(self.http_client)
|
|
154
|
+
self.delete_tracked_job = DeleteTrackedJob(self.http_client)
|
|
141
155
|
self.react_to_post = ReactToPost(self.http_client)
|
|
142
156
|
self.comment_on_post = CommentOnPost(self.http_client)
|
|
143
157
|
self.react_to_comment = ReactToComment(self.http_client)
|
|
@@ -212,6 +226,13 @@ class LinkedApi:
|
|
|
212
226
|
self.endorse_person_skills,
|
|
213
227
|
self.fetch_post,
|
|
214
228
|
self.fetch_job,
|
|
229
|
+
self.retrieve_tracked_jobs,
|
|
230
|
+
self.save_job,
|
|
231
|
+
self.unsave_job,
|
|
232
|
+
self.set_job_stage,
|
|
233
|
+
self.archive_job,
|
|
234
|
+
self.unarchive_job,
|
|
235
|
+
self.delete_tracked_job,
|
|
215
236
|
self.react_to_post,
|
|
216
237
|
self.comment_on_post,
|
|
217
238
|
self.react_to_comment,
|
|
@@ -38,6 +38,14 @@ LinkedApiActionErrorType = Literal[
|
|
|
38
38
|
"savedSearchQueryMismatch",
|
|
39
39
|
"postNotFound",
|
|
40
40
|
"jobNotFound",
|
|
41
|
+
"jobNotTracked",
|
|
42
|
+
"jobNotArchived",
|
|
43
|
+
"jobArchived",
|
|
44
|
+
"stageNotAvailable",
|
|
45
|
+
"stageManagedByLinkedIn",
|
|
46
|
+
"stageNotHonoured",
|
|
47
|
+
"saveControlNotOffered",
|
|
48
|
+
"trackerTooLarge",
|
|
41
49
|
"commentingNotAllowed",
|
|
42
50
|
"commentNotFound",
|
|
43
51
|
"replyingNotAllowed",
|
|
@@ -103,6 +111,14 @@ LINKED_API_ACTION_ERROR_TYPES: tuple[str, ...] = (
|
|
|
103
111
|
"savedSearchQueryMismatch",
|
|
104
112
|
"postNotFound",
|
|
105
113
|
"jobNotFound",
|
|
114
|
+
"jobNotTracked",
|
|
115
|
+
"jobNotArchived",
|
|
116
|
+
"jobArchived",
|
|
117
|
+
"stageNotAvailable",
|
|
118
|
+
"stageManagedByLinkedIn",
|
|
119
|
+
"stageNotHonoured",
|
|
120
|
+
"saveControlNotOffered",
|
|
121
|
+
"trackerTooLarge",
|
|
106
122
|
"commentingNotAllowed",
|
|
107
123
|
"commentNotFound",
|
|
108
124
|
"replyingNotAllowed",
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from linkedapi.operations.accept_invitation import AcceptInvitation
|
|
2
|
+
from linkedapi.operations.archive_job import ArchiveJob
|
|
2
3
|
from linkedapi.operations.check_connection_status import CheckConnectionStatus
|
|
3
4
|
from linkedapi.operations.comment_on_post import CommentOnPost
|
|
4
5
|
from linkedapi.operations.create_post import CreatePost
|
|
5
6
|
from linkedapi.operations.create_repost import CreateRepost
|
|
6
7
|
from linkedapi.operations.custom_workflow import CustomWorkflow
|
|
8
|
+
from linkedapi.operations.delete_tracked_job import DeleteTrackedJob
|
|
7
9
|
from linkedapi.operations.endorse_person_skill import EndorsePersonSkill
|
|
8
10
|
from linkedapi.operations.endorse_person_skills import EndorsePersonSkills
|
|
9
11
|
from linkedapi.operations.fetch_company import FetchCompany, FetchCompanyMapper
|
|
@@ -59,24 +61,31 @@ from linkedapi.operations.retrieve_pending_requests import RetrievePendingReques
|
|
|
59
61
|
from linkedapi.operations.retrieve_performance import RetrievePerformance
|
|
60
62
|
from linkedapi.operations.retrieve_profile_viewers import RetrieveProfileViewers
|
|
61
63
|
from linkedapi.operations.retrieve_ssi import RetrieveSSI
|
|
64
|
+
from linkedapi.operations.retrieve_tracked_jobs import RetrieveTrackedJobs
|
|
65
|
+
from linkedapi.operations.save_job import SaveJob
|
|
62
66
|
from linkedapi.operations.search_companies import SearchCompanies
|
|
63
67
|
from linkedapi.operations.search_jobs import SearchJobs
|
|
64
68
|
from linkedapi.operations.search_people import SearchPeople
|
|
65
69
|
from linkedapi.operations.search_posts import SearchPosts
|
|
66
70
|
from linkedapi.operations.send_connection_request import SendConnectionRequest
|
|
67
71
|
from linkedapi.operations.send_message import SendMessage
|
|
72
|
+
from linkedapi.operations.set_job_stage import SetJobStage
|
|
68
73
|
from linkedapi.operations.sync_conversation import SyncConversation
|
|
69
74
|
from linkedapi.operations.sync_inbox import SyncInbox
|
|
70
75
|
from linkedapi.operations.sync_network import SyncNetwork
|
|
76
|
+
from linkedapi.operations.unarchive_job import UnarchiveJob
|
|
77
|
+
from linkedapi.operations.unsave_job import UnsaveJob
|
|
71
78
|
from linkedapi.operations.withdraw_connection_request import WithdrawConnectionRequest
|
|
72
79
|
|
|
73
80
|
__all__ = [
|
|
74
81
|
"AcceptInvitation",
|
|
82
|
+
"ArchiveJob",
|
|
75
83
|
"CheckConnectionStatus",
|
|
76
84
|
"CommentOnPost",
|
|
77
85
|
"CreatePost",
|
|
78
86
|
"CreateRepost",
|
|
79
87
|
"CustomWorkflow",
|
|
88
|
+
"DeleteTrackedJob",
|
|
80
89
|
"EndorsePersonSkill",
|
|
81
90
|
"EndorsePersonSkills",
|
|
82
91
|
"FetchCompany",
|
|
@@ -139,14 +148,19 @@ __all__ = [
|
|
|
139
148
|
"RetrievePerformance",
|
|
140
149
|
"RetrieveProfileViewers",
|
|
141
150
|
"RetrieveSSI",
|
|
151
|
+
"RetrieveTrackedJobs",
|
|
152
|
+
"SaveJob",
|
|
142
153
|
"SearchCompanies",
|
|
143
154
|
"SearchJobs",
|
|
144
155
|
"SearchPeople",
|
|
145
156
|
"SearchPosts",
|
|
146
157
|
"SendConnectionRequest",
|
|
147
158
|
"SendMessage",
|
|
159
|
+
"SetJobStage",
|
|
148
160
|
"SyncConversation",
|
|
149
161
|
"SyncInbox",
|
|
150
162
|
"SyncNetwork",
|
|
163
|
+
"UnarchiveJob",
|
|
164
|
+
"UnsaveJob",
|
|
151
165
|
"WithdrawConnectionRequest",
|
|
152
166
|
]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import ArchiveJobParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ArchiveJob(Operation[ArchiveJobParams, None]):
|
|
9
|
+
"""Move a tracked job to the archived stage. Archiving a job that is already archived succeeds
|
|
10
|
+
and changes nothing, and an archived job keeps its applied stamp.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
operation_name = "archiveJob"
|
|
14
|
+
mapper = VoidWorkflowMapper[ArchiveJobParams]("st.archiveJob")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import DeleteTrackedJobParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class DeleteTrackedJob(Operation[DeleteTrackedJobParams, None]):
|
|
9
|
+
"""Remove a job from the job tracker. LinkedIn treats this as permanent: the job leaves the
|
|
10
|
+
tracker from whichever stage it was in, and its applied stamp is lost.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
operation_name = "deleteTrackedJob"
|
|
14
|
+
mapper = VoidWorkflowMapper[DeleteTrackedJobParams]("st.deleteTrackedJob")
|
|
@@ -16,11 +16,13 @@ class FetchCompanyMapper(ThenWorkflowMapper[FetchCompanyParams, Company]):
|
|
|
16
16
|
),
|
|
17
17
|
ActionConfig("retrieve_dms", "st.retrieveCompanyDMs", "dms_retrieval_config"),
|
|
18
18
|
ActionConfig("retrieve_posts", "st.retrieveCompanyPosts", "posts_retrieval_config"),
|
|
19
|
+
ActionConfig("retrieve_jobs", "st.retrieveCompanyJobs", "jobs_retrieval_config"),
|
|
19
20
|
],
|
|
20
21
|
response_mappings=[
|
|
21
22
|
ResponseMapping("st.retrieveCompanyEmployees", "employees"),
|
|
22
23
|
ResponseMapping("st.retrieveCompanyDMs", "dms"),
|
|
23
24
|
ResponseMapping("st.retrieveCompanyPosts", "posts"),
|
|
25
|
+
ResponseMapping("st.retrieveCompanyJobs", "jobs"),
|
|
24
26
|
],
|
|
25
27
|
base_action_type="st.openCompanyPage",
|
|
26
28
|
default_params={"basicInfo": True},
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import ArrayWorkflowMapper
|
|
5
|
+
from linkedapi.types import RetrieveTrackedJobsParams, TrackedJob
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class RetrieveTrackedJobs(Operation[RetrieveTrackedJobsParams, list[TrackedJob]]):
|
|
9
|
+
"""Read one stage of the account's LinkedIn job tracker. A stage records where a job sits in
|
|
10
|
+
the tracker, not what reached the employer: "applied" holds jobs LinkedIn saw an application
|
|
11
|
+
start for AND jobs set_job_stage moved there, which submits nothing.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
operation_name = "retrieveTrackedJobs"
|
|
15
|
+
mapper = ArrayWorkflowMapper[RetrieveTrackedJobsParams, TrackedJob](
|
|
16
|
+
"st.retrieveTrackedJobs", TrackedJob
|
|
17
|
+
)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import SaveJobParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SaveJob(Operation[SaveJobParams, None]):
|
|
9
|
+
"""Save a job, which is what puts it in the job tracker. Saving a job that is already saved
|
|
10
|
+
succeeds and changes nothing else, except that a job re-saved after it reached "applied" loses
|
|
11
|
+
its applied stamp.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
operation_name = "saveJob"
|
|
15
|
+
mapper = VoidWorkflowMapper[SaveJobParams]("st.saveJob")
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import SetJobStageParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class SetJobStage(Operation[SetJobStageParams, None]):
|
|
9
|
+
"""Move a tracked job to another stage. It records a stage and submits no application, whatever
|
|
10
|
+
the stage is called. Pass "current_stage" when you know it: that stage is searched first, and
|
|
11
|
+
the rest are still searched after it, so a wrong value only costs time.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
operation_name = "setJobStage"
|
|
15
|
+
mapper = VoidWorkflowMapper[SetJobStageParams]("st.setJobStage")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import UnarchiveJobParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UnarchiveJob(Operation[UnarchiveJobParams, None]):
|
|
9
|
+
"""Take a job out of the archived stage into the stage you name. A job already in that stage
|
|
10
|
+
succeeds; any other job that is not archived fails with jobNotArchived.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
operation_name = "unarchiveJob"
|
|
14
|
+
mapper = VoidWorkflowMapper[UnarchiveJobParams]("st.unarchiveJob")
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import VoidWorkflowMapper
|
|
5
|
+
from linkedapi.types import UnsaveJobParams
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UnsaveJob(Operation[UnsaveJobParams, None]):
|
|
9
|
+
"""Unsave a job, taking it out of the job tracker. Unsaving a job that is not saved succeeds
|
|
10
|
+
and changes nothing; a job that had reached "applied" loses its applied stamp.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
operation_name = "unsaveJob"
|
|
14
|
+
mapper = VoidWorkflowMapper[UnsaveJobParams]("st.unsaveJob")
|
|
@@ -52,6 +52,7 @@ from linkedapi.types.company import (
|
|
|
52
52
|
BaseFetchCompanyParams,
|
|
53
53
|
BaseFetchCompanyParamsWide,
|
|
54
54
|
Company,
|
|
55
|
+
CompanyJobsRetrievalConfig,
|
|
55
56
|
FetchCompanyParams,
|
|
56
57
|
FetchCompanyResult,
|
|
57
58
|
NvBaseFetchCompanyParams,
|
|
@@ -102,6 +103,18 @@ from linkedapi.types.email import (
|
|
|
102
103
|
ReverseEmailProviderStatus,
|
|
103
104
|
)
|
|
104
105
|
from linkedapi.types.feed import FeedPost, RetrieveFeedParams
|
|
106
|
+
from linkedapi.types.job_tracker import (
|
|
107
|
+
ArchiveJobParams,
|
|
108
|
+
DeleteTrackedJobParams,
|
|
109
|
+
JobStage,
|
|
110
|
+
JobStageTarget,
|
|
111
|
+
RetrieveTrackedJobsParams,
|
|
112
|
+
SaveJobParams,
|
|
113
|
+
SetJobStageParams,
|
|
114
|
+
TrackedJob,
|
|
115
|
+
UnarchiveJobParams,
|
|
116
|
+
UnsaveJobParams,
|
|
117
|
+
)
|
|
105
118
|
from linkedapi.types.jobs import (
|
|
106
119
|
FetchJobParams,
|
|
107
120
|
FetchJobResult,
|
|
@@ -333,8 +346,11 @@ from linkedapi.types.signals import (
|
|
|
333
346
|
SignalEvent,
|
|
334
347
|
SignalEventType,
|
|
335
348
|
SignalIdParams,
|
|
349
|
+
SignalJobFilter,
|
|
350
|
+
SignalJobPreferences,
|
|
336
351
|
SignalPollRequest,
|
|
337
352
|
SignalPostSearchFilter,
|
|
353
|
+
SignalPreviousReport,
|
|
338
354
|
SignalReaction,
|
|
339
355
|
SignalStatus,
|
|
340
356
|
SignalStoppedReason,
|
|
@@ -414,6 +430,7 @@ __all__ = [
|
|
|
414
430
|
"AnnualRevenueFilter",
|
|
415
431
|
"ApiUsageAction",
|
|
416
432
|
"ApiUsageParams",
|
|
433
|
+
"ArchiveJobParams",
|
|
417
434
|
"AttachmentType",
|
|
418
435
|
"BaseActionParams",
|
|
419
436
|
"BaseFetchCompanyParams",
|
|
@@ -434,6 +451,7 @@ __all__ = [
|
|
|
434
451
|
"CommentOnPostResult",
|
|
435
452
|
"CommentResult",
|
|
436
453
|
"Company",
|
|
454
|
+
"CompanyJobsRetrievalConfig",
|
|
437
455
|
"ConnectionDegree",
|
|
438
456
|
"ConnectionPerson",
|
|
439
457
|
"ConnectionSession",
|
|
@@ -455,6 +473,7 @@ __all__ = [
|
|
|
455
473
|
"CreateSignalParams",
|
|
456
474
|
"DeleteLimitEntry",
|
|
457
475
|
"DeleteLimitsParams",
|
|
476
|
+
"DeleteTrackedJobParams",
|
|
458
477
|
"DeleteWebhookHeaderParams",
|
|
459
478
|
"DeleteWebhookParams",
|
|
460
479
|
"DisconnectParams",
|
|
@@ -499,6 +518,8 @@ __all__ = [
|
|
|
499
518
|
"JobPreferenceEmploymentType",
|
|
500
519
|
"JobPreferenceExperienceLevel",
|
|
501
520
|
"JobSalary",
|
|
521
|
+
"JobStage",
|
|
522
|
+
"JobStageTarget",
|
|
502
523
|
"JobWorkplaceType",
|
|
503
524
|
"LanguageProficiency",
|
|
504
525
|
"Limit",
|
|
@@ -666,10 +687,12 @@ __all__ = [
|
|
|
666
687
|
"RetrievePerformanceResult",
|
|
667
688
|
"RetrieveProfileViewersParams",
|
|
668
689
|
"RetrieveSSIResult",
|
|
690
|
+
"RetrieveTrackedJobsParams",
|
|
669
691
|
"RevealWebhookSecretParams",
|
|
670
692
|
"ReverseEmailProviderStatus",
|
|
671
693
|
"RotateWebhookSecretParams",
|
|
672
694
|
"SalaryPeriod",
|
|
695
|
+
"SaveJobParams",
|
|
673
696
|
"SearchCompaniesFilter",
|
|
674
697
|
"SearchCompaniesParams",
|
|
675
698
|
"SearchCompanyResult",
|
|
@@ -693,6 +716,7 @@ __all__ = [
|
|
|
693
716
|
"SendConnectionRequestParams",
|
|
694
717
|
"SendMessageManageConversation",
|
|
695
718
|
"SendMessageParams",
|
|
719
|
+
"SetJobStageParams",
|
|
696
720
|
"SetLimitEntry",
|
|
697
721
|
"SetLimitsParams",
|
|
698
722
|
"SetSeatsParams",
|
|
@@ -709,8 +733,11 @@ __all__ = [
|
|
|
709
733
|
"SignalEvent",
|
|
710
734
|
"SignalEventType",
|
|
711
735
|
"SignalIdParams",
|
|
736
|
+
"SignalJobFilter",
|
|
737
|
+
"SignalJobPreferences",
|
|
712
738
|
"SignalPollRequest",
|
|
713
739
|
"SignalPostSearchFilter",
|
|
740
|
+
"SignalPreviousReport",
|
|
714
741
|
"SignalReaction",
|
|
715
742
|
"SignalStatus",
|
|
716
743
|
"SignalStoppedReason",
|
|
@@ -729,7 +756,10 @@ __all__ = [
|
|
|
729
756
|
"SyncConversationResult",
|
|
730
757
|
"SyncInboxParams",
|
|
731
758
|
"SyncNetworkParams",
|
|
759
|
+
"TrackedJob",
|
|
760
|
+
"UnarchiveJobParams",
|
|
732
761
|
"UnknownWebhookEvent",
|
|
762
|
+
"UnsaveJobParams",
|
|
733
763
|
"WebhookDelivery",
|
|
734
764
|
"WebhookDeliveryStatus",
|
|
735
765
|
"WebhookEvent",
|
|
@@ -5,6 +5,7 @@ from typing import Literal, TypeAlias
|
|
|
5
5
|
from pydantic import Field
|
|
6
6
|
|
|
7
7
|
from linkedapi.types.base import LinkedApiModel
|
|
8
|
+
from linkedapi.types.jobs import JobDatePosted, SearchJobResult
|
|
8
9
|
from linkedapi.types.params import BaseActionParams, LimitParams, LimitSinceParams
|
|
9
10
|
from linkedapi.types.person import YearsOfExperience
|
|
10
11
|
from linkedapi.types.post import Post
|
|
@@ -48,12 +49,11 @@ class Company(LinkedApiModel):
|
|
|
48
49
|
website: str | None = None
|
|
49
50
|
employees_count: int | None = None
|
|
50
51
|
year_founded: int | None = None
|
|
51
|
-
venture_financing: bool | None = None
|
|
52
|
-
jobs_count: int | None = None
|
|
53
52
|
logo_url: str | None = None
|
|
54
53
|
employees: list[StCompanyEmployee] | None = None
|
|
55
54
|
dms: list[StCompanyDm] | None = None
|
|
56
55
|
posts: list[Post] | None = None
|
|
56
|
+
jobs: list[SearchJobResult] | None = None
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
class BaseFetchCompanyParams(BaseActionParams):
|
|
@@ -61,12 +61,14 @@ class BaseFetchCompanyParams(BaseActionParams):
|
|
|
61
61
|
retrieve_employees: bool | None = None
|
|
62
62
|
retrieve_dms: bool | None = Field(default=None, alias="retrieveDMs")
|
|
63
63
|
retrieve_posts: bool | None = None
|
|
64
|
+
retrieve_jobs: bool | None = None
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
class BaseFetchCompanyParamsWide(BaseFetchCompanyParams):
|
|
67
68
|
retrieve_employees: Literal[True] = True
|
|
68
69
|
retrieve_dms: Literal[True] = Field(default=True, alias="retrieveDMs")
|
|
69
70
|
retrieve_posts: Literal[True] = True
|
|
71
|
+
retrieve_jobs: Literal[True] = True
|
|
70
72
|
|
|
71
73
|
|
|
72
74
|
class StCompanyEmployeesFilter(LinkedApiModel):
|
|
@@ -83,10 +85,21 @@ class StCompanyEmployeesRetrievalConfig(LimitParams):
|
|
|
83
85
|
filter: StCompanyEmployeesFilter | None = None
|
|
84
86
|
|
|
85
87
|
|
|
88
|
+
class CompanyJobsRetrievalConfig(LimitParams):
|
|
89
|
+
"""What retrieve_jobs reads. "include_subsidiaries" widens the search to the employer family
|
|
90
|
+
LinkedIn groups with the company - for Microsoft, that includes GitHub - so a job may name
|
|
91
|
+
another company; read each job's "company_name"."""
|
|
92
|
+
|
|
93
|
+
location: str | None = None
|
|
94
|
+
include_subsidiaries: bool | None = None
|
|
95
|
+
date_posted: JobDatePosted | None = None
|
|
96
|
+
|
|
97
|
+
|
|
86
98
|
class FetchCompanyParams(BaseFetchCompanyParams):
|
|
87
99
|
employees_retrieval_config: StCompanyEmployeesRetrievalConfig | None = None
|
|
88
100
|
dms_retrieval_config: LimitParams | None = Field(default=None, alias="dmsRetrievalConfig")
|
|
89
101
|
posts_retrieval_config: LimitSinceParams | None = None
|
|
102
|
+
jobs_retrieval_config: CompanyJobsRetrievalConfig | None = None
|
|
90
103
|
|
|
91
104
|
|
|
92
105
|
FetchCompanyResult: TypeAlias = Company
|