updateTimelog

Update timelog entry with offline-first support.

This method creates or updates timelog entries (clock in/out, time adjustments) with full offline-first capabilities. The operation is processed locally first for immediate responsiveness, then synchronized in the background when online.

Offline-First Behavior:

  • Immediate Local Storage: Entry is saved to local database instantly

  • Background Sync: Automatically uploads to server when network is available

  • Auto-Entry Logic: Handles state transitions automatically (travel/meal break)

  • Conflict Resolution: Server state takes precedence during sync

Auto-Entry Features:

  • Travel → Job: Automatically closes active TRAVEL when starting JOB

  • Meal Break Auto-Close: Closes active MEAL_BREAK before any new entry

  • Job → Meal Break: Auto-starts MEAL_BREAK when clocking out with MEAL_BREAK reason

Return

UpdateTimelogResult containing success status or error information

Parameters

request

UpdateTimelogRequest containing entry details (type, time, location, etc.)

Samples