Skip to content

API Reference parrot_tools.interfaces.workday.handlers.time_blocks

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.interfaces.workday.handlers.time_blocks

View source

Alias TimeBlock

Re-exported from parrot_tools.interfaces.workday.models.TimeBlock.

Class TimeBlockType

Handler for the Workday Get_Calculated_Time_Blocks operation.

Method TimeBlockType.execute

Execute the Get_Calculated_Time_Blocks operation and return a pandas DataFrame.

Supported parameters:

  • worker_id: Specific worker ID to fetch time blocks for
  • worker_id_type: Worker_Reference ID type — WorkerObjectID accepts Employee_ID (default), Contingent_Worker_ID, or WID. Use Contingent_Worker_ID for contractors, else Workday rejects their id as "not a valid ID value for Employee_ID".
  • start_date: Start date for date range filter (YYYY-MM-DD)
  • end_date: End date for date range filter (YYYY-MM-DD)
  • time_block_id: Specific time block ID to fetch (Worker_Time_Block_ID type)
  • time_block_wid: Specific time block WID to fetch (WID type)
  • status: Filter by status
  • supervisory_org: Filter by supervisory organization
  • include_deleted: Whether to include deleted time blocks (default: True via Workday)

execute(**kwargs) -> pd.DataFrame

Parameter Type Default Description
**kwargs {}

Returns: pd.DataFrame

Method TimeBlockType.get_time_blocks_by_worker

Convenience method to get time blocks for a specific worker.

get_time_blocks_by_worker(worker_id: str, start_date: str | None = None, end_date: str | None = None) -> pd.DataFrame

Parameter Type Default Description
worker_id str
start_date str | None None
end_date str | None None

Returns: pd.DataFrame

Method TimeBlockType.get_time_blocks_by_date_range

Convenience method to get time blocks for a date range.

get_time_blocks_by_date_range(start_date: str, end_date: str, status: str | None = None) -> pd.DataFrame

Parameter Type Default Description
start_date str
end_date str
status str | None None

Returns: pd.DataFrame

Alias WorkdayTypeBase

Re-exported from parrot_tools.interfaces.workday.handlers.base.WorkdayTypeBase.

Alias parse_time_block_data

Re-exported from parrot_tools.interfaces.workday.parsers.parse_time_block_data.

Alias safe_serialize

Re-exported from parrot_tools.interfaces.workday.utils.safe_serialize.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally