From 57209a8677463b0f367712669e456759c2ab8326 Mon Sep 17 00:00:00 2001 From: Ruben Waterman Date: Tue, 14 Oct 2025 09:42:37 +0000 Subject: [PATCH 1/3] add more properties --- lib/notionex/object/page.ex | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/lib/notionex/object/page.ex b/lib/notionex/object/page.ex index 45aaef0..2069857 100644 --- a/lib/notionex/object/page.ex +++ b/lib/notionex/object/page.ex @@ -4,16 +4,35 @@ defmodule Notionex.Object.Page do @type t() :: Object.t() | %{ - url: binary, - public_url: binary, + created_by: Object.User.t(), + last_edited_by: Object.User.t(), cover: Object.File.t(), icon: Object.File.t(), + in_trash: boolean(), + is_locked: boolean(), + url: binary, + public_url: binary, + developer_survey: binary, + request_id: binary, parent: Object.Parent.t(), properties: map } defstruct Object.default_properties() ++ - [url: nil, public_url: nil, cover: nil, icon: nil, parent: nil, properties: %{}] + [ + created_by: %Object.User{}, + last_edited_by: %Object.User{}, + cover: nil, + icon: nil, + in_trash: false, + is_locked: false, + url: nil, + public_url: nil, + developer_survey: nil, + request_id: nil, + parent: nil, + properties: %{} + ] def new(%{"object" => "page"} = attrs) do attrs From a1817bef24e069c598efede12128d724564dac77 Mon Sep 17 00:00:00 2001 From: Ruben Waterman Date: Tue, 14 Oct 2025 09:45:03 +0000 Subject: [PATCH 2/3] remove duplicates --- lib/notionex/object/page.ex | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/notionex/object/page.ex b/lib/notionex/object/page.ex index 2069857..7f7abb3 100644 --- a/lib/notionex/object/page.ex +++ b/lib/notionex/object/page.ex @@ -20,11 +20,8 @@ defmodule Notionex.Object.Page do defstruct Object.default_properties() ++ [ - created_by: %Object.User{}, - last_edited_by: %Object.User{}, cover: nil, icon: nil, - in_trash: false, is_locked: false, url: nil, public_url: nil, From c0780a61dd008c1bb0000df2f39dda33976dd50b Mon Sep 17 00:00:00 2001 From: Ruben Waterman Date: Thu, 12 Mar 2026 11:56:24 -0100 Subject: [PATCH 3/3] relax httpoison requirement --- mix.exs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mix.exs b/mix.exs index 22eb37e..3cf6b63 100644 --- a/mix.exs +++ b/mix.exs @@ -30,7 +30,7 @@ defmodule Notionex.MixProject do # Run "mix help deps" to learn about dependencies. defp deps do [ - {:httpoison, "~> 2.2.1"}, + {:httpoison, "~> 2.2"}, {:jason, "~> 1.4.1"}, {:ex_doc, "~> 0.19", only: :dev, runtime: false} ]