better-notion 1.8.7__py3-none-any.whl → 1.8.9__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,7 +74,22 @@ class PageCollection:
74
74
  )
75
75
  return data.get("results", [])
76
76
 
77
- def iterate(self, database_id: str, **kwargs: Any) -> AsyncPaginatedIterator[dict[str, Any]]:
77
+ async def update(self, page_id: str, **kwargs: Any) -> dict[str, Any]:
78
+ """Update a page.
79
+
80
+ Args:
81
+ page_id: The page ID.
82
+ **kwargs: Page properties to update.
83
+
84
+ Returns:
85
+ Raw page data dict from Notion API.
86
+
87
+ Raises:
88
+ NotFoundError: If the page does not exist.
89
+ BadRequestError: If the request is invalid.
90
+ """
91
+ return await self._api._request("PATCH", f"/pages/{page_id}", json=kwargs)
92
+
78
93
  """Iterate over all pages in a database with automatic pagination.
79
94
 
80
95
  Args:
@@ -882,7 +882,13 @@ class AgentsPlugin(CombinedPluginInterface):
882
882
  priority: str = typer.Option("Medium", "--priority"),
883
883
  estimated_hours: float = typer.Option(0, "--estimated-hours"),
884
884
  ):
885
- typer.echo(agents_cli.tasks_create(title, version_id, type_, priority, estimated_hours))
885
+ typer.echo(agents_cli.tasks_create(
886
+ title=title,
887
+ version_id=version_id,
888
+ task_type=type_,
889
+ priority=priority,
890
+ estimated_hours=int(estimated_hours) if estimated_hours else None,
891
+ ))
886
892
 
887
893
  @tasks_app.command("next")
888
894
  def tasks_next_cmd(project_id: str = typer.Option(None, "--project-id", "-p")):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 1.8.7
3
+ Version: 1.8.9
4
4
  Summary: A high-level Python SDK for the Notion API with developer experience in mind.
5
5
  Project-URL: Homepage, https://github.com/nesalia-inc/better-notion
6
6
  Project-URL: Documentation, https://github.com/nesalia-inc/better-notion#readme
@@ -7,7 +7,7 @@ better_notion/_api/collections/__init__.py,sha256=snBRDpUOWxKR-w6FjNtfRddclO1LF2
7
7
  better_notion/_api/collections/blocks.py,sha256=Ka8HbVk9NCDh1zMJeKvP1XCjxJI_1yuGzYyzSxFgYGY,3703
8
8
  better_notion/_api/collections/comments.py,sha256=Qkl2pOxqiti1ALJpBi1TE1arQoSc8Y6cuOkqpsXrzpE,3222
9
9
  better_notion/_api/collections/databases.py,sha256=eUpNSwSWn8J5AkCq1uZEBPb7rNmrrzvNMqFTsfFCcDc,3084
10
- better_notion/_api/collections/pages.py,sha256=qX_QwNJsq8jPvWp91A44zfais69gIXNSRjeH7NL8ha0,3174
10
+ better_notion/_api/collections/pages.py,sha256=lG0A0GMdT_lUy8F-BGNGs9014MrJckPUcYYHkwty6X8,3565
11
11
  better_notion/_api/collections/users.py,sha256=h-J5fQbXQSj7ZgMfHRDoXLKUv1lP3On6uWO-3YO4dlc,1309
12
12
  better_notion/_api/entities/__init__.py,sha256=QYSgFMr5kC94M6nzpkr_KSjUZcCpdZBObBod7XOrhU4,521
13
13
  better_notion/_api/entities/block.py,sha256=iRY0aD45Hkg5QPhEh7r-QBsDVhMjmzbwVZPeDmHMb4k,2492
@@ -112,7 +112,7 @@ better_notion/plugins/base.py,sha256=3h9jOZzS--UqmVW3RREtcQ2h1GTWWPUryTencsJKhTM
112
112
  better_notion/plugins/loader.py,sha256=zCWsMdJyvZs1IHFm0zjEiqm_l_5jB1Uw4x30Kq8rLS4,9527
113
113
  better_notion/plugins/state.py,sha256=jH_tZWvC35hqLO4qwl2Kwq9ziWVavwCEUcCqy3s5wMY,3780
114
114
  better_notion/plugins/official/__init__.py,sha256=rPg5vdk1cEANVstMPzxcWmImtsOpdSR40JSml7h1uUk,426
115
- better_notion/plugins/official/agents.py,sha256=nbqfUPsJCCY3R8c1FvOi3CfP1lVhWkp0Rw6Okm6CrTE,51440
115
+ better_notion/plugins/official/agents.py,sha256=3ibh88XPu3ykNuq1FTfXP_yECaz7pzIXqLngX0MW5-I,51627
116
116
  better_notion/plugins/official/agents_cli.py,sha256=PwkPBv2l0GHdRmkMM8dkb1i_Q60FrvZZcil_p6ZaA6U,52193
117
117
  better_notion/plugins/official/agents_schema.py,sha256=NQRAJFoBAXRuxB9_9Eaf-4tVth-1OZh7GjmN56Yp9lA,39867
118
118
  better_notion/plugins/official/productivity.py,sha256=_-whP4pYA4HufE1aUFbIdhrjU-O9njI7xUO_Id2M1J8,8726
@@ -133,8 +133,8 @@ better_notion/utils/agents/rbac.py,sha256=8ZA8Y7wbOiVZDbpjpH7iC35SZrZ0jl4fcJ3xWC
133
133
  better_notion/utils/agents/schemas.py,sha256=eHfGhY90FAPXA3E8qE6gP75dgNzn-9z5Ju1FMwBKnQQ,22120
134
134
  better_notion/utils/agents/state_machine.py,sha256=xUBEeDTbU1Xq-rsRo2sbr6AUYpYrV9DTHOtZT2cWES8,6699
135
135
  better_notion/utils/agents/workspace.py,sha256=Uy8bqLsT_VFGYAPoiQJNuCvGdjMceaSiVGbR9saMpoU,16558
136
- better_notion-1.8.7.dist-info/METADATA,sha256=FEo6YRaMY5n8yKe7ohKviiUFxfLytFellO-qR78BxZ0,11096
137
- better_notion-1.8.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-1.8.7.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-1.8.7.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-1.8.7.dist-info/RECORD,,
136
+ better_notion-1.8.9.dist-info/METADATA,sha256=8R9xMeceQgNrlp-z-emUyVLZVdPm8prDXhsaimT_DVo,11096
137
+ better_notion-1.8.9.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-1.8.9.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-1.8.9.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-1.8.9.dist-info/RECORD,,