Skip to content

Commit 94fb9a0

Browse files
Merge branch '3.1.0' into 255-add-support-to-create-update-description-property-on-database-object
2 parents 424fc85 + 3a8be28 commit 94fb9a0

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/DatabasesCreateParameters.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public class DatabasesCreateParameters : IDatabasesCreateBodyParameters, IDataba
2020
[JsonProperty("cover")]
2121
public FileObject Cover { get; set; }
2222

23+
public bool? IsInline { get; set; }
24+
2325
public string Description { get; set; }
2426
}
2527
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesCreateParameters/IDatabasesCreateBodyParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ public interface IDatabasesCreateBodyParameters
1414
[JsonProperty("title")]
1515
List<RichTextBaseInput> Title { get; set; }
1616

17+
[JsonProperty("is_inline")]
18+
bool? IsInline { get; set; }
19+
1720
[JsonProperty("description")]
1821
string Description { get; set; }
1922
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesUpdateParameters/DatabasesUpdateParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Collections.Generic;
2+
using Newtonsoft.Json;
23

34
namespace Notion.Client
45
{
@@ -14,6 +15,8 @@ public class DatabasesUpdateParameters : IDatabasesUpdateBodyParameters
1415

1516
public bool Archived { get; set; }
1617

18+
public bool? IsInline { get; set; }
19+
1720
public string Description { get; set; }
1821
}
1922
}

Src/Notion.Client/Api/Databases/RequestParams/DatabasesUpdateParameters/IDatabasesUpdateBodyParameters.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public interface IDatabasesUpdateBodyParameters
2020
[JsonProperty("archived")]
2121
bool Archived { get; set; }
2222

23+
[JsonProperty("is_inline")]
24+
bool? IsInline { get; set; }
25+
2326
[JsonProperty("description")]
2427
string Description { get; set; }
2528
}

Src/Notion.Client/Models/Database/Database.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ public class Database : IObject, IObjectModificationData
4747

4848
public PartialUser LastEditedBy { get; set; }
4949

50+
[JsonProperty("is_inline")]
51+
public bool IsInline { get; set; }
52+
5053
[JsonProperty("description")]
5154
public string Description { get; set; }
5255
}

0 commit comments

Comments
 (0)