Repository: seratch/notion-sdk-jvm
Pull request #106 (2023-09-04 18:52:35)

Bump slf4j.version from 2.0.7 to 2.0.9
Bumps `slf4j.version` from 1.7.36 to 2.0.9.
Updates `org.slf4j:slf4j-api` from 1.7.36 to 2.0.9

Updates `org.slf4j:slf4j-simple` from 2.0.7 to 2.0.9


You can trigger a rebase of this PR by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>

> **Note**
> Automatic rebases have been disabled on this pull request as it has been open for over 30 days.



Patch:
diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml
index d4c2b4d..5425daf 100644
--- a/.github/workflows/ci-build.yml
+++ b/.github/workflows/ci-build.yml
@@ -15,7 +15,7 @@ jobs:
         java-version: [ '11', '17' ]
 
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Install JDK
         uses: actions/setup-java@v3
         with:
diff --git a/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/PropertyFilter.kt b/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/PropertyFilter.kt
index a987df1..fee9f4f 100644
--- a/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/PropertyFilter.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/PropertyFilter.kt
@@ -25,4 +25,5 @@ constructor(
     var relation: RelationFilter? = null,
     var formula: FormulaFilter? = null,
     var status: StatusFilter? = null,
+    var rollup: RollupFilter? = null,
 ) : QueryTopLevelFilter, CompoundFilterElement
diff --git a/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/condition/RollupFilter.kt b/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/condition/RollupFilter.kt
new file mode 100644
index 0000000..a775231
--- /dev/null
+++ b/core/src/main/kotlin/notion/api/v1/model/databases/query/filter/condition/RollupFilter.kt
@@ -0,0 +1,34 @@
+package notion.api.v1.model.databases.query.filter.condition
+
+open class RollupFilter
+@JvmOverloads
+constructor(
+    var any: Content? = null,
+    var every: Content? = null,
+    var none: Content? = null,
+) {
+  open class Content
+  @JvmOverloads
+  constructor(
+      var title: TextFilter? = null,
+      var richText: TextFilter? = null,
+      var url: TextFilter? = null,
+      var email: TextFilter? = null,
+      var phoneNumber: TextFilter? = null,
+      var number: NumberFilter? = null,
+      var checkbox: CheckboxFilter? = null,
+      var select: SelectFilter? = null,
+      var multiSelect: MultiSelectFilter? = null,
+      var date: DateFilter? = null,
+      var timestamp: String? = null, // "created_time", "last_edited_time"
+      var createdTime: TimestampFilter? = null,
+      var lastEditedTime: TimestampFilter? = null,
+      var createdBy: PeopleFilter? = null,
+      var lastEditedBy: PeopleFilter? = null,
+      var file: FilesFilter? = null,
+      var relation: RelationFilter? = null,
+      var formula: FormulaFilter? = null,
+      var status: StatusFilter? = null,
+      var rollup: RollupFilter? = null,
+  )
+}
diff --git a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
index 23d49b4..d3f1ab5 100644
--- a/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
+++ b/core/src/main/kotlin/notion/api/v1/model/pages/PageProperty.kt
@@ -106,5 +106,6 @@ constructor(
       val number: Number? = null,
       val array: List<PageProperty>? = null,
       val function: String? = null,
+      val date: Date? = null,
   )
 }
diff --git a/pom.xml b/pom.xml
index 03d6d83..27d98f6 100644
--- a/pom.xml
+++ b/pom.xml
@@ -44,16 +44,16 @@
         <okhttp5.version>5.0.0-alpha.11</okhttp5.version>
         <gson.version>2.10.1</gson.version>
         <slf4j.version>1.7.36</slf4j.version>
-        <slf4j2.version>2.0.7</slf4j2.version>
+        <slf4j2.version>2.0.9</slf4j2.version>
         <logback.version>1.2.10</logback.version>
         <!-- Lock the version: https://github.com/seratch/notion-sdk-jvm/issues/91 -->
         <kotlin.version>1.7.22</kotlin.version>
         <kotlin.code.style>official</kotlin.code.style>
         <duplicate-finder-maven-plugin.version>1.3.0</duplicate-finder-maven-plugin.version>
         <maven-deploy-plugin.version>3.1.1</maven-deploy-plugin.version>
-        <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
+        <maven-compiler-plugin.version>3.11.0</maven-compiler-plugin.version>
         <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
-        <maven-source-plugin.version>3.0.1</maven-source-plugin.version>
+        <maven-source-plugin.version>3.3.0</maven-source-plugin.version>
         <maven-release-plugin.version>2.5.3</maven-release-plugin.version>
         <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version>
         <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version>


Test patch:
diff --git a/core/src/test/kotlin/tests/model/PagesTest.kt b/core/src/test/kotlin/tests/model/PagesTest.kt
index c74bd66..47a6d93 100644
--- a/core/src/test/kotlin/tests/model/PagesTest.kt
+++ b/core/src/test/kotlin/tests/model/PagesTest.kt
@@ -44,6 +44,19 @@ class PagesTest {
         }
       ]
     },
+    "Rollup Property": {
+      "id": "da010d01-6406-43d1-ae03-4b4b6989bbd9",
+      "type": "rollup",
+      "rollup": {
+        "type": "date",
+        "function": "opaque_value",
+        "date": {
+          "start": "2023-03-09T00:00:00.000+00:00",
+          "end": null,
+          "time_zone": null
+        }
+      }
+    },
     "Due": {
       "id": "da010d01-6406-43d1-ae03-4b4b6989bbd8",
       "date": {