dart-tools 0.6.8__py3-none-any.whl → 0.6.10__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/__init__.py +2 -0
- dart/dart.py +12 -4
- dart/generated/api/attachments/attachments_list.py +5 -5
- dart/generated/api/comments/comments_list.py +5 -5
- dart/generated/api/dartboards/dartboards_list.py +5 -5
- dart/generated/api/dashboards/dashboards_list.py +5 -5
- dart/generated/api/docs/docs_list.py +5 -5
- dart/generated/api/folders/folders_list.py +5 -5
- dart/generated/api/form_fields/form_fields_list.py +5 -5
- dart/generated/api/forms/forms_list.py +5 -5
- dart/generated/api/layouts/layouts_list.py +5 -5
- dart/generated/api/links/links_list.py +5 -5
- dart/generated/api/options/options_list.py +5 -5
- dart/generated/api/properties/properties_list.py +5 -5
- dart/generated/api/reactions/reactions_list.py +5 -5
- dart/generated/api/relationship_kinds/relationship_kinds_list.py +5 -5
- dart/generated/api/relationships/relationships_list.py +5 -5
- dart/generated/api/spaces/spaces_list.py +5 -5
- dart/generated/api/statuses/statuses_list.py +5 -5
- dart/generated/api/task_doc_relationships/task_doc_relationships_list.py +5 -5
- dart/generated/api/task_kinds/task_kinds_list.py +5 -5
- dart/generated/api/tasks/tasks_list.py +5 -5
- dart/generated/api/tenants/tenants_list.py +5 -5
- dart/generated/api/transactions/transactions_create.py +6 -6
- dart/generated/api/user_dartboard_layouts/user_dartboard_layouts_list.py +5 -5
- dart/generated/api/user_data/user_data_entity_retrieve.py +4 -4
- dart/generated/api/users/users_list.py +5 -5
- dart/generated/api/views/views_list.py +5 -5
- dart/generated/api/webhooks/webhooks_list.py +5 -5
- dart/generated/client.py +13 -13
- dart/generated/models/__init__.py +2 -2
- dart/generated/models/attachment.py +6 -6
- dart/generated/models/attachment_create.py +6 -6
- dart/generated/models/attachment_update.py +6 -6
- dart/generated/models/bar_chart_adtl.py +6 -6
- dart/generated/models/brainstorm.py +9 -9
- dart/generated/models/brainstorm_create.py +10 -10
- dart/generated/models/brainstorm_update.py +10 -10
- dart/generated/models/burn_up_chart_adtl.py +6 -6
- dart/generated/models/chart.py +15 -14
- dart/generated/models/{number_chart_aggregation.py → chart_aggregation.py} +1 -1
- dart/generated/models/chart_type.py +2 -1
- dart/generated/models/comment.py +8 -8
- dart/generated/models/comment_create.py +6 -6
- dart/generated/models/comment_reaction.py +6 -6
- dart/generated/models/comment_reaction_create.py +6 -6
- dart/generated/models/comment_reaction_update.py +6 -6
- dart/generated/models/comment_update.py +6 -6
- dart/generated/models/dartboard.py +33 -17
- dart/generated/models/dartboard_create.py +37 -19
- dart/generated/models/dartboard_update.py +37 -19
- dart/generated/models/dashboard.py +14 -14
- dart/generated/models/dashboard_create.py +14 -14
- dart/generated/models/dashboard_update.py +14 -14
- dart/generated/models/discord_integration.py +6 -6
- dart/generated/models/doc.py +12 -12
- dart/generated/models/doc_create.py +14 -14
- dart/generated/models/doc_update.py +14 -14
- dart/generated/models/event.py +12 -12
- dart/generated/models/event_actor.py +1 -0
- dart/generated/models/event_create.py +6 -6
- dart/generated/models/event_subscription.py +6 -6
- dart/generated/models/event_subscription_update.py +6 -6
- dart/generated/models/filter_assignee.py +9 -9
- dart/generated/models/filter_group.py +7 -7
- dart/generated/models/filter_search.py +9 -9
- dart/generated/models/filter_set.py +9 -9
- dart/generated/models/folder.py +6 -6
- dart/generated/models/folder_create.py +6 -6
- dart/generated/models/folder_update.py +6 -6
- dart/generated/models/form.py +6 -6
- dart/generated/models/form_create.py +6 -6
- dart/generated/models/form_field.py +6 -6
- dart/generated/models/form_field_create.py +6 -6
- dart/generated/models/form_field_update.py +6 -6
- dart/generated/models/form_update.py +6 -6
- dart/generated/models/github_integration.py +6 -6
- dart/generated/models/google_data.py +6 -6
- dart/generated/models/layout.py +8 -8
- dart/generated/models/layout_config.py +6 -6
- dart/generated/models/layout_create.py +6 -6
- dart/generated/models/layout_kind_config_map.py +6 -6
- dart/generated/models/layout_update.py +6 -6
- dart/generated/models/line_chart_adtl.py +6 -6
- dart/generated/models/models_response.py +94 -94
- dart/generated/models/notification.py +6 -6
- dart/generated/models/notification_update.py +7 -7
- dart/generated/models/notion_integration.py +6 -6
- dart/generated/models/number_chart_adtl.py +10 -18
- dart/generated/models/operation.py +7 -7
- dart/generated/models/option.py +6 -6
- dart/generated/models/option_create.py +6 -6
- dart/generated/models/option_update.py +6 -6
- dart/generated/models/paginated_attachment_list.py +8 -8
- dart/generated/models/paginated_comment_list.py +8 -8
- dart/generated/models/paginated_comment_reaction_list.py +8 -8
- dart/generated/models/paginated_dartboard_list.py +8 -8
- dart/generated/models/paginated_dashboard_list.py +8 -8
- dart/generated/models/paginated_doc_list.py +8 -8
- dart/generated/models/paginated_folder_list.py +8 -8
- dart/generated/models/paginated_form_field_list.py +8 -8
- dart/generated/models/paginated_form_list.py +8 -8
- dart/generated/models/paginated_layout_list.py +8 -8
- dart/generated/models/paginated_option_list.py +8 -8
- dart/generated/models/paginated_property_list.py +8 -8
- dart/generated/models/paginated_relationship_kind_list.py +8 -8
- dart/generated/models/paginated_relationship_list.py +8 -8
- dart/generated/models/paginated_space_list.py +8 -8
- dart/generated/models/paginated_status_list.py +8 -8
- dart/generated/models/paginated_task_doc_relationship_list.py +8 -8
- dart/generated/models/paginated_task_kind_list.py +8 -8
- dart/generated/models/paginated_task_link_list.py +8 -8
- dart/generated/models/paginated_task_list.py +8 -8
- dart/generated/models/paginated_tenant_list.py +8 -8
- dart/generated/models/paginated_user_dartboard_layout_list.py +8 -8
- dart/generated/models/paginated_user_list.py +8 -8
- dart/generated/models/paginated_view_list.py +8 -8
- dart/generated/models/paginated_webhook_list.py +8 -8
- dart/generated/models/pie_chart_adtl.py +6 -6
- dart/generated/models/property_.py +6 -6
- dart/generated/models/property_create.py +6 -6
- dart/generated/models/property_update.py +6 -6
- dart/generated/models/relationship.py +6 -6
- dart/generated/models/relationship_create.py +6 -6
- dart/generated/models/relationship_kind.py +6 -6
- dart/generated/models/relationship_kind_create.py +6 -6
- dart/generated/models/relationship_kind_update.py +6 -6
- dart/generated/models/request_body.py +8 -8
- dart/generated/models/response_body.py +8 -8
- dart/generated/models/saml_config.py +6 -6
- dart/generated/models/slack_integration.py +6 -6
- dart/generated/models/sort.py +6 -6
- dart/generated/models/space.py +48 -9
- dart/generated/models/space_create.py +60 -10
- dart/generated/models/space_update.py +60 -10
- dart/generated/models/status.py +6 -6
- dart/generated/models/status_create.py +6 -6
- dart/generated/models/status_update.py +6 -6
- dart/generated/models/table_chart_adtl.py +32 -6
- dart/generated/models/task.py +23 -23
- dart/generated/models/task_create.py +22 -22
- dart/generated/models/task_doc_relationship.py +6 -6
- dart/generated/models/task_doc_relationship_create.py +6 -6
- dart/generated/models/task_kind.py +9 -9
- dart/generated/models/task_kind_create.py +10 -10
- dart/generated/models/task_kind_update.py +10 -10
- dart/generated/models/task_link.py +6 -6
- dart/generated/models/task_link_create.py +6 -6
- dart/generated/models/task_link_update.py +6 -6
- dart/generated/models/task_notion_document.py +9 -9
- dart/generated/models/task_notion_document_block_children_map_type_0.py +6 -6
- dart/generated/models/task_notion_document_block_map_type_0.py +6 -6
- dart/generated/models/task_notion_document_page_map_type_0.py +6 -6
- dart/generated/models/task_properties.py +6 -6
- dart/generated/models/task_update.py +22 -22
- dart/generated/models/tenant.py +12 -12
- dart/generated/models/tenant_update.py +6 -6
- dart/generated/models/transaction.py +9 -8
- dart/generated/models/transaction_kind.py +1 -0
- dart/generated/models/transaction_response.py +6 -6
- dart/generated/models/user.py +7 -7
- dart/generated/models/user_dartboard_layout.py +6 -6
- dart/generated/models/user_dartboard_layout_create.py +6 -6
- dart/generated/models/user_update.py +26 -6
- dart/generated/models/validation_error_response.py +6 -6
- dart/generated/models/validation_error_response_items.py +6 -6
- dart/generated/models/view.py +29 -21
- dart/generated/models/view_create.py +36 -27
- dart/generated/models/view_update.py +36 -27
- dart/generated/models/webhook.py +6 -6
- dart/generated/models/webhook_create.py +6 -6
- dart/generated/models/webhook_update.py +6 -6
- dart/generated/models/zapier_integration.py +9 -9
- dart/generated/types.py +4 -3
- dart/order_manager.py +3 -0
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/METADATA +39 -3
- dart_tools-0.6.10.dist-info/RECORD +256 -0
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/WHEEL +1 -1
- dart_tools-0.6.8.dist-info/RECORD +0 -256
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/LICENSE +0 -0
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/dist/dart-tools-0.3.3.tar.gz +0 -0
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.6.8.dist-info → dart_tools-0.6.10.dist-info}/top_level.txt +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import datetime
|
|
2
|
-
from typing import Any,
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
@@ -58,10 +58,10 @@ class TaskCreate:
|
|
|
58
58
|
status_duid (Union[Unset, str]):
|
|
59
59
|
assigned_to_ai (Union[Unset, bool]):
|
|
60
60
|
recommendation_duid (Union[None, Unset, str]):
|
|
61
|
-
assignee_duids (Union[Unset,
|
|
62
|
-
subscriber_duids (Union[Unset,
|
|
63
|
-
tag_duids (Union[Unset,
|
|
64
|
-
attachment_duids (Union[Unset,
|
|
61
|
+
assignee_duids (Union[Unset, list[str]]):
|
|
62
|
+
subscriber_duids (Union[Unset, list[str]]):
|
|
63
|
+
tag_duids (Union[Unset, list[str]]):
|
|
64
|
+
attachment_duids (Union[Unset, list[str]]):
|
|
65
65
|
priority (Union[None, Priority, Unset]):
|
|
66
66
|
size (Union[None, Unset, int]):
|
|
67
67
|
start_at (Union[None, Unset, datetime.datetime]):
|
|
@@ -92,10 +92,10 @@ class TaskCreate:
|
|
|
92
92
|
status_duid: Union[Unset, str] = UNSET
|
|
93
93
|
assigned_to_ai: Union[Unset, bool] = UNSET
|
|
94
94
|
recommendation_duid: Union[None, Unset, str] = UNSET
|
|
95
|
-
assignee_duids: Union[Unset,
|
|
96
|
-
subscriber_duids: Union[Unset,
|
|
97
|
-
tag_duids: Union[Unset,
|
|
98
|
-
attachment_duids: Union[Unset,
|
|
95
|
+
assignee_duids: Union[Unset, list[str]] = UNSET
|
|
96
|
+
subscriber_duids: Union[Unset, list[str]] = UNSET
|
|
97
|
+
tag_duids: Union[Unset, list[str]] = UNSET
|
|
98
|
+
attachment_duids: Union[Unset, list[str]] = UNSET
|
|
99
99
|
priority: Union[None, Priority, Unset] = UNSET
|
|
100
100
|
size: Union[None, Unset, int] = UNSET
|
|
101
101
|
start_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
@@ -105,9 +105,9 @@ class TaskCreate:
|
|
|
105
105
|
recurrence: Union[Any, None, Unset] = UNSET
|
|
106
106
|
recurs_next_at: Union[None, Unset, datetime.datetime] = UNSET
|
|
107
107
|
properties: Union[Unset, Any] = UNSET
|
|
108
|
-
additional_properties:
|
|
108
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
109
109
|
|
|
110
|
-
def to_dict(self) ->
|
|
110
|
+
def to_dict(self) -> dict[str, Any]:
|
|
111
111
|
duid = self.duid
|
|
112
112
|
|
|
113
113
|
source_type: Union[Unset, str] = UNSET
|
|
@@ -176,19 +176,19 @@ class TaskCreate:
|
|
|
176
176
|
else:
|
|
177
177
|
recommendation_duid = self.recommendation_duid
|
|
178
178
|
|
|
179
|
-
assignee_duids: Union[Unset,
|
|
179
|
+
assignee_duids: Union[Unset, list[str]] = UNSET
|
|
180
180
|
if not isinstance(self.assignee_duids, Unset):
|
|
181
181
|
assignee_duids = self.assignee_duids
|
|
182
182
|
|
|
183
|
-
subscriber_duids: Union[Unset,
|
|
183
|
+
subscriber_duids: Union[Unset, list[str]] = UNSET
|
|
184
184
|
if not isinstance(self.subscriber_duids, Unset):
|
|
185
185
|
subscriber_duids = self.subscriber_duids
|
|
186
186
|
|
|
187
|
-
tag_duids: Union[Unset,
|
|
187
|
+
tag_duids: Union[Unset, list[str]] = UNSET
|
|
188
188
|
if not isinstance(self.tag_duids, Unset):
|
|
189
189
|
tag_duids = self.tag_duids
|
|
190
190
|
|
|
191
|
-
attachment_duids: Union[Unset,
|
|
191
|
+
attachment_duids: Union[Unset, list[str]] = UNSET
|
|
192
192
|
if not isinstance(self.attachment_duids, Unset):
|
|
193
193
|
attachment_duids = self.attachment_duids
|
|
194
194
|
|
|
@@ -248,7 +248,7 @@ class TaskCreate:
|
|
|
248
248
|
|
|
249
249
|
properties = self.properties
|
|
250
250
|
|
|
251
|
-
field_dict:
|
|
251
|
+
field_dict: dict[str, Any] = {}
|
|
252
252
|
field_dict.update(self.additional_properties)
|
|
253
253
|
field_dict.update(
|
|
254
254
|
{
|
|
@@ -321,7 +321,7 @@ class TaskCreate:
|
|
|
321
321
|
return field_dict
|
|
322
322
|
|
|
323
323
|
@classmethod
|
|
324
|
-
def from_dict(cls:
|
|
324
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
325
325
|
d = src_dict.copy()
|
|
326
326
|
duid = d.pop("duid")
|
|
327
327
|
|
|
@@ -415,13 +415,13 @@ class TaskCreate:
|
|
|
415
415
|
|
|
416
416
|
recommendation_duid = _parse_recommendation_duid(d.pop("recommendationDuid", UNSET))
|
|
417
417
|
|
|
418
|
-
assignee_duids = cast(
|
|
418
|
+
assignee_duids = cast(list[str], d.pop("assigneeDuids", UNSET))
|
|
419
419
|
|
|
420
|
-
subscriber_duids = cast(
|
|
420
|
+
subscriber_duids = cast(list[str], d.pop("subscriberDuids", UNSET))
|
|
421
421
|
|
|
422
|
-
tag_duids = cast(
|
|
422
|
+
tag_duids = cast(list[str], d.pop("tagDuids", UNSET))
|
|
423
423
|
|
|
424
|
-
attachment_duids = cast(
|
|
424
|
+
attachment_duids = cast(list[str], d.pop("attachmentDuids", UNSET))
|
|
425
425
|
|
|
426
426
|
def _parse_priority(data: object) -> Union[None, Priority, Unset]:
|
|
427
427
|
if data is None:
|
|
@@ -569,7 +569,7 @@ class TaskCreate:
|
|
|
569
569
|
return task_create
|
|
570
570
|
|
|
571
571
|
@property
|
|
572
|
-
def additional_keys(self) ->
|
|
572
|
+
def additional_keys(self) -> list[str]:
|
|
573
573
|
return list(self.additional_properties.keys())
|
|
574
574
|
|
|
575
575
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -22,9 +22,9 @@ class TaskDocRelationship:
|
|
|
22
22
|
task_duid: str
|
|
23
23
|
doc_duid: str
|
|
24
24
|
updated_by_client_duid: Union[None, Unset, str] = UNSET
|
|
25
|
-
additional_properties:
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
26
|
|
|
27
|
-
def to_dict(self) ->
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
28
|
duid = self.duid
|
|
29
29
|
|
|
30
30
|
task_duid = self.task_duid
|
|
@@ -37,7 +37,7 @@ class TaskDocRelationship:
|
|
|
37
37
|
else:
|
|
38
38
|
updated_by_client_duid = self.updated_by_client_duid
|
|
39
39
|
|
|
40
|
-
field_dict:
|
|
40
|
+
field_dict: dict[str, Any] = {}
|
|
41
41
|
field_dict.update(self.additional_properties)
|
|
42
42
|
field_dict.update(
|
|
43
43
|
{
|
|
@@ -52,7 +52,7 @@ class TaskDocRelationship:
|
|
|
52
52
|
return field_dict
|
|
53
53
|
|
|
54
54
|
@classmethod
|
|
55
|
-
def from_dict(cls:
|
|
55
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
56
56
|
d = src_dict.copy()
|
|
57
57
|
duid = d.pop("duid")
|
|
58
58
|
|
|
@@ -80,7 +80,7 @@ class TaskDocRelationship:
|
|
|
80
80
|
return task_doc_relationship
|
|
81
81
|
|
|
82
82
|
@property
|
|
83
|
-
def additional_keys(self) ->
|
|
83
|
+
def additional_keys(self) -> list[str]:
|
|
84
84
|
return list(self.additional_properties.keys())
|
|
85
85
|
|
|
86
86
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -18,16 +18,16 @@ class TaskDocRelationshipCreate:
|
|
|
18
18
|
duid: str
|
|
19
19
|
task_duid: str
|
|
20
20
|
doc_duid: str
|
|
21
|
-
additional_properties:
|
|
21
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
22
|
|
|
23
|
-
def to_dict(self) ->
|
|
23
|
+
def to_dict(self) -> dict[str, Any]:
|
|
24
24
|
duid = self.duid
|
|
25
25
|
|
|
26
26
|
task_duid = self.task_duid
|
|
27
27
|
|
|
28
28
|
doc_duid = self.doc_duid
|
|
29
29
|
|
|
30
|
-
field_dict:
|
|
30
|
+
field_dict: dict[str, Any] = {}
|
|
31
31
|
field_dict.update(self.additional_properties)
|
|
32
32
|
field_dict.update(
|
|
33
33
|
{
|
|
@@ -40,7 +40,7 @@ class TaskDocRelationshipCreate:
|
|
|
40
40
|
return field_dict
|
|
41
41
|
|
|
42
42
|
@classmethod
|
|
43
|
-
def from_dict(cls:
|
|
43
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
44
44
|
d = src_dict.copy()
|
|
45
45
|
duid = d.pop("duid")
|
|
46
46
|
|
|
@@ -58,7 +58,7 @@ class TaskDocRelationshipCreate:
|
|
|
58
58
|
return task_doc_relationship_create
|
|
59
59
|
|
|
60
60
|
@property
|
|
61
|
-
def additional_keys(self) ->
|
|
61
|
+
def additional_keys(self) -> list[str]:
|
|
62
62
|
return list(self.additional_properties.keys())
|
|
63
63
|
|
|
64
64
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -25,7 +25,7 @@ class TaskKind:
|
|
|
25
25
|
* `Emoji` - EMOJI
|
|
26
26
|
icon_name_or_emoji (str):
|
|
27
27
|
color_hex (str):
|
|
28
|
-
hidden_status_duids (
|
|
28
|
+
hidden_status_duids (list[str]):
|
|
29
29
|
updated_by_client_duid (Union[None, Unset, str]):
|
|
30
30
|
"""
|
|
31
31
|
|
|
@@ -37,11 +37,11 @@ class TaskKind:
|
|
|
37
37
|
icon_kind: IconKind
|
|
38
38
|
icon_name_or_emoji: str
|
|
39
39
|
color_hex: str
|
|
40
|
-
hidden_status_duids:
|
|
40
|
+
hidden_status_duids: list[str]
|
|
41
41
|
updated_by_client_duid: Union[None, Unset, str] = UNSET
|
|
42
|
-
additional_properties:
|
|
42
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
43
|
|
|
44
|
-
def to_dict(self) ->
|
|
44
|
+
def to_dict(self) -> dict[str, Any]:
|
|
45
45
|
duid = self.duid
|
|
46
46
|
|
|
47
47
|
kind = self.kind.value
|
|
@@ -66,7 +66,7 @@ class TaskKind:
|
|
|
66
66
|
else:
|
|
67
67
|
updated_by_client_duid = self.updated_by_client_duid
|
|
68
68
|
|
|
69
|
-
field_dict:
|
|
69
|
+
field_dict: dict[str, Any] = {}
|
|
70
70
|
field_dict.update(self.additional_properties)
|
|
71
71
|
field_dict.update(
|
|
72
72
|
{
|
|
@@ -87,7 +87,7 @@ class TaskKind:
|
|
|
87
87
|
return field_dict
|
|
88
88
|
|
|
89
89
|
@classmethod
|
|
90
|
-
def from_dict(cls:
|
|
90
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
91
91
|
d = src_dict.copy()
|
|
92
92
|
duid = d.pop("duid")
|
|
93
93
|
|
|
@@ -105,7 +105,7 @@ class TaskKind:
|
|
|
105
105
|
|
|
106
106
|
color_hex = d.pop("colorHex")
|
|
107
107
|
|
|
108
|
-
hidden_status_duids = cast(
|
|
108
|
+
hidden_status_duids = cast(list[str], d.pop("hiddenStatusDuids"))
|
|
109
109
|
|
|
110
110
|
def _parse_updated_by_client_duid(data: object) -> Union[None, Unset, str]:
|
|
111
111
|
if data is None:
|
|
@@ -133,7 +133,7 @@ class TaskKind:
|
|
|
133
133
|
return task_kind
|
|
134
134
|
|
|
135
135
|
@property
|
|
136
|
-
def additional_keys(self) ->
|
|
136
|
+
def additional_keys(self) -> list[str]:
|
|
137
137
|
return list(self.additional_properties.keys())
|
|
138
138
|
|
|
139
139
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -25,7 +25,7 @@ class TaskKindCreate:
|
|
|
25
25
|
* `Emoji` - EMOJI
|
|
26
26
|
icon_name_or_emoji (Union[Unset, str]):
|
|
27
27
|
color_hex (Union[Unset, str]):
|
|
28
|
-
hidden_status_duids (Union[Unset,
|
|
28
|
+
hidden_status_duids (Union[Unset, list[str]]):
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
duid: str
|
|
@@ -36,10 +36,10 @@ class TaskKindCreate:
|
|
|
36
36
|
icon_kind: Union[Unset, IconKind] = UNSET
|
|
37
37
|
icon_name_or_emoji: Union[Unset, str] = UNSET
|
|
38
38
|
color_hex: Union[Unset, str] = UNSET
|
|
39
|
-
hidden_status_duids: Union[Unset,
|
|
40
|
-
additional_properties:
|
|
39
|
+
hidden_status_duids: Union[Unset, list[str]] = UNSET
|
|
40
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
41
|
|
|
42
|
-
def to_dict(self) ->
|
|
42
|
+
def to_dict(self) -> dict[str, Any]:
|
|
43
43
|
duid = self.duid
|
|
44
44
|
|
|
45
45
|
kind = self.kind.value
|
|
@@ -58,11 +58,11 @@ class TaskKindCreate:
|
|
|
58
58
|
|
|
59
59
|
color_hex = self.color_hex
|
|
60
60
|
|
|
61
|
-
hidden_status_duids: Union[Unset,
|
|
61
|
+
hidden_status_duids: Union[Unset, list[str]] = UNSET
|
|
62
62
|
if not isinstance(self.hidden_status_duids, Unset):
|
|
63
63
|
hidden_status_duids = self.hidden_status_duids
|
|
64
64
|
|
|
65
|
-
field_dict:
|
|
65
|
+
field_dict: dict[str, Any] = {}
|
|
66
66
|
field_dict.update(self.additional_properties)
|
|
67
67
|
field_dict.update(
|
|
68
68
|
{
|
|
@@ -87,7 +87,7 @@ class TaskKindCreate:
|
|
|
87
87
|
return field_dict
|
|
88
88
|
|
|
89
89
|
@classmethod
|
|
90
|
-
def from_dict(cls:
|
|
90
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
91
91
|
d = src_dict.copy()
|
|
92
92
|
duid = d.pop("duid")
|
|
93
93
|
|
|
@@ -110,7 +110,7 @@ class TaskKindCreate:
|
|
|
110
110
|
|
|
111
111
|
color_hex = d.pop("colorHex", UNSET)
|
|
112
112
|
|
|
113
|
-
hidden_status_duids = cast(
|
|
113
|
+
hidden_status_duids = cast(list[str], d.pop("hiddenStatusDuids", UNSET))
|
|
114
114
|
|
|
115
115
|
task_kind_create = cls(
|
|
116
116
|
duid=duid,
|
|
@@ -128,7 +128,7 @@ class TaskKindCreate:
|
|
|
128
128
|
return task_kind_create
|
|
129
129
|
|
|
130
130
|
@property
|
|
131
|
-
def additional_keys(self) ->
|
|
131
|
+
def additional_keys(self) -> list[str]:
|
|
132
132
|
return list(self.additional_properties.keys())
|
|
133
133
|
|
|
134
134
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -25,7 +25,7 @@ class TaskKindUpdate:
|
|
|
25
25
|
* `Emoji` - EMOJI
|
|
26
26
|
icon_name_or_emoji (Union[Unset, str]):
|
|
27
27
|
color_hex (Union[Unset, str]):
|
|
28
|
-
hidden_status_duids (Union[Unset,
|
|
28
|
+
hidden_status_duids (Union[Unset, list[str]]):
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
31
|
duid: str
|
|
@@ -36,10 +36,10 @@ class TaskKindUpdate:
|
|
|
36
36
|
icon_kind: Union[Unset, IconKind] = UNSET
|
|
37
37
|
icon_name_or_emoji: Union[Unset, str] = UNSET
|
|
38
38
|
color_hex: Union[Unset, str] = UNSET
|
|
39
|
-
hidden_status_duids: Union[Unset,
|
|
40
|
-
additional_properties:
|
|
39
|
+
hidden_status_duids: Union[Unset, list[str]] = UNSET
|
|
40
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
41
|
|
|
42
|
-
def to_dict(self) ->
|
|
42
|
+
def to_dict(self) -> dict[str, Any]:
|
|
43
43
|
duid = self.duid
|
|
44
44
|
|
|
45
45
|
kind: Union[Unset, str] = UNSET
|
|
@@ -60,11 +60,11 @@ class TaskKindUpdate:
|
|
|
60
60
|
|
|
61
61
|
color_hex = self.color_hex
|
|
62
62
|
|
|
63
|
-
hidden_status_duids: Union[Unset,
|
|
63
|
+
hidden_status_duids: Union[Unset, list[str]] = UNSET
|
|
64
64
|
if not isinstance(self.hidden_status_duids, Unset):
|
|
65
65
|
hidden_status_duids = self.hidden_status_duids
|
|
66
66
|
|
|
67
|
-
field_dict:
|
|
67
|
+
field_dict: dict[str, Any] = {}
|
|
68
68
|
field_dict.update(self.additional_properties)
|
|
69
69
|
field_dict.update(
|
|
70
70
|
{
|
|
@@ -91,7 +91,7 @@ class TaskKindUpdate:
|
|
|
91
91
|
return field_dict
|
|
92
92
|
|
|
93
93
|
@classmethod
|
|
94
|
-
def from_dict(cls:
|
|
94
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
95
95
|
d = src_dict.copy()
|
|
96
96
|
duid = d.pop("duid")
|
|
97
97
|
|
|
@@ -119,7 +119,7 @@ class TaskKindUpdate:
|
|
|
119
119
|
|
|
120
120
|
color_hex = d.pop("colorHex", UNSET)
|
|
121
121
|
|
|
122
|
-
hidden_status_duids = cast(
|
|
122
|
+
hidden_status_duids = cast(list[str], d.pop("hiddenStatusDuids", UNSET))
|
|
123
123
|
|
|
124
124
|
task_kind_update = cls(
|
|
125
125
|
duid=duid,
|
|
@@ -137,7 +137,7 @@ class TaskKindUpdate:
|
|
|
137
137
|
return task_kind_update
|
|
138
138
|
|
|
139
139
|
@property
|
|
140
|
-
def additional_keys(self) ->
|
|
140
|
+
def additional_keys(self) -> list[str]:
|
|
141
141
|
return list(self.additional_properties.keys())
|
|
142
142
|
|
|
143
143
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -39,9 +39,9 @@ class TaskLink:
|
|
|
39
39
|
title: Union[None, str]
|
|
40
40
|
icon_url: Union[None, str]
|
|
41
41
|
adtl: Any
|
|
42
|
-
additional_properties:
|
|
42
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
43
43
|
|
|
44
|
-
def to_dict(self) ->
|
|
44
|
+
def to_dict(self) -> dict[str, Any]:
|
|
45
45
|
duid = self.duid
|
|
46
46
|
|
|
47
47
|
order = self.order
|
|
@@ -58,7 +58,7 @@ class TaskLink:
|
|
|
58
58
|
|
|
59
59
|
adtl = self.adtl
|
|
60
60
|
|
|
61
|
-
field_dict:
|
|
61
|
+
field_dict: dict[str, Any] = {}
|
|
62
62
|
field_dict.update(self.additional_properties)
|
|
63
63
|
field_dict.update(
|
|
64
64
|
{
|
|
@@ -75,7 +75,7 @@ class TaskLink:
|
|
|
75
75
|
return field_dict
|
|
76
76
|
|
|
77
77
|
@classmethod
|
|
78
|
-
def from_dict(cls:
|
|
78
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
79
79
|
d = src_dict.copy()
|
|
80
80
|
duid = d.pop("duid")
|
|
81
81
|
|
|
@@ -115,7 +115,7 @@ class TaskLink:
|
|
|
115
115
|
return task_link
|
|
116
116
|
|
|
117
117
|
@property
|
|
118
|
-
def additional_keys(self) ->
|
|
118
|
+
def additional_keys(self) -> list[str]:
|
|
119
119
|
return list(self.additional_properties.keys())
|
|
120
120
|
|
|
121
121
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -40,9 +40,9 @@ class TaskLinkCreate:
|
|
|
40
40
|
kind: Union[Unset, TaskLinkKind] = UNSET
|
|
41
41
|
title: Union[None, Unset, str] = UNSET
|
|
42
42
|
icon_url: Union[None, Unset, str] = UNSET
|
|
43
|
-
additional_properties:
|
|
43
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
44
|
|
|
45
|
-
def to_dict(self) ->
|
|
45
|
+
def to_dict(self) -> dict[str, Any]:
|
|
46
46
|
duid = self.duid
|
|
47
47
|
|
|
48
48
|
task_duid = self.task_duid
|
|
@@ -67,7 +67,7 @@ class TaskLinkCreate:
|
|
|
67
67
|
else:
|
|
68
68
|
icon_url = self.icon_url
|
|
69
69
|
|
|
70
|
-
field_dict:
|
|
70
|
+
field_dict: dict[str, Any] = {}
|
|
71
71
|
field_dict.update(self.additional_properties)
|
|
72
72
|
field_dict.update(
|
|
73
73
|
{
|
|
@@ -87,7 +87,7 @@ class TaskLinkCreate:
|
|
|
87
87
|
return field_dict
|
|
88
88
|
|
|
89
89
|
@classmethod
|
|
90
|
-
def from_dict(cls:
|
|
90
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
91
91
|
d = src_dict.copy()
|
|
92
92
|
duid = d.pop("duid")
|
|
93
93
|
|
|
@@ -136,7 +136,7 @@ class TaskLinkCreate:
|
|
|
136
136
|
return task_link_create
|
|
137
137
|
|
|
138
138
|
@property
|
|
139
|
-
def additional_keys(self) ->
|
|
139
|
+
def additional_keys(self) -> list[str]:
|
|
140
140
|
return list(self.additional_properties.keys())
|
|
141
141
|
|
|
142
142
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar, Union, cast
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -40,9 +40,9 @@ class TaskLinkUpdate:
|
|
|
40
40
|
url: Union[Unset, str] = UNSET
|
|
41
41
|
title: Union[None, Unset, str] = UNSET
|
|
42
42
|
icon_url: Union[None, Unset, str] = UNSET
|
|
43
|
-
additional_properties:
|
|
43
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
44
|
|
|
45
|
-
def to_dict(self) ->
|
|
45
|
+
def to_dict(self) -> dict[str, Any]:
|
|
46
46
|
duid = self.duid
|
|
47
47
|
|
|
48
48
|
task_duid = self.task_duid
|
|
@@ -67,7 +67,7 @@ class TaskLinkUpdate:
|
|
|
67
67
|
else:
|
|
68
68
|
icon_url = self.icon_url
|
|
69
69
|
|
|
70
|
-
field_dict:
|
|
70
|
+
field_dict: dict[str, Any] = {}
|
|
71
71
|
field_dict.update(self.additional_properties)
|
|
72
72
|
field_dict.update(
|
|
73
73
|
{
|
|
@@ -90,7 +90,7 @@ class TaskLinkUpdate:
|
|
|
90
90
|
return field_dict
|
|
91
91
|
|
|
92
92
|
@classmethod
|
|
93
|
-
def from_dict(cls:
|
|
93
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
94
94
|
d = src_dict.copy()
|
|
95
95
|
duid = d.pop("duid")
|
|
96
96
|
|
|
@@ -139,7 +139,7 @@ class TaskLinkUpdate:
|
|
|
139
139
|
return task_link_update
|
|
140
140
|
|
|
141
141
|
@property
|
|
142
|
-
def additional_keys(self) ->
|
|
142
|
+
def additional_keys(self) -> list[str]:
|
|
143
143
|
return list(self.additional_properties.keys())
|
|
144
144
|
|
|
145
145
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import datetime
|
|
2
|
-
from typing import TYPE_CHECKING, Any,
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
3
|
|
|
4
4
|
from attrs import define as _attrs_define
|
|
5
5
|
from attrs import field as _attrs_field
|
|
@@ -34,9 +34,9 @@ class TaskNotionDocument:
|
|
|
34
34
|
page_map: Union["TaskNotionDocumentPageMapType0", None]
|
|
35
35
|
block_map: Union["TaskNotionDocumentBlockMapType0", None]
|
|
36
36
|
block_children_map: Union["TaskNotionDocumentBlockChildrenMapType0", None]
|
|
37
|
-
additional_properties:
|
|
37
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
38
38
|
|
|
39
|
-
def to_dict(self) ->
|
|
39
|
+
def to_dict(self) -> dict[str, Any]:
|
|
40
40
|
from ..models.task_notion_document_block_children_map_type_0 import TaskNotionDocumentBlockChildrenMapType0
|
|
41
41
|
from ..models.task_notion_document_block_map_type_0 import TaskNotionDocumentBlockMapType0
|
|
42
42
|
from ..models.task_notion_document_page_map_type_0 import TaskNotionDocumentPageMapType0
|
|
@@ -54,25 +54,25 @@ class TaskNotionDocument:
|
|
|
54
54
|
else:
|
|
55
55
|
last_refresh_at = self.last_refresh_at
|
|
56
56
|
|
|
57
|
-
page_map: Union[
|
|
57
|
+
page_map: Union[None, dict[str, Any]]
|
|
58
58
|
if isinstance(self.page_map, TaskNotionDocumentPageMapType0):
|
|
59
59
|
page_map = self.page_map.to_dict()
|
|
60
60
|
else:
|
|
61
61
|
page_map = self.page_map
|
|
62
62
|
|
|
63
|
-
block_map: Union[
|
|
63
|
+
block_map: Union[None, dict[str, Any]]
|
|
64
64
|
if isinstance(self.block_map, TaskNotionDocumentBlockMapType0):
|
|
65
65
|
block_map = self.block_map.to_dict()
|
|
66
66
|
else:
|
|
67
67
|
block_map = self.block_map
|
|
68
68
|
|
|
69
|
-
block_children_map: Union[
|
|
69
|
+
block_children_map: Union[None, dict[str, Any]]
|
|
70
70
|
if isinstance(self.block_children_map, TaskNotionDocumentBlockChildrenMapType0):
|
|
71
71
|
block_children_map = self.block_children_map.to_dict()
|
|
72
72
|
else:
|
|
73
73
|
block_children_map = self.block_children_map
|
|
74
74
|
|
|
75
|
-
field_dict:
|
|
75
|
+
field_dict: dict[str, Any] = {}
|
|
76
76
|
field_dict.update(self.additional_properties)
|
|
77
77
|
field_dict.update(
|
|
78
78
|
{
|
|
@@ -89,7 +89,7 @@ class TaskNotionDocument:
|
|
|
89
89
|
return field_dict
|
|
90
90
|
|
|
91
91
|
@classmethod
|
|
92
|
-
def from_dict(cls:
|
|
92
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
93
93
|
from ..models.task_notion_document_block_children_map_type_0 import TaskNotionDocumentBlockChildrenMapType0
|
|
94
94
|
from ..models.task_notion_document_block_map_type_0 import TaskNotionDocumentBlockMapType0
|
|
95
95
|
from ..models.task_notion_document_page_map_type_0 import TaskNotionDocumentPageMapType0
|
|
@@ -180,7 +180,7 @@ class TaskNotionDocument:
|
|
|
180
180
|
return task_notion_document
|
|
181
181
|
|
|
182
182
|
@property
|
|
183
|
-
def additional_keys(self) ->
|
|
183
|
+
def additional_keys(self) -> list[str]:
|
|
184
184
|
return list(self.additional_properties.keys())
|
|
185
185
|
|
|
186
186
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -10,16 +10,16 @@ T = TypeVar("T", bound="TaskNotionDocumentBlockChildrenMapType0")
|
|
|
10
10
|
class TaskNotionDocumentBlockChildrenMapType0:
|
|
11
11
|
""" """
|
|
12
12
|
|
|
13
|
-
additional_properties:
|
|
13
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
14
|
|
|
15
|
-
def to_dict(self) ->
|
|
16
|
-
field_dict:
|
|
15
|
+
def to_dict(self) -> dict[str, Any]:
|
|
16
|
+
field_dict: dict[str, Any] = {}
|
|
17
17
|
field_dict.update(self.additional_properties)
|
|
18
18
|
|
|
19
19
|
return field_dict
|
|
20
20
|
|
|
21
21
|
@classmethod
|
|
22
|
-
def from_dict(cls:
|
|
22
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
23
23
|
d = src_dict.copy()
|
|
24
24
|
task_notion_document_block_children_map_type_0 = cls()
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class TaskNotionDocumentBlockChildrenMapType0:
|
|
|
27
27
|
return task_notion_document_block_children_map_type_0
|
|
28
28
|
|
|
29
29
|
@property
|
|
30
|
-
def additional_keys(self) ->
|
|
30
|
+
def additional_keys(self) -> list[str]:
|
|
31
31
|
return list(self.additional_properties.keys())
|
|
32
32
|
|
|
33
33
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any,
|
|
1
|
+
from typing import Any, TypeVar
|
|
2
2
|
|
|
3
3
|
from attrs import define as _attrs_define
|
|
4
4
|
from attrs import field as _attrs_field
|
|
@@ -10,16 +10,16 @@ T = TypeVar("T", bound="TaskNotionDocumentBlockMapType0")
|
|
|
10
10
|
class TaskNotionDocumentBlockMapType0:
|
|
11
11
|
""" """
|
|
12
12
|
|
|
13
|
-
additional_properties:
|
|
13
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
14
|
|
|
15
|
-
def to_dict(self) ->
|
|
16
|
-
field_dict:
|
|
15
|
+
def to_dict(self) -> dict[str, Any]:
|
|
16
|
+
field_dict: dict[str, Any] = {}
|
|
17
17
|
field_dict.update(self.additional_properties)
|
|
18
18
|
|
|
19
19
|
return field_dict
|
|
20
20
|
|
|
21
21
|
@classmethod
|
|
22
|
-
def from_dict(cls:
|
|
22
|
+
def from_dict(cls: type[T], src_dict: dict[str, Any]) -> T:
|
|
23
23
|
d = src_dict.copy()
|
|
24
24
|
task_notion_document_block_map_type_0 = cls()
|
|
25
25
|
|
|
@@ -27,7 +27,7 @@ class TaskNotionDocumentBlockMapType0:
|
|
|
27
27
|
return task_notion_document_block_map_type_0
|
|
28
28
|
|
|
29
29
|
@property
|
|
30
|
-
def additional_keys(self) ->
|
|
30
|
+
def additional_keys(self) -> list[str]:
|
|
31
31
|
return list(self.additional_properties.keys())
|
|
32
32
|
|
|
33
33
|
def __getitem__(self, key: str) -> Any:
|