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.
- better_notion/plugins/official/agents_cli.py +15 -15
- better_notion/plugins/official/agents_sdk/models.py +7 -1
- {better_notion-1.8.5.dist-info → better_notion-1.8.7.dist-info}/METADATA +1 -1
- {better_notion-1.8.5.dist-info → better_notion-1.8.7.dist-info}/RECORD +7 -7
- {better_notion-1.8.5.dist-info → better_notion-1.8.7.dist-info}/WHEEL +0 -0
- {better_notion-1.8.5.dist-info → better_notion-1.8.7.dist-info}/entry_points.txt +0 -0
- {better_notion-1.8.5.dist-info → better_notion-1.8.7.dist-info}/licenses/LICENSE +0 -0
|
@@ -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] =
|
|
284
|
-
description: Optional[str] =
|
|
285
|
-
repository: Optional[str] =
|
|
286
|
-
status: str =
|
|
287
|
-
tech_stack: Optional[str] =
|
|
288
|
-
role: str =
|
|
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 =
|
|
431
|
-
version_type: str =
|
|
432
|
-
branch_name: Optional[str] =
|
|
433
|
-
progress: int =
|
|
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 =
|
|
572
|
-
task_type: str =
|
|
573
|
-
priority: str =
|
|
574
|
-
dependencies: Optional[str] =
|
|
575
|
-
estimated_hours: Optional[int] =
|
|
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=
|
|
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.
|
|
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=
|
|
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=
|
|
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.
|
|
137
|
-
better_notion-1.8.
|
|
138
|
-
better_notion-1.8.
|
|
139
|
-
better_notion-1.8.
|
|
140
|
-
better_notion-1.8.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|