getTagsByModuleUid

suspend fun getTagsByModuleUid(moduleUid: String, searchQuery: String? = null): MasterTagsResult

Get all unique tags associated with attachments for a specific module UID. This method queries all attachments matching the provided module UID and returns the distinct tags that are associated with those attachments.

This is useful for:

  • Getting all tags used within a specific module instance (e.g., all tags used in a specific job)

  • Building tag filter options based on actual usage

  • Understanding tag distribution across module content

The method works entirely with locally cached data and does not perform any network operations. Tags are returned in alphabetical order by tag name.

Return

MasterTagsResult containing list of ZyncTag objects or error information

Parameters

moduleUid

The unique identifier of the module instance to get tags for

searchQuery

Optional search query to filter tags by name