Skip to content

Commit

Permalink
Add support for unique ID in database request / repsonses (#450)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhart92 authored Aug 25, 2023
1 parent 7689c0b commit 924a9ab
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/api-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4707,6 +4707,13 @@ type RollupDatabasePropertyConfigResponse = {
name: string
}

type UniqueIdDatabasePropertyConfigResponse = {
type: "unique_id"
unique_id: { prefix: string | null }
id: string
name: string
}

type TitleDatabasePropertyConfigResponse = {
type: "title"
title: EmptyObject
Expand Down Expand Up @@ -4806,6 +4813,7 @@ type DatabasePropertyConfigResponse =
| StatusDatabasePropertyConfigResponse
| RelationDatabasePropertyConfigResponse
| RollupDatabasePropertyConfigResponse
| UniqueIdDatabasePropertyConfigResponse
| TitleDatabasePropertyConfigResponse
| RichTextDatabasePropertyConfigResponse
| UrlDatabasePropertyConfigResponse
Expand Down Expand Up @@ -5210,6 +5218,7 @@ type LanguageRequest =
| "mathematica"
| "mermaid"
| "nix"
| "notion formula"
| "objective-c"
| "ocaml"
| "pascal"
Expand Down Expand Up @@ -10433,6 +10442,12 @@ type UpdateDatabaseBodyParameters = {
name?: string
}
| null
| {
unique_id: { prefix?: string | null }
type?: "unique_id"
name?: string
}
| null
| { title: EmptyObject; type?: "title"; name?: string }
| null
| { rich_text: EmptyObject; type?: "rich_text"; name?: string }
Expand Down Expand Up @@ -10654,6 +10669,7 @@ type CreateDatabaseBodyParameters = {
}
type?: "rollup"
}
| { unique_id: { prefix?: string | null }; type?: "unique_id" }
| { title: EmptyObject; type?: "title" }
| { rich_text: EmptyObject; type?: "rich_text" }
| { url: EmptyObject; type?: "url" }
Expand Down

0 comments on commit 924a9ab

Please sign in to comment.