Skip to content

Commit 8ae0c76

Browse files
committed
Add support for url, email, phone_number types
1 parent efe1d0c commit 8ae0c76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/api/types.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export type ColumnType =
3838
| "multi_select"
3939
| "number"
4040
| "relation"
41-
| "file";
41+
| "file"
42+
| "email"
43+
| "phone_number"
44+
| "url";
4245

4346
export type ColumnSchemaType = {
4447
name: string;

src/api/utils.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ export const getNotionValue = (
3939
case "title":
4040
return getTextContent(val);
4141
case "select":
42+
case "email":
43+
case "phone_number":
44+
case "url":
4245
return val[0][0];
4346
case "multi_select":
4447
return val[0][0].split(",") as string[];

0 commit comments

Comments
 (0)