updateNoteVisibility

suspend fun updateNoteVisibility(noteUid: String, noteVisibilityType: ZyncNoteVisibilityType, jobUid: String?, customerUid: String?): UpdateNoteVisibilityResult

Updates the visibility settings of a note with offline-first support.

Changes are immediately applied to local storage and queued for server synchronization. This operation supports all visibility types including private, customer-visible, and public notes.

Features:

  • Immediate local updates

  • Automatic background sync

  • Support for all visibility types and associations

  • Context-aware visibility rules

Return

UpdateNoteVisibilityResult containing success status or error information

Parameters

noteUid

Unique identifier of the note to update

noteVisibilityType

The new visibility type for the note

jobUid

Associated job UID (required for job-specific visibility)

customerUid

Associated customer UID (required for customer-visible notes)