dart-tools 0.6.15__py3-none-any.whl → 0.7.0__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 +8 -6
- dart/dart.py +421 -698
- dart/generated/__init__.py +1 -1
- dart/generated/api/__init__.py +8 -0
- dart/generated/api/comment/__init__.py +1 -0
- dart/generated/api/{transactions/transactions_create.py → comment/create_comment.py} +57 -58
- dart/generated/api/config/__init__.py +1 -0
- dart/generated/api/config/get_config.py +141 -0
- dart/generated/api/dartboard/__init__.py +1 -0
- dart/generated/api/{attachments/attachments_list.py → dartboard/retrieve_dartboard.py} +58 -62
- dart/generated/api/doc/__init__.py +1 -0
- dart/generated/api/doc/create_doc.py +179 -0
- dart/generated/api/doc/delete_doc.py +165 -0
- dart/generated/api/{comments/comments_list.py → doc/list_docs.py} +115 -111
- dart/generated/api/{forms/forms_list.py → doc/retrieve_doc.py} +58 -62
- dart/generated/api/doc/update_doc.py +188 -0
- dart/generated/api/folder/__init__.py +1 -0
- dart/generated/api/{webhooks/webhooks_list.py → folder/retrieve_folder.py} +58 -62
- dart/generated/api/task/__init__.py +1 -0
- dart/generated/api/task/create_task.py +172 -0
- dart/generated/api/task/delete_task.py +165 -0
- dart/generated/api/task/list_tasks.py +497 -0
- dart/generated/api/{layouts/layouts_list.py → task/retrieve_task.py} +58 -62
- dart/generated/api/task/update_task.py +188 -0
- dart/generated/api/view/__init__.py +1 -0
- dart/generated/api/{tenants/tenants_list.py → view/retrieve_view.py} +58 -62
- dart/generated/client.py +13 -13
- dart/generated/models/__init__.py +34 -342
- dart/generated/models/comment.py +34 -150
- dart/generated/models/comment_create.py +18 -97
- dart/generated/models/concise_doc.py +84 -0
- dart/generated/models/concise_task.py +267 -0
- dart/generated/models/dartboard.py +37 -237
- dart/generated/models/doc.py +31 -183
- dart/generated/models/doc_create.py +22 -238
- dart/generated/models/doc_update.py +26 -233
- dart/generated/models/folder.py +39 -84
- dart/generated/models/list_docs_o_item.py +15 -0
- dart/generated/models/{paginated_attachment_list.py → paginated_concise_doc_list.py} +18 -17
- dart/generated/models/{paginated_dartboard_list.py → paginated_concise_task_list.py} +18 -17
- dart/generated/models/task.py +149 -406
- dart/generated/models/task_create.py +113 -428
- dart/generated/models/task_update.py +113 -421
- dart/generated/models/user.py +14 -192
- dart/generated/models/user_space_configuration.py +147 -0
- dart/generated/models/view.py +39 -149
- dart/generated/models/wrapped_comment.py +65 -0
- dart/generated/models/wrapped_comment_create.py +65 -0
- dart/generated/models/wrapped_dartboard.py +65 -0
- dart/generated/models/wrapped_doc.py +65 -0
- dart/generated/models/wrapped_doc_create.py +65 -0
- dart/generated/models/wrapped_doc_update.py +65 -0
- dart/generated/models/wrapped_folder.py +65 -0
- dart/generated/models/wrapped_task.py +65 -0
- dart/generated/models/wrapped_task_create.py +65 -0
- dart/generated/models/wrapped_task_update.py +65 -0
- dart/generated/models/wrapped_view.py +65 -0
- dart/generated/types.py +4 -3
- dart/old.py +216 -0
- dart/order_manager.py +4 -15
- dart/webhook.py +2 -7
- {dart_tools-0.6.15.dist-info → dart_tools-0.7.0.dist-info}/METADATA +15 -75
- dart_tools-0.7.0.dist-info/RECORD +71 -0
- {dart_tools-0.6.15.dist-info → dart_tools-0.7.0.dist-info}/WHEEL +1 -1
- dart/generated/api/attachments/__init__.py +0 -0
- dart/generated/api/comments/__init__.py +0 -0
- dart/generated/api/dartboards/__init__.py +0 -0
- dart/generated/api/dartboards/dartboards_list.py +0 -286
- dart/generated/api/dashboards/__init__.py +0 -0
- dart/generated/api/dashboards/dashboards_list.py +0 -199
- dart/generated/api/docs/__init__.py +0 -0
- dart/generated/api/docs/docs_list.py +0 -387
- dart/generated/api/folders/__init__.py +0 -0
- dart/generated/api/folders/folders_list.py +0 -249
- dart/generated/api/form_fields/__init__.py +0 -0
- dart/generated/api/form_fields/form_fields_list.py +0 -169
- dart/generated/api/forms/__init__.py +0 -0
- dart/generated/api/layouts/__init__.py +0 -0
- dart/generated/api/links/__init__.py +0 -0
- dart/generated/api/links/links_list.py +0 -169
- dart/generated/api/options/__init__.py +0 -0
- dart/generated/api/options/options_list.py +0 -244
- dart/generated/api/properties/__init__.py +0 -0
- dart/generated/api/properties/properties_list.py +0 -219
- dart/generated/api/reactions/__init__.py +0 -0
- dart/generated/api/reactions/reactions_list.py +0 -169
- dart/generated/api/relationship_kinds/__init__.py +0 -0
- dart/generated/api/relationship_kinds/relationship_kinds_list.py +0 -169
- dart/generated/api/relationships/__init__.py +0 -0
- dart/generated/api/relationships/relationships_list.py +0 -169
- dart/generated/api/spaces/__init__.py +0 -0
- dart/generated/api/spaces/spaces_list.py +0 -229
- dart/generated/api/statuses/__init__.py +0 -0
- dart/generated/api/statuses/statuses_list.py +0 -264
- dart/generated/api/task_doc_relationships/__init__.py +0 -0
- dart/generated/api/task_doc_relationships/task_doc_relationships_list.py +0 -169
- dart/generated/api/task_kinds/__init__.py +0 -0
- dart/generated/api/task_kinds/task_kinds_list.py +0 -219
- dart/generated/api/tasks/__init__.py +0 -0
- dart/generated/api/tasks/tasks_list.py +0 -461
- dart/generated/api/tenants/__init__.py +0 -0
- dart/generated/api/transactions/__init__.py +0 -0
- dart/generated/api/user_dartboard_layouts/__init__.py +0 -0
- dart/generated/api/user_dartboard_layouts/user_dartboard_layouts_list.py +0 -169
- dart/generated/api/user_data/__init__.py +0 -0
- dart/generated/api/user_data/user_data_entity_retrieve.py +0 -580
- dart/generated/api/users/__init__.py +0 -0
- dart/generated/api/users/users_list.py +0 -229
- dart/generated/api/views/__init__.py +0 -0
- dart/generated/api/views/views_list.py +0 -199
- dart/generated/api/webhooks/__init__.py +0 -0
- dart/generated/models/attachment.py +0 -112
- dart/generated/models/attachment_create.py +0 -121
- dart/generated/models/attachment_update.py +0 -125
- dart/generated/models/bar_chart_adtl.py +0 -98
- dart/generated/models/brainstorm.py +0 -149
- dart/generated/models/brainstorm_create.py +0 -134
- dart/generated/models/brainstorm_state.py +0 -10
- dart/generated/models/brainstorm_update.py +0 -153
- dart/generated/models/burn_up_chart_adtl.py +0 -103
- dart/generated/models/chart.py +0 -208
- dart/generated/models/chart_aggregation.py +0 -10
- dart/generated/models/chart_type.py +0 -14
- dart/generated/models/comment_reaction.py +0 -84
- dart/generated/models/comment_reaction_create.py +0 -82
- dart/generated/models/comment_reaction_update.py +0 -87
- dart/generated/models/comment_update.py +0 -148
- dart/generated/models/dartboard_create.py +0 -315
- dart/generated/models/dartboard_kind.py +0 -12
- dart/generated/models/dartboard_update.py +0 -317
- dart/generated/models/dartboards_list_kind.py +0 -12
- dart/generated/models/dashboard.py +0 -185
- dart/generated/models/dashboard_create.py +0 -171
- dart/generated/models/dashboard_update.py +0 -173
- dart/generated/models/discord_integration.py +0 -72
- dart/generated/models/doc_source_type.py +0 -13
- dart/generated/models/docs_list_o_item.py +0 -15
- dart/generated/models/entity_name.py +0 -22
- dart/generated/models/event.py +0 -420
- dart/generated/models/event_actor.py +0 -19
- dart/generated/models/event_create.py +0 -158
- dart/generated/models/event_kind.py +0 -88
- dart/generated/models/event_subscription.py +0 -74
- dart/generated/models/event_subscription_update.py +0 -173
- dart/generated/models/filter_applicability.py +0 -22
- dart/generated/models/filter_assignee.py +0 -116
- dart/generated/models/filter_connector.py +0 -9
- dart/generated/models/filter_group.py +0 -112
- dart/generated/models/filter_search.py +0 -82
- dart/generated/models/filter_set.py +0 -116
- dart/generated/models/folder_create.py +0 -150
- dart/generated/models/folder_kind.py +0 -10
- dart/generated/models/folder_update.py +0 -152
- dart/generated/models/folders_list_kind.py +0 -10
- dart/generated/models/form.py +0 -147
- dart/generated/models/form_create.py +0 -141
- dart/generated/models/form_field.py +0 -144
- dart/generated/models/form_field_create.py +0 -129
- dart/generated/models/form_field_update.py +0 -132
- dart/generated/models/form_update.py +0 -142
- dart/generated/models/github_integration.py +0 -163
- dart/generated/models/github_integration_tenant_extension_status.py +0 -11
- dart/generated/models/google_data.py +0 -94
- dart/generated/models/icon_kind.py +0 -10
- dart/generated/models/layout.py +0 -167
- dart/generated/models/layout_config.py +0 -70
- dart/generated/models/layout_create.py +0 -130
- dart/generated/models/layout_kind.py +0 -11
- dart/generated/models/layout_kind_config_map.py +0 -56
- dart/generated/models/layout_update.py +0 -130
- dart/generated/models/line_chart_adtl.py +0 -72
- dart/generated/models/models_response.py +0 -671
- dart/generated/models/notification.py +0 -120
- dart/generated/models/notification_update.py +0 -100
- dart/generated/models/notion_integration.py +0 -90
- dart/generated/models/notion_integration_tenant_extension_status.py +0 -10
- dart/generated/models/number_chart_adtl.py +0 -77
- dart/generated/models/operation.py +0 -874
- dart/generated/models/operation_kind.py +0 -12
- dart/generated/models/operation_model_kind.py +0 -36
- dart/generated/models/option.py +0 -118
- dart/generated/models/option_create.py +0 -105
- dart/generated/models/option_update.py +0 -107
- dart/generated/models/paginated_comment_list.py +0 -122
- dart/generated/models/paginated_comment_reaction_list.py +0 -122
- dart/generated/models/paginated_dashboard_list.py +0 -122
- dart/generated/models/paginated_doc_list.py +0 -122
- dart/generated/models/paginated_folder_list.py +0 -122
- dart/generated/models/paginated_form_field_list.py +0 -122
- dart/generated/models/paginated_form_list.py +0 -122
- dart/generated/models/paginated_layout_list.py +0 -122
- dart/generated/models/paginated_option_list.py +0 -122
- dart/generated/models/paginated_property_list.py +0 -122
- dart/generated/models/paginated_relationship_kind_list.py +0 -122
- dart/generated/models/paginated_relationship_list.py +0 -122
- dart/generated/models/paginated_space_list.py +0 -122
- dart/generated/models/paginated_status_list.py +0 -122
- dart/generated/models/paginated_task_doc_relationship_list.py +0 -122
- dart/generated/models/paginated_task_kind_list.py +0 -122
- dart/generated/models/paginated_task_link_list.py +0 -122
- dart/generated/models/paginated_task_list.py +0 -122
- dart/generated/models/paginated_tenant_list.py +0 -122
- dart/generated/models/paginated_user_dartboard_layout_list.py +0 -122
- dart/generated/models/paginated_user_list.py +0 -122
- dart/generated/models/paginated_view_list.py +0 -122
- dart/generated/models/paginated_webhook_list.py +0 -122
- dart/generated/models/pie_chart_adtl.py +0 -69
- dart/generated/models/pie_chart_display_metric.py +0 -9
- dart/generated/models/properties_list_kind.py +0 -32
- dart/generated/models/property_.py +0 -153
- dart/generated/models/property_create.py +0 -137
- dart/generated/models/property_kind.py +0 -32
- dart/generated/models/property_update.py +0 -146
- dart/generated/models/relationship.py +0 -74
- dart/generated/models/relationship_create.py +0 -93
- dart/generated/models/relationship_kind.py +0 -123
- dart/generated/models/relationship_kind_create.py +0 -117
- dart/generated/models/relationship_kind_kind.py +0 -12
- dart/generated/models/relationship_kind_update.py +0 -119
- dart/generated/models/report_kind.py +0 -9
- dart/generated/models/request_body.py +0 -80
- dart/generated/models/response_body.py +0 -72
- dart/generated/models/saml_config.py +0 -77
- dart/generated/models/saml_config_tenant_extension_status.py +0 -9
- dart/generated/models/slack_integration.py +0 -90
- dart/generated/models/slack_integration_tenant_extension_status.py +0 -10
- dart/generated/models/sort.py +0 -66
- dart/generated/models/space.py +0 -311
- dart/generated/models/space_create.py +0 -340
- dart/generated/models/space_kind.py +0 -10
- dart/generated/models/space_update.py +0 -341
- dart/generated/models/sprint_mode.py +0 -9
- dart/generated/models/status.py +0 -141
- dart/generated/models/status_create.py +0 -125
- dart/generated/models/status_kind.py +0 -12
- dart/generated/models/status_update.py +0 -135
- dart/generated/models/statuses_list_kind.py +0 -12
- dart/generated/models/subscription.py +0 -9
- dart/generated/models/subtask_display_mode.py +0 -10
- dart/generated/models/summary_statistic_kind.py +0 -14
- dart/generated/models/table_chart_adtl.py +0 -98
- dart/generated/models/task_detail_mode.py +0 -10
- dart/generated/models/task_doc_relationship.py +0 -96
- dart/generated/models/task_doc_relationship_create.py +0 -74
- dart/generated/models/task_kind.py +0 -149
- dart/generated/models/task_kind_create.py +0 -144
- dart/generated/models/task_kind_kind.py +0 -9
- dart/generated/models/task_kind_update.py +0 -153
- dart/generated/models/task_kinds_list_kind.py +0 -9
- dart/generated/models/task_link.py +0 -131
- dart/generated/models/task_link_create.py +0 -152
- dart/generated/models/task_link_kind.py +0 -19
- dart/generated/models/task_link_update.py +0 -155
- dart/generated/models/task_notion_document.py +0 -196
- dart/generated/models/task_notion_document_block_children_map_type_0.py +0 -43
- dart/generated/models/task_notion_document_block_map_type_0.py +0 -43
- dart/generated/models/task_notion_document_page_map_type_0.py +0 -43
- dart/generated/models/task_properties.py +0 -43
- dart/generated/models/task_source_type.py +0 -31
- dart/generated/models/tenant.py +0 -386
- dart/generated/models/tenant_update.py +0 -166
- dart/generated/models/theme.py +0 -10
- dart/generated/models/transaction.py +0 -158
- dart/generated/models/transaction_kind.py +0 -74
- dart/generated/models/transaction_response.py +0 -96
- dart/generated/models/user_dartboard_layout.py +0 -66
- dart/generated/models/user_dartboard_layout_create.py +0 -74
- dart/generated/models/user_data_entity_retrieve_entity_kind.py +0 -32
- dart/generated/models/user_role.py +0 -12
- dart/generated/models/user_status.py +0 -12
- dart/generated/models/user_update.py +0 -210
- dart/generated/models/validation_error_response.py +0 -64
- dart/generated/models/validation_error_response_items.py +0 -43
- dart/generated/models/view_create.py +0 -213
- dart/generated/models/view_kind.py +0 -11
- dart/generated/models/view_update.py +0 -215
- dart/generated/models/webhook.py +0 -96
- dart/generated/models/webhook_create.py +0 -77
- dart/generated/models/webhook_update.py +0 -78
- dart/generated/models/zapier_integration.py +0 -66
- dart_tools-0.6.15.dist-info/RECORD +0 -257
- dart_tools-0.6.15.dist-info/dist/dart-tools-0.3.3.tar.gz +0 -0
- {dart_tools-0.6.15.dist-info → dart_tools-0.7.0.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.6.15.dist-info → dart_tools-0.7.0.dist-info/licenses}/LICENSE +0 -0
- {dart_tools-0.6.15.dist-info → dart_tools-0.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
from
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union
|
|
2
3
|
|
|
3
4
|
from attrs import define as _attrs_define
|
|
4
5
|
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
|
-
from ..models.doc_source_type import DocSourceType
|
|
7
|
-
from ..models.icon_kind import IconKind
|
|
8
|
-
from ..models.report_kind import ReportKind
|
|
9
7
|
from ..types import UNSET, Unset
|
|
10
8
|
|
|
11
9
|
T = TypeVar("T", bound="DocUpdate")
|
|
@@ -15,271 +13,66 @@ T = TypeVar("T", bound="DocUpdate")
|
|
|
15
13
|
class DocUpdate:
|
|
16
14
|
"""
|
|
17
15
|
Attributes:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* `Recommendation` - RECOMMENDATION
|
|
23
|
-
* `GeneratedReport` - GENERATED_REPORT
|
|
24
|
-
* `ChatGPT` - CHAT_GPT
|
|
25
|
-
* `Application` - APPLICATION Default: DocSourceType.UNKNOWN.
|
|
26
|
-
drafter_duid (Union[None, Unset, str]):
|
|
27
|
-
in_trash (Union[Unset, bool]):
|
|
28
|
-
folder_duid (Union[Unset, str]):
|
|
29
|
-
report_kind (Union[None, ReportKind, Unset]):
|
|
30
|
-
order (Union[Unset, str]):
|
|
31
|
-
title (Union[Unset, str]):
|
|
32
|
-
text (Union[Unset, Any]):
|
|
33
|
-
text_markdown (Union[Unset, str]):
|
|
34
|
-
edited_by_ai (Union[Unset, bool]):
|
|
35
|
-
recommendation_duid (Union[None, Unset, str]):
|
|
36
|
-
editor_duids (Union[Unset, List[str]]):
|
|
37
|
-
subscriber_duids (Union[Unset, List[str]]):
|
|
38
|
-
icon_kind (Union[Unset, IconKind]): * `None` - NONE
|
|
39
|
-
* `Icon` - ICON
|
|
40
|
-
* `Emoji` - EMOJI
|
|
41
|
-
icon_name_or_emoji (Union[Unset, str]):
|
|
42
|
-
color_hex (Union[Unset, str]):
|
|
16
|
+
id (str): The universal, unique ID of the doc.
|
|
17
|
+
title (Union[Unset, str]): The title, which is a short description of the doc.
|
|
18
|
+
folder (Union[Unset, str]): The full title of the folder, which is a project or list of docs.
|
|
19
|
+
text (Union[Unset, str]): The full content of the doc, which can include markdown formatting.
|
|
43
20
|
"""
|
|
44
21
|
|
|
45
|
-
|
|
46
|
-
source_user: Union[None, Unset, str] = UNSET
|
|
47
|
-
source_type: Union[Unset, DocSourceType] = DocSourceType.UNKNOWN
|
|
48
|
-
drafter_duid: Union[None, Unset, str] = UNSET
|
|
49
|
-
in_trash: Union[Unset, bool] = UNSET
|
|
50
|
-
folder_duid: Union[Unset, str] = UNSET
|
|
51
|
-
report_kind: Union[None, ReportKind, Unset] = UNSET
|
|
52
|
-
order: Union[Unset, str] = UNSET
|
|
22
|
+
id: str
|
|
53
23
|
title: Union[Unset, str] = UNSET
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
recommendation_duid: Union[None, Unset, str] = UNSET
|
|
58
|
-
editor_duids: Union[Unset, List[str]] = UNSET
|
|
59
|
-
subscriber_duids: Union[Unset, List[str]] = UNSET
|
|
60
|
-
icon_kind: Union[Unset, IconKind] = UNSET
|
|
61
|
-
icon_name_or_emoji: Union[Unset, str] = UNSET
|
|
62
|
-
color_hex: Union[Unset, str] = UNSET
|
|
63
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
folder: Union[Unset, str] = UNSET
|
|
25
|
+
text: Union[Unset, str] = UNSET
|
|
26
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
64
27
|
|
|
65
|
-
def to_dict(self) ->
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
source_user: Union[None, Unset, str]
|
|
69
|
-
if isinstance(self.source_user, Unset):
|
|
70
|
-
source_user = UNSET
|
|
71
|
-
else:
|
|
72
|
-
source_user = self.source_user
|
|
73
|
-
|
|
74
|
-
source_type: Union[Unset, str] = UNSET
|
|
75
|
-
if not isinstance(self.source_type, Unset):
|
|
76
|
-
source_type = self.source_type.value
|
|
77
|
-
|
|
78
|
-
drafter_duid: Union[None, Unset, str]
|
|
79
|
-
if isinstance(self.drafter_duid, Unset):
|
|
80
|
-
drafter_duid = UNSET
|
|
81
|
-
else:
|
|
82
|
-
drafter_duid = self.drafter_duid
|
|
83
|
-
|
|
84
|
-
in_trash = self.in_trash
|
|
85
|
-
|
|
86
|
-
folder_duid = self.folder_duid
|
|
87
|
-
|
|
88
|
-
report_kind: Union[None, Unset, str]
|
|
89
|
-
if isinstance(self.report_kind, Unset):
|
|
90
|
-
report_kind = UNSET
|
|
91
|
-
elif isinstance(self.report_kind, ReportKind):
|
|
92
|
-
report_kind = self.report_kind.value
|
|
93
|
-
else:
|
|
94
|
-
report_kind = self.report_kind
|
|
95
|
-
|
|
96
|
-
order = self.order
|
|
28
|
+
def to_dict(self) -> dict[str, Any]:
|
|
29
|
+
id = self.id
|
|
97
30
|
|
|
98
31
|
title = self.title
|
|
99
32
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
text_markdown = self.text_markdown
|
|
103
|
-
|
|
104
|
-
edited_by_ai = self.edited_by_ai
|
|
33
|
+
folder = self.folder
|
|
105
34
|
|
|
106
|
-
|
|
107
|
-
if isinstance(self.recommendation_duid, Unset):
|
|
108
|
-
recommendation_duid = UNSET
|
|
109
|
-
else:
|
|
110
|
-
recommendation_duid = self.recommendation_duid
|
|
111
|
-
|
|
112
|
-
editor_duids: Union[Unset, List[str]] = UNSET
|
|
113
|
-
if not isinstance(self.editor_duids, Unset):
|
|
114
|
-
editor_duids = self.editor_duids
|
|
115
|
-
|
|
116
|
-
subscriber_duids: Union[Unset, List[str]] = UNSET
|
|
117
|
-
if not isinstance(self.subscriber_duids, Unset):
|
|
118
|
-
subscriber_duids = self.subscriber_duids
|
|
119
|
-
|
|
120
|
-
icon_kind: Union[Unset, str] = UNSET
|
|
121
|
-
if not isinstance(self.icon_kind, Unset):
|
|
122
|
-
icon_kind = self.icon_kind.value
|
|
123
|
-
|
|
124
|
-
icon_name_or_emoji = self.icon_name_or_emoji
|
|
125
|
-
|
|
126
|
-
color_hex = self.color_hex
|
|
35
|
+
text = self.text
|
|
127
36
|
|
|
128
|
-
field_dict:
|
|
37
|
+
field_dict: dict[str, Any] = {}
|
|
129
38
|
field_dict.update(self.additional_properties)
|
|
130
39
|
field_dict.update(
|
|
131
40
|
{
|
|
132
|
-
"
|
|
41
|
+
"id": id,
|
|
133
42
|
}
|
|
134
43
|
)
|
|
135
|
-
if source_user is not UNSET:
|
|
136
|
-
field_dict["sourceUser"] = source_user
|
|
137
|
-
if source_type is not UNSET:
|
|
138
|
-
field_dict["sourceType"] = source_type
|
|
139
|
-
if drafter_duid is not UNSET:
|
|
140
|
-
field_dict["drafterDuid"] = drafter_duid
|
|
141
|
-
if in_trash is not UNSET:
|
|
142
|
-
field_dict["inTrash"] = in_trash
|
|
143
|
-
if folder_duid is not UNSET:
|
|
144
|
-
field_dict["folderDuid"] = folder_duid
|
|
145
|
-
if report_kind is not UNSET:
|
|
146
|
-
field_dict["reportKind"] = report_kind
|
|
147
|
-
if order is not UNSET:
|
|
148
|
-
field_dict["order"] = order
|
|
149
44
|
if title is not UNSET:
|
|
150
45
|
field_dict["title"] = title
|
|
46
|
+
if folder is not UNSET:
|
|
47
|
+
field_dict["folder"] = folder
|
|
151
48
|
if text is not UNSET:
|
|
152
49
|
field_dict["text"] = text
|
|
153
|
-
if text_markdown is not UNSET:
|
|
154
|
-
field_dict["textMarkdown"] = text_markdown
|
|
155
|
-
if edited_by_ai is not UNSET:
|
|
156
|
-
field_dict["editedByAi"] = edited_by_ai
|
|
157
|
-
if recommendation_duid is not UNSET:
|
|
158
|
-
field_dict["recommendationDuid"] = recommendation_duid
|
|
159
|
-
if editor_duids is not UNSET:
|
|
160
|
-
field_dict["editorDuids"] = editor_duids
|
|
161
|
-
if subscriber_duids is not UNSET:
|
|
162
|
-
field_dict["subscriberDuids"] = subscriber_duids
|
|
163
|
-
if icon_kind is not UNSET:
|
|
164
|
-
field_dict["iconKind"] = icon_kind
|
|
165
|
-
if icon_name_or_emoji is not UNSET:
|
|
166
|
-
field_dict["iconNameOrEmoji"] = icon_name_or_emoji
|
|
167
|
-
if color_hex is not UNSET:
|
|
168
|
-
field_dict["colorHex"] = color_hex
|
|
169
50
|
|
|
170
51
|
return field_dict
|
|
171
52
|
|
|
172
53
|
@classmethod
|
|
173
|
-
def from_dict(cls:
|
|
174
|
-
d = src_dict
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
def _parse_source_user(data: object) -> Union[None, Unset, str]:
|
|
178
|
-
if data is None:
|
|
179
|
-
return data
|
|
180
|
-
if isinstance(data, Unset):
|
|
181
|
-
return data
|
|
182
|
-
return cast(Union[None, Unset, str], data)
|
|
183
|
-
|
|
184
|
-
source_user = _parse_source_user(d.pop("sourceUser", UNSET))
|
|
185
|
-
|
|
186
|
-
_source_type = d.pop("sourceType", UNSET)
|
|
187
|
-
source_type: Union[Unset, DocSourceType]
|
|
188
|
-
if isinstance(_source_type, Unset):
|
|
189
|
-
source_type = UNSET
|
|
190
|
-
else:
|
|
191
|
-
source_type = DocSourceType(_source_type)
|
|
192
|
-
|
|
193
|
-
def _parse_drafter_duid(data: object) -> Union[None, Unset, str]:
|
|
194
|
-
if data is None:
|
|
195
|
-
return data
|
|
196
|
-
if isinstance(data, Unset):
|
|
197
|
-
return data
|
|
198
|
-
return cast(Union[None, Unset, str], data)
|
|
199
|
-
|
|
200
|
-
drafter_duid = _parse_drafter_duid(d.pop("drafterDuid", UNSET))
|
|
201
|
-
|
|
202
|
-
in_trash = d.pop("inTrash", UNSET)
|
|
203
|
-
|
|
204
|
-
folder_duid = d.pop("folderDuid", UNSET)
|
|
205
|
-
|
|
206
|
-
def _parse_report_kind(data: object) -> Union[None, ReportKind, Unset]:
|
|
207
|
-
if data is None:
|
|
208
|
-
return data
|
|
209
|
-
if isinstance(data, Unset):
|
|
210
|
-
return data
|
|
211
|
-
try:
|
|
212
|
-
if not isinstance(data, str):
|
|
213
|
-
raise TypeError()
|
|
214
|
-
report_kind_type_0 = ReportKind(data)
|
|
215
|
-
|
|
216
|
-
return report_kind_type_0
|
|
217
|
-
except: # noqa: E722
|
|
218
|
-
pass
|
|
219
|
-
return cast(Union[None, ReportKind, Unset], data)
|
|
220
|
-
|
|
221
|
-
report_kind = _parse_report_kind(d.pop("reportKind", UNSET))
|
|
222
|
-
|
|
223
|
-
order = d.pop("order", UNSET)
|
|
54
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
55
|
+
d = dict(src_dict)
|
|
56
|
+
id = d.pop("id")
|
|
224
57
|
|
|
225
58
|
title = d.pop("title", UNSET)
|
|
226
59
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
text_markdown = d.pop("textMarkdown", UNSET)
|
|
230
|
-
|
|
231
|
-
edited_by_ai = d.pop("editedByAi", UNSET)
|
|
232
|
-
|
|
233
|
-
def _parse_recommendation_duid(data: object) -> Union[None, Unset, str]:
|
|
234
|
-
if data is None:
|
|
235
|
-
return data
|
|
236
|
-
if isinstance(data, Unset):
|
|
237
|
-
return data
|
|
238
|
-
return cast(Union[None, Unset, str], data)
|
|
239
|
-
|
|
240
|
-
recommendation_duid = _parse_recommendation_duid(d.pop("recommendationDuid", UNSET))
|
|
241
|
-
|
|
242
|
-
editor_duids = cast(List[str], d.pop("editorDuids", UNSET))
|
|
60
|
+
folder = d.pop("folder", UNSET)
|
|
243
61
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
_icon_kind = d.pop("iconKind", UNSET)
|
|
247
|
-
icon_kind: Union[Unset, IconKind]
|
|
248
|
-
if isinstance(_icon_kind, Unset):
|
|
249
|
-
icon_kind = UNSET
|
|
250
|
-
else:
|
|
251
|
-
icon_kind = IconKind(_icon_kind)
|
|
252
|
-
|
|
253
|
-
icon_name_or_emoji = d.pop("iconNameOrEmoji", UNSET)
|
|
254
|
-
|
|
255
|
-
color_hex = d.pop("colorHex", UNSET)
|
|
62
|
+
text = d.pop("text", UNSET)
|
|
256
63
|
|
|
257
64
|
doc_update = cls(
|
|
258
|
-
|
|
259
|
-
source_user=source_user,
|
|
260
|
-
source_type=source_type,
|
|
261
|
-
drafter_duid=drafter_duid,
|
|
262
|
-
in_trash=in_trash,
|
|
263
|
-
folder_duid=folder_duid,
|
|
264
|
-
report_kind=report_kind,
|
|
265
|
-
order=order,
|
|
65
|
+
id=id,
|
|
266
66
|
title=title,
|
|
67
|
+
folder=folder,
|
|
267
68
|
text=text,
|
|
268
|
-
text_markdown=text_markdown,
|
|
269
|
-
edited_by_ai=edited_by_ai,
|
|
270
|
-
recommendation_duid=recommendation_duid,
|
|
271
|
-
editor_duids=editor_duids,
|
|
272
|
-
subscriber_duids=subscriber_duids,
|
|
273
|
-
icon_kind=icon_kind,
|
|
274
|
-
icon_name_or_emoji=icon_name_or_emoji,
|
|
275
|
-
color_hex=color_hex,
|
|
276
69
|
)
|
|
277
70
|
|
|
278
71
|
doc_update.additional_properties = d
|
|
279
72
|
return doc_update
|
|
280
73
|
|
|
281
74
|
@property
|
|
282
|
-
def additional_keys(self) ->
|
|
75
|
+
def additional_keys(self) -> list[str]:
|
|
283
76
|
return list(self.additional_properties.keys())
|
|
284
77
|
|
|
285
78
|
def __getitem__(self, key: str) -> Any:
|
dart/generated/models/folder.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
from
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
2
3
|
|
|
3
4
|
from attrs import define as _attrs_define
|
|
4
5
|
from attrs import field as _attrs_field
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
from ..models.
|
|
8
|
-
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from ..models.doc import Doc
|
|
9
|
+
|
|
9
10
|
|
|
10
11
|
T = TypeVar("T", bound="Folder")
|
|
11
12
|
|
|
@@ -14,127 +15,81 @@ T = TypeVar("T", bound="Folder")
|
|
|
14
15
|
class Folder:
|
|
15
16
|
"""
|
|
16
17
|
Attributes:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
order (str):
|
|
23
|
-
title (str):
|
|
24
|
-
description (str):
|
|
25
|
-
icon_kind (IconKind): * `None` - NONE
|
|
26
|
-
* `Icon` - ICON
|
|
27
|
-
* `Emoji` - EMOJI
|
|
28
|
-
icon_name_or_emoji (str):
|
|
29
|
-
color_hex (str):
|
|
30
|
-
updated_by_client_duid (Union[None, Unset, str]):
|
|
18
|
+
id (str): The universal, unique ID of the folder.
|
|
19
|
+
html_url (str): The URL that can be used to open the folder in the Dart web UI.
|
|
20
|
+
title (str): The title, which is a short description of the folder.
|
|
21
|
+
description (str): The description, which is a longer description of the folder.
|
|
22
|
+
docs (list['Doc']): The list of all of the docs in the folder.
|
|
31
23
|
"""
|
|
32
24
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
kind: FolderKind
|
|
36
|
-
order: str
|
|
25
|
+
id: str
|
|
26
|
+
html_url: str
|
|
37
27
|
title: str
|
|
38
28
|
description: str
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
color_hex: str
|
|
42
|
-
updated_by_client_duid: Union[None, Unset, str] = UNSET
|
|
43
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
44
|
-
|
|
45
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
46
|
-
duid = self.duid
|
|
47
|
-
|
|
48
|
-
space_duid = self.space_duid
|
|
29
|
+
docs: list["Doc"]
|
|
30
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
49
31
|
|
|
50
|
-
|
|
32
|
+
def to_dict(self) -> dict[str, Any]:
|
|
33
|
+
id = self.id
|
|
51
34
|
|
|
52
|
-
|
|
35
|
+
html_url = self.html_url
|
|
53
36
|
|
|
54
37
|
title = self.title
|
|
55
38
|
|
|
56
39
|
description = self.description
|
|
57
40
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
color_hex = self.color_hex
|
|
41
|
+
docs = []
|
|
42
|
+
for docs_item_data in self.docs:
|
|
43
|
+
docs_item = docs_item_data.to_dict()
|
|
44
|
+
docs.append(docs_item)
|
|
63
45
|
|
|
64
|
-
|
|
65
|
-
if isinstance(self.updated_by_client_duid, Unset):
|
|
66
|
-
updated_by_client_duid = UNSET
|
|
67
|
-
else:
|
|
68
|
-
updated_by_client_duid = self.updated_by_client_duid
|
|
69
|
-
|
|
70
|
-
field_dict: Dict[str, Any] = {}
|
|
46
|
+
field_dict: dict[str, Any] = {}
|
|
71
47
|
field_dict.update(self.additional_properties)
|
|
72
48
|
field_dict.update(
|
|
73
49
|
{
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"kind": kind,
|
|
77
|
-
"order": order,
|
|
50
|
+
"id": id,
|
|
51
|
+
"htmlUrl": html_url,
|
|
78
52
|
"title": title,
|
|
79
53
|
"description": description,
|
|
80
|
-
"
|
|
81
|
-
"iconNameOrEmoji": icon_name_or_emoji,
|
|
82
|
-
"colorHex": color_hex,
|
|
54
|
+
"docs": docs,
|
|
83
55
|
}
|
|
84
56
|
)
|
|
85
|
-
if updated_by_client_duid is not UNSET:
|
|
86
|
-
field_dict["updatedByClientDuid"] = updated_by_client_duid
|
|
87
57
|
|
|
88
58
|
return field_dict
|
|
89
59
|
|
|
90
60
|
@classmethod
|
|
91
|
-
def from_dict(cls:
|
|
92
|
-
|
|
93
|
-
duid = d.pop("duid")
|
|
94
|
-
|
|
95
|
-
space_duid = d.pop("spaceDuid")
|
|
61
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
62
|
+
from ..models.doc import Doc
|
|
96
63
|
|
|
97
|
-
|
|
64
|
+
d = dict(src_dict)
|
|
65
|
+
id = d.pop("id")
|
|
98
66
|
|
|
99
|
-
|
|
67
|
+
html_url = d.pop("htmlUrl")
|
|
100
68
|
|
|
101
69
|
title = d.pop("title")
|
|
102
70
|
|
|
103
71
|
description = d.pop("description")
|
|
104
72
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
color_hex = d.pop("colorHex")
|
|
110
|
-
|
|
111
|
-
def _parse_updated_by_client_duid(data: object) -> Union[None, Unset, str]:
|
|
112
|
-
if data is None:
|
|
113
|
-
return data
|
|
114
|
-
if isinstance(data, Unset):
|
|
115
|
-
return data
|
|
116
|
-
return cast(Union[None, Unset, str], data)
|
|
73
|
+
docs = []
|
|
74
|
+
_docs = d.pop("docs")
|
|
75
|
+
for docs_item_data in _docs:
|
|
76
|
+
docs_item = Doc.from_dict(docs_item_data)
|
|
117
77
|
|
|
118
|
-
|
|
78
|
+
docs.append(docs_item)
|
|
119
79
|
|
|
120
80
|
folder = cls(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
kind=kind,
|
|
124
|
-
order=order,
|
|
81
|
+
id=id,
|
|
82
|
+
html_url=html_url,
|
|
125
83
|
title=title,
|
|
126
84
|
description=description,
|
|
127
|
-
|
|
128
|
-
icon_name_or_emoji=icon_name_or_emoji,
|
|
129
|
-
color_hex=color_hex,
|
|
130
|
-
updated_by_client_duid=updated_by_client_duid,
|
|
85
|
+
docs=docs,
|
|
131
86
|
)
|
|
132
87
|
|
|
133
88
|
folder.additional_properties = d
|
|
134
89
|
return folder
|
|
135
90
|
|
|
136
91
|
@property
|
|
137
|
-
def additional_keys(self) ->
|
|
92
|
+
def additional_keys(self) -> list[str]:
|
|
138
93
|
return list(self.additional_properties.keys())
|
|
139
94
|
|
|
140
95
|
def __getitem__(self, key: str) -> Any:
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class ListDocsOItem(str, Enum):
|
|
5
|
+
CREATED_AT = "created_at"
|
|
6
|
+
ORDER = "order"
|
|
7
|
+
TITLE = "title"
|
|
8
|
+
UPDATED_AT = "updated_at"
|
|
9
|
+
VALUE_0 = "-created_at"
|
|
10
|
+
VALUE_1 = "-order"
|
|
11
|
+
VALUE_2 = "-title"
|
|
12
|
+
VALUE_3 = "-updated_at"
|
|
13
|
+
|
|
14
|
+
def __str__(self) -> str:
|
|
15
|
+
return str(self.value)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
from
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
2
3
|
|
|
3
4
|
from attrs import define as _attrs_define
|
|
4
5
|
from attrs import field as _attrs_field
|
|
@@ -6,29 +7,29 @@ from attrs import field as _attrs_field
|
|
|
6
7
|
from ..types import UNSET, Unset
|
|
7
8
|
|
|
8
9
|
if TYPE_CHECKING:
|
|
9
|
-
from ..models.
|
|
10
|
+
from ..models.concise_doc import ConciseDoc
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
T = TypeVar("T", bound="
|
|
13
|
+
T = TypeVar("T", bound="PaginatedConciseDocList")
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
@_attrs_define
|
|
16
|
-
class
|
|
17
|
+
class PaginatedConciseDocList:
|
|
17
18
|
"""
|
|
18
19
|
Attributes:
|
|
19
20
|
count (int): Example: 123.
|
|
20
|
-
results (
|
|
21
|
+
results (list['ConciseDoc']):
|
|
21
22
|
next_ (Union[None, Unset, str]): Example: http://api.example.org/accounts/?offset=400&limit=100.
|
|
22
23
|
previous (Union[None, Unset, str]): Example: http://api.example.org/accounts/?offset=200&limit=100.
|
|
23
24
|
"""
|
|
24
25
|
|
|
25
26
|
count: int
|
|
26
|
-
results:
|
|
27
|
+
results: list["ConciseDoc"]
|
|
27
28
|
next_: Union[None, Unset, str] = UNSET
|
|
28
29
|
previous: Union[None, Unset, str] = UNSET
|
|
29
|
-
additional_properties:
|
|
30
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
31
|
|
|
31
|
-
def to_dict(self) ->
|
|
32
|
+
def to_dict(self) -> dict[str, Any]:
|
|
32
33
|
count = self.count
|
|
33
34
|
|
|
34
35
|
results = []
|
|
@@ -48,7 +49,7 @@ class PaginatedAttachmentList:
|
|
|
48
49
|
else:
|
|
49
50
|
previous = self.previous
|
|
50
51
|
|
|
51
|
-
field_dict:
|
|
52
|
+
field_dict: dict[str, Any] = {}
|
|
52
53
|
field_dict.update(self.additional_properties)
|
|
53
54
|
field_dict.update(
|
|
54
55
|
{
|
|
@@ -64,16 +65,16 @@ class PaginatedAttachmentList:
|
|
|
64
65
|
return field_dict
|
|
65
66
|
|
|
66
67
|
@classmethod
|
|
67
|
-
def from_dict(cls:
|
|
68
|
-
from ..models.
|
|
68
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
69
|
+
from ..models.concise_doc import ConciseDoc
|
|
69
70
|
|
|
70
|
-
d = src_dict
|
|
71
|
+
d = dict(src_dict)
|
|
71
72
|
count = d.pop("count")
|
|
72
73
|
|
|
73
74
|
results = []
|
|
74
75
|
_results = d.pop("results")
|
|
75
76
|
for results_item_data in _results:
|
|
76
|
-
results_item =
|
|
77
|
+
results_item = ConciseDoc.from_dict(results_item_data)
|
|
77
78
|
|
|
78
79
|
results.append(results_item)
|
|
79
80
|
|
|
@@ -95,18 +96,18 @@ class PaginatedAttachmentList:
|
|
|
95
96
|
|
|
96
97
|
previous = _parse_previous(d.pop("previous", UNSET))
|
|
97
98
|
|
|
98
|
-
|
|
99
|
+
paginated_concise_doc_list = cls(
|
|
99
100
|
count=count,
|
|
100
101
|
results=results,
|
|
101
102
|
next_=next_,
|
|
102
103
|
previous=previous,
|
|
103
104
|
)
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
return
|
|
106
|
+
paginated_concise_doc_list.additional_properties = d
|
|
107
|
+
return paginated_concise_doc_list
|
|
107
108
|
|
|
108
109
|
@property
|
|
109
|
-
def additional_keys(self) ->
|
|
110
|
+
def additional_keys(self) -> list[str]:
|
|
110
111
|
return list(self.additional_properties.keys())
|
|
111
112
|
|
|
112
113
|
def __getitem__(self, key: str) -> Any:
|