CloudKit.Zone (cloud_kit v0.3.0)

Copy Markdown View Source

Zone struct representing a CloudKit custom zone.

Fields

  • zone_id: Zone identifier (zone name and optional owner)
  • sync_token: Token for incremental sync
  • atomic: Whether operations in this zone are atomic

Summary

Functions

Decode a CloudKit zone from the API response.

Create a zone ID map for API requests.

Types

t()

@type t() :: %CloudKit.Zone{
  atomic: boolean() | nil,
  sync_token: String.t() | nil,
  zone_id: map() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: t()

Decode a CloudKit zone from the API response.

zone_id(zone_name, owner_record_name \\ "_defaultOwner")

@spec zone_id(String.t(), String.t() | nil) :: map()

Create a zone ID map for API requests.