File tree Expand file tree Collapse file tree 3 files changed +29
-1
lines changed
Src/Notion.Client/Models/Blocks Expand file tree Collapse file tree 3 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ namespace Notion.Client
2929 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( ParagraphBlock ) , BlockType . Paragraph ) ]
3030 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( PDFBlock ) , BlockType . PDF ) ]
3131 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( QuoteBlock ) , BlockType . Quote ) ]
32+ [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( SyncedBlockBlock ) , BlockType . SyncedBlock ) ]
3233 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( TableBlock ) , BlockType . Table ) ]
3334 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( TableRowBlock ) , BlockType . TableRow ) ]
3435 [ JsonSubtypes . KnownSubTypeAttribute ( typeof ( TableOfContentsBlock ) , BlockType . TableOfContents ) ]
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public async Task RetrieveBlockChildren()
3838
3939 // Assert
4040 var children = childrenResult . Results ;
41- children . Should ( ) . HaveCount ( 8 ) ;
41+ children . Should ( ) . HaveCount ( 9 ) ;
4242 }
4343
4444 [ Fact ]
Original file line number Diff line number Diff line change 155155 "expiry_time" : " 2022-05-11T17:55:32.613Z"
156156 }
157157 }
158+ },
159+ {
160+ "object" : " block" ,
161+ "id" : " 570d1df0-56c9-42f7-b8b8-5315323f82de" ,
162+ "parent" : {
163+ "type" : " page_id" ,
164+ "page_id" : " 9b02f058-bd87-46c2-95d2-7496fb9075bb"
165+ },
166+ "created_time" : " 2023-02-03T13:59:00.000Z" ,
167+ "last_edited_time" : " 2023-02-03T13:59:00.000Z" ,
168+ "created_by" : {
169+ "object" : " user" ,
170+ "id" : " 92e803ec-193c-4bcd-b28e-88365858d562"
171+ },
172+ "last_edited_by" : {
173+ "object" : " user" ,
174+ "id" : " 92e803ec-193c-4bcd-b28e-88365858d562"
175+ },
176+ "has_children" : true ,
177+ "archived" : false ,
178+ "type" : " synced_block" ,
179+ "synced_block" : {
180+ "synced_from" : {
181+ "type" : " block_id" ,
182+ "block_id" : " d2f7e3f3-c553-410d-a5f9-dfc0c335b169"
183+ }
184+ }
158185 }
159186 ],
160187 "next_cursor" : null ,
You can’t perform that action at this time.
0 commit comments