Skip to content

Feat/notion datasource#65

Merged
brd6 merged 5 commits intomainfrom
feat/notion-datasource
Feb 23, 2026
Merged

Feat/notion datasource#65
brd6 merged 5 commits intomainfrom
feat/notion-datasource

Conversation

@brd6
Copy link
Owner

@brd6 brd6 commented Feb 23, 2026

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

PR checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING.md document.
  • I have added tests to cover my changes.

brd6 added 5 commits February 23, 2026 19:49
- 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.
@brd6 brd6 merged commit 6ed2efc into main Feb 23, 2026
21 checks passed
@brd6 brd6 deleted the feat/notion-datasource branch February 23, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant