-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more features to Bullhorn and new core action push_application
- Loading branch information
1 parent
46881e8
commit fecf357
Showing
12 changed files
with
1,350 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
src/hrflow_connectors/connectors/bullhorn/docs/push_application.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
# Push application | ||
`HrFlow.ai Profiles` :arrow_right: `Bullhorn Applications` | ||
|
||
Retrieves profiles from Hrflow.ai and writes their applications to the Bullhorn source | ||
|
||
|
||
|
||
## Action Parameters | ||
|
||
| Field | Type | Default | Description | | ||
| ----- | ---- | ------- | ----------- | | ||
| `logics` | `typing.List[typing.Callable[[typing.Dict], typing.Optional[typing.Dict]]]` | [] | List of logic functions | | ||
| `format` | `typing.Callable[[typing.Dict], typing.Dict]` | [`format_application`](../connector.py#L385) | Formatting function | | ||
| `read_mode` | `str` | ReadMode.sync | If 'incremental' then `read_from` of the last run is given to Origin Warehouse during read. **The actual behavior depends on implementation of read**. In 'sync' mode `read_from` is neither fetched nor given to Origin Warehouse during read. | | ||
|
||
## Source Parameters | ||
|
||
| Field | Type | Default | Description | | ||
| ----- | ---- | ------- | ----------- | | ||
| `api_secret` :red_circle: | `str` | None | X-API-KEY used to access HrFlow.ai API | | ||
| `api_user` :red_circle: | `str` | None | X-USER-EMAIL used to access HrFlow.ai API | | ||
| `source_key` :red_circle: | `str` | None | HrFlow.ai source key | | ||
| `profile_key` :red_circle: | `str` | None | HrFlow.ai profile key | | ||
|
||
## Destination Parameters | ||
|
||
| Field | Type | Default | Description | | ||
| ----- | ---- | ------- | ----------- | | ||
| `client_id` :red_circle: | `str` | None | Client identifier for Bullhorn | | ||
| `client_secret` :red_circle: | `str` | None | Client secret identifier for Bullhorn | | ||
| `password` :red_circle: | `str` | None | Password for Bullhorn login | | ||
| `username` :red_circle: | `str` | None | Username for Bullhorn login | | ||
| `job_id` :red_circle: | `str` | None | id for the job in Bullhorn | | ||
| `status_when_created` :red_circle: | `str` | None | The status of the application when created in Bullhorn | | ||
| `source` | `str` | None | The source of the application to be created in Bullhorn | | ||
|
||
:red_circle: : *required* | ||
|
||
## Example | ||
|
||
```python | ||
import logging | ||
from hrflow_connectors import Bullhorn | ||
from hrflow_connectors.core import ReadMode | ||
|
||
|
||
logging.basicConfig(level=logging.INFO) | ||
|
||
|
||
Bullhorn.push_application( | ||
workflow_id="some_string_identifier", | ||
action_parameters=dict( | ||
logics=[], | ||
format=lambda *args, **kwargs: None # Put your code logic here, | ||
read_mode=ReadMode.sync, | ||
), | ||
origin_parameters=dict( | ||
api_secret="your_api_secret", | ||
api_user="your_api_user", | ||
source_key="your_source_key", | ||
profile_key="your_profile_key", | ||
), | ||
target_parameters=dict( | ||
client_id="your_client_id", | ||
client_secret="your_client_secret", | ||
password="your_password", | ||
username="your_username", | ||
job_id="your_job_id", | ||
status_when_created="your_status_when_created", | ||
source="your_source", | ||
) | ||
) | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.