Conversation
- Add DataSource resource, DataSourcesEndpoint, PartialDataSource
- Add DataSourceIdParent for page creation under data sources
- Add PageOrDataSourceResults for data source query pagination
- Database: data_sources list, safe parsing for optional API fields
- RelationPropertyConfiguration: data_source_id support
- DatabasesEndpoint::create() wraps properties in initial_data_source for 2025-09-03+
- AbstractEndpoint::normalizeEmptyPropertyConfigurations() for {} vs [] schema
- Client: dataSources(), getOptions(); default Notion version 2022-06-28
- DatabaseIdParent/DataSourceIdParent set type in constructor for toArray()
- DataSourcesEndpointTest, DataSourceTest - DatabaseTest with data_sources, DatabasesEndpointTest initial_data_source - PagesEndpointTest create with DataSourceIdParent, SearchEndpointTest data_source filter - ClientTest getOptions; fixtures for data source and search responses
- examples/08-data-sources-api-smoke: retrieve/query/search, optional create/update - Self-contained with composer deps; NOTION_RUN_WRITES for write mode
- Data sources (Notion API 2025-09-03): dataSources(), data_source_id, initial_data_source - Examples list: 08-data-sources-api-smoke integration checks
Use explicit assertions instead of ?-> so the test suite parses on PHP 7.4.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Data Source resources and endpoint.
Motivation and context
Notion’s 2025-09-03 API adds data sources and this change adds SDK support for it.
How has this been tested?
Unit tests and new fixtures.
Types of changes
PR checklist