getAttachments

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)

moduleUid

UID of the module instance

page

Page number (1-based)

pageSize

Number of items per page

filters

Optional filters for date range and media type