Skip to content

Commit

Permalink
feat(workspaceName): add workspace_name to bot object (makenotion#348)
Browse files Browse the repository at this point in the history
This PR includes:
- workspace_name change
- `comment_id` change from maybe clara
  • Loading branch information
hazel-notion authored Sep 30, 2022
1 parent 9b74aee commit 6c7d07a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/api-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export type BotUserObjectResponse = {
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
name: string | null
avatar_url: string | null
Expand Down Expand Up @@ -5259,6 +5260,7 @@ export type LinkToPageBlockObjectResponse = {
link_to_page:
| { type: "page_id"; page_id: IdRequest }
| { type: "database_id"; database_id: IdRequest }
| { type: "comment_id"; comment_id: IdRequest }
parent:
| { type: "database_id"; database_id: string }
| { type: "page_id"; page_id: string }
Expand Down Expand Up @@ -5881,6 +5883,7 @@ type RichTextItemRequest =
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
id: IdRequest
type?: "bot"
Expand Down Expand Up @@ -6030,6 +6033,7 @@ type BlockObjectRequestWithoutChildren =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -6206,6 +6210,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -6306,6 +6311,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -6522,6 +6528,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -6744,6 +6751,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -6956,6 +6964,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -7168,6 +7177,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -7379,6 +7389,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -7590,6 +7601,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -7801,6 +7813,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -8012,6 +8025,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -8223,6 +8237,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -8435,6 +8450,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -8645,6 +8661,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -8856,6 +8873,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -9069,6 +9087,7 @@ type BlockObjectRequest =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
object?: "block"
}
Expand Down Expand Up @@ -9457,6 +9476,7 @@ type CreatePageBodyParameters =
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
id: IdRequest
type?: "bot"
Expand Down Expand Up @@ -9557,6 +9577,7 @@ type CreatePageBodyParameters =
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
id: IdRequest
type?: "bot"
Expand Down Expand Up @@ -9700,6 +9721,7 @@ type UpdatePageBodyParameters = {
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
id: IdRequest
type?: "bot"
Expand Down Expand Up @@ -9784,6 +9806,7 @@ type UpdatePageBodyParameters = {
| PartialUserObjectResponse
}
| { type: "workspace"; workspace: true }
workspace_name: string | null
}
id: IdRequest
type?: "bot"
Expand Down Expand Up @@ -9957,6 +9980,7 @@ type UpdateBlockBodyParameters =
link_to_page:
| { page_id: IdRequest; type?: "page_id" }
| { database_id: IdRequest; type?: "database_id" }
| { comment_id: IdRequest; type?: "comment_id" }
type?: "link_to_page"
archived?: boolean
}
Expand Down

0 comments on commit 6c7d07a

Please sign in to comment.