Repository: seratch/notion-sdk-jvm
Pull request #104 (2023-08-21 18:56:25)

Bump org.apache.maven.plugins:maven-source-plugin from 3.0.1 to 3.3.0
Bumps [org.apache.maven.plugins:maven-source-plugin](https://github.com/apache/maven-source-plugin) from 3.0.1 to 3.3.0.
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/apache/maven-source-plugin/commit/02a984779ed6157698fdb9235e5e66154b3d24e7"><code>02a9847</code></a> [maven-release-plugin] prepare release maven-source-plugin-3.3.0</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/f186993414e076abcf70b960b487813a6b1df8b7"><code>f186993</code></a> [MSOURCES-135] Cleanup project code</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/021af551aedf361dec82a5f6808054030ac47e8b"><code>021af55</code></a> [MSOURCES-134] Refresh download page</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/b11a457ba99a83fb5808b132967b4ddcc9523e89"><code>b11a457</code></a> Use shared GitHub actions v3</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/7caf2b0debe39afa2d1aff4fa38fa38b8988acad"><code>7caf2b0</code></a> [MSOURCES-133] Upgrade Parent to 39 - ignore git blame</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/dee4c1000d57c8c385cfe1147c81950371437d4b"><code>dee4c10</code></a> [MSOURCES-133] Upgrade Parent to 39</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/452111f29c36260640ae2cebc2afd8ec5f6279a0"><code>452111f</code></a> Add dependabot configuration</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/e691ac3b7f0f451e9da973e7734e07671b21efa9"><code>e691ac3</code></a> s/MSOURCE/MSOURCES/</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/1ddffd8923b65e37b28abf60120f979ea6238a23"><code>1ddffd8</code></a> Auto-link MSOURCE Jira</li>
<li><a href="https://github.com/apache/maven-source-plugin/commit/37ffefea6f479bbd78e89a2df97b4acd5b57f5b3"><code>37ffefe</code></a> Add pull request template</li>
<li>Additional commits viewable in <a href="https://github.com/apache/maven-source-plugin/compare/maven-source-plugin-3.0.1...maven-source-plugin-3.3.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.apache.maven.plugins:maven-source-plugin&package-manager=maven&previous-version=3.0.1&new-version=3.3.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

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/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..e5805ed 100644
--- a/pom.xml
+++ b/pom.xml
@@ -51,9 +51,9 @@
         <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": {