Zync Job Manager
class ZyncJobManager
Public API manager for job operations in the Zync SDK.
This manager provides the public interface for job-related functionality, following the offline-first approach where local data is returned immediately and background sync operations keep the data updated.
Usage:
val job = zync.jobs.getJobDetail("job_uid_123")Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun fetchJobsForDashboard(page: Int, pageSize: Int, fromDate: String, toDate: String, keyword: String?, statusType: List<ZyncJobStatusType>?): GetJobsResult
Link copied to clipboard
suspend fun fetchJobsForDashboardWithStats(page: Int, pageSize: Int, fromDate: String, toDate: String, keyword: String?, statusType: List<ZyncJobStatusType>?): GetDashboardJobsResult
Link copied to clipboard
suspend fun getJobDetail(jobUid: String, fetchType: ZyncFetchType = ZyncFetchType.NONE): GetJobResult
Get detailed information for a specific job by its UID.
Link copied to clipboard
suspend fun getJobLaborCodes(sortAndFilter: ZyncLaborCodesSortAndFilter, page: Int, pageSize: Int): GetJobLaborCodesResult
Get job labor codes with filtering and sorting options
Link copied to clipboard
Get job statistics for a specific date range.
Link copied to clipboard
Get all job statuses available for a specific job category.
Link copied to clipboard
Observe dashboard job changes.
Link copied to clipboard
Observes job changes for a specific job with real-time updates and efficient change detection.
Link copied to clipboard
Update job status with offline-first support.