better-notion 1.9.4__py3-none-any.whl → 1.9.6__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.
@@ -606,14 +606,14 @@ class IdeaManager:
606
606
 
607
607
  response = await self._client._api._request(
608
608
  "POST",
609
- f"databases/{database_id}/query",
609
+ f"/databases/{database_id}/query",
610
610
  json=query,
611
611
  )
612
612
 
613
613
  # Create Idea instances
614
614
  ideas = []
615
615
  for page_data in response.get("results", []):
616
- idea = Idea(data=page_data, client=self._client, cache=self._client._plugin_caches.get("ideas"))
616
+ idea = Idea(self._client, page_data)
617
617
  ideas.append(idea)
618
618
 
619
619
  return ideas
@@ -735,14 +735,14 @@ class WorkIssueManager:
735
735
 
736
736
  response = await self._client._api._request(
737
737
  "POST",
738
- f"databases/{database_id}/query",
738
+ f"/databases/{database_id}/query",
739
739
  json=query,
740
740
  )
741
741
 
742
742
  # Create WorkIssue instances
743
743
  issues = []
744
744
  for page_data in response.get("results", []):
745
- issue = WorkIssue(data=page_data, client=self._client, cache=self._client._plugin_caches.get("work_issues"))
745
+ issue = WorkIssue(self._client, page_data)
746
746
  issues.append(issue)
747
747
 
748
748
  return issues
@@ -816,17 +816,13 @@ class WorkIssueManager:
816
816
  }
817
817
 
818
818
  response = await self._client._api._request(
819
- method="POST",
820
- path=f"databases/{database_id}",
819
+ "POST",
820
+ f"/databases/{database_id}",
821
821
  json={"properties": properties},
822
822
  )
823
823
 
824
824
  # Create WorkIssue instance
825
- issue = WorkIssue(
826
- data=response,
827
- client=self._client,
828
- cache=self._client._plugin_caches.get("work_issues"),
829
- )
825
+ issue = WorkIssue(self._client, response)
830
826
 
831
827
  return issue
832
828
 
@@ -911,14 +907,14 @@ class IncidentManager:
911
907
 
912
908
  response = await self._client._api._request(
913
909
  "POST",
914
- f"databases/{database_id}/query",
910
+ f"/databases/{database_id}/query",
915
911
  json=query,
916
912
  )
917
913
 
918
914
  # Create Incident instances
919
915
  incidents = []
920
916
  for page_data in response.get("results", []):
921
- incident = Incident(data=page_data, client=self._client, cache=self._client._plugin_caches.get("incidents"))
917
+ incident = Incident(self._client, page_data)
922
918
  incidents.append(incident)
923
919
 
924
920
  return incidents
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: better-notion
3
- Version: 1.9.4
3
+ Version: 1.9.6
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
@@ -117,7 +117,7 @@ better_notion/plugins/official/agents_cli.py,sha256=JgwUw8xD9nOM2Ff5BLP_8QXFy5lK
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=F9axuywY8AhUFqaJQFFPmLsA6w8qJNVwaFl4BDs4ZeA,31139
120
+ better_notion/plugins/official/agents_sdk/managers.py,sha256=wxxXB5UZGtPz0VJEKZW4Ubv5p0YUEDnbAQu2kt2f8Ms,30824
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.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,,
136
+ better_notion-1.9.6.dist-info/METADATA,sha256=4xmMd9UsAMU1ZFEccd4PSSRJdNyEkW-bEYwItmAqOQw,11096
137
+ better_notion-1.9.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-1.9.6.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-1.9.6.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-1.9.6.dist-info/RECORD,,