From fd8cd08245f3dabc4bd1d335f0faa7987c09cd6e Mon Sep 17 00:00:00 2001 From: Ankur Sheel Date: Fri, 30 Jul 2021 07:41:27 +1200 Subject: [PATCH 1/2] add missing rollup enums --- .../Models/Database/Properties/RollupProperty.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Src/Notion.Client/Models/Database/Properties/RollupProperty.cs b/Src/Notion.Client/Models/Database/Properties/RollupProperty.cs index a0617595..b323e55c 100644 --- a/Src/Notion.Client/Models/Database/Properties/RollupProperty.cs +++ b/Src/Notion.Client/Models/Database/Properties/RollupProperty.cs @@ -70,6 +70,12 @@ public enum Function Max, [EnumMember(Value = "range")] - Range + Range, + + [EnumMember(Value = "show_original")] + ShowOriginal, + + [EnumMember(Value = "show_unique")] + ShowUnique } } From 678a6c940cd6b1074d075d75d6c8f915bb941c92 Mon Sep 17 00:00:00 2001 From: Ankur Sheel Date: Fri, 30 Jul 2021 11:50:33 +1200 Subject: [PATCH 2/2] make boolean nullable for formulas --- Src/Notion.Client/Models/PropertyValue/FormulaPropertyValue.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Notion.Client/Models/PropertyValue/FormulaPropertyValue.cs b/Src/Notion.Client/Models/PropertyValue/FormulaPropertyValue.cs index aa3e9c42..89fd5a0a 100644 --- a/Src/Notion.Client/Models/PropertyValue/FormulaPropertyValue.cs +++ b/Src/Notion.Client/Models/PropertyValue/FormulaPropertyValue.cs @@ -12,7 +12,7 @@ public class FormulaValue public string Type { get; set; } public string String { get; set; } public double? Number { get; set; } - public bool Boolean { get; set; } + public bool? Boolean { get; set; } public DatePropertyValue Date { get; set; } } }