linkedapi 1.6.2__tar.gz → 1.6.4__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.2 → linkedapi-1.6.4}/PKG-INFO +1 -1
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/__init__.py +31 -13
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/client.py +27 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/errors.py +18 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/__init__.py +18 -0
- linkedapi-1.6.4/linkedapi/operations/archive_job.py +14 -0
- linkedapi-1.6.4/linkedapi/operations/delete_tracked_job.py +14 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/fetch_company.py +2 -0
- linkedapi-1.6.4/linkedapi/operations/find_person_by_email.py +23 -0
- linkedapi-1.6.4/linkedapi/operations/find_person_email.py +28 -0
- linkedapi-1.6.4/linkedapi/operations/retrieve_tracked_jobs.py +17 -0
- linkedapi-1.6.4/linkedapi/operations/save_job.py +15 -0
- linkedapi-1.6.4/linkedapi/operations/set_job_stage.py +15 -0
- linkedapi-1.6.4/linkedapi/operations/unarchive_job.py +14 -0
- linkedapi-1.6.4/linkedapi/operations/unsave_job.py +14 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/__init__.py +54 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/company.py +15 -2
- linkedapi-1.6.4/linkedapi/types/email.py +49 -0
- linkedapi-1.6.4/linkedapi/types/job_tracker.py +72 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/jobs.py +1 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/signals.py +85 -8
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/webhooks.py +3 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/pyproject.toml +1 -1
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_errors.py +9 -0
- linkedapi-1.6.4/tests/test_find_person_email.py +147 -0
- linkedapi-1.6.4/tests/test_job_tracker.py +203 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_open_vocabularies.py +25 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_operations.py +10 -1
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_signals.py +78 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/.github/workflows/publish.yaml +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/.gitignore +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/LICENSE +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/README.md +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/examples/verify_webhook_signature.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/accounts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/admin.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/http_client.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/limits.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/subscription.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/admin/webhooks.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/changelog.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/config.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/core/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/core/operation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/core/polling.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/http/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/http/base.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/http/linked_api_http_client.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/array.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/base.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/endorse_person_skills.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/send_message.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/simple.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/then.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/mappers/void.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/accept_invitation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/check_connection_status.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/comment_on_post.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/create_post.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/create_repost.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/custom_workflow.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/endorse_person_skill.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/endorse_person_skills.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/fetch_job.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/fetch_person.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/fetch_post.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/ignore_invitation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/manage_conversation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_create_list.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_create_saved_search.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_delete_list.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_delete_saved_search.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_fetch_company.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_fetch_person.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_manage_conversation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_remove_account_from_list.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_remove_lead_from_list.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_rename_list.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_retrieve_alerts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_retrieve_list_accounts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_retrieve_list_leads.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_retrieve_lists.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_retrieve_saved_searches.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_save_account.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_save_lead.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_search_companies.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_search_people.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_send_message.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_sync_conversation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_sync_inbox.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_unsave_account.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/nv_unsave_lead.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_archive_project.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_create_project.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_fetch_person.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_rename_project.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_retrieve_project_candidates.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_retrieve_projects.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_save_to_project.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_search_people.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_send_message.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/rc_sync_inbox.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/react_to_comment.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/react_to_post.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/remove_connection.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/reply_to_comment.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_connections.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_feed.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_invitations.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_pending_requests.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_performance.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_profile_viewers.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/retrieve_ssi.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/search_companies.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/search_jobs.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/search_people.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/search_posts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/send_connection_request.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/send_message.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/sync_conversation.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/sync_inbox.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/sync_network.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/operations/withdraw_connection_request.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/py.typed +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/account.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/admin/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/admin/accounts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/admin/config.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/admin/limits.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/admin/subscription.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/base.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/changelog.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/connection.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/feed.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/message.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/network.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/nv_alerts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/nv_list_management.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/nv_list_members.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/nv_saved_searches.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/nv_saved_subjects.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/params.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/person.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/post.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/profile_viewers.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/rc_people.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/rc_projects.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/responses.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/search_companies.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/search_people.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/search_posts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/statistics.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/viewer_state.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/types/workflow.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/webhooks/__init__.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/webhooks/headers.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/webhooks/parse.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/linkedapi/webhooks/signature.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/conftest.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_admin.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_admin_webhooks.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_changelog.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_direct_methods.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_endorse_operations.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_http_client.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_limits_categories.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_mappers.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_models.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_nv_backlog.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_nv_list_management.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_nv_retrieve_alerts.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_nv_saved_subjects.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_polling.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_rc_operations.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_webhook_signature.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/tests/test_webhooks.py +0 -0
- {linkedapi-1.6.2 → linkedapi-1.6.4}/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,
|
|
@@ -46,6 +48,8 @@ from linkedapi.operations import (
|
|
|
46
48
|
FetchPersonMapper,
|
|
47
49
|
FetchPost,
|
|
48
50
|
FetchPostMapper,
|
|
51
|
+
FindPersonByEmail,
|
|
52
|
+
FindPersonEmail,
|
|
49
53
|
IgnoreInvitation,
|
|
50
54
|
ManageConversation,
|
|
51
55
|
NvCreateList,
|
|
@@ -96,15 +100,20 @@ from linkedapi.operations import (
|
|
|
96
100
|
RetrievePerformance,
|
|
97
101
|
RetrieveProfileViewers,
|
|
98
102
|
RetrieveSSI,
|
|
103
|
+
RetrieveTrackedJobs,
|
|
104
|
+
SaveJob,
|
|
99
105
|
SearchCompanies,
|
|
100
106
|
SearchJobs,
|
|
101
107
|
SearchPeople,
|
|
102
108
|
SearchPosts,
|
|
103
109
|
SendConnectionRequest,
|
|
104
110
|
SendMessage,
|
|
111
|
+
SetJobStage,
|
|
105
112
|
SyncConversation,
|
|
106
113
|
SyncInbox,
|
|
107
114
|
SyncNetwork,
|
|
115
|
+
UnarchiveJob,
|
|
116
|
+
UnsaveJob,
|
|
108
117
|
WithdrawConnectionRequest,
|
|
109
118
|
)
|
|
110
119
|
from linkedapi.types import * # noqa: F403
|
|
@@ -116,18 +125,19 @@ from linkedapi.webhooks import (
|
|
|
116
125
|
verify_webhook_signature,
|
|
117
126
|
)
|
|
118
127
|
|
|
119
|
-
__version__ = "1.6.
|
|
128
|
+
__version__ = "1.6.4"
|
|
120
129
|
PredefinedOperation = Operation
|
|
121
130
|
|
|
122
131
|
__all__ = [
|
|
123
132
|
*_types_all,
|
|
124
133
|
"AcceptInvitation",
|
|
134
|
+
"ActionConfig",
|
|
125
135
|
"AdminAccounts",
|
|
126
136
|
"AdminHttpClient",
|
|
127
137
|
"AdminLimits",
|
|
128
138
|
"AdminSubscription",
|
|
129
139
|
"AdminWebhooks",
|
|
130
|
-
"
|
|
140
|
+
"ArchiveJob",
|
|
131
141
|
"ArrayWorkflowMapper",
|
|
132
142
|
"BaseMapper",
|
|
133
143
|
"CheckConnectionStatus",
|
|
@@ -135,6 +145,7 @@ __all__ = [
|
|
|
135
145
|
"CreatePost",
|
|
136
146
|
"CreateRepost",
|
|
137
147
|
"CustomWorkflow",
|
|
148
|
+
"DeleteTrackedJob",
|
|
138
149
|
"EndorsePersonSkill",
|
|
139
150
|
"EndorsePersonSkills",
|
|
140
151
|
"FetchCompany",
|
|
@@ -145,6 +156,8 @@ __all__ = [
|
|
|
145
156
|
"FetchPersonMapper",
|
|
146
157
|
"FetchPost",
|
|
147
158
|
"FetchPostMapper",
|
|
159
|
+
"FindPersonByEmail",
|
|
160
|
+
"FindPersonEmail",
|
|
148
161
|
"HttpClient",
|
|
149
162
|
"IgnoreInvitation",
|
|
150
163
|
"LINKED_API_ACTION_ERROR_TYPES",
|
|
@@ -159,32 +172,32 @@ __all__ = [
|
|
|
159
172
|
"LinkedApiWorkflowTimeoutError",
|
|
160
173
|
"ManageConversation",
|
|
161
174
|
"MappedResponse",
|
|
175
|
+
"NvCreateList",
|
|
176
|
+
"NvCreateSavedSearch",
|
|
177
|
+
"NvDeleteList",
|
|
178
|
+
"NvDeleteSavedSearch",
|
|
162
179
|
"NvFetchCompany",
|
|
163
180
|
"NvFetchCompanyMapper",
|
|
164
181
|
"NvFetchPerson",
|
|
165
182
|
"NvFetchPersonMapper",
|
|
166
183
|
"NvManageConversation",
|
|
167
|
-
"NvRetrieveAlerts",
|
|
168
|
-
"NvRetrieveLists",
|
|
169
|
-
"NvDeleteList",
|
|
170
|
-
"NvCreateList",
|
|
171
|
-
"NvDeleteSavedSearch",
|
|
172
|
-
"NvCreateSavedSearch",
|
|
173
|
-
"NvRetrieveSavedSearches",
|
|
174
|
-
"NvRenameList",
|
|
175
184
|
"NvRemoveAccountFromList",
|
|
176
185
|
"NvRemoveLeadFromList",
|
|
186
|
+
"NvRenameList",
|
|
187
|
+
"NvRetrieveAlerts",
|
|
177
188
|
"NvRetrieveListAccounts",
|
|
178
189
|
"NvRetrieveListLeads",
|
|
179
|
-
"
|
|
190
|
+
"NvRetrieveLists",
|
|
191
|
+
"NvRetrieveSavedSearches",
|
|
180
192
|
"NvSaveAccount",
|
|
181
|
-
"NvUnsaveLead",
|
|
182
193
|
"NvSaveLead",
|
|
183
194
|
"NvSearchCompanies",
|
|
184
195
|
"NvSearchPeople",
|
|
185
196
|
"NvSendMessage",
|
|
186
197
|
"NvSyncConversation",
|
|
187
198
|
"NvSyncInbox",
|
|
199
|
+
"NvUnsaveAccount",
|
|
200
|
+
"NvUnsaveLead",
|
|
188
201
|
"Operation",
|
|
189
202
|
"PredefinedOperation",
|
|
190
203
|
"RcArchiveProject",
|
|
@@ -203,24 +216,29 @@ __all__ = [
|
|
|
203
216
|
"RemoveConnection",
|
|
204
217
|
"ReplyToComment",
|
|
205
218
|
"ResponseMapping",
|
|
206
|
-
"RetrieveInvitations",
|
|
207
219
|
"RetrieveConnections",
|
|
208
220
|
"RetrieveFeed",
|
|
221
|
+
"RetrieveInvitations",
|
|
209
222
|
"RetrievePendingRequests",
|
|
210
223
|
"RetrievePerformance",
|
|
211
224
|
"RetrieveProfileViewers",
|
|
212
225
|
"RetrieveSSI",
|
|
226
|
+
"RetrieveTrackedJobs",
|
|
227
|
+
"SaveJob",
|
|
213
228
|
"SearchCompanies",
|
|
214
229
|
"SearchJobs",
|
|
215
230
|
"SearchPeople",
|
|
216
231
|
"SearchPosts",
|
|
217
232
|
"SendConnectionRequest",
|
|
218
233
|
"SendMessage",
|
|
234
|
+
"SetJobStage",
|
|
219
235
|
"SimpleWorkflowMapper",
|
|
220
236
|
"SyncConversation",
|
|
221
237
|
"SyncInbox",
|
|
222
238
|
"SyncNetwork",
|
|
223
239
|
"ThenWorkflowMapper",
|
|
240
|
+
"UnarchiveJob",
|
|
241
|
+
"UnsaveJob",
|
|
224
242
|
"VoidWorkflowMapper",
|
|
225
243
|
"WEBHOOK_SIGNATURE_HEADER",
|
|
226
244
|
"WEBHOOK_SIGNATURE_TIMESTAMP_HEADER",
|
|
@@ -9,17 +9,21 @@ 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,
|
|
20
22
|
FetchJob,
|
|
21
23
|
FetchPerson,
|
|
22
24
|
FetchPost,
|
|
25
|
+
FindPersonByEmail,
|
|
26
|
+
FindPersonEmail,
|
|
23
27
|
IgnoreInvitation,
|
|
24
28
|
ManageConversation,
|
|
25
29
|
NvCreateList,
|
|
@@ -67,15 +71,20 @@ from linkedapi.operations import (
|
|
|
67
71
|
RetrievePerformance,
|
|
68
72
|
RetrieveProfileViewers,
|
|
69
73
|
RetrieveSSI,
|
|
74
|
+
RetrieveTrackedJobs,
|
|
75
|
+
SaveJob,
|
|
70
76
|
SearchCompanies,
|
|
71
77
|
SearchJobs,
|
|
72
78
|
SearchPeople,
|
|
73
79
|
SearchPosts,
|
|
74
80
|
SendConnectionRequest,
|
|
75
81
|
SendMessage,
|
|
82
|
+
SetJobStage,
|
|
76
83
|
SyncConversation,
|
|
77
84
|
SyncInbox,
|
|
78
85
|
SyncNetwork,
|
|
86
|
+
UnarchiveJob,
|
|
87
|
+
UnsaveJob,
|
|
79
88
|
WithdrawConnectionRequest,
|
|
80
89
|
)
|
|
81
90
|
from linkedapi.types import AccountInfo, LinkedApiActionError, LinkedApiResponse, serialize_value
|
|
@@ -130,10 +139,19 @@ class LinkedApi:
|
|
|
130
139
|
self.search_posts = SearchPosts(self.http_client)
|
|
131
140
|
self.fetch_company = FetchCompany(self.http_client)
|
|
132
141
|
self.fetch_person = FetchPerson(self.http_client)
|
|
142
|
+
self.find_person_email = FindPersonEmail(self.http_client)
|
|
143
|
+
self.find_person_by_email = FindPersonByEmail(self.http_client)
|
|
133
144
|
self.endorse_person_skill = EndorsePersonSkill(self.http_client)
|
|
134
145
|
self.endorse_person_skills = EndorsePersonSkills(self.http_client)
|
|
135
146
|
self.fetch_post = FetchPost(self.http_client)
|
|
136
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)
|
|
137
155
|
self.react_to_post = ReactToPost(self.http_client)
|
|
138
156
|
self.comment_on_post = CommentOnPost(self.http_client)
|
|
139
157
|
self.react_to_comment = ReactToComment(self.http_client)
|
|
@@ -202,10 +220,19 @@ class LinkedApi:
|
|
|
202
220
|
self.search_posts,
|
|
203
221
|
self.fetch_company,
|
|
204
222
|
self.fetch_person,
|
|
223
|
+
self.find_person_email,
|
|
224
|
+
self.find_person_by_email,
|
|
205
225
|
self.endorse_person_skill,
|
|
206
226
|
self.endorse_person_skills,
|
|
207
227
|
self.fetch_post,
|
|
208
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,
|
|
209
236
|
self.react_to_post,
|
|
210
237
|
self.comment_on_post,
|
|
211
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",
|
|
@@ -160,6 +176,7 @@ LinkedApiErrorType = Literal[
|
|
|
160
176
|
"signalLimitReached",
|
|
161
177
|
"signalNotFound",
|
|
162
178
|
"signalStopped",
|
|
179
|
+
"insufficientEnrichmentCredits",
|
|
163
180
|
]
|
|
164
181
|
LINKED_API_ERROR_TYPES: tuple[str, ...] = (
|
|
165
182
|
"linkedApiTokenRequired",
|
|
@@ -188,6 +205,7 @@ LINKED_API_ERROR_TYPES: tuple[str, ...] = (
|
|
|
188
205
|
"signalLimitReached",
|
|
189
206
|
"signalNotFound",
|
|
190
207
|
"signalStopped",
|
|
208
|
+
"insufficientEnrichmentCredits",
|
|
191
209
|
)
|
|
192
210
|
|
|
193
211
|
|
|
@@ -1,15 +1,19 @@
|
|
|
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
|
|
10
12
|
from linkedapi.operations.fetch_job import FetchJob, FetchJobMapper
|
|
11
13
|
from linkedapi.operations.fetch_person import FetchPerson, FetchPersonMapper
|
|
12
14
|
from linkedapi.operations.fetch_post import FetchPost, FetchPostMapper
|
|
15
|
+
from linkedapi.operations.find_person_by_email import FindPersonByEmail
|
|
16
|
+
from linkedapi.operations.find_person_email import FindPersonEmail
|
|
13
17
|
from linkedapi.operations.ignore_invitation import IgnoreInvitation
|
|
14
18
|
from linkedapi.operations.manage_conversation import ManageConversation
|
|
15
19
|
from linkedapi.operations.nv_create_list import NvCreateList
|
|
@@ -57,24 +61,31 @@ from linkedapi.operations.retrieve_pending_requests import RetrievePendingReques
|
|
|
57
61
|
from linkedapi.operations.retrieve_performance import RetrievePerformance
|
|
58
62
|
from linkedapi.operations.retrieve_profile_viewers import RetrieveProfileViewers
|
|
59
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
|
|
60
66
|
from linkedapi.operations.search_companies import SearchCompanies
|
|
61
67
|
from linkedapi.operations.search_jobs import SearchJobs
|
|
62
68
|
from linkedapi.operations.search_people import SearchPeople
|
|
63
69
|
from linkedapi.operations.search_posts import SearchPosts
|
|
64
70
|
from linkedapi.operations.send_connection_request import SendConnectionRequest
|
|
65
71
|
from linkedapi.operations.send_message import SendMessage
|
|
72
|
+
from linkedapi.operations.set_job_stage import SetJobStage
|
|
66
73
|
from linkedapi.operations.sync_conversation import SyncConversation
|
|
67
74
|
from linkedapi.operations.sync_inbox import SyncInbox
|
|
68
75
|
from linkedapi.operations.sync_network import SyncNetwork
|
|
76
|
+
from linkedapi.operations.unarchive_job import UnarchiveJob
|
|
77
|
+
from linkedapi.operations.unsave_job import UnsaveJob
|
|
69
78
|
from linkedapi.operations.withdraw_connection_request import WithdrawConnectionRequest
|
|
70
79
|
|
|
71
80
|
__all__ = [
|
|
72
81
|
"AcceptInvitation",
|
|
82
|
+
"ArchiveJob",
|
|
73
83
|
"CheckConnectionStatus",
|
|
74
84
|
"CommentOnPost",
|
|
75
85
|
"CreatePost",
|
|
76
86
|
"CreateRepost",
|
|
77
87
|
"CustomWorkflow",
|
|
88
|
+
"DeleteTrackedJob",
|
|
78
89
|
"EndorsePersonSkill",
|
|
79
90
|
"EndorsePersonSkills",
|
|
80
91
|
"FetchCompany",
|
|
@@ -85,6 +96,8 @@ __all__ = [
|
|
|
85
96
|
"FetchPersonMapper",
|
|
86
97
|
"FetchPost",
|
|
87
98
|
"FetchPostMapper",
|
|
99
|
+
"FindPersonByEmail",
|
|
100
|
+
"FindPersonEmail",
|
|
88
101
|
"IgnoreInvitation",
|
|
89
102
|
"ManageConversation",
|
|
90
103
|
"NvCreateList",
|
|
@@ -135,14 +148,19 @@ __all__ = [
|
|
|
135
148
|
"RetrievePerformance",
|
|
136
149
|
"RetrieveProfileViewers",
|
|
137
150
|
"RetrieveSSI",
|
|
151
|
+
"RetrieveTrackedJobs",
|
|
152
|
+
"SaveJob",
|
|
138
153
|
"SearchCompanies",
|
|
139
154
|
"SearchJobs",
|
|
140
155
|
"SearchPeople",
|
|
141
156
|
"SearchPosts",
|
|
142
157
|
"SendConnectionRequest",
|
|
143
158
|
"SendMessage",
|
|
159
|
+
"SetJobStage",
|
|
144
160
|
"SyncConversation",
|
|
145
161
|
"SyncInbox",
|
|
146
162
|
"SyncNetwork",
|
|
163
|
+
"UnarchiveJob",
|
|
164
|
+
"UnsaveJob",
|
|
147
165
|
"WithdrawConnectionRequest",
|
|
148
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,23 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import SimpleWorkflowMapper
|
|
5
|
+
from linkedapi.types import FindPersonByEmailParams, FindPersonByEmailResult
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FindPersonByEmail(Operation[FindPersonByEmailParams, FindPersonByEmailResult]):
|
|
9
|
+
"""Find the LinkedIn profile URL of the person behind an email address.
|
|
10
|
+
|
|
11
|
+
The lookup uses 10 enrichment credits only when a profile is found (``provider_status`` is
|
|
12
|
+
``found``); otherwise ``person_url`` is None and nothing is charged. With fewer than 10
|
|
13
|
+
credits, ``execute`` raises ``insufficientEnrichmentCredits``. It opens no LinkedIn page and
|
|
14
|
+
counts against no account limit. To read the profile, pass ``person_url`` to ``fetch_person``.
|
|
15
|
+
|
|
16
|
+
See https://linkedapi.io/docs/action-st-find-person-by-email/
|
|
17
|
+
and https://linkedapi.io/docs/enrichment-credits/
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
operation_name = "findPersonByEmail"
|
|
21
|
+
mapper = SimpleWorkflowMapper[FindPersonByEmailParams, FindPersonByEmailResult](
|
|
22
|
+
"st.findPersonByEmail", result_model=FindPersonByEmailResult
|
|
23
|
+
)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
from linkedapi.core import Operation
|
|
4
|
+
from linkedapi.mappers import SimpleWorkflowMapper
|
|
5
|
+
from linkedapi.types import FindPersonEmailParams, FindPersonEmailResult
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class FindPersonEmail(Operation[FindPersonEmailParams, FindPersonEmailResult]):
|
|
9
|
+
"""Find a person's email address by their LinkedIn URL.
|
|
10
|
+
|
|
11
|
+
The address comes from the person's Contact info, from an email-finding provider, or both,
|
|
12
|
+
as ``source`` says (default ``contactInfo``, which is free). Provider lookups are paid with
|
|
13
|
+
enrichment credits: a lookup uses 1 credit only when ``provider_status`` is ``found``. With a
|
|
14
|
+
paid source and no credits, ``execute`` raises ``insufficientEnrichmentCredits``.
|
|
15
|
+
``require_work_email`` is allowed only with ``contactInfoThenProvider``.
|
|
16
|
+
|
|
17
|
+
The action opens the person's profile (one stPersonProfileViews) and, when it needs the
|
|
18
|
+
company's website, their current company page (one stCompanyPageViews).
|
|
19
|
+
|
|
20
|
+
Action errors: personNotFound, selfProfileNotAllowed, limitExceeded, unexpectedError.
|
|
21
|
+
See https://linkedapi.io/docs/action-st-find-person-email/
|
|
22
|
+
and https://linkedapi.io/docs/enrichment-credits/
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
operation_name = "findPersonEmail"
|
|
26
|
+
mapper = SimpleWorkflowMapper[FindPersonEmailParams, FindPersonEmailResult](
|
|
27
|
+
"st.findPersonEmail", result_model=FindPersonEmailResult
|
|
28
|
+
)
|
|
@@ -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")
|