dart-tools 0.8.2__tar.gz → 0.8.3__tar.gz

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.
Files changed (100) hide show
  1. {dart_tools-0.8.2/dart_tools.egg-info → dart_tools-0.8.3}/PKG-INFO +1 -1
  2. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/dart.py +4 -4
  3. dart_tools-0.8.3/dart/generated/api/__init__.py +11 -0
  4. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/comment/list_comments.py +18 -0
  5. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/task/list_tasks.py +72 -36
  6. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/__init__.py +2 -0
  7. dart_tools-0.8.3/dart/generated/models/attachment.py +67 -0
  8. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/task.py +19 -0
  9. {dart_tools-0.8.2 → dart_tools-0.8.3/dart_tools.egg-info}/PKG-INFO +1 -1
  10. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart_tools.egg-info/SOURCES.txt +7 -6
  11. {dart_tools-0.8.2 → dart_tools-0.8.3}/pyproject.toml +1 -1
  12. dart_tools-0.8.2/dart/generated/api/__init__.py +0 -11
  13. {dart_tools-0.8.2 → dart_tools-0.8.3}/LICENSE +0 -0
  14. {dart_tools-0.8.2 → dart_tools-0.8.3}/README.md +0 -0
  15. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/__init__.py +0 -0
  16. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/exception.py +0 -0
  17. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/__init__.py +0 -0
  18. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/comment/__init__.py +0 -0
  19. /dart_tools-0.8.2/dart/generated/api/comment/create_comment.py → /dart_tools-0.8.3/dart/generated/api/comment/add_task_comment.py +0 -0
  20. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/config/__init__.py +0 -0
  21. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/config/get_config.py +0 -0
  22. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/dartboard/__init__.py +0 -0
  23. /dart_tools-0.8.2/dart/generated/api/dartboard/retrieve_dartboard.py → /dart_tools-0.8.3/dart/generated/api/dartboard/get_dartboard.py +0 -0
  24. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/doc/__init__.py +0 -0
  25. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/doc/create_doc.py +0 -0
  26. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/doc/delete_doc.py +0 -0
  27. /dart_tools-0.8.2/dart/generated/api/doc/retrieve_doc.py → /dart_tools-0.8.3/dart/generated/api/doc/get_doc.py +0 -0
  28. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/doc/list_docs.py +0 -0
  29. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/doc/update_doc.py +0 -0
  30. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/folder/__init__.py +0 -0
  31. /dart_tools-0.8.2/dart/generated/api/folder/retrieve_folder.py → /dart_tools-0.8.3/dart/generated/api/folder/get_folder.py +0 -0
  32. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/help_center_article/__init__.py +0 -0
  33. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/help_center_article/list_help_center_articles.py +0 -0
  34. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/skill/__init__.py +0 -0
  35. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/skill/retrieve_skill_by_title.py +0 -0
  36. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/task/__init__.py +0 -0
  37. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/task/create_task.py +0 -0
  38. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/task/delete_task.py +0 -0
  39. /dart_tools-0.8.2/dart/generated/api/task/retrieve_task.py → /dart_tools-0.8.3/dart/generated/api/task/get_task.py +0 -0
  40. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/task/update_task.py +0 -0
  41. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/api/view/__init__.py +0 -0
  42. /dart_tools-0.8.2/dart/generated/api/view/retrieve_view.py → /dart_tools-0.8.3/dart/generated/api/view/get_view.py +0 -0
  43. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/client.py +0 -0
  44. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/errors.py +0 -0
  45. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/comment.py +0 -0
  46. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/comment_create.py +0 -0
  47. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/concise_doc.py +0 -0
  48. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/concise_task.py +0 -0
  49. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/custom_properties.py +0 -0
  50. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/dartboard.py +0 -0
  51. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/doc.py +0 -0
  52. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/doc_create.py +0 -0
  53. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/doc_update.py +0 -0
  54. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/folder.py +0 -0
  55. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/list_comments_o_item.py +0 -0
  56. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/list_docs_o_item.py +0 -0
  57. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/paginated_comment_list.py +0 -0
  58. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/paginated_concise_doc_list.py +0 -0
  59. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/paginated_concise_task_list.py +0 -0
  60. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/priority.py +0 -0
  61. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/skill.py +0 -0
  62. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/task_create.py +0 -0
  63. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/task_relationships_type_0.py +0 -0
  64. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/task_update.py +0 -0
  65. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/time_tracking_entry.py +0 -0
  66. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user.py +0 -0
  67. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration.py +0 -0
  68. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +0 -0
  69. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +0 -0
  70. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +0 -0
  71. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_number_type_def.py +0 -0
  72. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +0 -0
  73. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_select_type_def.py +0 -0
  74. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_status_type_def.py +0 -0
  75. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_text_type_def.py +0 -0
  76. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +0 -0
  77. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/user_space_configuration_custom_property_user_type_def.py +0 -0
  78. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/view.py +0 -0
  79. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_comment.py +0 -0
  80. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_comment_create.py +0 -0
  81. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_dartboard.py +0 -0
  82. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc.py +0 -0
  83. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc_create.py +0 -0
  84. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_doc_update.py +0 -0
  85. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_folder.py +0 -0
  86. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_help_center_articles.py +0 -0
  87. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_skill.py +0 -0
  88. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_task.py +0 -0
  89. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_task_create.py +0 -0
  90. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_task_update.py +0 -0
  91. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/models/wrapped_view.py +0 -0
  92. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/generated/types.py +0 -0
  93. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/old.py +0 -0
  94. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/order_manager.py +0 -0
  95. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart/webhook.py +0 -0
  96. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart_tools.egg-info/dependency_links.txt +0 -0
  97. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart_tools.egg-info/entry_points.txt +0 -0
  98. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart_tools.egg-info/requires.txt +0 -0
  99. {dart_tools-0.8.2 → dart_tools-0.8.3}/dart_tools.egg-info/top_level.txt +0 -0
  100. {dart_tools-0.8.2 → dart_tools-0.8.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dart-tools
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: The Dart CLI and Python Library
5
5
  Author-email: Dart <software@dartai.com>
6
6
  License: MIT License
@@ -120,7 +120,7 @@ _HELP_TEXT_TO_COMMAND = {
120
120
  _CREATE_DOC_CMD: _get_help_text(api.create_doc.sync_detailed),
121
121
  _UPDATE_DOC_CMD: _get_help_text(api.update_doc.sync_detailed),
122
122
  _DELETE_DOC_CMD: _get_help_text(api.delete_doc.sync_detailed),
123
- _CREATE_COMMENT_CMD: _get_help_text(api.create_comment.sync_detailed),
123
+ _CREATE_COMMENT_CMD: _get_help_text(api.add_task_comment.sync_detailed),
124
124
  }
125
125
 
126
126
  _is_cli = False
@@ -313,7 +313,7 @@ class Dart:
313
313
 
314
314
  @_handle_request_errors
315
315
  def retrieve_task(self, id: str) -> WrappedTask:
316
- response = api.retrieve_task.sync_detailed(id, client=self._public_api)
316
+ response = api.get_task.sync_detailed(id, client=self._public_api)
317
317
  return _get_response_parsed(response, not_found_message=f"Task with ID {id} not found.")
318
318
 
319
319
  @_handle_request_errors
@@ -333,7 +333,7 @@ class Dart:
333
333
 
334
334
  @_handle_request_errors
335
335
  def create_comment(self, body: WrappedCommentCreate) -> WrappedComment:
336
- response = api.create_comment.sync_detailed(client=self._public_api, body=body)
336
+ response = api.add_task_comment.sync_detailed(client=self._public_api, body=body)
337
337
  return _get_response_parsed(response)
338
338
 
339
339
  @_handle_request_errors
@@ -348,7 +348,7 @@ class Dart:
348
348
 
349
349
  @_handle_request_errors
350
350
  def retrieve_doc(self, id: str) -> WrappedDoc:
351
- response = api.retrieve_doc.sync_detailed(id, client=self._public_api)
351
+ response = api.get_doc.sync_detailed(id, client=self._public_api)
352
352
  return _get_response_parsed(response, not_found_message=f"Doc with ID {id} not found.")
353
353
 
354
354
  @_handle_request_errors
@@ -0,0 +1,11 @@
1
+ """Contains methods for accessing the API"""
2
+
3
+ from .comment import add_task_comment, list_comments
4
+ from .config import get_config
5
+ from .dartboard import get_dartboard
6
+ from .doc import create_doc, delete_doc, get_doc, list_docs, update_doc
7
+ from .folder import get_folder
8
+ from .help_center_article import list_help_center_articles
9
+ from .skill import retrieve_skill_by_title
10
+ from .task import create_task, delete_task, get_task, list_tasks, update_task
11
+ from .view import get_view
@@ -20,6 +20,7 @@ def _get_kwargs(
20
20
  o: Union[Unset, list[ListCommentsOItem]] = UNSET,
21
21
  offset: Union[Unset, int] = UNSET,
22
22
  parent_id: Union[Unset, str] = UNSET,
23
+ published_at: Union[Unset, datetime.datetime] = UNSET,
23
24
  published_at_after: Union[Unset, datetime.datetime] = UNSET,
24
25
  published_at_before: Union[Unset, datetime.datetime] = UNSET,
25
26
  task: Union[Unset, str] = UNSET,
@@ -49,6 +50,11 @@ def _get_kwargs(
49
50
 
50
51
  params["parent_id"] = parent_id
51
52
 
53
+ json_published_at: Union[Unset, str] = UNSET
54
+ if not isinstance(published_at, Unset):
55
+ json_published_at = published_at.isoformat()
56
+ params["published_at"] = json_published_at
57
+
52
58
  json_published_at_after: Union[Unset, str] = UNSET
53
59
  if not isinstance(published_at_after, Unset):
54
60
  json_published_at_after = published_at_after.isoformat()
@@ -110,6 +116,7 @@ def sync_detailed(
110
116
  o: Union[Unset, list[ListCommentsOItem]] = UNSET,
111
117
  offset: Union[Unset, int] = UNSET,
112
118
  parent_id: Union[Unset, str] = UNSET,
119
+ published_at: Union[Unset, datetime.datetime] = UNSET,
113
120
  published_at_after: Union[Unset, datetime.datetime] = UNSET,
114
121
  published_at_before: Union[Unset, datetime.datetime] = UNSET,
115
122
  task: Union[Unset, str] = UNSET,
@@ -127,6 +134,7 @@ def sync_detailed(
127
134
  o (Union[Unset, list[ListCommentsOItem]]):
128
135
  offset (Union[Unset, int]):
129
136
  parent_id (Union[Unset, str]):
137
+ published_at (Union[Unset, datetime.datetime]):
130
138
  published_at_after (Union[Unset, datetime.datetime]):
131
139
  published_at_before (Union[Unset, datetime.datetime]):
132
140
  task (Union[Unset, str]):
@@ -149,6 +157,7 @@ def sync_detailed(
149
157
  o=o,
150
158
  offset=offset,
151
159
  parent_id=parent_id,
160
+ published_at=published_at,
152
161
  published_at_after=published_at_after,
153
162
  published_at_before=published_at_before,
154
163
  task=task,
@@ -173,6 +182,7 @@ def sync(
173
182
  o: Union[Unset, list[ListCommentsOItem]] = UNSET,
174
183
  offset: Union[Unset, int] = UNSET,
175
184
  parent_id: Union[Unset, str] = UNSET,
185
+ published_at: Union[Unset, datetime.datetime] = UNSET,
176
186
  published_at_after: Union[Unset, datetime.datetime] = UNSET,
177
187
  published_at_before: Union[Unset, datetime.datetime] = UNSET,
178
188
  task: Union[Unset, str] = UNSET,
@@ -190,6 +200,7 @@ def sync(
190
200
  o (Union[Unset, list[ListCommentsOItem]]):
191
201
  offset (Union[Unset, int]):
192
202
  parent_id (Union[Unset, str]):
203
+ published_at (Union[Unset, datetime.datetime]):
193
204
  published_at_after (Union[Unset, datetime.datetime]):
194
205
  published_at_before (Union[Unset, datetime.datetime]):
195
206
  task (Union[Unset, str]):
@@ -213,6 +224,7 @@ def sync(
213
224
  o=o,
214
225
  offset=offset,
215
226
  parent_id=parent_id,
227
+ published_at=published_at,
216
228
  published_at_after=published_at_after,
217
229
  published_at_before=published_at_before,
218
230
  task=task,
@@ -231,6 +243,7 @@ async def asyncio_detailed(
231
243
  o: Union[Unset, list[ListCommentsOItem]] = UNSET,
232
244
  offset: Union[Unset, int] = UNSET,
233
245
  parent_id: Union[Unset, str] = UNSET,
246
+ published_at: Union[Unset, datetime.datetime] = UNSET,
234
247
  published_at_after: Union[Unset, datetime.datetime] = UNSET,
235
248
  published_at_before: Union[Unset, datetime.datetime] = UNSET,
236
249
  task: Union[Unset, str] = UNSET,
@@ -248,6 +261,7 @@ async def asyncio_detailed(
248
261
  o (Union[Unset, list[ListCommentsOItem]]):
249
262
  offset (Union[Unset, int]):
250
263
  parent_id (Union[Unset, str]):
264
+ published_at (Union[Unset, datetime.datetime]):
251
265
  published_at_after (Union[Unset, datetime.datetime]):
252
266
  published_at_before (Union[Unset, datetime.datetime]):
253
267
  task (Union[Unset, str]):
@@ -270,6 +284,7 @@ async def asyncio_detailed(
270
284
  o=o,
271
285
  offset=offset,
272
286
  parent_id=parent_id,
287
+ published_at=published_at,
273
288
  published_at_after=published_at_after,
274
289
  published_at_before=published_at_before,
275
290
  task=task,
@@ -292,6 +307,7 @@ async def asyncio(
292
307
  o: Union[Unset, list[ListCommentsOItem]] = UNSET,
293
308
  offset: Union[Unset, int] = UNSET,
294
309
  parent_id: Union[Unset, str] = UNSET,
310
+ published_at: Union[Unset, datetime.datetime] = UNSET,
295
311
  published_at_after: Union[Unset, datetime.datetime] = UNSET,
296
312
  published_at_before: Union[Unset, datetime.datetime] = UNSET,
297
313
  task: Union[Unset, str] = UNSET,
@@ -309,6 +325,7 @@ async def asyncio(
309
325
  o (Union[Unset, list[ListCommentsOItem]]):
310
326
  offset (Union[Unset, int]):
311
327
  parent_id (Union[Unset, str]):
328
+ published_at (Union[Unset, datetime.datetime]):
312
329
  published_at_after (Union[Unset, datetime.datetime]):
313
330
  published_at_before (Union[Unset, datetime.datetime]):
314
331
  task (Union[Unset, str]):
@@ -333,6 +350,7 @@ async def asyncio(
333
350
  o=o,
334
351
  offset=offset,
335
352
  parent_id=parent_id,
353
+ published_at=published_at,
336
354
  published_at_after=published_at_after,
337
355
  published_at_before=published_at_before,
338
356
  task=task,
@@ -17,8 +17,9 @@ def _get_kwargs(
17
17
  dartboard: Union[Unset, str] = UNSET,
18
18
  dartboard_id: Union[Unset, str] = UNSET,
19
19
  description: Union[Unset, str] = UNSET,
20
- due_at_after: Union[Unset, datetime.date] = UNSET,
21
- due_at_before: Union[Unset, datetime.date] = UNSET,
20
+ due_at: Union[Unset, datetime.datetime] = UNSET,
21
+ due_at_after: Union[Unset, datetime.datetime] = UNSET,
22
+ due_at_before: Union[Unset, datetime.datetime] = UNSET,
22
23
  ids: Union[Unset, str] = UNSET,
23
24
  in_trash: Union[Unset, bool] = UNSET,
24
25
  is_completed: Union[Unset, bool] = UNSET,
@@ -27,8 +28,9 @@ def _get_kwargs(
27
28
  parent_id: Union[Unset, str] = UNSET,
28
29
  priority: Union[Unset, str] = UNSET,
29
30
  size: Union[Unset, int] = UNSET,
30
- start_at_after: Union[Unset, datetime.date] = UNSET,
31
- start_at_before: Union[Unset, datetime.date] = UNSET,
31
+ start_at: Union[Unset, datetime.datetime] = UNSET,
32
+ start_at_after: Union[Unset, datetime.datetime] = UNSET,
33
+ start_at_before: Union[Unset, datetime.datetime] = UNSET,
32
34
  status: Union[Unset, str] = UNSET,
33
35
  status_id: Union[Unset, str] = UNSET,
34
36
  tag: Union[Unset, str] = UNSET,
@@ -51,6 +53,11 @@ def _get_kwargs(
51
53
 
52
54
  params["description"] = description
53
55
 
56
+ json_due_at: Union[Unset, str] = UNSET
57
+ if not isinstance(due_at, Unset):
58
+ json_due_at = due_at.isoformat()
59
+ params["due_at"] = json_due_at
60
+
54
61
  json_due_at_after: Union[Unset, str] = UNSET
55
62
  if not isinstance(due_at_after, Unset):
56
63
  json_due_at_after = due_at_after.isoformat()
@@ -77,6 +84,11 @@ def _get_kwargs(
77
84
 
78
85
  params["size"] = size
79
86
 
87
+ json_start_at: Union[Unset, str] = UNSET
88
+ if not isinstance(start_at, Unset):
89
+ json_start_at = start_at.isoformat()
90
+ params["start_at"] = json_start_at
91
+
80
92
  json_start_at_after: Union[Unset, str] = UNSET
81
93
  if not isinstance(start_at_after, Unset):
82
94
  json_start_at_after = start_at_after.isoformat()
@@ -148,8 +160,9 @@ def sync_detailed(
148
160
  dartboard: Union[Unset, str] = UNSET,
149
161
  dartboard_id: Union[Unset, str] = UNSET,
150
162
  description: Union[Unset, str] = UNSET,
151
- due_at_after: Union[Unset, datetime.date] = UNSET,
152
- due_at_before: Union[Unset, datetime.date] = UNSET,
163
+ due_at: Union[Unset, datetime.datetime] = UNSET,
164
+ due_at_after: Union[Unset, datetime.datetime] = UNSET,
165
+ due_at_before: Union[Unset, datetime.datetime] = UNSET,
153
166
  ids: Union[Unset, str] = UNSET,
154
167
  in_trash: Union[Unset, bool] = UNSET,
155
168
  is_completed: Union[Unset, bool] = UNSET,
@@ -158,8 +171,9 @@ def sync_detailed(
158
171
  parent_id: Union[Unset, str] = UNSET,
159
172
  priority: Union[Unset, str] = UNSET,
160
173
  size: Union[Unset, int] = UNSET,
161
- start_at_after: Union[Unset, datetime.date] = UNSET,
162
- start_at_before: Union[Unset, datetime.date] = UNSET,
174
+ start_at: Union[Unset, datetime.datetime] = UNSET,
175
+ start_at_after: Union[Unset, datetime.datetime] = UNSET,
176
+ start_at_before: Union[Unset, datetime.datetime] = UNSET,
163
177
  status: Union[Unset, str] = UNSET,
164
178
  status_id: Union[Unset, str] = UNSET,
165
179
  tag: Union[Unset, str] = UNSET,
@@ -179,8 +193,9 @@ def sync_detailed(
179
193
  dartboard (Union[Unset, str]):
180
194
  dartboard_id (Union[Unset, str]):
181
195
  description (Union[Unset, str]):
182
- due_at_after (Union[Unset, datetime.date]):
183
- due_at_before (Union[Unset, datetime.date]):
196
+ due_at (Union[Unset, datetime.datetime]):
197
+ due_at_after (Union[Unset, datetime.datetime]):
198
+ due_at_before (Union[Unset, datetime.datetime]):
184
199
  ids (Union[Unset, str]):
185
200
  in_trash (Union[Unset, bool]):
186
201
  is_completed (Union[Unset, bool]):
@@ -189,8 +204,9 @@ def sync_detailed(
189
204
  parent_id (Union[Unset, str]):
190
205
  priority (Union[Unset, str]):
191
206
  size (Union[Unset, int]):
192
- start_at_after (Union[Unset, datetime.date]):
193
- start_at_before (Union[Unset, datetime.date]):
207
+ start_at (Union[Unset, datetime.datetime]):
208
+ start_at_after (Union[Unset, datetime.datetime]):
209
+ start_at_before (Union[Unset, datetime.datetime]):
194
210
  status (Union[Unset, str]):
195
211
  status_id (Union[Unset, str]):
196
212
  tag (Union[Unset, str]):
@@ -215,6 +231,7 @@ def sync_detailed(
215
231
  dartboard=dartboard,
216
232
  dartboard_id=dartboard_id,
217
233
  description=description,
234
+ due_at=due_at,
218
235
  due_at_after=due_at_after,
219
236
  due_at_before=due_at_before,
220
237
  ids=ids,
@@ -225,6 +242,7 @@ def sync_detailed(
225
242
  parent_id=parent_id,
226
243
  priority=priority,
227
244
  size=size,
245
+ start_at=start_at,
228
246
  start_at_after=start_at_after,
229
247
  start_at_before=start_at_before,
230
248
  status=status,
@@ -253,8 +271,9 @@ def sync(
253
271
  dartboard: Union[Unset, str] = UNSET,
254
272
  dartboard_id: Union[Unset, str] = UNSET,
255
273
  description: Union[Unset, str] = UNSET,
256
- due_at_after: Union[Unset, datetime.date] = UNSET,
257
- due_at_before: Union[Unset, datetime.date] = UNSET,
274
+ due_at: Union[Unset, datetime.datetime] = UNSET,
275
+ due_at_after: Union[Unset, datetime.datetime] = UNSET,
276
+ due_at_before: Union[Unset, datetime.datetime] = UNSET,
258
277
  ids: Union[Unset, str] = UNSET,
259
278
  in_trash: Union[Unset, bool] = UNSET,
260
279
  is_completed: Union[Unset, bool] = UNSET,
@@ -263,8 +282,9 @@ def sync(
263
282
  parent_id: Union[Unset, str] = UNSET,
264
283
  priority: Union[Unset, str] = UNSET,
265
284
  size: Union[Unset, int] = UNSET,
266
- start_at_after: Union[Unset, datetime.date] = UNSET,
267
- start_at_before: Union[Unset, datetime.date] = UNSET,
285
+ start_at: Union[Unset, datetime.datetime] = UNSET,
286
+ start_at_after: Union[Unset, datetime.datetime] = UNSET,
287
+ start_at_before: Union[Unset, datetime.datetime] = UNSET,
268
288
  status: Union[Unset, str] = UNSET,
269
289
  status_id: Union[Unset, str] = UNSET,
270
290
  tag: Union[Unset, str] = UNSET,
@@ -284,8 +304,9 @@ def sync(
284
304
  dartboard (Union[Unset, str]):
285
305
  dartboard_id (Union[Unset, str]):
286
306
  description (Union[Unset, str]):
287
- due_at_after (Union[Unset, datetime.date]):
288
- due_at_before (Union[Unset, datetime.date]):
307
+ due_at (Union[Unset, datetime.datetime]):
308
+ due_at_after (Union[Unset, datetime.datetime]):
309
+ due_at_before (Union[Unset, datetime.datetime]):
289
310
  ids (Union[Unset, str]):
290
311
  in_trash (Union[Unset, bool]):
291
312
  is_completed (Union[Unset, bool]):
@@ -294,8 +315,9 @@ def sync(
294
315
  parent_id (Union[Unset, str]):
295
316
  priority (Union[Unset, str]):
296
317
  size (Union[Unset, int]):
297
- start_at_after (Union[Unset, datetime.date]):
298
- start_at_before (Union[Unset, datetime.date]):
318
+ start_at (Union[Unset, datetime.datetime]):
319
+ start_at_after (Union[Unset, datetime.datetime]):
320
+ start_at_before (Union[Unset, datetime.datetime]):
299
321
  status (Union[Unset, str]):
300
322
  status_id (Union[Unset, str]):
301
323
  tag (Union[Unset, str]):
@@ -321,6 +343,7 @@ def sync(
321
343
  dartboard=dartboard,
322
344
  dartboard_id=dartboard_id,
323
345
  description=description,
346
+ due_at=due_at,
324
347
  due_at_after=due_at_after,
325
348
  due_at_before=due_at_before,
326
349
  ids=ids,
@@ -331,6 +354,7 @@ def sync(
331
354
  parent_id=parent_id,
332
355
  priority=priority,
333
356
  size=size,
357
+ start_at=start_at,
334
358
  start_at_after=start_at_after,
335
359
  start_at_before=start_at_before,
336
360
  status=status,
@@ -353,8 +377,9 @@ async def asyncio_detailed(
353
377
  dartboard: Union[Unset, str] = UNSET,
354
378
  dartboard_id: Union[Unset, str] = UNSET,
355
379
  description: Union[Unset, str] = UNSET,
356
- due_at_after: Union[Unset, datetime.date] = UNSET,
357
- due_at_before: Union[Unset, datetime.date] = UNSET,
380
+ due_at: Union[Unset, datetime.datetime] = UNSET,
381
+ due_at_after: Union[Unset, datetime.datetime] = UNSET,
382
+ due_at_before: Union[Unset, datetime.datetime] = UNSET,
358
383
  ids: Union[Unset, str] = UNSET,
359
384
  in_trash: Union[Unset, bool] = UNSET,
360
385
  is_completed: Union[Unset, bool] = UNSET,
@@ -363,8 +388,9 @@ async def asyncio_detailed(
363
388
  parent_id: Union[Unset, str] = UNSET,
364
389
  priority: Union[Unset, str] = UNSET,
365
390
  size: Union[Unset, int] = UNSET,
366
- start_at_after: Union[Unset, datetime.date] = UNSET,
367
- start_at_before: Union[Unset, datetime.date] = UNSET,
391
+ start_at: Union[Unset, datetime.datetime] = UNSET,
392
+ start_at_after: Union[Unset, datetime.datetime] = UNSET,
393
+ start_at_before: Union[Unset, datetime.datetime] = UNSET,
368
394
  status: Union[Unset, str] = UNSET,
369
395
  status_id: Union[Unset, str] = UNSET,
370
396
  tag: Union[Unset, str] = UNSET,
@@ -384,8 +410,9 @@ async def asyncio_detailed(
384
410
  dartboard (Union[Unset, str]):
385
411
  dartboard_id (Union[Unset, str]):
386
412
  description (Union[Unset, str]):
387
- due_at_after (Union[Unset, datetime.date]):
388
- due_at_before (Union[Unset, datetime.date]):
413
+ due_at (Union[Unset, datetime.datetime]):
414
+ due_at_after (Union[Unset, datetime.datetime]):
415
+ due_at_before (Union[Unset, datetime.datetime]):
389
416
  ids (Union[Unset, str]):
390
417
  in_trash (Union[Unset, bool]):
391
418
  is_completed (Union[Unset, bool]):
@@ -394,8 +421,9 @@ async def asyncio_detailed(
394
421
  parent_id (Union[Unset, str]):
395
422
  priority (Union[Unset, str]):
396
423
  size (Union[Unset, int]):
397
- start_at_after (Union[Unset, datetime.date]):
398
- start_at_before (Union[Unset, datetime.date]):
424
+ start_at (Union[Unset, datetime.datetime]):
425
+ start_at_after (Union[Unset, datetime.datetime]):
426
+ start_at_before (Union[Unset, datetime.datetime]):
399
427
  status (Union[Unset, str]):
400
428
  status_id (Union[Unset, str]):
401
429
  tag (Union[Unset, str]):
@@ -420,6 +448,7 @@ async def asyncio_detailed(
420
448
  dartboard=dartboard,
421
449
  dartboard_id=dartboard_id,
422
450
  description=description,
451
+ due_at=due_at,
423
452
  due_at_after=due_at_after,
424
453
  due_at_before=due_at_before,
425
454
  ids=ids,
@@ -430,6 +459,7 @@ async def asyncio_detailed(
430
459
  parent_id=parent_id,
431
460
  priority=priority,
432
461
  size=size,
462
+ start_at=start_at,
433
463
  start_at_after=start_at_after,
434
464
  start_at_before=start_at_before,
435
465
  status=status,
@@ -456,8 +486,9 @@ async def asyncio(
456
486
  dartboard: Union[Unset, str] = UNSET,
457
487
  dartboard_id: Union[Unset, str] = UNSET,
458
488
  description: Union[Unset, str] = UNSET,
459
- due_at_after: Union[Unset, datetime.date] = UNSET,
460
- due_at_before: Union[Unset, datetime.date] = UNSET,
489
+ due_at: Union[Unset, datetime.datetime] = UNSET,
490
+ due_at_after: Union[Unset, datetime.datetime] = UNSET,
491
+ due_at_before: Union[Unset, datetime.datetime] = UNSET,
461
492
  ids: Union[Unset, str] = UNSET,
462
493
  in_trash: Union[Unset, bool] = UNSET,
463
494
  is_completed: Union[Unset, bool] = UNSET,
@@ -466,8 +497,9 @@ async def asyncio(
466
497
  parent_id: Union[Unset, str] = UNSET,
467
498
  priority: Union[Unset, str] = UNSET,
468
499
  size: Union[Unset, int] = UNSET,
469
- start_at_after: Union[Unset, datetime.date] = UNSET,
470
- start_at_before: Union[Unset, datetime.date] = UNSET,
500
+ start_at: Union[Unset, datetime.datetime] = UNSET,
501
+ start_at_after: Union[Unset, datetime.datetime] = UNSET,
502
+ start_at_before: Union[Unset, datetime.datetime] = UNSET,
471
503
  status: Union[Unset, str] = UNSET,
472
504
  status_id: Union[Unset, str] = UNSET,
473
505
  tag: Union[Unset, str] = UNSET,
@@ -487,8 +519,9 @@ async def asyncio(
487
519
  dartboard (Union[Unset, str]):
488
520
  dartboard_id (Union[Unset, str]):
489
521
  description (Union[Unset, str]):
490
- due_at_after (Union[Unset, datetime.date]):
491
- due_at_before (Union[Unset, datetime.date]):
522
+ due_at (Union[Unset, datetime.datetime]):
523
+ due_at_after (Union[Unset, datetime.datetime]):
524
+ due_at_before (Union[Unset, datetime.datetime]):
492
525
  ids (Union[Unset, str]):
493
526
  in_trash (Union[Unset, bool]):
494
527
  is_completed (Union[Unset, bool]):
@@ -497,8 +530,9 @@ async def asyncio(
497
530
  parent_id (Union[Unset, str]):
498
531
  priority (Union[Unset, str]):
499
532
  size (Union[Unset, int]):
500
- start_at_after (Union[Unset, datetime.date]):
501
- start_at_before (Union[Unset, datetime.date]):
533
+ start_at (Union[Unset, datetime.datetime]):
534
+ start_at_after (Union[Unset, datetime.datetime]):
535
+ start_at_before (Union[Unset, datetime.datetime]):
502
536
  status (Union[Unset, str]):
503
537
  status_id (Union[Unset, str]):
504
538
  tag (Union[Unset, str]):
@@ -525,6 +559,7 @@ async def asyncio(
525
559
  dartboard=dartboard,
526
560
  dartboard_id=dartboard_id,
527
561
  description=description,
562
+ due_at=due_at,
528
563
  due_at_after=due_at_after,
529
564
  due_at_before=due_at_before,
530
565
  ids=ids,
@@ -535,6 +570,7 @@ async def asyncio(
535
570
  parent_id=parent_id,
536
571
  priority=priority,
537
572
  size=size,
573
+ start_at=start_at,
538
574
  start_at_after=start_at_after,
539
575
  start_at_before=start_at_before,
540
576
  status=status,
@@ -1,5 +1,6 @@
1
1
  """Contains all the data models used in inputs/outputs"""
2
2
 
3
+ from .attachment import Attachment
3
4
  from .comment import Comment
4
5
  from .comment_create import CommentCreate
5
6
  from .concise_doc import ConciseDoc
@@ -70,6 +71,7 @@ from .wrapped_task_update import WrappedTaskUpdate
70
71
  from .wrapped_view import WrappedView
71
72
 
72
73
  __all__ = (
74
+ "Attachment",
73
75
  "Comment",
74
76
  "CommentCreate",
75
77
  "ConciseDoc",
@@ -0,0 +1,67 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="Attachment")
8
+
9
+
10
+ @_attrs_define
11
+ class Attachment:
12
+ """
13
+ Attributes:
14
+ name (str): The name of the attachment.
15
+ url (str): The link to access the attachment.
16
+ """
17
+
18
+ name: str
19
+ url: str
20
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
21
+
22
+ def to_dict(self) -> dict[str, Any]:
23
+ name = self.name
24
+
25
+ url = self.url
26
+
27
+ field_dict: dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update(
30
+ {
31
+ "name": name,
32
+ "url": url,
33
+ }
34
+ )
35
+
36
+ return field_dict
37
+
38
+ @classmethod
39
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
40
+ d = dict(src_dict)
41
+ name = d.pop("name")
42
+
43
+ url = d.pop("url")
44
+
45
+ attachment = cls(
46
+ name=name,
47
+ url=url,
48
+ )
49
+
50
+ attachment.additional_properties = d
51
+ return attachment
52
+
53
+ @property
54
+ def additional_keys(self) -> list[str]:
55
+ return list(self.additional_properties.keys())
56
+
57
+ def __getitem__(self, key: str) -> Any:
58
+ return self.additional_properties[key]
59
+
60
+ def __setitem__(self, key: str, value: Any) -> None:
61
+ self.additional_properties[key] = value
62
+
63
+ def __delitem__(self, key: str) -> None:
64
+ del self.additional_properties[key]
65
+
66
+ def __contains__(self, key: str) -> bool:
67
+ return key in self.additional_properties
@@ -8,6 +8,7 @@ from ..models.priority import Priority
8
8
  from ..types import UNSET, Unset
9
9
 
10
10
  if TYPE_CHECKING:
11
+ from ..models.attachment import Attachment
11
12
  from ..models.custom_properties import CustomProperties
12
13
  from ..models.task_relationships_type_0 import TaskRelationshipsType0
13
14
 
@@ -29,6 +30,8 @@ class Task:
29
30
  type_ (str): The title of the type of the task.
30
31
  status (str): The status from the list of available statuses.
31
32
  description (str): A longer description of the task, which can include markdown formatting.
33
+ attachments (list['Attachment']): The attachments, which is a list of attachments that are associated with the
34
+ task.
32
35
  assignees (Union[None, Unset, list[str]]): The names or emails of the users that the task is assigned to. Either
33
36
  this or assignee must be included, depending on whether the workspaces allows multiple assignees or not.
34
37
  assignee (Union[None, Unset, str]): The name or email of the user that the task is assigned to. Either this or
@@ -59,6 +62,7 @@ class Task:
59
62
  type_: str
60
63
  status: str
61
64
  description: str
65
+ attachments: list["Attachment"]
62
66
  assignees: Union[None, Unset, list[str]] = UNSET
63
67
  assignee: Union[None, Unset, str] = UNSET
64
68
  tags: Union[Unset, list[str]] = UNSET
@@ -92,6 +96,11 @@ class Task:
92
96
 
93
97
  description = self.description
94
98
 
99
+ attachments = []
100
+ for attachments_item_data in self.attachments:
101
+ attachments_item = attachments_item_data.to_dict()
102
+ attachments.append(attachments_item)
103
+
95
104
  assignees: Union[None, Unset, list[str]]
96
105
  if isinstance(self.assignees, Unset):
97
106
  assignees = UNSET
@@ -167,6 +176,7 @@ class Task:
167
176
  "type": type_,
168
177
  "status": status,
169
178
  "description": description,
179
+ "attachments": attachments,
170
180
  }
171
181
  )
172
182
  if assignees is not UNSET:
@@ -194,6 +204,7 @@ class Task:
194
204
 
195
205
  @classmethod
196
206
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
207
+ from ..models.attachment import Attachment
197
208
  from ..models.custom_properties import CustomProperties
198
209
  from ..models.task_relationships_type_0 import TaskRelationshipsType0
199
210
 
@@ -219,6 +230,13 @@ class Task:
219
230
 
220
231
  description = d.pop("description")
221
232
 
233
+ attachments = []
234
+ _attachments = d.pop("attachments")
235
+ for attachments_item_data in _attachments:
236
+ attachments_item = Attachment.from_dict(attachments_item_data)
237
+
238
+ attachments.append(attachments_item)
239
+
222
240
  def _parse_assignees(data: object) -> Union[None, Unset, list[str]]:
223
241
  if data is None:
224
242
  return data
@@ -340,6 +358,7 @@ class Task:
340
358
  type_=type_,
341
359
  status=status,
342
360
  description=description,
361
+ attachments=attachments,
343
362
  assignees=assignees,
344
363
  assignee=assignee,
345
364
  tags=tags,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dart-tools
3
- Version: 0.8.2
3
+ Version: 0.8.3
4
4
  Summary: The Dart CLI and Python Library
5
5
  Author-email: Dart <software@dartai.com>
6
6
  License: MIT License
@@ -13,20 +13,20 @@ dart/generated/errors.py
13
13
  dart/generated/types.py
14
14
  dart/generated/api/__init__.py
15
15
  dart/generated/api/comment/__init__.py
16
- dart/generated/api/comment/create_comment.py
16
+ dart/generated/api/comment/add_task_comment.py
17
17
  dart/generated/api/comment/list_comments.py
18
18
  dart/generated/api/config/__init__.py
19
19
  dart/generated/api/config/get_config.py
20
20
  dart/generated/api/dartboard/__init__.py
21
- dart/generated/api/dartboard/retrieve_dartboard.py
21
+ dart/generated/api/dartboard/get_dartboard.py
22
22
  dart/generated/api/doc/__init__.py
23
23
  dart/generated/api/doc/create_doc.py
24
24
  dart/generated/api/doc/delete_doc.py
25
+ dart/generated/api/doc/get_doc.py
25
26
  dart/generated/api/doc/list_docs.py
26
- dart/generated/api/doc/retrieve_doc.py
27
27
  dart/generated/api/doc/update_doc.py
28
28
  dart/generated/api/folder/__init__.py
29
- dart/generated/api/folder/retrieve_folder.py
29
+ dart/generated/api/folder/get_folder.py
30
30
  dart/generated/api/help_center_article/__init__.py
31
31
  dart/generated/api/help_center_article/list_help_center_articles.py
32
32
  dart/generated/api/skill/__init__.py
@@ -34,12 +34,13 @@ dart/generated/api/skill/retrieve_skill_by_title.py
34
34
  dart/generated/api/task/__init__.py
35
35
  dart/generated/api/task/create_task.py
36
36
  dart/generated/api/task/delete_task.py
37
+ dart/generated/api/task/get_task.py
37
38
  dart/generated/api/task/list_tasks.py
38
- dart/generated/api/task/retrieve_task.py
39
39
  dart/generated/api/task/update_task.py
40
40
  dart/generated/api/view/__init__.py
41
- dart/generated/api/view/retrieve_view.py
41
+ dart/generated/api/view/get_view.py
42
42
  dart/generated/models/__init__.py
43
+ dart/generated/models/attachment.py
43
44
  dart/generated/models/comment.py
44
45
  dart/generated/models/comment_create.py
45
46
  dart/generated/models/concise_doc.py
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dart-tools"
3
- version = "0.8.2"
3
+ version = "0.8.3"
4
4
  description = "The Dart CLI and Python Library"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"
@@ -1,11 +0,0 @@
1
- """Contains methods for accessing the API"""
2
-
3
- from .comment import create_comment, list_comments
4
- from .config import get_config
5
- from .dartboard import retrieve_dartboard
6
- from .doc import create_doc, delete_doc, list_docs, retrieve_doc, update_doc
7
- from .folder import retrieve_folder
8
- from .help_center_article import list_help_center_articles
9
- from .skill import retrieve_skill_by_title
10
- from .task import create_task, delete_task, list_tasks, retrieve_task, update_task
11
- from .view import retrieve_view
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes