dart-tools 0.6.16__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.16.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.16.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 -83
- 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.16.dist-info/RECORD +0 -257
- dart_tools-0.6.16.dist-info/dist/dart-tools-0.3.3.tar.gz +0 -0
- {dart_tools-0.6.16.dist-info → dart_tools-0.7.0.dist-info}/entry_points.txt +0 -0
- {dart_tools-0.6.16.dist-info → dart_tools-0.7.0.dist-info/licenses}/LICENSE +0 -0
- {dart_tools-0.6.16.dist-info → dart_tools-0.7.0.dist-info}/top_level.txt +0 -0
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
from ..models.theme import Theme
|
|
7
|
-
from ..models.user_role import UserRole
|
|
8
|
-
from ..types import UNSET, Unset
|
|
9
|
-
|
|
10
|
-
T = TypeVar("T", bound="UserUpdate")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class UserUpdate:
|
|
15
|
-
"""
|
|
16
|
-
Attributes:
|
|
17
|
-
duid (str):
|
|
18
|
-
role (Union[Unset, UserRole]): * `Admin` - ADMIN
|
|
19
|
-
* `Member` - MEMBER
|
|
20
|
-
* `Guest` - GUEST
|
|
21
|
-
* `Technical admin` - TECHNICAL_ADMIN
|
|
22
|
-
* `Financial admin` - FINANCIAL_ADMIN
|
|
23
|
-
name (Union[Unset, str]):
|
|
24
|
-
theme (Union[Unset, Theme]): * `System Default` - SYSTEM_DEFAULT
|
|
25
|
-
* `Light` - LIGHT
|
|
26
|
-
* `Dark` - DARK
|
|
27
|
-
color_hex (Union[Unset, str]):
|
|
28
|
-
open_in_native_app (Union[Unset, bool]):
|
|
29
|
-
last_url_path (Union[None, Unset, str]):
|
|
30
|
-
first_day_of_week (Union[Unset, int]):
|
|
31
|
-
sections (Union[Unset, Any]):
|
|
32
|
-
layout (Union[Unset, Any]):
|
|
33
|
-
notification_default (Union[Unset, bool]):
|
|
34
|
-
notification_in_app (Union[Unset, bool]):
|
|
35
|
-
notification_email (Union[Unset, bool]):
|
|
36
|
-
notification_slack (Union[Unset, bool]):
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
duid: str
|
|
40
|
-
role: Union[Unset, UserRole] = UNSET
|
|
41
|
-
name: Union[Unset, str] = UNSET
|
|
42
|
-
theme: Union[Unset, Theme] = UNSET
|
|
43
|
-
color_hex: Union[Unset, str] = UNSET
|
|
44
|
-
open_in_native_app: Union[Unset, bool] = UNSET
|
|
45
|
-
last_url_path: Union[None, Unset, str] = UNSET
|
|
46
|
-
first_day_of_week: Union[Unset, int] = UNSET
|
|
47
|
-
sections: Union[Unset, Any] = UNSET
|
|
48
|
-
layout: Union[Unset, Any] = UNSET
|
|
49
|
-
notification_default: Union[Unset, bool] = UNSET
|
|
50
|
-
notification_in_app: Union[Unset, bool] = UNSET
|
|
51
|
-
notification_email: Union[Unset, bool] = UNSET
|
|
52
|
-
notification_slack: Union[Unset, bool] = UNSET
|
|
53
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
54
|
-
|
|
55
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
-
duid = self.duid
|
|
57
|
-
|
|
58
|
-
role: Union[Unset, str] = UNSET
|
|
59
|
-
if not isinstance(self.role, Unset):
|
|
60
|
-
role = self.role.value
|
|
61
|
-
|
|
62
|
-
name = self.name
|
|
63
|
-
|
|
64
|
-
theme: Union[Unset, str] = UNSET
|
|
65
|
-
if not isinstance(self.theme, Unset):
|
|
66
|
-
theme = self.theme.value
|
|
67
|
-
|
|
68
|
-
color_hex = self.color_hex
|
|
69
|
-
|
|
70
|
-
open_in_native_app = self.open_in_native_app
|
|
71
|
-
|
|
72
|
-
last_url_path: Union[None, Unset, str]
|
|
73
|
-
if isinstance(self.last_url_path, Unset):
|
|
74
|
-
last_url_path = UNSET
|
|
75
|
-
else:
|
|
76
|
-
last_url_path = self.last_url_path
|
|
77
|
-
|
|
78
|
-
first_day_of_week = self.first_day_of_week
|
|
79
|
-
|
|
80
|
-
sections = self.sections
|
|
81
|
-
|
|
82
|
-
layout = self.layout
|
|
83
|
-
|
|
84
|
-
notification_default = self.notification_default
|
|
85
|
-
|
|
86
|
-
notification_in_app = self.notification_in_app
|
|
87
|
-
|
|
88
|
-
notification_email = self.notification_email
|
|
89
|
-
|
|
90
|
-
notification_slack = self.notification_slack
|
|
91
|
-
|
|
92
|
-
field_dict: Dict[str, Any] = {}
|
|
93
|
-
field_dict.update(self.additional_properties)
|
|
94
|
-
field_dict.update(
|
|
95
|
-
{
|
|
96
|
-
"duid": duid,
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
if role is not UNSET:
|
|
100
|
-
field_dict["role"] = role
|
|
101
|
-
if name is not UNSET:
|
|
102
|
-
field_dict["name"] = name
|
|
103
|
-
if theme is not UNSET:
|
|
104
|
-
field_dict["theme"] = theme
|
|
105
|
-
if color_hex is not UNSET:
|
|
106
|
-
field_dict["colorHex"] = color_hex
|
|
107
|
-
if open_in_native_app is not UNSET:
|
|
108
|
-
field_dict["openInNativeApp"] = open_in_native_app
|
|
109
|
-
if last_url_path is not UNSET:
|
|
110
|
-
field_dict["lastUrlPath"] = last_url_path
|
|
111
|
-
if first_day_of_week is not UNSET:
|
|
112
|
-
field_dict["firstDayOfWeek"] = first_day_of_week
|
|
113
|
-
if sections is not UNSET:
|
|
114
|
-
field_dict["sections"] = sections
|
|
115
|
-
if layout is not UNSET:
|
|
116
|
-
field_dict["layout"] = layout
|
|
117
|
-
if notification_default is not UNSET:
|
|
118
|
-
field_dict["notificationDefault"] = notification_default
|
|
119
|
-
if notification_in_app is not UNSET:
|
|
120
|
-
field_dict["notificationInApp"] = notification_in_app
|
|
121
|
-
if notification_email is not UNSET:
|
|
122
|
-
field_dict["notificationEmail"] = notification_email
|
|
123
|
-
if notification_slack is not UNSET:
|
|
124
|
-
field_dict["notificationSlack"] = notification_slack
|
|
125
|
-
|
|
126
|
-
return field_dict
|
|
127
|
-
|
|
128
|
-
@classmethod
|
|
129
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
130
|
-
d = src_dict.copy()
|
|
131
|
-
duid = d.pop("duid")
|
|
132
|
-
|
|
133
|
-
_role = d.pop("role", UNSET)
|
|
134
|
-
role: Union[Unset, UserRole]
|
|
135
|
-
if isinstance(_role, Unset):
|
|
136
|
-
role = UNSET
|
|
137
|
-
else:
|
|
138
|
-
role = UserRole(_role)
|
|
139
|
-
|
|
140
|
-
name = d.pop("name", UNSET)
|
|
141
|
-
|
|
142
|
-
_theme = d.pop("theme", UNSET)
|
|
143
|
-
theme: Union[Unset, Theme]
|
|
144
|
-
if isinstance(_theme, Unset):
|
|
145
|
-
theme = UNSET
|
|
146
|
-
else:
|
|
147
|
-
theme = Theme(_theme)
|
|
148
|
-
|
|
149
|
-
color_hex = d.pop("colorHex", UNSET)
|
|
150
|
-
|
|
151
|
-
open_in_native_app = d.pop("openInNativeApp", UNSET)
|
|
152
|
-
|
|
153
|
-
def _parse_last_url_path(data: object) -> Union[None, Unset, str]:
|
|
154
|
-
if data is None:
|
|
155
|
-
return data
|
|
156
|
-
if isinstance(data, Unset):
|
|
157
|
-
return data
|
|
158
|
-
return cast(Union[None, Unset, str], data)
|
|
159
|
-
|
|
160
|
-
last_url_path = _parse_last_url_path(d.pop("lastUrlPath", UNSET))
|
|
161
|
-
|
|
162
|
-
first_day_of_week = d.pop("firstDayOfWeek", UNSET)
|
|
163
|
-
|
|
164
|
-
sections = d.pop("sections", UNSET)
|
|
165
|
-
|
|
166
|
-
layout = d.pop("layout", UNSET)
|
|
167
|
-
|
|
168
|
-
notification_default = d.pop("notificationDefault", UNSET)
|
|
169
|
-
|
|
170
|
-
notification_in_app = d.pop("notificationInApp", UNSET)
|
|
171
|
-
|
|
172
|
-
notification_email = d.pop("notificationEmail", UNSET)
|
|
173
|
-
|
|
174
|
-
notification_slack = d.pop("notificationSlack", UNSET)
|
|
175
|
-
|
|
176
|
-
user_update = cls(
|
|
177
|
-
duid=duid,
|
|
178
|
-
role=role,
|
|
179
|
-
name=name,
|
|
180
|
-
theme=theme,
|
|
181
|
-
color_hex=color_hex,
|
|
182
|
-
open_in_native_app=open_in_native_app,
|
|
183
|
-
last_url_path=last_url_path,
|
|
184
|
-
first_day_of_week=first_day_of_week,
|
|
185
|
-
sections=sections,
|
|
186
|
-
layout=layout,
|
|
187
|
-
notification_default=notification_default,
|
|
188
|
-
notification_in_app=notification_in_app,
|
|
189
|
-
notification_email=notification_email,
|
|
190
|
-
notification_slack=notification_slack,
|
|
191
|
-
)
|
|
192
|
-
|
|
193
|
-
user_update.additional_properties = d
|
|
194
|
-
return user_update
|
|
195
|
-
|
|
196
|
-
@property
|
|
197
|
-
def additional_keys(self) -> List[str]:
|
|
198
|
-
return list(self.additional_properties.keys())
|
|
199
|
-
|
|
200
|
-
def __getitem__(self, key: str) -> Any:
|
|
201
|
-
return self.additional_properties[key]
|
|
202
|
-
|
|
203
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
204
|
-
self.additional_properties[key] = value
|
|
205
|
-
|
|
206
|
-
def __delitem__(self, key: str) -> None:
|
|
207
|
-
del self.additional_properties[key]
|
|
208
|
-
|
|
209
|
-
def __contains__(self, key: str) -> bool:
|
|
210
|
-
return key in self.additional_properties
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
if TYPE_CHECKING:
|
|
7
|
-
from ..models.validation_error_response_items import ValidationErrorResponseItems
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
T = TypeVar("T", bound="ValidationErrorResponse")
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@_attrs_define
|
|
14
|
-
class ValidationErrorResponse:
|
|
15
|
-
"""
|
|
16
|
-
Attributes:
|
|
17
|
-
items (ValidationErrorResponseItems):
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
items: "ValidationErrorResponseItems"
|
|
21
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
22
|
-
|
|
23
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
24
|
-
items = self.items.to_dict()
|
|
25
|
-
|
|
26
|
-
field_dict: Dict[str, Any] = {}
|
|
27
|
-
field_dict.update(self.additional_properties)
|
|
28
|
-
field_dict.update(
|
|
29
|
-
{
|
|
30
|
-
"items": items,
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
return field_dict
|
|
35
|
-
|
|
36
|
-
@classmethod
|
|
37
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
38
|
-
from ..models.validation_error_response_items import ValidationErrorResponseItems
|
|
39
|
-
|
|
40
|
-
d = src_dict.copy()
|
|
41
|
-
items = ValidationErrorResponseItems.from_dict(d.pop("items"))
|
|
42
|
-
|
|
43
|
-
validation_error_response = cls(
|
|
44
|
-
items=items,
|
|
45
|
-
)
|
|
46
|
-
|
|
47
|
-
validation_error_response.additional_properties = d
|
|
48
|
-
return validation_error_response
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def additional_keys(self) -> List[str]:
|
|
52
|
-
return list(self.additional_properties.keys())
|
|
53
|
-
|
|
54
|
-
def __getitem__(self, key: str) -> Any:
|
|
55
|
-
return self.additional_properties[key]
|
|
56
|
-
|
|
57
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
58
|
-
self.additional_properties[key] = value
|
|
59
|
-
|
|
60
|
-
def __delitem__(self, key: str) -> None:
|
|
61
|
-
del self.additional_properties[key]
|
|
62
|
-
|
|
63
|
-
def __contains__(self, key: str) -> bool:
|
|
64
|
-
return key in self.additional_properties
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
T = TypeVar("T", bound="ValidationErrorResponseItems")
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@_attrs_define
|
|
10
|
-
class ValidationErrorResponseItems:
|
|
11
|
-
""" """
|
|
12
|
-
|
|
13
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
14
|
-
|
|
15
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
16
|
-
field_dict: Dict[str, Any] = {}
|
|
17
|
-
field_dict.update(self.additional_properties)
|
|
18
|
-
|
|
19
|
-
return field_dict
|
|
20
|
-
|
|
21
|
-
@classmethod
|
|
22
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
23
|
-
d = src_dict.copy()
|
|
24
|
-
validation_error_response_items = cls()
|
|
25
|
-
|
|
26
|
-
validation_error_response_items.additional_properties = d
|
|
27
|
-
return validation_error_response_items
|
|
28
|
-
|
|
29
|
-
@property
|
|
30
|
-
def additional_keys(self) -> List[str]:
|
|
31
|
-
return list(self.additional_properties.keys())
|
|
32
|
-
|
|
33
|
-
def __getitem__(self, key: str) -> Any:
|
|
34
|
-
return self.additional_properties[key]
|
|
35
|
-
|
|
36
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
37
|
-
self.additional_properties[key] = value
|
|
38
|
-
|
|
39
|
-
def __delitem__(self, key: str) -> None:
|
|
40
|
-
del self.additional_properties[key]
|
|
41
|
-
|
|
42
|
-
def __contains__(self, key: str) -> bool:
|
|
43
|
-
return key in self.additional_properties
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
from typing import Any, Dict, List, Type, TypeVar, Union, cast
|
|
2
|
-
|
|
3
|
-
from attrs import define as _attrs_define
|
|
4
|
-
from attrs import field as _attrs_field
|
|
5
|
-
|
|
6
|
-
from ..models.icon_kind import IconKind
|
|
7
|
-
from ..types import UNSET, Unset
|
|
8
|
-
|
|
9
|
-
T = TypeVar("T", bound="ViewCreate")
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@_attrs_define
|
|
13
|
-
class ViewCreate:
|
|
14
|
-
"""
|
|
15
|
-
Attributes:
|
|
16
|
-
duid (str):
|
|
17
|
-
order (str):
|
|
18
|
-
layout_duid (str):
|
|
19
|
-
accessible_by_team (Union[Unset, bool]):
|
|
20
|
-
accessible_by_user_duids (Union[Unset, List[str]]):
|
|
21
|
-
public (Union[Unset, bool]):
|
|
22
|
-
title (Union[Unset, str]):
|
|
23
|
-
description (Union[Unset, str]):
|
|
24
|
-
icon_kind (Union[Unset, IconKind]): * `None` - NONE
|
|
25
|
-
* `Icon` - ICON
|
|
26
|
-
* `Emoji` - EMOJI
|
|
27
|
-
icon_name_or_emoji (Union[Unset, str]):
|
|
28
|
-
color_hex (Union[Unset, str]):
|
|
29
|
-
favorited_by_user_duids (Union[Unset, List[str]]):
|
|
30
|
-
always_shown_property_duids (Union[Unset, List[str]]):
|
|
31
|
-
always_hidden_property_duids (Union[Unset, List[str]]):
|
|
32
|
-
property_order_duids (Union[Unset, List[str]]):
|
|
33
|
-
property_width_map (Union[Unset, Any]):
|
|
34
|
-
"""
|
|
35
|
-
|
|
36
|
-
duid: str
|
|
37
|
-
order: str
|
|
38
|
-
layout_duid: str
|
|
39
|
-
accessible_by_team: Union[Unset, bool] = UNSET
|
|
40
|
-
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
41
|
-
public: Union[Unset, bool] = UNSET
|
|
42
|
-
title: Union[Unset, str] = UNSET
|
|
43
|
-
description: Union[Unset, str] = UNSET
|
|
44
|
-
icon_kind: Union[Unset, IconKind] = UNSET
|
|
45
|
-
icon_name_or_emoji: Union[Unset, str] = UNSET
|
|
46
|
-
color_hex: Union[Unset, str] = UNSET
|
|
47
|
-
favorited_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
48
|
-
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
49
|
-
always_hidden_property_duids: Union[Unset, List[str]] = UNSET
|
|
50
|
-
property_order_duids: Union[Unset, List[str]] = UNSET
|
|
51
|
-
property_width_map: Union[Unset, Any] = UNSET
|
|
52
|
-
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
53
|
-
|
|
54
|
-
def to_dict(self) -> Dict[str, Any]:
|
|
55
|
-
duid = self.duid
|
|
56
|
-
|
|
57
|
-
order = self.order
|
|
58
|
-
|
|
59
|
-
layout_duid = self.layout_duid
|
|
60
|
-
|
|
61
|
-
accessible_by_team = self.accessible_by_team
|
|
62
|
-
|
|
63
|
-
accessible_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
64
|
-
if not isinstance(self.accessible_by_user_duids, Unset):
|
|
65
|
-
accessible_by_user_duids = self.accessible_by_user_duids
|
|
66
|
-
|
|
67
|
-
public = self.public
|
|
68
|
-
|
|
69
|
-
title = self.title
|
|
70
|
-
|
|
71
|
-
description = self.description
|
|
72
|
-
|
|
73
|
-
icon_kind: Union[Unset, str] = UNSET
|
|
74
|
-
if not isinstance(self.icon_kind, Unset):
|
|
75
|
-
icon_kind = self.icon_kind.value
|
|
76
|
-
|
|
77
|
-
icon_name_or_emoji = self.icon_name_or_emoji
|
|
78
|
-
|
|
79
|
-
color_hex = self.color_hex
|
|
80
|
-
|
|
81
|
-
favorited_by_user_duids: Union[Unset, List[str]] = UNSET
|
|
82
|
-
if not isinstance(self.favorited_by_user_duids, Unset):
|
|
83
|
-
favorited_by_user_duids = self.favorited_by_user_duids
|
|
84
|
-
|
|
85
|
-
always_shown_property_duids: Union[Unset, List[str]] = UNSET
|
|
86
|
-
if not isinstance(self.always_shown_property_duids, Unset):
|
|
87
|
-
always_shown_property_duids = self.always_shown_property_duids
|
|
88
|
-
|
|
89
|
-
always_hidden_property_duids: Union[Unset, List[str]] = UNSET
|
|
90
|
-
if not isinstance(self.always_hidden_property_duids, Unset):
|
|
91
|
-
always_hidden_property_duids = self.always_hidden_property_duids
|
|
92
|
-
|
|
93
|
-
property_order_duids: Union[Unset, List[str]] = UNSET
|
|
94
|
-
if not isinstance(self.property_order_duids, Unset):
|
|
95
|
-
property_order_duids = self.property_order_duids
|
|
96
|
-
|
|
97
|
-
property_width_map = self.property_width_map
|
|
98
|
-
|
|
99
|
-
field_dict: Dict[str, Any] = {}
|
|
100
|
-
field_dict.update(self.additional_properties)
|
|
101
|
-
field_dict.update(
|
|
102
|
-
{
|
|
103
|
-
"duid": duid,
|
|
104
|
-
"order": order,
|
|
105
|
-
"layoutDuid": layout_duid,
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
if accessible_by_team is not UNSET:
|
|
109
|
-
field_dict["accessibleByTeam"] = accessible_by_team
|
|
110
|
-
if accessible_by_user_duids is not UNSET:
|
|
111
|
-
field_dict["accessibleByUserDuids"] = accessible_by_user_duids
|
|
112
|
-
if public is not UNSET:
|
|
113
|
-
field_dict["public"] = public
|
|
114
|
-
if title is not UNSET:
|
|
115
|
-
field_dict["title"] = title
|
|
116
|
-
if description is not UNSET:
|
|
117
|
-
field_dict["description"] = description
|
|
118
|
-
if icon_kind is not UNSET:
|
|
119
|
-
field_dict["iconKind"] = icon_kind
|
|
120
|
-
if icon_name_or_emoji is not UNSET:
|
|
121
|
-
field_dict["iconNameOrEmoji"] = icon_name_or_emoji
|
|
122
|
-
if color_hex is not UNSET:
|
|
123
|
-
field_dict["colorHex"] = color_hex
|
|
124
|
-
if favorited_by_user_duids is not UNSET:
|
|
125
|
-
field_dict["favoritedByUserDuids"] = favorited_by_user_duids
|
|
126
|
-
if always_shown_property_duids is not UNSET:
|
|
127
|
-
field_dict["alwaysShownPropertyDuids"] = always_shown_property_duids
|
|
128
|
-
if always_hidden_property_duids is not UNSET:
|
|
129
|
-
field_dict["alwaysHiddenPropertyDuids"] = always_hidden_property_duids
|
|
130
|
-
if property_order_duids is not UNSET:
|
|
131
|
-
field_dict["propertyOrderDuids"] = property_order_duids
|
|
132
|
-
if property_width_map is not UNSET:
|
|
133
|
-
field_dict["propertyWidthMap"] = property_width_map
|
|
134
|
-
|
|
135
|
-
return field_dict
|
|
136
|
-
|
|
137
|
-
@classmethod
|
|
138
|
-
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
139
|
-
d = src_dict.copy()
|
|
140
|
-
duid = d.pop("duid")
|
|
141
|
-
|
|
142
|
-
order = d.pop("order")
|
|
143
|
-
|
|
144
|
-
layout_duid = d.pop("layoutDuid")
|
|
145
|
-
|
|
146
|
-
accessible_by_team = d.pop("accessibleByTeam", UNSET)
|
|
147
|
-
|
|
148
|
-
accessible_by_user_duids = cast(List[str], d.pop("accessibleByUserDuids", UNSET))
|
|
149
|
-
|
|
150
|
-
public = d.pop("public", UNSET)
|
|
151
|
-
|
|
152
|
-
title = d.pop("title", UNSET)
|
|
153
|
-
|
|
154
|
-
description = d.pop("description", UNSET)
|
|
155
|
-
|
|
156
|
-
_icon_kind = d.pop("iconKind", UNSET)
|
|
157
|
-
icon_kind: Union[Unset, IconKind]
|
|
158
|
-
if isinstance(_icon_kind, Unset):
|
|
159
|
-
icon_kind = UNSET
|
|
160
|
-
else:
|
|
161
|
-
icon_kind = IconKind(_icon_kind)
|
|
162
|
-
|
|
163
|
-
icon_name_or_emoji = d.pop("iconNameOrEmoji", UNSET)
|
|
164
|
-
|
|
165
|
-
color_hex = d.pop("colorHex", UNSET)
|
|
166
|
-
|
|
167
|
-
favorited_by_user_duids = cast(List[str], d.pop("favoritedByUserDuids", UNSET))
|
|
168
|
-
|
|
169
|
-
always_shown_property_duids = cast(List[str], d.pop("alwaysShownPropertyDuids", UNSET))
|
|
170
|
-
|
|
171
|
-
always_hidden_property_duids = cast(List[str], d.pop("alwaysHiddenPropertyDuids", UNSET))
|
|
172
|
-
|
|
173
|
-
property_order_duids = cast(List[str], d.pop("propertyOrderDuids", UNSET))
|
|
174
|
-
|
|
175
|
-
property_width_map = d.pop("propertyWidthMap", UNSET)
|
|
176
|
-
|
|
177
|
-
view_create = cls(
|
|
178
|
-
duid=duid,
|
|
179
|
-
order=order,
|
|
180
|
-
layout_duid=layout_duid,
|
|
181
|
-
accessible_by_team=accessible_by_team,
|
|
182
|
-
accessible_by_user_duids=accessible_by_user_duids,
|
|
183
|
-
public=public,
|
|
184
|
-
title=title,
|
|
185
|
-
description=description,
|
|
186
|
-
icon_kind=icon_kind,
|
|
187
|
-
icon_name_or_emoji=icon_name_or_emoji,
|
|
188
|
-
color_hex=color_hex,
|
|
189
|
-
favorited_by_user_duids=favorited_by_user_duids,
|
|
190
|
-
always_shown_property_duids=always_shown_property_duids,
|
|
191
|
-
always_hidden_property_duids=always_hidden_property_duids,
|
|
192
|
-
property_order_duids=property_order_duids,
|
|
193
|
-
property_width_map=property_width_map,
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
view_create.additional_properties = d
|
|
197
|
-
return view_create
|
|
198
|
-
|
|
199
|
-
@property
|
|
200
|
-
def additional_keys(self) -> List[str]:
|
|
201
|
-
return list(self.additional_properties.keys())
|
|
202
|
-
|
|
203
|
-
def __getitem__(self, key: str) -> Any:
|
|
204
|
-
return self.additional_properties[key]
|
|
205
|
-
|
|
206
|
-
def __setitem__(self, key: str, value: Any) -> None:
|
|
207
|
-
self.additional_properties[key] = value
|
|
208
|
-
|
|
209
|
-
def __delitem__(self, key: str) -> None:
|
|
210
|
-
del self.additional_properties[key]
|
|
211
|
-
|
|
212
|
-
def __contains__(self, key: str) -> bool:
|
|
213
|
-
return key in self.additional_properties
|