dart-tools 0.7.1__tar.gz → 0.7.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.
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.3}/LICENSE +1 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/PKG-INFO +7 -7
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/dart.py +1 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/config/get_config.py +11 -14
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/dartboard/retrieve_dartboard.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/delete_doc.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/list_docs.py +12 -4
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/retrieve_doc.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/update_doc.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/folder/retrieve_folder.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/delete_task.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/list_tasks.py +48 -40
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/retrieve_task.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/update_task.py +6 -1
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/view/retrieve_view.py +6 -1
- dart_tools-0.7.3/dart/generated/models/__init__.py +107 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/concise_task.py +78 -17
- dart_tools-0.7.3/dart/generated/models/custom_properties.py +131 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/task.py +78 -17
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/task_create.py +76 -25
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/task_update.py +76 -25
- dart_tools-0.7.3/dart/generated/models/user_space_configuration.py +418 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_checkbox_type_def.py +74 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_dates_type_def.py +82 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_multiselect_type_def.py +82 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_number_type_def.py +86 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_number_type_def_custom_property_number_format_type_def.py +10 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_select_type_def.py +82 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_status_type_def.py +74 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_text_type_def.py +74 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_time_tracking_type_def.py +74 -0
- dart_tools-0.7.3/dart/generated/models/user_space_configuration_custom_property_user_type_def.py +82 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart_tools.egg-info/PKG-INFO +7 -7
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart_tools.egg-info/SOURCES.txt +11 -1
- dart_tools-0.7.3/dart_tools.egg-info/requires.txt +5 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/pyproject.toml +10 -10
- dart_tools-0.7.1/dart/generated/models/__init__.py +0 -65
- dart_tools-0.7.1/dart/generated/models/user_space_configuration.py +0 -147
- dart_tools-0.7.1/dart/generated/py.typed +0 -1
- dart_tools-0.7.1/dart_tools.egg-info/requires.txt +0 -5
- {dart_tools-0.7.1 → dart_tools-0.7.3}/README.md +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/exception.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/comment/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/comment/create_comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/config/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/dartboard/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/doc/create_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/folder/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/task/create_task.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/api/view/__init__.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/client.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/errors.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/comment_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/concise_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/dartboard.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/doc_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/doc_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/folder.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/list_docs_o_item.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/paginated_concise_doc_list.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/paginated_concise_task_list.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/priority.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/user.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/view.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_comment.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_comment_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_dartboard.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_doc.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_doc_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_doc_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_folder.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_task.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_task_create.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_task_update.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/models/wrapped_view.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/generated/types.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/old.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/order_manager.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart/webhook.py +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart_tools.egg-info/dependency_links.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart_tools.egg-info/entry_points.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/dart_tools.egg-info/top_level.txt +0 -0
- {dart_tools-0.7.1 → dart_tools-0.7.3}/setup.cfg +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dart-tools
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
4
4
|
Summary: The Dart CLI and Python Library
|
|
5
5
|
Author-email: Dart <software@itsdart.com>
|
|
6
6
|
License: MIT License
|
|
7
7
|
|
|
8
|
-
Copyright (c)
|
|
8
|
+
Copyright (c) 2025 Dart
|
|
9
9
|
|
|
10
10
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
11
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -54,11 +54,11 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
|
54
54
|
Requires-Python: >=3.9
|
|
55
55
|
Description-Content-Type: text/markdown
|
|
56
56
|
License-File: LICENSE
|
|
57
|
-
Requires-Dist: attrs
|
|
58
|
-
Requires-Dist: dateparser
|
|
59
|
-
Requires-Dist: httpx
|
|
60
|
-
Requires-Dist: pick
|
|
61
|
-
Requires-Dist: platformdirs
|
|
57
|
+
Requires-Dist: attrs>=25.3
|
|
58
|
+
Requires-Dist: dateparser>=1.2
|
|
59
|
+
Requires-Dist: httpx>=0.28
|
|
60
|
+
Requires-Dist: pick>=2.4
|
|
61
|
+
Requires-Dist: platformdirs>=4.3
|
|
62
62
|
Dynamic: license-file
|
|
63
63
|
|
|
64
64
|
<div align="center">
|
|
@@ -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
|
|
|
@@ -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 (
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "get",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/dartboards/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
else:
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "delete",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/docs/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
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]):
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "get",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/docs/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
else:
|
|
@@ -19,7 +19,9 @@ def _get_kwargs(
|
|
|
19
19
|
|
|
20
20
|
_kwargs: dict[str, Any] = {
|
|
21
21
|
"method": "put",
|
|
22
|
-
"url":
|
|
22
|
+
"url": "/docs/{id}".format(
|
|
23
|
+
id=id,
|
|
24
|
+
),
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
_body = body.to_dict()
|
|
@@ -41,6 +43,9 @@ def _parse_response(
|
|
|
41
43
|
if response.status_code == 400:
|
|
42
44
|
response_400 = cast(Any, None)
|
|
43
45
|
return response_400
|
|
46
|
+
if response.status_code == 404:
|
|
47
|
+
response_404 = cast(Any, None)
|
|
48
|
+
return response_404
|
|
44
49
|
if client.raise_on_unexpected_status:
|
|
45
50
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
46
51
|
else:
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "get",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/folders/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
else:
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "delete",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/tasks/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
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]):
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "get",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/tasks/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
else:
|
|
@@ -19,7 +19,9 @@ def _get_kwargs(
|
|
|
19
19
|
|
|
20
20
|
_kwargs: dict[str, Any] = {
|
|
21
21
|
"method": "put",
|
|
22
|
-
"url":
|
|
22
|
+
"url": "/tasks/{id}".format(
|
|
23
|
+
id=id,
|
|
24
|
+
),
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
_body = body.to_dict()
|
|
@@ -41,6 +43,9 @@ def _parse_response(
|
|
|
41
43
|
if response.status_code == 400:
|
|
42
44
|
response_400 = cast(Any, None)
|
|
43
45
|
return response_400
|
|
46
|
+
if response.status_code == 404:
|
|
47
|
+
response_404 = cast(Any, None)
|
|
48
|
+
return response_404
|
|
44
49
|
if client.raise_on_unexpected_status:
|
|
45
50
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
46
51
|
else:
|
|
@@ -14,7 +14,9 @@ def _get_kwargs(
|
|
|
14
14
|
) -> dict[str, Any]:
|
|
15
15
|
_kwargs: dict[str, Any] = {
|
|
16
16
|
"method": "get",
|
|
17
|
-
"url":
|
|
17
|
+
"url": "/views/{id}".format(
|
|
18
|
+
id=id,
|
|
19
|
+
),
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
return _kwargs
|
|
@@ -30,6 +32,9 @@ def _parse_response(
|
|
|
30
32
|
if response.status_code == 400:
|
|
31
33
|
response_400 = cast(Any, None)
|
|
32
34
|
return response_400
|
|
35
|
+
if response.status_code == 404:
|
|
36
|
+
response_404 = cast(Any, None)
|
|
37
|
+
return response_404
|
|
33
38
|
if client.raise_on_unexpected_status:
|
|
34
39
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
35
40
|
else:
|