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.

Functions

Link copied to clipboard
suspend fun fetchJobs(page: Int, pageSize: Int, sortAndFilter: ZyncJobSortAndFilter): GetJobsResult
Link copied to clipboard
suspend fun fetchJobsForDashboard(page: Int, pageSize: Int, fromDate: String, toDate: String, keyword: String?, statusType: List<ZyncJobStatusType>?): GetDashboardJobsResult
Link copied to clipboard
suspend fun fetchJobsForDashboardWithStats(page: Int, pageSize: Int, fromDate: String, toDate: String): GetDashboardJobsWithStatsResult
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(page: Int, pageSize: Int, sortAndFilter: ZyncLaborCodesSortAndFilter): GetJobLaborCodesResult

Get job labor codes with filtering and sorting options

Link copied to clipboard
suspend fun getJobStats(fromDate: String, toDate: String): GetJobStatsResult

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
suspend fun updateCoverImage(jobUid: String, attachmentFilePath: String): UpdateCoverImageResult

Update job cover image by uploading a local file. This is an online-only operation that uploads the image first and then updates the job with the uploaded image URL.

Link copied to clipboard

Update job status with offline-first support