Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Util

Index

Notion Common Type aliases

Emoji

Emoji: string

A string containing exactly one emoji character.

Latex

Latex: string

A LaTeX string representing math.

NotionColor

NotionColor: "gray" | "brown" | "orange" | "yellow" | "teal" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "teal_background" | "blue_background" | "purple_background" | "pink_background" | "red_background"

Color names.

NotionRelativePath

NotionRelativePath: string

A path relative to www.notion.so, e.g. /images/page-cover/gradients_10.jpg.

NotionSecureUrl

NotionSecureUrl: string

An URL starting with https://s3-us-west-2.amazonaws.com/secure.notion-static.com/. Must be authenticated before access.

Pointer

Pointer: { id: UUID; spaceId: UUID; table: Table }

A pointer to a record in Notion.

Type declaration

Proportion

Proportion: number

A decimal between and including 0 and 1.

PublicUrl

PublicUrl: string

A publicly accessible URL.

Table

Table: "block" | "collection" | "collection_view" | "notion_user" | "user_root" | "user_settings" | "space" | "space_view" | "activity" | "snapshot" | "follow" | "slack_integration" | "comment" | "discussion"

Record table names.

TimeZone

TimeZone: string

TZ database name in "Area/Location" format, e.g. "Asia/Taipei".

see

https://en.wikipedia.org/wiki/List_of_tz_database_time_zones

TimestampNumber

TimestampNumber: number

An Unix timestamp number in milliseconds.

TimestampString

TimestampString: string

An Unix timestamp string in milliseconds.

UUID

UUID: string

An UUID string, e.g. 0297b381-6319-417b-a4f8-2ca1f2a96a81

Other Type aliases

WithSpaceId

WithSpaceId<T>: { spaceId?: UUID; value: T }

Type parameters

  • T

Type declaration

  • Optional spaceId?: UUID

    Some values have spaceId while some don't.

  • value: T

Generated using TypeDoc