notion-dotnet / notion-sdk-net

A Notion SDK for .Net
MIT License
181 stars 44 forks source link

Removed 'archived' property and added 'in_trash' property. #417

Open kosaku-hayashi opened 1 month ago

kosaku-hayashi commented 1 month ago

Description

The Archived properties defined for Block, Page, and Database objects have been deprecated and replaced with new InTrash properties. The API reference has not yet been edited to the new InTrash in some places (block update page), but all API responses seem to have been adapted to InTrash.Migration from Archived to InTrash properties has no functional differences other than the name change, so simply replacing them will cause all existing APIs to work properly. I have also modified the test code for the areas applicable to the change.

Fixes #410

Type of change

How Has This Been Tested?

Unit testing was successfully completed and the various APIs (query, update, search) affected by the change were tested in Notion.

Checklist:

Comment

If you need to maintain backward compatibility and support both Archived and InTrash properties, please contact us again!

kosaku-hayashi commented 1 month ago

Sorry. I forgot to add the renamed TrashPageResponse.json and had to push it back.