dep_create_call(), dep_update_call(), and all single-record dep_read_*() functions (dep_read_event(), dep_read_call(), dep_read_investigation(), dep_read_animal(), dep_read_group()) now correctly return the created/updated/fetched record as a single-row tibble. Previously they returned the raw {schema, data, message} API envelope unwrapped, so accessing fields like $id directly on the result silently returned NULL instead of erroring. A new internal parse_entity() helper unwraps data and converts NULL fields to NA (avoiding a tibble::as_tibble() crash on JSON null values).
spdgt.depredation 0.0.0.4
dep_read_authorizations() now handles packs whose metadata.authorizations arrays have different column sets (e.g., some packs include area_authorized, others don’t). The internal rc_flatten_authorizations() helper normalizes column unions before rbind, fixing a “numbers of columns of arguments do not match” error that surfaced on the live data.
spdgt.depredation 0.0.0.3
dep_read_authorizations() is a new function that returns a flat tibble of all wolf removal authorizations stored in depredation.groups.metadata.authorizations[], with pack_id + pack_name prepended and per-row UUID ids backfilled where missing.
dep_read_removals() is a new function that wraps dep_read_animals(species = "wolf") and surfaces removal-specific metadata fields (date_authorized, method_of_removal, who_removed, comments) as top-level columns.
spdgt.depredation 0.0.0.2
dep_read_group() and dep_read_groups() retrieve wolf pack/group records from the depredation API. Use includes = "animals" to get pack members.