Location Hierarchy Assignments Parsers¶
flowtask.components.Workday.parsers.location_hierarchy_assignments_parsers
¶
Parsers for Location Hierarchy Organization Assignments data.
parse_location_hierarchy_assignment
¶
Parse location hierarchy organization assignment data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assignment_data
|
Dict[str, Any]
|
Raw assignment data from the API (already Location_Hierarchy_Organization_Assignments_Data) |
required |
Returns:
| Type | Description |
|---|---|
LocationHierarchyAssignment
|
Parsed LocationHierarchyAssignment object |
parse_location_hierarchy_assignments_data
¶
Main parser function for location hierarchy assignments data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
raw_data
|
Dict[str, Any]
|
Raw data from the API response |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary with parsed assignments and metadata |
parse_location_hierarchy_assignments_response
¶
Parse the complete location hierarchy assignments response.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response_data
|
Dict[str, Any]
|
Raw response data from the API |
required |
Returns:
| Type | Description |
|---|---|
List[LocationHierarchyAssignment]
|
List of parsed LocationHierarchyAssignment objects |
parse_location_hierarchy_reference
¶
Parse location hierarchy reference data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
reference_data
|
Dict[str, Any]
|
Raw location hierarchy reference data |
required |
Returns:
| Type | Description |
|---|---|
LocationHierarchyReference
|
Parsed LocationHierarchyReference object |
parse_organization_assignment
¶
Parse organization assignment by type data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
assignment_data
|
Dict[str, Any]
|
Raw organization assignment data |
required |
Returns:
| Type | Description |
|---|---|
OrganizationAssignment
|
Parsed OrganizationAssignment object |
parse_organization_reference
¶
Parse organization reference data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
org_data
|
Dict[str, Any]
|
Raw organization reference data |
required |
Returns:
| Type | Description |
|---|---|
OrganizationReference
|
Parsed OrganizationReference object |
parse_organization_type_reference
¶
Parse organization type reference data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
type_data
|
Dict[str, Any]
|
Raw organization type reference data |
required |
Returns:
| Type | Description |
|---|---|
OrganizationTypeReference
|
Parsed OrganizationTypeReference object |
parse_response_results
¶
Parse response results (pagination info).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
response_data
|
Dict[str, Any]
|
Raw response data from the API |
required |
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary with pagination information |