From a95807d4e48bf5c24515dda9cb8fbcea71c19c25 Mon Sep 17 00:00:00 2001 From: Waseem Awashra Date: Sun, 8 Feb 2026 17:48:47 +0200 Subject: [PATCH 1/2] disclose property if readonly and the options lists --- lib/hubspot/manage/client.ex | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/hubspot/manage/client.ex b/lib/hubspot/manage/client.ex index add5e71..b109e69 100644 --- a/lib/hubspot/manage/client.ex +++ b/lib/hubspot/manage/client.ex @@ -687,8 +687,8 @@ defmodule Hubspot.Manage.Client do |> Enum.map_join("&", fn {key, val} -> "#{key}=#{val}" end) end - defp to_property(property), - do: %{ + defp to_property(property) do + %{ id: property["name"], title: property["label"], is_custom_property: @@ -697,8 +697,12 @@ defmodule Hubspot.Manage.Client do else true end, - type: property["type"] + type: property["type"], + options: property["options"], + is_read_only: property["modificationMetadata"]["readOnlyValue"], + is_read_only_definition: property["modificationMetadata"]["readOnlyDefinition"] } + end defp eventable?(_object_name, :custom_object), do: true From 7fba118bad218e2000be4f250cb9dc2064c43651 Mon Sep 17 00:00:00 2001 From: Waseem Awashra Date: Mon, 9 Feb 2026 14:36:33 +0200 Subject: [PATCH 2/2] Fix pros fetch --- lib/hubspot/manage/client.ex | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/hubspot/manage/client.ex b/lib/hubspot/manage/client.ex index b109e69..c40d4a0 100644 --- a/lib/hubspot/manage/client.ex +++ b/lib/hubspot/manage/client.ex @@ -691,16 +691,10 @@ defmodule Hubspot.Manage.Client do %{ id: property["name"], title: property["label"], - is_custom_property: - if property["hubspotDefined"] do - false - else - true - end, + is_custom_property: not property["hubspotDefined"], type: property["type"], options: property["options"], - is_read_only: property["modificationMetadata"]["readOnlyValue"], - is_read_only_definition: property["modificationMetadata"]["readOnlyDefinition"] + is_read_only: property["modificationMetadata"]["readOnlyValue"] } end