dart-tools 0.7.1__tar.gz → 0.7.2__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.
Potentially problematic release.
This version of dart-tools might be problematic. Click here for more details.
- {dart_tools-0.7.1 → dart_tools-0.7.2}/PKG-INFO +1 -1
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/dart.py +1 -1
- dart_tools-0.7.2/dart/generated/api/__init__.py +16 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/config/get_config.py +11 -14
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/dartboard/retrieve_dartboard.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/delete_doc.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/list_docs.py +12 -4
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/retrieve_doc.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/update_doc.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/folder/retrieve_folder.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/delete_task.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/list_tasks.py +48 -40
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/retrieve_task.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/update_task.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/view/retrieve_view.py +3 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/concise_task.py +10 -10
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/task.py +10 -10
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/task_create.py +10 -10
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/task_update.py +10 -10
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/user_space_configuration.py +34 -5
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/PKG-INFO +1 -1
- {dart_tools-0.7.1 → dart_tools-0.7.2}/pyproject.toml +1 -1
- dart_tools-0.7.1/dart/generated/api/__init__.py +0 -9
- {dart_tools-0.7.1 → dart_tools-0.7.2}/LICENSE +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/README.md +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/exception.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/comment/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/comment/create_comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/config/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/dartboard/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/doc/create_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/folder/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/task/create_task.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/api/view/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/client.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/errors.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/comment_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/concise_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/dartboard.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/doc_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/doc_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/folder.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/list_docs_o_item.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/paginated_concise_doc_list.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/paginated_concise_task_list.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/priority.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/user.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/view.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_comment_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_dartboard.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_doc_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_doc_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_folder.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_task.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_task_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_task_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/models/wrapped_view.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/py.typed +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/generated/types.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/old.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/order_manager.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart/webhook.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/SOURCES.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/dependency_links.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/entry_points.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/requires.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/dart_tools.egg-info/top_level.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.2}/setup.cfg +0 -0
|
@@ -791,7 +791,7 @@ def cli() -> None:
|
|
|
791
791
|
metavar=f"{{{metavar}}}",
|
|
792
792
|
)
|
|
793
793
|
|
|
794
|
-
set_host_parser = subparsers.add_parser(_SET_HOST_CMD, aliases=["
|
|
794
|
+
set_host_parser = subparsers.add_parser(_SET_HOST_CMD, aliases=["hs"])
|
|
795
795
|
set_host_parser.add_argument("host", help="the new host: {prod|stag|dev|[URL]}")
|
|
796
796
|
set_host_parser.set_defaults(func=set_host)
|
|
797
797
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Contains methods for accessing the API"""
|
|
2
|
+
from .config import get_config
|
|
3
|
+
from .comment import create_comment
|
|
4
|
+
from .folder import retrieve_folder
|
|
5
|
+
from .dartboard import retrieve_dartboard
|
|
6
|
+
from .task import create_task
|
|
7
|
+
from .task import delete_task
|
|
8
|
+
from .task import update_task
|
|
9
|
+
from .task import retrieve_task
|
|
10
|
+
from .task import list_tasks
|
|
11
|
+
from .view import retrieve_view
|
|
12
|
+
from .doc import create_doc
|
|
13
|
+
from .doc import delete_doc
|
|
14
|
+
from .doc import update_doc
|
|
15
|
+
from .doc import list_docs
|
|
16
|
+
from .doc import retrieve_doc
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
from http import HTTPStatus
|
|
2
|
-
from typing import Any, Optional, Union
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
3
|
|
|
4
4
|
import httpx
|
|
5
5
|
|
|
@@ -20,14 +20,11 @@ def _get_kwargs() -> dict[str, Any]:
|
|
|
20
20
|
|
|
21
21
|
def _parse_response(
|
|
22
22
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
23
|
-
) -> Optional[
|
|
23
|
+
) -> Optional[UserSpaceConfiguration]:
|
|
24
24
|
if response.status_code == 200:
|
|
25
25
|
response_200 = UserSpaceConfiguration.from_dict(response.json())
|
|
26
26
|
|
|
27
27
|
return response_200
|
|
28
|
-
if response.status_code == 400:
|
|
29
|
-
response_400 = cast(Any, None)
|
|
30
|
-
return response_400
|
|
31
28
|
if client.raise_on_unexpected_status:
|
|
32
29
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
33
30
|
else:
|
|
@@ -36,7 +33,7 @@ def _parse_response(
|
|
|
36
33
|
|
|
37
34
|
def _build_response(
|
|
38
35
|
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
39
|
-
) -> Response[
|
|
36
|
+
) -> Response[UserSpaceConfiguration]:
|
|
40
37
|
return Response(
|
|
41
38
|
status_code=HTTPStatus(response.status_code),
|
|
42
39
|
content=response.content,
|
|
@@ -48,7 +45,7 @@ def _build_response(
|
|
|
48
45
|
def sync_detailed(
|
|
49
46
|
*,
|
|
50
47
|
client: Union[AuthenticatedClient, Client],
|
|
51
|
-
) -> Response[
|
|
48
|
+
) -> Response[UserSpaceConfiguration]:
|
|
52
49
|
"""Get user space configuration
|
|
53
50
|
|
|
54
51
|
Get information about the user's space, including all of the possible values that can be provided to
|
|
@@ -59,7 +56,7 @@ def sync_detailed(
|
|
|
59
56
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
60
57
|
|
|
61
58
|
Returns:
|
|
62
|
-
Response[
|
|
59
|
+
Response[UserSpaceConfiguration]
|
|
63
60
|
"""
|
|
64
61
|
|
|
65
62
|
kwargs = _get_kwargs()
|
|
@@ -74,7 +71,7 @@ def sync_detailed(
|
|
|
74
71
|
def sync(
|
|
75
72
|
*,
|
|
76
73
|
client: Union[AuthenticatedClient, Client],
|
|
77
|
-
) -> Optional[
|
|
74
|
+
) -> Optional[UserSpaceConfiguration]:
|
|
78
75
|
"""Get user space configuration
|
|
79
76
|
|
|
80
77
|
Get information about the user's space, including all of the possible values that can be provided to
|
|
@@ -85,7 +82,7 @@ def sync(
|
|
|
85
82
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
86
83
|
|
|
87
84
|
Returns:
|
|
88
|
-
|
|
85
|
+
UserSpaceConfiguration
|
|
89
86
|
"""
|
|
90
87
|
|
|
91
88
|
return sync_detailed(
|
|
@@ -96,7 +93,7 @@ def sync(
|
|
|
96
93
|
async def asyncio_detailed(
|
|
97
94
|
*,
|
|
98
95
|
client: Union[AuthenticatedClient, Client],
|
|
99
|
-
) -> Response[
|
|
96
|
+
) -> Response[UserSpaceConfiguration]:
|
|
100
97
|
"""Get user space configuration
|
|
101
98
|
|
|
102
99
|
Get information about the user's space, including all of the possible values that can be provided to
|
|
@@ -107,7 +104,7 @@ async def asyncio_detailed(
|
|
|
107
104
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
108
105
|
|
|
109
106
|
Returns:
|
|
110
|
-
Response[
|
|
107
|
+
Response[UserSpaceConfiguration]
|
|
111
108
|
"""
|
|
112
109
|
|
|
113
110
|
kwargs = _get_kwargs()
|
|
@@ -120,7 +117,7 @@ async def asyncio_detailed(
|
|
|
120
117
|
async def asyncio(
|
|
121
118
|
*,
|
|
122
119
|
client: Union[AuthenticatedClient, Client],
|
|
123
|
-
) -> Optional[
|
|
120
|
+
) -> Optional[UserSpaceConfiguration]:
|
|
124
121
|
"""Get user space configuration
|
|
125
122
|
|
|
126
123
|
Get information about the user's space, including all of the possible values that can be provided to
|
|
@@ -131,7 +128,7 @@ async def asyncio(
|
|
|
131
128
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
132
129
|
|
|
133
130
|
Returns:
|
|
134
|
-
|
|
131
|
+
UserSpaceConfiguration
|
|
135
132
|
"""
|
|
136
133
|
|
|
137
134
|
return (
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -101,7 +101,9 @@ def sync_detailed(
|
|
|
101
101
|
text: Union[Unset, str] = UNSET,
|
|
102
102
|
title: Union[Unset, str] = UNSET,
|
|
103
103
|
) -> Response[PaginatedConciseDocList]:
|
|
104
|
-
"""
|
|
104
|
+
"""List all docs that the user has access to. This will return a list of docs, including the title,
|
|
105
|
+
folder, text and others.
|
|
106
|
+
|
|
105
107
|
Args:
|
|
106
108
|
folder (Union[Unset, str]):
|
|
107
109
|
folder_id (Union[Unset, str]):
|
|
@@ -156,7 +158,9 @@ def sync(
|
|
|
156
158
|
text: Union[Unset, str] = UNSET,
|
|
157
159
|
title: Union[Unset, str] = UNSET,
|
|
158
160
|
) -> Optional[PaginatedConciseDocList]:
|
|
159
|
-
"""
|
|
161
|
+
"""List all docs that the user has access to. This will return a list of docs, including the title,
|
|
162
|
+
folder, text and others.
|
|
163
|
+
|
|
160
164
|
Args:
|
|
161
165
|
folder (Union[Unset, str]):
|
|
162
166
|
folder_id (Union[Unset, str]):
|
|
@@ -206,7 +210,9 @@ async def asyncio_detailed(
|
|
|
206
210
|
text: Union[Unset, str] = UNSET,
|
|
207
211
|
title: Union[Unset, str] = UNSET,
|
|
208
212
|
) -> Response[PaginatedConciseDocList]:
|
|
209
|
-
"""
|
|
213
|
+
"""List all docs that the user has access to. This will return a list of docs, including the title,
|
|
214
|
+
folder, text and others.
|
|
215
|
+
|
|
210
216
|
Args:
|
|
211
217
|
folder (Union[Unset, str]):
|
|
212
218
|
folder_id (Union[Unset, str]):
|
|
@@ -259,7 +265,9 @@ async def asyncio(
|
|
|
259
265
|
text: Union[Unset, str] = UNSET,
|
|
260
266
|
title: Union[Unset, str] = UNSET,
|
|
261
267
|
) -> Optional[PaginatedConciseDocList]:
|
|
262
|
-
"""
|
|
268
|
+
"""List all docs that the user has access to. This will return a list of docs, including the title,
|
|
269
|
+
folder, text and others.
|
|
270
|
+
|
|
263
271
|
Args:
|
|
264
272
|
folder (Union[Unset, str]):
|
|
265
273
|
folder_id (Union[Unset, str]):
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -41,6 +41,9 @@ def _parse_response(
|
|
|
41
41
|
if response.status_code == 400:
|
|
42
42
|
response_400 = cast(Any, None)
|
|
43
43
|
return response_400
|
|
44
|
+
if response.status_code == 404:
|
|
45
|
+
response_404 = cast(Any, None)
|
|
46
|
+
return response_404
|
|
44
47
|
if client.raise_on_unexpected_status:
|
|
45
48
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
46
49
|
else:
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -17,8 +17,8 @@ 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.
|
|
21
|
-
due_at_before: Union[Unset, datetime.
|
|
20
|
+
due_at_after: Union[Unset, datetime.date] = UNSET,
|
|
21
|
+
due_at_before: Union[Unset, datetime.date] = UNSET,
|
|
22
22
|
ids: Union[Unset, str] = UNSET,
|
|
23
23
|
in_trash: Union[Unset, bool] = UNSET,
|
|
24
24
|
is_completed: Union[Unset, bool] = UNSET,
|
|
@@ -26,8 +26,8 @@ def _get_kwargs(
|
|
|
26
26
|
offset: Union[Unset, int] = UNSET,
|
|
27
27
|
priority: Union[Unset, str] = UNSET,
|
|
28
28
|
size: Union[Unset, int] = UNSET,
|
|
29
|
-
start_at_after: Union[Unset, datetime.
|
|
30
|
-
start_at_before: Union[Unset, datetime.
|
|
29
|
+
start_at_after: Union[Unset, datetime.date] = UNSET,
|
|
30
|
+
start_at_before: Union[Unset, datetime.date] = UNSET,
|
|
31
31
|
status: Union[Unset, str] = UNSET,
|
|
32
32
|
status_id: Union[Unset, str] = UNSET,
|
|
33
33
|
tag: Union[Unset, str] = UNSET,
|
|
@@ -139,8 +139,8 @@ def sync_detailed(
|
|
|
139
139
|
dartboard: Union[Unset, str] = UNSET,
|
|
140
140
|
dartboard_id: Union[Unset, str] = UNSET,
|
|
141
141
|
description: Union[Unset, str] = UNSET,
|
|
142
|
-
due_at_after: Union[Unset, datetime.
|
|
143
|
-
due_at_before: Union[Unset, datetime.
|
|
142
|
+
due_at_after: Union[Unset, datetime.date] = UNSET,
|
|
143
|
+
due_at_before: Union[Unset, datetime.date] = UNSET,
|
|
144
144
|
ids: Union[Unset, str] = UNSET,
|
|
145
145
|
in_trash: Union[Unset, bool] = UNSET,
|
|
146
146
|
is_completed: Union[Unset, bool] = UNSET,
|
|
@@ -148,8 +148,8 @@ def sync_detailed(
|
|
|
148
148
|
offset: Union[Unset, int] = UNSET,
|
|
149
149
|
priority: Union[Unset, str] = UNSET,
|
|
150
150
|
size: Union[Unset, int] = UNSET,
|
|
151
|
-
start_at_after: Union[Unset, datetime.
|
|
152
|
-
start_at_before: Union[Unset, datetime.
|
|
151
|
+
start_at_after: Union[Unset, datetime.date] = UNSET,
|
|
152
|
+
start_at_before: Union[Unset, datetime.date] = UNSET,
|
|
153
153
|
status: Union[Unset, str] = UNSET,
|
|
154
154
|
status_id: Union[Unset, str] = UNSET,
|
|
155
155
|
tag: Union[Unset, str] = UNSET,
|
|
@@ -158,15 +158,17 @@ def sync_detailed(
|
|
|
158
158
|
type_: Union[Unset, str] = UNSET,
|
|
159
159
|
type_id: Union[Unset, str] = UNSET,
|
|
160
160
|
) -> Response[PaginatedConciseTaskList]:
|
|
161
|
-
"""
|
|
161
|
+
"""List all tasks that the user has access to. This will return a list of tasks, including the title,
|
|
162
|
+
dartboard, status, description and others.
|
|
163
|
+
|
|
162
164
|
Args:
|
|
163
165
|
assignee (Union[Unset, str]):
|
|
164
166
|
assignee_id (Union[Unset, str]):
|
|
165
167
|
dartboard (Union[Unset, str]):
|
|
166
168
|
dartboard_id (Union[Unset, str]):
|
|
167
169
|
description (Union[Unset, str]):
|
|
168
|
-
due_at_after (Union[Unset, datetime.
|
|
169
|
-
due_at_before (Union[Unset, datetime.
|
|
170
|
+
due_at_after (Union[Unset, datetime.date]):
|
|
171
|
+
due_at_before (Union[Unset, datetime.date]):
|
|
170
172
|
ids (Union[Unset, str]):
|
|
171
173
|
in_trash (Union[Unset, bool]):
|
|
172
174
|
is_completed (Union[Unset, bool]):
|
|
@@ -174,8 +176,8 @@ def sync_detailed(
|
|
|
174
176
|
offset (Union[Unset, int]):
|
|
175
177
|
priority (Union[Unset, str]):
|
|
176
178
|
size (Union[Unset, int]):
|
|
177
|
-
start_at_after (Union[Unset, datetime.
|
|
178
|
-
start_at_before (Union[Unset, datetime.
|
|
179
|
+
start_at_after (Union[Unset, datetime.date]):
|
|
180
|
+
start_at_before (Union[Unset, datetime.date]):
|
|
179
181
|
status (Union[Unset, str]):
|
|
180
182
|
status_id (Union[Unset, str]):
|
|
181
183
|
tag (Union[Unset, str]):
|
|
@@ -233,8 +235,8 @@ def sync(
|
|
|
233
235
|
dartboard: Union[Unset, str] = UNSET,
|
|
234
236
|
dartboard_id: Union[Unset, str] = UNSET,
|
|
235
237
|
description: Union[Unset, str] = UNSET,
|
|
236
|
-
due_at_after: Union[Unset, datetime.
|
|
237
|
-
due_at_before: Union[Unset, datetime.
|
|
238
|
+
due_at_after: Union[Unset, datetime.date] = UNSET,
|
|
239
|
+
due_at_before: Union[Unset, datetime.date] = UNSET,
|
|
238
240
|
ids: Union[Unset, str] = UNSET,
|
|
239
241
|
in_trash: Union[Unset, bool] = UNSET,
|
|
240
242
|
is_completed: Union[Unset, bool] = UNSET,
|
|
@@ -242,8 +244,8 @@ def sync(
|
|
|
242
244
|
offset: Union[Unset, int] = UNSET,
|
|
243
245
|
priority: Union[Unset, str] = UNSET,
|
|
244
246
|
size: Union[Unset, int] = UNSET,
|
|
245
|
-
start_at_after: Union[Unset, datetime.
|
|
246
|
-
start_at_before: Union[Unset, datetime.
|
|
247
|
+
start_at_after: Union[Unset, datetime.date] = UNSET,
|
|
248
|
+
start_at_before: Union[Unset, datetime.date] = UNSET,
|
|
247
249
|
status: Union[Unset, str] = UNSET,
|
|
248
250
|
status_id: Union[Unset, str] = UNSET,
|
|
249
251
|
tag: Union[Unset, str] = UNSET,
|
|
@@ -252,15 +254,17 @@ def sync(
|
|
|
252
254
|
type_: Union[Unset, str] = UNSET,
|
|
253
255
|
type_id: Union[Unset, str] = UNSET,
|
|
254
256
|
) -> Optional[PaginatedConciseTaskList]:
|
|
255
|
-
"""
|
|
257
|
+
"""List all tasks that the user has access to. This will return a list of tasks, including the title,
|
|
258
|
+
dartboard, status, description and others.
|
|
259
|
+
|
|
256
260
|
Args:
|
|
257
261
|
assignee (Union[Unset, str]):
|
|
258
262
|
assignee_id (Union[Unset, str]):
|
|
259
263
|
dartboard (Union[Unset, str]):
|
|
260
264
|
dartboard_id (Union[Unset, str]):
|
|
261
265
|
description (Union[Unset, str]):
|
|
262
|
-
due_at_after (Union[Unset, datetime.
|
|
263
|
-
due_at_before (Union[Unset, datetime.
|
|
266
|
+
due_at_after (Union[Unset, datetime.date]):
|
|
267
|
+
due_at_before (Union[Unset, datetime.date]):
|
|
264
268
|
ids (Union[Unset, str]):
|
|
265
269
|
in_trash (Union[Unset, bool]):
|
|
266
270
|
is_completed (Union[Unset, bool]):
|
|
@@ -268,8 +272,8 @@ def sync(
|
|
|
268
272
|
offset (Union[Unset, int]):
|
|
269
273
|
priority (Union[Unset, str]):
|
|
270
274
|
size (Union[Unset, int]):
|
|
271
|
-
start_at_after (Union[Unset, datetime.
|
|
272
|
-
start_at_before (Union[Unset, datetime.
|
|
275
|
+
start_at_after (Union[Unset, datetime.date]):
|
|
276
|
+
start_at_before (Union[Unset, datetime.date]):
|
|
273
277
|
status (Union[Unset, str]):
|
|
274
278
|
status_id (Union[Unset, str]):
|
|
275
279
|
tag (Union[Unset, str]):
|
|
@@ -322,8 +326,8 @@ async def asyncio_detailed(
|
|
|
322
326
|
dartboard: Union[Unset, str] = UNSET,
|
|
323
327
|
dartboard_id: Union[Unset, str] = UNSET,
|
|
324
328
|
description: Union[Unset, str] = UNSET,
|
|
325
|
-
due_at_after: Union[Unset, datetime.
|
|
326
|
-
due_at_before: Union[Unset, datetime.
|
|
329
|
+
due_at_after: Union[Unset, datetime.date] = UNSET,
|
|
330
|
+
due_at_before: Union[Unset, datetime.date] = UNSET,
|
|
327
331
|
ids: Union[Unset, str] = UNSET,
|
|
328
332
|
in_trash: Union[Unset, bool] = UNSET,
|
|
329
333
|
is_completed: Union[Unset, bool] = UNSET,
|
|
@@ -331,8 +335,8 @@ async def asyncio_detailed(
|
|
|
331
335
|
offset: Union[Unset, int] = UNSET,
|
|
332
336
|
priority: Union[Unset, str] = UNSET,
|
|
333
337
|
size: Union[Unset, int] = UNSET,
|
|
334
|
-
start_at_after: Union[Unset, datetime.
|
|
335
|
-
start_at_before: Union[Unset, datetime.
|
|
338
|
+
start_at_after: Union[Unset, datetime.date] = UNSET,
|
|
339
|
+
start_at_before: Union[Unset, datetime.date] = UNSET,
|
|
336
340
|
status: Union[Unset, str] = UNSET,
|
|
337
341
|
status_id: Union[Unset, str] = UNSET,
|
|
338
342
|
tag: Union[Unset, str] = UNSET,
|
|
@@ -341,15 +345,17 @@ async def asyncio_detailed(
|
|
|
341
345
|
type_: Union[Unset, str] = UNSET,
|
|
342
346
|
type_id: Union[Unset, str] = UNSET,
|
|
343
347
|
) -> Response[PaginatedConciseTaskList]:
|
|
344
|
-
"""
|
|
348
|
+
"""List all tasks that the user has access to. This will return a list of tasks, including the title,
|
|
349
|
+
dartboard, status, description and others.
|
|
350
|
+
|
|
345
351
|
Args:
|
|
346
352
|
assignee (Union[Unset, str]):
|
|
347
353
|
assignee_id (Union[Unset, str]):
|
|
348
354
|
dartboard (Union[Unset, str]):
|
|
349
355
|
dartboard_id (Union[Unset, str]):
|
|
350
356
|
description (Union[Unset, str]):
|
|
351
|
-
due_at_after (Union[Unset, datetime.
|
|
352
|
-
due_at_before (Union[Unset, datetime.
|
|
357
|
+
due_at_after (Union[Unset, datetime.date]):
|
|
358
|
+
due_at_before (Union[Unset, datetime.date]):
|
|
353
359
|
ids (Union[Unset, str]):
|
|
354
360
|
in_trash (Union[Unset, bool]):
|
|
355
361
|
is_completed (Union[Unset, bool]):
|
|
@@ -357,8 +363,8 @@ async def asyncio_detailed(
|
|
|
357
363
|
offset (Union[Unset, int]):
|
|
358
364
|
priority (Union[Unset, str]):
|
|
359
365
|
size (Union[Unset, int]):
|
|
360
|
-
start_at_after (Union[Unset, datetime.
|
|
361
|
-
start_at_before (Union[Unset, datetime.
|
|
366
|
+
start_at_after (Union[Unset, datetime.date]):
|
|
367
|
+
start_at_before (Union[Unset, datetime.date]):
|
|
362
368
|
status (Union[Unset, str]):
|
|
363
369
|
status_id (Union[Unset, str]):
|
|
364
370
|
tag (Union[Unset, str]):
|
|
@@ -414,8 +420,8 @@ async def asyncio(
|
|
|
414
420
|
dartboard: Union[Unset, str] = UNSET,
|
|
415
421
|
dartboard_id: Union[Unset, str] = UNSET,
|
|
416
422
|
description: Union[Unset, str] = UNSET,
|
|
417
|
-
due_at_after: Union[Unset, datetime.
|
|
418
|
-
due_at_before: Union[Unset, datetime.
|
|
423
|
+
due_at_after: Union[Unset, datetime.date] = UNSET,
|
|
424
|
+
due_at_before: Union[Unset, datetime.date] = UNSET,
|
|
419
425
|
ids: Union[Unset, str] = UNSET,
|
|
420
426
|
in_trash: Union[Unset, bool] = UNSET,
|
|
421
427
|
is_completed: Union[Unset, bool] = UNSET,
|
|
@@ -423,8 +429,8 @@ async def asyncio(
|
|
|
423
429
|
offset: Union[Unset, int] = UNSET,
|
|
424
430
|
priority: Union[Unset, str] = UNSET,
|
|
425
431
|
size: Union[Unset, int] = UNSET,
|
|
426
|
-
start_at_after: Union[Unset, datetime.
|
|
427
|
-
start_at_before: Union[Unset, datetime.
|
|
432
|
+
start_at_after: Union[Unset, datetime.date] = UNSET,
|
|
433
|
+
start_at_before: Union[Unset, datetime.date] = UNSET,
|
|
428
434
|
status: Union[Unset, str] = UNSET,
|
|
429
435
|
status_id: Union[Unset, str] = UNSET,
|
|
430
436
|
tag: Union[Unset, str] = UNSET,
|
|
@@ -433,15 +439,17 @@ async def asyncio(
|
|
|
433
439
|
type_: Union[Unset, str] = UNSET,
|
|
434
440
|
type_id: Union[Unset, str] = UNSET,
|
|
435
441
|
) -> Optional[PaginatedConciseTaskList]:
|
|
436
|
-
"""
|
|
442
|
+
"""List all tasks that the user has access to. This will return a list of tasks, including the title,
|
|
443
|
+
dartboard, status, description and others.
|
|
444
|
+
|
|
437
445
|
Args:
|
|
438
446
|
assignee (Union[Unset, str]):
|
|
439
447
|
assignee_id (Union[Unset, str]):
|
|
440
448
|
dartboard (Union[Unset, str]):
|
|
441
449
|
dartboard_id (Union[Unset, str]):
|
|
442
450
|
description (Union[Unset, str]):
|
|
443
|
-
due_at_after (Union[Unset, datetime.
|
|
444
|
-
due_at_before (Union[Unset, datetime.
|
|
451
|
+
due_at_after (Union[Unset, datetime.date]):
|
|
452
|
+
due_at_before (Union[Unset, datetime.date]):
|
|
445
453
|
ids (Union[Unset, str]):
|
|
446
454
|
in_trash (Union[Unset, bool]):
|
|
447
455
|
is_completed (Union[Unset, bool]):
|
|
@@ -449,8 +457,8 @@ async def asyncio(
|
|
|
449
457
|
offset (Union[Unset, int]):
|
|
450
458
|
priority (Union[Unset, str]):
|
|
451
459
|
size (Union[Unset, int]):
|
|
452
|
-
start_at_after (Union[Unset, datetime.
|
|
453
|
-
start_at_before (Union[Unset, datetime.
|
|
460
|
+
start_at_after (Union[Unset, datetime.date]):
|
|
461
|
+
start_at_before (Union[Unset, datetime.date]):
|
|
454
462
|
status (Union[Unset, str]):
|
|
455
463
|
status_id (Union[Unset, str]):
|
|
456
464
|
tag (Union[Unset, str]):
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -41,6 +41,9 @@ def _parse_response(
|
|
|
41
41
|
if response.status_code == 400:
|
|
42
42
|
response_400 = cast(Any, None)
|
|
43
43
|
return response_400
|
|
44
|
+
if response.status_code == 404:
|
|
45
|
+
response_404 = cast(Any, None)
|
|
46
|
+
return response_404
|
|
44
47
|
if client.raise_on_unexpected_status:
|
|
45
48
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
46
49
|
else:
|
|
@@ -30,6 +30,9 @@ def _parse_response(
|
|
|
30
30
|
if response.status_code == 400:
|
|
31
31
|
response_400 = cast(Any, None)
|
|
32
32
|
return response_400
|
|
33
|
+
if response.status_code == 404:
|
|
34
|
+
response_404 = cast(Any, None)
|
|
35
|
+
return response_404
|
|
33
36
|
if client.raise_on_unexpected_status:
|
|
34
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
38
|
else:
|
|
@@ -31,12 +31,12 @@ class ConciseTask:
|
|
|
31
31
|
be short and descriptive. This list can be empty.
|
|
32
32
|
priority (Union[None, Priority, Unset]): The priority, which is a string that can be one of the specified
|
|
33
33
|
options. This is used to sort tasks and determine which tasks should be done first.
|
|
34
|
-
start_at (Union[None, Unset, str]): The start date, which is a date
|
|
35
|
-
|
|
36
|
-
due_at (Union[None, Unset, str]): The due date, which is a date
|
|
37
|
-
|
|
38
|
-
size (Union[None, Unset, int]): The size, which
|
|
39
|
-
|
|
34
|
+
start_at (Union[None, Unset, str]): The start date, which is a date that the task should be started by in ISO
|
|
35
|
+
format, like YYYY-MM-DD.
|
|
36
|
+
due_at (Union[None, Unset, str]): The due date, which is a date that the task should be completed by in ISO
|
|
37
|
+
format, like YYYY-MM-DD.
|
|
38
|
+
size (Union[None, Unset, int, str]): The size, which represents the amount of work that needs to be done. This
|
|
39
|
+
is used to determine how long the task will take to complete.
|
|
40
40
|
time_tracking (Union[Unset, str]): The time tracking, which is a string that indicates the amount of time spent
|
|
41
41
|
on the task in hh:mm:ss format (or an empty string if no time has been tracked).
|
|
42
42
|
"""
|
|
@@ -54,7 +54,7 @@ class ConciseTask:
|
|
|
54
54
|
priority: Union[None, Priority, Unset] = UNSET
|
|
55
55
|
start_at: Union[None, Unset, str] = UNSET
|
|
56
56
|
due_at: Union[None, Unset, str] = UNSET
|
|
57
|
-
size: Union[None, Unset, int] = UNSET
|
|
57
|
+
size: Union[None, Unset, int, str] = UNSET
|
|
58
58
|
time_tracking: Union[Unset, str] = UNSET
|
|
59
59
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
60
60
|
|
|
@@ -108,7 +108,7 @@ class ConciseTask:
|
|
|
108
108
|
else:
|
|
109
109
|
due_at = self.due_at
|
|
110
110
|
|
|
111
|
-
size: Union[None, Unset, int]
|
|
111
|
+
size: Union[None, Unset, int, str]
|
|
112
112
|
if isinstance(self.size, Unset):
|
|
113
113
|
size = UNSET
|
|
114
114
|
else:
|
|
@@ -218,12 +218,12 @@ class ConciseTask:
|
|
|
218
218
|
|
|
219
219
|
due_at = _parse_due_at(d.pop("dueAt", UNSET))
|
|
220
220
|
|
|
221
|
-
def _parse_size(data: object) -> Union[None, Unset, int]:
|
|
221
|
+
def _parse_size(data: object) -> Union[None, Unset, int, str]:
|
|
222
222
|
if data is None:
|
|
223
223
|
return data
|
|
224
224
|
if isinstance(data, Unset):
|
|
225
225
|
return data
|
|
226
|
-
return cast(Union[None, Unset, int], data)
|
|
226
|
+
return cast(Union[None, Unset, int, str], data)
|
|
227
227
|
|
|
228
228
|
size = _parse_size(d.pop("size", UNSET))
|
|
229
229
|
|
|
@@ -31,12 +31,12 @@ class Task:
|
|
|
31
31
|
be short and descriptive. This list can be empty.
|
|
32
32
|
priority (Union[None, Priority, Unset]): The priority, which is a string that can be one of the specified
|
|
33
33
|
options. This is used to sort tasks and determine which tasks should be done first.
|
|
34
|
-
start_at (Union[None, Unset, str]): The start date, which is a date
|
|
35
|
-
|
|
36
|
-
due_at (Union[None, Unset, str]): The due date, which is a date
|
|
37
|
-
|
|
38
|
-
size (Union[None, Unset, int]): The size, which
|
|
39
|
-
|
|
34
|
+
start_at (Union[None, Unset, str]): The start date, which is a date that the task should be started by in ISO
|
|
35
|
+
format, like YYYY-MM-DD.
|
|
36
|
+
due_at (Union[None, Unset, str]): The due date, which is a date that the task should be completed by in ISO
|
|
37
|
+
format, like YYYY-MM-DD.
|
|
38
|
+
size (Union[None, Unset, int, str]): The size, which represents the amount of work that needs to be done. This
|
|
39
|
+
is used to determine how long the task will take to complete.
|
|
40
40
|
time_tracking (Union[Unset, str]): The time tracking, which is a string that indicates the amount of time spent
|
|
41
41
|
on the task in hh:mm:ss format (or an empty string if no time has been tracked).
|
|
42
42
|
"""
|
|
@@ -55,7 +55,7 @@ class Task:
|
|
|
55
55
|
priority: Union[None, Priority, Unset] = UNSET
|
|
56
56
|
start_at: Union[None, Unset, str] = UNSET
|
|
57
57
|
due_at: Union[None, Unset, str] = UNSET
|
|
58
|
-
size: Union[None, Unset, int] = UNSET
|
|
58
|
+
size: Union[None, Unset, int, str] = UNSET
|
|
59
59
|
time_tracking: Union[Unset, str] = UNSET
|
|
60
60
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
61
61
|
|
|
@@ -111,7 +111,7 @@ class Task:
|
|
|
111
111
|
else:
|
|
112
112
|
due_at = self.due_at
|
|
113
113
|
|
|
114
|
-
size: Union[None, Unset, int]
|
|
114
|
+
size: Union[None, Unset, int, str]
|
|
115
115
|
if isinstance(self.size, Unset):
|
|
116
116
|
size = UNSET
|
|
117
117
|
else:
|
|
@@ -224,12 +224,12 @@ class Task:
|
|
|
224
224
|
|
|
225
225
|
due_at = _parse_due_at(d.pop("dueAt", UNSET))
|
|
226
226
|
|
|
227
|
-
def _parse_size(data: object) -> Union[None, Unset, int]:
|
|
227
|
+
def _parse_size(data: object) -> Union[None, Unset, int, str]:
|
|
228
228
|
if data is None:
|
|
229
229
|
return data
|
|
230
230
|
if isinstance(data, Unset):
|
|
231
231
|
return data
|
|
232
|
-
return cast(Union[None, Unset, int], data)
|
|
232
|
+
return cast(Union[None, Unset, int, str], data)
|
|
233
233
|
|
|
234
234
|
size = _parse_size(d.pop("size", UNSET))
|
|
235
235
|
|
|
@@ -29,12 +29,12 @@ class TaskCreate:
|
|
|
29
29
|
be short and descriptive. This list can be empty.
|
|
30
30
|
priority (Union[None, Priority, Unset]): The priority, which is a string that can be one of the specified
|
|
31
31
|
options. This is used to sort tasks and determine which tasks should be done first.
|
|
32
|
-
start_at (Union[None, Unset, str]): The start date, which is a date
|
|
33
|
-
|
|
34
|
-
due_at (Union[None, Unset, str]): The due date, which is a date
|
|
35
|
-
|
|
36
|
-
size (Union[None, Unset, int]): The size, which
|
|
37
|
-
|
|
32
|
+
start_at (Union[None, Unset, str]): The start date, which is a date that the task should be started by in ISO
|
|
33
|
+
format, like YYYY-MM-DD.
|
|
34
|
+
due_at (Union[None, Unset, str]): The due date, which is a date that the task should be completed by in ISO
|
|
35
|
+
format, like YYYY-MM-DD.
|
|
36
|
+
size (Union[None, Unset, int, str]): The size, which represents the amount of work that needs to be done. This
|
|
37
|
+
is used to determine how long the task will take to complete.
|
|
38
38
|
time_tracking (Union[Unset, str]): The time tracking, which is a string that indicates the amount of time spent
|
|
39
39
|
on the task in hh:mm:ss format (or an empty string if no time has been tracked).
|
|
40
40
|
"""
|
|
@@ -51,7 +51,7 @@ class TaskCreate:
|
|
|
51
51
|
priority: Union[None, Priority, Unset] = UNSET
|
|
52
52
|
start_at: Union[None, Unset, str] = UNSET
|
|
53
53
|
due_at: Union[None, Unset, str] = UNSET
|
|
54
|
-
size: Union[None, Unset, int] = UNSET
|
|
54
|
+
size: Union[None, Unset, int, str] = UNSET
|
|
55
55
|
time_tracking: Union[Unset, str] = UNSET
|
|
56
56
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
57
57
|
|
|
@@ -106,7 +106,7 @@ class TaskCreate:
|
|
|
106
106
|
else:
|
|
107
107
|
due_at = self.due_at
|
|
108
108
|
|
|
109
|
-
size: Union[None, Unset, int]
|
|
109
|
+
size: Union[None, Unset, int, str]
|
|
110
110
|
if isinstance(self.size, Unset):
|
|
111
111
|
size = UNSET
|
|
112
112
|
else:
|
|
@@ -220,12 +220,12 @@ class TaskCreate:
|
|
|
220
220
|
|
|
221
221
|
due_at = _parse_due_at(d.pop("dueAt", UNSET))
|
|
222
222
|
|
|
223
|
-
def _parse_size(data: object) -> Union[None, Unset, int]:
|
|
223
|
+
def _parse_size(data: object) -> Union[None, Unset, int, str]:
|
|
224
224
|
if data is None:
|
|
225
225
|
return data
|
|
226
226
|
if isinstance(data, Unset):
|
|
227
227
|
return data
|
|
228
|
-
return cast(Union[None, Unset, int], data)
|
|
228
|
+
return cast(Union[None, Unset, int, str], data)
|
|
229
229
|
|
|
230
230
|
size = _parse_size(d.pop("size", UNSET))
|
|
231
231
|
|
|
@@ -30,12 +30,12 @@ class TaskUpdate:
|
|
|
30
30
|
be short and descriptive. This list can be empty.
|
|
31
31
|
priority (Union[None, Priority, Unset]): The priority, which is a string that can be one of the specified
|
|
32
32
|
options. This is used to sort tasks and determine which tasks should be done first.
|
|
33
|
-
start_at (Union[None, Unset, str]): The start date, which is a date
|
|
34
|
-
|
|
35
|
-
due_at (Union[None, Unset, str]): The due date, which is a date
|
|
36
|
-
|
|
37
|
-
size (Union[None, Unset, int]): The size, which
|
|
38
|
-
|
|
33
|
+
start_at (Union[None, Unset, str]): The start date, which is a date that the task should be started by in ISO
|
|
34
|
+
format, like YYYY-MM-DD.
|
|
35
|
+
due_at (Union[None, Unset, str]): The due date, which is a date that the task should be completed by in ISO
|
|
36
|
+
format, like YYYY-MM-DD.
|
|
37
|
+
size (Union[None, Unset, int, str]): The size, which represents the amount of work that needs to be done. This
|
|
38
|
+
is used to determine how long the task will take to complete.
|
|
39
39
|
time_tracking (Union[Unset, str]): The time tracking, which is a string that indicates the amount of time spent
|
|
40
40
|
on the task in hh:mm:ss format (or an empty string if no time has been tracked).
|
|
41
41
|
"""
|
|
@@ -53,7 +53,7 @@ class TaskUpdate:
|
|
|
53
53
|
priority: Union[None, Priority, Unset] = UNSET
|
|
54
54
|
start_at: Union[None, Unset, str] = UNSET
|
|
55
55
|
due_at: Union[None, Unset, str] = UNSET
|
|
56
|
-
size: Union[None, Unset, int] = UNSET
|
|
56
|
+
size: Union[None, Unset, int, str] = UNSET
|
|
57
57
|
time_tracking: Union[Unset, str] = UNSET
|
|
58
58
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
59
59
|
|
|
@@ -110,7 +110,7 @@ class TaskUpdate:
|
|
|
110
110
|
else:
|
|
111
111
|
due_at = self.due_at
|
|
112
112
|
|
|
113
|
-
size: Union[None, Unset, int]
|
|
113
|
+
size: Union[None, Unset, int, str]
|
|
114
114
|
if isinstance(self.size, Unset):
|
|
115
115
|
size = UNSET
|
|
116
116
|
else:
|
|
@@ -228,12 +228,12 @@ class TaskUpdate:
|
|
|
228
228
|
|
|
229
229
|
due_at = _parse_due_at(d.pop("dueAt", UNSET))
|
|
230
230
|
|
|
231
|
-
def _parse_size(data: object) -> Union[None, Unset, int]:
|
|
231
|
+
def _parse_size(data: object) -> Union[None, Unset, int, str]:
|
|
232
232
|
if data is None:
|
|
233
233
|
return data
|
|
234
234
|
if isinstance(data, Unset):
|
|
235
235
|
return data
|
|
236
|
-
return cast(Union[None, Unset, int], data)
|
|
236
|
+
return cast(Union[None, Unset, int, str], data)
|
|
237
237
|
|
|
238
238
|
size = _parse_size(d.pop("size", UNSET))
|
|
239
239
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import datetime
|
|
2
2
|
from collections.abc import Mapping
|
|
3
|
-
from typing import TYPE_CHECKING, Any, TypeVar, cast
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
4
4
|
|
|
5
5
|
from attrs import define as _attrs_define
|
|
6
6
|
from attrs import field as _attrs_field
|
|
@@ -26,7 +26,7 @@ class UserSpaceConfiguration:
|
|
|
26
26
|
assignees (list['User']):
|
|
27
27
|
tags (list[str]):
|
|
28
28
|
priorities (list[str]):
|
|
29
|
-
sizes (list[int]):
|
|
29
|
+
sizes (Union[list[Union[int, str]], str]):
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
today: datetime.date
|
|
@@ -38,7 +38,7 @@ class UserSpaceConfiguration:
|
|
|
38
38
|
assignees: list["User"]
|
|
39
39
|
tags: list[str]
|
|
40
40
|
priorities: list[str]
|
|
41
|
-
sizes: list[int]
|
|
41
|
+
sizes: Union[list[Union[int, str]], str]
|
|
42
42
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
43
|
|
|
44
44
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -63,7 +63,16 @@ class UserSpaceConfiguration:
|
|
|
63
63
|
|
|
64
64
|
priorities = self.priorities
|
|
65
65
|
|
|
66
|
-
sizes
|
|
66
|
+
sizes: Union[list[Union[int, str]], str]
|
|
67
|
+
if isinstance(self.sizes, list):
|
|
68
|
+
sizes = []
|
|
69
|
+
for sizes_type_1_item_data in self.sizes:
|
|
70
|
+
sizes_type_1_item: Union[int, str]
|
|
71
|
+
sizes_type_1_item = sizes_type_1_item_data
|
|
72
|
+
sizes.append(sizes_type_1_item)
|
|
73
|
+
|
|
74
|
+
else:
|
|
75
|
+
sizes = self.sizes
|
|
67
76
|
|
|
68
77
|
field_dict: dict[str, Any] = {}
|
|
69
78
|
field_dict.update(self.additional_properties)
|
|
@@ -112,7 +121,27 @@ class UserSpaceConfiguration:
|
|
|
112
121
|
|
|
113
122
|
priorities = cast(list[str], d.pop("priorities"))
|
|
114
123
|
|
|
115
|
-
|
|
124
|
+
def _parse_sizes(data: object) -> Union[list[Union[int, str]], str]:
|
|
125
|
+
try:
|
|
126
|
+
if not isinstance(data, list):
|
|
127
|
+
raise TypeError()
|
|
128
|
+
sizes_type_1 = []
|
|
129
|
+
_sizes_type_1 = data
|
|
130
|
+
for sizes_type_1_item_data in _sizes_type_1:
|
|
131
|
+
|
|
132
|
+
def _parse_sizes_type_1_item(data: object) -> Union[int, str]:
|
|
133
|
+
return cast(Union[int, str], data)
|
|
134
|
+
|
|
135
|
+
sizes_type_1_item = _parse_sizes_type_1_item(sizes_type_1_item_data)
|
|
136
|
+
|
|
137
|
+
sizes_type_1.append(sizes_type_1_item)
|
|
138
|
+
|
|
139
|
+
return sizes_type_1
|
|
140
|
+
except: # noqa: E722
|
|
141
|
+
pass
|
|
142
|
+
return cast(Union[list[Union[int, str]], str], data)
|
|
143
|
+
|
|
144
|
+
sizes = _parse_sizes(d.pop("sizes"))
|
|
116
145
|
|
|
117
146
|
user_space_configuration = cls(
|
|
118
147
|
today=today,
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"""Contains methods for accessing the API"""
|
|
2
|
-
|
|
3
|
-
from .comment import create_comment
|
|
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 .task import create_task, delete_task, list_tasks, retrieve_task, update_task
|
|
9
|
-
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|