better-notion 1.8.5__py3-none-any.whl → 1.8.7__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.
@@ -280,12 +280,12 @@ def projects_get(project_id: str) -> str:
280
280
  def projects_create(
281
281
  name: str,
282
282
  organization_id: str,
283
- slug: Optional[str] = typer.Option(None, "--slug", "-s", help="URL-safe identifier"),
284
- description: Optional[str] = typer.Option(None, "--description", "-d", help="Project description"),
285
- repository: Optional[str] = typer.Option(None, "--repository", "-r", help="Git repository URL"),
286
- status: str = typer.Option("Active", "--status", help="Project status"),
287
- tech_stack: Optional[str] = typer.Option(None, "--tech-stack", "-t", help="Comma-separated tech stack"),
288
- role: str = typer.Option("Developer", "--role", help="Project role"),
283
+ slug: Optional[str] = None,
284
+ description: Optional[str] = None,
285
+ repository: Optional[str] = None,
286
+ status: str = "Active",
287
+ tech_stack: Optional[str] = None,
288
+ role: str = "Developer",
289
289
  ) -> str:
290
290
  """
291
291
  Create a new project.
@@ -427,10 +427,10 @@ def versions_get(version_id: str) -> str:
427
427
  def versions_create(
428
428
  name: str,
429
429
  project_id: str,
430
- status: str = typer.Option("Planning", "--status", help="Version status"),
431
- version_type: str = typer.Option("Minor", "--type", help="Version type"),
432
- branch_name: Optional[str] = typer.Option(None, "--branch", "-b", help="Git branch name"),
433
- progress: int = typer.Option(0, "--progress", "-p", help="Progress percentage (0-100)"),
430
+ status: str = "Planning",
431
+ version_type: str = "Minor",
432
+ branch_name: Optional[str] = None,
433
+ progress: int = 0,
434
434
  ) -> str:
435
435
  """
436
436
  Create a new version.
@@ -568,11 +568,11 @@ def tasks_get(task_id: str) -> str:
568
568
  def tasks_create(
569
569
  title: str,
570
570
  version_id: str,
571
- status: str = typer.Option("Backlog", "--status", help="Task status"),
572
- task_type: str = typer.Option("New Feature", "--type", help="Task type"),
573
- priority: str = typer.Option("Medium", "--priority", "-p", help="Task priority"),
574
- dependencies: Optional[str] = typer.Option(None, "--dependencies", "-d", help="Comma-separated dependency task IDs"),
575
- estimated_hours: Optional[int] = typer.Option(None, "--estimate", "-e", help="Estimated hours"),
571
+ status: str = "Backlog",
572
+ task_type: str = "New Feature",
573
+ priority: str = "Medium",
574
+ dependencies: Optional[str] = None,
575
+ estimated_hours: Optional[int] = None,
576
576
  ) -> str:
577
577
  """
578
578
  Create a new task.
@@ -835,10 +835,16 @@ class Version(DatabasePageEntityMixin, BaseEntity):
835
835
  if branch_name:
836
836
  properties["Branch Name"] = RichText(name="Branch Name", content=branch_name)
837
837
 
838
+ # Convert Property objects to dicts for API
839
+ serialized_properties = {
840
+ key: prop.to_dict() if hasattr(prop, 'to_dict') else prop
841
+ for key, prop in properties.items()
842
+ }
843
+
838
844
  # Create page
839
845
  data = await client._api.pages.create(
840
846
  parent={"database_id": database_id},
841
- properties=properties,
847
+ properties=serialized_properties,
842
848
  )
843
849
 
844
850
  version = cls(client, data)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 1.8.5
3
+ Version: 1.8.7
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
@@ -113,12 +113,12 @@ better_notion/plugins/loader.py,sha256=zCWsMdJyvZs1IHFm0zjEiqm_l_5jB1Uw4x30Kq8rL
113
113
  better_notion/plugins/state.py,sha256=jH_tZWvC35hqLO4qwl2Kwq9ziWVavwCEUcCqy3s5wMY,3780
114
114
  better_notion/plugins/official/__init__.py,sha256=rPg5vdk1cEANVstMPzxcWmImtsOpdSR40JSml7h1uUk,426
115
115
  better_notion/plugins/official/agents.py,sha256=nbqfUPsJCCY3R8c1FvOi3CfP1lVhWkp0Rw6Okm6CrTE,51440
116
- better_notion/plugins/official/agents_cli.py,sha256=8l6e1zJCAT4DdAO-QfdjK_vrrrik3pmrojwakE32ZNY,53048
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
119
119
  better_notion/plugins/official/agents_sdk/__init__.py,sha256=luQBzZLsJ7fC5U0jFu8dfzMviiXj2SBZXcTohM53wkQ,725
120
120
  better_notion/plugins/official/agents_sdk/managers.py,sha256=0zMZPu63zhdyqiudO2gKsmM3YOJh0nFAR9FrMlwkV2A,31186
121
- better_notion/plugins/official/agents_sdk/models.py,sha256=vWe1cut11VmQSd_vDG0ijs5EXYvYvQ1xgbkii61rL8Q,82919
121
+ better_notion/plugins/official/agents_sdk/models.py,sha256=Qsh02QpwNtezxEBdFF--W_TCfeouhXDInjfewApu1yI,83151
122
122
  better_notion/plugins/official/agents_sdk/plugin.py,sha256=bs9O8Unv6SARGj4lBU5Gj9HGbLTUNqTacJ3RLUhdbI4,4479
123
123
  better_notion/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
124
124
  better_notion/utils/helpers.py,sha256=HgFuUQlG_HzBOB0z2GA9RxPLoXgwRc0DIxa9Fg6C-Jk,2337
@@ -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.5.dist-info/METADATA,sha256=aP3q-b0_38YX28OaYWBxtCZsgrFiNuSeZHe71ct9j5Q,11096
137
- better_notion-1.8.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-1.8.5.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-1.8.5.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-1.8.5.dist-info/RECORD,,
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,,