ZyncServiceTaskManager

Public API manager for service task operations in the Zync SDK.

ServiceTasks are individual work items within jobs that track specific activities, asset inspections, and form submissions with complete audit trails.

This manager provides the public interface for service task functionality, following the offline-first approach where local data is returned immediately and background sync operations keep the data updated.

Functions

Link copied to clipboard

Get master inspection form by form UID.

Link copied to clipboard
suspend fun getServiceTaskDetail(serviceTaskUid: String, fetchType: ZyncFetchType = ZyncFetchType.NONE): GetServiceTaskDetailResult

Get detailed information for a specific service task.

Link copied to clipboard
suspend fun getServiceTasks(module: ZuperModule, moduleUid: String, fetchType: ZyncFetchType = ZyncFetchType.NONE): GetServiceTasksResult

Get list of service tasks with simple result-based API. Client handles loading states externally.

Link copied to clipboard

Get submitted inspection form with offline-first approach.

Link copied to clipboard

Observe real-time changes to service tasks for a specific module.

Link copied to clipboard

Submit service task inspection form with offline-first approach.

Link copied to clipboard

Update existing service task inspection form with offline-first approach.

Link copied to clipboard

Update service task status with optional user assignment support. This method provides complete offline-first service task status management with assignment capabilities.