Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd5ba92f

Browse files
authored
Removepage_id as a possible parent forCreateDataSourceBodyParameters (#619)
## DescriptionThis PR syncs the latest changes from Notion's API schema`src/api-endpoints.ts`. Specifically, this removes the unusable`parent.page_id` variant from the `dataSources.create` parameters. Thisis technically a breaking change, but this wouldn't have worked for APIversion `2025-09-03` anyway (i.e. would have returned a`validation_error`). `database_id` is the only valid parent type for adata source.## How was this change tested?- [x] Automated test (unit, integration, etc.)- [ ] Manual test (provide reproducible testing steps below)N/A; automated sync. Relying on existing tests, typechecking, andlinting in CI.## ScreenshotsN/A
1 parent09703a1 commitd5ba92f

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

‎src/api-endpoints.ts‎

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7216,6 +7216,14 @@ type GroupFilterOperatorArray = Array<
72167216
|{and:PropertyOrTimestampFilterArray}
72177217
>
72187218

7219+
typeParentOfDataSourceRequest={
7220+
// Always `database_id`
7221+
type?:"database_id"
7222+
// The ID of the parent database (with or without dashes), for example,
7223+
// 195de9221179449fab8075a27c979105
7224+
database_id:IdRequest
7225+
}
7226+
72197227
typeNumberPropertyConfigurationRequest={
72207228
// Always `number`
72217229
type?:"number"
@@ -8583,23 +8591,8 @@ export const queryDataSource = {
85838591
}asconst
85848592

85858593
typeCreateDataSourceBodyParameters={
8586-
// An object containing information about where the new database is inserted. Can be a
8587-
// page (page_id) or another database (database_id).
8588-
parent:
8589-
|{
8590-
// The ID of the parent page (with or without dashes), for example,
8591-
// 195de9221179449fab8075a27c979105
8592-
page_id:IdRequest
8593-
// Always `page_id`
8594-
type?:"page_id"
8595-
}
8596-
|{
8597-
// The ID of the parent database (with or without dashes), for example,
8598-
// 195de9221179449fab8075a27c979105
8599-
database_id:IdRequest
8600-
// Always `database_id`
8601-
type?:"database_id"
8602-
}
8594+
// An object specifying the parent of the new data source to be created.
8595+
parent:ParentOfDataSourceRequest
86038596
// Property schema of data source.
86048597
properties:Record<string,PropertyConfigurationRequest>
86058598
// Title of data source as it appears in Notion.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp