better-notion 1.9.2__py3-none-any.whl → 1.9.4__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 +25 -25
- better_notion/plugins/official/agents_sdk/managers.py +19 -19
- {better_notion-1.9.2.dist-info → better_notion-1.9.4.dist-info}/METADATA +1 -1
- {better_notion-1.9.2.dist-info → better_notion-1.9.4.dist-info}/RECORD +7 -7
- {better_notion-1.9.2.dist-info → better_notion-1.9.4.dist-info}/WHEEL +0 -0
- {better_notion-1.9.2.dist-info → better_notion-1.9.4.dist-info}/entry_points.txt +0 -0
- {better_notion-1.9.2.dist-info → better_notion-1.9.4.dist-info}/licenses/LICENSE +0 -0
|
@@ -1007,30 +1007,30 @@ def ideas_create(
|
|
|
1007
1007
|
|
|
1008
1008
|
# Create idea in Notion
|
|
1009
1009
|
properties = {
|
|
1010
|
-
"
|
|
1011
|
-
"
|
|
1012
|
-
"
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1010
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1011
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1012
|
+
"Category": {"select": {"name": category}},
|
|
1013
|
+
"Status": {"select": {"name": "Proposed"}},
|
|
1014
|
+
"Effort Estimate": {"select": {"name": effort_estimate}},
|
|
1015
1015
|
}
|
|
1016
1016
|
|
|
1017
1017
|
if description:
|
|
1018
|
-
properties["
|
|
1018
|
+
properties["Description"] = {
|
|
1019
1019
|
"rich_text": [{"text": {"content": description}}]
|
|
1020
1020
|
}
|
|
1021
1021
|
|
|
1022
1022
|
if proposed_solution:
|
|
1023
|
-
properties["
|
|
1023
|
+
properties["Proposed Solution"] = {
|
|
1024
1024
|
"rich_text": [{"text": {"content": proposed_solution}}]
|
|
1025
1025
|
}
|
|
1026
1026
|
|
|
1027
1027
|
if benefits:
|
|
1028
|
-
properties["
|
|
1028
|
+
properties["Benefits"] = {
|
|
1029
1029
|
"rich_text": [{"text": {"content": benefits}}]
|
|
1030
1030
|
}
|
|
1031
1031
|
|
|
1032
1032
|
if context:
|
|
1033
|
-
properties["
|
|
1033
|
+
properties["Context"] = {
|
|
1034
1034
|
"rich_text": [{"text": {"content": context}}]
|
|
1035
1035
|
}
|
|
1036
1036
|
|
|
@@ -1312,25 +1312,25 @@ def work_issues_create(
|
|
|
1312
1312
|
|
|
1313
1313
|
# Create issue in Notion
|
|
1314
1314
|
properties = {
|
|
1315
|
-
"
|
|
1316
|
-
"
|
|
1317
|
-
"
|
|
1318
|
-
"
|
|
1319
|
-
"
|
|
1315
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1316
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1317
|
+
"Type": {"select": {"name": type}},
|
|
1318
|
+
"Severity": {"select": {"name": severity}},
|
|
1319
|
+
"Status": {"select": {"name": "Open"}},
|
|
1320
1320
|
}
|
|
1321
1321
|
|
|
1322
1322
|
if description:
|
|
1323
|
-
properties["
|
|
1323
|
+
properties["Description"] = {
|
|
1324
1324
|
"rich_text": [{"text": {"content": description}}]
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
if context:
|
|
1328
|
-
properties["
|
|
1328
|
+
properties["Context"] = {
|
|
1329
1329
|
"rich_text": [{"text": {"content": context}}]
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
1332
|
if task_id:
|
|
1333
|
-
properties["
|
|
1333
|
+
properties["Task"] = {"relation": [{"id": task_id}]}
|
|
1334
1334
|
|
|
1335
1335
|
response = await client._api._request(
|
|
1336
1336
|
"POST",
|
|
@@ -1568,21 +1568,21 @@ def incidents_create(
|
|
|
1568
1568
|
from datetime import datetime, timezone
|
|
1569
1569
|
|
|
1570
1570
|
properties = {
|
|
1571
|
-
"
|
|
1572
|
-
"
|
|
1573
|
-
"
|
|
1574
|
-
"
|
|
1575
|
-
"
|
|
1576
|
-
"
|
|
1571
|
+
"Title": {"title": [{"text": {"content": title}}]},
|
|
1572
|
+
"Project": {"relation": [{"id": project_id}]},
|
|
1573
|
+
"Severity": {"select": {"name": severity}},
|
|
1574
|
+
"Type": {"select": {"name": type}},
|
|
1575
|
+
"Status": {"select": {"name": "Active"}},
|
|
1576
|
+
"Discovery Date": {
|
|
1577
1577
|
"date": {"start": datetime.now(timezone.utc).isoformat()}
|
|
1578
1578
|
},
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
1581
|
if affected_version_id:
|
|
1582
|
-
properties["
|
|
1582
|
+
properties["Affected Version"] = {"relation": [{"id": affected_version_id}]}
|
|
1583
1583
|
|
|
1584
1584
|
if root_cause:
|
|
1585
|
-
properties["
|
|
1585
|
+
properties["Root Cause"] = {
|
|
1586
1586
|
"rich_text": [{"text": {"content": root_cause}}]
|
|
1587
1587
|
}
|
|
1588
1588
|
|
|
@@ -572,25 +572,25 @@ class IdeaManager:
|
|
|
572
572
|
|
|
573
573
|
if project_id:
|
|
574
574
|
filters.append({
|
|
575
|
-
"property": "
|
|
575
|
+
"property": "Project",
|
|
576
576
|
"relation": {"contains": project_id}
|
|
577
577
|
})
|
|
578
578
|
|
|
579
579
|
if category:
|
|
580
580
|
filters.append({
|
|
581
|
-
"property": "
|
|
581
|
+
"property": "Category",
|
|
582
582
|
"select": {"equals": category}
|
|
583
583
|
})
|
|
584
584
|
|
|
585
585
|
if status:
|
|
586
586
|
filters.append({
|
|
587
|
-
"property": "
|
|
587
|
+
"property": "Status",
|
|
588
588
|
"select": {"equals": status}
|
|
589
589
|
})
|
|
590
590
|
|
|
591
591
|
if effort_estimate:
|
|
592
592
|
filters.append({
|
|
593
|
-
"property": "
|
|
593
|
+
"property": "Effort Estimate",
|
|
594
594
|
"select": {"equals": effort_estimate}
|
|
595
595
|
})
|
|
596
596
|
|
|
@@ -605,8 +605,8 @@ class IdeaManager:
|
|
|
605
605
|
}
|
|
606
606
|
|
|
607
607
|
response = await self._client._api._request(
|
|
608
|
-
|
|
609
|
-
|
|
608
|
+
"POST",
|
|
609
|
+
f"databases/{database_id}/query",
|
|
610
610
|
json=query,
|
|
611
611
|
)
|
|
612
612
|
|
|
@@ -695,31 +695,31 @@ class WorkIssueManager:
|
|
|
695
695
|
|
|
696
696
|
if project_id:
|
|
697
697
|
filters.append({
|
|
698
|
-
"property": "
|
|
698
|
+
"property": "Project",
|
|
699
699
|
"relation": {"contains": project_id}
|
|
700
700
|
})
|
|
701
701
|
|
|
702
702
|
if task_id:
|
|
703
703
|
filters.append({
|
|
704
|
-
"property": "
|
|
704
|
+
"property": "Task",
|
|
705
705
|
"relation": {"contains": task_id}
|
|
706
706
|
})
|
|
707
707
|
|
|
708
708
|
if type_:
|
|
709
709
|
filters.append({
|
|
710
|
-
"property": "
|
|
710
|
+
"property": "Type",
|
|
711
711
|
"select": {"equals": type_}
|
|
712
712
|
})
|
|
713
713
|
|
|
714
714
|
if severity:
|
|
715
715
|
filters.append({
|
|
716
|
-
"property": "
|
|
716
|
+
"property": "Severity",
|
|
717
717
|
"select": {"equals": severity}
|
|
718
718
|
})
|
|
719
719
|
|
|
720
720
|
if status:
|
|
721
721
|
filters.append({
|
|
722
|
-
"property": "
|
|
722
|
+
"property": "Status",
|
|
723
723
|
"select": {"equals": status}
|
|
724
724
|
})
|
|
725
725
|
|
|
@@ -734,8 +734,8 @@ class WorkIssueManager:
|
|
|
734
734
|
}
|
|
735
735
|
|
|
736
736
|
response = await self._client._api._request(
|
|
737
|
-
|
|
738
|
-
|
|
737
|
+
"POST",
|
|
738
|
+
f"databases/{database_id}/query",
|
|
739
739
|
json=query,
|
|
740
740
|
)
|
|
741
741
|
|
|
@@ -877,25 +877,25 @@ class IncidentManager:
|
|
|
877
877
|
|
|
878
878
|
if project_id:
|
|
879
879
|
filters.append({
|
|
880
|
-
"property": "
|
|
880
|
+
"property": "Project",
|
|
881
881
|
"relation": {"contains": project_id}
|
|
882
882
|
})
|
|
883
883
|
|
|
884
884
|
if version_id:
|
|
885
885
|
filters.append({
|
|
886
|
-
"property": "
|
|
886
|
+
"property": "Affected Version",
|
|
887
887
|
"relation": {"contains": version_id}
|
|
888
888
|
})
|
|
889
889
|
|
|
890
890
|
if severity:
|
|
891
891
|
filters.append({
|
|
892
|
-
"property": "
|
|
892
|
+
"property": "Severity",
|
|
893
893
|
"select": {"equals": severity}
|
|
894
894
|
})
|
|
895
895
|
|
|
896
896
|
if status:
|
|
897
897
|
filters.append({
|
|
898
|
-
"property": "
|
|
898
|
+
"property": "Status",
|
|
899
899
|
"select": {"equals": status}
|
|
900
900
|
})
|
|
901
901
|
|
|
@@ -910,8 +910,8 @@ class IncidentManager:
|
|
|
910
910
|
}
|
|
911
911
|
|
|
912
912
|
response = await self._client._api._request(
|
|
913
|
-
|
|
914
|
-
|
|
913
|
+
"POST",
|
|
914
|
+
f"databases/{database_id}/query",
|
|
915
915
|
json=query,
|
|
916
916
|
)
|
|
917
917
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: better-notion
|
|
3
|
-
Version: 1.9.
|
|
3
|
+
Version: 1.9.4
|
|
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,11 +113,11 @@ 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=3ibh88XPu3ykNuq1FTfXP_yECaz7pzIXqLngX0MW5-I,51627
|
|
116
|
-
better_notion/plugins/official/agents_cli.py,sha256=
|
|
116
|
+
better_notion/plugins/official/agents_cli.py,sha256=JgwUw8xD9nOM2Ff5BLP_8QXFy5lKEIaepgZURx_yQ8Y,52378
|
|
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
|
-
better_notion/plugins/official/agents_sdk/managers.py,sha256=
|
|
120
|
+
better_notion/plugins/official/agents_sdk/managers.py,sha256=F9axuywY8AhUFqaJQFFPmLsA6w8qJNVwaFl4BDs4ZeA,31139
|
|
121
121
|
better_notion/plugins/official/agents_sdk/models.py,sha256=Di3K1o5HeaEj8vGd--7mPb53bgOXf9_g3QAZ5I7QYF0,83156
|
|
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
|
|
@@ -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.9.
|
|
137
|
-
better_notion-1.9.
|
|
138
|
-
better_notion-1.9.
|
|
139
|
-
better_notion-1.9.
|
|
140
|
-
better_notion-1.9.
|
|
136
|
+
better_notion-1.9.4.dist-info/METADATA,sha256=1kI8Uio-w-eDtGlJB6XR0V9Ep7yZyCuNJdo2PSiAEFQ,11096
|
|
137
|
+
better_notion-1.9.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
138
|
+
better_notion-1.9.4.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
|
|
139
|
+
better_notion-1.9.4.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
|
|
140
|
+
better_notion-1.9.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|