All Downloads are FREE. Search and download functionalities are using the official Maven repository.

notion.api.v1.model.pages.PageProperty.kt Maven / Gradle / Ivy

package notion.api.v1.model.pages

import notion.api.v1.model.databases.DatabaseProperty
import java.util.*

data class PageProperty(
    val id: String = UUID.randomUUID().toString(),
    val type: String? = null,
    val title: List? = null,
    val richText: List? = null,
    val select: DatabaseProperty.Select.Option? = null,
    val multiSelect: MultiSelect? = null,
    val date: Date? = null,
    val formula: Formula? = null,
    val rollup: Rollup? = null,
) {
    data class RichText(
        val type: String = "text",
        val text: Text? = null,
        val annotations: Annotations? = null,
        val plainText: String? = null,
        val href: String? = null,
    ) {

        data class Text(
            val content: String? = null,
            val link: Link? = null
        )

        data class Link(
            val type: String? = null,
            val url: String? = null
        )

        data class Annotations(
            val bold: Boolean? = null,
            val italic: Boolean? = null,
            val strikethrough: Boolean? = null,
            val underline: Boolean? = null,
            val code: Boolean? = null,
            val color: String? = null,
        )
    }

    data class Date(
        val start: String? = null,
        val end: String? = null
    )

    data class Formula(
        val type: String
    )

    data class Rollup(
        val type: String
    )

    data class MultiSelect(
        val options: List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy