getJobTimeLogSummary

Get comprehensive timelog summary for a specific job with offline-first support.

This method provides detailed timelog information including:

  • Total Time Breakdown: Work time, break time, and travel time totals

  • Individual Entries: All clock-in/clock-out events with timestamps

  • Summary Sessions: Calculated time spent per activity session

  • User Information: Details about the user who logged the time

Offline-First Behavior:

  • Offline Enabled: Fetches from API → Stores in local database → Reads and calculates → Returns computed summary

  • Offline Disabled: Fetches from API → Direct conversion → Returns API data as-is

Time Calculation Features:

  • Chronological Processing: Processes all entries in time order for accurate calculations

  • Multi-Activity Support: Handles concurrent activities (JOB, MEAL_BREAK, TRAVEL)

  • Session Matching: Pairs CLOCK_IN/CLOCK_OUT events by activity type

  • Robust Error Handling: Handles missing clock-outs and invalid timestamps gracefully

Return

GetJobTimeLogSummaryResult containing comprehensive timelog data or error information

Parameters

jobUid

The unique identifier of the job to fetch timelog summary for

isTimeLogV2Enabled

Flag to enable/disable timelog v2 features

Samples