Skip to content

API Reference parrot_tools.interfaces.workday.handlers.import_reported_time_blocks

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

parrot_tools.interfaces.workday.handlers.import_reported_time_blocks

View source

ImportReportedTimeBlocksType — handler for Import_Reported_Time_Blocks.

Builds the SOAP request body from a list of ReportedTimeBlock models, invokes self.service.call_operation(operation="Import_Reported_Time_Blocks", ...), and parses the Put_Import_Process_ResponseType into a per-row status DataFrame.

Acknowledgment shape (same as Import_Time_Clock_Events): { "Import_Process_Reference": , "Header_Instance_Reference": } Async background process — reference surfaced but NOT polled (Non-Goal).

Alias ClockEventResult

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ClockEventResult.

Class ImportReportedTimeBlocksType

Handler for Import_Reported_Time_Blocks (batch async import).

Method ImportReportedTimeBlocksType.build_request

Build the Import_Reported_Time_Blocks SOAP body.

build_request(blocks: list[ReportedTimeBlock], **kwargs) -> dict

Parameter Type Default Description
blocks list[ReportedTimeBlock] Pre-validated list of ReportedTimeBlock models.
**kwargs {}

Returns: dict — Dict with Reported_Time_Block_Data list ready for Zeep.

Method ImportReportedTimeBlocksType.parse_ack

Parse Put_Import_Process_ResponseType into a per-row status DataFrame.

The single Import_Process_Reference is echoed as event_id on every output row.

parse_ack(raw: Any) -> pd.DataFrame

Parameter Type Default Description
raw Any Raw Zeep response (Put_Import_Process_ResponseType).

Returns: pd.DataFrame — DataFrame with columns: submitted, event_id, error.

Method ImportReportedTimeBlocksType.execute

Execute Import_Reported_Time_Blocks and return per-row status DataFrame.

execute(blocks: list[ReportedTimeBlock], **kwargs) -> pd.DataFrame

Parameter Type Default Description
blocks list[ReportedTimeBlock] Validated list of ReportedTimeBlock models.
**kwargs {}

Returns: pd.DataFrame — DataFrame with one row per input block: submitted, event_id, error. event_id = Import_Process_Reference (same for all rows, async).

Alias ReportedTimeBlock

Re-exported from parrot_tools.interfaces.workday.models.clock_event.ReportedTimeBlock.

Alias WorkdayWriteTypeBase

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

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