get Attachments
suspend fun getAttachments(module: ZuperModule, moduleUid: String, page: Int, pageSize: Int, filters: ZyncAttachmentFilters? = null): AttachmentResult
Get paginated attachments with simple result-based API. Client handles loading states externally.
This API provides immediate results:
Returns cached data immediately if available
Performs sync and returns Success/Error result
Background delta sync for subsequent calls
Return
AttachmentResult with success/error state and data
Parameters
module
Module to filter by (e.g., ZuperModule.JOB)
module Uid
UID of the module instance
page
Page number (1-based)
page Size
Number of items per page
filters
Optional filters for date range and media type