dart-tools 0.6.13__py3-none-any.whl → 0.6.15__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/comments/comments_list.py +15 -0
- dart/generated/api/dartboards/dartboards_list.py +15 -0
- dart/generated/api/dashboards/dashboards_list.py +15 -0
- dart/generated/api/docs/docs_list.py +15 -0
- dart/generated/api/folders/folders_list.py +15 -0
- dart/generated/api/options/options_list.py +15 -0
- dart/generated/api/properties/properties_list.py +15 -0
- dart/generated/api/spaces/spaces_list.py +15 -0
- dart/generated/api/statuses/statuses_list.py +15 -0
- dart/generated/api/task_kinds/task_kinds_list.py +15 -0
- dart/generated/api/tasks/tasks_list.py +15 -0
- dart/generated/api/users/users_list.py +15 -0
- dart/generated/api/views/views_list.py +15 -0
- dart/generated/models/bar_chart_adtl.py +26 -0
- dart/generated/models/dartboard.py +25 -0
- dart/generated/models/dartboard_create.py +30 -0
- dart/generated/models/dartboard_update.py +30 -0
- dart/generated/models/docs_list_o_item.py +6 -2
- dart/generated/models/space.py +0 -14
- dart/generated/models/space_create.py +0 -20
- dart/generated/models/space_update.py +0 -20
- dart/generated/models/table_chart_adtl.py +8 -8
- dart/generated/models/task_create.py +6 -8
- dart/generated/models/tenant.py +8 -0
- dart/generated/models/tenant_update.py +9 -0
- dart/generated/models/transaction.py +11 -9
- dart/generated/models/user.py +13 -13
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/METADATA +3 -11
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/RECORD +34 -34
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/LICENSE +0 -0
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/WHEEL +0 -0
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/dist/dart-tools-0.3.3.tar.gz +0 -0
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.6.13.dist-info → dart_tools-0.6.15.dist-info}/top_level.txt +0 -0
|
@@ -11,12 +11,15 @@ from ...types import UNSET, Response, Unset
|
|
|
11
11
|
|
|
12
12
|
def _get_kwargs(
|
|
13
13
|
*,
|
|
14
|
+
duids: Union[Unset, str] = UNSET,
|
|
14
15
|
limit: Union[Unset, int] = UNSET,
|
|
15
16
|
offset: Union[Unset, int] = UNSET,
|
|
16
17
|
title: Union[Unset, str] = UNSET,
|
|
17
18
|
) -> Dict[str, Any]:
|
|
18
19
|
params: Dict[str, Any] = {}
|
|
19
20
|
|
|
21
|
+
params["duids"] = duids
|
|
22
|
+
|
|
20
23
|
params["limit"] = limit
|
|
21
24
|
|
|
22
25
|
params["offset"] = offset
|
|
@@ -61,12 +64,14 @@ def _build_response(
|
|
|
61
64
|
def sync_detailed(
|
|
62
65
|
*,
|
|
63
66
|
client: AuthenticatedClient,
|
|
67
|
+
duids: Union[Unset, str] = UNSET,
|
|
64
68
|
limit: Union[Unset, int] = UNSET,
|
|
65
69
|
offset: Union[Unset, int] = UNSET,
|
|
66
70
|
title: Union[Unset, str] = UNSET,
|
|
67
71
|
) -> Response[PaginatedViewList]:
|
|
68
72
|
"""
|
|
69
73
|
Args:
|
|
74
|
+
duids (Union[Unset, str]):
|
|
70
75
|
limit (Union[Unset, int]):
|
|
71
76
|
offset (Union[Unset, int]):
|
|
72
77
|
title (Union[Unset, str]):
|
|
@@ -80,6 +85,7 @@ def sync_detailed(
|
|
|
80
85
|
"""
|
|
81
86
|
|
|
82
87
|
kwargs = _get_kwargs(
|
|
88
|
+
duids=duids,
|
|
83
89
|
limit=limit,
|
|
84
90
|
offset=offset,
|
|
85
91
|
title=title,
|
|
@@ -95,12 +101,14 @@ def sync_detailed(
|
|
|
95
101
|
def sync(
|
|
96
102
|
*,
|
|
97
103
|
client: AuthenticatedClient,
|
|
104
|
+
duids: Union[Unset, str] = UNSET,
|
|
98
105
|
limit: Union[Unset, int] = UNSET,
|
|
99
106
|
offset: Union[Unset, int] = UNSET,
|
|
100
107
|
title: Union[Unset, str] = UNSET,
|
|
101
108
|
) -> Optional[PaginatedViewList]:
|
|
102
109
|
"""
|
|
103
110
|
Args:
|
|
111
|
+
duids (Union[Unset, str]):
|
|
104
112
|
limit (Union[Unset, int]):
|
|
105
113
|
offset (Union[Unset, int]):
|
|
106
114
|
title (Union[Unset, str]):
|
|
@@ -115,6 +123,7 @@ def sync(
|
|
|
115
123
|
|
|
116
124
|
return sync_detailed(
|
|
117
125
|
client=client,
|
|
126
|
+
duids=duids,
|
|
118
127
|
limit=limit,
|
|
119
128
|
offset=offset,
|
|
120
129
|
title=title,
|
|
@@ -124,12 +133,14 @@ def sync(
|
|
|
124
133
|
async def asyncio_detailed(
|
|
125
134
|
*,
|
|
126
135
|
client: AuthenticatedClient,
|
|
136
|
+
duids: Union[Unset, str] = UNSET,
|
|
127
137
|
limit: Union[Unset, int] = UNSET,
|
|
128
138
|
offset: Union[Unset, int] = UNSET,
|
|
129
139
|
title: Union[Unset, str] = UNSET,
|
|
130
140
|
) -> Response[PaginatedViewList]:
|
|
131
141
|
"""
|
|
132
142
|
Args:
|
|
143
|
+
duids (Union[Unset, str]):
|
|
133
144
|
limit (Union[Unset, int]):
|
|
134
145
|
offset (Union[Unset, int]):
|
|
135
146
|
title (Union[Unset, str]):
|
|
@@ -143,6 +154,7 @@ async def asyncio_detailed(
|
|
|
143
154
|
"""
|
|
144
155
|
|
|
145
156
|
kwargs = _get_kwargs(
|
|
157
|
+
duids=duids,
|
|
146
158
|
limit=limit,
|
|
147
159
|
offset=offset,
|
|
148
160
|
title=title,
|
|
@@ -156,12 +168,14 @@ async def asyncio_detailed(
|
|
|
156
168
|
async def asyncio(
|
|
157
169
|
*,
|
|
158
170
|
client: AuthenticatedClient,
|
|
171
|
+
duids: Union[Unset, str] = UNSET,
|
|
159
172
|
limit: Union[Unset, int] = UNSET,
|
|
160
173
|
offset: Union[Unset, int] = UNSET,
|
|
161
174
|
title: Union[Unset, str] = UNSET,
|
|
162
175
|
) -> Optional[PaginatedViewList]:
|
|
163
176
|
"""
|
|
164
177
|
Args:
|
|
178
|
+
duids (Union[Unset, str]):
|
|
165
179
|
limit (Union[Unset, int]):
|
|
166
180
|
offset (Union[Unset, int]):
|
|
167
181
|
title (Union[Unset, str]):
|
|
@@ -177,6 +191,7 @@ async def asyncio(
|
|
|
177
191
|
return (
|
|
178
192
|
await asyncio_detailed(
|
|
179
193
|
client=client,
|
|
194
|
+
duids=duids,
|
|
180
195
|
limit=limit,
|
|
181
196
|
offset=offset,
|
|
182
197
|
title=title,
|
|
@@ -3,6 +3,8 @@ from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
5
5
|
|
|
6
|
+
from ..models.chart_aggregation import ChartAggregation
|
|
7
|
+
|
|
6
8
|
T = TypeVar("T", bound="BarChartAdtl")
|
|
7
9
|
|
|
8
10
|
|
|
@@ -12,10 +14,16 @@ class BarChartAdtl:
|
|
|
12
14
|
Attributes:
|
|
13
15
|
x_property_duid (str):
|
|
14
16
|
stack_property_duid (Union[None, str]):
|
|
17
|
+
aggregation_property_duid (Union[None, str]):
|
|
18
|
+
aggregation (ChartAggregation): * `sum` - SUM
|
|
19
|
+
* `avg` - AVG
|
|
20
|
+
* `count` - COUNT
|
|
15
21
|
"""
|
|
16
22
|
|
|
17
23
|
x_property_duid: str
|
|
18
24
|
stack_property_duid: Union[None, str]
|
|
25
|
+
aggregation_property_duid: Union[None, str]
|
|
26
|
+
aggregation: ChartAggregation
|
|
19
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
20
28
|
|
|
21
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -24,12 +32,19 @@ class BarChartAdtl:
|
|
|
24
32
|
stack_property_duid: Union[None, str]
|
|
25
33
|
stack_property_duid = self.stack_property_duid
|
|
26
34
|
|
|
35
|
+
aggregation_property_duid: Union[None, str]
|
|
36
|
+
aggregation_property_duid = self.aggregation_property_duid
|
|
37
|
+
|
|
38
|
+
aggregation = self.aggregation.value
|
|
39
|
+
|
|
27
40
|
field_dict: Dict[str, Any] = {}
|
|
28
41
|
field_dict.update(self.additional_properties)
|
|
29
42
|
field_dict.update(
|
|
30
43
|
{
|
|
31
44
|
"xPropertyDuid": x_property_duid,
|
|
32
45
|
"stackPropertyDuid": stack_property_duid,
|
|
46
|
+
"aggregationPropertyDuid": aggregation_property_duid,
|
|
47
|
+
"aggregation": aggregation,
|
|
33
48
|
}
|
|
34
49
|
)
|
|
35
50
|
|
|
@@ -47,9 +62,20 @@ class BarChartAdtl:
|
|
|
47
62
|
|
|
48
63
|
stack_property_duid = _parse_stack_property_duid(d.pop("stackPropertyDuid"))
|
|
49
64
|
|
|
65
|
+
def _parse_aggregation_property_duid(data: object) -> Union[None, str]:
|
|
66
|
+
if data is None:
|
|
67
|
+
return data
|
|
68
|
+
return cast(Union[None, str], data)
|
|
69
|
+
|
|
70
|
+
aggregation_property_duid = _parse_aggregation_property_duid(d.pop("aggregationPropertyDuid"))
|
|
71
|
+
|
|
72
|
+
aggregation = ChartAggregation(d.pop("aggregation"))
|
|
73
|
+
|
|
50
74
|
bar_chart_adtl = cls(
|
|
51
75
|
x_property_duid=x_property_duid,
|
|
52
76
|
stack_property_duid=stack_property_duid,
|
|
77
|
+
aggregation_property_duid=aggregation_property_duid,
|
|
78
|
+
aggregation=aggregation,
|
|
53
79
|
)
|
|
54
80
|
|
|
55
81
|
bar_chart_adtl.additional_properties = d
|
|
@@ -39,6 +39,7 @@ class Dartboard:
|
|
|
39
39
|
index (Union[None, int]):
|
|
40
40
|
started_at (Union[None, datetime.datetime]):
|
|
41
41
|
finished_at (Union[None, datetime.datetime]):
|
|
42
|
+
planned_finish_at (Union[None, datetime.datetime]):
|
|
42
43
|
default_property_map (Any):
|
|
43
44
|
always_shown_property_duids (List[str]):
|
|
44
45
|
always_hidden_property_duids (List[str]):
|
|
@@ -60,6 +61,7 @@ class Dartboard:
|
|
|
60
61
|
index: Union[None, int]
|
|
61
62
|
started_at: Union[None, datetime.datetime]
|
|
62
63
|
finished_at: Union[None, datetime.datetime]
|
|
64
|
+
planned_finish_at: Union[None, datetime.datetime]
|
|
63
65
|
default_property_map: Any
|
|
64
66
|
always_shown_property_duids: List[str]
|
|
65
67
|
always_hidden_property_duids: List[str]
|
|
@@ -107,6 +109,12 @@ class Dartboard:
|
|
|
107
109
|
else:
|
|
108
110
|
finished_at = self.finished_at
|
|
109
111
|
|
|
112
|
+
planned_finish_at: Union[None, str]
|
|
113
|
+
if isinstance(self.planned_finish_at, datetime.datetime):
|
|
114
|
+
planned_finish_at = self.planned_finish_at.isoformat()
|
|
115
|
+
else:
|
|
116
|
+
planned_finish_at = self.planned_finish_at
|
|
117
|
+
|
|
110
118
|
default_property_map = self.default_property_map
|
|
111
119
|
|
|
112
120
|
always_shown_property_duids = self.always_shown_property_duids
|
|
@@ -140,6 +148,7 @@ class Dartboard:
|
|
|
140
148
|
"index": index,
|
|
141
149
|
"startedAt": started_at,
|
|
142
150
|
"finishedAt": finished_at,
|
|
151
|
+
"plannedFinishAt": planned_finish_at,
|
|
143
152
|
"defaultPropertyMap": default_property_map,
|
|
144
153
|
"alwaysShownPropertyDuids": always_shown_property_duids,
|
|
145
154
|
"alwaysHiddenPropertyDuids": always_hidden_property_duids,
|
|
@@ -219,6 +228,21 @@ class Dartboard:
|
|
|
219
228
|
|
|
220
229
|
finished_at = _parse_finished_at(d.pop("finishedAt"))
|
|
221
230
|
|
|
231
|
+
def _parse_planned_finish_at(data: object) -> Union[None, datetime.datetime]:
|
|
232
|
+
if data is None:
|
|
233
|
+
return data
|
|
234
|
+
try:
|
|
235
|
+
if not isinstance(data, str):
|
|
236
|
+
raise TypeError()
|
|
237
|
+
planned_finish_at_type_0 = isoparse(data)
|
|
238
|
+
|
|
239
|
+
return planned_finish_at_type_0
|
|
240
|
+
except: # noqa: E722
|
|
241
|
+
pass
|
|
242
|
+
return cast(Union[None, datetime.datetime], data)
|
|
243
|
+
|
|
244
|
+
planned_finish_at = _parse_planned_finish_at(d.pop("plannedFinishAt"))
|
|
245
|
+
|
|
222
246
|
default_property_map = d.pop("defaultPropertyMap")
|
|
223
247
|
|
|
224
248
|
always_shown_property_duids = cast(List[str], d.pop("alwaysShownPropertyDuids"))
|
|
@@ -252,6 +276,7 @@ class Dartboard:
|
|
|
252
276
|
index=index,
|
|
253
277
|
started_at=started_at,
|
|
254
278
|
finished_at=finished_at,
|
|
279
|
+
planned_finish_at=planned_finish_at,
|
|
255
280
|
default_property_map=default_property_map,
|
|
256
281
|
always_shown_property_duids=always_shown_property_duids,
|
|
257
282
|
always_hidden_property_duids=always_hidden_property_duids,
|
|
@@ -34,6 +34,7 @@ class DartboardCreate:
|
|
|
34
34
|
index (Union[None, Unset, int]):
|
|
35
35
|
started_at (Union[None, Unset, datetime.datetime]):
|
|
36
36
|
finished_at (Union[None, Unset, datetime.datetime]):
|
|
37
|
+
planned_finish_at (Union[None, Unset, datetime.datetime]):
|
|
37
38
|
default_property_map (Union[Unset, Any]):
|
|
38
39
|
always_shown_property_duids (Union[Unset, List[str]]):
|
|
39
40
|
always_hidden_property_duids (Union[Unset, List[str]]):
|
|
@@ -53,6 +54,7 @@ class DartboardCreate:
|
|
|
53
54
|
index: Union[None, Unset, int] = UNSET
|
|
54
55
|
started_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
55
56
|
finished_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
57
|
+
planned_finish_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
56
58
|
default_property_map: Union[Unset, Any] = UNSET
|
|
57
59
|
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
58
60
|
always_hidden_property_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -105,6 +107,14 @@ class DartboardCreate:
|
|
|
105
107
|
else:
|
|
106
108
|
finished_at = self.finished_at
|
|
107
109
|
|
|
110
|
+
planned_finish_at: Union[None, Unset, str]
|
|
111
|
+
if isinstance(self.planned_finish_at, Unset):
|
|
112
|
+
planned_finish_at = UNSET
|
|
113
|
+
elif isinstance(self.planned_finish_at, datetime.datetime):
|
|
114
|
+
planned_finish_at = self.planned_finish_at.isoformat()
|
|
115
|
+
else:
|
|
116
|
+
planned_finish_at = self.planned_finish_at
|
|
117
|
+
|
|
108
118
|
default_property_map = self.default_property_map
|
|
109
119
|
|
|
110
120
|
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -148,6 +158,8 @@ class DartboardCreate:
|
|
|
148
158
|
field_dict["startedAt"] = started_at
|
|
149
159
|
if finished_at is not UNSET:
|
|
150
160
|
field_dict["finishedAt"] = finished_at
|
|
161
|
+
if planned_finish_at is not UNSET:
|
|
162
|
+
field_dict["plannedFinishAt"] = planned_finish_at
|
|
151
163
|
if default_property_map is not UNSET:
|
|
152
164
|
field_dict["defaultPropertyMap"] = default_property_map
|
|
153
165
|
if always_shown_property_duids is not UNSET:
|
|
@@ -235,6 +247,23 @@ class DartboardCreate:
|
|
|
235
247
|
|
|
236
248
|
finished_at = _parse_finished_at(d.pop("finishedAt", UNSET))
|
|
237
249
|
|
|
250
|
+
def _parse_planned_finish_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
251
|
+
if data is None:
|
|
252
|
+
return data
|
|
253
|
+
if isinstance(data, Unset):
|
|
254
|
+
return data
|
|
255
|
+
try:
|
|
256
|
+
if not isinstance(data, str):
|
|
257
|
+
raise TypeError()
|
|
258
|
+
planned_finish_at_type_0 = isoparse(data)
|
|
259
|
+
|
|
260
|
+
return planned_finish_at_type_0
|
|
261
|
+
except: # noqa: E722
|
|
262
|
+
pass
|
|
263
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
264
|
+
|
|
265
|
+
planned_finish_at = _parse_planned_finish_at(d.pop("plannedFinishAt", UNSET))
|
|
266
|
+
|
|
238
267
|
default_property_map = d.pop("defaultPropertyMap", UNSET)
|
|
239
268
|
|
|
240
269
|
always_shown_property_duids = cast(List[str], d.pop("alwaysShownPropertyDuids", UNSET))
|
|
@@ -258,6 +287,7 @@ class DartboardCreate:
|
|
|
258
287
|
index=index,
|
|
259
288
|
started_at=started_at,
|
|
260
289
|
finished_at=finished_at,
|
|
290
|
+
planned_finish_at=planned_finish_at,
|
|
261
291
|
default_property_map=default_property_map,
|
|
262
292
|
always_shown_property_duids=always_shown_property_duids,
|
|
263
293
|
always_hidden_property_duids=always_hidden_property_duids,
|
|
@@ -34,6 +34,7 @@ class DartboardUpdate:
|
|
|
34
34
|
index (Union[None, Unset, int]):
|
|
35
35
|
started_at (Union[None, Unset, datetime.datetime]):
|
|
36
36
|
finished_at (Union[None, Unset, datetime.datetime]):
|
|
37
|
+
planned_finish_at (Union[None, Unset, datetime.datetime]):
|
|
37
38
|
default_property_map (Union[Unset, Any]):
|
|
38
39
|
always_shown_property_duids (Union[Unset, List[str]]):
|
|
39
40
|
always_hidden_property_duids (Union[Unset, List[str]]):
|
|
@@ -53,6 +54,7 @@ class DartboardUpdate:
|
|
|
53
54
|
index: Union[None, Unset, int] = UNSET
|
|
54
55
|
started_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
55
56
|
finished_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
57
|
+
planned_finish_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
56
58
|
default_property_map: Union[Unset, Any] = UNSET
|
|
57
59
|
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
58
60
|
always_hidden_property_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -105,6 +107,14 @@ class DartboardUpdate:
|
|
|
105
107
|
else:
|
|
106
108
|
finished_at = self.finished_at
|
|
107
109
|
|
|
110
|
+
planned_finish_at: Union[None, Unset, str]
|
|
111
|
+
if isinstance(self.planned_finish_at, Unset):
|
|
112
|
+
planned_finish_at = UNSET
|
|
113
|
+
elif isinstance(self.planned_finish_at, datetime.datetime):
|
|
114
|
+
planned_finish_at = self.planned_finish_at.isoformat()
|
|
115
|
+
else:
|
|
116
|
+
planned_finish_at = self.planned_finish_at
|
|
117
|
+
|
|
108
118
|
default_property_map = self.default_property_map
|
|
109
119
|
|
|
110
120
|
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -150,6 +160,8 @@ class DartboardUpdate:
|
|
|
150
160
|
field_dict["startedAt"] = started_at
|
|
151
161
|
if finished_at is not UNSET:
|
|
152
162
|
field_dict["finishedAt"] = finished_at
|
|
163
|
+
if planned_finish_at is not UNSET:
|
|
164
|
+
field_dict["plannedFinishAt"] = planned_finish_at
|
|
153
165
|
if default_property_map is not UNSET:
|
|
154
166
|
field_dict["defaultPropertyMap"] = default_property_map
|
|
155
167
|
if always_shown_property_duids is not UNSET:
|
|
@@ -237,6 +249,23 @@ class DartboardUpdate:
|
|
|
237
249
|
|
|
238
250
|
finished_at = _parse_finished_at(d.pop("finishedAt", UNSET))
|
|
239
251
|
|
|
252
|
+
def _parse_planned_finish_at(data: object) -> Union[None, Unset, datetime.datetime]:
|
|
253
|
+
if data is None:
|
|
254
|
+
return data
|
|
255
|
+
if isinstance(data, Unset):
|
|
256
|
+
return data
|
|
257
|
+
try:
|
|
258
|
+
if not isinstance(data, str):
|
|
259
|
+
raise TypeError()
|
|
260
|
+
planned_finish_at_type_0 = isoparse(data)
|
|
261
|
+
|
|
262
|
+
return planned_finish_at_type_0
|
|
263
|
+
except: # noqa: E722
|
|
264
|
+
pass
|
|
265
|
+
return cast(Union[None, Unset, datetime.datetime], data)
|
|
266
|
+
|
|
267
|
+
planned_finish_at = _parse_planned_finish_at(d.pop("plannedFinishAt", UNSET))
|
|
268
|
+
|
|
240
269
|
default_property_map = d.pop("defaultPropertyMap", UNSET)
|
|
241
270
|
|
|
242
271
|
always_shown_property_duids = cast(List[str], d.pop("alwaysShownPropertyDuids", UNSET))
|
|
@@ -260,6 +289,7 @@ class DartboardUpdate:
|
|
|
260
289
|
index=index,
|
|
261
290
|
started_at=started_at,
|
|
262
291
|
finished_at=finished_at,
|
|
292
|
+
planned_finish_at=planned_finish_at,
|
|
263
293
|
default_property_map=default_property_map,
|
|
264
294
|
always_shown_property_duids=always_shown_property_duids,
|
|
265
295
|
always_hidden_property_duids=always_hidden_property_duids,
|
|
@@ -2,10 +2,14 @@ from enum import Enum
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
class DocsListOItem(str, Enum):
|
|
5
|
+
CREATED = "created"
|
|
6
|
+
ORDER = "order"
|
|
5
7
|
RECENT = "recent"
|
|
6
8
|
TITLE = "title"
|
|
7
|
-
VALUE_0 = "-
|
|
8
|
-
VALUE_1 = "-
|
|
9
|
+
VALUE_0 = "-created"
|
|
10
|
+
VALUE_1 = "-order"
|
|
11
|
+
VALUE_2 = "-recent"
|
|
12
|
+
VALUE_3 = "-title"
|
|
9
13
|
|
|
10
14
|
def __str__(self) -> str:
|
|
11
15
|
return str(self.value)
|
dart/generated/models/space.py
CHANGED
|
@@ -18,7 +18,6 @@ class Space:
|
|
|
18
18
|
"""
|
|
19
19
|
Attributes:
|
|
20
20
|
duid (str):
|
|
21
|
-
drafter_duid (Union[None, str]):
|
|
22
21
|
kind (SpaceKind): * `Other` - OTHER
|
|
23
22
|
* `Workspace` - WORKSPACE
|
|
24
23
|
* `Personal` - PERSONAL
|
|
@@ -47,7 +46,6 @@ class Space:
|
|
|
47
46
|
"""
|
|
48
47
|
|
|
49
48
|
duid: str
|
|
50
|
-
drafter_duid: Union[None, str]
|
|
51
49
|
kind: SpaceKind
|
|
52
50
|
accessible_by_team: bool
|
|
53
51
|
accessible_by_user_duids: List[str]
|
|
@@ -73,9 +71,6 @@ class Space:
|
|
|
73
71
|
def to_dict(self) -> Dict[str, Any]:
|
|
74
72
|
duid = self.duid
|
|
75
73
|
|
|
76
|
-
drafter_duid: Union[None, str]
|
|
77
|
-
drafter_duid = self.drafter_duid
|
|
78
|
-
|
|
79
74
|
kind = self.kind.value
|
|
80
75
|
|
|
81
76
|
accessible_by_team = self.accessible_by_team
|
|
@@ -140,7 +135,6 @@ class Space:
|
|
|
140
135
|
field_dict.update(
|
|
141
136
|
{
|
|
142
137
|
"duid": duid,
|
|
143
|
-
"drafterDuid": drafter_duid,
|
|
144
138
|
"kind": kind,
|
|
145
139
|
"accessibleByTeam": accessible_by_team,
|
|
146
140
|
"accessibleByUserDuids": accessible_by_user_duids,
|
|
@@ -172,13 +166,6 @@ class Space:
|
|
|
172
166
|
d = src_dict.copy()
|
|
173
167
|
duid = d.pop("duid")
|
|
174
168
|
|
|
175
|
-
def _parse_drafter_duid(data: object) -> Union[None, str]:
|
|
176
|
-
if data is None:
|
|
177
|
-
return data
|
|
178
|
-
return cast(Union[None, str], data)
|
|
179
|
-
|
|
180
|
-
drafter_duid = _parse_drafter_duid(d.pop("drafterDuid"))
|
|
181
|
-
|
|
182
169
|
kind = SpaceKind(d.pop("kind"))
|
|
183
170
|
|
|
184
171
|
accessible_by_team = d.pop("accessibleByTeam")
|
|
@@ -282,7 +269,6 @@ class Space:
|
|
|
282
269
|
|
|
283
270
|
space = cls(
|
|
284
271
|
duid=duid,
|
|
285
|
-
drafter_duid=drafter_duid,
|
|
286
272
|
kind=kind,
|
|
287
273
|
accessible_by_team=accessible_by_team,
|
|
288
274
|
accessible_by_user_duids=accessible_by_user_duids,
|
|
@@ -18,7 +18,6 @@ class SpaceCreate:
|
|
|
18
18
|
Attributes:
|
|
19
19
|
duid (str):
|
|
20
20
|
order (str):
|
|
21
|
-
drafter_duid (Union[None, Unset, str]):
|
|
22
21
|
accessible_by_team (Union[Unset, bool]):
|
|
23
22
|
accessible_by_user_duids (Union[Unset, List[str]]):
|
|
24
23
|
title (Union[Unset, str]):
|
|
@@ -43,7 +42,6 @@ class SpaceCreate:
|
|
|
43
42
|
|
|
44
43
|
duid: str
|
|
45
44
|
order: str
|
|
46
|
-
drafter_duid: Union[None, Unset, str] = UNSET
|
|
47
45
|
accessible_by_team: Union[Unset, bool] = UNSET
|
|
48
46
|
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
49
47
|
title: Union[Unset, str] = UNSET
|
|
@@ -68,12 +66,6 @@ class SpaceCreate:
|
|
|
68
66
|
|
|
69
67
|
order = self.order
|
|
70
68
|
|
|
71
|
-
drafter_duid: Union[None, Unset, str]
|
|
72
|
-
if isinstance(self.drafter_duid, Unset):
|
|
73
|
-
drafter_duid = UNSET
|
|
74
|
-
else:
|
|
75
|
-
drafter_duid = self.drafter_duid
|
|
76
|
-
|
|
77
69
|
accessible_by_team = self.accessible_by_team
|
|
78
70
|
|
|
79
71
|
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -152,8 +144,6 @@ class SpaceCreate:
|
|
|
152
144
|
"order": order,
|
|
153
145
|
}
|
|
154
146
|
)
|
|
155
|
-
if drafter_duid is not UNSET:
|
|
156
|
-
field_dict["drafterDuid"] = drafter_duid
|
|
157
147
|
if accessible_by_team is not UNSET:
|
|
158
148
|
field_dict["accessibleByTeam"] = accessible_by_team
|
|
159
149
|
if accessible_by_user_duids is not UNSET:
|
|
@@ -198,15 +188,6 @@ class SpaceCreate:
|
|
|
198
188
|
|
|
199
189
|
order = d.pop("order")
|
|
200
190
|
|
|
201
|
-
def _parse_drafter_duid(data: object) -> Union[None, Unset, str]:
|
|
202
|
-
if data is None:
|
|
203
|
-
return data
|
|
204
|
-
if isinstance(data, Unset):
|
|
205
|
-
return data
|
|
206
|
-
return cast(Union[None, Unset, str], data)
|
|
207
|
-
|
|
208
|
-
drafter_duid = _parse_drafter_duid(d.pop("drafterDuid", UNSET))
|
|
209
|
-
|
|
210
191
|
accessible_by_team = d.pop("accessibleByTeam", UNSET)
|
|
211
192
|
|
|
212
193
|
accessible_by_user_duids = cast(List[str], d.pop("accessibleByUserDuids", UNSET))
|
|
@@ -320,7 +301,6 @@ class SpaceCreate:
|
|
|
320
301
|
space_create = cls(
|
|
321
302
|
duid=duid,
|
|
322
303
|
order=order,
|
|
323
|
-
drafter_duid=drafter_duid,
|
|
324
304
|
accessible_by_team=accessible_by_team,
|
|
325
305
|
accessible_by_user_duids=accessible_by_user_duids,
|
|
326
306
|
title=title,
|
|
@@ -17,7 +17,6 @@ class SpaceUpdate:
|
|
|
17
17
|
"""
|
|
18
18
|
Attributes:
|
|
19
19
|
duid (str):
|
|
20
|
-
drafter_duid (Union[None, Unset, str]):
|
|
21
20
|
accessible_by_team (Union[Unset, bool]):
|
|
22
21
|
accessible_by_user_duids (Union[Unset, List[str]]):
|
|
23
22
|
order (Union[Unset, str]):
|
|
@@ -42,7 +41,6 @@ class SpaceUpdate:
|
|
|
42
41
|
"""
|
|
43
42
|
|
|
44
43
|
duid: str
|
|
45
|
-
drafter_duid: Union[None, Unset, str] = UNSET
|
|
46
44
|
accessible_by_team: Union[Unset, bool] = UNSET
|
|
47
45
|
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
48
46
|
order: Union[Unset, str] = UNSET
|
|
@@ -66,12 +64,6 @@ class SpaceUpdate:
|
|
|
66
64
|
def to_dict(self) -> Dict[str, Any]:
|
|
67
65
|
duid = self.duid
|
|
68
66
|
|
|
69
|
-
drafter_duid: Union[None, Unset, str]
|
|
70
|
-
if isinstance(self.drafter_duid, Unset):
|
|
71
|
-
drafter_duid = UNSET
|
|
72
|
-
else:
|
|
73
|
-
drafter_duid = self.drafter_duid
|
|
74
|
-
|
|
75
67
|
accessible_by_team = self.accessible_by_team
|
|
76
68
|
|
|
77
69
|
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
@@ -151,8 +143,6 @@ class SpaceUpdate:
|
|
|
151
143
|
"duid": duid,
|
|
152
144
|
}
|
|
153
145
|
)
|
|
154
|
-
if drafter_duid is not UNSET:
|
|
155
|
-
field_dict["drafterDuid"] = drafter_duid
|
|
156
146
|
if accessible_by_team is not UNSET:
|
|
157
147
|
field_dict["accessibleByTeam"] = accessible_by_team
|
|
158
148
|
if accessible_by_user_duids is not UNSET:
|
|
@@ -197,15 +187,6 @@ class SpaceUpdate:
|
|
|
197
187
|
d = src_dict.copy()
|
|
198
188
|
duid = d.pop("duid")
|
|
199
189
|
|
|
200
|
-
def _parse_drafter_duid(data: object) -> Union[None, Unset, str]:
|
|
201
|
-
if data is None:
|
|
202
|
-
return data
|
|
203
|
-
if isinstance(data, Unset):
|
|
204
|
-
return data
|
|
205
|
-
return cast(Union[None, Unset, str], data)
|
|
206
|
-
|
|
207
|
-
drafter_duid = _parse_drafter_duid(d.pop("drafterDuid", UNSET))
|
|
208
|
-
|
|
209
190
|
accessible_by_team = d.pop("accessibleByTeam", UNSET)
|
|
210
191
|
|
|
211
192
|
accessible_by_user_duids = cast(List[str], d.pop("accessibleByUserDuids", UNSET))
|
|
@@ -320,7 +301,6 @@ class SpaceUpdate:
|
|
|
320
301
|
|
|
321
302
|
space_update = cls(
|
|
322
303
|
duid=duid,
|
|
323
|
-
drafter_duid=drafter_duid,
|
|
324
304
|
accessible_by_team=accessible_by_team,
|
|
325
305
|
accessible_by_user_duids=accessible_by_user_duids,
|
|
326
306
|
order=order,
|
|
@@ -14,16 +14,16 @@ class TableChartAdtl:
|
|
|
14
14
|
Attributes:
|
|
15
15
|
column_property_duid (str):
|
|
16
16
|
row_property_duid (Union[None, str]):
|
|
17
|
+
aggregation_property_duid (Union[None, str]):
|
|
17
18
|
aggregation (ChartAggregation): * `sum` - SUM
|
|
18
19
|
* `avg` - AVG
|
|
19
20
|
* `count` - COUNT
|
|
20
|
-
aggregation_property_duid (Union[None, str]):
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
column_property_duid: str
|
|
24
24
|
row_property_duid: Union[None, str]
|
|
25
|
-
aggregation: ChartAggregation
|
|
26
25
|
aggregation_property_duid: Union[None, str]
|
|
26
|
+
aggregation: ChartAggregation
|
|
27
27
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
28
28
|
|
|
29
29
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -32,19 +32,19 @@ class TableChartAdtl:
|
|
|
32
32
|
row_property_duid: Union[None, str]
|
|
33
33
|
row_property_duid = self.row_property_duid
|
|
34
34
|
|
|
35
|
-
aggregation = self.aggregation.value
|
|
36
|
-
|
|
37
35
|
aggregation_property_duid: Union[None, str]
|
|
38
36
|
aggregation_property_duid = self.aggregation_property_duid
|
|
39
37
|
|
|
38
|
+
aggregation = self.aggregation.value
|
|
39
|
+
|
|
40
40
|
field_dict: Dict[str, Any] = {}
|
|
41
41
|
field_dict.update(self.additional_properties)
|
|
42
42
|
field_dict.update(
|
|
43
43
|
{
|
|
44
44
|
"columnPropertyDuid": column_property_duid,
|
|
45
45
|
"rowPropertyDuid": row_property_duid,
|
|
46
|
-
"aggregation": aggregation,
|
|
47
46
|
"aggregationPropertyDuid": aggregation_property_duid,
|
|
47
|
+
"aggregation": aggregation,
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
|
|
@@ -62,8 +62,6 @@ class TableChartAdtl:
|
|
|
62
62
|
|
|
63
63
|
row_property_duid = _parse_row_property_duid(d.pop("rowPropertyDuid"))
|
|
64
64
|
|
|
65
|
-
aggregation = ChartAggregation(d.pop("aggregation"))
|
|
66
|
-
|
|
67
65
|
def _parse_aggregation_property_duid(data: object) -> Union[None, str]:
|
|
68
66
|
if data is None:
|
|
69
67
|
return data
|
|
@@ -71,11 +69,13 @@ class TableChartAdtl:
|
|
|
71
69
|
|
|
72
70
|
aggregation_property_duid = _parse_aggregation_property_duid(d.pop("aggregationPropertyDuid"))
|
|
73
71
|
|
|
72
|
+
aggregation = ChartAggregation(d.pop("aggregation"))
|
|
73
|
+
|
|
74
74
|
table_chart_adtl = cls(
|
|
75
75
|
column_property_duid=column_property_duid,
|
|
76
76
|
row_property_duid=row_property_duid,
|
|
77
|
-
aggregation=aggregation,
|
|
78
77
|
aggregation_property_duid=aggregation_property_duid,
|
|
78
|
+
aggregation=aggregation,
|
|
79
79
|
)
|
|
80
80
|
|
|
81
81
|
table_chart_adtl.additional_properties = d
|
|
@@ -16,7 +16,7 @@ T = TypeVar("T", bound="TaskCreate")
|
|
|
16
16
|
class TaskCreate:
|
|
17
17
|
"""
|
|
18
18
|
Attributes:
|
|
19
|
-
duid (str):
|
|
19
|
+
duid (Union[Unset, str]):
|
|
20
20
|
source_type (Union[Unset, TaskSourceType]): * `Unknown` - UNKNOWN
|
|
21
21
|
* `Import` - IMPORT
|
|
22
22
|
* `Onboarding` - ONBOARDING
|
|
@@ -73,7 +73,7 @@ class TaskCreate:
|
|
|
73
73
|
properties (Union[Unset, Any]):
|
|
74
74
|
"""
|
|
75
75
|
|
|
76
|
-
duid: str
|
|
76
|
+
duid: Union[Unset, str] = UNSET
|
|
77
77
|
source_type: Union[Unset, TaskSourceType] = TaskSourceType.UNKNOWN
|
|
78
78
|
source_template_view_duid: Union[None, Unset, str] = UNSET
|
|
79
79
|
source_template_task_duid: Union[None, Unset, str] = UNSET
|
|
@@ -250,11 +250,9 @@ class TaskCreate:
|
|
|
250
250
|
|
|
251
251
|
field_dict: Dict[str, Any] = {}
|
|
252
252
|
field_dict.update(self.additional_properties)
|
|
253
|
-
field_dict.update(
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
)
|
|
253
|
+
field_dict.update({})
|
|
254
|
+
if duid is not UNSET:
|
|
255
|
+
field_dict["duid"] = duid
|
|
258
256
|
if source_type is not UNSET:
|
|
259
257
|
field_dict["sourceType"] = source_type
|
|
260
258
|
if source_template_view_duid is not UNSET:
|
|
@@ -323,7 +321,7 @@ class TaskCreate:
|
|
|
323
321
|
@classmethod
|
|
324
322
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
325
323
|
d = src_dict.copy()
|
|
326
|
-
duid = d.pop("duid")
|
|
324
|
+
duid = d.pop("duid", UNSET)
|
|
327
325
|
|
|
328
326
|
_source_type = d.pop("sourceType", UNSET)
|
|
329
327
|
source_type: Union[Unset, TaskSourceType]
|