Reduce type duplication for block object requests without children.
template blockssynced_block blockslink_to_page blockslink_preview blocks and mentions.Adding support for argentine_peso and uruguayan_peso to the number currency formatting options
Add column and column_list support.
Adds support for divider and table_of_contents block types.
More details in the changelog.
Adds support for the Retrieve Page Property endpoint (GET /v1/pages/<page_id>/properties/<property_id>)
More details in the changelog
Adds support for callout and quote block types.
More details in the changelog.
Adds support for the getSelf endpoint (GET /v1/users/me).
Endpoints are now fully typed.
blocks.deleteAdd support for page icons, page covers, new URL based block types, and file page properties.
More details in the changelog.
2021-08-16 changesAdded create database endpoint.
Added show_original to rollup property functions.
Added ability to archive (delete) a page.
Adds support for url in returned Page object per this change https://developers.notion.com/changelog/page-objects-now-return-url
HTTPResponseError class is no longer exported, and HTTPResponseError.isHTTPResponseError(error) is replaced by isHTTPResponseError(error).got library.got library is replaced with node-fetch.fetch function when creating a Client instance. The client will use this fetch function for all HTTP requests.isNotionClientError type guard, both error.name and error.code are enumerated unions that can be used to further refine the type of error.error.code is guaranteed to be in your library's APIErrorCode or ClientErrorCode enum types, even if the API returns a new, unknown code in a response. In this case, error.code will be ClientErrorCode.ResponseError.Releasing with initial feature set. Stay tuned - we'd love to evolve this library to meet many more needs.