better-notion 1.9.3__py3-none-any.whl → 1.9.5__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.
@@ -572,25 +572,25 @@ class IdeaManager:
572
572
 
573
573
  if project_id:
574
574
  filters.append({
575
- "property": "project_id",
575
+ "property": "Project",
576
576
  "relation": {"contains": project_id}
577
577
  })
578
578
 
579
579
  if category:
580
580
  filters.append({
581
- "property": "category",
581
+ "property": "Category",
582
582
  "select": {"equals": category}
583
583
  })
584
584
 
585
585
  if status:
586
586
  filters.append({
587
- "property": "status",
587
+ "property": "Status",
588
588
  "select": {"equals": status}
589
589
  })
590
590
 
591
591
  if effort_estimate:
592
592
  filters.append({
593
- "property": "effort_estimate",
593
+ "property": "Effort Estimate",
594
594
  "select": {"equals": effort_estimate}
595
595
  })
596
596
 
@@ -605,15 +605,15 @@ class IdeaManager:
605
605
  }
606
606
 
607
607
  response = await self._client._api._request(
608
- method="POST",
609
- path=f"databases/{database_id}/query",
608
+ "POST",
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
@@ -695,31 +695,31 @@ class WorkIssueManager:
695
695
 
696
696
  if project_id:
697
697
  filters.append({
698
- "property": "project_id",
698
+ "property": "Project",
699
699
  "relation": {"contains": project_id}
700
700
  })
701
701
 
702
702
  if task_id:
703
703
  filters.append({
704
- "property": "task_id",
704
+ "property": "Task",
705
705
  "relation": {"contains": task_id}
706
706
  })
707
707
 
708
708
  if type_:
709
709
  filters.append({
710
- "property": "type",
710
+ "property": "Type",
711
711
  "select": {"equals": type_}
712
712
  })
713
713
 
714
714
  if severity:
715
715
  filters.append({
716
- "property": "severity",
716
+ "property": "Severity",
717
717
  "select": {"equals": severity}
718
718
  })
719
719
 
720
720
  if status:
721
721
  filters.append({
722
- "property": "status",
722
+ "property": "Status",
723
723
  "select": {"equals": status}
724
724
  })
725
725
 
@@ -734,15 +734,15 @@ class WorkIssueManager:
734
734
  }
735
735
 
736
736
  response = await self._client._api._request(
737
- method="POST",
738
- path=f"databases/{database_id}/query",
737
+ "POST",
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
@@ -822,11 +822,7 @@ class WorkIssueManager:
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
 
@@ -877,25 +873,25 @@ class IncidentManager:
877
873
 
878
874
  if project_id:
879
875
  filters.append({
880
- "property": "project_id",
876
+ "property": "Project",
881
877
  "relation": {"contains": project_id}
882
878
  })
883
879
 
884
880
  if version_id:
885
881
  filters.append({
886
- "property": "affected_version_id",
882
+ "property": "Affected Version",
887
883
  "relation": {"contains": version_id}
888
884
  })
889
885
 
890
886
  if severity:
891
887
  filters.append({
892
- "property": "severity",
888
+ "property": "Severity",
893
889
  "select": {"equals": severity}
894
890
  })
895
891
 
896
892
  if status:
897
893
  filters.append({
898
- "property": "status",
894
+ "property": "Status",
899
895
  "select": {"equals": status}
900
896
  })
901
897
 
@@ -910,15 +906,15 @@ class IncidentManager:
910
906
  }
911
907
 
912
908
  response = await self._client._api._request(
913
- method="POST",
914
- path=f"databases/{database_id}/query",
909
+ "POST",
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.3
3
+ Version: 1.9.5
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=DyoGSnXjLLJVmAkMCyaHK33cvzksRuxrj3-3hNz4s2M,31190
120
+ better_notion/plugins/official/agents_sdk/managers.py,sha256=3ASQnsd1UI4cpJz4lfQqWtDve4AWgNL4gwr4ieHhlDU,30832
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.3.dist-info/METADATA,sha256=I6FZg4FPUYFk-5w9fs23pKlFOOdt9f_Rx6YycEG400U,11096
137
- better_notion-1.9.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
- better_notion-1.9.3.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
- better_notion-1.9.3.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
- better_notion-1.9.3.dist-info/RECORD,,
136
+ better_notion-1.9.5.dist-info/METADATA,sha256=borqnJbD3_VQ0FY-rU1KwtQP7cq6BYkTPx2HdGoXPWM,11096
137
+ better_notion-1.9.5.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
138
+ better_notion-1.9.5.dist-info/entry_points.txt,sha256=D0bUcP7Z00Zyjxw7r2p29T95UrwioDO0aGDoHe9I6fo,55
139
+ better_notion-1.9.5.dist-info/licenses/LICENSE,sha256=BAdN3JpgMY_y_fWqZSCFSvSbC2mTHP-BKDAzF5FXQAI,1069
140
+ better_notion-1.9.5.dist-info/RECORD,,