dart-tools 0.8.0__py3-none-any.whl → 0.8.2__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.
Potentially problematic release.
This version of dart-tools might be problematic. Click here for more details.
- dart/generated/api/__init__.py +2 -0
- dart/generated/api/comment/list_comments.py +18 -27
- dart/generated/api/dartboard/retrieve_dartboard.py +8 -8
- dart/generated/api/doc/list_docs.py +8 -8
- dart/generated/api/help_center_article/__init__.py +1 -0
- dart/generated/api/help_center_article/list_help_center_articles.py +166 -0
- dart/generated/api/skill/__init__.py +1 -0
- dart/generated/api/skill/retrieve_skill_by_title.py +173 -0
- dart/generated/api/task/create_task.py +12 -12
- dart/generated/api/task/list_tasks.py +38 -8
- dart/generated/api/view/retrieve_view.py +4 -4
- dart/generated/models/__init__.py +8 -2
- dart/generated/models/concise_task.py +3 -1
- dart/generated/models/dartboard.py +1 -23
- dart/generated/models/folder.py +1 -23
- dart/generated/models/skill.py +75 -0
- dart/generated/models/task.py +13 -11
- dart/generated/models/task_create.py +13 -11
- dart/generated/models/{task_relationships.py → task_relationships_type_0.py} +19 -9
- dart/generated/models/task_update.py +13 -11
- dart/generated/models/user.py +8 -5
- dart/generated/models/user_space_configuration.py +8 -0
- dart/generated/models/view.py +1 -23
- dart/generated/models/wrapped_help_center_articles.py +59 -0
- dart/generated/models/wrapped_skill.py +65 -0
- dart/old.py +14 -2
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/METADATA +1 -1
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/RECORD +32 -25
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/WHEEL +0 -0
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/licenses/LICENSE +0 -0
- {dart_tools-0.8.0.dist-info → dart_tools-0.8.2.dist-info}/top_level.txt +0 -0
|
@@ -36,6 +36,8 @@ def _get_kwargs(
|
|
|
36
36
|
title: Union[Unset, str] = UNSET,
|
|
37
37
|
type_: Union[Unset, str] = UNSET,
|
|
38
38
|
type_id: Union[Unset, str] = UNSET,
|
|
39
|
+
view: Union[Unset, str] = UNSET,
|
|
40
|
+
view_id: Union[Unset, str] = UNSET,
|
|
39
41
|
) -> dict[str, Any]:
|
|
40
42
|
params: dict[str, Any] = {}
|
|
41
43
|
|
|
@@ -99,6 +101,10 @@ def _get_kwargs(
|
|
|
99
101
|
|
|
100
102
|
params["type_id"] = type_id
|
|
101
103
|
|
|
104
|
+
params["view"] = view
|
|
105
|
+
|
|
106
|
+
params["view_id"] = view_id
|
|
107
|
+
|
|
102
108
|
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
103
109
|
|
|
104
110
|
_kwargs: dict[str, Any] = {
|
|
@@ -161,9 +167,11 @@ def sync_detailed(
|
|
|
161
167
|
title: Union[Unset, str] = UNSET,
|
|
162
168
|
type_: Union[Unset, str] = UNSET,
|
|
163
169
|
type_id: Union[Unset, str] = UNSET,
|
|
170
|
+
view: Union[Unset, str] = UNSET,
|
|
171
|
+
view_id: Union[Unset, str] = UNSET,
|
|
164
172
|
) -> Response[PaginatedConciseTaskList]:
|
|
165
|
-
"""List
|
|
166
|
-
|
|
173
|
+
"""List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority,
|
|
174
|
+
dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
167
175
|
|
|
168
176
|
Args:
|
|
169
177
|
assignee (Union[Unset, str]):
|
|
@@ -190,6 +198,8 @@ def sync_detailed(
|
|
|
190
198
|
title (Union[Unset, str]):
|
|
191
199
|
type_ (Union[Unset, str]):
|
|
192
200
|
type_id (Union[Unset, str]):
|
|
201
|
+
view (Union[Unset, str]):
|
|
202
|
+
view_id (Union[Unset, str]):
|
|
193
203
|
|
|
194
204
|
Raises:
|
|
195
205
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -224,6 +234,8 @@ def sync_detailed(
|
|
|
224
234
|
title=title,
|
|
225
235
|
type_=type_,
|
|
226
236
|
type_id=type_id,
|
|
237
|
+
view=view,
|
|
238
|
+
view_id=view_id,
|
|
227
239
|
)
|
|
228
240
|
|
|
229
241
|
response = client.get_httpx_client().request(
|
|
@@ -260,9 +272,11 @@ def sync(
|
|
|
260
272
|
title: Union[Unset, str] = UNSET,
|
|
261
273
|
type_: Union[Unset, str] = UNSET,
|
|
262
274
|
type_id: Union[Unset, str] = UNSET,
|
|
275
|
+
view: Union[Unset, str] = UNSET,
|
|
276
|
+
view_id: Union[Unset, str] = UNSET,
|
|
263
277
|
) -> Optional[PaginatedConciseTaskList]:
|
|
264
|
-
"""List
|
|
265
|
-
|
|
278
|
+
"""List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority,
|
|
279
|
+
dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
266
280
|
|
|
267
281
|
Args:
|
|
268
282
|
assignee (Union[Unset, str]):
|
|
@@ -289,6 +303,8 @@ def sync(
|
|
|
289
303
|
title (Union[Unset, str]):
|
|
290
304
|
type_ (Union[Unset, str]):
|
|
291
305
|
type_id (Union[Unset, str]):
|
|
306
|
+
view (Union[Unset, str]):
|
|
307
|
+
view_id (Union[Unset, str]):
|
|
292
308
|
|
|
293
309
|
Raises:
|
|
294
310
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -324,6 +340,8 @@ def sync(
|
|
|
324
340
|
title=title,
|
|
325
341
|
type_=type_,
|
|
326
342
|
type_id=type_id,
|
|
343
|
+
view=view,
|
|
344
|
+
view_id=view_id,
|
|
327
345
|
).parsed
|
|
328
346
|
|
|
329
347
|
|
|
@@ -354,9 +372,11 @@ async def asyncio_detailed(
|
|
|
354
372
|
title: Union[Unset, str] = UNSET,
|
|
355
373
|
type_: Union[Unset, str] = UNSET,
|
|
356
374
|
type_id: Union[Unset, str] = UNSET,
|
|
375
|
+
view: Union[Unset, str] = UNSET,
|
|
376
|
+
view_id: Union[Unset, str] = UNSET,
|
|
357
377
|
) -> Response[PaginatedConciseTaskList]:
|
|
358
|
-
"""List
|
|
359
|
-
|
|
378
|
+
"""List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority,
|
|
379
|
+
dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
360
380
|
|
|
361
381
|
Args:
|
|
362
382
|
assignee (Union[Unset, str]):
|
|
@@ -383,6 +403,8 @@ async def asyncio_detailed(
|
|
|
383
403
|
title (Union[Unset, str]):
|
|
384
404
|
type_ (Union[Unset, str]):
|
|
385
405
|
type_id (Union[Unset, str]):
|
|
406
|
+
view (Union[Unset, str]):
|
|
407
|
+
view_id (Union[Unset, str]):
|
|
386
408
|
|
|
387
409
|
Raises:
|
|
388
410
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -417,6 +439,8 @@ async def asyncio_detailed(
|
|
|
417
439
|
title=title,
|
|
418
440
|
type_=type_,
|
|
419
441
|
type_id=type_id,
|
|
442
|
+
view=view,
|
|
443
|
+
view_id=view_id,
|
|
420
444
|
)
|
|
421
445
|
|
|
422
446
|
response = await client.get_async_httpx_client().request(**kwargs)
|
|
@@ -451,9 +475,11 @@ async def asyncio(
|
|
|
451
475
|
title: Union[Unset, str] = UNSET,
|
|
452
476
|
type_: Union[Unset, str] = UNSET,
|
|
453
477
|
type_id: Union[Unset, str] = UNSET,
|
|
478
|
+
view: Union[Unset, str] = UNSET,
|
|
479
|
+
view_id: Union[Unset, str] = UNSET,
|
|
454
480
|
) -> Optional[PaginatedConciseTaskList]:
|
|
455
|
-
"""List
|
|
456
|
-
|
|
481
|
+
"""List tasks with powerful filtering options. Filter by dartboard, status, assignee, tags, priority,
|
|
482
|
+
dates, completion state, view, and more. Supports pagination with limit/offset.
|
|
457
483
|
|
|
458
484
|
Args:
|
|
459
485
|
assignee (Union[Unset, str]):
|
|
@@ -480,6 +506,8 @@ async def asyncio(
|
|
|
480
506
|
title (Union[Unset, str]):
|
|
481
507
|
type_ (Union[Unset, str]):
|
|
482
508
|
type_id (Union[Unset, str]):
|
|
509
|
+
view (Union[Unset, str]):
|
|
510
|
+
view_id (Union[Unset, str]):
|
|
483
511
|
|
|
484
512
|
Raises:
|
|
485
513
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
@@ -516,5 +544,7 @@ async def asyncio(
|
|
|
516
544
|
title=title,
|
|
517
545
|
type_=type_,
|
|
518
546
|
type_id=type_id,
|
|
547
|
+
view=view,
|
|
548
|
+
view_id=view_id,
|
|
519
549
|
)
|
|
520
550
|
).parsed
|
|
@@ -60,7 +60,7 @@ def sync_detailed(
|
|
|
60
60
|
"""Retrieve an existing view
|
|
61
61
|
|
|
62
62
|
Retrieve an existing view. This will return the view's information, including the title,
|
|
63
|
-
description,
|
|
63
|
+
description, and others.
|
|
64
64
|
|
|
65
65
|
Args:
|
|
66
66
|
id (str):
|
|
@@ -92,7 +92,7 @@ def sync(
|
|
|
92
92
|
"""Retrieve an existing view
|
|
93
93
|
|
|
94
94
|
Retrieve an existing view. This will return the view's information, including the title,
|
|
95
|
-
description,
|
|
95
|
+
description, and others.
|
|
96
96
|
|
|
97
97
|
Args:
|
|
98
98
|
id (str):
|
|
@@ -119,7 +119,7 @@ async def asyncio_detailed(
|
|
|
119
119
|
"""Retrieve an existing view
|
|
120
120
|
|
|
121
121
|
Retrieve an existing view. This will return the view's information, including the title,
|
|
122
|
-
description,
|
|
122
|
+
description, and others.
|
|
123
123
|
|
|
124
124
|
Args:
|
|
125
125
|
id (str):
|
|
@@ -149,7 +149,7 @@ async def asyncio(
|
|
|
149
149
|
"""Retrieve an existing view
|
|
150
150
|
|
|
151
151
|
Retrieve an existing view. This will return the view's information, including the title,
|
|
152
|
-
description,
|
|
152
|
+
description, and others.
|
|
153
153
|
|
|
154
154
|
Args:
|
|
155
155
|
id (str):
|
|
@@ -16,9 +16,10 @@ from .paginated_comment_list import PaginatedCommentList
|
|
|
16
16
|
from .paginated_concise_doc_list import PaginatedConciseDocList
|
|
17
17
|
from .paginated_concise_task_list import PaginatedConciseTaskList
|
|
18
18
|
from .priority import Priority
|
|
19
|
+
from .skill import Skill
|
|
19
20
|
from .task import Task
|
|
20
21
|
from .task_create import TaskCreate
|
|
21
|
-
from .
|
|
22
|
+
from .task_relationships_type_0 import TaskRelationshipsType0
|
|
22
23
|
from .task_update import TaskUpdate
|
|
23
24
|
from .time_tracking_entry import TimeTrackingEntry
|
|
24
25
|
from .user import User
|
|
@@ -61,6 +62,8 @@ from .wrapped_doc import WrappedDoc
|
|
|
61
62
|
from .wrapped_doc_create import WrappedDocCreate
|
|
62
63
|
from .wrapped_doc_update import WrappedDocUpdate
|
|
63
64
|
from .wrapped_folder import WrappedFolder
|
|
65
|
+
from .wrapped_help_center_articles import WrappedHelpCenterArticles
|
|
66
|
+
from .wrapped_skill import WrappedSkill
|
|
64
67
|
from .wrapped_task import WrappedTask
|
|
65
68
|
from .wrapped_task_create import WrappedTaskCreate
|
|
66
69
|
from .wrapped_task_update import WrappedTaskUpdate
|
|
@@ -83,9 +86,10 @@ __all__ = (
|
|
|
83
86
|
"PaginatedConciseDocList",
|
|
84
87
|
"PaginatedConciseTaskList",
|
|
85
88
|
"Priority",
|
|
89
|
+
"Skill",
|
|
86
90
|
"Task",
|
|
87
91
|
"TaskCreate",
|
|
88
|
-
"
|
|
92
|
+
"TaskRelationshipsType0",
|
|
89
93
|
"TaskUpdate",
|
|
90
94
|
"TimeTrackingEntry",
|
|
91
95
|
"User",
|
|
@@ -108,6 +112,8 @@ __all__ = (
|
|
|
108
112
|
"WrappedDocCreate",
|
|
109
113
|
"WrappedDocUpdate",
|
|
110
114
|
"WrappedFolder",
|
|
115
|
+
"WrappedHelpCenterArticles",
|
|
116
|
+
"WrappedSkill",
|
|
111
117
|
"WrappedTask",
|
|
112
118
|
"WrappedTaskCreate",
|
|
113
119
|
"WrappedTaskUpdate",
|
|
@@ -22,7 +22,9 @@ class ConciseTask:
|
|
|
22
22
|
id (str): The universal, unique ID of the task.
|
|
23
23
|
html_url (str): The URL that can be used to open the task in the Dart web UI.
|
|
24
24
|
title (str): The title, which is a short description of what needs to be done.
|
|
25
|
-
parent_id (Union[None, str]): The universal, unique ID of the parent task. This can be null.
|
|
25
|
+
parent_id (Union[None, str]): The universal, unique ID of the parent task. This can be null. These tasks have a
|
|
26
|
+
parent-child relationship where the current task is the child and this task ID corresponds to the parent.
|
|
27
|
+
Subtasks inherit context from their parent and are typically smaller units of work.
|
|
26
28
|
dartboard (str): The full title of the dartboard, which is a project or list of tasks.
|
|
27
29
|
type_ (str): The title of the type of the task.
|
|
28
30
|
status (str): The status from the list of available statuses.
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from ..models.task import Task
|
|
9
|
-
|
|
10
|
-
|
|
11
7
|
T = TypeVar("T", bound="Dartboard")
|
|
12
8
|
|
|
13
9
|
|
|
@@ -19,14 +15,12 @@ class Dartboard:
|
|
|
19
15
|
html_url (str): The URL that can be used to open the dartboard in the Dart web UI.
|
|
20
16
|
title (str): The title, which is a short description of the dartboard.
|
|
21
17
|
description (str): The description, which is a longer description of the dartboard.
|
|
22
|
-
tasks (list['Task']): The list of all of the tasks in the dartboard.
|
|
23
18
|
"""
|
|
24
19
|
|
|
25
20
|
id: str
|
|
26
21
|
html_url: str
|
|
27
22
|
title: str
|
|
28
23
|
description: str
|
|
29
|
-
tasks: list["Task"]
|
|
30
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
25
|
|
|
32
26
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -38,11 +32,6 @@ class Dartboard:
|
|
|
38
32
|
|
|
39
33
|
description = self.description
|
|
40
34
|
|
|
41
|
-
tasks = []
|
|
42
|
-
for tasks_item_data in self.tasks:
|
|
43
|
-
tasks_item = tasks_item_data.to_dict()
|
|
44
|
-
tasks.append(tasks_item)
|
|
45
|
-
|
|
46
35
|
field_dict: dict[str, Any] = {}
|
|
47
36
|
field_dict.update(self.additional_properties)
|
|
48
37
|
field_dict.update(
|
|
@@ -51,7 +40,6 @@ class Dartboard:
|
|
|
51
40
|
"htmlUrl": html_url,
|
|
52
41
|
"title": title,
|
|
53
42
|
"description": description,
|
|
54
|
-
"tasks": tasks,
|
|
55
43
|
}
|
|
56
44
|
)
|
|
57
45
|
|
|
@@ -59,8 +47,6 @@ class Dartboard:
|
|
|
59
47
|
|
|
60
48
|
@classmethod
|
|
61
49
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
62
|
-
from ..models.task import Task
|
|
63
|
-
|
|
64
50
|
d = dict(src_dict)
|
|
65
51
|
id = d.pop("id")
|
|
66
52
|
|
|
@@ -70,19 +56,11 @@ class Dartboard:
|
|
|
70
56
|
|
|
71
57
|
description = d.pop("description")
|
|
72
58
|
|
|
73
|
-
tasks = []
|
|
74
|
-
_tasks = d.pop("tasks")
|
|
75
|
-
for tasks_item_data in _tasks:
|
|
76
|
-
tasks_item = Task.from_dict(tasks_item_data)
|
|
77
|
-
|
|
78
|
-
tasks.append(tasks_item)
|
|
79
|
-
|
|
80
59
|
dartboard = cls(
|
|
81
60
|
id=id,
|
|
82
61
|
html_url=html_url,
|
|
83
62
|
title=title,
|
|
84
63
|
description=description,
|
|
85
|
-
tasks=tasks,
|
|
86
64
|
)
|
|
87
65
|
|
|
88
66
|
dartboard.additional_properties = d
|
dart/generated/models/folder.py
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
from collections.abc import Mapping
|
|
2
|
-
from typing import
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
6
6
|
|
|
7
|
-
if TYPE_CHECKING:
|
|
8
|
-
from ..models.doc import Doc
|
|
9
|
-
|
|
10
|
-
|
|
11
7
|
T = TypeVar("T", bound="Folder")
|
|
12
8
|
|
|
13
9
|
|
|
@@ -19,14 +15,12 @@ class Folder:
|
|
|
19
15
|
html_url (str): The URL that can be used to open the folder in the Dart web UI.
|
|
20
16
|
title (str): The title, which is a short description of the folder.
|
|
21
17
|
description (str): The description, which is a longer description of the folder.
|
|
22
|
-
docs (list['Doc']): The list of all of the docs in the folder.
|
|
23
18
|
"""
|
|
24
19
|
|
|
25
20
|
id: str
|
|
26
21
|
html_url: str
|
|
27
22
|
title: str
|
|
28
23
|
description: str
|
|
29
|
-
docs: list["Doc"]
|
|
30
24
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
31
25
|
|
|
32
26
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -38,11 +32,6 @@ class Folder:
|
|
|
38
32
|
|
|
39
33
|
description = self.description
|
|
40
34
|
|
|
41
|
-
docs = []
|
|
42
|
-
for docs_item_data in self.docs:
|
|
43
|
-
docs_item = docs_item_data.to_dict()
|
|
44
|
-
docs.append(docs_item)
|
|
45
|
-
|
|
46
35
|
field_dict: dict[str, Any] = {}
|
|
47
36
|
field_dict.update(self.additional_properties)
|
|
48
37
|
field_dict.update(
|
|
@@ -51,7 +40,6 @@ class Folder:
|
|
|
51
40
|
"htmlUrl": html_url,
|
|
52
41
|
"title": title,
|
|
53
42
|
"description": description,
|
|
54
|
-
"docs": docs,
|
|
55
43
|
}
|
|
56
44
|
)
|
|
57
45
|
|
|
@@ -59,8 +47,6 @@ class Folder:
|
|
|
59
47
|
|
|
60
48
|
@classmethod
|
|
61
49
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
62
|
-
from ..models.doc import Doc
|
|
63
|
-
|
|
64
50
|
d = dict(src_dict)
|
|
65
51
|
id = d.pop("id")
|
|
66
52
|
|
|
@@ -70,19 +56,11 @@ class Folder:
|
|
|
70
56
|
|
|
71
57
|
description = d.pop("description")
|
|
72
58
|
|
|
73
|
-
docs = []
|
|
74
|
-
_docs = d.pop("docs")
|
|
75
|
-
for docs_item_data in _docs:
|
|
76
|
-
docs_item = Doc.from_dict(docs_item_data)
|
|
77
|
-
|
|
78
|
-
docs.append(docs_item)
|
|
79
|
-
|
|
80
59
|
folder = cls(
|
|
81
60
|
id=id,
|
|
82
61
|
html_url=html_url,
|
|
83
62
|
title=title,
|
|
84
63
|
description=description,
|
|
85
|
-
docs=docs,
|
|
86
64
|
)
|
|
87
65
|
|
|
88
66
|
folder.additional_properties = d
|
|
@@ -0,0 +1,75 @@
|
|
|
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="Skill")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class Skill:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
id (str): The universal, unique ID of the skill.
|
|
15
|
+
title (str): The title of the skill, describing the task type.
|
|
16
|
+
prompt_markdown (str): User-defined instructions for performing this skill in markdown format.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
id: str
|
|
20
|
+
title: str
|
|
21
|
+
prompt_markdown: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
id = self.id
|
|
26
|
+
|
|
27
|
+
title = self.title
|
|
28
|
+
|
|
29
|
+
prompt_markdown = self.prompt_markdown
|
|
30
|
+
|
|
31
|
+
field_dict: dict[str, Any] = {}
|
|
32
|
+
field_dict.update(self.additional_properties)
|
|
33
|
+
field_dict.update(
|
|
34
|
+
{
|
|
35
|
+
"id": id,
|
|
36
|
+
"title": title,
|
|
37
|
+
"promptMarkdown": prompt_markdown,
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
|
|
41
|
+
return field_dict
|
|
42
|
+
|
|
43
|
+
@classmethod
|
|
44
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
45
|
+
d = dict(src_dict)
|
|
46
|
+
id = d.pop("id")
|
|
47
|
+
|
|
48
|
+
title = d.pop("title")
|
|
49
|
+
|
|
50
|
+
prompt_markdown = d.pop("promptMarkdown")
|
|
51
|
+
|
|
52
|
+
skill = cls(
|
|
53
|
+
id=id,
|
|
54
|
+
title=title,
|
|
55
|
+
prompt_markdown=prompt_markdown,
|
|
56
|
+
)
|
|
57
|
+
|
|
58
|
+
skill.additional_properties = d
|
|
59
|
+
return skill
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def additional_keys(self) -> list[str]:
|
|
63
|
+
return list(self.additional_properties.keys())
|
|
64
|
+
|
|
65
|
+
def __getitem__(self, key: str) -> Any:
|
|
66
|
+
return self.additional_properties[key]
|
|
67
|
+
|
|
68
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
69
|
+
self.additional_properties[key] = value
|
|
70
|
+
|
|
71
|
+
def __delitem__(self, key: str) -> None:
|
|
72
|
+
del self.additional_properties[key]
|
|
73
|
+
|
|
74
|
+
def __contains__(self, key: str) -> bool:
|
|
75
|
+
return key in self.additional_properties
|
dart/generated/models/task.py
CHANGED
|
@@ -9,7 +9,7 @@ from ..types import UNSET, Unset
|
|
|
9
9
|
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
11
|
from ..models.custom_properties import CustomProperties
|
|
12
|
-
from ..models.
|
|
12
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
T = TypeVar("T", bound="Task")
|
|
@@ -22,7 +22,9 @@ class Task:
|
|
|
22
22
|
id (str): The universal, unique ID of the task.
|
|
23
23
|
html_url (str): The URL that can be used to open the task in the Dart web UI.
|
|
24
24
|
title (str): The title, which is a short description of what needs to be done.
|
|
25
|
-
parent_id (Union[None, str]): The universal, unique ID of the parent task. This can be null.
|
|
25
|
+
parent_id (Union[None, str]): The universal, unique ID of the parent task. This can be null. These tasks have a
|
|
26
|
+
parent-child relationship where the current task is the child and this task ID corresponds to the parent.
|
|
27
|
+
Subtasks inherit context from their parent and are typically smaller units of work.
|
|
26
28
|
dartboard (str): The full title of the dartboard, which is a project or list of tasks.
|
|
27
29
|
type_ (str): The title of the type of the task.
|
|
28
30
|
status (str): The status from the list of available statuses.
|
|
@@ -46,7 +48,7 @@ class Task:
|
|
|
46
48
|
on the task in hh:mm:ss format (or an empty string if no time has been tracked).
|
|
47
49
|
custom_properties (Union['CustomProperties', None, Unset]): The custom properties, which is a dict of custom
|
|
48
50
|
properties that are associated with the task.
|
|
49
|
-
task_relationships (Union['
|
|
51
|
+
task_relationships (Union['TaskRelationshipsType0', None, Unset]): The relationships associated with the task.
|
|
50
52
|
"""
|
|
51
53
|
|
|
52
54
|
id: str
|
|
@@ -66,12 +68,12 @@ class Task:
|
|
|
66
68
|
size: Union[None, Unset, int, str] = UNSET
|
|
67
69
|
time_tracking: Union[Unset, str] = UNSET
|
|
68
70
|
custom_properties: Union["CustomProperties", None, Unset] = UNSET
|
|
69
|
-
task_relationships: Union["
|
|
71
|
+
task_relationships: Union["TaskRelationshipsType0", None, Unset] = UNSET
|
|
70
72
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
71
73
|
|
|
72
74
|
def to_dict(self) -> dict[str, Any]:
|
|
73
75
|
from ..models.custom_properties import CustomProperties
|
|
74
|
-
from ..models.
|
|
76
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
75
77
|
|
|
76
78
|
id = self.id
|
|
77
79
|
|
|
@@ -148,7 +150,7 @@ class Task:
|
|
|
148
150
|
task_relationships: Union[None, Unset, dict[str, Any]]
|
|
149
151
|
if isinstance(self.task_relationships, Unset):
|
|
150
152
|
task_relationships = UNSET
|
|
151
|
-
elif isinstance(self.task_relationships,
|
|
153
|
+
elif isinstance(self.task_relationships, TaskRelationshipsType0):
|
|
152
154
|
task_relationships = self.task_relationships.to_dict()
|
|
153
155
|
else:
|
|
154
156
|
task_relationships = self.task_relationships
|
|
@@ -193,7 +195,7 @@ class Task:
|
|
|
193
195
|
@classmethod
|
|
194
196
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
195
197
|
from ..models.custom_properties import CustomProperties
|
|
196
|
-
from ..models.
|
|
198
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
197
199
|
|
|
198
200
|
d = dict(src_dict)
|
|
199
201
|
id = d.pop("id")
|
|
@@ -312,7 +314,7 @@ class Task:
|
|
|
312
314
|
|
|
313
315
|
def _parse_task_relationships(
|
|
314
316
|
data: object,
|
|
315
|
-
) -> Union["
|
|
317
|
+
) -> Union["TaskRelationshipsType0", None, Unset]:
|
|
316
318
|
if data is None:
|
|
317
319
|
return data
|
|
318
320
|
if isinstance(data, Unset):
|
|
@@ -320,12 +322,12 @@ class Task:
|
|
|
320
322
|
try:
|
|
321
323
|
if not isinstance(data, dict):
|
|
322
324
|
raise TypeError()
|
|
323
|
-
|
|
325
|
+
componentsschemas_task_relationships_type_0 = TaskRelationshipsType0.from_dict(data)
|
|
324
326
|
|
|
325
|
-
return
|
|
327
|
+
return componentsschemas_task_relationships_type_0
|
|
326
328
|
except: # noqa: E722
|
|
327
329
|
pass
|
|
328
|
-
return cast(Union["
|
|
330
|
+
return cast(Union["TaskRelationshipsType0", None, Unset], data)
|
|
329
331
|
|
|
330
332
|
task_relationships = _parse_task_relationships(d.pop("taskRelationships", UNSET))
|
|
331
333
|
|
|
@@ -9,7 +9,7 @@ from ..types import UNSET, Unset
|
|
|
9
9
|
|
|
10
10
|
if TYPE_CHECKING:
|
|
11
11
|
from ..models.custom_properties import CustomProperties
|
|
12
|
-
from ..models.
|
|
12
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
T = TypeVar("T", bound="TaskCreate")
|
|
@@ -20,7 +20,9 @@ class TaskCreate:
|
|
|
20
20
|
"""
|
|
21
21
|
Attributes:
|
|
22
22
|
title (str): The title, which is a short description of what needs to be done.
|
|
23
|
-
parent_id (Union[None, Unset, str]): The universal, unique ID of the parent task. This can be null.
|
|
23
|
+
parent_id (Union[None, Unset, str]): The universal, unique ID of the parent task. This can be null. These tasks
|
|
24
|
+
have a parent-child relationship where the current task is the child and this task ID corresponds to the parent.
|
|
25
|
+
Subtasks inherit context from their parent and are typically smaller units of work.
|
|
24
26
|
dartboard (Union[Unset, str]): The full title of the dartboard, which is a project or list of tasks.
|
|
25
27
|
type_ (Union[Unset, str]): The title of the type of the task.
|
|
26
28
|
status (Union[Unset, str]): The status from the list of available statuses.
|
|
@@ -42,7 +44,7 @@ class TaskCreate:
|
|
|
42
44
|
is used to determine how long the task will take to complete.
|
|
43
45
|
custom_properties (Union['CustomProperties', None, Unset]): The custom properties, which is a dict of custom
|
|
44
46
|
properties that are associated with the task.
|
|
45
|
-
task_relationships (Union['
|
|
47
|
+
task_relationships (Union['TaskRelationshipsType0', None, Unset]): The relationships associated with the task.
|
|
46
48
|
"""
|
|
47
49
|
|
|
48
50
|
title: str
|
|
@@ -59,12 +61,12 @@ class TaskCreate:
|
|
|
59
61
|
due_at: Union[None, Unset, str] = UNSET
|
|
60
62
|
size: Union[None, Unset, int, str] = UNSET
|
|
61
63
|
custom_properties: Union["CustomProperties", None, Unset] = UNSET
|
|
62
|
-
task_relationships: Union["
|
|
64
|
+
task_relationships: Union["TaskRelationshipsType0", None, Unset] = UNSET
|
|
63
65
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
64
66
|
|
|
65
67
|
def to_dict(self) -> dict[str, Any]:
|
|
66
68
|
from ..models.custom_properties import CustomProperties
|
|
67
|
-
from ..models.
|
|
69
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
68
70
|
|
|
69
71
|
title = self.title
|
|
70
72
|
|
|
@@ -138,7 +140,7 @@ class TaskCreate:
|
|
|
138
140
|
task_relationships: Union[None, Unset, dict[str, Any]]
|
|
139
141
|
if isinstance(self.task_relationships, Unset):
|
|
140
142
|
task_relationships = UNSET
|
|
141
|
-
elif isinstance(self.task_relationships,
|
|
143
|
+
elif isinstance(self.task_relationships, TaskRelationshipsType0):
|
|
142
144
|
task_relationships = self.task_relationships.to_dict()
|
|
143
145
|
else:
|
|
144
146
|
task_relationships = self.task_relationships
|
|
@@ -184,7 +186,7 @@ class TaskCreate:
|
|
|
184
186
|
@classmethod
|
|
185
187
|
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
186
188
|
from ..models.custom_properties import CustomProperties
|
|
187
|
-
from ..models.
|
|
189
|
+
from ..models.task_relationships_type_0 import TaskRelationshipsType0
|
|
188
190
|
|
|
189
191
|
d = dict(src_dict)
|
|
190
192
|
title = d.pop("title")
|
|
@@ -299,7 +301,7 @@ class TaskCreate:
|
|
|
299
301
|
|
|
300
302
|
def _parse_task_relationships(
|
|
301
303
|
data: object,
|
|
302
|
-
) -> Union["
|
|
304
|
+
) -> Union["TaskRelationshipsType0", None, Unset]:
|
|
303
305
|
if data is None:
|
|
304
306
|
return data
|
|
305
307
|
if isinstance(data, Unset):
|
|
@@ -307,12 +309,12 @@ class TaskCreate:
|
|
|
307
309
|
try:
|
|
308
310
|
if not isinstance(data, dict):
|
|
309
311
|
raise TypeError()
|
|
310
|
-
|
|
312
|
+
componentsschemas_task_relationships_type_0 = TaskRelationshipsType0.from_dict(data)
|
|
311
313
|
|
|
312
|
-
return
|
|
314
|
+
return componentsschemas_task_relationships_type_0
|
|
313
315
|
except: # noqa: E722
|
|
314
316
|
pass
|
|
315
|
-
return cast(Union["
|
|
317
|
+
return cast(Union["TaskRelationshipsType0", None, Unset], data)
|
|
316
318
|
|
|
317
319
|
task_relationships = _parse_task_relationships(d.pop("taskRelationships", UNSET))
|
|
318
320
|
|