Skip to content

API Reference parrot_tools.interfaces.workday.handlers.worker_event_history

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

parrot_tools.interfaces.workday.handlers.worker_event_history

View source

Worker event history handler (FEAT-706, HR WSDL Get_Worker_Event_History).

Attribute INVALID_ID_FAULT

Type: str

Alias ResolvedWorkerReference

Re-exported from parrot_tools.interfaces.workday.models.worker_event.ResolvedWorkerReference.

Attribute SYSTEM_ID_WID

Type: str

Attribute WORKER_ID_TYPES

Type: tuple[str, ...]

Alias WorkdayTypeBase

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

Alias WorkerEvent

Re-exported from parrot_tools.interfaces.workday.models.worker_event.WorkerEvent.

Class WorkerEventHistoryType

Handler for get_worker_event_history (HR WSDL, Get_Worker_Event_History).

Method WorkerEventHistoryType.execute

Return one row per worker event, sorted by effective and completion dates.

execute(worker_id: str, worker_id_type: str | None = None, effective_from: date | str | None = None, effective_through: date | str | None = None, updated_from: date | str | None = None, updated_through: date | str | None = None, **kwargs: Any) -> pd.DataFrame

Parameter Type Default Description
worker_id str
worker_id_type str | None None
effective_from date | str | None None
effective_through date | str | None None
updated_from date | str | None None
updated_through date | str | None None
**kwargs Any {}

Returns: pd.DataFrame

Function build_event_date_range

Build Event_Date_Range_Data after validating date-pair constraints.

build_event_date_range(effective_from: date | str | None, effective_through: date | str | None, updated_from: date | str | None, updated_through: date | str | None) -> dict[str, datetime] | None

Parameter Type Default Description
effective_from date | str | None
effective_through date | str | None
updated_from date | str | None
updated_through date | str | None

Returns: dict[str, datetime] | None

Raises:

  • ValueError — If a range pair is incomplete, inverted, or ends in the future.

Function build_event_history_worker_reference

Build the Worker_Reference choice element for Worker_Event_History_Get.

build_event_history_worker_reference(ref: ResolvedWorkerReference) -> dict[str, Any]

Parameter Type Default Description
ref ResolvedWorkerReference

Returns: dict[str, Any]

Function candidate_worker_id_types

Return the worker identifier types to try, in order.

candidate_worker_id_types(worker_id: str, worker_id_type: str | None = None) -> tuple[str, ...]

Parameter Type Default Description
worker_id str Worker identifier value.
worker_id_type str | None None Explicit Workday identifier type, if known.

Returns: tuple[str, ...] — The ordered identifier types for the lookup.

Raises:

  • ValueError — If worker_id_type is not a supported identifier type.

Alias ensure_list

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

Alias extract_by_type

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

Alias first

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

Attribute logger

Function resolve_worker_reference

Resolve any worker identifier to its WID-based reference.

resolve_worker_reference(service: Any, worker_id: str, worker_id_type: str | None = None, max_retries: int = 3, retry_delay: float = 0.5) -> ResolvedWorkerReference

Parameter Type Default Description
service Any
worker_id str
worker_id_type str | None None
max_retries int 3
retry_delay float 0.5

Returns: ResolvedWorkerReference

Raises:

  • LookupError — If no candidate identifies a returned worker.
  • ValueError — If an explicit worker identifier type is unsupported.

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