Skip to content

Commit

Permalink
Add support for creating template mentions (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhart92 committed Apr 11, 2023
1 parent 13e0fad commit e836618
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/api-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3828,7 +3828,6 @@ type EmojiRequest =
| "↕️"
| "↕"
| "↔️"
| "↔"
| "↩️"
| "↩"
| "↪️"
Expand Down Expand Up @@ -3882,14 +3881,12 @@ type EmojiRequest =
| "🔁"
| "🔂"
| "▶️"
| "▶"
| "⏩"
| "⏭️"
| "⏭"
| "⏯️"
| "⏯"
| "◀️"
| "◀"
| "⏪"
| "⏮️"
| "⏮"
Expand Down Expand Up @@ -3968,7 +3965,6 @@ type EmojiRequest =
| "®️"
| "®"
| "™️"
| "™"
| "#️⃣"
| "#⃣"
| "*️⃣"
Expand Down Expand Up @@ -5820,6 +5816,10 @@ type DateRequest = {
time_zone?: TimeZoneRequest | null
}

type TemplateMentionRequest =
| { template_mention_date: "today" | "now"; type?: "template_mention_date" }
| { template_mention_user: "me"; type?: "template_mention_user" }

type RichTextItemRequest =
| {
text: { content: string; link?: { url: TextRequest } | null }
Expand Down Expand Up @@ -5896,6 +5896,7 @@ type RichTextItemRequest =
| { date: DateRequest }
| { page: { id: IdRequest } }
| { database: { id: IdRequest } }
| { template_mention: TemplateMentionRequest }
type?: "mention"
annotations?: {
bold?: boolean
Expand Down Expand Up @@ -9294,6 +9295,7 @@ type RollupSubfilterPropertyFilter =
| { date: DatePropertyFilter }
| { people: PeoplePropertyFilter }
| { files: ExistencePropertyFilter }
| { status: StatusPropertyFilter }

type RollupPropertyFilter =
| { any: RollupSubfilterPropertyFilter }
Expand Down

0 comments on commit e836618

Please sign in to comment.